@font-face {
  font-family: 'Geist';
  src: url('assets/fonts/Geist-Variable.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}
/* POI Aeronaut is a trial font: its licence allows evaluation on this Mac but not on the web,
   so it is never copied into the project — the page uses the copy installed on the Mac.
   A web licence is needed before the site goes live. */
@font-face {
  font-family: 'Aeronaut';
  src: local('POI Aeronaut Trial'), local('POIAeronautTrial-Regular');
  font-display: swap;
}

:root {
  --hero-h: 160vh;         /* the cloud part's scroll length; features sit pinned underneath it */
  --bg: #f8f8f6;           /* the app's background: where the clouds end */
  --text: #111111;
  --muted: #6e6e6e;
  --sky-top: #6f98b3;
  --sky-mid: #86a9c1;
  --sky-low: #b4cad8;
  --ease: cubic-bezier(0.2, 0.85, 0.25, 1);

  /* the app's liquid glass */
  --glass-bg: rgba(250, 250, 248, 0.52);
  --glass-shadow: inset 0 1px 0.5px rgba(255, 255, 255, 0.85), inset 0 -1px 1px rgba(255, 255, 255, 0.25), 0 0 0 0.5px rgba(0, 0, 0, 0.06), 0 10px 30px rgba(0, 0, 0, 0.13), 0 2px 6px rgba(0, 0, 0, 0.06);
  --glass-chip: rgba(255, 255, 255, 0.9);
  --chip-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 3px 10px rgba(0, 0, 0, 0.07);
}

* { box-sizing: border-box; margin: 0; }
html { background: var(--bg); }
body {
  font-family: 'Google Sans', 'Geist', system-ui, sans-serif;   /* body text; headlines use Aeronaut */
  color: var(--text);
  background: transparent;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Headlines: POI Aeronaut with the Figma settings — rare ligatures, contextual alternates,
   Rounded alternates (ss01), cursive b d h (ss02), g j y (ss03) and f (ss05). */
.display {
  font-family: 'Aeronaut', 'Google Sans', system-ui, sans-serif;
  font-weight: 400;
  font-kerning: normal;
  font-feature-settings: 'kern' 1, 'liga' 1, 'dlig' 1, 'calt' 1, 'ss01' 1, 'ss02' 1, 'ss03' 1, 'ss05' 1;
  letter-spacing: -1px;
  line-height: 1.02;
  text-wrap: balance;
}

/* ---------------------------------------------------------------- sky and clouds */
.sky {
  position: fixed; inset: 0; z-index: 0;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 55%, var(--sky-low) 100%);
}
/* the sky whitens as the clouds thicken, so no blue shows between them on the way down */
.sky-fade { position: absolute; inset: 0; background: var(--bg); opacity: 0; }
.clouds { position: fixed; inset: 0; z-index: 2; pointer-events: none; }
.clouds-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* the page colour closing in at the end of the hero */
.veil { position: fixed; inset: 0; z-index: 2; background: var(--bg); opacity: 0; pointer-events: none; }

/* ---------------------------------------------------------------- wordmark */
.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 3;
  display: flex; justify-content: center;
  padding-top: clamp(20px, 3.2vw, 36px);
  pointer-events: none;
}
.wordmark { display: block; color: #fff; pointer-events: auto; transition: opacity 0.6s var(--ease), filter 0.6s var(--ease); }
.wordmark svg { display: block; width: clamp(96px, 9vw, 132px); height: auto; }
/* it melts into the clouds; from there on the wordmark lives in the dock */
body.on-light .wordmark { opacity: 0; filter: blur(6px); pointer-events: none; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; z-index: 3; height: var(--hero-h); }  /* above the clouds: they never cover the button */
.hero-pin {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: grid; place-items: center; padding: 0 16px;
}
.hero-copy {
  max-width: 1000px; text-align: center; color: #fff;
  display: flex; flex-direction: column; align-items: center;
  will-change: transform, opacity, filter;
}
.hero-copy .display { font-size: clamp(44px, 7.4vw, 104px); }
/* each line of the headline stays whole: the box is sized to the text, and rounding can leave it a hair too narrow */
@media (min-width: 601px) { .hero-copy .display { white-space: nowrap; } }
.lede {
  margin-top: clamp(18px, 2.2vw, 28px); max-width: 27em; text-wrap: balance;
  font-size: clamp(16px, 1.45vw, 20px); line-height: 1.45; color: rgba(255, 255, 255, 0.92);
}
.lede-dark { color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 30px; margin-top: clamp(24px, 2.6vw, 34px);
  border-radius: 999px; font-size: 16px; font-weight: 500; letter-spacing: -0.005em;
  text-decoration: none; transition: transform 0.18s var(--ease), box-shadow 0.25s var(--ease);
}
.btn:active { transform: scale(0.96); }
/* the Apple mark: reads at a glance as a Mac download */
.apple { width: 1.05em; height: 1.05em; margin-right: 0.45em; fill: currentColor; flex: none; translate: 0 -0.08em; }
.btn-light { background: var(--glass-chip); color: var(--text); box-shadow: var(--chip-shadow), inset 0 1px 0.5px #fff; }
.btn-light:hover { box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06), 0 8px 22px rgba(0, 0, 0, 0.1), inset 0 1px 0.5px #fff; }

/* ---------------------------------------------------------------- features: a deck of cards
   The card stage pins while you scroll. The front card slides up and off the screen, and the one
   behind it grows into its place; the cards behind are smaller, lower and dimmed, so only their
   bottom edges peek out. Each feature's text appears beside its card, alternating sides. */
/* The features stage starts at the very top of the page, pinned in place behind the clouds, and
   is revealed where it stands as they clear — nothing slides up from below. */
.features { position: relative; z-index: 3; margin-top: calc(-1 * var(--hero-h)); pointer-events: none; }
/* after the clouds: a pause on the first card, then one screen of scroll per card, then a pause on the last */
.feat-stage { --lead: 45vh; --step: 100vh; --tail: 35vh; position: relative; height: calc(var(--hero-h) + var(--lead) + (var(--n) - 1) * var(--step) + var(--tail)); }
.feat-pin {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  opacity: 0; will-change: opacity, filter, transform;
}
.features.shown { pointer-events: auto; }
.features:not(.shown) * { pointer-events: none !important; }   /* hidden: never in the way of the hero */

/* sizes as on the reference: the card about 78% of the window wide at 1.59:1, its top a quarter of
   the way down; capped by height so the stack behind still clears the dock */
.feat-pin { --card-top: 19vh; }
.feat-deck {
  position: absolute; left: 50%; top: var(--card-top); translate: -50% 0;
  width: min(78vw, calc((81vh - 150px) * 1.588));   /* 150px: the dock and the peeking stack below */
  aspect-ratio: 900 / 567;
}
.feat-card {
  position: absolute; inset: 0;
  border-radius: clamp(24px, 3.4vw, 44px);
  background: #d9d9d9; overflow: hidden;
  transform-origin: 50% 100%;
  will-change: transform;
}
/* the cards behind are dimmed; the overlay fades as a card comes to the front */
.feat-card::after { content: ''; position: absolute; inset: 0; background: #bdbdbd; opacity: var(--dim, 0); }
.feat-card-inner { position: absolute; inset: 0; }

/* the feature's title and description sit just above the front card, centred */
.feat-text {
  position: absolute; left: 0; right: 0; bottom: calc(100% - var(--card-top) + clamp(20px, 3vh, 32px));
  padding: 0 16px; text-align: center;
  will-change: transform, opacity;
}
.feat-title { font-size: clamp(28px, 3.4vw, 48px); color: var(--text); }
.feat-sub {
  margin: clamp(8px, 1.2vh, 14px) auto 0; max-width: 34em;
  font-size: clamp(15px, 1.25vw, 18px); line-height: 1.45; color: var(--muted); text-wrap: balance;
}

@media (max-width: 860px) {
  .feat-deck { width: calc(100vw - 32px); }
}

/* ---------------------------------------------------------------- FAQ */
.faq { position: relative; z-index: 3; background: var(--bg); padding: clamp(80px, 14vh, 160px) clamp(16px, 4vw, 56px) clamp(140px, 20vh, 220px); }
.faq-wrap {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px);
}
.faq-side { display: flex; flex-direction: column; justify-content: space-between; gap: 48px; }
.faq-heading { font-size: clamp(36px, 4.4vw, 60px); line-height: 1.04; color: var(--text); }

/* a card in the app's manner: white, soft edge, generous corners */
.faq-contact {
  max-width: 360px; padding: 28px; border-radius: 28px;
  background: #fff; box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03), 0 8px 24px rgba(0, 0, 0, 0.04);
}
.faq-contact-icon {
  width: 52px; height: 52px; border-radius: 999px; background: var(--bg);
  display: grid; place-items: center; font-size: 24px;
}
.faq-contact-title { margin-top: 32px; font-size: 18px; font-weight: 500; color: var(--text); }
.faq-contact-sub { margin-top: 10px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.faq-contact-link {
  margin-top: 28px; display: flex; align-items: center; justify-content: space-between;
  font-size: 16px; font-weight: 500; color: var(--text); text-decoration: none;
}
.faq-contact-arrow {
  width: 36px; height: 36px; border-radius: 999px; background: var(--disc);
  display: grid; place-items: center; transition: background-color 0.2s var(--ease), transform 0.3s var(--ease);
}
.faq-contact-arrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.faq-contact-link:hover .faq-contact-arrow { background: var(--disc-hover); transform: translate(2px, -2px); }

/* the list: numbered questions on dashed rules, like the app's settings */
.faq-list { align-self: start; }   /* opens downwards; faq.js sets its top so the last rule meets the card's bottom */
.faq-item { border-bottom: 1.5px dashed var(--line-strong); }   /* the app's settings divider */
.faq-q { margin: 0; font: inherit; }
.faq-head {
  width: 100%; padding: 20px 0; transition: padding-bottom 0.8s var(--faq-ease); border: 0; background: none; cursor: pointer; text-align: left; color: inherit;
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "num chev" "text chev"; align-items: center; column-gap: 24px;
}
.faq-text {
  grid-area: text; margin-top: 6px;
  font-family: 'Aeronaut', 'Google Sans', system-ui, sans-serif; font-feature-settings: 'kern' 1, 'calt' 1;
  font-size: clamp(20px, 1.8vw, 26px); line-height: 1.2; letter-spacing: -0.4px; color: var(--text);
}
/* the app's chevron: a soft grey disc whose arrow turns over as the answer opens */
.faq-num { grid-area: num; font-size: 15px; line-height: 1.2; color: var(--muted); font-variant-numeric: tabular-nums; }   /* the size of the card's description */
.faq-chev {
  grid-area: chev; width: 36px; height: 36px; border-radius: 999px; background: var(--disc); color: var(--text);
  display: grid; place-items: center;
  transition: background-color 0.2s var(--ease), transform 0.18s var(--ease);
}
.faq-chev svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.8s var(--faq-ease); }
.faq-head:hover .faq-chev { background: var(--disc-hover); }
.faq-head:active .faq-chev { transform: scale(0.94); }
.faq-head[aria-expanded="true"] .faq-chev svg { transform: rotate(180deg); }
.faq-head:focus-visible { outline: none; }
.faq-head:focus-visible .faq-chev { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px rgba(0, 0, 0, 0.25); }

/* as on the reference: the answer unfolds like a blind while the chevron turns, both on one long,
   soft ease-out (most of the way in 0.4s, settled by 0.8s); the text itself doesn't fade or move */
.faq { --faq-ease: cubic-bezier(0.23, 1, 0.32, 1); --disc: #e7e7e5; --disc-hover: #dddddb; }   /* one disc for the chevrons and the card's arrow */
.faq-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.8s var(--faq-ease); }
.faq-body-inner { overflow: hidden; }
.faq-body p {
  padding: 0 72px 22px 0; max-width: 34em;
  font-size: clamp(17px, 1.45vw, 20px); line-height: 1.5; color: var(--muted);
}
.faq-item.open .faq-body { grid-template-rows: 1fr; }
.faq-item.open .faq-head { padding-bottom: 8px; }   /* the answer sits close under its question */

@media (max-width: 860px) {
  .faq-wrap { grid-template-columns: 1fr; }
  .faq-side { order: 2; }
  .faq-heading { order: -1; }
  .faq-body p { padding-right: 0; }
}

/* ---------------------------------------------------------------- contact dialog (the app's dialog) */
:root {
  --surface: #ffffff; --surface-2: #f1f1ef; --faint: #a8a8a8; --ink: #0e0e0e; --ink-text: #ffffff;
  --line-strong: rgba(0, 0, 0, 0.14); --sel-ring: #d2d2cd; --danger: #d4483b;
  --spring: cubic-bezier(0.34, 1.4, 0.5, 1);
  --dlg-ring: rgba(255, 255, 255, 0.55); --dlg-edge: rgba(0, 0, 0, 0.08);
}
.modal {
  position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-start; justify-content: center;
  padding: 14vh 16px 16px; background: rgba(0, 0, 0, 0.12); overflow-y: auto;
  animation: fade-in 0.2s ease;
}
.modal[hidden] { display: none; }
.modal.closing { animation: fade-out 0.18s ease both; }
/* a white card inside a soft see-through frame */
.dialog {
  position: relative; width: 440px; max-width: 100%; padding: 28px 28px 0;
  background: var(--surface); background-clip: padding-box;
  border: 7px solid var(--dlg-ring); border-radius: 30px;
  -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6);
  box-shadow: 0 0 0 0.5px var(--dlg-edge), 0 24px 64px rgba(0, 0, 0, 0.16), 0 4px 14px rgba(0, 0, 0, 0.06);
  animation: dialog-in 0.35s var(--spring);
  font-size: 14px;
}
.modal.closing .dialog { animation: dialog-out 0.18s ease-in both; }
.dialog-x {
  position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; border: 0; background: none; color: var(--faint); cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.dialog-x:hover { background: var(--surface-2); color: var(--text); }
.dialog-x svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.dialog h3 { margin: 0 32px; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; text-align: center; line-height: 1.3; }
.dialog .dialog-title { font-size: 36px; font-weight: 400; letter-spacing: -0.5px; line-height: 1.1; }
.dialog h3 + p { margin: 8px 0 0; color: var(--muted); line-height: 1.5; text-align: center; }

.field { display: block; margin-top: 16px; }
.dialog h3 + p + .field { margin-top: 22px; }
.field > span { display: block; margin: 0 4px 7px; font-size: 13px; font-weight: 500; color: var(--muted); }
.field > span em { font-style: normal; font-weight: 400; color: var(--faint); }
.field-note { display: block; margin: 7px 4px 0; font-size: 12px; color: var(--faint); }
.text-input::placeholder { color: var(--faint); }
.text-input {
  width: 100%; height: 42px; padding: 0 14px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid transparent; color: var(--text);
  font: inherit; font-size: 14px;
  outline: 2px solid transparent; outline-offset: 0;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), outline-color 0.2s var(--ease), outline-offset 0.25s var(--ease);
}
textarea.text-input { height: auto; min-height: 120px; padding: 11px 14px; line-height: 1.5; resize: vertical; }
.text-input:hover:not(:focus) { border-color: var(--line-strong); }
.text-input:focus { border-color: var(--line-strong); background: var(--surface); outline: 2px solid var(--sel-ring); outline-offset: 3px; }
.field.invalid .text-input { border-color: color-mix(in srgb, var(--danger) 55%, transparent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact-status { min-height: 0; margin: 12px 4px 0; font-size: 13px; line-height: 1.4; color: var(--danger); }
.contact-status:empty { margin: 0; }

.dialog .row { display: flex; justify-content: flex-end; gap: 8px; margin: 8px -28px 0; padding: 16px 20px; }
.btn-primary, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-size: 14px; font-weight: 550; white-space: nowrap; cursor: pointer;
  transition: transform 0.12s var(--ease), background 0.15s, opacity 0.15s, border-color 0.15s;
}
.btn-primary:active, .btn-ghost:active { transform: scale(0.96); }
.btn-primary { background: var(--ink); color: var(--ink-text); }
.btn-primary:hover { background: color-mix(in srgb, var(--ink) 84%, var(--bg)); }
.btn-primary[disabled] { opacity: 0.55; cursor: default; }
.btn-ghost { border-color: var(--line-strong); color: var(--text); background: var(--surface); }
.btn-ghost:hover { background: var(--surface-2); }

.contact-done { text-align: center; }
.contact-done-icon {
  width: 48px; height: 48px; margin: 4px auto 16px; border-radius: 999px; background: var(--surface-2);
  display: grid; place-items: center; font-size: 20px; color: var(--text); animation: pop-in 0.35s var(--spring);
}
.contact-done .row { justify-content: center; }

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes pop-in { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: none; } }
@keyframes dialog-in { from { opacity: 0; transform: translateY(-10px) scale(0.95); } to { opacity: 1; transform: none; } }
@keyframes dialog-out { to { opacity: 0; transform: translateY(-6px) scale(0.97); } }

/* ---------------------------------------------------------------- footer (after lassie.ai)
   Rounded bottom corners; at the very end it lifts away to show a light sky panel with the name. */
.site-foot {
  position: relative; z-index: 3; background: var(--bg);
  border-radius: 0 0 clamp(32px, 5vw, 64px) clamp(32px, 5vw, 64px);
  /* room at the top for the dock, which rises there at the end of the page */
  padding: calc(2 * clamp(16px, 3vw, 32px) + 64px) clamp(16px, 4vw, 56px) clamp(28px, 4vh, 40px);
}
.foot-main { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto; gap: 48px clamp(32px, 6vw, 96px); align-items: start; }
.foot-title { font-size: clamp(34px, 3.8vw, 54px); line-height: 1.08; color: var(--text); }
.foot-title em { font-style: normal; color: #a4a4a4; }
.foot-btn { margin-top: 28px; height: 46px; padding: 0 22px; background: var(--text); color: #fff; }
.foot-btn:hover { background: #2a2a2a; }
.foot-cols { display: flex; gap: clamp(32px, 6vw, 88px); padding-top: 8px; }
.foot-col { display: flex; flex-direction: column; gap: 12px; }
.foot-h { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.foot-col a { font-size: 15px; color: var(--text); text-decoration: none; transition: opacity 0.2s var(--ease); }
.foot-col a:hover { opacity: 0.6; }
.foot-base { max-width: 1200px; margin: clamp(48px, 7vh, 80px) auto 0; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.foot-logo { width: 72px; height: auto; color: var(--text); }
.foot-copy { font-size: 13px; color: var(--muted); }

/* the curtain: fixed to the bottom, shown only once the page has scrolled past the footer */
.foot-space { height: min(46vh, 460px); }
.foot-reveal {
  /* only as tall as the strip the footer uncovers (plus its rounded corners), so it can never
     show above the footer on a tall window */
  position: fixed; left: 0; right: 0; bottom: 0; height: calc(min(46vh, 460px) + 72px); z-index: 2; visibility: hidden;
  /* the first screen's sky */
  background: linear-gradient(180deg, var(--sky-low) 0%, var(--sky-mid) 50%, var(--sky-top) 100%);
  pointer-events: none;
}
.foot-reveal.on { visibility: visible; }
.foot-giant {
  position: absolute; left: 50%; bottom: clamp(12px, 2vh, 24px); height: auto; translate: -50% 0; color: #fff;
  width: min(96%, calc((min(46vh, 460px) - 72px) * 3.49));   /* fits whole in the space the footer uncovers */
}

@media (max-width: 760px) {
  .foot-main { grid-template-columns: 1fr; }
  .foot-cols { flex-wrap: wrap; gap: 32px 48px; }
}

/* ---------------------------------------------------------------- updates page: a changelog
   A heading, then each version as a card: a picture on a soft panel, the date, a title in the
   headline face, and a short note. */
.updates-page { background: var(--bg); }
.upd { position: relative; z-index: 3; background: var(--bg); }
.upd { margin: 0; padding: clamp(88px, 14vh, 150px) clamp(16px, 4vw, 40px) clamp(96px, 14vh, 150px); }
.upd-head, .upd-grid { max-width: 760px; margin-left: auto; margin-right: auto; }
/* the same sizes as the feature titles and their lines over the cards on the landing page */
.upd-title { font-size: clamp(28px, 3.4vw, 48px); color: var(--text); }
.upd-sub { margin-top: clamp(8px, 1.2vh, 14px); font-size: clamp(15px, 1.25vw, 18px); line-height: 1.45; color: var(--muted); }
.upd-grid { margin-top: clamp(40px, 6vh, 64px) !important; display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(40px, 5vw, 56px) clamp(24px, 3vw, 40px); }
.upd-pic {
  aspect-ratio: 706 / 456; border-radius: clamp(24px, 3vw, 40px); overflow: hidden;
  background: #efefec; display: grid; place-items: center;
}
.upd-pic-icons { grid-template-columns: repeat(3, auto); gap: clamp(10px, 2vw, 22px); align-content: center; justify-content: center; }
.upd-pic-icons img { width: clamp(56px, 7vw, 96px); height: auto; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.12)); }
.upd-pic-logo img { width: clamp(112px, 15vw, 192px); height: auto; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.14)); }
.upd-date { margin-top: 20px; font-size: 16px; color: var(--muted); }
.upd-name { margin-top: 10px; font-size: clamp(26px, 2.6vw, 36px); color: var(--text); }
.upd-text { margin-top: 12px; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.55; color: var(--text); max-width: 36em; }
.dock-link[aria-current="page"] { color: var(--text); }

@media (max-width: 760px) {
  .upd-grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- dock: the app's glass tabs */
.dock {
  position: fixed; left: 50%; bottom: clamp(16px, 3vw, 32px); z-index: 4;
  translate: -50% 0;
  display: flex; align-items: center; gap: 2px; padding: 4px;
  border-radius: 999px;
  background: rgba(96, 116, 130, 0.34);
  box-shadow: inset 0 1px 0.5px rgba(255, 255, 255, 0.4), inset 0 -1px 1px rgba(255, 255, 255, 0.12), 0 0 0 0.5px rgba(255, 255, 255, 0.22), 0 10px 30px rgba(30, 50, 70, 0.12);
  -webkit-backdrop-filter: blur(22px) saturate(1.6); backdrop-filter: blur(22px) saturate(1.6);
  transition: background-color 0.5s var(--ease), box-shadow 0.5s var(--ease), transform 0.5s var(--ease), opacity 0.35s var(--ease);
  max-width: calc(100vw - 32px);
}
/* the footer is up: the dock slides out of its way */
body.dock-away .dock { transform: translateY(calc(100% + 40px)); opacity: 0; pointer-events: none; }
body.dock-top.dock-away .dock { transform: translateY(calc(-100% - 40px)); }
/* near the end the dock rides up on the footer's top edge, then stays at the top of the window */
/* Updates: the tabs stay at the top of the window, as a header */
body.dock-top .dock { top: clamp(16px, 3vw, 32px); bottom: auto; }
body.dock-top .upd { padding-top: clamp(130px, 19vh, 190px); }
/* back to top, as in the app: a glass circle in the bottom-left corner once you're well down */
.to-top {
  position: fixed; left: 22px; bottom: 22px; z-index: 5; width: 52px; height: 52px;
  border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--text);
  background: var(--glass-bg); box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(22px) saturate(1.9); backdrop-filter: blur(22px) saturate(1.9);
  opacity: 0; transform: translateY(12px) scale(0.85); pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.35s var(--spring);
}
.to-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.to-top.on { opacity: 1; transform: none; pointer-events: auto; }
.to-top.on:hover { transform: translateY(-2px); }
.to-top.on:active { transform: scale(0.94); }

/* the wordmark in the dock: once the page turns white the dock widens to the side and it fades in */
.dock-home {
  width: 0; height: 44px; flex: none; overflow: hidden;
  display: flex; align-items: center; justify-content: flex-start; padding-left: 0;
  color: var(--text); opacity: 0;
  transition: width 0.6s var(--ease), padding 0.6s var(--ease), opacity 0.35s var(--ease);
}
.dock-home svg { width: 56px; height: auto; flex: none; translate: 0 -2px; transform: scale(0.85); transition: transform 0.6s var(--ease); }  /* -2px: optically level with the tab labels */
body.docked .dock-home { width: 78px; padding-left: 16px;   /* 16 + logo 56 + 6: logo to “Features” matches “Updates” to the button */ opacity: 1; transition: width 0.6s var(--ease), padding 0.6s var(--ease), opacity 0.5s 0.15s var(--ease); }
body.docked .dock-home svg { transform: none; }
.dock-home:active svg { transform: scale(0.94); }
.dock-link, .dock-cta {
  height: 44px; padding: 0 24px; border-radius: 999px;
  display: inline-flex; align-items: center; white-space: nowrap;
  font-size: 15px; font-weight: 500; letter-spacing: -0.005em; text-decoration: none;
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease), transform 0.18s var(--ease);
}
.dock-link { color: rgba(255, 255, 255, 0.9); }
.dock-link:hover { color: #fff; }
.dock-cta { margin-left: 6px; background: var(--glass-chip); color: var(--text); box-shadow: var(--chip-shadow), inset 0 1px 0.5px #fff; }
.dock-link:active, .dock-cta:active { transform: scale(0.96); }

/* over the light pages it turns into the app's own glass */
body.on-light .dock { background: var(--glass-bg); box-shadow: var(--glass-shadow); -webkit-backdrop-filter: blur(22px) saturate(1.9); backdrop-filter: blur(22px) saturate(1.9); }
body.on-light .dock-link { color: var(--muted); }
body.on-light .dock-link:hover { color: var(--text); }

@media (max-width: 560px) {
  .dock-link { padding: 0 12px; font-size: 14px; }
  .dock-cta { padding: 0 16px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy { will-change: auto; }
}
