/* Hutch launch site. Space colours come from the app's design tokens, so the site and the app match.
   One dark, cinematic canvas: big type, real screenshots, colour from the active Space. */

:root {
  color-scheme: dark;

  /* Space swatches */
  --harbor: #6f86a6;
  --tide: #4f8c90;
  --kelp: #5d8770;
  --sandbar: #bb9d78;
  --clay: #ab735f;
  --rosewater: #b2868d;
  --heather: #867c9c;
  --fog: #8c939b;
  --ember: #c4795f;
  --dune: #dcc08e;

  --space: var(--harbor);

  --bg: #0c1117;
  --bg-2: #121922;
  --line: rgb(255 255 255 / 0.09);
  --text: #f1f5f9;
  --text-2: #a9b3bf;
  --muted: #76808c;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }

.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
.narrow { width: min(720px, 100% - 48px); }
.center { text-align: center; }
.sr-only, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip:focus { position: fixed; top: 12px; left: 12px; z-index: 100; background: #fff; color: #000; padding: 8px 14px; border-radius: 8px; }

h1, h2, h3 { font-family: var(--font-display); margin: 0; letter-spacing: -0.035em; line-height: 1.02; font-weight: 700; }
h1 { font-size: clamp(48px, 8.4vw, 112px); }
h2 { font-size: clamp(40px, 5.8vw, 80px); }
h3 { font-size: 20px; letter-spacing: -0.015em; line-height: 1.25; }
.lede { color: var(--text-2); font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; max-width: 40ch; margin: 22px 0 0; }
.center .lede { margin-inline: auto; }
kbd {
  display: inline-grid; place-items: center; min-width: 1.15em; padding: 0 .16em; margin: 0 .04em;
  font: inherit; font-size: .82em; line-height: 1.15;
  border: 1px solid rgb(255 255 255 / .22); border-bottom-width: 3px; border-radius: .18em;
  background: rgb(255 255 255 / .06);
}

/* Buttons and forms */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 24px; border-radius: 999px; border: 0; cursor: pointer;
  font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap;
  transition: transform .2s var(--ease), background .2s;
}
.btn:active { transform: scale(.97); }
.btn-light { background: #fff; color: #0c1117; }
.btn-light:hover { background: #e8edf3; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }

.waitlist { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; max-width: 520px; }
.center .waitlist { margin-inline: auto; justify-content: center; }
.waitlist input {
  flex: 1 1 240px; height: 52px; padding: 0 22px; border-radius: 999px;
  border: 1px solid rgb(255 255 255 / .16); background: rgb(255 255 255 / .06); color: var(--text);
  font: inherit; outline: none; transition: border-color .2s, background .2s;
}
.waitlist input::placeholder { color: var(--muted); }
.waitlist input:focus { border-color: rgb(255 255 255 / .5); background: rgb(255 255 255 / .09); }
.form-note { flex-basis: 100%; margin: 4px 0 0 22px; font-size: 14px; color: var(--muted); }
.center .form-note { margin-left: 0; }
.form-note.ok { color: #9fe0b8; }
.form-note.err { color: #ffb4a6; }

/* Nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgb(12 17 23 / .72); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px); border-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.02em; text-decoration: none; font-size: 18px; }
.logo img { border-radius: 7px; }
.nav nav { display: flex; gap: 26px; margin-left: auto; }
.nav nav a { text-decoration: none; color: var(--text-2); font-size: 14px; transition: color .2s; }
.nav nav a:hover { color: var(--text); }
@media (max-width: 760px) { .nav nav { display: none; } .nav .btn { margin-left: auto; } }

/* Hero */
.hero { position: relative; padding: 168px 0 0; isolation: isolate; overflow-x: clip; }
.hero::before {
  content: ""; position: absolute; inset: -10% -20% auto; height: 1100px; z-index: -1;
  background:
    radial-gradient(40% 50% at 30% 40%, color-mix(in srgb, var(--space) 55%, transparent), transparent 70%),
    radial-gradient(35% 45% at 75% 55%, color-mix(in srgb, var(--ember) 35%, transparent), transparent 70%),
    radial-gradient(30% 40% at 55% 85%, color-mix(in srgb, var(--kelp) 40%, transparent), transparent 70%);
  filter: blur(40px); opacity: .55; transition: background 1s var(--ease);
}
.hero-copy { text-align: center; }
.hero-copy .lede { margin-inline: auto; max-width: 46ch; }
.hero-copy .waitlist { margin-inline: auto; justify-content: center; }
.hero-copy .form-note { margin-left: 0; text-align: center; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 28px; padding: 6px 16px 6px 6px;
  border: 1px solid var(--line); border-radius: 999px; background: rgb(255 255 255 / .04);
  font-size: 14px; color: var(--text-2);
}
.pill-tag { background: #fff; color: #0c1117; font-weight: 700; font-size: 12px; padding: 3px 10px; border-radius: 999px; }

.hero-stage { position: relative; width: min(1320px, 100% - 32px); margin: 80px auto 0; padding-bottom: 40px; }
.shot {
  display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in;
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 0 0 1px rgb(255 255 255 / .1), 0 40px 120px -20px rgb(0 0 0 / .7), 0 0 120px -30px color-mix(in srgb, var(--space) 60%, transparent);
  transition: transform .5s var(--ease), box-shadow 1s var(--ease);
}
.shot:hover { transform: translateY(-4px); }
.shot img { width: 100%; }
.shot-phone { border-radius: 34px; }
.hero-stage .shot-mac { width: 100%; }

/* Facts */
.facts { border-block: 1px solid var(--line); margin-top: 72px; }
.facts-inner { list-style: none; padding: 0; margin-block: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.facts li { padding: 34px 24px; border-left: 1px solid var(--line); }
.facts li:first-child { border-left: 0; padding-left: 0; }
.facts strong { display: block; font-family: var(--font-display); font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.03em; line-height: 1.1; }
.facts span { color: var(--text-2); font-size: 15px; }
@media (max-width: 860px) {
  .facts-inner { grid-template-columns: 1fr 1fr; }
  .facts li:nth-child(3) { border-left: 0; padding-left: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* Chapters */
.chapter { padding: clamp(110px, 14vw, 180px) 0 0; }
.chapter-head { max-width: 860px; }
.num { margin: 0 0 22px; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.chapter-media { margin-top: 64px; }
.chapter-media.duo { display: grid; grid-template-columns: 1fr 23%; gap: 28px; align-items: end; }
@media (max-width: 700px) { .chapter-media.duo { grid-template-columns: 1fr; } .chapter-media.duo .shot-phone { width: 62%; margin-inline: auto; } }

.swatches { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.swatches button {
  display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 16px 0 12px; cursor: pointer;
  border-radius: 999px; border: 1px solid var(--line); background: rgb(255 255 255 / .03); font-size: 15px;
  transition: border-color .2s, background .2s;
}
.swatches button::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--c); }
.swatches button[aria-pressed="true"] { border-color: var(--c); background: color-mix(in srgb, var(--c) 22%, transparent); }

/* Sync */
.sync {
  margin-top: clamp(120px, 15vw, 200px); padding: clamp(100px, 12vw, 160px) 0;
  background:
    radial-gradient(60% 80% at 50% 0%, color-mix(in srgb, var(--space) 22%, transparent), transparent 70%),
    var(--bg-2);
  border-block: 1px solid var(--line);
}
.statement { font-size: clamp(44px, 7vw, 96px); max-width: 14ch; }
.statement span { color: var(--muted); }
.sync-points { list-style: none; padding: 0; margin: 80px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.sync-points li { border-top: 1px solid var(--line); padding-top: 24px; }
.sync-points p { color: var(--text-2); margin: 10px 0 0; }
@media (max-width: 860px) { .sync-points { grid-template-columns: 1fr; } }

/* FAQ */
.faq { padding: clamp(110px, 13vw, 170px) 0 0; }
.faq h2 { font-size: clamp(36px, 4.6vw, 60px); margin-bottom: 36px; }
details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; padding: 24px 40px 24px 0; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font-size: 28px; font-weight: 300; color: var(--muted); transition: transform .3s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: -8px 0 24px; color: var(--text-2); max-width: 60ch; }

/* CTA */
.cta { padding: clamp(130px, 16vw, 220px) 0; position: relative; isolation: isolate; overflow-x: clip; }
.cta::before {
  content: ""; position: absolute; inset: 20% 10% 0; z-index: -1; filter: blur(60px); opacity: .35;
  background: radial-gradient(50% 50% at 50% 50%, var(--space), transparent 70%);
}
.cta-icon { margin: 0 auto 36px; border-radius: 22px; box-shadow: 0 30px 80px -20px rgb(0 0 0 / .8); }
.cta h2 { font-size: clamp(48px, 8vw, 104px); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 30px 0; color: var(--muted); font-size: 14px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer .logo { font-size: 15px; color: var(--text-2); }
.footer p { margin: 0; }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1400px, 94vw); max-height: 94vh; color: var(--text); }
.lightbox::backdrop { background: rgb(5 8 12 / .88); backdrop-filter: blur(6px); }
.lightbox img { max-height: 84vh; width: auto; margin: auto; border-radius: 12px; }
.lightbox p { text-align: center; color: var(--text-2); margin: 14px 0 0; }
.lightbox-close { position: fixed; top: 18px; right: 22px; font-size: 32px; background: none; border: 0; color: #fff; cursor: pointer; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.hero-copy > * { animation: rise 1s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3) { animation-delay: .16s; }
.hero-copy > :nth-child(4) { animation-delay: .24s; }
.hero-stage { animation: rise 1.2s .3s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Privacy and support pages */
.doc { padding: 140px 0 96px; }
.doc h1 { font-size: clamp(44px, 6vw, 72px); }
.doc h2 { font-size: clamp(26px, 2.6vw, 32px); letter-spacing: -0.02em; line-height: 1.15; margin: 56px 0 14px; }
.doc h3 { margin: 28px 0 8px; }
.doc p, .doc li { color: var(--text-2); max-width: 68ch; }
.doc ul { padding-left: 1.2em; }
.doc li + li { margin-top: 6px; }
.doc a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.doc-date { color: var(--muted); font-size: 15px; }
.footer p a { color: var(--text-2); }
.footer p a:hover { color: var(--text); }
.nav-end { margin-left: auto; }
