/* ============================================================
   Mitra — marketing site styles
   Design language mirrors the app's "Sage Terminal": calm,
   stoic, serif display + clean sans body, one sage accent.
   ============================================================ */

:root {
  --ink: #16181a;
  --ink-soft: #4c5450;
  --ink-faint: #7d857f;
  --paper: #f5f1e8;         /* warm parchment */
  --paper-2: #efe9db;
  --card: #fbf8f1;
  --line: #e2dccb;
  --sage: #3f6f57;          /* accent */
  --sage-strong: #244d3b;
  --sage-soft: #eaf1ec;
  --teal: #14867b;
  --amber: #b8823a;
  --coral: #b0503f;
  --shadow: 0 24px 60px -30px rgba(24, 40, 32, 0.35);
  --radius: 22px;
  --radius-sm: 14px;
  --maxw: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--sage); text-decoration: none; }
a:hover { color: var(--sage-strong); }

.serif { font-family: 'Fraunces', Georgia, 'Times New Roman', serif; }

/* ---------- layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { padding: 92px 0; }
.eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--sage); font-weight: 600; margin-bottom: 18px;
}
h1, h2, h3 { font-family: 'Fraunces', Georgia, serif; font-weight: 600; line-height: 1.08; letter-spacing: -0.015em; color: var(--ink); }
h1 { font-size: clamp(40px, 6vw, 74px); }
h2 { font-size: clamp(30px, 4vw, 46px); }
h3 { font-size: 21px; }
p.lead { font-size: clamp(17px, 2vw, 21px); color: var(--ink-soft); max-width: 60ch; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(140%) blur(14px);
  background: rgba(245, 241, 232, 0.82);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: 'Fraunces', serif; font-weight: 600; font-size: 21px; color: var(--ink); }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--ink-soft); font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--ink); }
/* The Download button is an <a class="btn"> inside .nav-links, so the rule above
   would otherwise override .btn's light text with dark ink on the green fill. */
.nav-links a.btn { color: #f3f0e7; }
.nav-links a.btn:hover { color: #fff; }
@media (max-width: 760px) { .nav-links a:not(.btn) { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--sage-strong); color: #f3f0e7;
  padding: 13px 22px; border-radius: 999px;
  font-weight: 600; font-size: 15px; border: 0; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  box-shadow: 0 10px 24px -12px rgba(36, 77, 59, 0.6);
}
.btn:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 16px 30px -12px rgba(36, 77, 59, 0.65); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.btn.ghost:hover { border-color: var(--sage); color: var(--sage-strong); }
.btn.light { background: #f3f0e7; color: var(--sage-strong); }

/* ---------- hero ---------- */
.hero {
  position: relative; text-align: center; padding: 96px 0 72px;
  background:
    radial-gradient(1200px 520px at 50% -10%, rgba(63, 111, 87, 0.14), transparent 60%),
    var(--paper);
}
.hero .pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--sage-soft); color: var(--sage-strong);
  border: 1px solid #d5e3d9; padding: 7px 15px; border-radius: 999px;
  font-size: 13px; font-weight: 600; margin-bottom: 26px;
}
.hero h1 { margin: 0 auto; max-width: 16ch; }
.hero p.lead { margin: 22px auto 0; text-align: center; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.hero-note { margin-top: 16px; color: var(--ink-faint); font-size: 14px; }
.hero-mark {
  width: 92px; height: 92px; border-radius: 22px; margin: 0 auto 30px;
  box-shadow: var(--shadow);
}

/* ---------- trust strip ---------- */
.trust { background: var(--ink); color: #e9e6dc; padding: 30px 0; }
.trust .row { display: flex; flex-wrap: wrap; gap: 14px 40px; justify-content: center; align-items: center; }
.trust .item { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #c9c8bd; }
.trust .item b { color: #fff; font-weight: 600; }
.trust .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }

/* ---------- section headers ---------- */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 54px; }
.section-head p { color: var(--ink-soft); margin-top: 14px; font-size: 17px; }

/* ---------- features ---------- */
.grid { display: grid; gap: 20px; }
.features { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card .ic {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--sage-soft); color: var(--sage-strong); margin-bottom: 16px; font-size: 20px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: 15px; }

/* ---------- how it works ---------- */
.steps { grid-template-columns: repeat(3, 1fr); counter-reset: step; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step { padding: 8px 4px; }
.step .n {
  font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--sage);
  border: 1px solid var(--line); border-radius: 999px; width: 34px; height: 34px;
  display: grid; place-items: center; margin-bottom: 16px; font-weight: 600;
}
.step h3 { margin-bottom: 7px; }
.step p { color: var(--ink-soft); font-size: 15px; }

/* ---------- split feature (health) ---------- */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 30px; } }
.split ul { list-style: none; margin-top: 22px; display: grid; gap: 14px; }
.split li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--ink-soft); }
.split li b { color: var(--ink); font-weight: 600; }
.check { color: var(--sage); font-weight: 700; margin-top: 2px; }
.panel {
  background: linear-gradient(160deg, #0d443f, #16181a);
  border-radius: var(--radius); padding: 34px; color: #e9e6dc; box-shadow: var(--shadow);
}
.panel .metric { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,0.09); }
.panel .metric:last-child { border-bottom: 0; }
.panel .metric .k { color: #b6c7bd; font-size: 14px; display: flex; gap: 10px; align-items: center; }
.panel .metric .v { font-family: 'JetBrains Mono', monospace; font-weight: 600; color: #fff; }

/* ---------- privacy band ---------- */
.privacy-band { background: var(--paper-2); }
.privacy-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 900px) { .privacy-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .privacy-grid { grid-template-columns: 1fr; } }
.pcard { text-align: left; }
.pcard .ic { background: #fff; border: 1px solid var(--line); }

/* ---------- pricing ---------- */
.pricing { text-align: center; }
.price-card {
  max-width: 460px; margin: 0 auto; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 40px 34px; box-shadow: var(--shadow); text-align: center;
}
.price-card .tag { color: var(--sage); font-weight: 600; font-size: 14px; letter-spacing: 0.04em; }
.price-card .amount { font-family: 'Fraunces', serif; font-size: 62px; font-weight: 600; margin: 10px 0 2px; }
.price-card .amount span { font-size: 22px; color: var(--ink-faint); }
.price-card .once { color: var(--ink-soft); margin-bottom: 22px; }
.price-list { list-style: none; text-align: left; display: grid; gap: 12px; margin: 24px 0 28px; }
.price-list li { display: flex; gap: 11px; color: var(--ink-soft); font-size: 15px; }
.price-card .btn { width: 100%; justify-content: center; }
.trial-note { color: var(--ink-faint); font-size: 13px; margin-top: 14px; }

/* ---------- faq ---------- */
.faq { max-width: 780px; margin: 0 auto; }
.faq details {
  border-bottom: 1px solid var(--line); padding: 20px 4px;
}
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--sage); font-size: 22px; font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq p { color: var(--ink-soft); margin-top: 12px; font-size: 15px; }

/* ---------- final cta ---------- */
.final { background: var(--ink); color: #ece9df; text-align: center; }
.final h2 { color: #fff; }
.final p { color: #b7b6ab; margin: 16px auto 30px; max-width: 52ch; }

/* ---------- footer ---------- */
footer { background: #101211; color: #b7b6ab; padding: 56px 0 40px; font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 26px; } }
footer .brand { color: #fff; margin-bottom: 12px; }
footer h4 { color: #fff; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; font-family: 'Inter', sans-serif; font-weight: 600; }
footer a { color: #b7b6ab; display: block; margin-bottom: 9px; }
footer a:hover { color: #fff; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,0.08); margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: #82857f; }

/* ---------- legal / doc pages ---------- */
.doc { max-width: 780px; margin: 0 auto; padding: 60px 24px 90px; }
.doc .back { font-size: 14px; color: var(--ink-faint); }
.doc h1 { font-size: clamp(32px, 4vw, 46px); margin: 18px 0 6px; }
.doc .updated { color: var(--ink-faint); font-size: 14px; margin-bottom: 40px; }
.doc h2 { font-size: 24px; margin: 40px 0 12px; }
.doc h3 { font-size: 18px; margin: 26px 0 8px; }
.doc p, .doc li { color: var(--ink-soft); font-size: 16px; margin-bottom: 12px; }
.doc ul, .doc ol { margin: 0 0 16px 22px; }
.doc li { margin-bottom: 8px; }
.doc strong { color: var(--ink); }
.doc .box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px 22px; margin: 22px 0; }
.doc a { text-decoration: underline; }
