/* MyBite — mybiteai.app
   One stylesheet for the whole site. System type, the app's own palette,
   restraint over spectacle. */

:root {
  --ink: #0a0a0b;
  --ink-2: #54545c;
  --ink-3: #9a9aa2;
  --accent: #5b4dff;
  --accent-ink: #4a3ed6;
  --wash: #f4f4f7;
  --accent-wash: rgba(91, 77, 255, 0.10);
  --line: rgba(10, 10, 11, 0.08);
  --bg: #ffffff;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --max: 1080px;
  --nav-h: 64px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    Roboto, "Helvetica Neue", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ── Navigation ─────────────────────────────────────────────── */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  backdrop-filter: saturate(1.6) blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  height: var(--nav-h);
  display: flex; align-items: center; gap: 28px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 19px; letter-spacing: -0.02em;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand .bite { color: var(--accent); }
.nav-links {
  display: flex; gap: 24px; margin-left: auto;
  font-size: 15px; font-weight: 500;
}
.nav-links a { color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-cta {
  margin-left: 4px;
  background: var(--ink); color: #fff;
  font-size: 14px; font-weight: 600;
  padding: 9px 18px; border-radius: 999px;
  transition: transform 0.15s ease, background 0.15s ease;
}
.nav-cta:hover { background: var(--accent); text-decoration: none; transform: translateY(-1px); }
@media (max-width: 720px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ── Buttons ────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 600; font-size: 16px; letter-spacing: -0.01em;
  border-radius: 999px; padding: 15px 28px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 8px 24px rgba(91, 77, 255, 0.28);
}
.btn-primary:hover { box-shadow: 0 10px 30px rgba(91, 77, 255, 0.36); }
.btn-ghost { background: var(--wash); color: var(--ink); }
.btn small { display: block; font-size: 11px; font-weight: 500; opacity: 0.8; text-align: left; }

/* ── Hero ───────────────────────────────────────────────────── */

.hero { padding: 96px 0 56px; }
.hero-center {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}
.hero-center .hero-sub { margin-left: auto; margin-right: auto; }
.hero-center .hero-ctas { justify-content: center; }
@media (max-width: 860px) { .hero { padding-top: 64px; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent-wash);
  padding: 6px 14px; border-radius: 999px;
  margin-bottom: 22px;
}

h1 {
  font-size: clamp(40px, 6.4vw, 64px);
  line-height: 1.04; letter-spacing: -0.035em; font-weight: 700;
}
h1 .accent { color: var(--accent); }

.hero-sub {
  margin-top: 22px; font-size: clamp(17px, 2vw, 20px);
  color: var(--ink-2); max-width: 34em;
}

.hero-ctas { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }

.hero-note { margin-top: 18px; font-size: 13px; color: var(--ink-3); }


/* ── Sections ───────────────────────────────────────────────── */

section { padding: 88px 0; }
section.tint { background: var(--wash); }

.kicker {
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent-ink);
  margin-bottom: 14px;
}
h2 {
  font-size: clamp(30px, 4.4vw, 44px);
  letter-spacing: -0.03em; line-height: 1.12; font-weight: 700;
  max-width: 18em;
}
.lead { margin-top: 16px; font-size: 18px; color: var(--ink-2); max-width: 36em; }

/* Steps */
.steps {
  margin-top: 52px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
@media (max-width: 780px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 30px 28px;
}
.step .n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent-wash); color: var(--accent-ink);
  font-weight: 700; font-size: 15px; margin-bottom: 18px;
}
.step h3 { font-size: 20px; letter-spacing: -0.02em; margin-bottom: 8px; }
.step p { font-size: 15px; color: var(--ink-2); }

/* Feature split */
.split {
  margin-top: 56px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 36px; } }
.split h3 { font-size: 26px; letter-spacing: -0.025em; margin-bottom: 12px; }
.split p { color: var(--ink-2); }
.split ul { margin-top: 18px; list-style: none; }
.split li {
  padding: 10px 0 10px 34px; position: relative;
  color: var(--ink-2); font-size: 16px;
}
.split li::before {
  content: ""; position: absolute; left: 0; top: 13px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent-wash);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%234a3ed6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 20px;
}
.fineprint { margin-top: 18px; font-size: 13px; color: var(--ink-3); }

/* Dashboard illustration (pure CSS/SVG, labelled as such) */
.dash {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius-xl); padding: 34px;
  box-shadow: 0 2px 6px rgba(10, 10, 11, 0.05), 0 24px 64px rgba(10, 10, 11, 0.10);
  max-width: 420px; margin: 0 auto;
}
.dash .ring { display: flex; justify-content: center; margin-bottom: 8px; }
.dash .big { text-align: center; font-size: 40px; font-weight: 700; letter-spacing: -0.03em; }
.dash .cap {
  text-align: center; font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 24px;
}
.bars { display: grid; gap: 14px; }
.bar-row { display: grid; grid-template-columns: 64px 1fr 44px; gap: 12px; align-items: center; font-size: 13px; }
.bar-row .lbl { color: var(--ink-2); font-weight: 600; }
.bar-row .val { color: var(--ink-3); text-align: right; font-variant-numeric: tabular-nums; }
.bar { height: 8px; border-radius: 4px; background: var(--wash); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 4px; }
.bar .p { background: #00a08c; width: 68%; }
.bar .c { background: #e08600; width: 72%; }
.bar .f { background: #f0436b; width: 64%; }
.dash-note { margin-top: 20px; text-align: center; font-size: 11px; color: var(--ink-3); }

/* Privacy */
.pillars {
  margin-top: 48px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
@media (max-width: 780px) { .pillars { grid-template-columns: 1fr; } }
.pillar {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; background: var(--bg);
}
.pillar h3 { font-size: 18px; letter-spacing: -0.02em; margin-bottom: 8px; }
.pillar p { font-size: 14.5px; color: var(--ink-2); }

/* FAQ */
.faq { margin-top: 44px; max-width: 760px; }
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 0; font-size: 17px; font-weight: 600; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 22px; font-weight: 400; color: var(--ink-3);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 0 22px; color: var(--ink-2); font-size: 15.5px; max-width: 60ch; }

/* Final CTA */
.cta-final { text-align: center; }
.cta-final .btn { margin-top: 30px; }
.cta-final h2 { margin: 0 auto; }
.cta-final .lead { margin-left: auto; margin-right: auto; }

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

footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 56px; font-size: 14px; color: var(--ink-2);
  background: var(--bg);
}
.foot-grid { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.foot-brand { max-width: 300px; }
.foot-brand .brand { margin-bottom: 12px; }
.foot-brand p { font-size: 13px; color: var(--ink-3); }
.foot-col h4 {
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 14px;
}
.foot-col ul { list-style: none; display: grid; gap: 10px; }
.foot-col a { color: var(--ink-2); }
.foot-col a:hover { color: var(--ink); }
.foot-legalline {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--ink-3);
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
}

/* ── Legal pages ────────────────────────────────────────────── */

.doc { max-width: 760px; margin: 0 auto; padding: 64px 24px 96px; }
.doc-home { font-size: 14px; }
.doc h1 { font-size: clamp(30px, 4.5vw, 40px); margin: 18px 0 8px; }
.doc h2 { font-size: 22px; margin: 40px 0 12px; max-width: none; }
.doc h3 { font-size: 17px; letter-spacing: -0.01em; margin: 26px 0 8px; }
.doc p { margin: 14px 0; color: var(--ink-2); font-size: 16px; }
.doc p strong, .doc li strong { color: var(--ink); }
.doc ul, .doc ol { margin: 14px 0 14px 26px; color: var(--ink-2); font-size: 16px; }
.doc li { margin: 6px 0; }
.doc code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px; background: var(--wash);
  padding: 2px 7px; border-radius: 6px;
}
.doc-list { list-style: none; margin: 32px 0 0 !important; display: grid; gap: 14px; }
.doc-list a {
  display: block; border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 18px 22px; color: var(--ink); font-weight: 600;
}
.doc-list a small { display: block; font-weight: 400; color: var(--ink-3); margin-top: 3px; }
.doc-list a:hover { text-decoration: none; border-color: var(--accent); }

/* ── Reveal animation (JS adds .js; without JS everything is visible) ── */

.js .reveal {
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .nav-cta { transition: none; }
}
