/* macropass.app homepage. Tokens mirror the app's design system
   (Macropass/Macropass/Core/UI/MacropassTheme.swift): sage paper, deep ink,
   green accent, adaptive dark counterpart. */

@font-face {
  font-family: "Clash Display";
  src: url("/fonts/ClashDisplay-Semibold.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #DCE2D8;
  --paper: #F4F6F1;
  --paper2: #EBEFE8;
  --surface: #FFFFFF;
  --surface2: #FAFBF8;
  --ink: #14201A;
  --ink2: #566159;
  --ink3: #6A736C;
  --line: #CAD0C7;
  --accent: #0CB85E;
  --accent-text: #097040;
  --accent-tint: #E2F5EA;
  --protein: #0A766B;
  --carbs: #8A5E00;
  --fat: #C23E18;
  --fiber: #5E7016;
  --sugar: #B03B71;
  --protein-tint: #E0F2F0;
  --carbs-tint: #F8EDD6;
  --fat-tint: #FCE6DE;
  --fiber-tint: #EFF3DA;
  --sugar-tint: #F9E4EE;
  --shadow: 0 18px 44px rgba(20, 32, 26, 0.14);
  --display: "Clash Display", -apple-system, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111A16;
    --paper: #18231D;
    --paper2: #202C25;
    --surface: #1D2922;
    --surface2: #253229;
    --ink: #F4F6F1;
    --ink2: #BDC7C0;
    --ink3: #9EAAA2;
    --line: #38453D;
    --accent-text: #43DE8C;
    --accent-tint: #123D27;
    --protein: #42D7C8;
    --carbs: #F3BD4C;
    --fat: #FF9877;
    --fiber: #C4DB62;
    --sugar: #E98AB7;
    --protein-tint: #123D39;
    --carbs-tint: #453616;
    --fat-tint: #4A271D;
    --fiber-tint: #344018;
    --sugar-tint: #46212F;
    --shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .shot img, .btn { transition: none; }
}

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

.display {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.mono { font-family: var(--mono); }

a { color: var(--accent-text); }
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---- header ---- */
header.site {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 28px; padding: 14px 0; }
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink);
  font-family: var(--display); font-size: 20px;
  margin-right: auto;
}
.brand img { width: 30px; height: 30px; border-radius: 8px; display: block; }
.nav a.link { text-decoration: none; color: var(--ink2); font-size: 15px; }
.nav a.link:hover { color: var(--ink); }
@media (max-width: 720px) { .nav a.link { display: none; } }

.btn {
  display: inline-block;
  background: var(--accent);
  color: #FFFFFF;
  font-weight: 600; font-size: 16px;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 6px 18px rgba(12, 184, 94, 0.28);
}
.btn:hover { transform: translateY(-1px); }
.btn.small { padding: 8px 16px; font-size: 14px; box-shadow: none; }
.btn.ghost {
  background: transparent; color: var(--accent-text);
  border: 1.5px solid var(--accent-text); box-shadow: none;
}

/* ---- hero ---- */
.hero {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: 48px; align-items: center;
  padding: 72px 24px 84px;
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding: 48px 24px 56px; }
}
.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent-text); margin: 0 0 18px;
}
.hero h1 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(38px, 5.4vw, 58px);
  line-height: 1.05; letter-spacing: -0.015em;
  margin: 0 0 22px; text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--accent-text); }
.lead { font-size: 19px; color: var(--ink2); max-width: 34em; margin: 0 0 28px; }
.cta-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.price-line { font-size: 15px; color: var(--ink3); margin: 0; }

/* ---- phone shots ---- */
.shot { display: flex; justify-content: center; }
.shot img {
  width: 100%; max-width: 320px; height: auto; display: block;
  border-radius: 34px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.shot.large img { max-width: 350px; }

/* ---- sections ---- */
section.band { padding: 72px 0; }
section.band.paper { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 46em; margin-bottom: 40px; }
.section-head h2 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(28px, 3.6vw, 40px); line-height: 1.12;
  letter-spacing: -0.01em; margin: 0 0 14px; text-wrap: balance;
}
.section-head p { color: var(--ink2); font-size: 18px; margin: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.rev > .shot { order: -1; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.rev > .shot { order: 0; }
}
.split h2 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(26px, 3.2vw, 36px); line-height: 1.14;
  letter-spacing: -0.01em; margin: 0 0 16px; text-wrap: balance;
}
.split p { color: var(--ink2); margin: 0 0 14px; max-width: 32em; }
.split p strong { color: var(--ink); }
.kicker {
  font-family: var(--mono);
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent-text); margin: 0 0 12px;
}

.quotecard {
  background: var(--accent-tint); color: var(--ink);
  border-radius: 16px; padding: 14px 18px;
  font-size: 15.5px; margin-top: 8px; max-width: 30em;
}
.quotecard .mono { color: var(--accent-text); }

/* ---- macro chips ---- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.chips li {
  font-family: var(--mono);
  font-size: 13.5px; font-weight: 600;
  padding: 7px 14px; border-radius: 999px;
}
.chip-cal { background: var(--accent-tint); color: var(--accent-text); }
.chip-pro { background: var(--protein-tint); color: var(--protein); }
.chip-carb { background: var(--carbs-tint); color: var(--carbs); }
.chip-fat { background: var(--fat-tint); color: var(--fat); }
.chip-fib { background: var(--fiber-tint); color: var(--fiber); }
.chip-sug { background: var(--sugar-tint); color: var(--sugar); }

/* ---- steps ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 8px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 20px; padding: 26px;
}
.step .n { font-family: var(--mono); color: var(--accent-text); font-size: 13px; letter-spacing: 0.14em; }
.step h3 { font-family: var(--display); font-weight: 600; font-size: 21px; margin: 10px 0 8px; }
.step p { color: var(--ink2); font-size: 15.5px; margin: 0; }

/* ---- for/not-for ---- */
.forgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 860px) { .forgrid { grid-template-columns: 1fr; } }
.forcard { border-radius: 20px; padding: 28px; background: var(--surface); border: 1px solid var(--line); }
.forcard.yes { background: var(--accent-tint); border-color: transparent; }
.forcard h3 { font-family: var(--display); font-weight: 600; font-size: 20px; margin: 0 0 12px; }
.forcard p, .forcard li { color: var(--ink2); font-size: 15.5px; }
.forcard.yes p, .forcard.yes li { color: var(--ink); }
.forcard ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }

/* ---- comparison table ---- */
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
table.compare { border-collapse: collapse; width: 100%; min-width: 720px; font-size: 15px; font-variant-numeric: tabular-nums; }
table.compare th, table.compare td {
  text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.compare thead th {
  font-family: var(--mono);
  font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink3); background: var(--surface2);
}
table.compare thead th.us { color: var(--accent-text); }
table.compare tbody tr:last-child td { border-bottom: none; }
table.compare td.us { background: var(--accent-tint); color: var(--ink); font-weight: 500; }
table.compare td { color: var(--ink2); }
table.compare td:first-child { color: var(--ink); font-weight: 600; }
.concede { color: var(--ink3); font-size: 14.5px; max-width: 46em; margin-top: 16px; }

/* ---- pricing ---- */
.pricecard {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 24px; padding: 40px;
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center;
}
@media (max-width: 860px) { .pricecard { grid-template-columns: 1fr; } }
.pricecard h2 { font-family: var(--display); font-weight: 600; font-size: 30px; margin: 0 0 12px; }
.pricecard p { color: var(--ink2); margin: 0 0 10px; }
.pricebox { background: var(--paper2); border-radius: 18px; padding: 26px; text-align: center; }
.pricebox .big {
  font-family: var(--display); font-weight: 600; font-size: 34px;
  font-variant-numeric: tabular-nums;
}
.pricebox .per { color: var(--ink3); font-size: 14px; }
.pricebox hr { border: none; border-top: 1px solid var(--line); margin: 16px 0; }

/* ---- FAQ ---- */
.faq { display: grid; gap: 16px; max-width: 760px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 4px 22px; }
.faq summary {
  font-family: var(--display); font-weight: 600; font-size: 18px;
  padding: 16px 0; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent-text); font-size: 22px; flex-shrink: 0; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--ink2); margin: 0 0 18px; }

/* ---- closer ---- */
.center { text-align: center; }
.closer { font-size: clamp(28px, 4vw, 44px); margin: 0 0 14px; }
.closer-sub { color: var(--ink2); font-size: 18px; max-width: 36em; margin: 0 auto 26px; }
.closer-price { margin-top: 14px; }

/* ---- footer ---- */
footer.site {
  border-top: 1px solid var(--line);
  background: var(--paper);
  padding: 40px 0 48px;
  color: var(--ink3); font-size: 14.5px;
}
.foot { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; }
.foot .brand { font-size: 17px; }
.foot .brand img.foot-mark { width: 24px; height: 24px; border-radius: 6px; }
.foot a { color: var(--ink2); text-decoration: none; }
.foot a:hover { color: var(--ink); }
.foot .copy { margin-left: auto; }

/* ===== content pages (site-wide additions, 2026-09) ===== */
.nav a.lang { font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; }
@media (max-width: 720px) { .nav a.lang { display: inline; } }

.page { padding: 56px 24px 24px; max-width: 1080px; margin: 0 auto; }
.page-head { max-width: 46em; }
.page-head h1 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(34px, 4.6vw, 52px); line-height: 1.08; letter-spacing: -0.015em;
  margin: 0 0 20px; text-wrap: balance;
}
.page-head h1 em { font-style: normal; color: var(--accent-text); }
p.answer { font-size: 19.5px; line-height: 1.55; color: var(--ink); max-width: 36em; margin: 0 0 22px; }
p.updated { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink3); margin: 0; }

.grid-main { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; margin-top: 8px; }
@media (max-width: 900px) { .grid-main { grid-template-columns: 1fr; } }

aside.facts {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px 24px;
  position: sticky; top: 84px; font-size: 15px;
}
aside.facts dl { margin: 0 0 14px; display: grid; gap: 12px; }
aside.facts dl > div { display: grid; gap: 2px; }
aside.facts dt { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-text); }
aside.facts dd { margin: 0; color: var(--ink2); }

article.content { max-width: 46em; }
article.content section { padding: 28px 0; border-top: 1px solid var(--line); }
article.content section:first-child { border-top: none; padding-top: 8px; }
article.content h2 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(24px, 3vw, 32px); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 14px; text-wrap: balance;
}
article.content h3 { font-family: var(--display); font-weight: 600; font-size: 20px; margin: 22px 0 8px; }
article.content p { color: var(--ink2); margin: 0 0 14px; }
article.content p strong, article.content li strong { color: var(--ink); }
article.content ul, article.content ol { color: var(--ink2); padding-left: 22px; margin: 0 0 14px; display: grid; gap: 6px; }
article.content dl.params { display: grid; gap: 8px; margin: 0 0 14px; }
article.content dl.params dt { font-family: var(--mono); font-size: 14px; color: var(--ink); }
article.content dl.params dd { margin: 0 0 6px; color: var(--ink2); font-size: 15px; }
article.content pre {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px;
  overflow-x: auto; font-family: var(--mono); font-size: 14px; line-height: 1.5; color: var(--ink);
}
article.content code { font-family: var(--mono); font-size: 0.92em; background: var(--paper2); padding: 1px 6px; border-radius: 6px; }
article.content pre code { background: none; padding: 0; }
article.content figure { margin: 18px 0 22px; }
article.content figure img { width: 100%; max-width: 300px; height: auto; border-radius: 28px; border: 1px solid var(--line); box-shadow: var(--shadow); display: block; }
article.content figcaption { color: var(--ink3); font-size: 14px; margin-top: 10px; max-width: 34em; }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.shots figure { margin: 0; }
.shots img { width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--line); display: block; }
.shots figcaption { font-size: 13px; }

.callout { background: var(--accent-tint); border-radius: 16px; padding: 16px 20px; margin: 0 0 16px; color: var(--ink); }
.callout.plain { background: var(--paper2); }
.callout p:last-child { margin-bottom: 0; }
.faq-page .faq { max-width: none; }
.faq-page h2 { margin-top: 12px; }

article.content table.compare { min-width: 640px; }
article.content .tablewrap { margin: 0 0 16px; }
article.content caption { caption-side: bottom; text-align: left; color: var(--ink3); font-size: 13.5px; padding: 12px 18px; }
article.content table.compare td, article.content table.compare th { padding: 12px 14px; font-size: 14.5px; }
.list-entry { border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; margin: 0 0 14px; background: var(--surface); }
.list-entry h3 { margin: 0 0 6px; }
.list-entry .best { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); }
.changelog li { margin-bottom: 4px; }
.changelog h3 { font-family: var(--mono); font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-text); }
.related { margin-top: 16px; }
.related h2 { font-size: 20px; }
.related ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.related a { text-decoration: none; }
.related a:hover { text-decoration: underline; }

/* ---- store badges ---- */
.badges { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; margin: 4px 0 16px; }
.center .badges { justify-content: center; }
.badges .badge { display: inline-flex; flex-direction: column; gap: 4px; text-decoration: none; }
.badges img { height: 50px; width: auto; display: block; }
.badges .soon img { opacity: 0.45; }
.badges .soon span { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink3); }
