/* The finish pass (26 Nov 2026), loaded last on every page. Warm paper, one type scale, one spacing scale (8 16 24 32 48 64 96 128),
   product windows on stage panels, a four-column footer. Page-wide parts first, then the home page (.home). */

/* ================= Page-wide ================= */

.btn { transition: background-color 150ms var(--ease-out), border-color 150ms var(--ease-out), color 150ms var(--ease-out), transform 150ms var(--ease-out); }
.btn:active:not(:disabled):not(.is-soon) { transform: scale(.98); }
html .btn:focus-visible, html .btn.primary:is([data-get], [data-pricing-intent]):focus-visible, html .btn.primary:focus-visible, html .btn.ghost:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Header: 60 px, the rule appears once the page scrolls. */
.topbar { height: 60px; border-bottom: 1px solid transparent; transition: border-color 150ms var(--ease-out); }
.topbar.scrolled { border-bottom-color: var(--line); }
.topbar-in { height: 59px; }
.topnav a[aria-current="page"] { background: none; color: var(--text); box-shadow: inset 0 -2px 0 var(--ink); }
.topbar .btn.primary.top-try { min-height: 40px; }
@media (max-width: 720px) { .topbar .btn.primary.top-try { min-height: 44px; } .topnav { top: 60px; } }

/* Footer: four columns, a quiet bottom row. */
.footer { margin-top: 0; padding: 64px 0 32px; background: #FFFFFF; border-top: 1px solid var(--line); }
.home .footer { margin-top: 0; }
.foot-cols { display: grid; grid-template-columns: minmax(0, 2fr) repeat(4, minmax(0, 1fr)); gap: 32px 40px; }
.foot-lead { display: grid; justify-items: start; align-content: start; gap: 16px; }
.foot-brand .mk rect { fill: var(--ink); }
.foot-brand .mk g { stroke: #FFFFFF; }
.foot-brand .mk .dot { fill: #FFFFFF; }
.foot-line { max-width: 28ch; margin: 0; color: var(--text2); font-size: 15px; line-height: 22px; }
.foot-h { margin: 0 0 8px; color: var(--text3); font: 500 12px/16px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.foot-cols nav { display: grid; justify-items: start; align-content: start; gap: 0; }
.foot-cols nav a { min-height: 32px; color: var(--text); font-size: 15px; }
.foot-cols nav a:hover { text-decoration: underline; }
.foot-lines { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 32px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.foot-mono { margin: 0; color: var(--text3); font: 400 12px/18px var(--mono); }
.foot-tm { max-width: 62ch; margin: 0; color: var(--text3); font-size: 12px; line-height: 18px; }
@media (max-width: 900px) { .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-lead { grid-column: 1 / -1; } .foot-cols nav a { min-height: 44px; } }

/* Eyebrows: mono, 12, uppercase. */
.eyebrow { margin: 0 0 16px; color: var(--text3); font: 500 12px/16px var(--mono); letter-spacing: .08em; text-transform: uppercase; }

/* The offer card on every page: ink, no yellow. */
.offer-pill { background: var(--ink); color: #FFFFFF; border-color: var(--ink); }
.offer-pill .offer-link, .offer-pill .offer-lead, .offer-pill .offer-x, .offer-pill .offer-chip { color: #FFFFFF; }
.offer-pill .offer-x:hover { background: rgba(255, 255, 255, .12); }
.offer-pill code { background: #FFFFFF; color: var(--ink); border-color: #8D8D8D; }
.offer-pill .btn.small { background: #FFFFFF; color: var(--ink); }

/* ================= Home ================= */

/* Type scale */
.home .pk-hero h1, .home .closing-panel h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(40px, 4.6vw, 64px); line-height: 1.04; letter-spacing: -0.035em; max-width: 14ch; text-wrap: balance; }
.home .pk-hero h1 { font-size: clamp(36px, 4.14vw, 57.6px); }
.home .pk-hero h1 .h1-soft { color: var(--text2); }
.home .pk-head h2, .home .pk-film h2, .home .pk-faq h2, .home #price .sec-c h2, .home #why h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(30px, 3.2vw, 44px); line-height: 1.1; letter-spacing: -0.028em; text-wrap: balance; }
.home .pk-hero .lead, .home .pk-head .lead, .home .pk-film .lead, .home #price .sec-c .lead { font-size: 19px; line-height: 30px; color: var(--text2); }
.home .story-text h3 { font-size: 28px; line-height: 34px; letter-spacing: -0.02em; }
.home .quotes q, .home .fit-card h3 { font-size: 20px; line-height: 26px; }
.home .caption, .home .demo-caption { font-size: 13px; line-height: 20px; }
@media (prefers-reduced-motion: no-preference) {
  .home .pk-hero h1 { animation: finish-rise 400ms var(--ease-out) both; }
  @keyframes finish-rise { from { opacity: 0; transform: translateY(8px); } }
}

/* Rhythm: 128 / 48 / 96; no rules between story rows. */
.home main > section { padding-block: clamp(80px, 9vw, 128px); }
.home main > .pk-hero { padding-block: clamp(64px, 6vw, 88px) 0; }
.home .pk-head { margin: 0 0 48px; max-width: 760px; }
.home .pk-head .lead { margin: 16px 0 0; }

/* Surfaces: warm paper bands, white cards with a line, ink links, yellow only in Problems. */
.home .pk-alt { background: var(--side); border-block: 1px solid var(--line); }
.home .quotes a, .home .fit-card, .home .plan, .home .proof-cards > li { background: #FFFFFF; border: 1px solid var(--line); }
.home .quotes a { text-decoration: none; }
.home .quotes a:hover { background: var(--side); border-color: var(--line); }
.home .quotes b { text-decoration: underline; text-underline-offset: 3px; }
.home .quotes mark { background: var(--mark); color: var(--on-mark); }
.home .pk-hero .eyebrow { margin-bottom: 24px; }

/* ---- Hero ---- */
.home .pk-hero-grid { align-items: stretch; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px clamp(40px, 5vw, 64px); }
.home .pk-hero .hero-text { padding-bottom: 48px; }
.home .pk-hero .hero-view { display: flex; flex-direction: column; justify-self: stretch; max-width: none; width: 100%; margin: 0; }
.home .hero-video { display: flex; flex: 1; flex-direction: column; margin: 0; }
.home .hero-media { display: flex; flex: 1; flex-direction: column; justify-content: flex-end; padding: 40px 40px 0; overflow: hidden; background: var(--stage); }
.home .hero-media .hv-box { flex: none; margin-bottom: -24px; border-radius: 0; }
.home .hero-media .win-bar { flex: none; }
.home .hero-media .product-tools { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: auto; margin: 0; padding: 0; }
.win-bar .product-segments button { min-height: 22px; padding: 0 6px; font-size: 12px; }
.home .hv-bar .product-tools { display: none; }

/* Seven thin segments and one caption line (each segment is a 44 px press area). */
.js .hero-video:not(.is-still) .hv-beats { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; height: 44px; margin: 8px 0 -36px; padding: 0; position: relative; z-index: 2; list-style: none; }
.js .hero-video:not(.is-still) .hv-beats li { position: relative; height: 44px; padding: 0; border: 0; font-size: 0; line-height: 0; color: transparent; }
.js .hero-video:not(.is-still) .hv-beats li::before { content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 2px; background: var(--line); transition: background-color 150ms var(--ease-out); }
.js .hero-video:not(.is-still) .hv-beats li:has(button[aria-current])::before { background: var(--ink); }
.js .hero-video:not(.is-still) .hv-beats button { width: 100%; height: 44px; padding: 0; color: transparent; }
.js .hero-video:not(.is-still) .hv-cap { display: block; flex: 1 1 0; margin: 0; color: var(--text); font-size: 15px; line-height: 22px; }
.home .hv-bar { justify-content: space-between; align-items: flex-start; gap: 16px; margin-top: 0; padding-top: 16px; }
.home .hv-bar .btn { position: relative; z-index: 3; }
@media (max-width: 900px) { .home .pk-hero .hero-text { padding-bottom: 0; } }
@media (max-width: 633px) { .home .hero-media { padding: 24px 16px 0; } .home .hero-media .hv-box { margin-bottom: -16px; } }

.home .pk-hero .facts { margin-top: 0; padding-block: 32px; }

/* ---- Story: switch in the head, rows on stage panels ---- */
.home .story-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; max-width: none; }
.home .story-head > div { max-width: 760px; }
.story-switch { display: inline-flex; padding: 2px; background: #FFFFFF; border: 1px solid var(--line); }
.story-switch button { min-height: 32px; padding: 0 16px; border: 0; background: none; color: var(--text2); font: 500 13px/1 var(--font); cursor: pointer; transition: background-color 150ms var(--ease-out), color 150ms var(--ease-out); }
.story-switch button[aria-pressed="true"] { background: var(--ink); color: #FFFFFF; }
@media (max-width: 720px) { .story-switch button { min-height: 44px; } }

.home .pk-story { border-top: 1px solid var(--line); }
.home .story-row { align-items: start; padding-block: clamp(56px, 7vw, 96px); border-top: 0; }
.home .story-row:first-child { padding-top: 0; }
.home .story-row:last-child { padding-bottom: 0; }
.home .story-n { display: block; width: auto; height: auto; margin: 0 0 16px; background: none; color: var(--text3); font: 400 13px/18px var(--mono); letter-spacing: .06em; }
.home .story-text p { font-size: 17px; line-height: 26px; }
.story-fig .product-tools { display: none; }
.home .story-fig { padding: clamp(20px, 3vw, 40px); background: var(--stage); }
.home .story-fig .demo-bar { margin-top: 16px; }
@media (max-width: 900px) { .home .story-row, .home .story-row:nth-child(even) { gap: 48px; } }

/* ---- Product windows ---- */
.win-bar { border-radius: var(--win-radius) var(--win-radius) 0 0; }
.story-fig .demo-stage, .hero-media .hv-box, .proof-shot .win-bar + img { border-radius: 0 0 var(--win-radius) var(--win-radius); box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 16px 40px rgba(0, 0, 0, .10); }
.hero-media .hv-box { border-radius: 0; }
[data-product-frame][data-product-mode="dark"] .demo-stage, [data-product-frame][data-product-mode="dark"] .hv-box { box-shadow: 0 1px 2px rgba(0, 0, 0, .2), 0 16px 40px rgba(0, 0, 0, .28); }

/* ---- Proof ---- */
.home .proof-shot { padding: clamp(20px, 3vw, 32px); background: var(--stage); }
.home .proof-shot figcaption { margin-top: 16px; }
.home .proof-stats dd { font-size: 56px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.home .proof-stats dt { font: 500 12px/16px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
@media (max-width: 420px) { .home .proof-stats dd { font-size: 36px; } }

/* ---- Founder ---- */
.home .founder { max-width: 640px; margin: 0 auto; padding: 32px; background: #FFFFFF; border: 1px solid var(--line); }
.home .founder p { font-family: var(--font); font-size: 20px; line-height: 32px; letter-spacing: 0; }
.home .founder a { color: var(--text); }
.home .founder .founder-sig { display: flex; align-items: center; gap: 16px; margin-top: 24px; color: var(--text2); font-size: 15px; line-height: 22px; }
.home .founder .founder-sig img { width: 48px; height: 48px; object-fit: cover; border-radius: 0; }
.home .founder .founder-sig a { margin-right: -8px; font-weight: 500; }

/* ---- Fit and Why ---- */
.home .fit-card p, .home .fit-card li { font-size: 15px; line-height: 22px; }

/* ---- Pricing ---- */
.home #price .sec-c { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.home #price .sec-c .lead { margin-inline: auto; }
.home .plans { max-width: 880px; margin: 0 auto; align-items: stretch; }
.home .plan { display: flex; flex-direction: column; height: auto; padding: 32px; }
.home .plan .btn { margin-top: auto; }
.home .plan-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; }
.home .plan-price .paid-once, .home .plan-price span { white-space: nowrap; }
.home .plan-main { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.home .plan-main h3, .home .plan-main .plan-price b, .home .plan-main li { color: #FFFFFF; }
.home .plan-main .plan-price, .home .plan-main .plan-price span, .home .plan-main .plan-price s { color: #C6C6C6; }
.home .plan-main li::before { border-color: #42BE65; }
.home .plan .offer-card { margin: 16px 0 0; padding: 12px 0; background: none; border: 0; border-block: 1px solid rgba(255, 255, 255, .2); color: #FFFFFF; font-size: 14px; line-height: 20px; }
.home .plan .offer-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; }
.home .plan .offer-card .offer-code { display: inline-flex; align-items: center; gap: 8px; height: auto; margin: 0; padding: 0; background: none; border: 0; color: #FFFFFF; }
.home .plan .offer-card code { background: #FFFFFF; color: var(--ink); border-color: #8D8D8D; }
.home .plan .offer-card .caption { margin: 8px 0 0; color: #C6C6C6; }
.home .plan-main .btn.primary { background: var(--cta-fill); }
.home .plans-foot { margin: 24px 0 0; text-align: center; }
.home .plan ul { margin-bottom: 32px; }

/* ---- Questions ---- */
.home .pk-faq .qs summary { position: relative; display: block; min-height: 0; padding: 20px 48px 20px 0; font-size: 17px; line-height: 26px; font-weight: 500; }
.home .pk-faq .qs summary::after { content: "+"; position: absolute; right: 8px; top: 50%; width: auto; height: auto; margin: 0; border: 0; transform: translateY(-50%); color: var(--text2); font: 400 24px/1 var(--font); transition: transform 200ms var(--ease-out); }
.home .pk-faq .qs details[open] summary::after { transform: translateY(-50%) rotate(45deg); top: 50%; }
.home .pk-faq .qs details p { max-width: 60ch; padding: 0 0 24px; }
.home .faq-contact { margin: 16px 0 0; max-width: 34ch; color: var(--text2); font-size: 17px; line-height: 26px; }
@media (prefers-reduced-motion: reduce) { .home .pk-faq .qs summary::after { transition: none; } }

/* ---- Closing: flat ink ---- */
.home .closing-panel { background: var(--ink); background-image: none; padding: clamp(96px, 10vw, 128px) var(--gutter); }
.home .closing-panel::after, .home .closing-panel::before { content: none; display: none; }
.home .closing-panel h2 { margin-inline: auto; color: #FFFFFF; }
.home .closing-panel .btn.primary.cta:not(.is-soon) { background: var(--cta-fill); color: #FFFFFF; }
.home .closing-panel .btn.primary.cta:not(.is-soon):hover { background: var(--cta-fill-hover); }
.home .closing-panel :focus-visible { outline: 2px solid #FFFFFF; outline-offset: 2px; }
.home .closing-panel .lead { margin-top: 24px; }
.home .closing-panel .trust-row { color: #C6C6C6; }

/* Phone: single caption line, 4:5 clip full width (hero-video.js picks it at 633 px and under). */
@media (max-width: 720px) { .home .pk-head { margin-bottom: 32px; } }
.home .pk-film .eyebrow, .home .closing-panel .eyebrow { color: #C6C6C6; }
html.offer-on .footer { padding-bottom: 128px; }
.offer-pill .offer-code { border-color: #8D8D8D; }
.foot-cols { grid-template-columns: minmax(0, 1.3fr) repeat(4, minmax(0, 1fr)); }
.home .pk-faq .qs summary::after { margin-top: 2px; }
@media (max-width: 900px) {
  .home .pk-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .home .pk-hero .hero-text { padding-bottom: 0; }
  .home .pk-hero .eyebrow { margin-bottom: 16px; }
  .home .hero-media { padding: 24px 16px 0; }
}
@media (max-width: 633px) { .home .hero-media { padding: 0; background: none; } .home .hero-media .hv-box { margin-bottom: 0; } }
.home .pk-film .lead { color: #E0E0E0; }

/* Hero bleed (lead, 26 Nov): the window fills the stage's width, starts 40 px down and is cut by the stage's bottom edge. */
@media (min-width: 901px) {
  .home .pk-hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .home .pk-hero .hero-view { margin-top: 40px; }
  .home .hero-media { justify-content: flex-start; padding: 40px 40px 0; min-height: 0; }
  .home .hero-media .hv-box { flex: 1 1 auto; aspect-ratio: auto; min-height: 380px; margin-bottom: 0; }
  .home .hero-media .hv-box video, .home .hero-media .hv-still, .home .hero-media .hv-still img { object-fit: cover; object-position: center top; }
}
@media (min-width: 901px) {
  .home .pk-hero .hero-view { align-self: start; }
  .home .hero-video { flex: none; }
  .home .hero-media { flex: none; }
  .home .hero-media .hv-box { flex: none; aspect-ratio: 1480 / 1096; min-height: 0; margin-bottom: -72px; }
  .home .hero-media .hv-box video, .home .hero-media .hv-still, .home .hero-media .hv-still img { object-fit: contain; object-position: center top; }
}
@media (min-width: 1024px) { .home .pk-hero .hero-text .eyebrow { width: max-content; max-width: none; white-space: nowrap; } }

/* Every page but the home page: the one-line bottom bar at any width (the home page keeps the card after #price). */
.offer-float.offer-slim { left: auto; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); max-width: min(520px, calc(100vw - 32px)); }
.offer-slim .offer-pill { display: flex; width: 100%; flex-wrap: nowrap; justify-content: flex-start; gap: 8px; padding: 0 0 0 16px; min-height: 46px; white-space: nowrap; animation: none; }
.offer-slim .offer-wide { display: none; }
.offer-slim .offer-narrow { display: inline-flex; }
.offer-slim .offer-lead { align-items: center; min-height: 44px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.offer-slim .offer-chip { align-items: center; min-height: 44px; padding: 0; border: 0; background: transparent; color: #FFFFFF; font: inherit; cursor: pointer; }
.offer-slim .offer-chip span { min-width: 9.5ch; padding: 2px 8px; border: 1px dashed #8D8D8D; background: #FFFFFF; color: var(--ink); font-family: var(--mono); font-size: 13px; font-weight: 600; text-align: center; }
.offer-slim .offer-pill .offer-x { position: static; width: 44px; height: 44px; margin-left: auto; flex: none; }
@media (max-width: 720px) { .offer-float.offer-slim { left: 12px; right: 12px; max-width: none; } }
html.offer-on .footer { padding-bottom: 96px; }

/* Whole app in the hero (owner 26 Nov): the full-window recording (1480 x 1096) has backdrop around the app window
   (x 12-1468, y 66-1026), so the box takes the window's shape and the picture is scaled and shifted to fill it; no grey bands, no bleed. */
@media (min-width: 634px) {
  .home .hero-media { padding: 32px; background: var(--stage); border: 1px solid var(--line); }
  .home .hero-media .hv-box { aspect-ratio: 1452 / 956; min-height: 0; margin-bottom: 0; }
  .home .hero-media .hv-box video.hv-wide, .home .hero-media .hv-still img {
    inset: auto; left: -0.964%; top: -7.113%; width: 101.928%; height: 114.644%; max-width: none; object-fit: fill; }
  .home .hero-media .hv-still { inset: 0; }
}

/* Icon controls (owner 26 Nov): Pause/Play/Replay and Light/Dark are icons everywhere; the word is hidden text and the tooltip. */
:is(.hv-bar, .demo-controls) .btn.icon-control { display: inline-grid; place-items: center; width: 32px; min-height: 32px; padding: 0; }
.product-segments button.icon-control { display: grid; place-items: center; width: 32px; min-height: 30px; padding: 0; text-decoration: none; }
.product-segments:has(> .icon-control) { gap: 0; border: 1px solid var(--line); background: var(--win); }
.product-segments > .icon-control + .icon-control { border-left: 1px solid var(--line); }
.product-segments button.icon-control:hover { color: var(--text); background: var(--hover); }
.product-segments button.icon-control[aria-pressed="true"] { color: var(--text); background: var(--tint); text-decoration: none; }
.icon-control svg { display: block; }
@media (max-width: 633px) { :is(.hv-bar, .demo-controls) .btn.icon-control { width: 44px; min-height: 44px; } .product-segments button.icon-control { width: 44px; min-height: 42px; } }
.home .hv-bar .product-tools.hv-modes { display: flex; flex: none; width: auto; margin: 0 0 0 auto; padding: 0; }
.home .hv-bar .hv-cap { flex: 1 1 auto; min-width: 0; }
@media (min-width: 634px) { .home .hero-media .win-bar { display: none; } }

/* Hero top (owner 26 Nov): room under the top bar, the eyebrow tied to the headline, and the video starting level with the eyebrow. */
.home main > #top.pk-hero { padding-top: 48px; }
.home .pk-hero .eyebrow { margin-bottom: 16px; }
@media (min-width: 901px) { .home .pk-hero .hero-view { margin-top: 0; } }
@media (max-width: 633px) { .home main > #top.pk-hero { padding-top: 32px; } }
/* Hero hierarchy (owner 26 Nov): headline, subheadline (.lead), then one quieter proof line. */
.home .pk-hero .hero-proof { margin: 12px 0 0; max-width: 46ch; color: var(--text2); font-size: 15px; line-height: 23px; }
.home .pk-hero h1 { font-size: clamp(28px, 2.8vw, 40px); max-width: 22ch; }

/* Hero backdrop (owner 26 Nov): a faint dot grid that fades out, plus two soft glows (brand maroon behind the video, violet at top left). */
.home main > #top.pk-hero { position: relative; isolation: isolate; overflow: hidden; }
.home main > #top.pk-hero::before, .home main > #top.pk-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.home main > #top.pk-hero::before {
  background-image: radial-gradient(circle, color-mix(in srgb, var(--text) 22%, transparent) 1px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 35%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 60% 35%, #000 20%, transparent 75%);
}
.home main > #top.pk-hero::after {
  background:
    radial-gradient(ellipse 60% 75% at 72% 45%, color-mix(in srgb, var(--cta-fill) 18%, transparent), transparent 72%),
    radial-gradient(ellipse 45% 55% at 8% 0%, color-mix(in srgb, #7c5cff 16%, transparent), transparent 70%);
}
@media (prefers-reduced-transparency: reduce) { .home main > #top.pk-hero::after { display: none; } }

/* Hero step bar (owner 26 Nov): visible rounded tracks; steps already shown stay half-filled; the current one fills over its 2.8 s and stops while paused. */
.js .hero-video:not(.is-still) .hv-beats li::before { top: 6px; height: 3px; border-radius: 3px; background: color-mix(in srgb, var(--text) 14%, transparent); }
.js .hero-video:not(.is-still) .hv-beats li:has(~ li button[aria-current])::before { background: color-mix(in srgb, var(--ink) 45%, transparent); }
.js .hero-video:not(.is-still) .hv-beats li:has(button[aria-current])::before { background: color-mix(in srgb, var(--text) 14%, transparent); }
.js .hero-video:not(.is-still) .hv-beats li:has(button[aria-current])::after {
  content: ""; position: absolute; left: 0; top: 6px; height: 3px; width: 100%; border-radius: 3px; background: var(--ink);
  transform-origin: left center; animation: hv-fill 2.8s linear both; pointer-events: none; }
.js .hero-video:not(.is-still) .hv-beats li:hover::before { background: color-mix(in srgb, var(--text) 30%, transparent); }
.hero-video:has(.hv-pause[aria-pressed="true"]) .hv-beats li::after { animation-play-state: paused; }
@keyframes hv-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .js .hero-video .hv-beats li::after { animation: none; } }

/* Hero window (owner 26 Nov): a Mac-like window shadow and corners on the app recording. */
@media (min-width: 634px) {
  .home .hero-media .hv-box { border-radius: 10px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .07), 0 1px 2px rgba(0, 0, 0, .04), 0 18px 40px -14px rgba(0, 0, 0, .16); }
  [data-product-frame][data-product-mode="dark"] .hero-media .hv-box { box-shadow: 0 0 0 1px rgba(255, 255, 255, .10), 0 18px 40px -14px rgba(0, 0, 0, .45); }
}

/* Stage boxes (owner 26 Nov): every grey box behind a video or picture gets the same thin border as the hero. */
.home .story-fig, .home .proof-shot { border: 1px solid var(--line); }

/* How it works, pinned (owner 26 Nov; js/story-pin.js): step texts scroll on the left, one sticky stage on the right shows the current step. */
@media (min-width: 901px) {
  .home .story-pin { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
  .home .story-rows.is-pinned { margin: 0; }
  .home .story-rows.is-pinned > .story-row { display: block; min-height: 70vh; padding-block: 0; border: 0; }
  .home .story-rows.is-pinned > .story-row:last-child { min-height: 40vh; }
  .home .story-rows.is-pinned .story-text { padding-top: 8vh; opacity: .32; transition: opacity 400ms var(--ease-out); }
  .home .story-rows.is-pinned > .story-row:first-child .story-text { padding-top: 0; }
  .home .story-rows.is-pinned > .story-row.is-current .story-text { opacity: 1; }
  .home .story-pin-stage { position: sticky; top: 96px; }
  .home .story-pin-stage > .story-fig { display: none; margin: 0; }
  .home .story-pin-stage > .story-fig.is-current { display: block; }
  .home .story-pin-stage > .story-fig.pin-in { animation: pin-in 520ms var(--ease-out) both; }
}
@keyframes pin-in { from { opacity: 0; transform: translateY(14px) scale(.985); } }
@media (prefers-reduced-motion: reduce) { .home .story-pin-stage > .story-fig.pin-in { animation: none; } .home .story-rows.is-pinned .story-text { transition: none; } }

/* Story Light/Dark beside Pause and Replay (owner 26 Nov); the head switch stays in the page for the sync but is not shown. */
.home .story-fig .product-tools { display: flex; width: auto; margin: 0; padding: 0; }
.home .story-head .story-switch { display: none; }
/* Story stage padding (owner 26 Nov): tighter, so the pinned box fits one window. */
.home .story-fig { padding: 16px 20px; }
@media (min-width: 901px) { .home .story-pin-stage { top: 76px; } }
/* Caption and controls share one row under each story video, so the pinned box fits a laptop window. */
.home .story-fig .demo-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.home .story-fig .demo-bar .demo-caption { flex: 1 1 auto; min-width: 0; margin: 0; }
.home .story-fig .demo-bar .demo-controls { flex: none; margin: 0; }
html.js:not(.still) .home .story-fig.demo:not(.failed) .demo-bar { min-height: 0; height: auto; margin-top: 12px; padding: 0; }
.home .story-fig .demo-steps { margin: 0; }

/* Motion (owner 26 Nov). Off under reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  /* Scroll reveal (js/home-motion.js adds .mo below the fold, then .in). */
  .home .mo { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 800ms var(--ease-out); transition-delay: var(--mo-d, 0ms); }
  .home .mo.proof-shot { transform: translateY(32px) scale(.98); }
  .home .mo.in { opacity: 1; transform: none; }
  /* Hero entrance: eyebrow, headline, sentence, buttons, then the window. */
  .home .pk-hero .hero-text > * { animation: mo-rise 700ms var(--ease-out) both; }
  .home .pk-hero .hero-text > :nth-child(2) { animation-delay: 80ms; }
  .home .pk-hero .hero-text > :nth-child(3) { animation-delay: 160ms; }
  .home .pk-hero .hero-text > :nth-child(4) { animation-delay: 240ms; }
  .home .pk-hero .hero-text > :nth-child(n+5) { animation-delay: 300ms; }
  .home .pk-hero .hero-view { animation: mo-window 900ms 200ms var(--ease-out) both; }
  /* The hero window drifts up a little as the page starts to scroll (browsers with scroll-driven animations). */
  @supports (animation-timeline: scroll()) {
    .home .hero-media .hv-box { animation: mo-float linear both; animation-timeline: scroll(root); animation-range: 0 640px; }
  }
}
@keyframes mo-rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes mo-window { from { opacity: 0; transform: translateY(24px) scale(.97); } }
@keyframes mo-float { to { transform: translateY(-20px); } }

/* Proof: a link to the app the numbers describe (owner 26 Nov). */
.home .proof-link { margin: 0; font-size: 15px; line-height: 22px; }
.home .proof-link a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.home .proof-link a:hover { text-decoration-thickness: 2px; }
.home .proof-rating { display: grid; gap: 2px; margin: 0; color: var(--text2); font-size: 14px; line-height: 21px; }

/* Windows (owner 26 Nov): a quiet second button beside Download that jumps to the Windows email sign-up, which then flashes. */
.home .pk-hero .cta-row .btn.cta-windows { min-height: 48px; padding-inline: 20px; background: var(--win); border: 1px solid var(--line); color: var(--text); font-size: 15px; font-weight: 500; }
.home .pk-hero .cta-row .btn.cta-windows:hover { background: var(--hover); }
.home .notify:has(#notify-email:target) { animation: notify-flash 1.6s var(--ease-out) 1; }
.home #notify-email:target { scroll-margin-top: 40vh; }
@keyframes notify-flash { 0%, 40% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 45%, transparent); } 100% { box-shadow: 0 0 0 3px transparent; } }

/* Black Friday in the hero (owner 26 Nov): the offer next to the decision, not only in the corner card. Shown by site.js offer() while it runs. */
.home .pk-hero .hero-offer { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; width: fit-content; max-width: 100%; margin: 16px 0 0; padding: 8px 10px 8px 12px; border: 1px solid color-mix(in srgb, var(--cta-fill) 35%, var(--line)); background: color-mix(in srgb, var(--cta-fill) 7%, var(--win)); color: var(--text); font-size: 14px; line-height: 20px; }
.home .pk-hero .hero-offer[hidden] { display: none; }
.home .pk-hero .hero-offer b { color: var(--cta-fill); font-weight: 600; }
.home .pk-hero .hero-offer code { padding: 1px 6px; border: 1px dashed color-mix(in srgb, var(--cta-fill) 50%, var(--line)); background: var(--win); font-size: 13px; }
.home .pk-hero .hero-offer .btn.small { min-height: 26px; padding: 0 10px; font-size: 13px; }
.home .pk-hero .hero-offer a { color: var(--text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Hero actions in one column (owner 26 Nov): the two buttons, the Homebrew box and the offer box share one width. */
@media (min-width: 634px) {
  .home .pk-hero .cta-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; max-width: 460px; }
  .home .pk-hero .cta-row > .btn { width: 100%; padding-inline: 12px; }
  .home .pk-hero .cta-row > .brew { grid-column: 1 / -1; max-width: none; }
  .home .pk-hero .brew-chip { display: flex; width: 100%; }
  .home .pk-hero .brew-chip code { flex: 1 1 auto; }
  .home .pk-hero .hero-offer { width: 100%; max-width: 460px; box-sizing: border-box; justify-content: space-between; }
}
@media (min-width: 634px) {
  .home .pk-hero .hero-offer { flex-wrap: nowrap; justify-content: flex-start; gap: 6px; padding: 8px 10px; white-space: nowrap; }
  .home .pk-hero .hero-offer a { margin-left: auto; }
  .home .pk-hero .hero-offer code { padding: 1px 4px; }
}
