/* Async / phone section — appended to landing.css via separate <link>. */
.phone-frame {
  width: 280px; height: 560px;
  margin: 0 auto;
  border-radius: 44px;
  background: hsl(16 18% 12%);
  padding: 10px;
  box-shadow: 0 30px 60px -20px hsl(var(--primary) / 0.25),
              0 10px 25px -5px rgba(0,0,0,.15),
              inset 0 0 0 1px hsl(16 18% 22%);
  position: relative;
}
.phone-notch {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 22px; border-radius: 0 0 14px 14px;
  background: hsl(16 18% 8%);
  z-index: 2;
}
.phone-screen {
  width: 100%; height: 100%;
  background: hsl(var(--background));
  border-radius: 36px;
  overflow: hidden;
  display: flex; flex-direction: column;
  position: relative;
}
.phone-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 28px 6px;
  font-size: 11px; font-weight: 600;
  color: hsl(var(--foreground));
}
.phone-body { flex: 1; padding: 14px 16px 20px; display: flex; flex-direction: column; gap: 12px; }
.phone-app-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 6px;
}
.phone-app-name { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.phone-app-state { font-size: 11px; color: hsl(var(--primary)); font-weight: 600; }

/* dictation */
.phone-mic-card {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 24px;
  background: linear-gradient(180deg, hsl(var(--primary) / 0.06), transparent 70%);
  border-radius: 18px;
  padding: 24px 16px;
}
.phone-mic-wave {
  display: flex; align-items: center; gap: 4px; height: 60px;
}
.phone-mic-wave span {
  display: block; width: 4px; border-radius: 4px;
  background: hsl(var(--primary));
  animation: phoneWave 1.1s ease-in-out infinite;
}
@keyframes phoneWave {
  0%,100% { height: 14px; opacity: .55; }
  50%     { height: 48px; opacity: 1; }
}
.phone-bubble {
  align-self: stretch;
  background: hsl(var(--primary));
  color: white;
  padding: 10px 14px; border-radius: 14px 14px 4px 14px;
  font-size: 12px; line-height: 1.4;
  box-shadow: 0 6px 16px -6px hsl(var(--primary) / 0.5);
}

/* working */
.phone-work { display: flex; flex-direction: column; gap: 10px; padding-top: 6px; }
.phone-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: hsl(var(--muted) / 0.4);
  border: 1px solid hsl(var(--border));
  border-radius: 10px;
  font-family: var(--font-mono);
}
.dark .phone-row { background: hsl(16 18% 14%); }
.phone-spinner {
  width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid hsl(var(--primary) / 0.25);
  border-top-color: hsl(var(--primary));
  animation: phoneSpin .9s linear infinite;
}
@keyframes phoneSpin { to { transform: rotate(360deg); } }
.phone-tag {
  margin-left: auto;
  font-size: 9px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase;
  background: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
  padding: 3px 7px; border-radius: 6px;
}
.phone-tag.ok { background: hsl(142 71% 45% / 0.15); color: hsl(142 71% 38%); }
.dark .phone-tag.ok { color: hsl(142 71% 65%); }
.phone-progress {
  height: 4px; border-radius: 99px; overflow: hidden;
  background: hsl(var(--muted));
  margin-top: 6px;
}
.phone-progress span {
  display: block; height: 100%;
  background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--primary) / 0.4));
  animation: phoneProg 2s ease-in-out infinite;
}
@keyframes phoneProg {
  0% { width: 12%; } 100% { width: 95%; }
}

/* done */
.phone-done { padding-top: 4px; }
.phone-done-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 14px; padding: 14px;
  box-shadow: 0 6px 16px -8px hsl(var(--primary) / 0.25);
  animation: phonePop .4s ease-out;
}
@keyframes phonePop {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}
.phone-done-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.phone-done-ic {
  width: 22px; height: 22px; border-radius: 7px;
  background: hsl(142 71% 45%); color: white;
  display: inline-flex; align-items: center; justify-content: center;
}
.phone-tile-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.phone-tile {
  display: flex; flex-direction: column;
  background: hsl(var(--muted) / 0.5); border-radius: 10px; padding: 10px;
}
.dark .phone-tile { background: hsl(16 18% 14%); }
.phone-tile .lbl { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.phone-tile .sub { font-size: 10px; color: hsl(var(--muted-foreground)); margin-top: 2px; text-transform: uppercase; letter-spacing: .06em; }
.phone-list-row {
  font-size: 12px; padding: 8px 0;
  border-top: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
}
.phone-list-row:first-of-type { border-top: 0; padding-top: 4px; }

/* small pulse for active step */
.async-pulse {
  width: 8px; height: 8px; border-radius: 99px;
  background: hsl(var(--primary));
  box-shadow: 0 0 0 0 hsl(var(--primary) / 0.5);
  animation: asyncPulse 1.5s ease-out infinite;
}
@keyframes asyncPulse {
  0%   { box-shadow: 0 0 0 0   hsl(var(--primary) / 0.5); }
  70%  { box-shadow: 0 0 0 10px hsl(var(--primary) / 0); }
  100% { box-shadow: 0 0 0 0   hsl(var(--primary) / 0); }
}

@media (max-width: 880px) {
  .async-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
  .phone-frame { width: 240px; height: 480px; }
}
