/* S&W Milestones Co · company site · Deep Teal system (the app's v3 family; website stays in the blue-green family only, no warm accent) */

:root {
  --paper: #F5F4EF;
  --ink: #1E3138;
  --sage: #2F5C63;
  --apricot-text: #264C52;   /* accent: deeper teal (Emily: website stays in the green/teal family only) */
  --apricot-display: #2F5C63; /* display accent: teal */
  --cream: #E2ECEC;
  --tan: #CFD9D9;
  --card: #FFFFFF;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #14232A;   /* Lamplight */
    --ink: #E6EDEC;
    --sage: #7FB0B5;
    --apricot-text: #9CC5C9;
    --apricot-display: #7FB0B5;
    --cream: #20343B;
    --tan: #2A3F46;
    --card: #1B2C33;
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Schibsted Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
}

a { color: var(--sage); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* Header */
header {
  border-bottom: 1px solid var(--tan);
  background: var(--paper);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0; flex-wrap: wrap; gap: 12px;
}
.wordmark {
  font-weight: 800; font-size: 17px; letter-spacing: 0.02em; color: var(--ink);
}
.wordmark span { color: var(--sage); }
nav.links { display: flex; gap: 22px; flex-wrap: wrap; }
nav.links a { font-weight: 500; font-size: 15px; color: var(--ink); }
nav.links a.active { color: var(--sage); }

/* Eyebrow */
.eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--sage);
  border-bottom: 1px solid var(--sage);
  padding-bottom: 6px; margin-bottom: 18px;
}

/* Hero */
.hero { padding: 84px 0 64px; }
.hero h1 {
  font-size: clamp(34px, 5.5vw, 56px);
  font-weight: 800; line-height: 1.12; letter-spacing: -0.015em;
  max-width: 18ch;
}
.hero h1 em { font-style: normal; color: var(--apricot-display); }
.hero p.lede {
  margin-top: 20px; font-size: 20px; max-width: 54ch; color: var(--ink);
}
.hero p.lede strong { color: var(--apricot-text); font-style: italic; font-weight: 500; }

/* Buttons */
.btn {
  display: inline-block; padding: 14px 26px; border-radius: 10px;
  font-weight: 700; font-size: 16px; border: 1.5px solid transparent;
}
.btn-primary { background: var(--sage); color: var(--paper); }
.btn-primary:hover { text-decoration: none; filter: brightness(1.07); }
.btn-ghost { border-color: var(--sage); color: var(--sage); }
.btn-ghost:hover { text-decoration: none; background: var(--cream); }
.btn-row { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

/* Sections */
section { padding: 56px 0; }
section.alt { background: var(--cream); }
h2.section-title {
  font-size: clamp(26px, 3.6vw, 36px); font-weight: 800;
  line-height: 1.18; letter-spacing: -0.01em; max-width: 26ch;
}
.section-sub { margin-top: 12px; max-width: 58ch; font-size: 18px; }

/* Cards */
.grid { display: grid; gap: 20px; margin-top: 36px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: var(--card); border: 1px solid var(--tan); border-radius: 14px;
  padding: 28px;
}
.card h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.card p { font-size: 16px; }
.card .k { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--apricot-text); margin-bottom: 10px; }
.card ul { margin: 12px 0 0 18px; font-size: 15.5px; }
.card ul li { margin-bottom: 6px; }

/* Product feature card */
.product-card { display: flex; flex-direction: column; }
.product-card .spacer { flex: 1; }
.product-card .cta { margin-top: 18px; font-weight: 700; }

.badge {
  display: inline-block; font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--cream); border: 1px solid var(--tan);
  color: var(--ink); border-radius: 100px; padding: 5px 12px;
}

/* Stat / pillar strip */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; margin-top: 36px; }
.pillar { border-top: 2px solid var(--sage); padding-top: 14px; }
.pillar .num { font-size: 13px; font-weight: 700; color: var(--apricot-text); letter-spacing: 0.1em; }
.pillar h4 { font-size: 17px; font-weight: 700; margin-top: 4px; }
.pillar p { font-size: 15px; margin-top: 4px; }

/* Prose pages (legal, support) */
.prose { padding: 56px 0 80px; }
.prose h1 { font-size: clamp(30px, 4.5vw, 42px); font-weight: 800; letter-spacing: -0.01em; margin-bottom: 6px; }
.prose .updated { font-size: 15px; color: var(--apricot-text); margin-bottom: 34px; }
.prose h2 { font-size: 24px; font-weight: 700; margin: 38px 0 12px; }
.prose h3 { font-size: 19px; font-weight: 700; margin: 26px 0 10px; }
.prose p { margin-bottom: 14px; }
.prose ul, .prose ol { margin: 0 0 16px 22px; }
.prose li { margin-bottom: 8px; }
.prose table { width: 100%; border-collapse: collapse; margin: 18px 0 24px; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border: 1px solid var(--tan); vertical-align: top; }
.prose th { background: var(--cream); font-weight: 700; }
.prose .callout {
  background: var(--cream); border: 1px solid var(--tan); border-left: 3px solid var(--sage);
  border-radius: 10px; padding: 18px 20px; margin: 22px 0;
}
.table-scroll { overflow-x: auto; }

/* Footer */
footer { border-top: 1px solid var(--tan); padding: 44px 0 60px; margin-top: 40px; }
.foot { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: 14.5px; }
.foot .col h5 { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sage); margin-bottom: 10px; }
.foot .col a { display: block; color: var(--ink); margin-bottom: 6px; }
.foot .legal { margin-top: 28px; font-size: 13.5px; color: var(--ink); opacity: 0.75; }

@media (max-width: 640px) {
  .hero { padding: 56px 0 44px; }
  section { padding: 44px 0; }
}
