/* Mileplate website. Colors and fonts match the app (forkful-app/src/lib/theme.ts). */
:root {
  --bg: #10131F;
  --surface: #191D2E;
  --sunk: #242940;
  --ink: #EEF0F8;
  --muted: #9BA2BA;
  --line: #2C3249;
  --brand: #A98BFF;
  --brand-soft: #2B2650;
  --pro: #FF8A3D;
  --carb: #FFF5B0;
  --fat: #4F7BFF;
  --amber: #FFC75F;
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --body: 'Atkinson Hyperlegible', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--body);
}
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
img { max-width: 100%; display: block; }

.wrap { max-width: 980px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }

/* Header */
.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 800 21px var(--display); letter-spacing: -0.02em; }
.logo img { width: 34px; height: 34px; border-radius: 9px; }
.nav { display: flex; gap: 18px; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 700; font-size: 15px; padding: 8px 0; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); }

/* Home hero */
.hero { padding: 72px 0 56px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(40px, 7vw, 64px); font-weight: 800; }
.hero h1 .accent { color: var(--brand); }
.hero p.lead { font-size: 20px; color: var(--muted); margin: 18px 0 28px; max-width: 34ch; }
.hero-art { justify-self: center; width: min(320px, 70vw); border-radius: 22%; box-shadow: 0 30px 80px rgba(169, 139, 255, 0.18); }
.badge { display: inline-flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 18px; font-weight: 700; }
.badge small { display: block; color: var(--muted); font-weight: 400; font-size: 13px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--amber); flex: none; }

.macros { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 22px; color: var(--muted); font-size: 14px; }
.macros span { display: inline-flex; align-items: center; gap: 6px; }
.macros i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }

/* Features */
.section { padding: 48px 0; border-top: 1px solid var(--line); }
.section > .wrap > h2 { font-size: 32px; margin-bottom: 8px; }
.section > .wrap > p.sub { color: var(--muted); margin: 0 0 28px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.card h3 { font-size: 20px; margin-bottom: 6px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.card .tag { display: inline-block; font: 700 12px var(--body); text-transform: uppercase; letter-spacing: 0.08em; color: var(--brand); margin-bottom: 10px; }

.note { background: var(--brand-soft); border-radius: 16px; padding: 18px 20px; margin: 24px 0; }
.note.warn { background: rgba(255, 199, 95, 0.12); border: 1px solid rgba(255, 199, 95, 0.35); }
.note p { margin: 0; }
.note p + p { margin-top: 8px; }

/* Long text pages (privacy, terms, support) */
.doc { padding: 48px 0 64px; }
.doc h1 { font-size: clamp(34px, 6vw, 46px); font-weight: 800; }
.doc .meta { color: var(--muted); margin: 10px 0 28px; }
.doc h2 { font-size: 25px; margin: 40px 0 10px; }
.doc h3 { font-size: 19px; margin: 26px 0 6px; }
.doc p, .doc li { color: #D6D9E6; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc strong { color: var(--ink); }
.table-scroll { overflow-x: auto; margin: 16px 0; border: 1px solid var(--line); border-radius: 14px; }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
th { background: var(--sunk); font-family: var(--display); font-weight: 700; }
tr:last-child td { border-bottom: 0; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; }
.toc ul { margin: 6px 0 0; columns: 2; column-gap: 28px; }
.toc li { break-inside: avoid; margin: 4px 0; }

/* Support */
.contact { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.contact p { margin: 0; color: var(--muted); }
.btn { display: inline-block; background: var(--brand); color: var(--bg); font-weight: 700; text-decoration: none; padding: 12px 20px; border-radius: 12px; }
.btn:hover { filter: brightness(1.08); }
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
details summary { cursor: pointer; font: 700 18px var(--display); list-style-position: inside; }
details[open] summary { margin-bottom: 8px; }
details p { margin: 6px 0; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 15px; }
.foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot a { color: var(--muted); }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding: 40px 0 36px; text-align: left; }
  .hero-art { grid-row: 1; width: 140px; justify-self: start; }
  .grid { grid-template-columns: 1fr; }
  .toc ul { columns: 1; }
  .wrap { padding: 0 16px; }
}
