/* MoreToMint — pre-launch website. Brand tokens match the app (MoreToMint/wwwroot/css/site.css). */
:root {
  --blue: #2F4EA2;
  --blue-strong: #1F3577;
  --blue-soft: #EEF2FB;
  --mint: #20A76B;
  --mint-strong: #0A6642;
  --mint-soft: #E7F7EF;
  --text: #0F172A;
  --muted: #5B6B82;
  --border: #E2E8F0;
  --bg: #F8FAFC;
  --white: #FFFFFF;
  --amber-bg: #FEF6DC;
  --amber-border: #F5D98B;
  --amber-text: #7A4A05;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 2px 6px rgba(15, 23, 42, 0.05);
  --max: 1160px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}
img, svg { max-width: 100%; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-strong); }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 .5em; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--text); color: var(--white); padding: 8px 14px; border-radius: var(--r-sm);
}
.skip-link:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Pre-launch notice ---------------------------------------------------- */
.prelaunch-bar {
  background: var(--amber-bg);
  border-bottom: 1px solid var(--amber-border);
  color: var(--amber-text);
  font-size: 14px;
  text-align: center;
  padding: 8px 16px;
}
.prelaunch-bar strong { font-weight: 700; }

/* Header -------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; }
.brand img { width: 80px; height: auto; }
.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: 8px 12px; font: inherit; font-weight: 600; color: var(--text); cursor: pointer;
}
.site-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; align-items: center; }
.site-nav a {
  display: block; padding: 8px 12px; border-radius: var(--r-sm);
  color: var(--text); text-decoration: none; font-weight: 500; font-size: 15px;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--blue-soft); color: var(--blue-strong); }
.nav-status {
  margin-left: 8px; padding: 6px 12px; border-radius: 999px;
  background: var(--mint-soft); color: var(--mint-strong); font-size: 13px; font-weight: 700; white-space: nowrap;
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: 12px 24px 18px; }
  .site-nav a { padding: 12px; }
  .nav-status { margin: 8px 0 0; text-align: center; }
  .site-header { position: sticky; }
  .header-inner { position: relative; }
}

/* Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--r-md); font-weight: 600; text-decoration: none;
  border: 1px solid transparent; font-size: 16px; line-height: 1.2;
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-strong); color: var(--white); }
.btn-secondary { background: var(--white); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--blue); color: var(--blue-strong); }
.btn[aria-disabled="true"] {
  background: #EEF1F5; color: #6B7A90; border-color: #E2E8F0; cursor: not-allowed; pointer-events: none;
}

/* Hero ---------------------------------------------------------------- */
.hero {
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(38, 181, 120, 0.16), transparent 60%),
    radial-gradient(800px 420px at -10% 10%, rgba(47, 78, 162, 0.12), transparent 60%),
    var(--bg);
  padding: 72px 0 80px;
  border-bottom: 1px solid var(--border);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--mint-strong); background: var(--mint-soft); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 800; }
.hero h1 .accent { color: var(--mint); }
.hero .lead { font-size: 19px; color: var(--muted); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 18px; }
.hero-note { font-size: 14px; color: var(--muted); }
.hero-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--shadow); padding: 32px;
}
.hero-card img { width: 220px; margin: 0 auto 20px; }
.hero-card dl { margin: 0; display: grid; gap: 14px; }
.hero-card dt { font-size: 13px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.hero-card dd { margin: 2px 0 0; font-weight: 600; }
@media (max-width: 900px) {
  .hero { padding: 48px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* Sections ------------------------------------------------------------ */
.section { padding: 84px 0; }
.section-alt { background: var(--bg); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 38px); font-weight: 800; }
.section-head p { color: var(--muted); font-size: 18px; }
@media (max-width: 640px) { .section { padding: 60px 0; } }

/* Features ------------------------------------------------------------ */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 26px; box-shadow: var(--shadow-soft);
}
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--blue-soft); color: var(--blue); margin-bottom: 16px;
}
.feature:nth-child(even) .feature-icon { background: var(--mint-soft); color: var(--mint-strong); }
.feature-icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 19px; font-weight: 700; }
.feature p { color: var(--muted); margin: 0; }
.feature .tier { display: inline-block; margin-top: 12px; font-size: 12.5px; font-weight: 700; color: var(--blue-strong); background: var(--blue-soft); padding: 3px 10px; border-radius: 999px; }
@media (max-width: 980px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .feature-grid { grid-template-columns: 1fr; } }

.disclaimer {
  max-width: 820px; margin: 36px auto 0; text-align: center; font-size: 14px; color: var(--muted);
}

/* Pricing ------------------------------------------------------------- */
.billing-toggle {
  display: inline-flex; padding: 4px; border-radius: 999px; background: var(--white);
  border: 1px solid var(--border); margin: 0 auto 32px; box-shadow: var(--shadow-soft);
}
.billing-toggle-wrap { text-align: center; }
.billing-toggle button {
  font: inherit; font-weight: 600; font-size: 15px; border: 0; background: none; color: var(--muted);
  padding: 8px 18px; border-radius: 999px; cursor: pointer;
}
.billing-toggle button[aria-pressed="true"] { background: var(--blue); color: var(--white); }
.billing-toggle .save { font-size: 12px; color: var(--mint-strong); margin-left: 4px; }
.billing-toggle button[aria-pressed="true"] .save { color: #CDEBDD; }

.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan {
  position: relative; background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 30px 28px; display: flex; flex-direction: column; box-shadow: var(--shadow-soft);
}
.plan.featured { border: 2px solid var(--blue); box-shadow: var(--shadow); }
.badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--blue); color: var(--white); font-size: 12px; font-weight: 800; letter-spacing: .08em;
  padding: 5px 14px; border-radius: 999px; white-space: nowrap;
}
.plan h3 { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.plan .desc { color: var(--muted); min-height: 3.2em; }
.price { display: flex; align-items: baseline; gap: 6px; margin: 8px 0 2px; }
.price .amount { font-size: 42px; font-weight: 800; letter-spacing: -0.03em; }
.price .per { color: var(--muted); font-weight: 600; }
.price-alt { font-size: 14px; color: var(--muted); min-height: 1.6em; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; gap: 10px; flex: 1; align-content: start; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.plan li::before {
  content: ""; flex: 0 0 18px; height: 18px; margin-top: 3px; border-radius: 50%;
  background: var(--mint-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%230A6642' d='M8.1 13.6 4.6 10l1.3-1.3 2.2 2.2 5.9-5.9 1.4 1.4z'/%3E%3C/svg%3E") center/14px no-repeat;
}
.plan .cta { width: 100%; }
.plan .cta-note { text-align: center; font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.pricing-footnote { text-align: center; color: var(--muted); font-size: 14px; margin-top: 28px; }
@media (max-width: 980px) {
  .price-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; gap: 30px; }
  .plan .desc { min-height: 0; }
}

/* About / contact ----------------------------------------------------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.panel {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 30px; box-shadow: var(--shadow-soft);
}
.panel h3 { font-size: 20px; font-weight: 700; }
.facts { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; }
.facts dt { color: var(--muted); font-weight: 600; font-size: 15px; }
.facts dd { margin: 0; font-weight: 600; }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; gap: 2px 0; } .facts dd { margin-bottom: 10px; } }
.contact-email { font-size: 20px; font-weight: 700; word-break: break-word; }
.contact-panel { max-width: 640px; margin: 0 auto; text-align: center; }
.fine-print { margin: 0; color: var(--muted); font-size: 14px; }
.footer-brand p { margin-top: 14px; }

/* Pending placeholders (must be resolved before publishing — tools/check_site.py) */
.pending {
  background: #FFF3B0; color: #6B4A00; outline: 2px dashed #E0A800; outline-offset: 1px;
  border-radius: 3px; padding: 0 3px; font-weight: 700;
}
.site-footer a.pending { color: #6B4A00; }

/* Legal pages --------------------------------------------------------- */
.legal-hero { background: var(--bg); border-bottom: 1px solid var(--border); padding: 56px 0 36px; }
.legal-hero h1 { font-size: clamp(30px, 4vw, 42px); font-weight: 800; }
.legal-meta { color: var(--muted); font-size: 15px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.legal-layout { display: grid; grid-template-columns: 240px 1fr; gap: 48px; padding: 48px 24px 80px; }
.legal-toc { position: sticky; top: 100px; align-self: start; font-size: 14px; }
.legal-toc h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.legal-toc ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.legal-toc a { color: var(--text); text-decoration: none; }
.legal-toc a:hover { color: var(--blue); text-decoration: underline; }
.legal-body { max-width: 760px; }
.legal-body h2 { font-size: 22px; font-weight: 700; margin-top: 2em; scroll-margin-top: 100px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body li { margin-bottom: 6px; }
.legal-callout {
  background: var(--amber-bg); border: 1px solid var(--amber-border); color: var(--amber-text);
  border-radius: var(--r-md); padding: 16px 18px; margin-bottom: 28px; font-size: 15px;
}
.legal-switch { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.legal-switch a {
  padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--white);
  text-decoration: none; color: var(--text); font-size: 14px; font-weight: 600;
}
.legal-switch a[aria-current="page"] { background: var(--blue); border-color: var(--blue); color: var(--white); }
@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; gap: 24px; padding-top: 32px; }
  .legal-toc { position: static; }
}

/* Footer -------------------------------------------------------------- */
.site-footer { background: #0B1324; color: #C8D2E0; padding: 56px 0 28px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.footer-brand img { width: 84px; background: var(--white); border-radius: 12px; padding: 8px; }
.site-footer h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: #8EA0BA; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #E2E8F0; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-legal { border-top: 1px solid #1E2A42; margin-top: 40px; padding-top: 22px; font-size: 13px; color: #8EA0BA; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* 404 ----------------------------------------------------------------- */
.not-found { text-align: center; padding: 120px 24px; }
.not-found h1 { font-size: 40px; }
