/* ============================================================
   TanCue — landing + legal pages
   Brand tokens mirror the in-app design system (docs/03-design-system.md):
   warm cream canvas, sunset-orange accent, SF Pro Rounded headings.
   ============================================================ */

:root {
  /* Brand */
  --canvas: #FFF7EC;
  --surface: #FFFFFF;
  --surface-sunken: #FBEFE0;
  --brand: #FF6A1A;
  --brand-pressed: #E85600;
  --brand-soft: #FFE2CC;
  --coral: #FF5F72;
  --honey: #FFC83D;
  --ink: #241D18;
  --ink-secondary: #6B5D52;
  --ink-tertiary: #A89A8C;
  --hairline: #EFE4D6;

  /* WHO UV scale (used for the gauge motif) */
  --uv-low: #2FA86A;
  --uv-mod: #F4C430;
  --uv-high: #F2853C;
  --uv-vhigh: #E8553D;
  --uv-extreme: #8B5BD6;

  --radius-card: 22px;
  --radius-pill: 999px;
  --shadow-soft: 0 8px 24px rgba(36, 29, 24, 0.08);
  --shadow-lift: 0 16px 40px rgba(36, 29, 24, 0.12);
  --maxw: 1080px;
  --maxw-text: 760px;

  --font-display: "Baloo 2", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    Roboto, Helvetica, Arial, system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #1A1512;
    --surface: #241D18;
    --surface-sunken: #2C231C;
    --brand: #FF7A33;
    --brand-pressed: #FF6A1A;
    --brand-soft: #3A2A1E;
    --ink: #F6EEE4;
    --ink-secondary: #C9B9A9;
    --ink-tertiary: #9B8B7C;
    --hairline: #3A2F26;
    --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-lift: 0 16px 40px rgba(0, 0, 0, 0.45);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-pressed); text-decoration: underline; }

img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--brand); color: #fff; padding: 10px 16px;
  border-radius: 0 0 10px 0; z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--canvas) 82%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand-lockup { display: flex; align-items: center; gap: 10px; }
.brand-lockup img { width: 34px; height: 34px; border-radius: 9px; box-shadow: var(--shadow-soft); }
.brand-lockup .wordmark {
  font-family: var(--font-display); font-weight: 800; font-size: 22px;
  color: var(--ink); letter-spacing: -0.02em;
}
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a {
  color: var(--ink-secondary); font-weight: 600; font-size: 15px;
}
.nav-links a:hover { color: var(--brand); text-decoration: none; }
@media (max-width: 560px) {
  .nav-links a.hide-sm { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 17px;
  padding: 14px 26px; border-radius: var(--radius-pill);
  cursor: pointer; border: none; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(255,106,26,.32); }
.btn-primary:hover { background: var(--brand-pressed); color: #fff; text-decoration: none; transform: translateY(-1px); }

.btn-store {
  background: #111; color: #fff; padding: 10px 20px; border-radius: 14px;
  text-align: left; line-height: 1.05; gap: 12px;
}
.btn-store:hover { background: #000; color: #fff; text-decoration: none; transform: translateY(-1px); }
.btn-store svg { width: 26px; height: 26px; flex: none; }
.btn-store .store-small { display: block; font-family: var(--font-body); font-size: 11px; font-weight: 500; opacity: .85; }
.btn-store .store-big { display: block; font-family: var(--font-display); font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 64px 0 56px; }
.hero::before {
  content: ""; position: absolute; z-index: 0;
  top: -260px; right: -160px; width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%,
    rgba(255,200,61,.55), rgba(255,106,26,.28) 45%, transparent 70%);
  filter: blur(6px); pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brand-soft); color: var(--brand-pressed);
  font-weight: 700; font-size: 13px; letter-spacing: .02em; text-transform: uppercase;
  padding: 7px 14px; border-radius: var(--radius-pill); margin-bottom: 20px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.hero h1 { font-size: clamp(34px, 6vw, 56px); }
.hero .lede { font-size: clamp(17px, 2.2vw, 21px); color: var(--ink-secondary); max-width: 30ch; margin: 0 0 28px; }
.hero-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 14px; color: var(--ink-tertiary); display: flex; align-items: center; gap: 8px; }
.hero-note svg { width: 16px; height: 16px; color: var(--uv-low); }

.hero-art { position: relative; display: flex; justify-content: center; }
.hero-art img { width: min(360px, 80%); filter: drop-shadow(0 24px 36px rgba(36,29,24,.22)); animation: float 6s ease-in-out infinite; }
.hero-art .glow {
  position: absolute; inset: auto 0 6% 0; height: 36px; width: 60%; margin: 0 auto;
  background: radial-gradient(ellipse at center, rgba(36,29,24,.18), transparent 70%);
  filter: blur(8px);
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero .lede { margin-left: auto; margin-right: auto; }
  .hero-cta, .hero-note { justify-content: center; }
  .hero-art { order: -1; }
  .hero-art img { width: min(260px, 64%); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-art img { animation: none; }
}

/* ---------- Trust strip ---------- */
.trust { border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); background: var(--surface-sunken); }
.trust .container { display: flex; flex-wrap: wrap; gap: 14px 36px; justify-content: center; padding-top: 18px; padding-bottom: 18px; }
.trust span { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 14.5px; color: var(--ink-secondary); }
.trust svg { width: 18px; height: 18px; color: var(--brand); flex: none; }

/* ---------- Sections ---------- */
section.block { padding: 64px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head h2 { font-size: clamp(26px, 4vw, 36px); }
.section-head p { color: var(--ink-secondary); font-size: 18px; margin: 0; }

/* Plan cards */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }
.plan {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--radius-card); padding: 30px; box-shadow: var(--shadow-soft);
}
.plan.pro { border-color: var(--brand-soft); box-shadow: var(--shadow-lift); position: relative; }
.plan .tag {
  display: inline-block; font-family: var(--font-display); font-weight: 700; font-size: 13px;
  padding: 5px 12px; border-radius: var(--radius-pill); margin-bottom: 14px;
}
.plan.free .tag { background: color-mix(in srgb, var(--uv-low) 16%, transparent); color: var(--uv-low); }
.plan.pro .tag { background: var(--brand-soft); color: var(--brand-pressed); }
.plan h3 { font-size: 24px; margin-bottom: 6px; }
.plan .plan-sub { color: var(--ink-tertiary); font-size: 14.5px; margin: 0 0 18px; }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 13px; }
.feature-list li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 15.5px; color: var(--ink-secondary); }
.feature-list svg { width: 22px; height: 22px; margin-top: 1px; flex: none; }
.feature-list .check { color: var(--uv-low); }
.feature-list .star { color: var(--brand); }
.plan .free-note { margin: 20px 0 0; font-size: 13.5px; color: var(--ink-tertiary); border-top: 1px dashed var(--hairline); padding-top: 16px; }

/* Private band */
.band { background: linear-gradient(135deg, #2A211A, #3A2A1E); color: #fff; border-radius: 0; }
@media (prefers-color-scheme: dark) { .band { background: linear-gradient(135deg, #120E0B, #241813); } }
.band .container { padding-top: 56px; padding-bottom: 56px; }
.band-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
@media (max-width: 760px) { .band-grid { grid-template-columns: 1fr; text-align: center; } }
.band h2 { color: #fff; font-size: clamp(24px, 4vw, 32px); }
.band p { color: rgba(255,255,255,.82); font-size: 17px; margin: 0 0 10px; }
.band .pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
@media (max-width: 760px) { .band .pills { justify-content: center; } }
.band .pills span { background: rgba(255,255,255,.12); color: #fff; font-weight: 600; font-size: 13.5px; padding: 8px 14px; border-radius: var(--radius-pill); }
.band-art { display: flex; justify-content: center; }
.band-art img { width: min(220px, 60%); filter: drop-shadow(0 18px 28px rgba(0,0,0,.4)); }

/* Disclaimer note */
.disclaimer { background: var(--surface-sunken); border-radius: var(--radius-card); padding: 24px 28px; display: flex; gap: 16px; align-items: flex-start; border: 1px solid var(--hairline); }
.disclaimer svg { width: 26px; height: 26px; color: var(--uv-high); flex: none; margin-top: 2px; }
.disclaimer p { margin: 0; font-size: 15px; color: var(--ink-secondary); }
.disclaimer strong { color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--hairline); background: var(--surface-sunken); margin-top: 8px; }
.site-footer .container { padding-top: 40px; padding-bottom: 40px; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { width: 30px; height: 30px; border-radius: 8px; }
.footer-brand .wordmark { font-family: var(--font-display); font-weight: 800; font-size: 19px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px 24px; }
.footer-links a { color: var(--ink-secondary); font-weight: 600; font-size: 15px; }
.footer-meta { width: 100%; border-top: 1px solid var(--hairline); margin-top: 24px; padding-top: 20px; color: var(--ink-tertiary); font-size: 13.5px; display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; }
.footer-meta a { color: var(--ink-tertiary); }

/* ---------- Legal pages ---------- */
.legal { padding: 48px 0 24px; }
.legal-wrap { max-width: var(--maxw-text); margin: 0 auto; }
.legal .back { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; margin-bottom: 22px; }
.legal h1 { font-size: clamp(30px, 5vw, 42px); margin-bottom: 8px; }
.legal .updated { color: var(--ink-tertiary); font-size: 14px; margin: 0 0 8px; }
.legal-card {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-card);
  padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow-soft); margin-top: 24px;
}
.legal-card h2 { font-size: 22px; margin-top: 34px; padding-top: 4px; }
.legal-card h2:first-child { margin-top: 0; }
.legal-card h3 { font-size: 18px; margin-top: 24px; color: var(--ink); }
.legal-card p, .legal-card li { color: var(--ink-secondary); font-size: 16px; }
.legal-card ul { padding-left: 22px; display: grid; gap: 8px; }
.legal-card li::marker { color: var(--brand); }
.legal-card strong { color: var(--ink); }
.legal-card .lead { font-size: 17.5px; color: var(--ink); }
.callout {
  background: var(--surface-sunken); border-left: 4px solid var(--brand);
  border-radius: 12px; padding: 16px 18px; margin: 22px 0; font-size: 15px; color: var(--ink-secondary);
}
.toc { background: var(--surface-sunken); border: 1px solid var(--hairline); border-radius: 14px; padding: 18px 22px; margin-top: 24px; }
.toc h2 { font-size: 14px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-tertiary); margin: 0 0 10px; font-family: var(--font-body); }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 28px; }
@media (max-width: 560px) { .toc ol { columns: 1; } }
.toc a { color: var(--ink-secondary); font-size: 14.5px; font-weight: 600; }
