/* The homepage. Apple-style pacing: big type, generous air, one idea per
   screen, and motion that follows the scroll instead of playing on its own.
   Everything degrades to a static, readable page without JS or with
   prefers-reduced-motion. */

.site-main { overflow-x: clip; }
.h-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.h-head h2, .h-split h2, .h-final h2 { font-size: clamp(32px, 5.4vw, 56px); line-height: 1.05; letter-spacing: -0.035em; margin-bottom: 18px; }
.h-sub { font-size: clamp(17px, 2vw, 21px); line-height: 1.5; color: var(--text-dim); }
.h-section { padding: clamp(72px, 10vw, 128px) 0; }
/* Two sections on the same background share one gap, not two paddings stacked. */
.h-section:not(.h-alt):not(.h-dark) + .h-section:not(.h-alt):not(.h-dark) { padding-top: 0; }
.h-alt { background: var(--bg-panel); border-block: 1px solid var(--line); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }

/* ---- hero ---- */
.h-hero { padding-top: clamp(56px, 9vw, 112px); text-align: center; position: relative; }
.h-hero::before {
  content: ''; position: absolute; inset: -20% 0 auto; height: 900px; pointer-events: none; z-index: -1;
  background: radial-gradient(60% 50% at 50% 30%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%);
}
.h-hero h1 { font-size: clamp(44px, 8.6vw, 96px); line-height: 1; letter-spacing: -0.045em; margin: 0 auto 22px; max-width: 14ch; }
/* Phones: the three lines fill the width ("One link for" is the widest). */
@media (max-width: 600px) { .h-hero h1 { font-size: min(16.4vw, 96px); line-height: .98; max-width: none; } }
.h-lede { font-size: clamp(18px, 2.2vw, 22px); line-height: 1.5; color: var(--text-dim); max-width: 640px; margin: 0 auto 30px; }
.h-hero .claim { margin: 0 auto 14px; max-width: 540px; }
.h-note { display: inline-flex; align-items: center; gap: 6px; }
.h-note svg { color: var(--accent); }

/* ---- New on makerhandle: live totals (once they are worth showing) and real makers ---- */
.proof-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px clamp(32px, 7vw, 88px); margin: -12px 0 56px; }
.proof-stats div { display: grid; text-align: center; }
.proof-stats dt { order: 2; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-faint); }
.proof-stats dd { margin: 0; font-size: clamp(34px, 5vw, 52px); font-weight: 700; line-height: 1.1; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.proof-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1000px) { .proof-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* On a phone, two across: each card stacks its face over the name (site.css, .mk-card container). */
@media (max-width: 640px) {
  .proof-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .proof-strip .mk-card { padding: 14px; gap: 10px; }
}
.proof-more { margin-top: 40px; }

/* The hero stage, tied to the scroll (home.js writes the transforms, rAF only,
   transform only): coming into view, the devices lie tilted back and small,
   then stand up flat and full size while the phone slides in from below. The
   pages inside stay still. Phones get the same, gentler. Without JS or with
   reduced motion it is a still picture. */
.h-stage { margin: clamp(48px, 7vw, 88px) auto 0; max-width: 1180px; padding: 0 var(--gutter); }
.js .hero-devices { transform-origin: 50% 0; will-change: transform; }
/* Phones: the laptop's base and the phone stay inside the screen, as in the tour. */
@media (max-width: 700px) { .hero-devices { padding-inline: 6%; } .hero-devices .device-phone { right: 6%; } .hero-devices .device-desktop::after { margin: 0 -4%; } }
.js .hero-devices .device-phone { will-change: transform; }
/* Scroll-linked where supported (.sda, home.js): the browser runs it with the scroll,
   so the devices never trail it. Same curve and travel as heroFrame. */
@keyframes hero-in { from { transform: perspective(1600px) translate3d(0, 5%, 0) rotateX(30deg) scale(.78); } to { transform: none; } }
@keyframes hero-phone { from { transform: translate3d(32%, 36%, 0) rotate(7deg); } to { transform: none; } }
@media (max-width: 700px) { @keyframes hero-in { from { transform: perspective(900px) translate3d(0, 5%, 0) rotateX(20deg) scale(.84); } to { transform: none; } } }
@media (prefers-reduced-motion: no-preference) {
  .sda .h-pin { view-timeline: --hero block; }
  .sda .hero-devices, .sda .hero-devices .device-phone { animation-timing-function: cubic-bezier(.33, 1, .68, 1); animation-fill-mode: both; animation-timeline: --hero; animation-range: entry 0% entry 100%; }
  .sda .hero-devices { animation-name: hero-in; }
  .sda .hero-devices .device-phone { animation-name: hero-phone; }
}
@media (prefers-reduced-motion: reduce) { .js .h-stage::after { display: none; } .js .h-pin { position: static; } .js .hero-devices, .js .hero-devices .device-phone, .js .hero-page { will-change: auto; } }

/* A screen with a page taller than itself. --u is one CSS pixel of the page shown. */
.hero-screen { container-type: inline-size; }
.hero-page { position: absolute; inset: 0 0 auto; }
.hero-page img, .device-screen .hero-page img { position: static; display: block; width: 100%; height: auto; }
.hero-bar { --u: calc(100cqw / 1280); position: absolute; inset: 0 0 auto; z-index: 1; display: flex; align-items: center; gap: calc(14 * var(--u)); height: calc(68 * var(--u)); padding: 0 calc(84 * var(--u)); background: #1d1c1a; text-align: left; border-bottom: calc(1 * var(--u)) solid rgba(255, 255, 255, .08); color: #f0eee6; font-size: calc(19 * var(--u)); letter-spacing: -0.01em; transform: translateY(-105%); opacity: 0; transition: transform .45s cubic-bezier(.2, .7, .2, 1), opacity .3s ease; pointer-events: none; }
.hero-screen.is-condensed .hero-bar { transform: none; opacity: 1; }
.hb-av { flex: none; width: calc(38 * var(--u)); height: calc(38 * var(--u)); border-radius: 50%; background: #2a2724 url(/static/demo/avatar.svg) center / cover; box-shadow: 0 0 0 calc(2 * var(--u)) rgba(255, 255, 255, .12); }
.hero-bar b { flex: 1; font-weight: 700; }
.hb-rev { font: 600 calc(15 * var(--u)) var(--mono); color: #b5b2a8; }
.hb-btn { padding: calc(9 * var(--u)) calc(18 * var(--u)); border-radius: calc(10 * var(--u)); background: #e0805c; color: #1a1918; font-weight: 700; font-size: calc(15 * var(--u)); }
.device-phone .hero-bar { --u: calc(100cqw / 390); gap: calc(10 * var(--u)); height: calc(60 * var(--u)); padding: 0 calc(16 * var(--u)); font-size: calc(17 * var(--u)); }
.device-phone .hb-av { width: calc(32 * var(--u)); height: calc(32 * var(--u)); }
.hb-share { flex: none; width: calc(34 * var(--u)); height: calc(34 * var(--u)); border-radius: 50%; background: #e0805c; }

/* ---- devices ---- */
.devices { container-type: inline-size; position: relative; display: grid; color: inherit; cursor: pointer; grid-template-columns: 1fr; padding-right: 8%; padding-bottom: 6%; }
.device { position: relative; }
.device-desktop { border-radius: 18px; padding: 12px 12px 0; background: linear-gradient(#33302c, #1f1d1b); box-shadow: 0 0 0 1px rgba(255,255,255,.06) inset, 0 40px 80px -20px rgba(0,0,0,.55); }
.device-desktop::after { content: ''; display: block; height: 18px; margin: 0 -40px; background: linear-gradient(#45413c, #26231f); border-radius: 0 0 16px 16px; clip-path: polygon(0 0, 100% 0, 97% 100%, 3% 100%); }
.device-desktop .device-screen { aspect-ratio: 1280 / 800; border-radius: 6px 6px 0 0; }
/* An iPhone's corners are about 14% of its width; the bezel and screen corners
   scale with the frame (cqw: the .devices width) instead of fixed pixels. */
.device-phone { --pw: 23cqw; position: absolute; right: 0; bottom: 0; width: var(--pw); min-width: 110px; padding: calc(var(--pw) * .035); border-radius: calc(var(--pw) * .15); background: #141312; box-shadow: 0 0 0 1px rgba(255,255,255,.1) inset, 0 30px 60px -10px rgba(0,0,0,.6); }
.device-phone .device-screen { aspect-ratio: 390 / 844; border-radius: calc(var(--pw) * .115); }
.device-screen { position: relative; overflow: hidden; background: #1c1b19 linear-gradient(160deg, #262523, #1c1b19 60%); }
.device-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: opacity .45s ease; }
/* With the script, a screenshot fades in once decoded; without it, it just shows. */
.js .device-screen img:not(.is-loaded) { opacity: 0; }

@media (max-width: 600px) { .device-phone { --pw: 30cqw; } .device-desktop { border-radius: 10px; padding: 6px 6px 0; } }

/* The frames link to sign-up: they lift a little under the pointer. */
a.devices:hover { text-decoration: none; }
@media (hover: hover) { a.devices:not(.hero-devices) .device { transition: transform .4s cubic-bezier(.2,.7,.2,1); } a.devices:not(.hero-devices):hover .device-desktop { transform: translateY(-4px); } a.devices:not(.hero-devices):hover .device-phone { transform: translateY(-8px); } }

/* ---- audience marquee ---- */
.h-marquee { overflow: hidden; padding: 28px 0; margin-top: clamp(40px, 6vw, 72px); border-block: 1px solid var(--line); background: var(--bg-panel); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 10px; width: max-content; animation: marquee 40s linear infinite; }
.h-marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---- template tour ----
   Wide screens with the script: .tour is a tall track and .tour-pin (words on
   the left, devices on the right) stays put while it scrolls past. home.js
   turns the scroll into one step index, shows that step's words as one block
   and fades the devices to its screenshots. Without the script it is the list
   beside sticky devices; phones get the words over their own devices. */
.h-tour { padding: clamp(80px, 12vw, 150px) 0 40px; }
.tour { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; }
.tour-pin { display: contents; }
.tour-steps { list-style: none; margin: 0; padding: 0; }
.tour-step { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.tour-n { font-family: var(--mono); color: var(--accent); font-size: 14px; }
.tour-step h3 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.03em; display: flex; align-items: center; gap: 12px; }
.tour-step p { font-size: 19px; color: var(--text-dim); max-width: 34ch; }
.tour-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.pro-tag { font: 700 11px var(--mono); letter-spacing: .04em; padding: 3px 8px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); }
.tour-stage { position: sticky; top: calc(50vh - 260px); height: 520px; display: flex; align-items: center; }
/* Every screenshot sits on its own layer from the start, so a crossfade never
   moves one between layers (which snapped it a pixel), and the sticky top is a
   whole pixel so nothing is rasterised at a half-pixel offset. */
.tour-stage { top: round(calc(50vh - 260px), 1px); }
.tour-stage .device-screen img { will-change: opacity; transform: translateZ(0); backface-visibility: hidden; }
.tour-stage .devices { width: 100%; }
@media (min-width: 961px) {
  .js .tour { display: block; }
  /* The distance the pin holds still: one stretch of scroll per template. */
  .js .tour::after { content: ''; display: block; height: calc(var(--n) * 60vh); }
  /* --tour-top (home.js) is a whole pixel, centred in what the site header leaves.
     data-pin (home.js): in the page before the tour, fixed to the screen through
     it, resting at its end after. The padding keeps the tour's height the same in
     every state. Fixed, not sticky: Safari shook a sticky pin 1 to 2px. */
  .js .tour { position: relative; }
  .js .tour-pin { position: relative; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; align-items: center; }
  .js .tour[data-pin='fixed'], .js .tour[data-pin='after'] { padding-top: var(--pin-h); }
  .js .tour[data-pin='fixed'] .tour-pin { position: fixed; top: var(--tour-top); left: var(--pin-left); width: var(--pin-w); z-index: 1; }
  .js .tour[data-pin='after'] .tour-pin { position: absolute; left: 0; right: 0; bottom: 0; }
  .js .tour-stage { position: relative; top: 0; height: auto; }
  /* Every step's words share one cell and only the active one shows: number,
     name, line and buttons as one block. The old block is gone (.15s) before
     the new one starts (.17s), so two templates never share the screen. */
  .js .tour-steps { display: grid; }
  .js .tour-step { grid-area: 1 / 1; min-height: 0; opacity: 0; transform: translate3d(0, 18px, 0); pointer-events: none; will-change: opacity, transform; transition: opacity .15s ease, transform .15s ease; }
  .js .tour-step.is-past { transform: translate3d(0, -18px, 0); }
  .js .tour-step.is-active { opacity: 1; transform: translate3d(0, 0, 0); pointer-events: auto; transition: opacity .3s ease .17s, transform .55s cubic-bezier(.2,.7,.2,1) .17s; }
}
@media (min-width: 961px) and (prefers-reduced-motion: reduce) {
  .js .tour-step, .js .tour-step.is-past, .js .tour-step.is-active { transform: none; }
}
.tour-mobile { display: none; }
@media (max-width: 960px) {
  .tour { grid-template-columns: 1fr; }
  .tour-stage { display: none; }
  .tour-step { min-height: 0; opacity: 1; padding: 36px 0; border-top: 1px solid var(--line); }
  /* One column: the words sit centred over their devices. */
  .tour-step { align-items: center; text-align: center; }
  .tour-step h3, .tour-actions { justify-content: center; }
  .tour-step p { margin-inline: auto; }
  .tour-mobile { align-self: stretch; }
  .tour-mobile { display: block; margin-top: 22px; perspective: 1100px; }
  /* Centred, and the laptop's base stays inside the page. */
  .tour-mobile .devices { padding-inline: 6%; }
  .tour-mobile .device-phone { right: 6%; }
  .tour-mobile .device-desktop::after { margin: 0 -4%; }
  /* Each pair tilts up and settles as it scrolls into view (--t: 0 to 1, from home.js). */
  .js .tour-mobile .device-desktop { transform-origin: 50% 100%; transform: rotateX(calc((1 - var(--t, 1)) * 24deg)) scale(calc(.86 + var(--t, 1) * .14)); }
  .js .tour-mobile .device-phone { transform: translate(calc((1 - var(--t, 1)) * 8%), calc((1 - var(--t, 1)) * 26%)) rotate(calc((1 - var(--t, 1)) * 7deg)); }
  .js .tour-mobile .devices { opacity: calc(.5 + var(--t, 1) * .5); }
  /* Scroll-linked where supported, instead of --t from script. */
  .sda .tour-mobile .devices { view-timeline: --pair block; opacity: 1; }
  .sda .tour-mobile .devices, .sda .tour-mobile .device-desktop, .sda .tour-mobile .device-phone { animation-timing-function: linear; animation-fill-mode: both; animation-timeline: --pair; animation-range: entry 0% entry 100%; }
  .sda .tour-mobile .devices { animation-name: pair-fade; }
  .sda .tour-mobile .device-desktop { transform: none; animation-name: pair-desk; }
  .sda .tour-mobile .device-phone { transform: none; animation-name: pair-phone; }
}
@keyframes pair-fade { from { opacity: .5; } to { opacity: 1; } }
@keyframes pair-desk { from { transform: rotateX(24deg) scale(.86); } to { transform: none; } }
@keyframes pair-phone { from { transform: translate(8%, 26%) rotate(7deg); } to { transform: none; } }
@media (max-width: 960px) and (prefers-reduced-motion: reduce) {
  .js .tour-mobile .device-desktop, .js .tour-mobile .device-phone { transform: none; }
  .js .tour-mobile .devices { opacity: 1; }
  .sda .tour-mobile .devices, .sda .tour-mobile .device-desktop, .sda .tour-mobile .device-phone { animation: none; }
}
.h-tour { overflow-x: clip; }

/* ---- verified revenue ---- */
.h-dark { background: #141312; color: #f0eee6; --text-dim: #b5b2a8; border-block: 1px solid #2a2926; }
.h-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
@media (max-width: 900px) { .h-split { grid-template-columns: 1fr; } }
.h-split .h-sub { margin-bottom: 26px; }
.ticks { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 12px; font-size: 17px; }
.ticks li { display: flex; align-items: center; gap: 10px; }
.ticks svg, .rev-foot svg, .h-dark .accent { color: #d97757; }
.rev-card { background: linear-gradient(160deg, #2a2622, #1c1a18); border: 1px solid #3d3631; border-radius: 26px; padding: 28px; box-shadow: 0 40px 100px -30px rgba(217,119,87,.32); display: grid; gap: 14px; }
.rev-top { display: flex; align-items: center; gap: 14px; }
.rev-top > span:nth-child(2) { flex: 1; display: grid; line-height: 1.3; }
.rev-logo { width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, #f59e0b, #ef4444); }
.rev-big { font-size: clamp(56px, 8vw, 84px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.rev-big .dim { font-size: .35em; font-weight: 500; letter-spacing: 0; }
.rev-spark { width: 100%; height: 70px; }
.rev-spark path, .dash-line { fill: none; stroke: #d97757; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s cubic-bezier(.2,.7,.2,1) .2s; }
.in .rev-spark path, .in .dash-line, .in.dash .dash-line { stroke-dashoffset: 0; }
.rev-foot { display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid #3d3631; }
.rev-foot span:last-child { display: grid; line-height: 1.35; }

/* ---- analytics mock ---- */
.dash { max-width: 980px; margin: 0 auto; background: var(--bg-raised); border: 1px solid var(--line); border-radius: 24px; padding: clamp(18px, 3vw, 32px); box-shadow: var(--shadow-sheet); color: var(--accent); }
.dash > * { color: var(--text); }
.dash-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 22px; font-size: 15px; }
.dash-range { margin-left: auto; font-size: 13px; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line); color: var(--text-dim); }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #2fa85a; box-shadow: 0 0 0 0 rgba(47,168,90,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(47,168,90,0); } 100% { box-shadow: 0 0 0 0 rgba(47,168,90,0); } }
.dash-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
@media (max-width: 700px) { .dash-kpis { grid-template-columns: repeat(2, 1fr); } }
.dash-kpis div { display: grid; gap: 2px; padding: 14px; border-radius: 14px; background: var(--bg-panel); border: 1px solid var(--line); }
.dash-kpis b { font-size: clamp(22px, 3vw, 30px); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.up, .down { font-size: 12.5px; font-weight: 600; }
.up { color: var(--chip-ok-fg); } .down { color: var(--chip-ok-fg); }
.dash-chart { width: 100%; height: clamp(120px, 20vw, 180px); color: var(--accent); display: block; margin-bottom: 18px; }
.dash-area { fill: url(#dash-fill); opacity: 0; transition: opacity 1s ease .9s; }
.in .dash-area { opacity: 1; }
.dash-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 700px) { .dash-cols { grid-template-columns: 1fr; } }
.dash-cols h4 { font-size: 13px; color: var(--text-dim); margin: 0 0 8px; }
.bar-row { position: relative; display: flex; justify-content: space-between; gap: 10px; padding: 7px 10px; font-size: 14px; border-radius: 7px; overflow: hidden; }
.bar-row i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--accent-soft); border-radius: 7px; transition: width 1.1s cubic-bezier(.2,.7,.2,1); z-index: 0; }
.in .bar-row i { width: var(--w); }
.bar-row span { position: relative; }

/* ---- features bento ---- */
.bento-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 1000px) { .bento-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .bento-grid { grid-template-columns: 1fr; } }
.tile { display: grid; gap: 10px; align-content: start; padding: 26px; border-radius: 22px; background: var(--bg-raised); border: 1px solid var(--line); color: var(--text); transition: transform .25s ease, border-color .25s ease; }
.tile svg { color: var(--accent); }
.tile h3 { font-size: 19px; letter-spacing: -0.01em; }
a.tile:hover { text-decoration: none; border-color: var(--accent); transform: translateY(-2px); }
.tile-wide { grid-column: span 2; grid-template-columns: 1fr; }
@media (max-width: 560px) { .tile-wide { grid-column: auto; } }
.tile-copy { display: grid; gap: 10px; }
.browser-mini { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 12px 16px; border-radius: 999px; background: var(--bg-input); border: 1px solid var(--line); font-family: var(--mono); font-size: 15px; }
.browser-mini .lock { color: var(--text-faint); display: grid; transition: color .3s; }
.browser-mini.done .lock { color: var(--chip-ok-fg); }
.caret { width: 2px; height: 1.1em; background: var(--accent); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---- final ---- */
.h-final { padding: clamp(90px, 13vw, 160px) 0; background: radial-gradient(60% 80% at 50% 100%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 70%), var(--bg); border-top: 1px solid var(--line); }
.h-final .claim { margin: 26px auto 0; max-width: 540px; }

/* A sign-up bar for phones once the hero's form has scrolled away. */
/* A frosted bar, like Safari's own: the button sits on the page's colour, so
   the browser chrome under it stays neutral instead of tinting orange. */
.sticky-cta { position: fixed; inset: auto 0 0; z-index: 60; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 78%, transparent); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-top: 1px solid var(--line); transform: translateY(110%); visibility: hidden; transition: transform .35s cubic-bezier(.2,.7,.2,1), visibility 0s .35s; display: none; }
/* Hidden means hidden: Safari's floating toolbar can leave a translated bar
   peeking at the bottom edge, so it also goes invisible once it has slid away. */
.sticky-cta.show { transform: none; visibility: visible; transition: transform .35s cubic-bezier(.2,.7,.2,1), visibility 0s; }
@media (max-width: 700px) { .sticky-cta { display: block; } }

/* ---- reveal on scroll ---- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.js [data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .rev-spark path, .dash-line { stroke-dashoffset: 0; transition: none; }
  .dash-area { opacity: 1; }
  .bar-row i { width: var(--w); transition: none; }
}

.invite-line { margin-bottom: 6px; }
.invite-line svg { color: var(--accent); vertical-align: -2px; margin-right: 4px; }
.tour-step code { font-family: var(--mono); font-size: .92em; background: none; padding: 0; }

.h-two > span { display: block; }
/* Each half of a two-line headline stays one line where there is room. */
@media (min-width: 1100px) { .h-two > span { white-space: nowrap; } .h-split .h-two { font-size: clamp(40px, 3.9vw, 56px); } }

/* The way from the hero to "see your page first" (#try, tryForm in src/site.ts). */
.h-try-sec .try { margin: 0 auto; }
/* "Add links to what you built" sits centered under the centered form. */
.h-try-sec .try-more summary { margin-inline: auto; }
.h-try-sec .try-more[open] summary { margin-bottom: 0; }
/* The tour follows straight on: one gap between the two sections, not two stacked paddings. */
.h-try-sec + .h-tour { padding-top: 24px; }
@media (max-width: 720px) {
  .h-try-sec { padding-bottom: 48px; }
  .h-try-sec + .h-tour { padding-top: 8px; }
}
.h-try-sec .h-head { margin-bottom: 26px; }

/* ---- the homepage as the directory's front page (home in src/site.ts) ---- */
.h-hero-dir { padding-bottom: clamp(32px, 5vw, 56px); }
.h-hero-dir h1 { max-width: 16ch; }
.h-dir-search { max-width: 860px; margin: 0 auto; text-align: left; }
.h-dir-search .dir-chips { justify-content: center; }
@media (min-width: 721px) { .h-dir-search .dir-chips { justify-content: center; } }
.h-dir-claim { margin: 40px auto 0; padding-top: 32px; border-top: 1px solid var(--line); max-width: 640px; }
.h-dir-claim-line { margin: 0 0 14px; font-size: 16px; color: var(--text-dim); }
.h-dir-claim-line strong { color: var(--text); }
/* A shorter headline size for the directory hero, so "build." never breaks on a phone. */
.h-hero-dir h1 { font-size: clamp(40px, 7.4vw, 88px); }
@media (max-width: 600px) { .h-hero-dir h1 { font-size: min(12.4vw, 60px); line-height: 1.02; } }
.h-hero-dir + .h-section.dir-home { padding-top: 8px; }
