/*
 * The marketing site, dressed in the app's own tokens (tokens.css, generated
 * from src/index.css). Nothing here defines a colour: if the app's palette
 * moves, regenerate tokens.css and this page follows.
 */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font);
  font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; letter-spacing: var(--display-track); line-height: 1.12; text-wrap: balance; }
p { margin: 0; }
a { color: var(--accent); }
img { display: block; max-width: 100%; height: auto; }
ul { margin: 0; padding: 0; list-style: none; }
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums lining-nums; letter-spacing: var(--num-track); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.spacer { flex: 1; }
.center { text-align: center; }
.skip { position: absolute; left: 12px; top: -48px; padding: 8px 12px; background: var(--surface); border-radius: 8px; z-index: 50; }
.skip:focus { top: 12px; }

.ll-coin { fill: var(--logo-coin); }
.ll-rim { fill: none; stroke: var(--logo-rim); stroke-width: 3; }
.ll-bird { fill: var(--logo-bird); }
.ll-eye { fill: var(--logo-eye); }

/* ---- the app's controls ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: var(--radius); border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--ink); font: inherit; font-weight: 650; font-size: 16px;
  text-decoration: none; cursor: pointer; white-space: nowrap; transition: border-color .15s, background .15s, filter .15s;
}
.btn:hover { border-color: var(--ink-3); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.sm { min-height: 38px; padding: 0 14px; font-size: 15px; }
.pill {
  display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px;
  background: var(--gold-soft); border: 1px solid var(--gold-line); color: var(--gold-ink);
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-family: var(--font-num);
}
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); }

/* ---- nav ---- */
.top {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.top.scrolled { border-bottom-color: var(--border); }
.nav { display: flex; align-items: center; gap: 14px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 750; font-size: 18px; color: var(--ink); text-decoration: none; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 550; padding: 8px 10px; border-radius: 8px; }
.nav-links a:hover { color: var(--ink); background: var(--surface-2); }
.theme-toggle {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 999px;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--ink-2); cursor: pointer;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--ink-3); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-moon { display: none; }
[data-theme='dark'] .icon-sun { display: none; }
[data-theme='dark'] .icon-moon { display: block; fill: var(--gold); stroke: var(--gold); }

/* ---- one theme's images at a time ---- */
[data-theme='dark'] .shot-light, :root:not([data-theme='dark']) .shot-dark { display: none; }

/* ---- hero ---- */
.hero { padding: 72px 0 24px; }
.hero-grid { display: grid; gap: 44px; }
.hero-text { text-align: center; max-width: 760px; margin: 0 auto; }
.hero h1 { font-size: clamp(42px, 6.4vw, 76px); font-weight: 780; }
.lead { font-size: 20px; color: var(--ink-2); margin: 20px auto 0; max-width: 32em; }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.beta-line { margin-top: 16px; font-size: 14px; color: var(--ink-3); }
.hero-shot { margin: 0; }
.window {
  border-radius: 16px; overflow: hidden; border: 1px solid var(--border);
  box-shadow: var(--shadow-lift); background: var(--surface);
}
.note { margin-top: 14px; font-size: 13px; color: var(--ink-3); text-align: center; }

/* ---- moments ---- */
.moments { padding: 72px 0 24px; }
.moment { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.moment + .moment { margin-top: 112px; }
.moment.flip .moment-text { order: 2; }
.moment.wide { grid-template-columns: 1fr; gap: 28px; }
.moment.wide .moment-text { text-align: center; max-width: 34em; margin: 0 auto; }
.moment-text h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 750; margin-top: 10px; }
.moment-text p { color: var(--ink-2); margin-top: 14px; font-size: 18px; }
.eyebrow { font-family: var(--font-num); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-ink); }
.frame {
  border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: var(--surface);
  box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease;
}
.frame:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.frame.narrow { max-width: 460px; justify-self: center; width: 100%; }

/* ---- Canadian-first ---- */
.canada { padding: 120px 0 40px; }
.narrow-text { max-width: 760px; }
.canada h2, .faq h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 750; }
.canada p { color: var(--ink-2); margin-top: 14px; font-size: 18px; }
.points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 24px; }
.points li { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); }
.points li::before { content: ''; width: 8px; height: 8px; border-radius: 3px; background: var(--gold); transform: rotate(45deg); }

/* ---- privacy ---- */
.privacy { padding: 88px 0 40px; }
.privacy h2, .pricing h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 750; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 32px; }
.trio .card { padding: 22px; box-shadow: none; }
.trio h3 { font-size: 18px; }
.trio p { color: var(--ink-2); margin-top: 8px; font-size: 16px; }

/* ---- beta + pricing ---- */
.pricing { padding: 104px 0 40px; }
.beta-card {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px;
  margin: 32px auto 0; max-width: 980px; padding: 32px;
  background: var(--surface); border: 2px solid var(--gold-line); border-radius: 18px; box-shadow: var(--shadow);
}
.beta-seats { margin-top: 14px; font-weight: 650; color: var(--ink-2); }
.price { margin-top: 6px; font-size: 56px; font-weight: 750; line-height: 1; color: var(--ink); }
.price .per { font-size: 17px; font-weight: 600; color: var(--ink-3); font-family: var(--font); }
.bank-fee { margin-top: 12px; font-size: 14px; color: var(--ink-3); }
.beta-offer > p:last-child { margin-top: 18px; color: var(--ink-2); }
.apply { display: grid; gap: 12px; }
.apply h3 { font-size: 18px; }
.apply label { display: grid; gap: 5px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.apply input:not([type='checkbox']), .apply textarea {
  font: inherit; font-size: 16px; font-weight: 400; color: var(--ink); background: var(--bg);
  border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 10px 12px; width: 100%;
}
.apply textarea { resize: vertical; }
.apply input:focus, .apply textarea:focus { outline: 2px solid var(--focus); outline-offset: 1px; }
.apply .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.apply .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.apply .check input { margin-top: 4px; accent-color: var(--accent); width: 18px; height: 18px; flex: none; }
.apply .btn { justify-self: start; }
.fine { font-size: 13px; color: var(--ink-3); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.regular { margin-top: 20px; text-align: center; color: var(--ink-3); font-size: 15px; }

/* ---- FAQ ---- */
.faq { padding: 104px 0 48px; }
.faq details { border-bottom: 1px solid var(--border); padding: 16px 0; }
.faq details:first-of-type { margin-top: 20px; border-top: 1px solid var(--border); }
.faq summary { cursor: pointer; font-weight: 650; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--gold-ink); font-family: var(--font-num); font-weight: 700; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin-top: 10px; color: var(--ink-2); }

/* ---- footer ---- */
footer { padding: 40px 0 56px; color: var(--ink-3); font-size: 14px; border-top: 1px solid var(--border); margin-top: 48px; }
.foot { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; }
footer a { color: var(--ink-2); }

/* ---- thanks + legal pages ---- */
.thanks { padding: 120px 0; text-align: center; }
.thanks h1 { font-size: clamp(32px, 4vw, 44px); }
.thanks p { color: var(--ink-2); margin-top: 14px; }
.thanks .btn { margin-top: 28px; }
.legal { max-width: 720px; padding-top: 48px; padding-bottom: 48px; }
.legal h1 { font-size: 36px; }
.legal h2 { font-size: 20px; margin-top: 28px; }
.legal p { color: var(--ink-2); margin-top: 10px; }
.legal .draft { background: var(--gold-soft); border: 1px solid var(--gold-line); color: var(--gold-ink); border-radius: 10px; padding: 12px 14px; margin-top: 16px; }

/* ---- smaller screens ---- */
@media (max-width: 900px) {
  .moment, .beta-card { grid-template-columns: 1fr; }
  .moment { gap: 24px; }
  .moment + .moment { margin-top: 72px; }
  .moment.flip .moment-text { order: 0; }
  .trio { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .nav { gap: 8px; }
  .nav-links { display: none; }
  .brand > span:not(.pill) { font-size: 17px; }
  .hero { padding-top: 40px; }
  .lead { font-size: 18px; }
  /* Phone crops are portrait: show them at phone width, not stretched. */
  .window, .frame { max-width: 360px; margin: 0 auto; }
  .frame.narrow { max-width: 360px; }
  .beta-card { padding: 22px; }
  .apply .two { grid-template-columns: 1fr; }
  .price { font-size: 48px; }
  .canada, .privacy, .pricing, .faq { padding-top: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .frame, .btn, .top { transition: none; }
  .frame:hover { transform: none; }
}
