/* Lusis — Baltic theme
 * Tokens match constants/Colors.ts in the mobile app.
 * Source of truth: docs/design/visual-language.html (v0.2).
 * System fonts only (San Francisco / Roboto) — matches the app.
 */

:root {
  --bg: #F6F1E6;             /* cream */
  --surface: #FBF7EE;
  --surface-hi: #FFFCF4;
  --border: #D8CFBD;
  --text: #3A2E22;
  --text-secondary: #7C6F5D;
  --accent: #A6243C;         /* lingonberry */
  --accent-deep: #A6243C;    /* filled controls — same in both modes */
  --accent-2: #4A5B7E;       /* slate-blue */
  --accent-tint: rgba(166, 36, 60, 0.10);
  --link: #A6243C;           /* ≥4.5:1 on --surface in both modes */
  --success: #5B7A4F;
  --mascot-bg: #EBE8D9;      /* baked background of the mascot art */
  --shadow: 0 2px 12px rgba(58, 46, 34, 0.08);
  --shadow-soft: 0 1px 6px rgba(58, 46, 34, 0.05);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1A1F1B;           /* peat */
    --surface: #252B25;
    --surface-hi: #2E342D;
    --border: #3A4138;
    --text: #E8E1D0;
    --text-secondary: #A89F8B;
    --accent: #D6566B;
    --accent-2: #7A8FB8;
    --accent-tint: rgba(214, 86, 107, 0.14);
    --link: #E27287;
    --success: #8FAE7C;
    --shadow: 0 2px 16px rgba(0, 0, 0, 0.40);
    --shadow-soft: 0 1px 6px rgba(0, 0, 0, 0.25);
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* ── Header ─────────────────────────────────────────────── */

header.site-header {
  text-align: center;
  padding: 44px 20px 8px;
}

header.site-header .logo {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  margin-bottom: 14px;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow);
}

header.site-header h1 {
  font-size: 30px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

header.site-header h1 a {
  color: inherit;
  text-decoration: none;
}

header.site-header .tagline {
  font-size: 15px;
  color: var(--text-secondary);
  letter-spacing: 0.3px;
}

main {
  padding: 0 20px 64px;
}

/* ── Prose (privacy/terms/delete-account) ───────────────── */

article.prose {
  max-width: 720px;
  margin: 28px auto 0;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 28px;
  padding: 44px 44px;
  box-shadow: var(--shadow);
}

@media (max-width: 640px) {
  article.prose {
    padding: 28px 22px;
    border-radius: 18px;
  }
}

article.prose h1 {
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.4px;
}

article.prose .updated {
  color: var(--text-secondary);
  font-size: 14px;
  font-style: italic;
  margin-bottom: 24px;
}

article.prose h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.2px;
  margin-top: 36px;
  margin-bottom: 12px;
  padding-top: 14px;
  border-top: 1.5px solid var(--border);
}

article.prose h1 + p + h2,
article.prose h1 + .updated + h2 {
  border-top: none;
  padding-top: 0;
}

article.prose h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--accent-2);
  margin-top: 24px;
  margin-bottom: 8px;
}

article.prose p {
  margin-bottom: 14px;
  color: var(--text);
}

article.prose ul,
article.prose ol {
  margin: 12px 0 18px 24px;
}

article.prose li {
  margin-bottom: 6px;
  color: var(--text);
}

article.prose li strong {
  color: var(--text);
}

article.prose a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

article.prose a:hover {
  color: var(--accent-2);
}

article.prose code {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 13px;
  font-family: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace;
}

article.prose hr {
  border: none;
  border-top: 1.5px solid var(--border);
  margin: 32px 0;
}

article.prose blockquote {
  border-left: 3px solid var(--accent-2);
  padding-left: 16px;
  margin: 16px 0;
  color: var(--text-secondary);
  font-style: italic;
}

article.prose .back-link {
  margin-top: 28px;
}

/* ── Landing: hero ──────────────────────────────────────── */

.hero {
  max-width: 880px;
  margin: 0 auto;
  padding: 40px 0 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 36px;
  align-items: center;
}

@media (max-width: 720px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 28px;
    padding-top: 28px;
  }
}

.hero .headline {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.4px;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 14px;
}

.hero .headline em {
  font-style: normal;
  color: var(--accent);
}

.hero .pitch {
  font-size: 19px;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 12px;
}

.hero .subpitch {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 28px;
  max-width: 460px;
}

@media (max-width: 720px) {
  .hero .subpitch {
    margin-left: auto;
    margin-right: auto;
  }
}

.hero-mascot {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: var(--mascot-bg);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  justify-self: center;
}

.hero-mascot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
  display: block;
}

@media (max-width: 720px) {
  .hero-mascot {
    width: 200px;
    height: 200px;
  }
}

/* ── CTAs ───────────────────────────────────────────────── */

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* OPS-129: the hero button says what the ads promise ("Request an invite");
   the beta status moves to a quiet line beneath it (Ethan's wording, 2026-09-17). */
.cta-note {
  color: var(--text-secondary);
  font-size: 13px;
  margin: 10px 0 0;
}

@media (max-width: 720px) {
  .cta-row {
    justify-content: center;
  }
}

.cta {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 22px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease,
              border-color 0.15s ease;
}

/* Keyboard focus: consistent visible outline for all interactive elements.
   Uses :focus-visible so mouse clicks don't show a ring, only keyboard nav. */
.cta:focus-visible,
article.prose a:focus-visible,
footer.site-footer a:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 6px;
}

.cta-primary {
  background: var(--accent-deep);
  color: #FFFCF4;
  box-shadow: var(--shadow);
}

.cta-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.cta-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1.5px solid var(--border);
}

.cta-secondary:hover {
  border-color: var(--accent-2);
  color: var(--accent-2);
}

/* ── Landing: feature cards (2×3) ───────────────────────── */

.section-kicker {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-2);
  margin: 56px 0 18px;
}

.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  max-width: 880px;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .features {
    grid-template-columns: 1fr;
  }
}

.feature {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  padding: 24px 22px;
  box-shadow: var(--shadow-soft);
}

.feature .icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: var(--accent-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.feature .icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.feature p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ── Landing: waitlist ──────────────────────────────────── */

.waitlist {
  max-width: 640px;
  margin: 56px auto 0;
  padding: 36px 28px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
  text-align: center;
}

.waitlist h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: var(--text);
  margin-bottom: 10px;
}

.waitlist p {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 440px;
  margin: 0 auto 20px;
}

.waitlist .cta-row {
  justify-content: center;
}

.waitlist form {
  max-width: 400px;
  margin: 0 auto;
  text-align: left;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* OPS-152: the email field and the button now sit directly on top of each
   other, so they share one height and one pill shape (Ethan: a 14px field
   over a pill button "looks sloppy"). */
.waitlist input[type="email"] {
  width: 100%;
  box-sizing: border-box;
  height: 50px;
  padding: 0 20px;
  font: inherit;
  font-size: 15px;
  color: var(--text);
  background: var(--surface-hi);
  border: 1.5px solid var(--border);
  border-radius: 999px;
}

.waitlist input[type="email"]::placeholder {
  color: var(--text-secondary);
  opacity: 0.7;
}

.waitlist input[type="email"]:focus-visible,
.waitlist .pill input:focus-visible,
.waitlist .consent input:focus-visible,
.waitlist button:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

.waitlist .platform-row {
  border: none;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
  flex-wrap: wrap;
}

.waitlist .platform-row legend {
  float: left;
  font-size: 14px;
  color: var(--text-secondary);
  margin-right: 4px;
  padding: 6px 0;
}

.waitlist .pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  font-size: 14px;
  color: var(--text);
  background: var(--surface-hi);
  border: 1.5px solid var(--border);
  border-radius: 22px;
  cursor: pointer;
}

.waitlist .pill:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-tint);
}

.waitlist .consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 18px;
  cursor: pointer;
}

.waitlist .consent input {
  margin-top: 2px;
  accent-color: var(--accent-deep);
}

.waitlist .pill input {
  accent-color: var(--accent-deep);
}

.waitlist form button {
  display: block;
  width: 100%;
  box-sizing: border-box;
  height: 50px;
  margin-top: 12px;
  padding: 0 26px;
  border-radius: 999px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.waitlist form button:disabled {
  opacity: 0.6;
  cursor: default;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  font-size: 15px;
  margin-top: 16px;
}

.form-status.ok {
  color: var(--success);
  font-weight: 600;
}

.form-status.err {
  color: var(--accent);
}

.waitlist .fine-print {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 16px auto 0;
}

.waitlist .fine-print a {
  color: var(--link);
}

/* ── Landing: commitments ───────────────────────────────── */

.commitments {
  max-width: 720px;
  margin: 56px auto 16px;
  padding: 32px 28px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

.commitments h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.commitments p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 12px;
}

.commitments p:last-child {
  margin-bottom: 0;
}

.commitments strong {
  color: var(--link);
}

/* ── Footer ─────────────────────────────────────────────── */

footer.site-footer {
  border-top: 1.5px solid var(--border);
  margin-top: 48px;
  padding: 32px 20px 44px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 13px;
}

.footer-mascot {
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  opacity: 0.9;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--mascot-bg);
  overflow: hidden;
}

.footer-mascot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 60%;
  display: block;
}

footer.site-footer .footer-links a {
  color: var(--accent-2);
  text-decoration: none;
  margin: 0 10px;
  font-weight: 500;
}

footer.site-footer .footer-links a:hover {
  color: var(--link);
  text-decoration: underline;
}

footer.site-footer .no-sell {
  margin-top: 18px;
  padding: 12px 16px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.5;
}

footer.site-footer .no-sell strong {
  color: var(--link);
}

footer.site-footer .no-sell a {
  color: var(--link);
}

footer.site-footer .copyright {
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-secondary);
  opacity: 0.85;
  line-height: 1.6;
}

footer.site-footer p {
  margin-bottom: 8px;
}
