/* Audagen's site: the app's black and white, very large type, and scenes that play as you scroll.
   Sections alternate between black (voice) and white (paper). No web fonts, trackers or frameworks. */
:root {
  --black: #000;
  --ink: #f5f5f7;
  --paper: #f5f5f7;
  --text: #1d1d1f;
  --gray-on-dark: #86868b;
  --gray-on-light: #6e6e73;
  --line-dark: rgba(255, 255, 255, 0.14);
  --line-light: rgba(0, 0, 0, 0.09);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --stage: 100vh;
  color-scheme: dark;
}
@supports (height: 100svh) { :root { --stage: 100svh; } }

* { box-sizing: border-box; }
html { background: var(--black); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--black); color: var(--ink); font-family: var(--font-text); font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; border-radius: 6px; }

/* ---- Type --------------------------------------------------------------------------------- */
.h { font-family: var(--font); font-weight: 700; letter-spacing: -0.035em; line-height: 1.02; margin: 0; text-wrap: balance; }
.h-hero { font-size: clamp(46px, 7.6vw, 116px); }
.h-xl { font-size: clamp(46px, 8.4vw, 124px); }
.h-l { font-size: clamp(38px, 6vw, 84px); }
.h-m { font-size: clamp(30px, 4vw, 52px); letter-spacing: -0.025em; }
/* On black, headlines catch the light, white to silver. Padded so descenders sit inside the painted box. */
.silver { background: linear-gradient(180deg, #fff 30%, #b0b0b6 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding: 0.06em 0 0.2em; margin: -0.06em 0 -0.2em; display: block; }
.dim { color: var(--gray-on-dark); }
.light .dim { color: var(--gray-on-light); }
.lede { font-family: var(--font); font-weight: 600; font-size: clamp(19px, 2.1vw, 28px); line-height: 1.3; letter-spacing: -0.012em; color: var(--gray-on-dark); max-width: 30em; margin: 0; text-wrap: pretty; }
.light .lede { color: var(--gray-on-light); }
.lede b { color: var(--ink); font-weight: 600; }
.light .lede b { color: var(--text); }
.eyebrow { font-family: var(--font); font-weight: 600; font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gray-on-dark); margin: 0; }
.light .eyebrow { color: var(--gray-on-light); }

/* ---- Sections ------------------------------------------------------------------------------ */
.dark { background: var(--black); color: var(--ink); }
.light { background: var(--paper); color: var(--text); color-scheme: light; }
.white { background: #fff; }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: var(--gutter); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.block { padding-block: clamp(96px, 16vw, 200px); }
.center { text-align: center; }
.center .lede { margin-inline: auto; }
.stack { display: grid; gap: clamp(18px, 2.4vw, 28px); }

/* A scene is tall; its stage stays pinned while the scroll plays it from 0 to 1 (site.js). */
.scene { position: relative; height: var(--len, 250vh); }
.stage { position: sticky; top: 0; height: var(--stage); overflow: hidden; }
.stage canvas.orb { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* ---- Nav ----------------------------------------------------------------------------------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; padding-top: env(safe-area-inset-top, 0px); background: rgba(0, 0, 0, 0.62); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 52px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font); font-weight: 600; font-size: 19px; letter-spacing: -0.01em; text-decoration: none; margin-right: auto; }
.brand img { width: 26px; height: 26px; border-radius: 6px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16); }
.nav a.link { text-decoration: none; font-size: 14px; color: rgba(245, 245, 247, 0.8); }
.nav a.link:hover { color: #fff; }
@media (max-width: 700px) { .nav a.link { display: none; } }

/* ---- Buttons ------------------------------------------------------------------------------- */
.buttons { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }
.center .buttons, .hero .buttons, .end .buttons { justify-content: center; }
.button { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 26px; border-radius: 999px; background: #fff; color: #000; font-family: var(--font); font-weight: 600; font-size: 17px; text-decoration: none; transition: transform 0.2s ease, background 0.2s ease; }
.button:hover { transform: translateY(-1px); background: #e8e8ed; }
.light .button { background: #000; color: #fff; }
.light .button:hover { background: #2a2a2c; }
.button.small { min-height: 34px; padding: 0 16px; font-size: 14px; }
.textlink { font-family: var(--font); font-weight: 600; font-size: 17px; text-decoration: none; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; }
.light .textlink { color: var(--text); }
.textlink:hover { text-decoration: underline; text-underline-offset: 4px; }
.textlink svg { width: 22px; height: 22px; }

/* ---- Hero ---------------------------------------------------------------------------------- */
.hero .stage { display: grid; align-content: end; }
.hero .copy { position: relative; z-index: 2; padding-bottom: max(56px, 9vh); display: grid; gap: 22px; justify-items: center; text-align: center; }
.hero .copy .lede { max-width: 26em; }

/* ---- Talk: the job, said to the orb --------------------------------------------------------- */
.talk .copy { position: absolute; inset: 0; z-index: 2; display: grid; grid-template-rows: auto 1fr auto; padding-top: calc(52px + max(28px, 6vh)); padding-bottom: max(40px, 8vh); text-align: center; }
.said { font-family: var(--font); font-weight: 600; font-size: clamp(24px, 3.4vw, 44px); line-height: 1.22; letter-spacing: -0.02em; max-width: 18em; margin: 0 auto; color: var(--gray-on-dark); text-wrap: balance; }
.said .w { opacity: 0.12; transition: opacity 0.18s linear; }
.said .w.on { opacity: 1; }
.flood { position: absolute; inset: 0; background: var(--paper); opacity: 0; z-index: 3; pointer-events: none; }

/* ---- Paper: a real page of the PDF --------------------------------------------------------- */
.paper .stage { display: grid; grid-template-rows: auto 1fr; padding-top: calc(52px + max(28px, 5vh)); perspective: 2200px; }
.paper .copy { text-align: center; display: grid; gap: 16px; position: relative; z-index: 2; }
.sheet { width: min(76vw, 640px); aspect-ratio: 994 / 1406; margin: 4vh auto 0; background: #fff center / cover no-repeat; border-radius: 4px; box-shadow: 0 60px 120px -30px rgba(0, 0, 0, 0.32), 0 22px 44px -22px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.04); transform-origin: 50% 20%; will-change: transform; }

/* ---- Documents, one at a time --------------------------------------------------------------- */
.docs .stage { display: grid; grid-template-rows: auto 1fr auto; padding-top: calc(52px + max(28px, 6vh)); padding-bottom: max(40px, 7vh); text-align: center; }
.docname { align-self: center; font-family: var(--font); font-weight: 700; font-size: clamp(42px, 8vw, 116px); line-height: 1.04; letter-spacing: -0.035em; padding-inline: var(--gutter); }
.docname span { display: block; }
.count { font-variant-numeric: tabular-nums; font-family: var(--font); font-weight: 600; color: var(--gray-on-dark); font-size: 15px; letter-spacing: 0.06em; }

/* ---- A real screen of the app, no phone around it (as on the Play listing) ------------------ */
.screen { width: min(78vw, 380px); aspect-ratio: 1080 / 2400; border-radius: clamp(30px, 4vw, 46px); overflow: hidden; background: #000 center / cover no-repeat; position: relative; }
.dark .screen { box-shadow: 0 0 0 1px var(--line-dark), 0 40px 140px rgba(255, 255, 255, 0.07); }
.light .screen { box-shadow: 0 0 0 1px var(--line-light), 0 60px 120px -40px rgba(0, 0, 0, 0.3), 0 20px 40px -20px rgba(0, 0, 0, 0.14); }
.screen.crop { aspect-ratio: 1080 / 1700; background-position: top center; background-size: 100% auto; }
.split { display: grid; gap: clamp(48px, 8vw, 110px); align-items: center; grid-template-columns: 1fr; justify-items: center; }
.split .stack { max-width: 34em; }
@media (min-width: 900px) { .split { grid-template-columns: 1.05fr 0.95fr; justify-items: start; } .split.flip > :first-child { order: 2; } }
.split .screen { justify-self: center; }

/* The tap on "All passed": a ring that grows and fades, over and over while in view. */
.tap { position: absolute; left: calc(220 / 1080 * 100%); top: calc(1109 / 2400 * 100% * 2400 / 1700); width: 22%; aspect-ratio: 1; border-radius: 50%; background: rgba(0, 0, 0, 0.16); transform: translate(-50%, -50%) scale(0.2); opacity: 0; }
.in .tap { animation: tap 2.6s ease-out 0.8s infinite; }
@keyframes tap { 0% { transform: translate(-50%, -50%) scale(0.2); opacity: 0.9; } 40% { transform: translate(-50%, -50%) scale(1); opacity: 0; } 100% { opacity: 0; } }

/* ---- Change: the labour line, before and after ---------------------------------------------- */
.change .stage { display: grid; align-content: center; padding-top: 52px; }
.change .grid { display: grid; gap: clamp(36px, 6vw, 80px); align-items: center; }
@media (min-width: 900px) { .change .grid { grid-template-columns: 0.9fr 1.1fr; } }
.quote { font-family: var(--font); font-weight: 600; font-size: clamp(24px, 3vw, 38px); letter-spacing: -0.02em; line-height: 1.2; color: var(--gray-on-dark); margin: 0; }
.quote .w { opacity: 0; transition: opacity 0.2s linear; }
.quote .w.on { opacity: 1; }
.charges { position: relative; width: 100%; aspect-ratio: 912 / 384; background: #fff; border-radius: 10px; box-shadow: 0 40px 120px rgba(255, 255, 255, 0.08); overflow: hidden; }
.charges img { position: absolute; inset: 0; width: 100%; height: 100%; }
.charges .after { opacity: 0; }
.charges .band { position: absolute; left: 0; right: 0; top: calc(97 / 384 * 100%); height: calc(37 / 384 * 100%); background: rgba(0, 0, 0, 0.07); opacity: 0; }
.total { font-variant-numeric: tabular-nums; }

/* ---- Sign ---------------------------------------------------------------------------------- */
.sign .stage { display: grid; grid-template-rows: auto 1fr auto; padding-top: calc(52px + max(28px, 6vh)); padding-bottom: max(36px, 7vh); text-align: center; }
.pad { align-self: center; justify-self: center; width: min(88vw, 980px); aspect-ratio: 976 / 393; }

/* ---- Certificates -------------------------------------------------------------------------- */
.states { display: flex; flex-wrap: wrap; gap: 8px; }
.states span { font-family: var(--font); font-weight: 600; font-size: 14px; letter-spacing: 0.04em; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-dark); color: var(--ink); }

/* ---- Kinds of work: rows drifting past ------------------------------------------------------ */
.rows { display: grid; gap: 10px; margin-top: clamp(48px, 7vw, 90px); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.row { display: flex; gap: 10px; width: max-content; will-change: transform; }
.row span { white-space: nowrap; font-family: var(--font); font-weight: 600; font-size: clamp(17px, 2vw, 24px); padding: 12px 22px; border-radius: 999px; background: #161617; color: #d2d2d7; }
.row span.mine { background: #f5f5f7; color: #000; }

/* ---- Private ------------------------------------------------------------------------------- */
.tiles { display: grid; gap: 20px; grid-template-columns: 1fr; margin-top: clamp(40px, 6vw, 72px); }
@media (min-width: 820px) { .tiles { grid-template-columns: 1fr 1fr; } }
.tile { background: #fff; border-radius: 28px; padding: clamp(28px, 4vw, 48px); display: grid; gap: 14px; align-content: start; min-height: 320px; }
.tile .h { font-size: clamp(30px, 3.6vw, 46px); }
.tile p { margin: 0; color: var(--gray-on-light); font-size: clamp(17px, 1.6vw, 20px); line-height: 1.45; }

/* ---- Film ---------------------------------------------------------------------------------- */
.film video { width: 100%; aspect-ratio: 16 / 9; border-radius: clamp(14px, 2vw, 24px); background: #000; margin-top: clamp(36px, 5vw, 64px); box-shadow: 0 0 0 1px var(--line-dark); }

/* ---- Pricing ------------------------------------------------------------------------------- */
.plans { display: grid; gap: 20px; grid-template-columns: 1fr; margin-top: clamp(40px, 6vw, 72px); text-align: left; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { background: #fff; border-radius: 28px; padding: 32px 30px; display: grid; gap: 18px; align-content: start; }
.plan.pro { background: #000; color: var(--ink); }
.plan .name { font-family: var(--font); font-weight: 600; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gray-on-light); margin: 0; }
.plan.pro .name { color: var(--gray-on-dark); }
.price { font-family: var(--font); font-weight: 700; font-size: clamp(40px, 4.4vw, 56px); letter-spacing: -0.03em; line-height: 1; margin: 0; }
.price small { font-size: 17px; font-weight: 500; letter-spacing: 0; color: var(--gray-on-light); margin-left: 6px; }
.plan.pro .price small { color: var(--gray-on-dark); }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; align-items: baseline; }
.plan li::before { content: ""; flex: none; width: 14px; height: 8px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg) translateY(-2px); }
.plan .note { font-size: 14px; color: var(--gray-on-light); margin: 0; }
.plan.pro .note { color: var(--gray-on-dark); }
.plan.pro .button { background: #fff; color: #000; }

/* ---- Questions ----------------------------------------------------------------------------- */
.faq { max-width: 860px; margin: clamp(40px, 6vw, 64px) auto 0; text-align: left; }
.faq details { border-bottom: 1px solid var(--line-light); padding-block: 22px; }
.faq summary { cursor: pointer; list-style: none; font-family: var(--font); font-weight: 600; font-size: clamp(19px, 2vw, 24px); letter-spacing: -0.015em; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 28px; line-height: 1; color: var(--gray-on-light); transition: transform 0.25s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 14px 0 0; color: var(--gray-on-light); font-size: 18px; max-width: 46em; }

/* ---- End ----------------------------------------------------------------------------------- */
.end .stage { display: grid; align-content: end; }
.end .copy { position: relative; z-index: 2; padding-bottom: max(64px, 12vh); display: grid; gap: 26px; justify-items: center; text-align: center; }
footer { padding-block: 40px calc(40px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid rgba(255, 255, 255, 0.08); color: var(--gray-on-dark); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
footer a { color: var(--ink); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ---- Reveal on scroll ---------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(40px); filter: blur(8px); transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.9s ease; }
.reveal.in { opacity: 1; transform: none; filter: none; }
.reveal.d1 { transition-delay: 0.12s; } .reveal.d2 { transition-delay: 0.24s; } .reveal.d3 { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .in .tap { animation: none; }
  .button, .faq summary::after { transition: none; }
}

/* ---- Small motions the script starts ----------------------------------------------------- */
.row { animation: drift var(--d, 80s) linear infinite; }
.row.rev { animation-direction: reverse; }
@keyframes drift { to { transform: translateX(-50%); } }
.pop { animation: pop 0.4s cubic-bezier(0.2, 0.7, 0.2, 1); }
@keyframes pop { from { opacity: 0; transform: scale(1.05); filter: blur(6px); } }
@media (prefers-reduced-motion: reduce) { .row, .pop { animation: none; } }
