/* MinervaOS marketing site — shared design system.
   Brand-locked to the app: forest green on warm-neutral/graphite, terracotta accent.
   Dark-mode-first, full light mode via prefers-color-scheme. */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* dark is the default design surface */
  --brand: #63B98B;
  --brand-strong: #4FA675;
  --bg: #0E1113;
  --bg-raised: #14171A;
  --card: #16191C;
  --card-hi: #1E2226;
  --ink: #F2F2EF;
  --dim: rgba(242,242,239,.62);
  --faint: rgba(242,242,239,.40);
  --stroke: rgba(242,242,239,.12);
  --accent: #E07863;
  --shadow: 0 8px 30px rgba(0,0,0,.35);
  --radius: 16px;
  --maxw: 1120px;
}

@media (prefers-color-scheme: light) {
  :root {
    --brand: #2F6547;
    --brand-strong: #27543C;
    --bg: #FAFAF8;
    --bg-raised: #F3F3F0;
    --card: #FFFFFF;
    --card-hi: #F0F0EC;
    --ink: #17201B;
    --dim: rgba(23,32,27,.66);
    --faint: rgba(23,32,27,.42);
    --stroke: rgba(23,32,27,.12);
    --accent: #C14F3E;
    --shadow: 0 8px 30px rgba(23,32,27,.08);
  }
}

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

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { padding: 88px 0; }
@media (max-width: 768px) { section { padding: 60px 0; } }

h1, h2, h3 { margin: 0 0 .4em; letter-spacing: -0.02em; line-height: 1.1; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.lead { font-size: 1.2rem; color: var(--dim); }
.eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }
.muted { color: var(--dim); }
.tabnum { font-variant-numeric: tabular-nums; }
.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.maxw-prose { max-width: 640px; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 1rem; cursor: pointer;
  padding: 14px 22px; border-radius: 12px; border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, opacity .15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.btn-primary { background: var(--brand); color: var(--bg); }
.btn-primary:hover { background: var(--brand-strong); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--stroke); }
.btn-ghost:hover { background: var(--card-hi); }
.btn-lg { padding: 16px 28px; font-size: 1.05rem; }

/* ---- nav ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(140%) blur(12px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--stroke);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand .os { color: var(--brand); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--dim); font-weight: 500; font-size: .98rem; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-cta { display: inline-flex; align-items: center; gap: 14px; }
.menu-btn { display: none; background: none; border: 0; color: var(--ink); cursor: pointer; padding: 8px; }
@media (max-width: 860px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
    position: absolute; top: 66px; left: 0; right: 0; padding: 22px 24px;
    background: var(--bg); border-bottom: 1px solid var(--stroke);
  }
  .nav-cta .btn-ghost { display: none; }
}

/* ---- hero ---- */
.hero { padding: 84px 0 64px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; text-align: center; } }
.hero .glow {
  position: absolute; inset: -20% 40% auto -10%; height: 460px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 28%, transparent), transparent);
  filter: blur(30px); z-index: 0; pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
@media (max-width: 900px) { .hero-cta { justify-content: center; } }
.hero-note { margin-top: 14px; font-size: .9rem; color: var(--faint); }

/* ---- device frame ---- */
.device {
  width: 280px; max-width: 78vw; aspect-ratio: 9 / 19.3; margin: 0 auto;
  border-radius: 40px; background: var(--card); border: 1px solid var(--stroke);
  box-shadow: var(--shadow); padding: 12px; position: relative;
}
.device-screen {
  width: 100%; height: 100%; border-radius: 30px; overflow: hidden;
  background: linear-gradient(160deg, var(--card-hi), var(--card));
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--faint); font-size: .85rem; padding: 0;
}
.device-screen img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---- trust strip ---- */
.trust { border-top: 1px solid var(--stroke); border-bottom: 1px solid var(--stroke); background: var(--bg-raised); }
.trust .wrap { padding-top: 26px; padding-bottom: 26px; }
.trust-row { display: flex; align-items: center; justify-content: center; gap: 34px 44px; flex-wrap: wrap; }
.trust-label { width: 100%; text-align: center; color: var(--faint); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.trust-row span { color: var(--dim); font-weight: 600; font-size: 1.02rem; }

/* ---- cards / grids ---- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }
.card {
  background: var(--card); border: 1px solid var(--stroke); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.card h3 { margin-top: 4px; }
.card p { color: var(--dim); margin-bottom: 0; }
.icon-tile {
  width: 44px; height: 44px; border-radius: 12px; display: inline-flex;
  align-items: center; justify-content: center; background: var(--card-hi); color: var(--brand); margin-bottom: 16px;
}
.icon-tile svg { width: 22px; height: 22px; }

.section-head { max-width: 620px; margin: 0 auto 44px; text-align: center; }
.section-head p { color: var(--dim); font-size: 1.1rem; }

/* ---- feature rows ---- */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-bottom: 40px; }
.feature-row:nth-child(even) .feature-media { order: -1; }
@media (max-width: 900px) { .feature-row { grid-template-columns: 1fr; gap: 24px; } .feature-row:nth-child(even) .feature-media { order: 0; } }
.feature-media {
  border-radius: var(--radius); border: 1px solid var(--stroke); background: var(--card-hi);
  min-height: 240px; display: flex; align-items: center; justify-content: center; color: var(--faint); padding: 24px; text-align: center;
}
.feature-media img { max-height: 480px; width: auto; max-width: 100%; border-radius: 26px; display: block; box-shadow: var(--shadow); border: 1px solid var(--stroke); }
/* when a feature panel holds a real screenshot, drop the grey box — let the phone float */
.feature-media:has(img) { background: none; border: 0; padding: 0; min-height: 0; }
.feature-copy h3 { font-size: 1.5rem; letter-spacing: -0.02em; }
.feature-copy p { color: var(--dim); }

/* ---- privacy band ---- */
.band { background: var(--bg-raised); border-top: 1px solid var(--stroke); border-bottom: 1px solid var(--stroke); }
.pill-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px 26px; margin-top: 22px; }
@media (max-width: 700px){ .pill-list { grid-template-columns: 1fr; } }
.pill { display: flex; gap: 12px; align-items: flex-start; }
.pill svg { flex: 0 0 auto; width: 22px; height: 22px; color: var(--brand); margin-top: 2px; }
.pill span { color: var(--dim); }

/* ---- steps ---- */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; counter-reset: step; }
@media (max-width: 900px){ .steps { grid-template-columns: 1fr; } }
.step .num { width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: var(--bg); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; }

/* ---- pricing ---- */
.price-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 22px; max-width: 720px; margin: 0 auto; }
@media (max-width: 700px){ .price-grid { grid-template-columns: 1fr; } }
.price-card { position: relative; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease; }
.price-card:hover { border-color: color-mix(in srgb, var(--brand) 55%, var(--stroke)); }
.price-card.selected { border-color: var(--brand); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 50%, transparent), var(--shadow); }
.price-card:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.badge { position: absolute; top: -12px; right: 20px; background: var(--brand); color: var(--bg); font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.price { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; }
.price small { font-size: 1rem; font-weight: 500; color: var(--dim); }
.check-list { list-style: none; padding: 0; margin: 18px 0 0; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; color: var(--dim); }
.check-list svg { flex: 0 0 auto; width: 18px; height: 18px; color: var(--brand); margin-top: 4px; }

/* ---- faq ---- */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border: 1px solid var(--stroke); border-radius: 12px; padding: 4px 18px; margin-bottom: 12px; background: var(--card); }
.faq summary { cursor: pointer; font-weight: 600; padding: 16px 0; 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(--brand); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: '\2013'; }
.faq details p { color: var(--dim); padding-bottom: 16px; margin: 0; }

/* ---- CTA band ---- */
.cta-final { text-align: center; }
.cta-final .card { max-width: 720px; margin: 0 auto; padding: 48px 28px; background: var(--card); }

/* ---- disclaimer / footer ---- */
.disclaimer { font-size: .85rem; color: var(--faint); max-width: 720px; margin: 22px auto 0; text-align: center; }
footer.site {
  border-top: 1px solid var(--stroke); background: var(--bg-raised); padding: 48px 0 36px; margin-top: 0;
}
.foot-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
.foot-links { display: flex; gap: 26px; flex-wrap: wrap; }
.foot-links a { color: var(--dim); font-size: .95rem; }
.foot-links a:hover { color: var(--ink); text-decoration: none; }
.foot-bottom { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--stroke); display: flex; flex-wrap: wrap; gap: 12px 20px; justify-content: space-between; align-items: center; color: var(--faint); font-size: .85rem; }

/* ---- misc pages ---- */
.page-hero { padding: 72px 0 24px; text-align: center; }
.page-hero p { color: var(--dim); font-size: 1.15rem; max-width: 640px; margin-inline: auto; }
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin-top: 1.6em; }
.prose p, .prose li { color: var(--dim); }
