/* Maxmed — Anchored v1.0 microsite (privacy · terms · support).
   Tokens mirror shared/tokens.json + the brand book. Hairlines only, radius 4, no shadows. */

@font-face {
  font-family: "Manrope";
  src: url("/fonts/Manrope-Variable.ttf") format("truetype-variations");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --paper: #FFFFFF;
  --paper-soft: #F7F6F1;
  --ink: #24462B;
  --accent: #F37A09;
  --muted: rgba(36, 70, 43, 0.60);
  --rule: rgba(36, 70, 43, 0.13);
  --rule-strong: rgba(36, 70, 43, 0.40);
  --radius: 4px;
  --gutter: 16px;
  --breath: 24px;
  --block: 32px;
  --section: 48px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0E1A12;
    --paper-soft: #141E16;
    --ink: #F3EFE4;
    --accent: #F59542;
    --muted: rgba(243, 239, 228, 0.60);
    --rule: rgba(243, 239, 228, 0.13);
    --rule-strong: rgba(243, 239, 228, 0.40);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: var(--section) var(--breath) 96px;
}
/* Landing runs wider than the reading-width legal pages */
.wrap.wide { max-width: 940px; }

/* Masthead */
.masthead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: var(--gutter);
  border-bottom: 1px solid var(--ink);
  margin-bottom: var(--block);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.5px;
  text-decoration: none;
  border-bottom: none;
  color: var(--ink);
}
/* Rounded-hump M mark, recolored to the theme's ink via a CSS mask so it flips in dark mode. */
.wordmark::before {
  content: "";
  width: 30px;
  height: 16px;
  flex: none;
  background: var(--ink);
  -webkit-mask: url(/assets/mark.png) center/contain no-repeat;
  mask: url(/assets/mark.png) center/contain no-repeat;
}
.wordmark .dot { color: var(--accent); }
.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
}

/* Headings */
h1 {
  font-weight: 200;
  font-size: 40px;
  letter-spacing: -1.6px;
  line-height: 1.05;
  margin: 0 0 8px;
}
h1 strong { font-weight: 700; }
h2 {
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.4px;
  margin: var(--block) 0 8px;
}
h3 {
  font-weight: 700;
  font-size: 15px;
  margin: var(--breath) 0 4px;
}

.updated {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 var(--block);
}

p, li { color: var(--ink); }
p { margin: 0 0 14px; }
.lede { color: var(--muted); font-size: 17px; }

a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--rule-strong); }
a:hover { border-bottom-color: var(--accent); }

ul { padding-left: 20px; margin: 0 0 14px; }
li { margin-bottom: 6px; }

strong { font-weight: 700; }

/* Callout card — hairline rectangle, radius 4, no shadow */
.card {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper-soft);
  padding: var(--breath);
  margin: var(--breath) 0;
}
.card p:last-child { margin-bottom: 0; }

/* Index link rows */
.rows { margin-top: var(--block); }
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--gutter) 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  border-bottom-color: var(--rule);
  color: var(--ink);
}
.row:hover { border-bottom-color: var(--accent); }
.row .label { font-weight: 600; font-size: 16px; }
.row .arrow { color: var(--accent); }

/* Footer */
.foot {
  margin-top: var(--section);
  padding-top: var(--gutter);
  border-top: 1px solid var(--rule);
  font-size: 13px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
}
.foot a { border-bottom: none; color: var(--muted); }
.foot a:hover { color: var(--accent); }

code { font-family: ui-monospace, "JetBrains Mono", monospace; font-size: 0.9em; }

/* ================= Landing (index) — Anchored: hairlines, radius 4, no shadow ================= */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--section);
  align-items: center;
  margin-bottom: var(--section);
}
.hero h1 { font-size: 60px; letter-spacing: -2.8px; }
.kicker {
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--accent); margin: 0 0 16px;
}
.hero-shot { display: flex; justify-content: flex-end; }
.hero-shot img {
  width: 100%; max-width: 300px; height: auto; display: block;
  border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper-soft);
}
.section-kicker {
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--accent); margin: var(--section) 0 var(--breath);
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--breath); }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: var(--radius);
  background: var(--ink); color: var(--paper);
  font-weight: 700; font-size: 15px; letter-spacing: 0.2px;
  text-decoration: none; border: 1px solid var(--ink);
}
.btn .sub { font-weight: 400; font-size: 12px; opacity: 0.7; }
.btn:hover { border-color: var(--accent); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost .sub { color: var(--accent); opacity: 1; }
.trial-note { margin-top: 14px; font-size: 13px; color: var(--muted); }

/* Screenshot strip — bleeds to the viewport edges, scrolls horizontally */
.shots {
  display: flex; gap: 14px; overflow-x: auto;
  margin: var(--section) calc(var(--breath) * -1); padding: 2px var(--breath) 8px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.shot {
  flex: none; width: 220px; height: auto;
  border: 1px solid var(--rule); border-radius: var(--radius);
  scroll-snap-align: start; background: var(--paper-soft);
}

/* Features — editorial hairline grid, accent index numbers */
.features {
  display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden;
  margin: 0;
}
.feature { padding: var(--block) var(--breath); border-top: 1px solid var(--rule); }
.feature:nth-child(1), .feature:nth-child(2) { border-top: none; }
.feature:nth-child(odd) { border-right: 1px solid var(--rule); }
.feature .idx {
  display: block; font-weight: 700; font-size: 12px; letter-spacing: 1px;
  color: var(--accent); font-variant-numeric: tabular-nums; margin-bottom: 10px;
}
.feature h3 { margin: 0 0 6px; font-size: 17px; }
.feature p { margin: 0; color: var(--muted); }

/* Centered CTA (repeat below the plans) */
.cta-center { justify-content: center; margin-top: var(--section); }

/* "Also on Telegram" — secondary, a single quiet hairline card near the foot */
.also {
  margin: var(--section) 0 0;
  padding: var(--breath);
  border: 1px solid var(--rule); border-radius: var(--radius);
  background: var(--paper-soft);
}
.also .tag {
  display: block; font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 8px;
}
.also p { color: var(--muted); margin: 0 0 12px; }
.also-link {
  font-weight: 600; font-size: 15px; color: var(--ink);
  border-bottom: 1px solid var(--rule-strong);
}
.also-link:hover { border-bottom-color: var(--accent); }
.also-link .arrow { color: var(--accent); }

/* Plans — Free / Pro, one hairline rectangle */
.plans {
  display: grid; grid-template-columns: 1fr 1fr;
  margin: var(--section) 0; border: 1px solid var(--rule); border-radius: var(--radius);
  overflow: hidden;
}
.plan { padding: var(--breath); }
.plan + .plan { border-left: 1px solid var(--rule); }
.plan h3 { margin: 0 0 12px; font-size: 15px; letter-spacing: 1px; text-transform: uppercase; }
.plan .price { font-size: 13px; color: var(--muted); margin: -8px 0 12px; }
.plan ul { margin: 0; }
.plan li { color: var(--muted); }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; gap: var(--breath); }
  .hero h1 { font-size: 46px; letter-spacing: -2px; }
  .hero-shot { display: none; }
  .features { grid-template-columns: 1fr; }
  .feature:nth-child(odd) { border-right: none; }
  .feature:nth-child(2) { border-top: 1px solid var(--rule); }
}

@media (max-width: 560px) {
  .hero h1 { font-size: 38px; letter-spacing: -1.6px; }
  .plans { grid-template-columns: 1fr; }
  .plan + .plan { border-left: none; border-top: 1px solid var(--rule); }
  .shot { width: 172px; }
}
