/* Page layout for humfut site. Uses only design-system tokens (tokens.css);
   components come from components.css. Owners: Things (layout), Flighty (hero),
   Duolingo + Jitter (tutorials), Signal (support and privacy). */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--canvas); color: var(--ink);
  font-family: var(--font-sans); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); }
a:hover { color: var(--accent-press); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.skip {
  position: absolute; left: var(--space-16); top: -60px; z-index: 10;
  background: var(--ink); color: var(--canvas); padding: var(--space-8) var(--space-16);
  border-radius: var(--radius-button); text-decoration: none;
}
.skip:focus { top: var(--space-12); color: var(--canvas); }
.wrap { width: 100%; max-width: calc(var(--width-page) + 2 * var(--space-24)); margin: 0 auto; padding-inline: var(--space-24); }
@media (max-width: 520px) { .wrap { padding-inline: var(--space-16); } }

/* Bands: Things separates sections by alternating canvas and surface, never a rule */
.band { padding-block: var(--space-80); }
.band-canvas { background: var(--canvas); }
.band-surface { background: var(--surface); }
@media (max-width: 700px) { .band { padding-block: 56px; } }

/* Nav: Things Top Navigation Bar, no fill, no border, no shadow */
.nav .wrap { display: flex; align-items: center; gap: var(--space-24); min-height: 72px; }
.nav-brand { display: flex; align-items: center; gap: var(--space-10); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 17px; }
.nav-brand:hover { color: var(--ink); }
.nav-links { display: flex; gap: var(--space-24); margin-left: auto; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav .hf-store { min-height: 40px; padding: 6px 14px 6px 12px; }
.nav .hf-store .hf-store-big { font-size: 15px; }
/* Appearance menu: System, Light or Dark */
.theme { position: relative; }
.theme-btn { appearance: none; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: var(--radius-pill); border: 1.5px solid var(--hairline); background: transparent; color: var(--ink); cursor: pointer; }
.theme-btn:hover { border-color: var(--muted); }
.theme-btn:focus-visible, .theme-list button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.theme-btn svg { width: 20px; height: 20px; display: none; }
.theme[data-choice="system"] .ti-system, .theme[data-choice="light"] .ti-light, .theme[data-choice="dark"] .ti-dark { display: block; }
.theme-list { position: absolute; right: 0; top: calc(100% + 8px); z-index: 80; min-width: 150px; padding: 6px; border-radius: var(--radius-float); background: var(--surface); box-shadow: var(--shadow-float); border: 1px solid var(--hairline); display: grid; gap: 2px; }
.theme-list[hidden] { display: none; }
.theme-list button { appearance: none; font: inherit; font-size: 15px; text-align: left; padding: 9px 12px 9px 34px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); cursor: pointer; position: relative; }
.theme-list button:hover { background: var(--accent-wash); }
.theme-list button[aria-checked="true"] { color: var(--accent); font-weight: 600; }
.theme-list button[aria-checked="true"]::before { content: ""; position: absolute; left: 13px; top: 50%; width: 9px; height: 5px; margin-top: -4px; border: solid currentColor; border-width: 0 0 2px 2px; transform: rotate(-45deg); }
@media (max-width: 760px) { .nav-links { display: none; } .nav .wrap { gap: var(--space-12); } .theme { margin-left: auto; } .nav .hf-store { flex: none; margin-left: 0; white-space: nowrap; } }

/* Headings */
.section-head { max-width: var(--width-text); margin-bottom: var(--space-40); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin: 0; color: var(--ink); text-wrap: balance; }
.section-head p { margin: var(--space-12) 0 0; color: var(--ink-2); }
.section-head .hf-kicker { margin-bottom: var(--space-16); }
@media (max-width: 520px) { .section-head h2.heading-xl { font-size: 30px; } }

/* ---------- The hero: 260vh of scroll, one sticky stage ---------- */
.hx { --r: 0; --hx-size: clamp(84px, min(19vw, 24vh), 270px); --hx-drop: 60vh; --hx-s0: .9; --hx-ds: .1; position: relative; height: 260vh; }
.hx-stage { isolation: isolate; position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hx-word {
  position: absolute; left: 0; right: 0; top: 11%; margin: 0; text-align: center; pointer-events: none;
  font-size: var(--hx-size); line-height: .9; font-weight: 800; letter-spacing: -.055em; color: var(--ink); white-space: nowrap;
  opacity: calc(1 - var(--r) * .9); transform: translateY(calc(var(--r) * -4vh)) scale(calc(1 - var(--r) * .12));
}
.hx-word span { display: inline-block; transition: opacity .35s ease, filter .35s ease, transform .35s ease; }
.hx-word span.is-out { opacity: 0; filter: blur(12px); transform: translateY(-.12em); }
.hx-word span.is-in { animation: hx-in .55s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes hx-in { from { opacity: 0; filter: blur(12px); transform: translateY(.14em); } to { opacity: 1; filter: none; transform: none; } }
.hx-copy {
  position: absolute; left: 0; right: 0; top: calc(11% + var(--hx-size) * .95 + 8px); text-align: center; padding-inline: var(--space-24);
  opacity: calc(1 - var(--r) * 3); transform: translateY(calc(var(--r) * -40px));
}
.hx-line { margin: 0 auto; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.12; font-weight: 700; letter-spacing: -.02em; color: var(--ink); text-wrap: balance; }
.hx-sub { margin: var(--space-12) auto 0; max-width: 34em; font-size: 18px; line-height: 1.55; color: var(--ink-2); text-wrap: balance; }
.hx-actions { display: flex; flex-wrap: wrap; gap: var(--space-16) var(--space-24); justify-content: center; align-items: center; margin-top: var(--space-24); }
.hx-phone {
  position: absolute; left: 50%; top: 50%;
  /* Starts below the copy (hero.js sets --hx-drop) and eases in, so it never covers the text. */
  transform: translate(-50%, calc(-50% + (1 - var(--r) * var(--r)) * var(--hx-drop))) scale(calc(var(--hx-s0) + var(--r) * var(--hx-ds)));
}
.hx-tap { left: 50%; top: 50%; opacity: 0; animation: none; }
.hx.is-tapping .hx-tap { animation: hf-tap 1.4s ease-out infinite; }
.hx-card { position: absolute; z-index: 30; opacity: 0; transition: opacity .5s ease, transform .6s cubic-bezier(.2, .9, .3, 1.2); }
.hx-heard { right: calc(50% + 175px); top: 32%; transform: translateY(14px) rotate(-3deg); }
.hx-heard .hf-float-art { background: var(--pad-blue); color: #ffffff; font-weight: 700; font-size: 15px; }
.hx-reply { left: calc(50% + 175px); top: 50%; transform: translateY(14px) rotate(2deg); max-width: 220px; }
.hx-reply .hf-bubble { box-shadow: var(--shadow-float); font-size: 16px; }
.hx.is-heard .hx-heard { opacity: 1; transform: rotate(-3deg); }
.hx.is-reply .hx-reply { opacity: 1; transform: rotate(2deg); }
@media (max-width: 760px) {
  .hx { height: 240vh; }
  .hx-sub { font-size: 16px; }
  .hx { --hx-drop: 62vh; --hx-s0: .74; --hx-ds: .06; }
  .hx-heard { right: auto; left: 12px; top: auto; bottom: 16%; }
  .hx-reply { left: auto; right: 12px; top: 16%; }
}
@media (prefers-reduced-motion: reduce) {
  .hx { height: auto; }
  .hx-stage { position: relative; height: auto; display: grid; justify-items: center; gap: var(--space-24); padding: var(--space-40) 0 var(--space-80); overflow: visible; }
  .hx-word, .hx-copy, .hx-phone, .hx-card { position: relative; inset: auto; opacity: 1; transform: none; }
  .hx-word span { transition: none; }
  .hx-card { position: relative; }
}

/* Tutorials: Duolingo tabs and steps, Jitter preview card */
.tutorial { display: grid; grid-template-columns: 380px 1fr; gap: 56px; align-items: center; margin-top: var(--space-40); }
.tutorial[hidden] { display: none; }
.tut-copy h3 { margin: 0 0 var(--space-8); color: var(--ink); }
.tut-copy > p { margin: 0 0 var(--space-24); color: var(--ink-2); font-size: 17px; }
.tut-controls { display: flex; gap: var(--space-16); align-items: center; margin-top: var(--space-16); color: var(--muted); font-size: 15px; }
.tut-toggle {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; font-size: 17px; color: var(--accent);
}
.tut-toggle:hover { color: var(--accent-press); text-decoration: underline; text-underline-offset: 3px; }
.tut-caption { display: none; }
@media (max-width: 900px) {
  .tutorial { grid-template-columns: 1fr; gap: var(--space-24); }
  .tut-caption {
    display: block; margin: 0 auto; max-width: 340px; text-align: center;
    padding: var(--space-12) var(--space-16); border-radius: var(--radius-tutorial);
    border: 2px solid var(--accent); border-bottom: 4px solid var(--accent-press); background: var(--surface);
    font-family: var(--font-rounded); font-size: 15px; font-weight: 500; letter-spacing: .8px; line-height: 1.47;
  }
  .tut-caption b { display: block; color: var(--accent); font-weight: 700; }
}
@media (max-width: 420px) { .hf-preview { padding: var(--space-16) 0; border-radius: var(--radius-card); } }

/* Scenes inside the tutorial phone */
.scene { position: absolute; inset: 0; opacity: 0; visibility: hidden; transform: translateX(18px);
  transition: opacity .45s ease, transform .45s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .45s; }
.scene.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
/* Until the script has set up a tutorial, show its first scene so the phone is never blank. */
.tutorial:not(.is-ready) .scene[data-scene="0"] { opacity: 1; visibility: visible; transform: none; }
.tutorial:not(.is-ready) .tut-caption, .tutorial:not(.is-ready) .tut-controls { display: none; }
.scene.is-past { transform: translateX(-18px); }
.scene .hf-tap { z-index: 40; opacity: 0; animation: none; }
.scene.is-on .hf-tap { animation: hf-tap 1.6s ease-out .7s infinite; }
.scene .sheet { transform: translateY(100%); transition: transform .55s cubic-bezier(.2, .9, .2, 1) .15s; }
.scene.is-on .sheet { transform: none; }
.countdown span { display: inline-block; }
.countdown span.tick { animation: tick .9s cubic-bezier(.2, .9, .3, 1.2) both; }
@keyframes tick { from { transform: scale(1.6); opacity: 0; } 40% { opacity: 1; } to { transform: none; opacity: 1; } }
.scene.is-on .video-scrub i { animation: scrub 4s linear forwards; }
@keyframes scrub { to { width: 62%; } }

/* Features: Things cards on canvas */
/* How it works: three numbered steps under the signal flow */
/* How it works: two real iPhones on one call, joined by a cord that is the call.
   Your voice keeps the cord humming; a Pad sends a live pulse down it and Mom's phone plays the sound. */
.tc { --s: .78; position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; max-width: 820px; margin: var(--space-40) auto 0; }
.tc-cord { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; touch-action: pan-y; }
.tc-side { position: relative; z-index: 1; display: grid; justify-items: center; gap: var(--space-12); }
.tc-you { justify-self: start; } .tc-them { justify-self: end; }
.tc-label { margin: 0; text-align: center; font-size: 14px; color: var(--muted); line-height: 1.35; }
.tc-label b { display: block; color: var(--ink); font-size: 17px; }
.tc-phone { width: calc(300px * var(--s)); height: calc(630px * var(--s)); }
.tc-phone .phone { transform: scale(var(--s)); transform-origin: 0 0; }
.tc-them .tc-phone { transition: transform .5s cubic-bezier(.2, 1.6, .4, 1); }
.tc.is-heard .tc-them .tc-phone { transform: translateY(-10px) rotate(1.5deg); transition-duration: .18s; }
.pad-btn { appearance: none; font: inherit; text-align: left; cursor: pointer; width: 100%; }
.pad-btn:active { transform: scale(.95); }
.pad-btn:focus-visible { outline: 3px solid var(--tap-ring); outline-offset: 2px; }
/* Hovering a Pad previews the app's playback fill */
@media (hover: hover) {
  .pad-btn:hover { filter: brightness(1.06); }
  .pad-btn:hover:not(.is-firing)::before { animation: progress 1.4s cubic-bezier(.3, .1, .3, 1) forwards; }
}
/* The status card and dock, as the app draws them when Call Sounds is off */
.screen .status-card { transition: background .3s ease, border-color .3s ease; }
.screen.is-off .status-card { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .12); }
.dock button { appearance: none; border: 0; font: inherit; cursor: pointer; }
.dock .off { font-weight: 700; font-size: 14px; color: #111; }
.dock button:focus-visible { outline: 3px solid var(--tap-ring); outline-offset: 2px; }
.dock .stop:hover { background: rgba(255, 255, 255, .18); }
.tc.is-off .tc-you .island.call .wave i { animation-play-state: paused; }
.tc-hint-t.is-note { color: var(--ink); font-weight: 600; }
.tc-add { --pad: #4a4a50; background: rgba(255, 255, 255, .06); border: 1.5px dashed rgba(255, 255, 255, .25); color: rgba(255, 255, 255, .55); }
.tc-add .nm { font-size: 12px; font-weight: 600; text-shadow: none; }
.tc-add .emo { font-size: 20px; }
.tc-you .island.call .wave i { animation-play-state: paused; }
.tc.is-talking .tc-you .island.call .wave i, .tc.is-sending .tc-you .island.call .wave i { animation-play-state: running; }
/* Mom's in-call screen */
.tc-call { background: radial-gradient(90% 55% at 30% 20%, #6d4a5c 0%, transparent 70%), radial-gradient(90% 60% at 80% 70%, #3f4a6a 0%, transparent 70%), #1c1a22; color: #fff; }
.tc-call-top { position: absolute; top: 74px; left: 0; right: 0; display: grid; justify-items: center; gap: 2px; }
.tc-app { font-size: 13px; color: rgba(255, 255, 255, .6); }
.tc-name { font-size: 34px; font-weight: 600; letter-spacing: -.01em; }
.tc-time { font-size: 15px; color: rgba(255, 255, 255, .7); font-variant-numeric: tabular-nums; }
.tc-avatar { position: absolute; top: 196px; left: 50%; width: 132px; height: 132px; margin-left: -66px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(160deg, #9aa0ad, #5d6270); font-size: 58px; font-weight: 600; color: #fff; }
.tc-avatar::before, .tc-avatar::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 3px solid var(--live); opacity: 0; }
.tc.is-heard .tc-avatar::before { animation: tc-ring 1.2s ease-out infinite; }
.tc.is-heard .tc-avatar::after { animation: tc-ring 1.2s ease-out .4s infinite; }
@keyframes tc-ring { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(1.45); } }
.tc-hears { position: absolute; z-index: 2; top: 340px; left: 50%; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: var(--radius-pill); background: var(--live); color: var(--on-live); font-weight: 700; font-size: 15px; white-space: nowrap; opacity: 0; transform: translate(-50%, 8px) scale(.9); transition: opacity .25s ease, transform .35s cubic-bezier(.2, 1.5, .4, 1); }
.tc-hears .hf-live i { background: var(--on-live); }
.tc.is-heard .tc-hears { opacity: 1; transform: translate(-50%, 0); }
.tc-silent { position: absolute; z-index: 2; top: 340px; left: 50%; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: var(--radius-pill); background: #ffffff; color: #1c1a22; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); font-weight: 700; font-size: 15px; white-space: nowrap; opacity: 0; transform: translate(-50%, 8px) scale(.9); transition: opacity .25s ease, transform .35s cubic-bezier(.2, 1.5, .4, 1); }
.tc-silent svg { flex: none; width: 18px; height: 18px; color: #e0453a; }
.tc.is-silent .tc-silent { opacity: 1; transform: translate(-50%, 0); }
.tc.is-silent .tc-avatar { filter: grayscale(1) brightness(.85); transition: filter .3s ease; }
.tc-word.is-muted { color: var(--muted); font-size: clamp(18px, 2.2vw, 24px); font-weight: 700; }
.tc-controls { position: absolute; left: 22px; right: 22px; bottom: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 10px; justify-items: center; }
.tc-controls span { display: grid; justify-items: center; gap: 6px; font-size: 11px; color: rgba(255, 255, 255, .8); }
.tc-controls svg { box-sizing: border-box; width: 64px; height: 64px; padding: 19px; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; }
.tc-controls .end svg { background: #eb4d3d; }
.tc-controls small { font-size: 11px; }
/* The sound's name rises out of Mom's phone */
.tc-word { position: absolute; top: 30%; left: 50%; z-index: 3; margin: 0; transform: translate(-50%, 0); font-size: clamp(22px, 3vw, 34px); font-weight: 800; letter-spacing: -.02em; color: var(--ink); white-space: nowrap; opacity: 0; pointer-events: none; }
.tc-word.is-on { animation: tc-word 1.9s cubic-bezier(.2, .8, .2, 1) forwards; }
@keyframes tc-word { 0% { opacity: 0; transform: translate(-50%, 24px) scale(.7); } 15% { opacity: 1; transform: translate(-50%, 0) scale(1.08); } 70% { opacity: 1; transform: translate(-50%, -14px) scale(1); } 100% { opacity: 0; transform: translate(-50%, -30px); } }
.tc-hint { grid-column: 1 / -1; margin: var(--space-24) 0 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--space-8) var(--space-16); text-align: center; color: var(--muted); font-size: 15px; position: relative; z-index: 1; }
.tc-mute { display: inline-flex; align-items: center; appearance: none; font: inherit; font-size: 14px; cursor: pointer; padding: 4px 12px; border-radius: var(--radius-pill); border: 1.5px solid var(--hairline); background: transparent; color: var(--ink); }
.tc-mute svg { width: 16px; height: 16px; vertical-align: -3px; margin-right: 6px; }
.tc-mute:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (max-width: 760px) { .tc { --s: .56; } }
@media (max-width: 440px) { .tc { --s: .47; } .tc-label { font-size: 12px; } .tc-label b { font-size: 15px; } }
@media (max-width: 760px) { .tc-word { display: none; } }
@media (max-width: 360px) { .tc { --s: .44; } }
@media (prefers-reduced-motion: reduce) {
  .tc-them .tc-phone, .tc.is-heard .tc-them .tc-phone { transform: none; transition: none; }
  .tc.is-heard .tc-avatar::before, .tc.is-heard .tc-avatar::after { animation: none; opacity: .9; }
  .tc-word.is-on { animation: none; opacity: 1; }
}
.how-steps { list-style: none; margin: var(--space-40) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-24); }
.how-steps li { display: grid; gap: var(--space-8); align-content: start; }
.how-steps .hf-feature-icon { margin-bottom: var(--space-8); }
.how-steps .caption { margin: 0; color: var(--muted); }
.how-steps h3 { margin: 0; color: var(--ink); }
.how-steps li > p:last-child { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
@media (max-width: 760px) { .how-steps { grid-template-columns: 1fr; } }
.how-steps .reveal:nth-child(2), .trust .reveal:nth-child(2) { transition-delay: .08s; }
.how-steps .reveal:nth-child(3), .trust .reveal:nth-child(3) { transition-delay: .16s; }

/* Soundboard section */
.js .hf-board:not(.is-ready) .hf-detail + .hf-detail { display: none; }
.board-controls { display: flex; flex-wrap: wrap; gap: var(--space-8) var(--space-16); align-items: center; margin: var(--space-16) 0 0; font-size: 15px; color: var(--muted); }
html:not(.js) .board-controls { display: none; }

/* Two-column text + product mockup (Things: tilted mockup) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split .section-head { margin-bottom: 0; }
.checks { list-style: none; padding: 0; margin: var(--space-24) 0 0; display: grid; gap: var(--space-16); }
.checks li { display: grid; grid-template-columns: 28px 1fr; gap: var(--space-12); }
.checks .dot { width: 28px; height: 28px; border-radius: var(--radius-icon); background: var(--accent); color: var(--on-accent); display: grid; place-items: center; }
.checks .dot .hf-ai { --ai-size: 20px; --ai-bg: var(--accent); }
.checks b { display: block; font-size: 17px; line-height: 1.3; color: var(--ink); }
.checks li div span { font-size: 15px; color: var(--muted); }
.tilt { transform: rotate(3deg); }
.tilt-left { transform: rotate(-3deg); }
.mock-stage { position: relative; display: grid; place-items: center; }
.mock-stage .hf-float { position: absolute; bottom: 70px; left: -20px; transform: rotate(-3deg); z-index: 30; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split .mock-stage { order: -1; } }
@media (max-width: 520px) { .mock-stage .hf-float { display: none; } }

/* Watch */
.watch-split { grid-template-columns: auto 1fr; }
@media (max-width: 900px) { .watch-split { grid-template-columns: 1fr; justify-items: center; } }

/* Pricing and trust (Things: no painted accent surfaces) */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-16); }
@media (max-width: 900px) { .trust { grid-template-columns: 1fr; } }
.price { margin-top: 56px; display: grid; grid-template-columns: 1fr auto; gap: var(--space-24); align-items: center; }
.price h3 { margin: 0 0 var(--space-8); }
.price p { margin: 0; color: var(--ink-2); max-width: var(--width-text); }
@media (max-width: 700px) { .price { grid-template-columns: 1fr; } }

/* FAQ: hairline list inside the section (Things subtle dividers) */
.faq { max-width: 720px; }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary {
  cursor: pointer; list-style: none; padding: var(--space-16) 0;
  display: flex; justify-content: space-between; gap: var(--space-16); align-items: center;
  font-size: 20px; line-height: 1.3; font-weight: 600; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 24px; font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding-bottom: var(--space-16); color: var(--ink-2); font-size: 15px; }
.faq details > div p { margin: 0 0 var(--space-8); }

.closing { text-align: center; }
.closing h2 { margin: 0 auto var(--space-24); max-width: 18ch; text-wrap: balance; }

/* Footer layout (colours from hf-footer) */
.hf-footer { padding-block: var(--space-40); }
.hf-footer .wrap { display: flex; flex-wrap: wrap; gap: var(--space-24) var(--space-40); align-items: center; justify-content: space-between; }
.footer-credits { flex-basis: 100%; font-size: 12px; opacity: .75; }
.footer-credits a { text-decoration: underline; }
.hf-footer nav { display: flex; flex-wrap: wrap; gap: var(--space-12) var(--space-24); }
.footer-brand { display: flex; align-items: center; gap: var(--space-10); color: var(--on-footer); font-weight: 600; font-size: 16px; }

/* Reveal on scroll (React Bits FadeContent: fade, rise and un-blur); visible at rest without script */
.js .reveal { opacity: 0; transform: translateY(20px); filter: blur(6px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1), filter .8s ease; }
.js .reveal.is-in { opacity: 1; transform: none; filter: none; }

/* ---------- Effects (assets/effects.js) ---------- */
/* Sonar Grid: canvas behind the hero and the closing band */
.closing { position: relative; isolation: isolate; }
.sonar-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

/* BlurText (React Bits): headline words blur into focus */
.blur-word { display: inline-block; animation: blur-in .9s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i) * 110ms + 100ms); }
@keyframes blur-in {
  0% { opacity: 0; filter: blur(10px); transform: translateY(-24px); }
  50% { opacity: .5; filter: blur(5px); transform: translateY(4px); }
  100% { opacity: 1; filter: blur(0); transform: none; }
}

/* ShinyText (React Bits): a slow shine across the kicker label */
.hf-kicker .shine {
  background-image: linear-gradient(110deg, var(--on-kicker) 40%, var(--accent) 50%, var(--on-kicker) 60%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 5s linear infinite;
}
@keyframes shine { 0% { background-position: 150% 0; } 60%, 100% { background-position: -50% 0; } }

/* SpotlightCard (React Bits): violet glow that follows the pointer */
.hf-feature.spotlight { position: relative; overflow: hidden; }
.hf-feature.spotlight::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .5s ease;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), var(--accent-wash), transparent 80%);
}
.hf-feature.spotlight:hover::before { opacity: 1; }
.hf-feature.spotlight > * { position: relative; }

/* Magnet (React Bits): App Store buttons lean toward the pointer */
.hx-actions .hf-store, .price .hf-store, .closing .hf-store { transition: transform .5s ease-in-out, opacity .2s ease; will-change: transform; }
.hf-store.is-pulled { transition: transform .3s ease-out, opacity .2s ease; }

/* ---------- Support and Privacy (Signal) ---------- */
.doc-page { background: var(--doc-canvas); color: var(--doc-ink); font-family: var(--font-doc); }
.doc-page .nav-brand, .doc-page .nav-links a { font-family: var(--font-sans); }
.doc-wrap { max-width: calc(var(--width-doc) + 2 * var(--space-24)); margin: 0 auto; padding-inline: var(--space-24); }
@media (max-width: 520px) { .doc-wrap { padding-inline: var(--space-16); } }
.doc-hero { padding-block: var(--space-40) var(--space-24); }
.doc-hero h1 { margin: 0; color: var(--doc-ink); }
.doc-hero p { margin: var(--space-12) 0 0; color: var(--doc-body); font-size: 16px; }
@media (max-width: 600px) { .doc-hero h1.doc-display { font-size: 44px; } }
.doc { padding-bottom: var(--space-80); }
.doc h2 { margin: 56px 0 var(--space-16); color: var(--doc-ink); }
@media (max-width: 600px) { .doc h2.doc-heading { font-size: 32px; } }
.doc h3 { margin: var(--space-24) 0 var(--space-8); color: var(--doc-ink); }
.doc p, .doc li { font-size: 16px; line-height: 1.5; color: var(--doc-body); }
.doc p { margin: 0 0 var(--space-12); }
.doc ul, .doc ol { margin: 0 0 var(--space-16); padding-left: 1.2em; }
.doc li { margin-bottom: var(--space-8); }
.doc strong { color: var(--doc-ink); }
.doc code { font-size: .9em; background: var(--accent-wash); color: var(--doc-ink); padding: 1px 6px; border-radius: var(--radius-icon); }
.doc .hf-doc-panel { margin: var(--space-8) 0 var(--space-24); }
.doc .hf-doc-panel p { color: var(--doc-ink); margin-bottom: var(--space-8); }
.doc .hf-doc-panel p:last-child { margin-bottom: 0; }
.howto { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-16); margin: var(--space-16) 0; }
.howto > div { background: var(--surface); border-radius: var(--radius-doc-panel); box-shadow: var(--shadow-doc); padding: var(--space-24); }
.howto h3 { margin-top: 0; }
.howto ol { margin: 0; font-size: 15px; }
@media (max-width: 760px) { .howto { grid-template-columns: 1fr; } }
.doc .hf-doc-panel.with-icon { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: var(--space-16); align-items: start; }
.howto .hf-feature-icon { margin-bottom: var(--space-12); }
.contact { display: flex; flex-wrap: wrap; gap: var(--space-16); align-items: center; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .blur-word, .hf-kicker .shine { animation: none; }
  .scene, .scene .sheet { transition: none; }
  .scene.is-on .hf-tap { animation: none; opacity: 1; }
  .countdown span.tick, .scene.is-on .video-scrub i { animation: none; }
  .wave i { animation: none; height: 60%; }
  .pad.is-firing::before { animation: none; width: 40%; }
}

/* ---------- How to add sounds: the app's real Share, Capture and Files flows on a working iPhone ---------- */
/* Buttons under the steps */
.af .btn { appearance: none; cursor: pointer; border: 1.5px solid var(--hairline); background: var(--surface); color: var(--ink); border-radius: var(--radius-pill); padding: 8px 16px; font: inherit; font-size: 15px; font-weight: 600; }
.af .btn:hover { border-color: var(--muted); }
.af .btn:focus-visible, .af .way:focus-visible, .af .steps button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
/* ---------- The three ways (Duolingo tabs, as option cards) ---------- */
.af .ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-12); margin-bottom: var(--space-40); }
.af .way { appearance: none; cursor: pointer; text-align: left; display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: var(--radius-tutorial); border: 2px solid var(--hairline); border-bottom-width: 4px; background: var(--surface); color: var(--ink); font: inherit; }
.af .way:hover { border-color: var(--muted); }
.af .way[aria-selected="true"] { border-color: var(--accent); border-bottom-color: var(--accent-press); }
.af .way-ico { flex: none; width: 40px; height: 40px; border-radius: var(--radius-button); display: grid; place-items: center; background: var(--accent-wash); color: var(--accent); }
.af .way[aria-selected="true"] .way-ico { background: var(--accent); color: var(--on-accent); }
.af .way-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.af .way b { display: block; font-family: var(--font-rounded); font-size: 16px; letter-spacing: .01em; }
.af .way small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
/* ---------- Phone + steps ---------- */
.af .flow { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-40); align-items: start; }
.af .mp { --s: .78; position: relative; width: calc(300px * var(--s)); height: calc(630px * var(--s)); flex: none; }
.af .mp > .phone { transform: scale(var(--s)); transform-origin: 0 0; }
.af .scr { position: absolute; inset: 0; opacity: 0; transition: opacity .3s ease, transform .35s ease; transform: translateX(18px); pointer-events: none; overflow: hidden; border-radius: 42px; }
.af .scr.on { opacity: 1; transform: none; pointer-events: auto; }
.af .go { cursor: pointer; }
.af .ring { position: absolute; z-index: 40; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; border: 3px solid var(--tap-ring); pointer-events: none; display: none; }
.af .ring.show { display: block; animation: hf-tap 1.6s ease-out infinite; }
.af .screen.is-light .statusbar { color: #111; }
.af .screen.is-light .statusbar .sb-icons i:not(.batt) { background: #111; }
/* Safari + soundboard site */
.af .web { background: #fff; color: #111; }
.af .web .page { position: absolute; inset: 50px 0 64px; padding: 6px 14px; overflow: hidden; }
.af .web .site-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-weight: 800; font-size: 18px; }
.af .web .site-h span { font-size: 11px; font-weight: 600; color: #888; }
.af .sb-row { display: flex; align-items: center; gap: 10px; padding: 11px 12px; margin-bottom: 8px; border-radius: 14px; background: #f3f3f6; font-weight: 700; font-size: 13px; }
.af .sb-row .pl { width: 30px; height: 30px; border-radius: 50%; background: #111; color: #fff; display: grid; place-items: center; font-size: 10px; flex: none; }
.af .snd-page { text-align: center; padding-top: 18px; }
.af .snd-page .big { width: 110px; height: 110px; margin: 10px auto 14px; border-radius: 50%; background: linear-gradient(180deg, #ef7a62, #d9573d); display: grid; place-items: center; color: #fff; font-size: 34px; box-shadow: 0 10px 24px rgba(217, 87, 61, .35); }
.af .snd-page h5 { margin: 0 0 2px; font-size: 22px; }
.af .snd-page .meta { color: #888; font-size: 12px; margin-bottom: 18px; }
.af .snd-btns { display: flex; justify-content: center; gap: 10px; }
.af .snd-btns span { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 12px; background: #f3f3f6; font-weight: 700; font-size: 13px; }
.af .snd-btns svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.af .safari-bar { position: absolute; left: 10px; right: 10px; bottom: 14px; height: 40px; border-radius: 20px; background: rgba(240, 240, 244, .95); box-shadow: 0 2px 10px rgba(0,0,0,.12); display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: #333; }
.af .dimmer { position: absolute; inset: 0; background: rgba(0, 0, 0, .38); }
.af .ios-sheet { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 14px 26px; border-radius: 26px 26px 0 0; background: #f2f2f7; color: #111; }
.af .ios-sheet .grab { width: 36px; height: 5px; border-radius: 3px; background: #c7c7cc; margin: 0 auto 10px; }
.af .share-head { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid #dcdce0; }
.af .share-head i { width: 40px; height: 40px; border-radius: 9px; background: #fff; display: grid; place-items: center; font-style: normal; font-size: 18px; }
.af .share-head b { display: block; font-size: 13px; }
.af .share-head small { color: #888; font-size: 11px; }
.af .share-apps2 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 14px 0 12px; text-align: center; font-size: 10px; font-weight: 500; color: #333; }
.af .share-apps2 i { display: block; width: 52px; height: 52px; margin: 0 auto 5px; border-radius: 13px; background: #d6d6db; }
.af .share-apps2 img { display: block; width: 52px; height: 52px; margin: 0 auto 5px; border-radius: 13px; }
.af .ios-list { border-radius: 12px; background: #fff; font-size: 13px; }
.af .ios-list div { padding: 11px 12px; border-bottom: 1px solid #ececf0; }
.af .ios-list div:last-child { border: 0; }
.af .ext-card { position: absolute; left: 0; right: 0; bottom: 0; height: 52%; border-radius: 26px 26px 0 0; background: #1c1c1e; color: #fff; display: grid; place-items: center; padding: 26px; text-align: center; font-size: 16px; font-weight: 600; line-height: 1.4; }
.af .ext-card .grab { position: absolute; top: 8px; left: 50%; margin-left: -18px; width: 36px; height: 5px; border-radius: 3px; background: #48484a; }
.af .ext-card .closing { position: absolute; bottom: 18px; left: 0; right: 0; font-size: 11px; font-weight: 500; color: #8e8e93; }
/* Home screen */
.af .home { background: radial-gradient(120% 70% at 20% 10%, #4b3f6b, transparent 60%), radial-gradient(100% 80% at 90% 90%, #1f4d5a, transparent 60%), #1a1a22; }
.af .home .grid { position: absolute; top: 64px; left: 18px; right: 18px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 10px; text-align: center; font-size: 10px; color: #fff; }
.af .home .grid i { display: block; width: 52px; height: 52px; margin: 0 auto 4px; border-radius: 13px; background: rgba(255, 255, 255, .22); }
.af .home .grid img { display: block; width: 52px; height: 52px; margin: 0 auto 4px; border-radius: 13px; }
.af .home .dock2 { position: absolute; left: 12px; right: 12px; bottom: 14px; height: 76px; border-radius: 30px; background: rgba(255, 255, 255, .18); display: flex; justify-content: space-around; align-items: center; }
.af .home .dock2 i { width: 52px; height: 52px; border-radius: 13px; background: rgba(255, 255, 255, .3); }
/* HumFut Library (dark app) */
.af .app { background: linear-gradient(180deg, #2a2621 0%, #1e1f26 45%, #161a26 100%); color: #fff; }
.af .app .body { position: absolute; inset: 50px 0 80px; padding: 0 14px; }
.af .toolbar { display: flex; justify-content: flex-end; gap: 8px; margin: 2px 0 10px; }
.af .gbtn { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 600; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); }
.af .gbtn.dis { opacity: .4; }
.af .search2 { height: 32px; border-radius: 999px; background: rgba(255, 255, 255, .09); display: flex; align-items: center; padding: 0 12px; color: rgba(255, 255, 255, .45); font-size: 13px; margin-bottom: 8px; }
.af .seg { display: flex; background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; padding: 3px; margin-bottom: 8px; font-size: 12px; font-weight: 600; }
.af .seg span { flex: 1; text-align: center; padding: 6px; border-radius: 999px; }
.af .seg span.on { background: rgba(255, 255, 255, .22); }
.af .row { position: relative; display: flex; align-items: center; gap: 10px; padding: 9px 2px; font-weight: 700; font-size: 13.5px; }
.af .row + .row { border-top: 1px solid rgba(255, 255, 255, .08); }
.af .row .pv { width: 30px; height: 30px; border-radius: 50%; background: #fff; display: grid; place-items: center; flex: none; }
.af .row .pv::after { content: ""; border-left: 9px solid #111; border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 3px; }
.af .row .tt { flex: 1; min-width: 0; }
.af .row .tt > span { display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.af .row .tt > span i { width: 7px; height: 7px; border-radius: 50%; background: #e8742f; flex: none; }
.af .row small { display: block; color: rgba(255, 255, 255, .5); font-weight: 500; font-size: 11px; margin-top: 1px; }
.af .row .add { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .45); display: grid; place-items: center; font-size: 18px; font-weight: 400; flex: none; transition: opacity .3s; }
.af .row .add.dim { opacity: .3; }
.af .row.fresh { animation: pop .6s cubic-bezier(.2, 1.4, .4, 1) both; background: rgba(255, 255, 255, .05); border-radius: 12px; padding-left: 6px; padding-right: 6px; }
.af .tabbar span.dot { position: relative; }
.af .tabbar span.dot::after { content: ""; position: absolute; top: 6px; right: 18px; width: 7px; height: 7px; border-radius: 50%; background: #e8742f; }
.af .coll-h2 { margin: 4px 2px 8px; font: 600 10px/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .22em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.af .pads2 { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-bottom: 12px; }
.af .pads2 .pad { height: 60px; }
.af .pads2 .pad .nm { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.af .pads2 .pad.newpad { box-shadow: 0 0 0 2px #fff; }
.af .pad-btn { appearance: none; font: inherit; text-align: left; cursor: pointer; width: 100%; }
.af .hold-tip { margin-top: 6px; font-size: 11px; color: rgba(255, 255, 255, .55); text-align: center; }
/* Capture sheet */
.af .sheet2 { position: absolute; left: 0; right: 0; bottom: 0; top: 70px; border-radius: 28px 28px 0 0; background: #1f1f24; color: #fff; padding: 12px 18px; }
.af .sheet2 .grab { width: 36px; height: 5px; border-radius: 3px; background: #48484a; margin: 0 auto 12px; }
.af .sheet2 .x { position: absolute; top: 14px; right: 16px; width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, .12); display: grid; place-items: center; font-size: 13px; }
.af .sheet2 h5 { margin: 6px 0 14px; font-size: 20px; }
.af .sheet2 .cardx { padding: 14px; border-radius: 16px; background: rgba(255, 255, 255, .08); font-size: 13px; line-height: 1.45; color: rgba(255, 255, 255, .88); }
.af .rec-disc { width: 56px; height: 56px; margin: 22px auto 16px; border-radius: 50%; border: 3px solid #fff; display: grid; place-items: center; }
.af .rec-disc i { width: 38px; height: 38px; border-radius: 50%; background: #e0453a; display: block; }
.af .sheet2 .foot2 { font-size: 11.5px; line-height: 1.45; color: rgba(255, 255, 255, .55); text-align: center; }
.af .sheet2 .link { display: block; margin-top: 10px; text-align: center; font-size: 12px; text-decoration: underline; color: rgba(255, 255, 255, .8); }
.af .res-tick { width: 40px; height: 40px; margin: 0 auto 10px; border-radius: 50%; background: var(--app-ready); display: grid; place-items: center; font-weight: 800; font-size: 20px; }
.af .btn-col { display: grid; gap: 8px; margin-top: 16px; }
.af .btn-col span { display: block; text-align: center; padding: 11px; border-radius: 14px; background: rgba(255, 255, 255, .1); font-weight: 700; font-size: 14px; }
.af .btn-col span.primary { background: #fff; color: #111; }
/* iOS Screen Sharing card (system UI) */
.af .bc { background: radial-gradient(60% 30% at 50% 35%, rgba(90, 50, 40, .55), transparent 70%), #18181a; color: #fff; }
.af .bc .warn { position: absolute; top: 120px; left: 26px; right: 26px; text-align: center; font-size: 13px; line-height: 1.4; }
.af .bc .card3 { position: absolute; top: 270px; left: 32px; right: 32px; border-radius: 26px; background: rgba(80, 80, 84, .75); text-align: center; overflow: hidden; }
.af .bc .card3 .glyph { width: 36px; height: 36px; margin: 16px auto 6px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .8); display: grid; place-items: center; }
.af .bc .card3 .glyph i { width: 14px; height: 14px; border-radius: 50%; background: #fff; display: block; }
.af .bc .card3 h6 { margin: 0 0 14px; font-size: 15px; }
.af .bc .card3 .opt2 { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 14px; text-align: left; }
.af .bc .card3 .opt2 img { width: 30px; height: 30px; border-radius: 7px; }
.af .bc .card3 .opt2 span { flex: 1; }
.af .bc .card3 .startbtn { display: block; padding: 13px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 15px; font-variant-numeric: tabular-nums; }
/* Another app playing a video */
.af .vid { background: #0e0e10; color: #fff; }
.af .vid .frame { position: absolute; top: 60px; left: 0; right: 0; height: 160px; background: linear-gradient(135deg, #4a3a6a, #1d4a4a); display: grid; place-items: center; }
.af .vid .frame .pbtn { width: 54px; height: 54px; border-radius: 50%; background: rgba(0, 0, 0, .45); display: grid; place-items: center; font-size: 20px; }
.af .vid .frame .eq { display: none; gap: 4px; align-items: end; height: 42px; }
.af .vid.playing .frame .pbtn { display: none; }
.af .vid.playing .frame .eq { display: flex; }
.af .vid .frame .eq i { width: 6px; background: #fff; border-radius: 3px; animation: hf-eq .9s ease-in-out infinite; height: 40%; }
.af .vid .frame .eq i:nth-child(2n) { animation-delay: -.3s; }
.af .vid .frame .eq i:nth-child(3n) { animation-delay: -.6s; }
.af .vid .cap { position: absolute; top: 190px; left: 0; right: 0; text-align: center; font-weight: 700; font-size: 13px; text-shadow: 0 1px 2px #000; }
.af .vid .scrub2 { position: absolute; top: 222px; left: 0; right: 0; height: 3px; background: rgba(255, 255, 255, .25); }
.af .vid .scrub2 i { display: block; width: 35%; height: 100%; background: #e0453a; }
.af .vid .vmeta { position: absolute; top: 236px; left: 14px; right: 14px; font-size: 14px; font-weight: 700; }
.af .vid .vmeta small { display: block; color: #aaa; font-weight: 500; font-size: 11px; margin-top: 3px; }
.af .vid .skel { position: absolute; left: 14px; right: 14px; height: 60px; border-radius: 10px; background: rgba(255, 255, 255, .06); }
.af .island.rec { width: 118px; display: flex; align-items: center; padding: 0 10px; justify-content: flex-start; }
.af .island.rec::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #e0453a; box-shadow: 0 0 0 3px rgba(224, 69, 58, .25); animation: recp 1.2s ease-in-out infinite; }
@keyframes recp { 50% { opacity: .4; } }
.af .ios-alert { position: absolute; top: 220px; left: 36px; right: 36px; border-radius: 16px; background: rgba(242, 242, 247, .97); color: #111; text-align: center; overflow: hidden; }
.af .ios-alert b { display: block; padding: 16px 14px 4px; font-size: 15px; }
.af .ios-alert p { margin: 0; padding: 0 14px 14px; font-size: 12.5px; color: #333; }
.af .ios-alert .ab2 { display: flex; border-top: 1px solid #d1d1d6; }
.af .ios-alert .ab2 span { flex: 1; padding: 11px; color: #0a7aff; font-size: 15px; }
.af .ios-alert .ab2 span + span { border-left: 1px solid #d1d1d6; color: #e0453a; font-weight: 600; }
/* Files picker (system UI) */
.af .files { background: #f2f2f7; color: #111; }
.af .files .fh { position: absolute; top: 58px; left: 0; right: 0; padding: 0 14px; }
.af .files .fnav { display: flex; justify-content: space-between; font-size: 14px; color: #0a7aff; margin-bottom: 6px; }
.af .files h5 { margin: 0 0 10px; font-size: 26px; }
.af .files .fsearch { height: 32px; border-radius: 10px; background: #e3e3e8; margin-bottom: 12px; display: flex; align-items: center; padding: 0 10px; color: #8e8e93; font-size: 13px; }
.af .frow { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-bottom: 1px solid #dcdce0; }
.af .frow i { width: 34px; height: 42px; border-radius: 6px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.12); display: grid; place-items: center; font-style: normal; font-size: 15px; color: #0a7aff; }
.af .frow b { display: block; font-size: 13.5px; }
.af .frow small { color: #8e8e93; font-size: 11px; }
.af .frow.off { opacity: .35; }
.af .files .ftabs { position: absolute; left: 0; right: 0; bottom: 0; height: 70px; border-top: 1px solid #dcdce0; background: #f9f9f9; display: flex; justify-content: space-around; padding-top: 10px; font-size: 10px; color: #8e8e93; }
.af .files .ftabs span.on { color: #0a7aff; }
/* Steps (Duolingo step cards) */
.af .steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.af .steps li button { appearance: none; width: 100%; text-align: left; cursor: pointer; display: flex; gap: 12px; align-items: flex-start; padding: 11px 14px; border-radius: var(--radius-tutorial); border: 2px solid var(--hairline); border-bottom-width: 4px; background: var(--surface); color: var(--muted); font: inherit; transition: border-color .25s ease, color .25s ease; }
.af .steps li b.n { flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--hairline); color: var(--ink); font-family: var(--font-rounded); font-size: 13px; margin-top: 1px; }
.af .steps li strong { display: block; font-family: var(--font-rounded); font-weight: 700; font-size: 16px; letter-spacing: .01em; color: inherit; }
.af .steps li span.body { display: none; margin-top: 3px; font-family: var(--font-rounded); font-weight: 500; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); letter-spacing: .01em; }
.af .steps li.now button { border-color: var(--accent); border-bottom-color: var(--accent-press); color: var(--ink); }
.af .steps li.now b.n { background: var(--accent); color: var(--on-accent); }
.af .steps li.now span.body { display: block; }
.af .steps li.done button { color: var(--ink-2); }
.af .steps li.done b.n { background: var(--app-ready); color: #fff; }
.af .foot { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: var(--space-16); color: var(--muted); font-size: 14px; }
.af .win { color: var(--ink); font-weight: 700; }
@media (max-width: 860px) {
.af .ways { grid-template-columns: 1fr; gap: 8px; margin-bottom: var(--space-24); }
.af .way { padding: 10px 12px; }
.af .flow { grid-template-columns: 1fr; justify-items: center; gap: var(--space-24); }
.af .flow .mp { --s: .68; }
.af .steps-side { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
.af .scr, .af .ring.show, .af .row.fresh { transition: none; animation: none; }
}

/* ---------- Support and Privacy: the home page's language (system type, bands, cards, Pads, animated icons) ---------- */
.page-hero { padding-block: var(--space-80) var(--space-40); }
.page-hero .wrap > .hf-kicker { margin-bottom: var(--space-16); }
.page-hero h1 { margin: 0; max-width: 16ch; font-size: clamp(40px, 6vw, 56px); line-height: 1.02; font-weight: 700; letter-spacing: -.03em; color: var(--ink); text-wrap: balance; }
.page-hero .lede { margin: var(--space-16) 0 0; max-width: 34em; }
.page-meta { margin: var(--space-12) 0 0; color: var(--muted); font-size: 14px; }
.topic-pads { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-12); margin-top: var(--space-40); }
.topic-pads .hf-bpad { min-height: 112px; text-decoration: none; }
.topic-pads .hf-bpad-label { font-size: 17px; }
@media (max-width: 760px) { .topic-pads { grid-template-columns: repeat(2, minmax(0, 1fr)); } .topic-pads .hf-bpad { min-height: 96px; } }
.doc-col { max-width: 720px; }
.doc-col p, .doc-col li { font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.doc-col p { margin: 0 0 var(--space-12); }
.doc-col ul, .doc-col ol { margin: 0 0 var(--space-16); padding-left: 1.2em; }
.doc-col li { margin-bottom: 6px; }
.doc-col strong { color: var(--ink); }
.doc-col h3 { margin: var(--space-24) 0 var(--space-8); font-size: 20px; line-height: 1.3; color: var(--ink); }
.doc-col code { font-size: .9em; background: var(--accent-wash); color: var(--ink); padding: 1px 6px; border-radius: var(--radius-icon); }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-24); }
.card-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 860px) { .card-grid, .card-grid.two, .card-grid.four { grid-template-columns: 1fr; } }
@media (min-width: 540px) and (max-width: 860px) { .card-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.info-card { background: var(--surface); border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: var(--space-24); display: grid; gap: var(--space-8); align-content: start; }
.band-surface .info-card { background: var(--canvas); }
.info-card h3 { margin: var(--space-8) 0 0; font-size: 19px; line-height: 1.3; color: var(--ink); }
.info-card p, .info-card li { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.info-card ol, .info-card ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.info-card .hf-link { margin-top: var(--space-8); font-size: 15px; }
.info-card .caption { margin: 0; }
.status-list { display: grid; gap: var(--space-12); max-width: 720px; }
.status-item { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: var(--space-16); align-items: center; }
.status-chip { display: grid; gap: 2px; padding: 10px 14px; border-radius: 14px; background: var(--app-ground); color: #fff; font-size: 12px; line-height: 1.35; }
.status-chip b { display: flex; align-items: center; gap: 7px; font-size: 16px; }
.status-chip b i { width: 9px; height: 9px; border-radius: 50%; background: var(--app-ready); }
.status-chip.on { background: #33492f; }
.status-chip.no b i { background: #d9483c; }
.status-chip span { color: rgba(255, 255, 255, .6); }
.status-item p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
@media (max-width: 600px) { .status-item { grid-template-columns: 1fr; gap: var(--space-8); } }
.contact-band { text-align: center; }
.contact-band h2 { margin: 0 auto var(--space-12); max-width: 18ch; }
.contact-band .lede { margin: 0 auto var(--space-24); }
.mail-btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border-radius: var(--radius-pill); border: 1.5px solid var(--accent); color: var(--accent); font-weight: 700; font-size: 18px; text-decoration: none; }
.mail-btn:hover { background: var(--accent-wash); }
.mail-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
/* Privacy */
.pv-hero { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--space-40); align-items: center; }
@media (max-width: 860px) { .pv-hero { grid-template-columns: 1fr; } }
.label-card { background: var(--surface); border-radius: var(--radius-card); box-shadow: var(--shadow-float); padding: var(--space-24); }
.label-card small { display: block; color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.label-card .big { display: flex; align-items: center; gap: var(--space-12); margin: var(--space-12) 0; font-size: 24px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.label-card p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.label-card .facts { margin: var(--space-16) 0 0; padding: var(--space-16) 0 0; border-top: 1px solid var(--hairline); list-style: none; display: grid; gap: 8px; }
.label-card .facts li { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--ink); font-weight: 600; }
.label-card .facts .hf-ai { --ai-size: 20px; color: var(--accent); }
.policy { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: var(--space-40); align-items: start; }
.policy-toc { position: sticky; top: var(--space-24); display: grid; gap: 4px; font-size: 14px; }
.policy-toc b { font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.policy-toc a { color: var(--ink-2); text-decoration: none; padding: 4px 0; }
.policy-toc a:hover { color: var(--accent); }
.policy section { scroll-margin-top: var(--space-24); }
.policy section + section { margin-top: var(--space-40); }
.policy h2 { margin: 0 0 var(--space-12); font-size: 26px; line-height: 1.2; letter-spacing: -.015em; color: var(--ink); }
@media (max-width: 860px) { .policy { grid-template-columns: 1fr; } .policy-toc { display: none; } }

/* ---------- Join the beta (TestFlight invite request) ---------- */
.beta-hero { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: var(--space-40); align-items: center; }
@media (max-width: 900px) { .beta-hero { grid-template-columns: 1fr; } }
.beta-form { background: var(--surface); border-radius: var(--radius-card); box-shadow: var(--shadow-float); padding: var(--space-24); display: grid; gap: var(--space-12); }
.beta-form-head { display: flex; align-items: center; gap: var(--space-12); margin-bottom: var(--space-4); }
.beta-form-head h2 { margin: 0; font-size: 22px; line-height: 1.2; letter-spacing: -.01em; color: var(--ink); }
.beta-form .field { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.beta-form .field small { font-weight: 400; color: var(--muted); }
.beta-form input[type="email"], .beta-form input[type="text"] { font: inherit; font-size: 17px; font-weight: 400; color: var(--ink); background: var(--canvas); border: 1.5px solid var(--hairline); border-radius: 12px; padding: 12px 14px; width: 100%; box-sizing: border-box; }
.beta-form input:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.beta-form input[aria-invalid="true"] { border-color: #d9483c; }
.beta-form .field-help { margin: -6px 0 0; font-size: 13px; line-height: 1.45; color: var(--muted); }
.beta-form .field-err { margin: -4px 0 0; font-size: 13px; color: #d9483c; font-weight: 600; }
.beta-form .check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--ink-2); cursor: pointer; }
.beta-form .check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.beta-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.beta-submit { justify-self: start; border: 0; cursor: pointer; font: inherit; }
.beta-submit[disabled] { opacity: .6; cursor: progress; }
.beta-form .form-msg { margin: 0; min-height: 1.4em; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.beta-form .form-msg.ok { color: var(--ink); }
.beta-form .form-msg.bad { color: #d9483c; font-weight: 600; }
.beta-done { display: grid; gap: var(--space-12); justify-items: start; }
.beta-done .tick { width: 48px; height: 48px; border-radius: 50%; background: var(--app-ready); color: #fff; display: grid; place-items: center; font-size: 24px; font-weight: 800; }
.beta-done h2 { margin: 0; font-size: 24px; color: var(--ink); }
.beta-done p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
