/* ==========================================================================
   moss — site styles
   dark green void, moss photography at the edges. one family (Nunito),
   two weights, self-hosted. no CDN, no third-party anything.
   ========================================================================== */

@font-face {
  font-family: "Nunito";
  src: url("fonts/nunito-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: "Nunito";
  src: url("fonts/nunito-latin-800-normal.woff2") format("woff2");
  font-weight: 800; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

/* --------------------------------------------------------------------------
   tokens
   -------------------------------------------------------------------------- */

:root {
  --void: #050908;
  --void-2: #08110d;

  --ink: #dcede4;
  --muted: #93aea1;
  --faint: #62786c;

  /* green, pulled towards the wordmark */
  --accent: #5fbf7c;
  --accent-hi: #86d99d;
  --brand: #61b677;

  /* the app's signal colour: flags, timers, today */
  --amber: #ff7a2e;
  --amber-hi: #ff9d5e;
  --amber-glow: rgb(255 122 46 / 0.4);

  --line: rgb(147 200 172 / 0.16);
  --line-soft: rgb(147 200 172 / 0.09);
  --panel: rgb(255 255 255 / 0.035);
  --panel-hi: rgb(255 255 255 / 0.065);

  --radius-s: 12px;
  --radius: 20px;
  --radius-l: 28px;

  --nav-h: 74px;
  --measure: 34rem;
  --page: 1160px;
  --gutter: clamp(1.25rem, 5vw, 3.5rem);
  --section-y: clamp(6.5rem, 15vh, 11rem);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 420ms;

  /* the shape everything visual emerges through: an oval patch with no edge */
  --oval: radial-gradient(ellipse 50% 50% at 50% 50%,
    #000 0%, #000 30%, rgba(0,0,0,.97) 62%, rgba(0,0,0,.86) 72%,
    rgba(0,0,0,.62) 81%, rgba(0,0,0,.34) 89%, rgba(0,0,0,.12) 95%,
    rgba(0,0,0,.02) 99%, transparent 100%);
}

/* --------------------------------------------------------------------------
   base
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
  -webkit-text-size-adjust: 100%;
  background: var(--void);
}

body {
  margin: 0;
  background: var(--void);
  color: var(--ink);
  font-family: "Nunito", ui-rounded, "Segoe UI Variable", "Segoe UI",
    system-ui, -apple-system, sans-serif;
  font-weight: 400;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  letter-spacing: 0.005em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* a slow green glow so the void is never flat black */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(70% 55% at 18% 12%, rgb(31 95 78 / 0.16) 0%, transparent 70%),
    radial-gradient(60% 50% at 84% 78%, rgb(28 122 114 / 0.13) 0%, transparent 72%);
}
body > * { position: relative; z-index: 1; }

img, video, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3 {
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.022em;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgb(95 191 124 / 0.3); color: #fff; }

.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;
}

.skip {
  position: absolute; top: 0; left: 0.5rem; z-index: 200;
  padding: 0.6rem 1rem;
  background: var(--void-2); color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  transform: translateY(-300%);
  transition: transform 200ms var(--ease);
}
.skip:focus { transform: translateY(0.5rem); }

/* --------------------------------------------------------------------------
   layout
   -------------------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(4.5rem, 10vh, 7rem); }

.eyebrow {
  font-size: 0.8125rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 800;
  margin-bottom: 1.35rem;
}

.h2 { font-size: clamp(1.9rem, 1.2rem + 3.1vw, 3.1rem); }

.lede {
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.1875rem);
  color: var(--muted);
  max-width: var(--measure);
  margin-top: 1.5rem;
}
.center { text-align: center; }
.center .lede { margin-inline: auto; }

/* --------------------------------------------------------------------------
   buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.78em 1.5em;
  border-radius: 999px;
  background: var(--accent);
  color: #04110c;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  box-shadow: 0 0 0 1px rgb(95 191 124 / 0.25), 0 10px 34px rgb(95 191 124 / 0.18);
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}
.btn:hover {
  background: var(--accent-hi);
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgb(134 217 157 / 0.35), 0 16px 44px rgb(95 191 124 / 0.28);
}
.btn:active { transform: translateY(0); }
.btn--lg { padding: 0.92em 1.9em; font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem); }
/* the whole label is ONE flex item, so the flex gap can't wedge itself
   between "Get it on the" and "Microsoft Store" */
.btn__label { display: inline; }
.btn .chev { flex: 0 0 auto; transition: transform var(--dur) var(--ease); }
.btn:hover .chev { transform: translateX(3px); }

.fineprint { font-size: 0.875rem; color: var(--muted); margin-top: 1rem; }

/* --------------------------------------------------------------------------
   floating nav — no bar, no border, no fill
   -------------------------------------------------------------------------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  pointer-events: none;
}
.nav::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgb(5 9 8 / 0.94) 0%, rgb(5 9 8 / 0.62) 45%,
    rgb(5 9 8 / 0.2) 78%, transparent 100%);
  opacity: 0;
  transition: opacity 600ms var(--ease);
  pointer-events: none;
}
.nav.is-lit::before { opacity: 1; }

.nav__inner {
  display: flex; align-items: center; gap: 1.75rem;
  width: 100%; max-width: var(--page);
  margin-inline: auto; padding-inline: var(--gutter);
}
.nav a { pointer-events: auto; }

.nav__home { display: flex; align-items: center; flex: 0 0 auto; }
.nav__home img { height: 30px; width: auto; filter: drop-shadow(0 2px 12px rgb(0 0 0 / 0.75)); }

.nav__links { display: flex; align-items: center; gap: 1.65rem; margin-left: auto; }
.nav__links a {
  color: var(--muted); text-decoration: none; font-size: 0.9375rem;
  text-shadow: 0 1px 12px rgb(0 0 0 / 0.8);
  transition: color var(--dur) var(--ease);
}
.nav__links a:hover, .nav__links a[aria-current] { color: var(--ink); }

@media (max-width: 860px) { .nav__links { gap: 1.2rem; } }
@media (max-width: 700px) {
  /* four links won't fit a phone; this one still lives in the footer */
  .nav__wide { display: none; }
}
@media (max-width: 560px) {
  :root { --nav-h: 62px; }
  .nav__home img { height: 22px; }
  .nav__links { gap: 1.05rem; }
  .nav__links a { font-size: 0.8125rem; }
}

/* --------------------------------------------------------------------------
   moss photography — the top and bottom of the page sit on it, and it
   dissolves into the void rather than ending on an edge
   -------------------------------------------------------------------------- */

.photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.photo__img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.68;
}
/* vignette */
.photo::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(80% 70% at 50% 44%, rgb(5 9 8 / 0.38) 0%, rgb(5 9 8 / 0.7) 52%, rgb(5 9 8 / 0.95) 100%),
    linear-gradient(to right, var(--void) 0%, transparent 14%, transparent 86%, var(--void) 100%);
}
/* and a long eased dissolve where it meets the void, so there is no edge
   anywhere. the mask goes on .photo, not on the <img> — the vignette above
   is a child pseudo-element and has to fade out with it, otherwise the
   overlay stops dead at the section boundary and leaves a visible step. */
.photo--top,
.photo--bottom {
  --dissolve: #000 0%, #000 16%, rgba(0,0,0,.96) 26%, rgba(0,0,0,.88) 35%,
    rgba(0,0,0,.75) 44%, rgba(0,0,0,.6) 53%, rgba(0,0,0,.44) 62%,
    rgba(0,0,0,.3) 70%, rgba(0,0,0,.18) 78%, rgba(0,0,0,.1) 85%,
    rgba(0,0,0,.045) 91%, rgba(0,0,0,.012) 96%, transparent 100%;
}
.photo--top {
  -webkit-mask-image: linear-gradient(to bottom, var(--dissolve));
  mask-image: linear-gradient(to bottom, var(--dissolve));
}
.photo--bottom {
  -webkit-mask-image: linear-gradient(to top, var(--dissolve));
  mask-image: linear-gradient(to top, var(--dissolve));
}

/* --------------------------------------------------------------------------
   opening
   -------------------------------------------------------------------------- */

.open {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  padding-block: clamp(4rem, 10vh, 7rem) clamp(6rem, 14vh, 9rem);
}

.open__media { position: absolute; inset: 0; z-index: -1; }
.open__media video { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.open__media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(72% 58% at 50% 44%, rgb(5 9 8 / 0.72) 0%, rgb(5 9 8 / 0.58) 45%, rgb(5 9 8 / 0.88) 100%),
    linear-gradient(to bottom, var(--void) 0%, transparent 24%, transparent 60%, var(--void) 100%);
}

.open__inner { position: relative; text-align: center; display: grid; justify-items: center; }
.open h1 { font-size: 0; margin: 0; }
.open__mark {
  width: min(clamp(270px, 58vw, 700px), 100%);
  margin-inline: auto;
  filter: drop-shadow(0 8px 42px rgb(5 9 8 / 0.85)) drop-shadow(0 0 70px rgb(95 191 124 / 0.22));
}

.open__rule {
  width: min(420px, 70%);
  height: 1px;
  margin-top: clamp(1.5rem, 4vh, 2.5rem);
  background: linear-gradient(to right, transparent, var(--line), transparent);
  transform: scaleX(0);
}

.open__sub {
  margin-top: clamp(1.5rem, 3.6vh, 2.3rem);
  font-size: clamp(1.0625rem, 0.98rem + 0.5vw, 1.3125rem);
  line-height: 1.5;
  color: var(--ink);
  max-width: 42ch;
  text-wrap: balance;
  text-shadow: 0 2px 20px rgb(5 9 8 / 0.9);
}
.open__cta { margin-top: clamp(1.9rem, 4.4vh, 2.9rem); }
.open .fineprint { color: var(--ink); text-shadow: 0 2px 16px rgb(5 9 8 / 0.9); }

/* the cue is centred by its wrapper, never by a transform — the intro
   animation ends on `transform: none` and would wipe the centring out */
.cue-wrap {
  position: absolute;
  left: 0; right: 0;
  bottom: clamp(1.5rem, 4vh, 2.75rem);
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.cue {
  pointer-events: auto;
  display: grid; justify-items: center; gap: 0.4rem;
  color: var(--accent); text-decoration: none; padding: 0.5rem 1rem;
  transition: opacity 500ms var(--ease);
}
.cue__label {
  font-size: 0.9375rem;
  letter-spacing: 0.3em;
  font-weight: 800;
  color: var(--ink);
  text-shadow: 0 2px 16px rgb(5 9 8 / 0.9);
}
.cue__chev {
  width: 62px; height: 62px;
  stroke-width: 1.7;
  filter: drop-shadow(0 2px 14px rgb(5 9 8 / 0.9));
  animation: cue-blink 2600ms var(--ease) infinite;
}
@media (max-width: 560px) {
  .cue__label { font-size: 0.8125rem; letter-spacing: 0.26em; }
  .cue__chev { width: 50px; height: 50px; }
}
.cue.is-gone { opacity: 0; pointer-events: none; }

@keyframes cue-blink {
  0%, 100% { opacity: 0.25; transform: translateY(0); }
  45%      { opacity: 1;    transform: translateY(7px); }
  72%      { opacity: 0.45; transform: translateY(2px); }
}

/* --------------------------------------------------------------------------
   load-in
   -------------------------------------------------------------------------- */

.js [data-lift] { opacity: 0; transform: translate3d(0, 26px, 0); }
.js [data-lift="rule"] { transform: scaleX(0); }
.js body.is-ready [data-lift] {
  animation: lift 900ms var(--ease) both;
  animation-delay: calc(var(--d, 0) * 1ms);
}
.js body.is-ready [data-lift="rule"] {
  animation: draw 1100ms var(--ease) both;
  animation-delay: calc(var(--d, 0) * 1ms);
}
@keyframes lift {
  from { opacity: 0; transform: translate3d(0, 26px, 0); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes draw {
  from { opacity: 0; transform: scaleX(0); }
  to   { opacity: 1; transform: scaleX(1); }
}

/* --------------------------------------------------------------------------
   the one pinned stage: opening -> clutter -> clarity, driven by scroll
   -------------------------------------------------------------------------- */

.stage { position: relative; height: calc(var(--len, 240) * 1svh); }
.stage__pin {
  position: sticky; top: 0; height: 100svh;
  overflow: hidden;
  display: grid; place-items: center;
}
.stage__copy {
  position: absolute; inset: 0;
  z-index: 2;
  display: grid;
  justify-items: center; justify-content: center;
  align-content: center; align-items: center;
  padding-inline: var(--gutter);
  text-align: center;
  will-change: opacity, transform;
}
.stage__copy > * { width: 100%; max-width: var(--page); }
.js .stage__copy { opacity: 0; }

.stage__rail {
  position: absolute; right: clamp(0.9rem, 2.4vw, 2rem); top: 50%;
  transform: translateY(-50%);
  width: 2px; height: min(180px, 22vh);
  border-radius: 2px; background: var(--line-soft);
  z-index: 3; overflow: hidden;
}
.stage__rail::after {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 100%;
  background: linear-gradient(to bottom, var(--accent-hi), var(--accent));
  transform-origin: top; transform: scaleY(var(--p, 0));
}
@media (max-width: 560px) { .stage__rail { display: none; } }

/* --------------------------------------------------------------------------
   the reel — clips and quips inside the one pinned passage
   -------------------------------------------------------------------------- */

.stage__copy--media {
  padding-inline: clamp(0.5rem, 2.5vw, 2.5rem);
  /* the shared .stage__copy centres its grid track, which sizes the track to
     its content — a percentage width inside it then resolves against nothing.
     Media panels stretch instead and centre with auto margins. */
  justify-items: stretch;
  justify-content: stretch;
}
.stage__copy--media > * { width: 100%; max-width: none; }

.reel {
  margin: 0 auto;
  width: min(100%, calc((100svh - 6rem) * 16 / 9));
  aspect-ratio: 16 / 9;
  /* the clip is an oval patch of light in the dark — it has no edge to find */
  -webkit-mask-image: var(--oval);
  mask-image: var(--oval);
}
.reel__video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  background: transparent;
}
@media (max-width: 700px) {
  /* 16:9 in a portrait viewport is a thin strip; crop in so the widget fills
     the screen. Check your recordings keep the widget centred. */
  .reel { width: 100%; aspect-ratio: 4 / 5; }
}

/* quips between the clips */
.quip { display: grid; justify-items: center; gap: 1.9rem; }
.quip p {
  font-size: clamp(1.75rem, 1.05rem + 3.2vw, 3.3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.14;
  max-width: 26ch;
}
.quip__marks {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 1.9rem);
  color: var(--accent);
}
.quip__marks:empty { display: none; }
.quip__icon { width: clamp(48px, 7vw, 74px); height: auto; }

.pop { opacity: 0; transform-origin: 50% 50%; }
.is-on .pop {
  animation: pop 620ms var(--ease) forwards;
  animation-delay: calc(var(--d, 0) * 1ms);
}

/* the offline brain */
.quip__net { width: min(100%, 640px); color: var(--accent); }
.nn { width: 100%; height: auto; overflow: visible; }
.nn__link {
  stroke: currentColor;
  stroke-width: 0.9;
  opacity: 0.2;
}
.is-on .nn__link {
  animation: nn-flash calc(var(--t, 2600) * 1ms) ease-in-out infinite;
  animation-delay: calc(var(--d, 0) * 1ms);
}
.nn__node {
  fill: var(--void);
  stroke: currentColor;
  stroke-width: 1.9;
  opacity: 0.7;
}
.is-on .nn__node {
  animation: nn-pulse 2800ms ease-in-out infinite;
  animation-delay: calc(var(--d, 0) * 1ms);
}

@keyframes nn-flash {
  0%, 100% { opacity: 0.2; }
  4%       { opacity: 0.95; }
  16%      { opacity: 0.1; }
}
@keyframes nn-pulse {
  0%, 100% { opacity: 0.5; }
  50%      { opacity: 1; }
}

/* --------------------------------------------------------------------------
   premise — the one moment of pure typography
   -------------------------------------------------------------------------- */

.premise__line { display: grid; justify-items: center; gap: 1.9rem; }
.premise__line p {
  font-size: clamp(1.9rem, 1.1rem + 3.6vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
}
.premise__mark { width: clamp(140px, 30vw, 230px); height: auto; color: var(--accent); }

/* the tangle never quite settles */
.premise__mark--tangle path { transform-origin: 50% 50%; }
.is-on .premise__mark--tangle path:nth-child(1) { animation: wobble-a 3.1s ease-in-out infinite; }
.is-on .premise__mark--tangle path:nth-child(2) { animation: wobble-b 3.7s ease-in-out infinite .2s; }
.is-on .premise__mark--tangle path:nth-child(3) { animation: wobble-c 4.3s ease-in-out infinite .4s; }

@keyframes wobble-a {
  0%,100% { transform: rotate(-1.1deg) translate(0.6px, -0.4px); }
  33%     { transform: rotate(1.3deg)  translate(-0.8px, 0.7px); }
  66%     { transform: rotate(-0.5deg) translate(0.4px, 0.5px); }
}
@keyframes wobble-b {
  0%,100% { transform: rotate(0.9deg)  translate(-0.5px, 0.5px); }
  40%     { transform: rotate(-1.4deg) translate(0.7px, -0.6px); }
  70%     { transform: rotate(0.4deg)  translate(-0.3px, -0.3px); }
}
@keyframes wobble-c {
  0%,100% { transform: rotate(-0.8deg) translate(0.5px, 0.4px); }
  45%     { transform: rotate(1.1deg)  translate(-0.6px, -0.5px); }
}

/* the rules snap into place, one after another */
.premise__mark--rules path {
  transform-origin: left center;
  transform: scaleX(0) translateX(-8px);
  opacity: 0;
}
.is-on .premise__mark--rules path {
  animation: rule-in 620ms var(--ease) forwards;
}
.is-on .premise__mark--rules path:nth-child(1) { animation-delay: 120ms; }
.is-on .premise__mark--rules path:nth-child(2) { animation-delay: 340ms; }
.is-on .premise__mark--rules path:nth-child(3) { animation-delay: 560ms; }

@keyframes rule-in {
  from { transform: scaleX(0) translateX(-8px); opacity: 0; }
  to   { transform: scaleX(1) translateX(0);    opacity: 1; }
}

/* --------------------------------------------------------------------------
   glide — sections rising out of the dark as they enter
   -------------------------------------------------------------------------- */

.js [data-glide] {
  opacity: 0;
  transform: translate3d(0, 34px, 0);
  will-change: opacity, transform;
}

/* --------------------------------------------------------------------------
   video clips
   -------------------------------------------------------------------------- */

.clip {
  margin: 0;
  position: relative;
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--void-2);
  border: 1px solid var(--line-soft);
  box-shadow: 0 30px 90px rgb(0 0 0 / 0.55);
  aspect-ratio: 16 / 9;
}
.clip video { width: 100%; height: 100%; object-fit: cover; }
.clip__note {
  position: absolute; left: 50%; bottom: 1rem;
  transform: translateX(-50%);
  font-size: 0.75rem; color: var(--ink);
  background: rgb(5 9 8 / 0.82);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  padding: 0.3rem 0.8rem; border-radius: 999px;
  pointer-events: none; white-space: nowrap;
  max-width: calc(100% - 2rem); overflow: hidden; text-overflow: ellipsis;
}

/* --------------------------------------------------------------------------
   privacy marks — pop in, get struck out, shake it off
   -------------------------------------------------------------------------- */

.marks {
  display: flex; gap: clamp(2rem, 7vw, 4.5rem);
  align-items: center; justify-content: center;
  margin-top: 3rem; color: var(--accent);
  flex-wrap: wrap;
}
.mark { width: clamp(80px, 15vw, 120px); height: auto; }
.mark .glyph { transform-origin: 50% 50%; opacity: 0; }
.mark .strike {
  stroke-dasharray: 56;
  stroke-dashoffset: 56;
  opacity: 0;
  color: var(--amber);
}

.is-on .mark .glyph { animation: pop 620ms var(--ease) forwards; }
.is-on .mark .strike { animation: strike 420ms var(--ease) forwards; }
.is-on .mark { animation: shake 520ms var(--ease); }

.is-on .mark--wifi  .glyph { animation-delay: 120ms; }
.is-on .mark--wifi  .strike { animation-delay: 740ms; }
.is-on .mark--wifi  { animation-delay: 1000ms; }
.is-on .mark--cloud .glyph { animation-delay: 320ms; }
.is-on .mark--cloud .strike { animation-delay: 940ms; }
.is-on .mark--cloud { animation-delay: 1200ms; }

@keyframes pop {
  0%   { opacity: 0; transform: scale(0.6); }
  70%  { opacity: 1; transform: scale(1.09); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes strike {
  from { stroke-dashoffset: 56; opacity: 1; }
  to   { stroke-dashoffset: 0;  opacity: 1; }
}
@keyframes shake {
  0%, 100% { transform: translateX(0) rotate(0); }
  15% { transform: translateX(-4px) rotate(-1.6deg); }
  35% { transform: translateX(4px)  rotate(1.6deg); }
  55% { transform: translateX(-3px) rotate(-1deg); }
  75% { transform: translateX(2px)  rotate(0.7deg); }
}

/* --------------------------------------------------------------------------
   bento
   -------------------------------------------------------------------------- */

.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 3.25rem;
}
.tile {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 2.4vw, 1.9rem);
  display: grid; align-content: start; gap: 0.55rem;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}
.tile:hover {
  transform: translateY(-3px);
  background: var(--panel-hi);
  border-color: var(--line);
}
/* the app's own signal colour, and it glows the way it does in the app */
.tile__icon {
  width: 32px; height: 32px;
  margin-bottom: 0.4rem;
  color: var(--amber);
  filter: drop-shadow(0 0 8px var(--amber-glow)) drop-shadow(0 0 18px rgb(255 122 46 / 0.22));
}
.tile h3 { font-size: 1.1875rem; }
.tile p { color: var(--muted); font-size: 0.9688rem; line-height: 1.55; }

.tile--full {
  grid-column: 1 / -1;
  background:
    radial-gradient(120% 220% at 0% 0%, rgb(255 122 46 / 0.1) 0%, transparent 58%),
    var(--panel-hi);
  border-color: rgb(255 122 46 / 0.26);
}
.tile--full h3 { color: var(--amber-hi); font-size: 1.35rem; }
.tile--full p { color: var(--ink); font-size: 1.0625rem; max-width: 48ch; }

@media (max-width: 860px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   themes — hover a dot, the whole app changes colour
   -------------------------------------------------------------------------- */

.themes { display: grid; justify-items: center; }

.themes__stage {
  position: relative;
  width: 100%;
  max-width: 1000px;
  aspect-ratio: 1100 / 618;
  margin-top: 2.75rem;
  /* same treatment as the reel clips: an oval patch out of the dark, no edge */
  -webkit-mask-image: var(--oval);
  mask-image: var(--oval);
}
.themes__stage img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 460ms var(--ease);
}
.themes__stage img.is-on { opacity: 1; }

.themes__name {
  margin-top: 2rem;
  height: 1.6em;
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 200ms var(--ease), transform 200ms var(--ease);
}
.themes__name.is-on { opacity: 1; transform: none; }

.dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.35rem;
  flex-wrap: wrap;
  padding: 0.5rem 0 0.25rem;
}
.dot {
  --push: 0px;
  appearance: none;
  border: 0;
  padding: 0;
  width: 30px; height: 30px;
  border-radius: 999px;
  background: var(--c);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.16), 0 4px 14px rgb(0 0 0 / 0.5);
  cursor: pointer;
  transform: translateX(var(--push));
  transition: transform 320ms var(--ease), box-shadow 320ms var(--ease);
}
.dot:hover, .dot:focus-visible, .dot.is-active {
  transform: translateX(var(--push)) scale(1.28);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.3), 0 0 0 3px rgb(5 9 8 / 0.9),
    0 0 0 4px var(--c), 0 8px 24px rgb(0 0 0 / 0.6);
}

@media (max-width: 560px) {
  .dots { gap: 0.45rem; }
  .dot { width: 22px; height: 22px; }
}
@media (max-width: 380px) {
  .dots { gap: 0.35rem; }
  .dot { width: 20px; height: 20px; }
}

/* --------------------------------------------------------------------------
   versions
   -------------------------------------------------------------------------- */

.plans {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  margin-top: 3.25rem; align-items: start;
}
.plan { display: grid; gap: 0.35rem; }
.plan__name { font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.75rem); font-weight: 800; letter-spacing: -0.02em; }
.plan__price { color: var(--muted); font-size: 0.9375rem; margin-bottom: 1.25rem; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.plan li {
  display: grid; grid-template-columns: 1.15rem 1fr; gap: 0.7rem;
  align-items: start; color: var(--ink);
}
.plan li svg { width: 1.15rem; height: 1.15rem; margin-top: 0.35em; color: var(--accent); }
.plan__lead { color: var(--muted); font-size: 0.9375rem; margin-bottom: 1rem; }
.plan--full { position: relative; }
.plan--full::before {
  content: "";
  position: absolute; left: calc(clamp(1.5rem, 4vw, 3.5rem) * -0.5);
  top: 0.4rem; bottom: 0.4rem; width: 1px; background: var(--line);
}
@media (max-width: 720px) {
  .plans { grid-template-columns: 1fr; gap: 3rem; }
  .plan--full::before { display: none; }
}

/* --------------------------------------------------------------------------
   before you download
   -------------------------------------------------------------------------- */

.plain { max-width: 42rem; border-left: 1px solid var(--line); padding-left: clamp(1.25rem, 3vw, 2rem); }
.plain h2 { font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.5rem); margin-bottom: 1rem; }
.plain p { color: var(--muted); }
.plain p + p { margin-top: 1rem; }

/* --------------------------------------------------------------------------
   close
   -------------------------------------------------------------------------- */

.close {
  position: relative;
  text-align: center;
  padding-block: clamp(9rem, 22vh, 15rem);
  overflow: hidden;
  isolation: isolate;
}
.close__mark {
  width: min(clamp(240px, 48vw, 560px), 100%);
  margin-inline: auto;
  filter: drop-shadow(0 8px 42px rgb(5 9 8 / 0.85)) drop-shadow(0 0 60px rgb(95 191 124 / 0.2));
}
.close__tag {
  font-size: clamp(1.25rem, 1.05rem + 1vw, 1.85rem);
  color: var(--accent); font-weight: 800; letter-spacing: -0.02em;
  margin-top: clamp(1.35rem, 3vh, 2.1rem);
  text-shadow: 0 2px 20px rgb(5 9 8 / 0.9);
}
.close__where { color: var(--ink); font-size: 0.9375rem; margin-top: 0.75rem; text-shadow: 0 2px 16px rgb(5 9 8 / 0.9); }
.close .btn { margin-top: 2.4rem; }

/* --------------------------------------------------------------------------
   footer
   -------------------------------------------------------------------------- */

.foot {
  border-top: 1px solid var(--line-soft);
  padding-block: 2.5rem 3.25rem;
  font-size: 0.875rem;
  color: var(--faint);
}
.foot ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.15rem;
}
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.foot .sep { color: var(--line); }
.foot__claim { margin-top: 0.9rem; color: var(--faint); }

/* --------------------------------------------------------------------------
   secondary pages
   -------------------------------------------------------------------------- */

.doc {
  max-width: 44rem;
  padding-block: calc(var(--nav-h) + clamp(3rem, 8vh, 5rem)) clamp(4rem, 10vh, 7rem);
}
.doc h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 2.75rem); }
.doc__meta { color: var(--faint); font-size: 0.875rem; margin-top: 0.75rem; }
.doc h2 {
  font-size: clamp(1.1875rem, 1.1rem + 0.5vw, 1.375rem);
  margin-top: 2.75rem; margin-bottom: 0.75rem;
  color: var(--accent-hi);
}
.doc p { color: var(--ink); margin-top: 1rem; }
.doc p:first-of-type { margin-top: 1.75rem; }
.doc ul { color: var(--ink); padding-left: 1.15rem; margin-top: 1rem; display: grid; gap: 0.4rem; }
.doc code {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.875em; background: var(--panel-hi);
  padding: 0.12em 0.4em; border-radius: 6px;
}
.doc--wide { max-width: 60rem; }
.doc__back { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.9375rem; text-decoration: none; margin-top: 3rem; }

/* the founder block: portrait left, words right */
.bio {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: clamp(1.5rem, 4vw, 2.75rem);
  align-items: start;
  margin-top: 3.5rem;
  padding-top: 2.75rem;
  border-top: 1px solid var(--line-soft);
}
.bio__photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: 0 20px 60px rgb(0 0 0 / 0.55);
}
.bio__name { font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.65rem); font-weight: 800; letter-spacing: -0.02em; }
.bio__role { color: var(--accent); font-size: 0.9375rem; font-weight: 800; margin-top: 0.15rem; }
.bio p { margin-top: 1.1rem; }
.bio p:first-of-type { margin-top: 1.35rem; }

@media (max-width: 820px) {
  .bio { grid-template-columns: 260px 1fr; }
}
@media (max-width: 640px) {
  .bio { grid-template-columns: 1fr; }
  .bio__photo { max-width: 300px; }
}

/* --------------------------------------------------------------------------
   reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-lift], .js [data-glide], .js .stage__copy { opacity: 1 !important; transform: none !important; }
  .open__rule { transform: scaleX(1); }
  .mark .glyph { opacity: 1; }
  .mark .strike { stroke-dashoffset: 0; opacity: 1; }
  .premise__mark--rules path { transform: none; opacity: 1; }

  .stage { height: auto !important; }
  .stage__pin { position: static; height: auto; display: block; padding-block: clamp(4rem, 10vh, 7rem); }
  .stage__copy {
    position: static; inset: auto; display: block;
    opacity: 1 !important; margin-inline: auto; padding-block: 2rem;
  }
  .stage__copy > * { margin-inline: auto; }
  .stage__rail { display: none; }
  .cue__chev { animation: none; opacity: 0.75; }
  .btn:hover, .tile:hover, .dot:hover { transform: none; }
  .themes__stage img.is-on { opacity: 1; }
  .pop { opacity: 1; }
  .reel {
    width: 100%;
    max-width: 900px;
    aspect-ratio: 16 / 9;
    -webkit-mask-image: none;
    mask-image: none;
    border-radius: var(--radius-l);
    overflow: hidden;
    border: 1px solid var(--line-soft);
  }
}

/* --------------------------------------------------------------------------
   no javascript
   -------------------------------------------------------------------------- */

html:not(.js) .stage { height: auto; }
html:not(.js) .stage__pin { position: static; height: auto; display: block; padding-block: clamp(4rem, 10vh, 7rem); }
html:not(.js) .stage__copy {
  position: static; inset: auto; display: block;
  margin-inline: auto; padding-block: 2rem;
}
html:not(.js) .stage__copy > * { margin-inline: auto; }
html:not(.js) .stage__rail { display: none; }
html:not(.js) .open__rule { transform: scaleX(1); }
html:not(.js) .mark .glyph { opacity: 1; }
html:not(.js) .mark .strike { stroke-dashoffset: 0; opacity: 1; }
html:not(.js) .premise__mark--rules path { transform: none; opacity: 1; }
/* without JS the theme picker can't swap images, so show the default only */
html:not(.js) .themes__stage img[data-default] { opacity: 1; }
html:not(.js) .dots { display: none; }
html:not(.js) .themes__name { opacity: 1; }

html:not(.js) .pop { opacity: 1; }
html:not(.js) .reel {
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16 / 9;
  -webkit-mask-image: none;
  mask-image: none;
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid var(--line-soft);
}
html:not(.js) .stage__copy--media > * { max-width: 900px; }

/* founder's linkedin — the mark only, on the role line */
.bio__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5em;
  height: 1.5em;
  padding: 0.17em;
  margin-left: 0.6em;
  vertical-align: -0.4em;
  border-radius: 0.28em;
  background: var(--accent);
  color: var(--void);
  text-decoration: none;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.bio__link svg { width: 100%; height: 100%; display: block; }
.bio__link:hover { background: var(--accent-hi); transform: translateY(-1px); }
