/*
  Glacier landing page. Palette and fonts from builtforduo.app:
  #0F2854 navy · #1C4D8D blue · #4988C4 sky · #BDE8F5 ice, Space Grotesk and JetBrains Mono.
  Spacing: 2 4 8 12 16 24 32 40 48 64 80 96. Type: the Tailwind scale.
*/
:root {
  --navy: #0f2854;
  --blue: #1c4d8d;
  --sky: #4988c4;
  --ice: #bde8f5;

  --bg: #ffffff;
  --bg-2: #f6f7f9;
  --panel: #f3f4f6;
  --card: #ffffff;
  --ink: #0a0b0d;
  --ink-2: #4a505b;
  --ink-3: #6b717c;
  --line: rgba(10, 12, 20, 0.08);
  --line-2: rgba(10, 12, 20, 0.14);
  --accent: var(--blue);
  --accent-soft: rgba(73, 136, 196, 0.12);
  --btn: #0a0b0d;
  --btn-ink: #ffffff;
  --grad-text: linear-gradient(100deg, #0f2854 0%, #1c4d8d 40%, #4988c4 85%);
  --nav-bg: rgba(255, 255, 255, 0.72);
  --error: #b42318;

  --shadow-sm: 0 1px 2px rgba(10, 12, 20, 0.04), 0 1px 1px rgba(10, 12, 20, 0.03);
  --shadow-md: 0 1px 2px rgba(10, 12, 20, 0.04), 0 6px 16px -4px rgba(10, 12, 20, 0.06), 0 20px 40px -16px rgba(10, 12, 20, 0.12);
  --device-shadow: 0 30px 60px -24px rgba(10, 12, 20, 0.35), 0 80px 140px -40px rgba(10, 12, 20, 0.30);

  --font-sans: 'Space Grotesk', ui-sans-serif, system-ui, 'PingFang SC', 'Hiragino Sans', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1200px;
  --gutter: 16px;
  color-scheme: light;
}

:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #000000;
  --bg-2: #181818;
  --panel: #1f1f1f;
  --card: #181818;
  --ink: #f5f6f8;
  --ink-2: #a6adb9;
  --ink-3: #8b929e;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --accent: var(--ice);
  --accent-soft: rgba(73, 136, 196, 0.18);
  --btn: #f5f6f8;
  --btn-ink: #000000;
  --grad-text: linear-gradient(100deg, #ffffff 0%, #bde8f5 45%, #4988c4 95%);
  --nav-bg: rgba(24, 24, 24, 0.72);
  --error: #ff8a80;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 1px 2px rgba(0, 0, 0, 0.4), 0 20px 40px -16px rgba(0, 0, 0, 0.6);
  --device-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.8), 0 80px 140px -40px rgba(0, 0, 0, 0.6);
}

@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 40px; } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
main { overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; letter-spacing: -0.02em; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.ph { font-size: 20px; line-height: 1; flex: none; }

:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; border-radius: 4px; }

.skip {
  position: absolute; left: 16px; top: -80px; z-index: 100;
  background: var(--btn); color: var(--btn-ink); padding: 8px 12px; border-radius: 8px;
  font-size: 14px; line-height: 20px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 16px; }

.container { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

.label {
  display: inline-block; font-family: var(--font-mono); font-size: 12px; line-height: 16px;
  font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent);
}
.section-head { max-width: 680px; margin-bottom: 48px; display: grid; gap: 12px; }
.section-head h2, .problem h2, .pilot h2, .register h2 { font-size: 36px; line-height: 40px; }
@media (min-width: 768px) { .section-head h2, .problem h2, .pilot h2, .register h2 { font-size: 48px; line-height: 1; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 8px 12px; border-radius: 12px; border: 1px solid transparent;
  font: inherit; font-size: 16px; line-height: 24px; font-weight: 600; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: transform 500ms var(--ease), background-color 300ms var(--ease), opacity 300ms var(--ease), box-shadow 300ms var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(0.98); }
.btn-lg { padding: 12px 24px; }
.btn-sm { font-size: 14px; line-height: 20px; padding: 8px 12px; border-radius: 8px; }
.btn-primary { background: var(--btn); color: var(--btn-ink); box-shadow: var(--shadow-sm); }
.btn-primary:hover { box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--card); color: var(--ink); border-color: var(--line-2); }
.btn-secondary:hover { background: var(--panel); }
.btn-light { background: #ffffff; color: var(--navy); }
.btn-light:hover { background: var(--ice); }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }
.text-link {
  font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-2);
  transition: text-decoration-color 300ms var(--ease);
}
.text-link:hover { text-decoration-color: currentColor; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 8px; border: 0; background: transparent; color: var(--ink);
  display: inline-grid; place-items: center; cursor: pointer; transition: background-color 300ms var(--ease);
}
.icon-btn:hover { background: var(--accent-soft); }

/* Brand */
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.brand .word { font-size: 20px; line-height: 28px; font-weight: 700; letter-spacing: -0.03em; }
.mark {
  /* Glacier's Iceberg mark (logo direction A). */
  width: 24px; height: 24px; border-radius: 6px; display: inline-block;
  background: #0F2854 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 160'%3E%3Cpolygon points='58,84 80,44 80,84' fill='%23EAF5FF'/%3E%3Cpolygon points='80,44 104,84 80,84' fill='%239CC3EE'/%3E%3Crect x='30' y='88' width='100' height='4' rx='2' fill='%23EAF5FF' fill-opacity='.85'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.mark i { display: none; }
:root[data-theme='dark'] .mark { background-color: #1C3D74; }

/* Navigation */
.nav-wrap { position: fixed; top: 16px; left: 0; right: 0; z-index: 50; display: flex; justify-content: center; padding: 0 16px; pointer-events: none; }
.nav {
  pointer-events: auto; display: flex; align-items: center; gap: 24px;
  padding: 8px 8px 8px 16px; border-radius: 16px; border: 1px solid var(--line);
  background: var(--nav-bg); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: var(--shadow-sm); width: 100%; max-width: 760px; justify-content: space-between;
}
.nav-links { display: none; gap: 24px; }
.nav-links a { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink-2); text-decoration: none; transition: color 300ms var(--ease); }
.nav-links a:hover, .nav-links a[aria-current='true'] { color: var(--ink); }
.nav-end { display: flex; align-items: center; gap: 4px; }
.nav-cta { display: none; margin-left: 4px; }
.burger { width: 16px; height: 12px; position: relative; display: block; }
.burger i { position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor; transition: transform 500ms var(--ease); }
.burger i:first-child { top: 2px; }
.burger i:last-child { top: 8px; }
.menu-open .burger i:first-child { transform: translateY(3px) rotate(45deg); }
.menu-open .burger i:last-child { transform: translateY(-3px) rotate(-45deg); }
@media (min-width: 768px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .menu-btn { display: none; }
}
.menu {
  position: fixed; inset: 0; z-index: 40; padding: 96px 24px 32px;
  display: flex; flex-direction: column; gap: 8px;
  background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
}
.menu a:not(.btn) { font-size: 30px; line-height: 36px; font-weight: 600; text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--line); }
.menu .btn { margin-top: 24px; }
.menu > * { opacity: 0; transform: translateY(24px); transition: opacity 500ms var(--ease), transform 500ms var(--ease); }
.menu.open > * { opacity: 1; transform: none; }
.menu.open > *:nth-child(2) { transition-delay: 60ms; }
.menu.open > *:nth-child(3) { transition-delay: 120ms; }
.menu.open > *:nth-child(4) { transition-delay: 180ms; }

/* Hero */
.hero { padding-top: 128px; padding-bottom: 64px; display: grid; gap: 48px; align-items: center; }
@media (min-width: 1024px) { .hero { grid-template-columns: 1fr 1.1fr; padding-top: 160px; padding-bottom: 96px; gap: 64px; } }
.hero-copy { display: grid; gap: 24px; max-width: 680px; }
.eyebrow { font-family: var(--font-mono); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero h1 { font-size: 36px; line-height: 40px; letter-spacing: -0.035em; padding-bottom: 4px; }
@media (min-width: 640px) { .hero h1 { font-size: 48px; line-height: 1.05; } }
@media (min-width: 1280px) { .hero h1 { font-size: 60px; line-height: 1.05; } }
.hero h1 br { display: none; }
@media (min-width: 640px) { .hero h1 br { display: inline; } }
.lead { font-size: 18px; line-height: 28px; color: var(--ink-2); max-width: 680px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.proof { display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--ink-2); font-size: 14px; line-height: 20px; font-weight: 500; }
.proof li { display: inline-flex; align-items: center; gap: 8px; }
.proof .ph { color: var(--accent); }

.hero-visual { position: relative; padding-bottom: 48px; padding-right: 48px; }
.window { border-radius: 16px; overflow: hidden; border: 1px solid var(--line-2); background: #f3f5f8; box-shadow: var(--device-shadow); }
.window-bar { height: 32px; display: flex; align-items: center; gap: 8px; padding: 0 12px; background: #eceff3; border-bottom: 1px solid rgba(10, 12, 20, 0.08); }
.window-bar i { width: 12px; height: 12px; border-radius: 50%; background: #d5dae1; }
.phone {
  position: absolute; right: 0; bottom: 0; width: 38%; max-width: 220px; aspect-ratio: 390 / 844;
  border-radius: 32px; padding: 8px; background: #0a0b0d; box-shadow: var(--device-shadow);
}
.phone-screen { width: 100%; height: 100%; border-radius: 24px; overflow: hidden; background: #fff; position: relative; }
.phone-screen iframe { position: absolute; top: 0; left: 0; width: 390px; height: 844px; border: 0; transform-origin: 0 0; pointer-events: none; }

/* Made for */
.made-for { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding-bottom: 64px; }
.made-for ul { display: flex; flex-wrap: wrap; gap: 8px; }
.made-for li { padding: 4px 12px; border-radius: 9999px; border: 1px solid var(--line-2); font-size: 14px; line-height: 20px; color: var(--ink-2); }
.made-for .label { color: var(--ink-3); }

/* Problem */
.problem { padding-top: 64px; padding-bottom: 96px; border-top: 1px solid var(--line); }
.problem-grid { display: grid; gap: 32px; }
.problem-grid > div:first-child { display: grid; gap: 16px; }
@media (min-width: 1024px) { .problem-grid { grid-template-columns: 1.1fr 1fr; gap: 64px; } }
.problem-body { display: grid; gap: 16px; font-size: 18px; line-height: 28px; color: var(--ink-2); align-content: end; }
.problem-body b { color: var(--ink); font-weight: 600; }

/* How it works */
.how { padding: 96px 0; background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.video-card {
  border-radius: 24px; overflow: hidden; background: #0e1116; border: 1px solid var(--line-2);
  box-shadow: var(--device-shadow); aspect-ratio: 16 / 9; margin-bottom: 48px;
}
.video-card video { width: 100%; height: 100%; display: block; object-fit: cover; background: #0e1116; }
.steps { display: grid; gap: 16px; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.step { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: grid; gap: 12px; align-content: start; box-shadow: var(--shadow-sm); }
.step-n {
  width: 32px; height: 32px; border-radius: 9999px; background: var(--navy); color: #ffffff;
  display: grid; place-items: center; font-family: var(--font-mono); font-size: 14px; line-height: 20px; font-weight: 600;
}
.step h3 { font-size: 20px; line-height: 28px; }
.step p { color: var(--ink-2); }

/* Tagline reveal */
.tagline { padding: 96px var(--gutter); display: flex; justify-content: center; }
.tagline-text { max-width: 880px; font-size: 36px; line-height: 40px; font-weight: 600; letter-spacing: -0.03em; text-align: center; text-wrap: balance; }
@media (min-width: 768px) { .tagline-text { font-size: 60px; line-height: 1.05; } }
.tagline-text .w { opacity: 0.3; transition: opacity 600ms var(--ease); }
.tagline-text .w.on { opacity: 1; }
.tagline-text br { display: none; }
@media (min-width: 768px) { .tagline-text br { display: inline; } }

/* Features */
.features { padding-top: 64px; padding-bottom: 96px; }
.feature-row { display: grid; gap: 32px; align-items: center; margin-bottom: 80px; }
@media (min-width: 1024px) {
  .feature-row { grid-template-columns: 1fr 1.3fr; gap: 64px; }
  .feature-row.flip { grid-template-columns: 1.3fr 1fr; }
  .feature-row.flip .feature-copy { order: 2; }
}
.feature-copy { display: grid; gap: 16px; max-width: 520px; }
.feature-copy h3 { font-size: 30px; line-height: 36px; }
.feature-copy p { color: var(--ink-2); font-size: 18px; line-height: 28px; }
.ticks { display: grid; gap: 8px; }
.ticks li { display: flex; gap: 8px; align-items: flex-start; color: var(--ink-2); }
.ticks .ph { color: var(--accent); margin-top: 2px; }
.shot { margin: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: var(--device-shadow); background: #000; }
.shot-card { background: #ffffff; max-width: 420px; justify-self: center; width: 100%; }
.benefits { display: grid; gap: 16px; }
@media (min-width: 640px) { .benefits { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .benefits { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.benefit { border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: grid; gap: 8px; align-content: start; background: var(--card); }
.benefit .ph { font-size: 24px; color: var(--accent); margin-bottom: 8px; }
.benefit h3 { font-size: 18px; line-height: 28px; }
.benefit p { color: var(--ink-2); font-size: 14px; line-height: 20px; }

/* Pilot */
.pilot { background: var(--navy); color: #ffffff; padding: 80px 0; }
.pilot-inner { display: grid; gap: 32px; }
.pilot-inner > div:first-child { display: grid; gap: 16px; }
@media (min-width: 1024px) { .pilot-inner { grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: end; } }
.pilot-body { display: grid; gap: 24px; justify-items: start; color: rgba(255, 255, 255, 0.8); font-size: 18px; line-height: 28px; }
.label-on-dark { color: var(--ice); }

/* FAQ */
.faq { padding-top: 96px; padding-bottom: 96px; }
.faq-list { display: grid; border-top: 1px solid var(--line-2); max-width: 880px; padding-top: 8px; }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 0; display: flex; justify-content: space-between; gap: 16px;
  font-size: 18px; line-height: 28px; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--font-mono); font-weight: 400; color: var(--ink-3); transition: transform 500ms var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 24px; color: var(--ink-2); max-width: 680px; }

/* Register */
.register { padding-bottom: 96px; }
.register-card {
  border: 1px solid var(--line-2); border-radius: 24px; padding: 24px; background: var(--card);
  box-shadow: var(--shadow-md); display: grid; gap: 40px;
}
@media (min-width: 768px) { .register-card { padding: 48px; } }
@media (min-width: 1024px) { .register-card { grid-template-columns: 1fr 1.4fr; gap: 64px; } }
.register-intro { display: grid; gap: 16px; align-content: start; }
.register-intro > p { color: var(--ink-2); font-size: 18px; line-height: 28px; }
.field-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .field-grid { grid-template-columns: 1fr 1fr; } .field-wide { grid-column: 1 / -1; } }
.field { display: grid; gap: 8px; align-content: start; }
.field label { font-size: 14px; line-height: 20px; font-weight: 600; }
.optional { font-weight: 400; color: var(--ink-3); margin-left: 4px; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; line-height: 24px; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line-2); border-radius: 12px; padding: 8px 12px; min-height: 48px; width: 100%;
  transition: border-color 300ms var(--ease), box-shadow 300ms var(--ease);
}
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 4px var(--accent-soft); }
.field [aria-invalid='true'] { border-color: var(--error); }
.error, .form-error { color: var(--error); font-size: 14px; line-height: 20px; }
.form-error { margin-top: 16px; }
.btn-submit { margin-top: 24px; width: 100%; }
@media (min-width: 640px) { .btn-submit { width: auto; } }
.legal { margin-top: 16px; font-size: 12px; line-height: 16px; color: var(--ink-3); }
.legal a { color: var(--ink-2); }
.success { display: grid; gap: 12px; justify-items: start; align-content: center; padding: 24px 0; outline: none; }
.success .ph { font-size: 40px; color: var(--accent); }
.success h3 { font-size: 30px; line-height: 36px; }
.success p { color: var(--ink-2); font-size: 18px; line-height: 28px; max-width: 520px; margin-bottom: 12px; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 48px 0; }
.footer-inner { display: grid; gap: 16px; }
@media (min-width: 768px) { .footer-inner { grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; } .fine { grid-column: 1 / -1; } }
.footer-note { color: var(--ink-2); font-size: 14px; line-height: 20px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 14px; line-height: 20px; color: var(--ink-2); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }
.fine { font-size: 12px; line-height: 16px; color: var(--ink-3); }

/* Reveals */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transform: none; transition: opacity 300ms linear; }
  .menu > * { transform: none; }
  .btn, .btn:hover, .btn:active { transform: none; }
}

/* Simple pages (privacy, terms, 404) */
.page { padding-top: 144px; padding-bottom: 96px; max-width: 760px; }
.page h1 { font-size: 36px; line-height: 40px; margin-bottom: 24px; }
.page h2 { font-size: 20px; line-height: 28px; margin: 32px 0 8px; }
.page p, .page li { color: var(--ink-2); }
.page ul { list-style: disc; padding-left: 24px; display: grid; gap: 8px; }
.page .note { padding: 12px 16px; border-radius: 12px; background: var(--accent-soft); color: var(--ink); margin-bottom: 24px; font-size: 14px; line-height: 20px; }
.page .btn { margin-top: 32px; }
