/* AideyHD site — design tokens lifted from the app.
   Navy + icon accents from make_icon.py; category tints from Assets.xcassets /
   WidgetCategoryTint.swift (AA-tuned light/dark pairs); moods from MoodLevel.swift. */

:root {
  --navy: #2C2A4A;
  --icon-teal: #3EC1C9;
  --icon-coral: #FF8F6B;
  --icon-amber: #FFB84D;
  --ring-track: #615F77;

  --ground: #F2F2F6;
  --card: #FFFFFF;
  --ink: #2C2A4A;
  --ink-2: #6E6C85;
  --hairline: rgba(44, 42, 74, 0.10);

  --teal: #138282;
  --amber: #9B6C19;
  --coral: #C05332;
  --indigo: #504E9E;
  --green: #1F8638;
  --purple: #A648D6;

  --shadow: 0 1px 2px rgba(44, 42, 74, 0.06), 0 6px 24px rgba(44, 42, 74, 0.08);
  --pill-shadow: 0 2px 8px rgba(44, 42, 74, 0.14), 0 8px 28px rgba(44, 42, 74, 0.14);
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #161528;
    --card: #242239;
    --ink: #ECEBF4;
    --ink-2: #A5A3BC;
    --hairline: rgba(236, 235, 244, 0.10);
    --teal: #4CD0D0;
    --amber: #FCC062;
    --coral: #FF9878;
    --indigo: #8E8CF0;
    --green: #5BD07A;
    --purple: #C5A8F5;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 6px 24px rgba(0, 0, 0, 0.3);
    --pill-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), 0 8px 28px rgba(0, 0, 0, 0.4);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 {
  font-family: ui-rounded, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.2;
  text-wrap: balance;
  margin: 0 0 0.4em;
}
h2 { font-size: 27px; font-weight: 800; }
h3 { font-size: 18px; font-weight: 700; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--teal); }
img { max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

.wrap { max-width: 880px; margin: 0 auto; padding: 0 24px; }
section { padding: 52px 0 12px; }
.lede { color: var(--ink-2); max-width: 62ch; margin-bottom: 24px; }
.muted { color: var(--ink-2); }
.small { font-size: 14.5px; }

/* ---------- navy bands ---------- */
.band {
  background: var(--navy);
  color: #ECEBF4;
}
.band a { color: var(--icon-teal); }
.band .muted { color: rgba(236, 235, 244, 0.7); }

/* ---------- hero ---------- */
.hero { padding: 64px 0 60px; }
.hero .wrap { display: flex; gap: 44px; align-items: center; flex-wrap: wrap; }
.hero-copy { flex: 1 1 380px; }
.hero-shot { flex: 0 1 280px; margin: 0; }
.hero-shot img {
  border-radius: 32px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.45);
  display: block;
}
.hero-mark { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.hero-mark svg { width: 56px; height: 56px; }
.hero-mark .name { font-family: ui-rounded, -apple-system, sans-serif; font-weight: 800; font-size: 22px; color: #fff; }
.hero h1 { font-size: clamp(32px, 5.5vw, 46px); font-weight: 800; color: #fff; margin-bottom: 14px; }
.hero .sub { color: rgba(236, 235, 244, 0.78); font-size: 19px; max-width: 42ch; margin-bottom: 26px; }
.cta-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.cta, .band a.cta {
  display: inline-block;
  background: var(--icon-teal);
  color: #12303A;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 999px;
  text-decoration: none;
  border: none;
}
.cta[aria-disabled="true"] { opacity: 0.92; cursor: default; }
.cta-note { color: rgba(236, 235, 244, 0.7); font-size: 15px; }
.platforms { margin-top: 18px; color: rgba(236, 235, 244, 0.6); font-size: 14.5px; }

/* ---------- cards ---------- */
.card {
  background: var(--card);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 22px 24px;
}
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* ---------- feature tour ---------- */
.feature .glyph {
  width: 44px; height: 44px;
  border-radius: 999px;
  display: grid; place-items: center;
  margin-bottom: 12px;
}
.feature .glyph svg { width: 22px; height: 22px; }
.feature h3 { margin-bottom: 4px; }
.feature p { color: var(--ink-2); font-size: 15px; }
.t-teal   { color: var(--teal);   background: color-mix(in srgb, var(--teal) 10%, transparent); }
.t-amber  { color: var(--amber);  background: color-mix(in srgb, var(--amber) 12%, transparent); }
.t-coral  { color: var(--coral);  background: color-mix(in srgb, var(--coral) 10%, transparent); }
.t-indigo { color: var(--indigo); background: color-mix(in srgb, var(--indigo) 10%, transparent); }
.t-green  { color: var(--green);  background: color-mix(in srgb, var(--green) 10%, transparent); }
.t-purple { color: var(--purple); background: color-mix(in srgb, var(--purple) 10%, transparent); }
.t-ink    { color: var(--ink-2);  background: color-mix(in srgb, var(--ink-2) 12%, transparent); }

/* ---------- design decisions ---------- */
.decision h3 { margin-bottom: 6px; }
.decision p { font-size: 15px; color: var(--ink-2); }
.decision .instead {
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--ink-2);
  border-left: 3px solid var(--hairline);
  padding-left: 12px;
}
.decision .instead strong { color: var(--coral); font-weight: 650; }

/* ---------- two-tap demo ---------- */
.demo {
  background: var(--card);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 24px;
  max-width: 480px;
  position: relative;
  overflow: hidden;
}
.demo-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.demo-head h3 { margin: 0; color: var(--amber); font-size: 16px; }
.tap-count { font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.qchip {
  display: inline-flex; flex-direction: column; align-items: flex-start;
  padding: 8px 16px; border-radius: 999px; border: none;
  color: var(--amber);
  background: color-mix(in srgb, var(--amber) 12%, transparent);
  text-align: left;
  min-height: 44px;
  justify-content: center;
}
.qchip .t { font-size: 14.5px; font-weight: 600; }
.qchip .s { font-size: 11.5px; opacity: 0.75; }
.demo-log { list-style: none; margin: 16px 0 0; padding: 0; }
.demo-log li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 4px;
  border-top: 1px solid var(--hairline);
  font-size: 15px;
}
.demo-log .when { color: var(--ink-2); font-size: 13.5px; white-space: nowrap; }
.demo-empty { color: var(--ink-2); font-size: 14px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--hairline); }

.sheet {
  position: absolute; inset: auto 0 0 0;
  background: var(--card);
  border-top: 1px solid var(--hairline);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.18);
  padding: 20px 24px;
  transform: translateY(105%);
  transition: transform 0.28s ease;
}
.sheet.open { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .sheet { transition: none; } }
.sheet h4 { margin: 0 0 12px; font-size: 16px; font-family: ui-rounded, -apple-system, sans-serif; }
.sheet .row { display: flex; justify-content: space-between; padding: 8px 0; border-top: 1px solid var(--hairline); font-size: 15px; }
.sheet .row .k { color: var(--ink-2); }
.sheet-actions { display: flex; gap: 10px; margin-top: 16px; justify-content: flex-end; }
.btn-quiet { background: none; border: none; color: var(--ink-2); padding: 10px 16px; border-radius: 999px; }
.btn-log {
  background: var(--amber); border: none;
  color: var(--card);
  font-weight: 700; padding: 10px 24px; border-radius: 999px;
}

.undo-pill {
  display: flex; align-items: center; gap: 14px;
  background: var(--card);
  border: 1px solid var(--hairline);
  box-shadow: var(--pill-shadow);
  border-radius: 999px;
  padding: 9px 12px 9px 18px;
  font-size: 14.5px;
  position: absolute; left: 50%; bottom: 14px;
  transform: translateX(-50%);
  white-space: nowrap;
}
.undo-pill[hidden] { display: none; }
.undo-pill button {
  font-weight: 700; color: var(--teal);
  background: color-mix(in srgb, var(--teal) 10%, transparent);
  border: none; border-radius: 999px; padding: 5px 14px;
}
.demo-reset { margin-top: 14px; background: none; border: none; color: var(--ink-2); font-size: 13px; padding: 4px; }

/* ---------- copy toggle ---------- */
.toggle {
  display: inline-flex;
  background: color-mix(in srgb, var(--ink-2) 12%, transparent);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
  margin-bottom: 18px;
}
.toggle button {
  border: none; background: none;
  padding: 8px 20px; border-radius: 999px;
  font-size: 14.5px; font-weight: 600;
  color: var(--ink-2);
}
.toggle button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.pairs { display: grid; gap: 10px; max-width: 560px; }
.pairs .line {
  border-radius: 14px;
  padding: 12px 18px;
  font-size: 15.5px;
  background: color-mix(in srgb, var(--coral) 9%, transparent);
  color: var(--ink-2);
}
.pairs.aidey .line {
  background: color-mix(in srgb, var(--teal) 9%, transparent);
  color: var(--ink);
  font-weight: 600;
}

/* ---------- widget mock ---------- */
.widgets { display: flex; gap: 18px; flex-wrap: wrap; }
.widget {
  width: 170px; height: 170px;
  border-radius: 28px;
  padding: 16px;
  display: flex; flex-direction: column;
  background: var(--card);
  box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.widget .wash { position: absolute; inset: 0; pointer-events: none; }
.widget > div { position: relative; }
.widget .wl { font-size: 10.5px; font-weight: 800; letter-spacing: 0.1em; margin-bottom: 4px; }
.widget .wt { font-size: 17px; font-weight: 750; line-height: 1.2; }
.widget .ws { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.widget .wico { margin-top: auto; }
.widget .wico svg { width: 18px; height: 18px; }

/* ---------- FAQ ---------- */
details {
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 4px 22px;
  margin-bottom: 10px;
}
summary {
  cursor: pointer;
  font-weight: 650;
  padding: 14px 0;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--ink-2); font-size: 20px; font-weight: 400; flex: none; }
details[open] summary::after { content: "–"; }
details p { color: var(--ink-2); font-size: 15.5px; padding-bottom: 16px; }

/* ---------- privacy band / pricing / footer ---------- */
.privacy-band { padding: 56px 0; margin-top: 44px; }
.privacy-band h2 { color: #fff; }
.privacy-band p { max-width: 56ch; }

.footer { padding: 44px 0 52px; margin-top: 56px; font-size: 14.5px; }
.footer .wrap { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.footer svg { width: 44px; height: 44px; flex: none; }
.footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer a { color: rgba(236, 235, 244, 0.85); }

/* privacy page */
.doc { max-width: 680px; margin: 0 auto; padding: 48px 24px 80px; }
.doc h1 { font-size: 30px; margin-bottom: 4px; }
.doc h2 { font-size: 20px; margin-top: 36px; }
.doc .updated { color: var(--ink-2); font-size: 14.5px; margin-bottom: 28px; }
.doc-top { padding: 20px 24px 0; }
.doc-top a { text-decoration: none; font-weight: 600; }
