/* ClearOS — shared design system
   Font pairing: Fraunces (display serif) + Inter (sans body)
   Palette: warm off-white background, deep navy ink, ember accent
*/

:root {
  --bg: #f7f3ec;
  --bg-alt: #efe9dd;
  --ink: #0b1d33;
  --ink-soft: #2a3a55;
  --muted: #5a6478;
  --line: #d9d2c2;
  --accent: #b3431c;       /* ember */
  --accent-soft: #e8d3c4;
  --gold: #b08a3e;
  --green: #2e6b4a;
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(11,29,51,.06), 0 2px 8px rgba(11,29,51,.04);
  --shadow-md: 0 4px 14px rgba(11,29,51,.08), 0 12px 40px rgba(11,29,51,.06);
  --maxw: 1200px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-weight: 500;
  font-variation-settings: "opsz" 36, "SOFT" 30;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
  line-height: 1.15;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 400; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; font-family: 'Inter', sans-serif; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--ink-soft); }
p { margin: 0 0 1em; color: var(--ink-soft); }
a { color: var(--ink); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }

img { max-width: 100%; display: block; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,243,236,.85);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -.01em;
  display: inline-flex; align-items: center; gap: 8px;
}
.brand-dot { width: 10px; height: 10px; border-radius: 3px; background: var(--accent); display: inline-block; }
.nav-links { display: flex; gap: 22px; flex-wrap: wrap; }
.nav-links a { font-size: .95rem; color: var(--ink-soft); }
.nav-links a.active, .nav-links a:hover { color: var(--ink); }
.nav-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.4rem; cursor: pointer; }

@media (max-width: 920px) {
  .nav-links { display: none; width: 100%; flex-direction: column; gap: 12px; padding: 12px 0; }
  .nav-inner.open .nav-links { display: flex; }
  .nav-toggle { display: inline-block; margin-left: auto; }
  .nav-cta { margin-left: 0; }
  .nav-inner { flex-wrap: wrap; }
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 500;
  font-size: .95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s, background .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--accent); color: var(--white); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: var(--ink); }
.btn-sm { padding: 8px 14px; font-size: .85rem; }

/* ---------- SECTION ---------- */
section { padding: 96px 0; border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: 0; }
.eyebrow {
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .75rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 14px;
  display: inline-block;
}
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head p { font-size: 1.1rem; }

/* ---------- HERO ---------- */
.hero {
  padding: 120px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: -20% -10% auto auto;
  width: 600px; height: 600px;
  background: radial-gradient(circle at 40% 40%, rgba(179,67,28,.18), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 60px;
  align-items: center;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .85rem; padding: 6px 12px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--white); color: var(--ink-soft);
  margin-bottom: 22px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-meta { display: flex; gap: 28px; margin-top: 36px; flex-wrap: wrap; color: var(--muted); font-size: .9rem; }
.hero-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-md);
}
.hero-card .stat { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.hero-card .stat:last-child { border-bottom: 0; }
.hero-card .stat b { font-family: 'Fraunces', serif; font-size: 1.35rem; font-weight: 500; }
@media (max-width: 820px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding: 80px 0 64px; } }

/* ---------- GRIDS ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- CARD ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card .icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--bg-alt); display: grid; place-items: center;
  font-family: 'Fraunces', serif; font-weight: 600; color: var(--accent);
  margin-bottom: 16px;
}
.card h3 { margin-bottom: .4em; }
.card p { font-size: .95rem; margin: 0; }

/* ---------- LIST CHIPS ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  font-size: .85rem;
  color: var(--ink-soft);
}

/* ---------- LOGO STRIP ---------- */
.logos {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 32px;
  align-items: center;
  padding: 28px 0;
}
.logo-pill {
  font-family: 'Fraunces', serif;
  font-size: 1.05rem;
  color: var(--ink-soft);
  text-align: center;
  border: 1px dashed var(--line);
  padding: 14px 8px;
  border-radius: var(--radius-sm);
  background: var(--white);
}
@media (max-width: 800px) { .logos { grid-template-columns: repeat(3, 1fr); } }

/* ---------- STATS ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat-block .num { font-family: 'Fraunces', serif; font-size: 2.8rem; line-height: 1; color: var(--ink); }
.stat-block .lbl { color: var(--muted); font-size: .9rem; margin-top: 6px; }
@media (max-width: 800px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- TIMELINE / STEPS ---------- */
.steps { display: grid; gap: 18px; counter-reset: stp; }
.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.step::before {
  counter-increment: stp;
  content: counter(stp, decimal-leading-zero);
  font-family: 'Fraunces', serif;
  font-size: 1.6rem;
  color: var(--accent);
}
.step h3 { margin-bottom: 4px; }
.step p { margin: 0; }

/* ---------- TABLE ---------- */
table.tbl { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tbl th, .tbl td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); font-size: .95rem; }
.tbl th { background: var(--bg-alt); font-weight: 600; color: var(--ink); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .yes { color: var(--green); font-weight: 600; }
.tbl .no { color: var(--muted); }

/* ---------- QUOTE ---------- */
.quote {
  background: var(--white);
  border-left: 4px solid var(--accent);
  padding: 28px 32px;
  border-radius: var(--radius);
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  color: var(--ink);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
}
.quote cite { display: block; margin-top: 16px; font-family: 'Inter', sans-serif; font-size: .9rem; color: var(--muted); font-style: normal; }

/* ---------- FAQ ---------- */
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 12px;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: 'Fraunces', serif; font-size: 1.5rem; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq p { margin-top: 12px; }

/* ---------- CTA ---------- */
.cta-band {
  background: var(--ink);
  color: var(--bg);
  border-radius: 24px;
  padding: 60px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px; align-items: center;
}
.cta-band h2 { color: var(--bg); }
.cta-band p { color: rgba(247,243,236,.75); }
.cta-band .btn-primary { background: var(--accent); color: var(--white); }
.cta-band .btn-primary:hover { background: var(--white); color: var(--ink); }
.cta-band .btn-ghost { color: var(--bg); border-color: rgba(247,243,236,.4); }
.cta-band .btn-ghost:hover { background: var(--bg); color: var(--ink); }
@media (max-width: 800px) { .cta-band { grid-template-columns: 1fr; padding: 40px 28px; } }

/* ---------- FORM ---------- */
.form { display: grid; gap: 16px; max-width: 640px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form label { font-size: .85rem; color: var(--ink-soft); font-weight: 500; }
.form input, .form select, .form textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  margin-top: 6px;
}
.form textarea { min-height: 130px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

/* ---------- FOOTER ---------- */
footer.foot {
  background: var(--ink);
  color: var(--bg);
  padding: 80px 0 40px;
  border-top: 1px solid var(--line);
}
.foot a { color: rgba(247,243,236,.75); }
.foot a:hover { color: var(--white); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 40px; }
.foot h5 { color: var(--white); font-family: 'Inter', sans-serif; font-size: .85rem; text-transform: uppercase; letter-spacing: .15em; margin-bottom: 16px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .9rem; }
.foot .brand { color: var(--white); }
.foot p { color: rgba(247,243,236,.65); font-size: .9rem; }
.foot-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(247,243,236,.15); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: rgba(247,243,236,.6); }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- BADGE ---------- */
.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.badge-green { background: #e0efe5; color: var(--green); }
.badge-gold { background: #f3e8d0; color: var(--gold); }
.badge-ember { background: var(--accent-soft); color: var(--accent); }

/* ---------- PROSE ---------- */
.prose p { font-size: 1.05rem; }
.prose ul { color: var(--ink-soft); }
.prose ul li { margin-bottom: 8px; }

/* ---------- REVEAL ON SCROLL ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- PRICING ---------- */
.price-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.price-card.feature { border-color: var(--accent); box-shadow: var(--shadow-md); position: relative; }
.price-card .price { font-family: 'Fraunces', serif; font-size: 2.2rem; }
.price-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .95rem; color: var(--ink-soft); }
.price-card ul li::before { content: "✓"; color: var(--green); margin-right: 10px; font-weight: 700; }

/* ---------- DIVIDER ---------- */
.hr-soft { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- HEADER FOR INTERIOR PAGES ---------- */
.page-head { padding: 100px 0 64px; }
.page-head h1 { max-width: 18ch; }
.page-head .lede { max-width: 60ch; font-size: 1.2rem; color: var(--ink-soft); }

/* ---------- TWO-COLUMN PROSE ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }
