/* Suga — website. Colors mirror SugaColors in lib/app/theme.dart; the beam
   colors in site.js mirror the Neon palette in lib/visuals/palette.dart. */

@font-face { font-family: "Sora"; font-weight: 100 800; font-display: swap; src: url("/assets/fonts/sora.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 100 900; font-display: swap; src: url("/assets/fonts/inter.woff2") format("woff2"); }

:root {
  --night: #0e161d;
  --slate: #1c2b37;
  --navy: #00235c;
  --ice: #e6eef4;
  --mist: #93a7b6;
  --signal: #4da3f0;
  --rule: rgba(230, 238, 244, 0.1);
  --card: rgba(28, 43, 55, 0.6);
  --shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(230, 238, 244, 0.08);
  --radius-lg: 28px;
  --gutter: clamp(16px, 4vw, 32px);
  --measure: 1160px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--night); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--night);
  color: var(--ice);
  font: 400 17px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--signal); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 8px; }

h1, h2, h3 { font-family: "Sora", "Inter", system-ui, sans-serif; line-height: 1.08; margin: 0; letter-spacing: -0.02em; font-weight: 600; }

.wrap { width: min(var(--measure), 100% - 2 * var(--gutter)); margin-inline: auto; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: 12px; background: var(--slate); color: var(--ice); padding: 8px 14px; z-index: 10; }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 2; padding-block: 18px; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ice); text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
/* The wordmark echoes the app's home screen: light weight, wide tracking. */
.brand span { font: 300 22px/1 "Sora", sans-serif; letter-spacing: 0.32em; margin-right: -0.32em; }
.site-nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 28px); font-size: 15px; font-weight: 500; }
.site-nav a { color: var(--mist); text-decoration: none; }
.site-nav a:hover { color: var(--ice); }
.site-nav .nav-cta { color: var(--night); background: var(--ice); padding: 8px 16px; border-radius: 999px; }
.site-nav .nav-cta:hover { color: var(--night); background: #fff; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; margin-top: -70px; padding: calc(70px + clamp(24px, 6vw, 64px)) 0 clamp(64px, 10vw, 120px); }
.hero::before {
  /* the dark room, lit from where the phone sits */
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: radial-gradient(60% 70% at 72% 45%, #0b2148 0%, var(--night) 70%);
}
.stage { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero .wrap > * { min-width: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 600 13px/1 "Inter", sans-serif; letter-spacing: 0.16em; text-transform: uppercase; color: var(--signal); margin: 0 0 22px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 12px 2px currentColor; }
.hero h1 { font-size: clamp(42px, 6.4vw, 80px); font-weight: 300; letter-spacing: -0.035em; }
.hero h1 .lit { font-weight: 600; }
.lede { font-size: clamp(18px, 2vw, 20px); color: var(--mist); max-width: 38ch; margin: 26px 0 34px; }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.button {
  display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; min-height: 52px;
  border-radius: 999px; background: var(--ice); color: var(--night); text-decoration: none;
  font: 600 17px/1.2 "Inter", sans-serif; box-shadow: 0 0 0 0 rgba(77, 163, 240, 0.5);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}
.button svg { width: 20px; height: 20px; flex: none; }
.button:hover { background: #fff; box-shadow: 0 0 32px 4px rgba(77, 163, 240, 0.45); }
.cta-note { font-size: 14px; color: var(--mist); }

.stores { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.store-badge { display: inline-flex; align-items: center; gap: 10px; padding: 9px 18px 9px 14px; border-radius: 14px; border: 1px solid var(--rule); color: var(--mist); background: rgba(14, 22, 29, 0.5); }
.store-badge svg { width: 22px; height: 22px; flex: none; }
.store-badge small { display: block; font: 500 10.5px/1.2 "Inter", sans-serif; letter-spacing: 0.08em; text-transform: uppercase; }
.store-badge strong { display: block; font: 600 16px/1.25 "Sora", sans-serif; color: var(--ice); }

/* Phone frame around real app renders */
.phone {
  position: relative; width: min(100%, 330px); aspect-ratio: 393 / 852; margin-inline: auto;
  border-radius: 48px; padding: 9px; background: #05080b; box-shadow: var(--shadow);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 40px; }

/* ---------- Sections ---------- */
section { scroll-margin-top: 24px; }
.section { padding-block: clamp(64px, 10vw, 120px); }
.section-head { max-width: 680px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { font-size: clamp(32px, 4.6vw, 52px); }
.section-head p { color: var(--mist); font-size: 18px; margin: 16px 0 0; }

/* Modes: a strip of real renders */
.modes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.4vw, 28px); }
.mode img { width: 100%; aspect-ratio: 393 / 560; object-fit: cover; object-position: center; border-radius: 22px; box-shadow: var(--shadow); background: #000; }
.mode h3 { font-size: 20px; margin-top: 18px; }
.mode p { color: var(--mist); font-size: 15px; margin: 6px 0 0; }

/* How it works: a real sequence */
.steps { list-style: none; margin: 0 0 clamp(48px, 7vw, 80px); padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 28px 24px 26px; border-top: 1px solid var(--rule); }
.steps li::before { content: counter(step); display: block; font: 300 44px/1 "Sora", sans-serif; color: var(--signal); margin-bottom: 18px; }
.steps h3 { font-size: 22px; }
.steps p { color: var(--mist); margin: 10px 0 0; font-size: 16px; }

.extras { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.extra { background: var(--card); border: 1px solid var(--rule); border-radius: 20px; padding: 24px; }
.extra h3 { font-size: 18px; }
.extra p { margin: 8px 0 0; color: var(--mist); font-size: 15px; }
.extra .ico, .support-card .ico { width: 30px; height: 30px; color: var(--signal); margin-bottom: 14px; }

/* Privacy band */
.band {
  border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 64px);
  background: linear-gradient(135deg, var(--navy), #0b1b3a 60%, var(--slate));
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: start;
}
.band > * { min-width: 0; }
.band h2 { font-size: clamp(30px, 4.2vw, 48px); }
.band p { color: var(--mist); margin: 16px 0 0; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.checks li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; }
.checks svg { width: 22px; height: 22px; color: var(--signal); margin-top: 2px; }
.checks strong { display: block; font-weight: 600; }
.checks span { color: var(--mist); font-size: 15px; }

/* Community & support */
.support { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); gap: 16px; }
.support-card {
  display: flex; align-items: center; gap: 16px; min-height: 88px; padding: 20px 24px;
  border-radius: 20px; background: var(--card); border: 1px solid var(--rule);
  color: var(--ice); text-decoration: none; transition: border-color 0.2s ease, background 0.2s ease;
}
.support-card:hover { border-color: rgba(77, 163, 240, 0.6); background: rgba(28, 43, 55, 0.9); }
.support-card .ico { margin: 0; flex: none; }
.support-card strong { display: block; font: 600 17px/1.3 "Sora", sans-serif; }
.support-card span span { display: block; color: var(--mist); font-size: 15px; overflow-wrap: anywhere; }

/* Final CTA */
.closing { text-align: center; }
.closing h2 { font-size: clamp(40px, 6vw, 72px); font-weight: 300; }
.closing p { color: var(--mist); margin: 16px auto 30px; max-width: 42ch; }
.closing .cta-row { justify-content: center; }

/* Footer */
.site-footer { padding-block: 40px 56px; border-top: 1px solid var(--rule); font-size: 14px; color: var(--mist); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--mist); text-decoration: none; }
.site-footer a:hover { color: var(--ice); text-decoration: underline; }

/* ---------- Legal pages ---------- */
.legal { padding-block: clamp(24px, 5vw, 56px) 80px; }
.legal .wrap { max-width: 720px; }
.legal h1 { font-size: clamp(36px, 6vw, 56px); font-weight: 300; }
.legal .meta { color: var(--mist); font-size: 15px; margin: 12px 0 32px; }
.legal .summary { background: var(--card); border: 1px solid var(--rule); border-radius: 20px; padding: 20px 24px; margin-bottom: 40px; }
.legal .summary p { margin: 0; }
.legal h2 { font-size: 24px; margin: 44px 0 12px; }
.legal h3 { font-size: 18px; margin: 24px 0 8px; }
.legal p, .legal li { color: var(--mist); }
.legal li + li { margin-top: 6px; }
.legal strong { color: var(--ice); font-weight: 600; }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.legal th { color: var(--ice); font-weight: 600; }
.legal td { color: var(--mist); }
.legal .table-scroll { overflow-x: auto; }
.legal .warning { border-left: 3px solid #ffc12b; padding: 4px 0 4px 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .modes { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .hero .wrap, .band { grid-template-columns: 1fr; }
  .hero-visual { max-width: 290px; margin-inline: auto; }
  .steps, .extras { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .steps, .extras, .support { grid-template-columns: 1fr; }
  .site-nav .hide-sm { display: none; }
  .modes { gap: 14px; }
  .mode h3 { font-size: 17px; margin-top: 12px; }
  .mode p { font-size: 14px; }
}
