/* =====================================================================
   Harry One minimal landing page. One screen: wordmark, promise, waitlist, footer.
   Dark tokens in :root (also the no-JS default), light tokens in [data-theme="light"].
   Motion rule: only transform / opacity (and the individual translate / scale / rotate
   properties) animate. The one exception is the 64 px success check, which draws its stroke once.
   Everything stops for prefers-reduced-motion and pauses while the tab is hidden (html.is-paused, set by main.js).
   ===================================================================== */

/* Unbounded (wordmark, success title): "block", so the brand never flashes in another typeface (the file is 10 KB and preloaded).
   Inter (all text): "swap", with a metric-matched Arial fallback so late-arriving Inter does not reflow the lines. */
@font-face { font-family: "Unbounded"; src: url("../fonts/unbounded.woff2") format("woff2"); font-weight: 600; font-display: block; }
@font-face { font-family: "Inter Fallback"; src: local("Arial"); size-adjust: 107.4%; ascent-override: 90.2%; descent-override: 22.48%; line-gap-override: 0%; }
@font-face { font-family: "Inter"; src: url("../fonts/inter.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

/* ---------- tokens: dark theme (default) ---------- */
:root {
  color-scheme: dark;
  --bg: #05060f;
  --ink: #eef1ff;
  --ink-2: #b4bbdc;      /* 10:1 on --bg */
  --ink-3: #8a93bb;      /* 6.3:1 on --bg */
  --rgb-ink: 238, 241, 255;
  --rgb-line: 150, 170, 255;
  --line: rgba(var(--rgb-line), .14);
  --line-2: rgba(var(--rgb-line), .26);
  --line-3: rgba(var(--rgb-line), .42);

  --cyan-ink: #22e6ff;
  --rgb-cyan: 34, 230, 255;
  --rgb-violet: 139, 92, 255;
  --rgb-magenta: 255, 61, 203;
  --lime: #b6ff3b; --rgb-lime: 182, 255, 59;      /* success only */
  --error: #ff8fb0; --rgb-error: 255, 143, 176;
  --on-accent: #03121a;
  --dot: rgb(var(--rgb-cyan));

  --field: rgba(10, 12, 30, .66);
  --field-line: rgba(var(--rgb-line), .58);        /* 3:1 against the page: the field's edge is found without the placeholder */
  --focus: rgb(var(--rgb-cyan));
  --field-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 24px 60px -32px rgba(0, 0, 0, .9);
  --grad-text: linear-gradient(100deg, #22e6ff 0%, #8b5cff 55%, #ff3dcb 100%);
  --btn-bg: linear-gradient(100deg, #6cf2ff 0%, #22e6ff 36%, #9d7bff 100%);
  --btn-hi: linear-gradient(100deg, #8af5ff 0%, #3eeaff 40%, #b096ff 100%);
  --btn-shadow: 0 0 0 1px rgba(255, 255, 255, .28) inset, 0 1px 0 rgba(255, 255, 255, .42) inset,
                0 8px 24px -10px rgba(var(--rgb-cyan), .6), 0 0 40px -14px rgba(var(--rgb-violet), .8);
  --glare: rgba(255, 255, 255, .5);
  --spin-track: rgba(3, 18, 26, .22);
  --g: 1;                     /* glow strength */
  --glow-blur: .1em; --glow-y: 0em; --glow-o: .55; --breathe: .3;
  --blend: screen;
  --aurora: .7; --a1: .4; --a2: .2; --a3: .22;   /* peak alpha of the violet, magenta and cyan pools */
  --dots: .28;
  /* depth, back to front: base wash with fine grain and a lift behind the words (one static layer), aurora, dot grid, pointer light, vignette */
  --bg-base: radial-gradient(ellipse 90% 60% at 50% -10%, #090b20 0%, rgba(9, 11, 32, 0) 70%);
  --lift: radial-gradient(ellipse 46% 40% at 50% 42%, rgba(70, 92, 255, .11), rgba(70, 92, 255, 0));
  --spot: radial-gradient(closest-side, rgba(126, 138, 255, .12), rgba(126, 138, 255, .045) 50%, rgba(126, 138, 255, 0));
  --vignette-bg: radial-gradient(ellipse 85% 75% at 50% 45%, rgba(3, 4, 10, 0) 50%, rgba(3, 4, 10, .78));
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .032 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  /* type scale (major third on a 16 px base) */
  --f-display: "Unbounded", "Inter", "Inter Fallback", system-ui, sans-serif;
  --f-body: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-xs: .75rem;                                    /* 12 */
  --fs-sm: .8125rem;                                  /* 13 */
  --fs-base: 1rem;                                    /* 16 */
  --fs-field: 1rem;                                   /* 16: the field and the button share one size; never below 16, no iOS zoom */
  --fs-lg: clamp(1.0625rem, 1rem + .3vw, 1.25rem);    /* 17 -> 20 */
  --fs-xl: clamp(1.625rem, 1.06rem + 2.4vw, 2.75rem);   /* 26 -> 44: the headline carries the message */
  --fs-display: clamp(40px, min(8px + 11.5vw, 20vh), 136px);   /* 40 -> 136, and never more than a fifth of a short window */

  /* 8 px spacing grid */
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 40px; --s6: 48px; --s8: 64px; --s10: 80px;

  /* easing: expo out for fades, measured springs (linear()) for movement.
     --spring-soft (entrance): 1% overshoot; --spring (controls): 8%; --spring-pop (press, badge): 16% */
  --ease: cubic-bezier(.16, 1, .3, 1);
  --spring-soft: cubic-bezier(.2, .9, .3, 1);
  --spring: cubic-bezier(.22, 1.2, .36, 1);
  --spring-pop: cubic-bezier(.34, 1.56, .64, 1);
}
@supports (transition-timing-function: linear(0, 1)) {
  :root {
    --spring-soft: linear(0, .0411, .1384, .262, .392, .5159, .6269, .7216, .7994, .8612, .9088, .9442, .9696, .9872, .9986, 1.0056, 1.0094, 1.0109, 1.011, 1.0102, 1.009, 1.0076, 1.0061, 1.0048, 1.0037, 1.0027, 1.0019, 1.0013, 1.0008, 1.0005, 1.0002, 1.0001, 1);
    --spring: linear(0, .0468, .1615, .3114, .4716, .6245, .7592, .87, .9552, 1.016, 1.055, 1.076, 1.083, 1.081, 1.072, 1.06, 1.047, 1.034, 1.022, 1.013, 1.005, .9996, .996, .9939, .9931, .9931, .9938, .9948, .9959, .997, .998, .9988, 1);
    --spring-pop: linear(0, .0819, .2748, .51, .7367, .9232, 1.055, 1.132, 1.162, 1.156, 1.129, 1.091, 1.053, 1.021, .9963, .9812, .9744, .9738, .9775, .9833, .9896, .9952, .9996, 1.002, 1.004, 1.004, 1.004, 1.003, 1.002, 1.001, 1, .9997, 1);
  }
}

/* ---------- tokens: light theme ---------- */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f6fb;
  --ink: #0a0f24;        /* 17:1 */
  --ink-2: #384163;      /* 9.5:1 */
  --ink-3: #525c80;      /* 6.3:1 */
  --rgb-ink: 10, 15, 36;
  --rgb-line: 40, 56, 120;
  --line: rgba(var(--rgb-line), .12);
  --line-2: rgba(var(--rgb-line), .2);
  --line-3: rgba(var(--rgb-line), .34);

  --cyan-ink: #006a82;
  --rgb-cyan: 0, 170, 214;
  --rgb-violet: 110, 75, 255;
  --rgb-magenta: 227, 37, 159;
  --lime: #237a08; --rgb-lime: 50, 140, 16;
  --error: #b00d45; --rgb-error: 176, 13, 69;
  --on-accent: #fff;
  --dot: #0a8fb8;

  --field: rgba(255, 255, 255, .92);
  --field-line: rgba(var(--rgb-line), .6);
  --focus: var(--cyan-ink);
  --field-shadow: 0 1px 2px rgba(30, 40, 90, .06), 0 16px 40px -20px rgba(40, 50, 120, .28);
  --grad-text: linear-gradient(100deg, #007aa8 0%, #6235f0 52%, #c4168a 100%);
  /* the same cyan-to-violet button, in the deeper tones of the light wordmark; white label, 5:1 or better on every stop */
  --btn-bg: linear-gradient(100deg, #0a76ad 0%, #4f46e5 58%, #7c3aed 100%);
  --btn-hi: linear-gradient(100deg, #0a79b1 0%, #5a50ee 58%, #8648f0 100%);
  --btn-shadow: 0 0 0 1px rgba(255, 255, 255, .14) inset, 0 1px 0 rgba(255, 255, 255, .3) inset,
                0 1px 2px rgba(30, 30, 110, .22), 0 10px 24px -10px rgba(79, 70, 229, .55);
  --glare: rgba(255, 255, 255, 0);            /* no pointer glare under a white label: it would lower its contrast */
  --spin-track: rgba(255, 255, 255, .35);
  --g: .4;
  --glow-blur: .16em; --glow-y: .05em; --glow-o: .3; --breathe: .18;   /* on a light page a tight halo reads as blurred text: a soft coloured shadow below the word instead */
  --blend: normal;
  --aurora: 1; --a1: .16; --a2: .1; --a3: .13;
  --dots: .3;
  /* light is not the dark page inverted: the colour lives at the edges and the words sit on a bright, clean centre */
  --bg-base: linear-gradient(180deg, #fafbff 0%, #f4f6fb 45%, #edf0f9 100%);
  --lift: radial-gradient(ellipse 52% 46% at 50% 44%, rgba(255, 255, 255, .9), rgba(255, 255, 255, .55) 45%, rgba(255, 255, 255, 0));
  --spot: radial-gradient(closest-side, rgba(255, 255, 255, .85), rgba(255, 255, 255, .35) 50%, rgba(255, 255, 255, 0));
  --vignette-bg: none;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .1 0 0 0 0 .12 0 0 0 0 .3 0 0 0 .03 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; min-height: 100vh; min-height: 100svh; display: grid; grid-template: auto 1fr auto / minmax(0, 1fr);
  font: 400 var(--fs-base)/1.5 var(--f-body); color: var(--ink);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden;
}
h1, h2, p { margin: 0; }
p { text-wrap: pretty; }
::selection { background: rgba(var(--rgb-cyan), .32); color: var(--ink); }
:focus-visible { outline: 2px solid var(--cyan-ink); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- theme change: the new theme fades in over the old one (View Transitions, opacity only); instant where unsupported ---------- */
html.vt-theme::view-transition-old(root) { animation: none; mix-blend-mode: normal; }
html.vt-theme::view-transition-new(root) { animation: vt-in .55s cubic-bezier(.4, 0, .2, 1) both; mix-blend-mode: normal; }

/* ---------- background: aurora + drifting dot grid, with gentle pointer depth (main.js) ---------- */
/* the static part is one layer: lift over grain over the base wash (the grain's strength is baked into its alpha).
   The grain breaks up banding in the long gradients; everything that moves is composited above it. */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: var(--lift), var(--grain) 0 0 / 180px 180px, var(--bg-base); }
.bg__aurora, .bg__grid { position: absolute; inset: 0; will-change: transform; }
/* pointer light (main.js moves it, transform only). It is not painted at all until the mouse first moves after the
   entrance; then it fades in, and fades out again when the pointer leaves the page. */
.bg__spot { position: absolute; left: -360px; top: -360px; width: 720px; height: 720px; border-radius: 50%; background: var(--spot); opacity: 0; visibility: hidden; transition: opacity 1.2s var(--ease), visibility 0s 1.2s; }
html.has-pointer .bg__spot { opacity: 1; visibility: visible; transition-delay: 0s; }

.js .bg__aurora { animation: bg-in 2.4s .05s var(--ease) both; }
.js .bg__grid { animation: bg-in 2.8s .35s var(--ease) both; }
@keyframes bg-in { from { opacity: 0; } }

/* soft blobs: closest-side radial gradients fade to nothing at their edge, so no blur filter is needed (cheap to composite) */
.aurora { position: absolute; inset: -20%; opacity: var(--aurora); }
.aurora i { position: absolute; border-radius: 50%; mix-blend-mode: var(--blend); will-change: transform; animation: drift 38s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { width: 64vmax; height: 52vmax; left: 26%; top: 0%;
  background: radial-gradient(closest-side, rgba(var(--rgb-violet), var(--a1)), rgba(var(--rgb-violet), calc(var(--a1) * .38)) 50%, rgba(var(--rgb-violet), 0)); }
.aurora i:nth-child(2) { width: 52vmax; height: 44vmax; left: 58%; top: 40%; animation-duration: 46s; animation-delay: -14s; animation-name: drift-2;
  background: radial-gradient(closest-side, rgba(var(--rgb-magenta), var(--a2)), rgba(var(--rgb-magenta), calc(var(--a2) * .38)) 50%, rgba(var(--rgb-magenta), 0)); }
.aurora i:nth-child(3) { width: 58vmax; height: 46vmax; left: 0%; top: 38%; animation-duration: 54s; animation-delay: -26s;
  background: radial-gradient(closest-side, rgba(var(--rgb-cyan), var(--a3)), rgba(var(--rgb-cyan), calc(var(--a3) * .38)) 50%, rgba(var(--rgb-cyan), 0)); }
/* Without JavaScript nothing sets data-theme: follow the system setting with the same light tokens (keep in sync with the block above). */
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    color-scheme: light;
    --bg: #f4f6fb;
    --ink: #0a0f24;        /* 17:1 */
    --ink-2: #384163;      /* 9.5:1 */
    --ink-3: #525c80;      /* 6.3:1 */
    --rgb-ink: 10, 15, 36;
    --rgb-line: 40, 56, 120;
    --line: rgba(var(--rgb-line), .12);
    --line-2: rgba(var(--rgb-line), .2);
    --line-3: rgba(var(--rgb-line), .34);

    --cyan-ink: #006a82;
    --rgb-cyan: 0, 170, 214;
    --rgb-violet: 110, 75, 255;
    --rgb-magenta: 227, 37, 159;
    --lime: #237a08; --rgb-lime: 50, 140, 16;
    --error: #b00d45; --rgb-error: 176, 13, 69;
    --on-accent: #fff;
    --dot: #0a8fb8;

    --field: rgba(255, 255, 255, .92);
    --field-line: rgba(var(--rgb-line), .6);
    --focus: var(--cyan-ink);
    --field-shadow: 0 1px 2px rgba(30, 40, 90, .06), 0 16px 40px -20px rgba(40, 50, 120, .28);
    --grad-text: linear-gradient(100deg, #007aa8 0%, #6235f0 52%, #c4168a 100%);
    /* the same cyan-to-violet button, in the deeper tones of the light wordmark; white label, 5:1 or better on every stop */
    --btn-bg: linear-gradient(100deg, #0a76ad 0%, #4f46e5 58%, #7c3aed 100%);
    --btn-hi: linear-gradient(100deg, #0a79b1 0%, #5a50ee 58%, #8648f0 100%);
    --btn-shadow: 0 0 0 1px rgba(255, 255, 255, .14) inset, 0 1px 0 rgba(255, 255, 255, .3) inset,
                  0 1px 2px rgba(30, 30, 110, .22), 0 10px 24px -10px rgba(79, 70, 229, .55);
    --glare: rgba(255, 255, 255, 0);            /* no pointer glare under a white label: it would lower its contrast */
    --spin-track: rgba(255, 255, 255, .35);
    --g: .4;
    --glow-blur: .16em; --glow-y: .05em; --glow-o: .3; --breathe: .18;   /* on a light page a tight halo reads as blurred text: a soft coloured shadow below the word instead */
    --blend: normal;
    --aurora: 1; --a1: .16; --a2: .1; --a3: .13;
    --dots: .3;
    /* light is not the dark page inverted: the colour lives at the edges and the words sit on a bright, clean centre */
    --bg-base: linear-gradient(180deg, #fafbff 0%, #f4f6fb 45%, #edf0f9 100%);
    --lift: radial-gradient(ellipse 52% 46% at 50% 44%, rgba(255, 255, 255, .9), rgba(255, 255, 255, .55) 45%, rgba(255, 255, 255, 0));
    --spot: radial-gradient(closest-side, rgba(255, 255, 255, .85), rgba(255, 255, 255, .35) 50%, rgba(255, 255, 255, 0));
    --vignette-bg: none;
    --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .1 0 0 0 0 .12 0 0 0 0 .3 0 0 0 .03 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  }
}
@keyframes drift { 0% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(-6%, 4%, 0) scale(1.1); } 100% { transform: translate3d(5%, -4%, 0) scale(.95); } }
@keyframes drift-2 { 0% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(5%, -6%, 0) scale(.92); } 100% { transform: translate3d(-4%, 3%, 0) scale(1.08); } }

.grid {
  position: absolute; inset: 0; opacity: var(--dots); overflow: hidden;
  -webkit-mask-image: radial-gradient(ellipse 64% 58% at 50% 46%, #000 0%, rgba(0, 0, 0, .4) 52%, transparent 84%);
  mask-image: radial-gradient(ellipse 64% 58% at 50% 46%, #000 0%, rgba(0, 0, 0, .4) 52%, transparent 84%);
}
.grid::before {
  content: ""; position: absolute; inset: -40px;
  background-image: radial-gradient(circle at center, rgba(var(--rgb-line), .9) 1px, transparent 1.5px);
  background-size: 40px 40px; will-change: transform; animation: grid 64s linear infinite;
}
@keyframes grid { to { transform: translate3d(40px, 40px, 0); } }
.bg__vignette { position: absolute; inset: 0; background: var(--vignette-bg); }

/* ---------- top bar: only the theme toggle ---------- */
.top { display: flex; justify-content: flex-end; padding: max(var(--s3), env(safe-area-inset-top)) max(var(--s4), env(safe-area-inset-right)) 0 var(--s3); }
.js .top { animation: fade-in 1s .8s var(--ease) both; }

/* round icon buttons (theme toggle, social links): a soft disc blooms in on hover */
.theme-toggle, .social a {
  position: relative; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%;
  color: var(--ink-2); background: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: translate .45s var(--spring), scale .4s var(--spring-pop);
}
.theme-toggle::before, .social a::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  background: rgba(var(--rgb-line), .1); box-shadow: 0 0 0 1px var(--line-2) inset;
  opacity: 0; scale: .6; transition: opacity .3s var(--ease), scale .5s var(--spring);
}
.theme-toggle { color: var(--ink); }
.theme-toggle::before { opacity: 1; scale: 1; background: rgba(var(--rgb-line), .06); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.theme-toggle::after { /* hover glow, opacity only */
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; opacity: 0; transition: opacity .35s var(--ease);
  box-shadow: 0 0 0 1px rgba(var(--rgb-cyan), .55) inset, 0 0 24px -4px rgba(var(--rgb-cyan), calc(.6 * var(--g)));
}
@media (hover: hover) {
  .theme-toggle:hover::after { opacity: 1; }
  .social a:not([data-placeholder]):hover { color: var(--ink); translate: 0 -2px; }
  .social a:not([data-placeholder]):hover::before { opacity: 1; scale: 1; }
}
.theme-toggle:active, .social a:active { scale: .92; }
.theme-toggle:focus-visible, .social a:focus-visible { outline-offset: 2px; }
.theme-toggle svg { width: 20px; height: 20px; overflow: visible; }
/* moon <-> sun: the disc scales, the bite slides away, the rays turn in (transform / opacity only) */
.tt__core { fill: currentColor; transform-origin: 12px 12px; transition: transform .6s var(--spring); }
.tt__moon { fill: #000; transition: transform .6s var(--ease); }
.tt__rays { stroke: currentColor; stroke-width: 2; stroke-linecap: round; transform-origin: 12px 12px; transform: rotate(-60deg) scale(.4); opacity: 0; transition: transform .7s var(--spring), opacity .3s var(--ease); }
[data-theme="light"] .tt__core { transform: scale(.51); }
[data-theme="light"] .tt__moon { transform: translate(14px, -14px); }
[data-theme="light"] .tt__rays { transform: none; opacity: 1; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .tt__core { transform: scale(.51); }
  :root:not([data-theme]) .tt__moon { transform: translate(14px, -14px); }
  :root:not([data-theme]) .tt__rays { transform: none; opacity: 1; }
}

/* ---------- hero ---------- */
.hero {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: var(--s3) var(--s3) clamp(var(--s5), 7vh, var(--s10));
  padding-bottom: clamp(var(--s5), round(7vh, 8px), var(--s10));
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 calc(16px - .14em) 0 12px; border-radius: 999px;   /* the last letter's tracking is not padding */
  font: 600 var(--fs-xs)/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2);
  background: rgba(var(--rgb-line), .06); box-shadow: 0 0 0 1px var(--line) inset;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.dot { position: relative; width: 6px; height: 6px; border-radius: 50%; background: var(--dot); box-shadow: 0 0 8px rgba(var(--rgb-cyan), calc(.8 * var(--g))); }
.dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--dot); animation: ping 3.6s 2.4s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .5; } 60%, 100% { transform: scale(3); opacity: 0; } }

/* the wordmark: "Harry" in a soft metal ink, "One" in the brand gradient with a breathing glow behind it */
.wm {
  margin-top: var(--s4); display: inline-flex; align-items: flex-start; padding: 0 .06em .02em;
  flex-wrap: wrap; justify-content: center; max-width: 100%;   /* only wraps when a visitor's own text spacing makes it too wide for a small phone */
  font: 600 var(--fs-display)/.92 var(--f-display); letter-spacing: -.05em;
  will-change: transform;                 /* pointer depth (main.js), rotate / translate only */
}
.wm__h, .wm__ot {
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding: 0 .08em .16em 0; margin-bottom: -.16em;   /* background-clip:text clips at the box: keep the y's arm and tail inside it */
}
.wm__h { background: linear-gradient(180deg, var(--ink) 30%, rgba(var(--rgb-ink), .7)); -webkit-background-clip: text; background-clip: text; }
.wm__o { position: relative; display: inline-block; margin-left: .02em; isolation: isolate; }
.wm__ot { display: inline-block; background: var(--grad-text) 0 0 / 100% 100%; -webkit-background-clip: text; background-clip: text; }
.wm__glow { /* a blurred copy of the word behind it (a filter on clipped text would glow as a box) */
  position: absolute; left: 0; top: 0; z-index: -1; pointer-events: none;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: blur(var(--glow-blur)); translate: 0 var(--glow-y); opacity: var(--glow-o);
}
.js .wm__glow { animation: fade-in 1.8s .7s var(--ease) backwards, breathe 8s 2.5s ease-in-out infinite alternate; }
@keyframes breathe { to { opacity: var(--breathe); } }

.headline {
  margin-top: var(--s4); max-width: 20em;
  font: 600 var(--fs-xl)/1.14 var(--f-body); letter-spacing: -.03em; color: var(--ink); text-wrap: balance;
}
.hl { display: block; }     /* one span per line: the two lines arrive one after the other */
.sub { margin-top: var(--s2); max-width: 32em; font-size: var(--fs-lg); line-height: 1.5; letter-spacing: -.008em; color: var(--ink-2); text-wrap: balance; }   /* about 60 characters a line */

/* whole-pixel line boxes: every gap between two blocks is then an exact step of the 8 px grid at any fluid size */
@supports (line-height: round(1em, 1px)) {
  .wm { line-height: round(.92em, 1px); padding-bottom: round(.02em, 1px); }
  .headline { line-height: round(1.14em, 1px); }
  .sub { line-height: round(1.5em, 1px); }
}

/* ---------- entrance: one orchestrated stagger, top to bottom (fade + soft spring rise), transform / opacity only ----------
   The big wordmark travels furthest and the small text least, so everything seems to settle at the same speed. */
.in { --d: .05s; --y: 16px; }
/* fill-mode "backwards", not "both": once an entrance has finished the element leaves its compositor layer, so the
   browser re-rasterises it at the real device scale ("One" stayed soft on 2x screens while its layer was kept alive) */
.js .in { animation: in-fade .8s var(--d) var(--ease) backwards, in-rise 1.25s var(--d) var(--spring-soft) backwards; }
.js .eyebrow { --y: 10px; }
.js .wm__h { --d: .12s; animation-name: in-fade, in-rise-h; }
.js .wm__o { --d: .2s; animation-name: in-fade, in-rise-o; }
.js .hl { --d: .34s; }
.js .hl + .hl { --d: .42s; }
.js .sub { --d: .52s; --y: 14px; }
.js .cta { --d: .62s; --y: 14px; }
.js .foot { --d: .85s; --y: 8px; }
@keyframes in-fade { from { opacity: 0; } }
@keyframes in-rise { from { transform: translate3d(0, var(--y), 0); } }
@keyframes in-rise-h { from { transform: translate3d(-.06em, 24px, 0) scale(.975); } }
@keyframes in-rise-o { from { transform: translate3d(.1em, 24px, 0) scale(.965); } }
@keyframes fade-in { from { opacity: 0; } }

/* ---------- waitlist: the field and the button are one unit ----------
   Desktop: a 64 px pill = 1 px border + 7 px padding + 48 px controls; the button radius (24) is concentric with the
   pill (32 - 8). The input text starts 24 px from the outer edge, the same inset as the button's label. */
.cta { width: min(100%, 544px); margin-top: var(--s6); }
.wl { display: grid; }
.wl__row {
  position: relative; display: flex; align-items: center; gap: var(--s1); height: 64px; padding: 7px; border-radius: 32px;
  background: var(--field); border: 1px solid var(--field-line); box-shadow: var(--field-shadow);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
}
@media (hover: hover) { .wl__row:hover { border-color: rgba(var(--rgb-line), .82); } }
/* focus bloom and error ring: separate layers, animated with opacity + scale only */
.wl__row::before, .wl__row::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; opacity: 0; scale: .992;
  transition: opacity .4s var(--ease), scale .6s var(--spring-soft);
}
.wl__row::before { box-shadow: 0 0 0 2px var(--focus) inset, 0 0 0 4px rgba(var(--rgb-cyan), .14), 0 0 48px -12px rgba(var(--rgb-cyan), calc(.42 * var(--g))); }
.wl__row::after { box-shadow: 0 0 0 2px var(--error) inset, 0 0 0 4px rgba(var(--rgb-error), .12), 0 0 48px -12px rgba(var(--rgb-error), calc(.42 * var(--g))); }
.wl__row:has(input:focus)::before { opacity: 1; scale: 1; }
.wl.is-invalid .wl__row::after { opacity: 1; scale: 1; }
.wl.is-invalid .wl__row::before { opacity: 0; }

.wl input {
  flex: 1; min-width: 0; height: 48px; margin: 0; padding: 0 var(--s2); border: 0; border-radius: 24px; background: transparent;
  color: var(--ink); font: 500 var(--fs-field)/1.5 var(--f-body); letter-spacing: -.005em; caret-color: rgb(var(--rgb-cyan));
  -webkit-appearance: none; appearance: none;
}
.wl input::placeholder { color: var(--ink-3); opacity: 1; font-weight: 400; transition: opacity .3s var(--ease), translate .4s var(--ease); }
.wl input:focus::placeholder { opacity: .55; translate: 3px 0; }
.wl input:focus, .wl input:focus-visible { outline: none; }
.wl input:-webkit-autofill, .wl input:-webkit-autofill:focus { -webkit-text-fill-color: var(--ink); transition: background-color 600000s 0s, color 600000s 0s; }

.btn {
  position: relative; isolation: isolate; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 20px 0 24px; border: 0; border-radius: 24px; cursor: pointer; overflow: hidden; white-space: nowrap;
  font: 600 var(--fs-base)/1 var(--f-body); letter-spacing: -.005em; color: var(--on-accent); background: var(--btn-bg);
  box-shadow: var(--btn-shadow);
  -webkit-tap-highlight-color: transparent;
  transition: scale .5s var(--spring-pop);     /* translate is driven by main.js (magnetic hover) */
}
.btn::before { /* stronger glow on hover, opacity only */
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; opacity: 0; transition: opacity .4s var(--ease);
  background: var(--btn-hi);
}
.btn__glare { /* a soft light that follows the pointer (main.js sets its translate) */
  position: absolute; left: -60px; top: -60px; width: 120px; height: 120px; border-radius: 50%; z-index: 0; pointer-events: none;
  background: radial-gradient(closest-side, var(--glare), rgba(255, 255, 255, 0)); opacity: 0; transition: opacity .4s var(--ease);
}
.btn__face, .btn__icon { position: relative; z-index: 2; display: grid; place-items: center; }
.btn__face > *, .btn__icon > * { grid-area: 1 / 1; transition: opacity .25s var(--ease), translate .45s var(--spring); }
.btn__busy { opacity: 0; translate: 0 10px; }
.btn__arrow { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.btn__spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--spin-track); border-top-color: var(--on-accent); opacity: 0; scale: .5; transition: opacity .25s var(--ease), scale .45s var(--spring-pop); }
@media (hover: hover) {
  .btn:hover::before, .btn:focus-visible::before { opacity: 1; }
  .btn:hover .btn__glare { opacity: 1; }
  .btn:hover .btn__arrow { translate: 3px 0; }
}
.btn:active { scale: .97; transition-duration: .12s; }
.btn:focus-visible { outline-offset: 2px; }
.btn[aria-busy="true"] { cursor: progress; }
.btn[aria-busy="true"] .btn__label { opacity: 0; translate: 0 -10px; }
.btn[aria-busy="true"] .btn__busy { opacity: 1; translate: 0 0; }
.btn[aria-busy="true"] .btn__arrow { opacity: 0; translate: 10px 0; }
.btn[aria-busy="true"] .btn__spin { opacity: 1; scale: 1; animation: spin .75s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }

/* status line under the field: the note, the error and the typo hint share one slot (no layout jump) */
.wl__status { display: grid; margin-top: var(--s2); min-height: 20px; font-size: var(--fs-sm); line-height: 20px; text-wrap: balance; }
.wl__status > * { grid-area: 1 / 1; }
.wl__note { color: var(--ink-3); transition: opacity .3s var(--ease), translate .45s var(--ease); }
.wl.is-invalid .wl__note, .wl.has-hint .wl__note { opacity: 0; translate: 0 -6px; visibility: hidden; transition: opacity .2s var(--ease), translate .3s var(--ease), visibility 0s .2s; }
.wl__error { display: inline-flex; justify-content: center; align-items: center; gap: 8px; font-weight: 600; color: var(--error); }
.wl__error::before { content: "!"; content: "!" / ""; display: grid; place-items: center; flex: none; width: 16px; height: 16px; border-radius: 50%; font: 700 11px/1 var(--f-body); color: var(--bg); background: var(--error); }
.wl__error:empty { display: none; }
.wl__error:not(:empty), .wl__hint:not([hidden]) { animation: msg-in .45s var(--ease) both; }
@keyframes msg-in { from { opacity: 0; transform: translate3d(0, 6px, 0); } }
.wl.has-hint .wl__error { display: none; }
.wl__hint { color: var(--ink-2); }
.wl__fix { font: inherit; font-weight: 600; color: var(--cyan-ink); background: none; border: 0; padding: 3px 2px; margin: -3px 0; border-radius: 6px; cursor: pointer; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.wl.shake .wl__row { animation: shake .5s var(--ease); }
@keyframes shake { 12% { translate: -7px 0; } 28% { translate: 6px 0; } 44% { translate: -4px 0; } 60% { translate: 3px 0; } 76% { translate: -1px 0; } 100% { translate: 0 0; } }

/* ---------- success: the field morphs into the badge (View Transitions; fade fallback) ---------- */
html.vt-done .wl__row, html.vt-done .done__badge { view-transition-name: wl-morph; }
::view-transition-group(wl-morph) { animation-duration: .65s; animation-timing-function: var(--ease); }
::view-transition-old(wl-morph) { animation: vt-out .3s var(--ease) both; }
::view-transition-new(wl-morph) { animation: vt-in .45s .15s var(--ease) both; }
::view-transition-image-pair(wl-morph) { isolation: auto; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }
.wl.is-sent { visibility: hidden; }                      /* keeps its space: nothing above it moves */
html.vt-done .wl.is-sent .wl__row { view-transition-name: none; }

.cta { position: relative; }
.done { position: absolute; top: 0; left: 0; right: 0; display: grid; justify-items: center; outline: none; }
.done__badge {
  position: relative; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: rgba(var(--rgb-lime), .1); box-shadow: 0 0 0 1px rgba(var(--rgb-lime), .35) inset, 0 0 40px -6px rgba(var(--rgb-lime), calc(.6 * var(--g)));
  animation: pop .7s .1s var(--spring-pop) both;
}
.done__badge::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 1.5px rgb(var(--rgb-cyan)); opacity: 0; animation: ring 1.3s .35s var(--ease) both; }
.done__badge svg { width: 64px; height: 64px; overflow: visible; }
.done__ring { fill: none; stroke: var(--lime); stroke-width: 2; stroke-dasharray: 189; stroke-dashoffset: 189; transform: rotate(-90deg); transform-origin: 32px 32px; animation: draw .8s .2s var(--ease) forwards; }
.done__check { fill: none; stroke: var(--lime); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 36; stroke-dashoffset: 36; animation: draw .5s .55s var(--ease) forwards; }
.done h2 {
  margin-top: var(--s3); padding-bottom: .1em;
  font: 600 clamp(1.5rem, 1.1rem + 1.4vw, 2rem)/1.15 var(--f-display); letter-spacing: -.035em;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: in-fade .7s .35s var(--ease) both, in-rise .9s .35s var(--spring) both;
}
.done p { margin-top: var(--s1); color: var(--ink-2); font-size: var(--fs-base); animation: in-fade .7s .45s var(--ease) both, in-rise .9s .45s var(--spring) both; }
.done strong { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.done .done__preview { margin-top: var(--s2); font-size: var(--fs-xs); color: var(--ink-3); animation-delay: .55s; }
.wl.leaving { animation: leave .3s var(--ease) both; }
@keyframes leave { to { opacity: 0; transform: translate3d(0, -8px, 0) scale(.98); } }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
@keyframes ring { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.8); opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- footer: copyright, social placeholders, privacy line ---------- */
.foot {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--s1) var(--s3);
  padding: 0 max(var(--s4), env(safe-area-inset-right)) max(var(--s3), env(safe-area-inset-bottom)) max(var(--s4), env(safe-area-inset-left));
  font-size: var(--fs-sm); line-height: 20px; color: var(--ink-3);
}
.foot__copy { justify-self: start; }
.foot__privacy { justify-self: end; }
.social { display: flex; gap: var(--s1); }
.social a { color: var(--ink-3); }
.social a[data-placeholder] { cursor: default; }
.social svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- phone: the unit stacks (input above button) inside one rounded card ---------- */
@media (max-width: 560px) {
  .top { padding-right: max(var(--s3), env(safe-area-inset-right)); }
  .hero { padding-top: var(--s1); padding-bottom: var(--s3); }
  .wm { margin-top: var(--s3); }
  .headline { margin-top: var(--s3); }
  .cta { margin-top: var(--s4); }
  .wl__row { flex-direction: column; align-items: stretch; height: auto; border-radius: 28px; }   /* inner radius 28 - 8 = 20 */
  .wl input { flex: none; width: 100%; height: 52px; border-radius: 20px; }
  .wl input { min-height: 52px; height: auto; }
  .btn { height: auto; min-height: 52px; width: 100%; border-radius: 20px; padding: 8px 24px; white-space: normal; }   /* grows at large text sizes */
  .theme-toggle { width: 44px; height: 44px; }
  .foot { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s1) var(--s2); padding-top: var(--s2); text-align: center; }
  .social { order: -1; flex: 0 0 100%; justify-content: center; }
  .social a { width: 44px; height: 44px; }
}
@media (min-width: 1800px) { .cta { width: 592px; } }

/* ---------- short windows (landscape phones, 200% zoom): the email field stays in the first screen ---------- */
@media (max-height: 520px) and (min-width: 561px) {
  .top { position: absolute; top: 0; right: 0; z-index: 1; }
  .hero { padding-top: var(--s2); padding-bottom: var(--s3); }
  .eyebrow { height: 24px; }
  .wm { margin-top: var(--s2); }
  .headline { margin-top: var(--s2); font-size: 1.5rem; max-width: none; }
  .hl { display: inline-block; }
  .sub { margin-top: var(--s1); font-size: var(--fs-base); max-width: 46em; }
  .cta { margin-top: var(--s3); }
  .foot { padding-top: var(--s2); }
}

/* ---------- no JavaScript: one honest line where the field would be ---------- */
.nojs { margin: 0 auto; max-width: 30em; padding: var(--s2) var(--s3); border-radius: 20px; font-size: var(--fs-base); color: var(--ink-2); background: var(--field); border: 1px solid var(--line-2); }

/* ---------- more contrast requested: secondary text at full ink, firmer edges, quieter background ---------- */
@media (prefers-contrast: more) {
  :root, :root[data-theme] { --ink-2: var(--ink); --ink-3: var(--ink); --line: rgba(var(--rgb-line), .5); --line-2: rgba(var(--rgb-line), .7); --field-line: rgba(var(--rgb-line), .95); --aurora: .35; --dots: .12; }
  .wl input::placeholder { color: var(--ink-2); }
}

/* ---------- forced colours (Windows contrast themes): no gradients, system colours, real borders ---------- */
@media (forced-colors: active) {
  .bg { display: none; }
  .wm__h, .wm__ot, .done h2 { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: CanvasText; forced-color-adjust: auto; }
  .wm__glow, .btn__glare, .btn::before { display: none; }
  .eyebrow, .btn, .theme-toggle, .done__badge { border: 1px solid ButtonText; }
  .wl__row:has(input:focus) { outline: 2px solid Highlight; outline-offset: 2px; }
  .wl.is-invalid .wl__row { outline: 2px solid Mark; outline-offset: 2px; }
  .dot, .dot::after { background: Highlight; }
  .done__ring, .done__check { stroke: CanvasText; }
  .btn__spin { border-color: GrayText; border-top-color: ButtonText; }
}

/* ---------- print: black on white, one compact block, no decoration ---------- */
@media print {
  :root, :root[data-theme] { color-scheme: light; --bg: #fff; --ink: #000; --ink-2: #222; --ink-3: #444; --rgb-ink: 0, 0, 0; }
  html, body { background: #fff; }
  body { display: block; min-height: 0; }
  .bg, .top, .wl, .done, .social, .wm__glow, .nojs { display: none !important; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero { padding: 48pt 0 0; }
  .wm { font-size: 54pt; }
  .wm__h, .wm__ot { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: #000; }
  .eyebrow { background: none; box-shadow: none; border: 1px solid #999; }
  .dot { background: #000; box-shadow: none; }
  .cta::after { content: "Join the waitlist at harryone.ai"; display: block; margin-top: 24pt; font-weight: 600; color: #000; }
  .foot { display: flex; justify-content: center; gap: 24pt; margin-top: 48pt; }
}

/* ---------- tab hidden: everything pauses (main.js toggles the class) ---------- */
html.is-paused *, html.is-paused *::before, html.is-paused *::after { animation-play-state: paused !important; }

/* ---------- reduced motion: the page is fully still; state changes are instant ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .btn[aria-busy="true"] .btn__spin { animation: spin 1.6s linear infinite !important; }   /* the only motion: busy feedback */
  .done__ring, .done__check { stroke-dashoffset: 0; }
}
