/* Loon & Buck landing page. Same Ivory & Ink / Midnight & Silver palette as the app. */
:root {
  color-scheme: light;
  --page: #f5efe3;
  --surface: #fdfaf4;
  --surface-2: #ece5d6;
  --ink: #101b3a;
  --ink-2: #4a5270;
  /* Quiet text and the gold are dark enough to read on all three paper tones (4.6 to 1 or better). They were
     3.3 to 4.1 before 2026-10-12. The antler in the mark keeps the brighter gold: it is a drawing, not writing. */
  --muted: #5c6580;
  --border: rgba(16, 27, 58, 0.12);
  --gold: #7c6032;
  --gold-soft: #766241;
  --accent: #101b3a;
  --accent-ink: #f5efe3;
  --good: #17663a;
  --bad: #b03030;
  --navy: #101b3a;
  --navy-2: #18244b;
  --on-navy: #f4ecdd;
  --on-navy-2: #b9c2d6;
  --mark: #101b3a;
  --mark-edge: #f5efe3;
  --antler: #9a7430;
  --shadow: 0 1px 2px rgba(16, 27, 58, 0.05), 0 12px 40px rgba(16, 27, 58, 0.10);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --page: #0b1330;
    --surface: #121c41;
    --surface-2: #1b2752;
    --ink: #eef0f6;
    --ink-2: #b9c2d6;
    --muted: #8f99b5;
    --border: rgba(238, 240, 246, 0.14);
    --gold: #d2b06a;
    --gold-soft: #d2b06a;
    --accent: #f4ecdd;
    --accent-ink: #101b3a;
    --good: #7fd19b;
    --bad: #f0a3a3;
    --navy: #070d24;
    --navy-2: #121c41;
    --mark: #f4ecdd;
    --mark-edge: #0b1330;
    --antler: #b9c2d6;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 40px rgba(0, 0, 0, 0.35);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font: 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); }
.center { text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--accent); color: var(--accent-ink); padding: 10px 14px; border-radius: 10px; z-index: 20; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 3px; border-radius: 6px; }

/* ---------- Navigation ---------- */
/* The colour runs under a sideways phone's notch; the logo and Sign in stay clear of it (nightly list, 2026-10-17). */
.nav { padding-inline: env(safe-area-inset-left) env(safe-area-inset-right); }
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--page) 86%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--border); }
.nav-row { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.mark { width: 30px; height: 41px; flex: none; }
.wordmark { font-family: var(--serif); font-weight: 600; font-size: 14px; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { text-decoration: none; color: var(--ink-2); font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--ink); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 20px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--ink); font: 600 16px/1.2 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .12s ease, filter .12s ease, background .12s ease; }
.btn:hover { background: var(--surface-2); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn.primary:hover { filter: brightness(1.12); background: var(--accent); }
.btn.ghost { padding: 9px 16px; font-size: 15px; }
.btn:disabled { opacity: .55; cursor: default; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 6vw, 80px); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -30% -10% auto 40%; height: 120%; background: radial-gradient(closest-side, color-mix(in srgb, var(--gold-soft) 22%, transparent), transparent 70%); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-soft); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold-soft) 25%, transparent); }
h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(36px, 5.2vw, 62px); line-height: 1.06; letter-spacing: -0.015em; }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); margin-top: 22px; max-width: 56ch; }
.center .lede { margin-inline: auto; }

.waitlist { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; margin-top: 30px; max-width: 480px; }
.center .waitlist { margin-inline: auto; }
.waitlist input[type="email"] { min-width: 0; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--ink); font: 16px/1.2 var(--sans); }
.waitlist input[type="email"]::placeholder { color: var(--muted); }
.waitlist input[type="email"]:focus { outline: 2px solid var(--gold-soft); outline-offset: 1px; }
.waitlist .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-note { grid-column: 1 / -1; font-size: 14px; color: var(--muted); text-align: left; }
.center .form-note { text-align: center; }
.form-note[data-tone="good"] { color: var(--good); font-weight: 600; }
.form-note[data-tone="bad"] { color: var(--bad); }
.waitlist.done input[type="email"], .waitlist.done button { display: none; }

/* ---------- Screenshots ---------- */
figure { margin: 0; }
.window { border-radius: 16px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.window-bar { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: color-mix(in srgb, var(--ink) 18%, transparent); }
.window-bar span { margin-inline: auto; padding-right: 44px; font-size: 12px; color: var(--muted); letter-spacing: .02em; }
figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); text-align: right; }
.hero-shot { transform: perspective(1800px) rotateY(-4deg) rotateX(1.5deg); transform-origin: left center; }

/* ---------- At a glance band ---------- */
.band { background: var(--navy); color: var(--on-navy); }
.band-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.band-grid > div { padding: 30px 24px; border-left: 1px solid rgba(244, 236, 221, 0.14); }
.band-grid > div:first-child { border-left: 0; padding-left: 0; }
.band strong { display: block; font-family: var(--serif); font-size: 24px; font-weight: 600; letter-spacing: -0.01em; }
.band span { display: block; margin-top: 4px; font-size: 14.5px; color: var(--on-navy-2); }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section.alt { background: var(--surface); border-block: 1px solid var(--border); }
.section.dark { background: var(--navy); color: var(--on-navy); }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.dark .kicker { color: #d2b06a; }
h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(28px, 3.6vw, 42px); line-height: 1.12; letter-spacing: -0.01em; max-width: 22ch; }
.center h2 { margin-inline: auto; }
h3 { font-size: 18px; font-weight: 650; }

/* ---------- Product tour ---------- */
.tour { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: clamp(24px, 4vw, 56px); align-items: start; margin-top: 48px; }
.tabs { display: grid; gap: 10px; }
.tabs button { text-align: left; padding: 18px 20px; border-radius: 14px; border: 1px solid transparent; background: transparent; color: inherit; font: inherit; cursor: pointer; transition: background .15s ease, border-color .15s ease; }
.tabs button b { display: block; font-family: var(--serif); font-size: 20px; font-weight: 600; }
.tabs button span { display: block; margin-top: 6px; font-size: 15.5px; color: var(--ink-2); max-height: 0; overflow: hidden; opacity: 0; transition: max-height .25s ease, opacity .2s ease; }
.tabs button:hover { background: color-mix(in srgb, var(--surface) 70%, transparent); }
.tabs button[aria-selected="true"] { background: var(--surface); border-color: var(--border); box-shadow: 0 1px 2px rgba(16, 27, 58, 0.04), 0 4px 16px rgba(16, 27, 58, 0.05); }
.tabs button[aria-selected="true"] span { max-height: 12em; opacity: 1; }
.tabs button[aria-selected="true"] b { color: var(--ink); }
.tabs button[aria-selected="false"] b { color: var(--ink-2); }
.tour-shot { position: sticky; top: 92px; }

/* ---------- Features ---------- */
.features { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 36px; }
.features svg { width: 30px; height: 30px; fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 14px; }
.features p { margin-top: 8px; color: var(--ink-2); font-size: 16px; }

/* ---------- Security ---------- */
.security { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.dark .lede { color: var(--on-navy-2); }
.text-link { display: inline-block; margin-top: 24px; color: #d2b06a; font-weight: 600; text-underline-offset: 4px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.checks li { position: relative; padding: 20px 20px 20px 52px; border-radius: 14px; background: var(--navy-2); border: 1px solid rgba(244, 236, 221, 0.10); font-size: 15.5px; color: var(--on-navy-2); }
.checks li::before { content: ""; position: absolute; left: 18px; top: 22px; width: 20px; height: 20px; border-radius: 50%; background: #d2b06a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.4l3 3 6-6.6' fill='none' stroke='%23101b3a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
.checks b { display: block; color: var(--on-navy); font-weight: 650; margin-bottom: 4px; }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; counter-reset: none; }
.steps li { padding: 28px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.steps span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--gold-soft); color: var(--gold); font-family: var(--serif); font-weight: 600; font-size: 18px; margin-bottom: 18px; }
.steps p { margin-top: 8px; color: var(--ink-2); font-size: 16px; }

/* ---------- Questions ---------- */
.faq { margin-top: 36px; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-family: var(--serif); font-size: 20px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: translateY(-70%) rotate(45deg); transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq p { padding: 0 40px 22px 0; color: var(--ink-2); }
.faq a { color: var(--ink); text-underline-offset: 3px; }

/* ---------- Closing call ---------- */
.cta { padding-bottom: clamp(72px, 10vw, 128px); }
.mark.big { width: 56px; height: 77px; margin: 0 auto 22px; display: block; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: var(--on-navy-2); padding: 44px 0 36px; font-size: 15px; }
.footer .wordmark { color: var(--on-navy); }
.footer-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.footer-row p { margin-top: 8px; }
.footer nav { display: flex; gap: 26px; }
.footer nav a { color: var(--on-navy); text-decoration: none; font-weight: 500; }
.footer nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.fine { margin-top: 30px; padding-top: 22px; border-top: 1px solid rgba(244, 236, 221, 0.14); font-size: 13px; line-height: 1.6; color: #8f99b5; }

/* ---------- Smaller screens ---------- */
@media (max-width: 960px) {
  .hero-grid, .tour, .security { grid-template-columns: minmax(0, 1fr); }
  .hero-shot { transform: none; }
  .tour-shot { position: static; order: -1; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .band-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .band-grid > div { padding: 22px 20px; }
  .band-grid > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .band-grid > div:nth-child(n+3) { border-top: 1px solid rgba(244, 236, 221, 0.14); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  h2 { max-width: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap, .narrow { width: calc(100% - 32px); }
  .nav-links { display: none; }
  .nav-row { height: 60px; }
  .waitlist { grid-template-columns: minmax(0, 1fr); }
  .features, .checks { grid-template-columns: minmax(0, 1fr); }
  .features { gap: 30px; }
  .tabs button { padding: 14px 16px; }
  .window { border-radius: 12px; }
  .window-bar { height: 28px; }
  .window-bar span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* A finger needs 44 px: the links at the top and bottom of the public pages, and "Back" on the privacy page. */
@media (pointer: coarse), (max-width: 760px) {
  .btn { min-height: 44px; }
  footer a, nav a:not(.btn), .back, a.back, p a { padding-block: 13px; }
}
