/* Home page layout, on top of styles.css.

   The page reads top to bottom like a printed brochure: no pinned stage, no
   snapping. Each section has its own composition, and the spacing between
   two sections follows how closely they are related. The only motion is
   wind: the pinwheel in the bar turns with the speed of your scroll, and the
   ink strokes that leave the end of the first and last headlines are drawn
   once, when you reach them. */

.pinwheel { width: 28px; height: 28px; display: block; overflow: visible; }

/* a 12-column grid used by most sections */
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }

.home h2 { font-size: clamp(2rem, 1.15rem + 2.2vw, 3.05rem); line-height: 1.07; letter-spacing: -0.012em; }

/* ── hero ─────────────────────────────────────────────── */
.hero { padding: clamp(48px, 10vh, 120px) 0 clamp(64px, 10vh, 112px); overflow-x: clip; }
@supports not (overflow: clip) { .hero { overflow: hidden; } }
.hero h1 {
  grid-column: 1 / -1;
  font-size: clamp(2.6rem, 1.1rem + 4.5vw, 5rem);
  font-weight: 440; line-height: 1.02; letter-spacing: -0.016em;
}
.hero h1 { text-wrap: wrap; }
.hero h1 > span { display: block; }
.hero__body { grid-column: 1 / span 6; margin-top: clamp(26px, 3.2vw, 40px); }
.hero .lede { font-size: clamp(18px, 1.45vw, 21px); line-height: 1.5; color: var(--ink-soft); max-width: 31em; }
.hero .cta-row { margin-top: 30px; }
.hero .btn, .finale .btn { padding: 14px 22px; font-size: 16px; }
.hero .micro { margin-top: 16px; }

/* the strokes leave from the full stop of a headline and run off the page */
.hero__wind, .finale__wind { display: inline; position: relative; }
.hero__wind .gust, .finale__wind .gust {
  /* inline-level, so a balanced two-line heading keeps the anchor on its last line */
  display: inline-block;
  position: absolute; left: 0.3em; top: calc(0.62em - 12vw);
  width: 40vw; max-width: none; height: auto;
}
.gust { overflow: visible; will-change: transform; pointer-events: none; }

/* ── the problem ──────────────────────────────────────── */
.problem .grid { border-top: 1px solid var(--line); padding: clamp(64px, 9vw, 120px) 0 clamp(56px, 8vw, 104px); }
.problem h2 { grid-column: 1 / -1; font-size: clamp(2.2rem, 1rem + 3.5vw, 4.1rem); line-height: 1.06; }
.problem h2 span { display: block; }
/* the second half answers the first: indented, and set lighter */
.problem h2 .alt { padding-left: 1.55em; font-weight: 330; color: var(--ink); }
.problem p { grid-column: 7 / -1; margin-top: clamp(24px, 3vw, 40px); font-size: 19px; line-height: 1.6; color: var(--ink-soft); max-width: 30em; }

/* ── shared section bits ──────────────────────────────── */
.sec { padding: clamp(56px, 7.5vw, 108px) 0; }
.sec-head { max-width: 40rem; margin-bottom: clamp(36px, 4.5vw, 60px); }
.sec-head h2 { margin-bottom: 18px; }
.sec-head p { font-size: 19px; line-height: 1.6; color: var(--ink-soft); max-width: 34em; }

.shot { position: relative; margin: 0; border-radius: 10px; overflow: hidden; background: #f3f0e7; box-shadow: var(--shadow-window); }
.shot img { display: block; width: 100%; height: auto; }
.shot-cap { margin-top: 14px; font-size: 14px; line-height: 1.45; color: var(--muted); }

/* ── meeting notes: the note, annotated ───────────────── */
.notes { padding: clamp(24px, 3vw, 48px) 0 clamp(36px, 4vw, 56px); }
.annot {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16rem;
  grid-template-areas: "shot labels" "cap .";
}
.annot .shot { grid-area: shot; }
.annot .shot-cap { grid-area: cap; }
.annot .contents { grid-area: labels; position: relative; list-style: none; margin: 0; padding: 0; }
.contents li { position: absolute; left: 44px; right: 0; top: var(--y); transform: translateY(-13px); }
.contents li::before {
  content: ""; position: absolute; left: -44px; width: 36px; top: 13px;
  border-top: 1px solid rgba(20, 107, 98, 0.55);
}
.contents strong {
  display: block; font-family: var(--serif); font-weight: 520; font-variation-settings: "SOFT" 30;
  font-size: 21px; line-height: 26px; color: var(--ink);
}
.contents span { display: block; margin-top: 2px; font-size: 15px; line-height: 1.45; color: var(--muted); }
/* leaders inside the screenshot: a dot on the thing itself, a line out to the edge */
.pin { position: absolute; left: var(--x); right: 0; top: var(--y); height: 0; pointer-events: none; }
.pin::before {
  content: ""; position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 2.5px rgba(251, 250, 246, 0.95);
}
.pin::after { content: ""; position: absolute; left: 9px; right: 0; top: -0.5px; border-top: 1px solid rgba(20, 107, 98, 0.55); }
.pin--bare::before { display: none; }
.pin--bare::after { left: 0; }
.ring {
  position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h);
  border: 1.5px solid var(--accent); border-radius: 999px; pointer-events: none;
}

/* ── your dictionary: a short bridge into dictation ───── */
.dictionary { padding: clamp(40px, 5vw, 72px) 0 clamp(8px, 1.5vw, 24px); }
.dictionary h2 { grid-column: 4 / span 6; font-size: clamp(1.55rem, 1.05rem + 1.1vw, 2.1rem); margin-bottom: 14px; }
.dictionary p { grid-column: 4 / span 6; font-size: 19px; line-height: 1.6; color: var(--ink-soft); }

/* ── dictation ────────────────────────────────────────── */
.dictation .grid { align-items: center; }
.dictation__copy { grid-column: 1 / span 5; }
.dictation__copy h2 { margin-bottom: 20px; }
.dictation__copy p { font-size: 18px; line-height: 1.62; color: var(--ink-soft); }
.dictation__copy p + p { margin-top: 16px; }
.dictation__copy .aside { color: var(--ink); font-weight: 500; }
.dictation figure { grid-column: 7 / -1; margin: 0; }
/* dictation demo: what you said, then what lands in the box */
.dd-said {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--ink); color: rgba(251, 247, 236, 0.92); border-radius: 14px;
  padding: 16px 18px; margin: 0 28px -14px; position: relative; z-index: 1;
  box-shadow: 0 10px 24px -14px rgba(28, 27, 24, 0.5); min-height: 92px;
}
.dd-raw { font-size: 15px; line-height: 1.55; font-style: italic; }
.dd-raw .f { color: #e7a38f; }
.dd-raw .c { color: var(--sage); font-style: normal; }
.dd-raw .w { opacity: 0; transition: opacity .12s; }
.dd-raw .w.on { opacity: 1; }
.dd-raw .f.gone { text-decoration: line-through; opacity: .45; transition: opacity .3s; }
.dd-mic { flex: none; display: flex; gap: 3px; align-items: center; height: 22px; margin-top: 1px; }
.dd-mic i { width: 3px; height: 6px; border-radius: 2px; background: var(--sage); }
.dd.listening .dd-mic i { animation: dd-bar .7s ease-in-out infinite alternate; }
.dd-mic i:nth-child(2) { animation-delay: .15s; } .dd-mic i:nth-child(3) { animation-delay: .3s; } .dd-mic i:nth-child(4) { animation-delay: .45s; }
@keyframes dd-bar { to { height: 20px; } }
.dd-win { background: #fff; padding-top: 22px; }
.dd-row { padding: 10px 20px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink); }
.dd-row span { color: var(--muted); margin-right: 10px; }
.dd-body { padding: 18px 20px 24px; min-height: 196px; }
.dd-out { font-size: 15.5px; line-height: 1.6; color: var(--ink); }
.dd-caret { display: inline-block; width: 1.5px; height: 1.1em; background: var(--accent); vertical-align: -0.18em; margin-left: 1px; animation: dd-blink 1s steps(1) infinite; }
@keyframes dd-blink { 50% { opacity: 0; } }

/* ── to-dos ───────────────────────────────────────────── */
.todos { padding-top: clamp(40px, 6vw, 88px); }
.todos .sec-grid { align-items: end; margin-bottom: clamp(36px, 4.5vw, 56px); }
.todos__lead { grid-column: 1 / span 6; }
.todos__lead h2 { margin-bottom: 18px; }
.todos__lead p { font-size: 19px; line-height: 1.6; color: var(--ink-soft); max-width: 30em; }
.todos .aside {
  grid-column: 8 / -1; font-size: 16px; line-height: 1.6; color: var(--ink-soft);
  border-top: 1px solid var(--line-strong); padding-top: 14px;
}
.todos figure { margin: 0; }
.shot--todo img { aspect-ratio: 1760 / 690; object-fit: cover; object-position: top; }

/* ── privacy ──────────────────────────────────────────── */
.privacy { background: var(--accent-deep); color: var(--cream); padding: clamp(80px, 11vw, 148px) 0; }
.privacy h2 { grid-column: 1 / span 6; color: var(--cream); font-size: clamp(2.3rem, 1.1rem + 3.2vw, 4.1rem); line-height: 1.04; }
.privacy__body { grid-column: 7 / -1; padding-top: 0.4em; }
.privacy p { font-size: 19px; line-height: 1.6; color: rgba(251, 247, 236, 0.86); max-width: 30em; }
.privacy p + p { margin-top: 20px; }
.privacy a { color: var(--cream); text-decoration-color: rgba(251, 247, 236, 0.5); }
.privacy a:hover { color: #fff; }

/* ── pricing and FAQ: reference, set smaller than the story ── */
.pricing { padding: clamp(80px, 10vw, 140px) 0 clamp(24px, 3vw, 40px); }
.pricing .wrap, .home-faq .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
.pricing .sec-head, .home-faq h2 { grid-column: 1 / span 4; margin-bottom: 24px; }
.home .pricing h2, .home .home-faq h2 { font-size: clamp(1.6rem, 1.15rem + 1vw, 2.1rem); line-height: 1.12; }
.pricing .sec-head h2 { margin-bottom: 12px; }
.pricing .sec-head p { font-size: 17px; max-width: 22em; }
.pricing .plans, .pricing .plans-micro { grid-column: 5 / -1; }
.home .plan li { padding-left: 0; }
.home .plan li::before { display: none; }
.home-faq { padding: clamp(40px, 5vw, 72px) 0 clamp(72px, 9vw, 128px); }
.home-faq .faq { grid-column: 5 / -1; max-width: none; }

/* ── finale: the close mirrors the open ───────────────── */
.finale { padding: clamp(72px, 10vw, 136px) 0 clamp(80px, 11vw, 144px); background: var(--paper-2); border-top: 1px solid var(--line); overflow-x: clip; }
@supports not (overflow: clip) { .finale { overflow: hidden; } }
.home .finale h2 {
  font-size: clamp(2.6rem, 1.1rem + 4.5vw, 5rem);
  font-weight: 440; line-height: 1.02; letter-spacing: -0.016em;
  /* breaks after "your" by measure: balanced wrapping misplaces the stroke anchor */
  max-width: 6.8em; text-wrap: wrap;
}
.finale p { font-size: 19px; color: var(--ink-soft); margin-top: 22px; }
.finale .cta-row { margin-top: 28px; }
.finale .micro { margin-top: 16px; font-size: 14px; color: var(--muted); }
.home .footer { background: var(--paper); }
.nw { white-space: nowrap; }

/* ── narrower screens ─────────────────────────────────── */
@media (max-width: 1099px) {
  .annot { display: flex; flex-direction: column; }
  .annot .shot-cap { order: 1; }
  .annot .contents { order: 2; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 28px; }
  .pin, .ring { display: none; }
  .contents li { position: static; transform: none; border-top: 1px solid var(--line-strong); padding-top: 12px; }
  .contents li::before { display: none; }
}
@media (max-width: 860px) {
  .grid, .pricing .wrap, .home-faq .wrap { display: block; }
  .hero { padding-top: 40px; }
  .hero__body { margin-top: 24px; }
  .problem p, .privacy__body { margin-top: 20px; padding-top: 0; }
  .dictionary h2, .dictionary p { max-width: 34rem; }
  .dictation figure { margin-top: 36px; }
  .todos .aside { margin-top: 24px; }
  .pricing .sec-head { margin-bottom: 28px; }
  .home-faq h2 { margin-bottom: 20px; }
}
@media (max-width: 640px) {
  .finale__wind { display: none; }
  .dd-body { min-height: 236px; }
  .dd-said { margin: 0 12px -14px; }
  .annot .contents { grid-template-columns: 1fr 1fr; gap: 18px 16px; }
  .contents strong { font-size: 18px; line-height: 23px; }
  .contents span { font-size: 14px; }
  .problem h2 .alt { padding-left: 1.1em; }
  .problem p, .sec-head p, .dictionary p, .todos__lead p, .privacy p, .finale p { font-size: 17px; }
  .dictation__copy p { font-size: 17px; }
  .shot--todo img { aspect-ratio: 1760 / 760; }
}

@media (prefers-reduced-motion: reduce) {
  .gust { will-change: auto; }
}
