/* ==========================================================================
   ClientSystemPro.com — shared site stylesheet
   Aesthetic: "Operational Clarity" — refined editorial, enterprise credible
   ==========================================================================

   Contents
   1. Tokens (custom properties)
   2. Reset & base
   3. Typography
   4. Layout primitives (wrap, grid, stack)
   5. Nav & footer
   6. Buttons
   7. Hero
   8. Sections (features, steps, metrics, pricing, testimonial, faq, cta)
   9. Utility pages (support, KB, changelog, 404)
   10. Forms
   11. Responsive refinements
   12. Animations
============================================================================= */

/* ------- 1. Tokens ------- */
:root {
  --blue-900: #1F4E79;
  --blue-700: #255d90;
  --blue-500: #2E75B6;
  --blue-300: #7FAFD8;
  --blue-100: #D5E8F0;
  --blue-50:  #EDF5FA;

  --cream: #FAF7F2;
  --cream-deep: #F3EEE3;
  --ink: #0F1B2C;
  --ink-soft: #22334A;
  --muted: #5B6C84;
  --rule: #E8E4DA;
  --rule-strong: #D6CFBE;

  --accent: #C5703B;        /* warm contrast for eyebrows, pullquotes */
  --good: #2E7D32;
  --warn: #E65100;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;

  --shadow-sm: 0 1px 2px rgba(15,27,44,0.04), 0 1px 3px rgba(15,27,44,0.05);
  --shadow-md: 0 8px 24px -8px rgba(15,27,44,0.12), 0 2px 6px rgba(15,27,44,0.05);
  --shadow-lg: 0 24px 60px -20px rgba(31,78,121,0.28), 0 8px 24px -10px rgba(15,27,44,0.1);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --max-wide: 1200px;
  --max-text: 680px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ------- 2. Reset & base ------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: #FFFFFF;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-500); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--blue-900); }
::selection { background: var(--blue-900); color: #fff; }

/* ------- 3. Typography ------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  line-height: 1.1;
  margin: 0;
}
h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); font-weight: 450; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.75rem); font-weight: 450; letter-spacing: -0.015em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 500; }
h4 { font-size: 1.05rem; font-weight: 600; font-family: var(--font-body); letter-spacing: 0.01em; }

p { margin: 0 0 1em; }
p.lead { font-size: 1.25rem; color: var(--ink-soft); line-height: 1.55; max-width: 58ch; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 1px;
  background: var(--accent);
  margin-right: 10px;
  transform: translateY(-4px);
}

.display-num {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 144;
  font-feature-settings: "ss01", "ss02";
}

blockquote {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  line-height: 1.35;
  color: var(--ink);
  margin: 0;
  padding: 0;
  font-style: italic;
}

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 64px 0;
}

code, .mono {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: var(--cream);
  padding: 2px 6px;
  border-radius: 3px;
  color: var(--ink-soft);
}

/* ------- 4. Layout primitives ------- */
.wrap { width: 100%; max-width: var(--max-wide); margin: 0 auto; padding: 0 28px; }
.wrap-text { max-width: var(--max-text); margin: 0 auto; padding: 0 28px; }
.stack > * + * { margin-top: 1em; }
.stack-lg > * + * { margin-top: 1.6em; }

section { padding: 92px 0; }
section.tight { padding: 64px 0; }
section.cream { background: var(--cream); }
section.ink {
  background: linear-gradient(160deg, #0C1828 0%, #13263F 60%, #1F4E79 120%);
  color: #EAF1F7;
}
section.ink h1, section.ink h2, section.ink h3 { color: #F8FAFC; }
section.ink p, section.ink li { color: #B6C6D7; }
section.ink .eyebrow { color: #E7A573; }

.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ------- 5. Nav & footer ------- */
header.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.88);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  gap: 48px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 500;
  color: var(--ink);
  font-variation-settings: "opsz" 144;
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--blue-900); }
.brand-mark {
  width: 32px;
  height: 32px;
  background: var(--blue-900);
  border-radius: 7px;
  position: relative;
  flex-shrink: 0;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,0.18), 0 1px 2px rgba(31,78,121,0.25);
}
.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  background: #fff;
}
.brand-mark::before {
  top: 9px; left: 9px; right: 9px;
  height: 2px;
}
.brand-mark::after {
  top: 15px; left: 9px; right: 13px;
  height: 2px;
  opacity: 0.72;
}
.brand-mark .dot {
  position: absolute;
  bottom: 8px; left: 9px;
  width: 4px; height: 4px;
  background: var(--blue-100);
  border-radius: 50%;
}
nav.primary {
  display: flex;
  gap: 34px;
  margin-right: auto;
  font-size: 0.95rem;
}
nav.primary a {
  color: var(--ink-soft);
  font-weight: 450;
  position: relative;
}
nav.primary a:hover { color: var(--blue-900); }
nav.primary a.active { color: var(--blue-900); }
nav.primary a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--blue-900);
}
.nav-cta { display: flex; gap: 12px; align-items: center; }

.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--rule);
  border-radius: 6px;
  width: 42px; height: 42px;
  cursor: pointer;
  padding: 0;
}
.mobile-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  margin: 4px auto;
  transition: transform .25s var(--ease);
}

footer.site-footer {
  background: #0B1220;
  color: #9FB1C8;
  padding: 80px 0 48px;
  font-size: 0.93rem;
}
footer.site-footer h4 {
  color: #F8FAFC;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  font-weight: 500;
  margin-bottom: 16px;
}
footer.site-footer .grid { gap: 48px; }
footer.site-footer a { color: #CBD6E5; }
footer.site-footer a:hover { color: #fff; }
footer.site-footer ul { list-style: none; padding: 0; margin: 0; }
footer.site-footer li { margin-bottom: 10px; }
.footer-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  color: #6E8098;
  font-size: 0.85rem;
}
.footer-bottom .legal { display: flex; gap: 22px; }

/* ------- 6. Buttons ------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.97rem;
  font-weight: 500;
  padding: 13px 22px;
  border-radius: 7px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .2s var(--ease);
  text-decoration: none;
  letter-spacing: 0.005em;
}
.btn-primary {
  background: var(--blue-900);
  color: #fff;
  border-color: var(--blue-900);
  box-shadow: 0 1px 2px rgba(31,78,121,0.3), inset 0 -2px 0 rgba(0,0,0,0.15);
}
.btn-primary:hover {
  background: var(--blue-700);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px -4px rgba(31,78,121,0.4), inset 0 -2px 0 rgba(0,0,0,0.15);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-link {
  background: transparent;
  color: var(--blue-900);
  padding: 13px 0;
  border: 0;
}
.btn-link::after { content: " \2192"; transition: transform .2s var(--ease); display: inline-block; }
.btn-link:hover::after { transform: translateX(3px); }

.btn-sm { padding: 9px 16px; font-size: 0.88rem; }
.btn-lg { padding: 17px 28px; font-size: 1.04rem; }

/* ------- 7. Hero ------- */
.hero {
  padding: 120px 0 110px;
  position: relative;
  overflow: hidden;
  background: #fff;
}
.hero::before {
  content: "";
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(213,232,240,0.55) 0%, rgba(213,232,240,0) 65%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(31,78,121,0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 72px;
  align-items: center;
}
.hero h1 {
  max-width: 14ch;
}
.hero h1 em {
  font-style: italic;
  color: var(--blue-900);
  font-weight: 400;
}
.hero p.lead {
  margin-top: 28px;
  color: var(--ink-soft);
}
.hero-cta {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.hero-trust {
  margin-top: 42px;
  display: flex;
  gap: 14px;
  align-items: center;
  color: var(--muted);
  font-size: 0.85rem;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
.hero-trust::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--rule-strong);
}

/* Operations panel mock in the hero */
.ops-panel {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 28px 28px 24px;
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: rotate(0.4deg);
}
.ops-panel::before {
  content: "";
  position: absolute;
  top: -12px; left: 32px;
  width: 52px; height: 52px;
  background: var(--blue-100);
  border: 1px solid var(--blue-300);
  border-radius: 10px;
  transform: rotate(-8deg);
  z-index: -1;
}
.ops-panel h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ops-panel h4::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--good);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(46,125,50,0.16);
  animation: pulse 2.2s ease-out infinite;
}
.ops-row {
  display: grid;
  grid-template-columns: 1fr auto;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.9rem;
  gap: 12px;
}
.ops-row:last-child { border-bottom: 0; }
.ops-row .label { color: var(--ink-soft); }
.ops-row .value {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--ink);
}
.ops-row .value.up { color: var(--good); }
.ops-row .value.alert { color: var(--warn); }

/* ------- 8. Sections ------- */
.section-head {
  max-width: 720px;
  margin: 0 auto 64px;
  text-align: center;
}
.section-head p.lead { margin: 22px auto 0; }

/* Features grid */
.feature {
  padding: 36px 32px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: #fff;
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
  position: relative;
}
.feature:hover {
  transform: translateY(-3px);
  border-color: var(--blue-300);
  box-shadow: var(--shadow-md);
}
.feature .icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--blue-50);
  color: var(--blue-900);
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 600;
  border: 1px solid var(--blue-100);
}
.feature h3 { font-family: var(--font-body); font-size: 1.12rem; font-weight: 600; margin-bottom: 10px; }
.feature p { color: var(--muted); font-size: 0.96rem; margin: 0; }

/* Steps section */
.step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 28px;
  align-items: start;
  padding: 32px 0;
  border-top: 1px solid var(--rule);
}
.step:last-child { border-bottom: 1px solid var(--rule); }
.step-num {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 144;
  font-size: 3rem;
  font-weight: 300;
  color: var(--blue-900);
  line-height: 1;
}
.step-body h3 { margin-bottom: 8px; }
.step-body p { color: var(--muted); max-width: 56ch; margin: 0; }

/* Metrics band */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.metric {
  padding: 48px 32px;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.metric:last-child { border-right: 0; }
.metric .num {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 144;
  font-size: 3.5rem;
  font-weight: 300;
  color: #F8FAFC;
  letter-spacing: -0.02em;
  line-height: 1;
}
.metric .num small {
  font-size: 1.1rem;
  color: #E7A573;
  font-family: var(--font-mono);
  font-weight: 500;
  margin-left: 4px;
}
.metric .label {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #9FB1C8;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--rule);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.tier {
  padding: 44px 36px;
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
}
.tier:last-child { border-right: 0; }
.tier.featured {
  background: var(--cream);
  position: relative;
}
.tier.featured::before {
  content: "MOST POPULAR";
  position: absolute;
  top: 16px; right: 16px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  padding: 4px 10px;
  background: var(--blue-900);
  color: #fff;
  border-radius: 3px;
}
.tier-name {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.tier-price {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 144;
  font-size: 3.2rem;
  line-height: 1;
  font-weight: 350;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.tier-price small {
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--muted);
  margin-left: 4px;
}
.tier-tagline { color: var(--muted); margin: 8px 0 28px; font-size: 0.95rem; }
.tier-features {
  list-style: none;
  padding: 24px 0 0;
  margin: 0 0 32px;
  border-top: 1px solid var(--rule);
  font-size: 0.92rem;
}
.tier-features li {
  padding: 9px 0 9px 26px;
  position: relative;
  color: var(--ink-soft);
}
.tier-features li::before {
  content: "";
  position: absolute;
  left: 0; top: 16px;
  width: 14px; height: 7px;
  border-left: 1.5px solid var(--blue-500);
  border-bottom: 1.5px solid var(--blue-500);
  transform: rotate(-45deg);
}
.tier-features li.muted { color: var(--muted); }
.tier-features li.muted::before {
  border-color: var(--rule-strong);
}
.tier .btn { margin-top: auto; justify-content: center; }

/* Testimonial / pullquote */
.pullquote-block {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.pullquote-block .author {
  margin-top: 28px;
  font-size: 0.92rem;
  color: var(--muted);
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
}

/* FAQ */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-list details {
  border-bottom: 1px solid var(--rule);
  padding: 24px 0;
  transition: padding .2s var(--ease);
}
.faq-list summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: var(--font-display);
  font-variation-settings: "opsz" 144;
  font-size: 1.25rem;
  font-weight: 450;
  color: var(--ink);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 1.4rem;
  color: var(--blue-500);
  font-weight: 300;
  transition: transform .25s var(--ease);
}
.faq-list details[open] summary::after { content: "\2013"; }
.faq-list details p {
  margin: 16px 0 0;
  padding-left: 36px;
  color: var(--muted);
  max-width: 64ch;
}

/* CTA band */
.cta-band {
  background: var(--blue-900);
  background-image:
    radial-gradient(circle at 80% 20%, rgba(46,117,182,0.4) 0%, transparent 40%),
    linear-gradient(135deg, #1F4E79 0%, #13263F 100%);
  color: #F8FAFC;
  padding: 92px 0;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #B6C6D7; max-width: 560px; margin: 20px auto 36px; font-size: 1.1rem; }
.cta-band .btn-primary {
  background: #fff;
  color: var(--blue-900);
  border-color: #fff;
}
.cta-band .btn-primary:hover {
  background: var(--cream);
  color: var(--blue-900);
}
.cta-band .btn-ghost {
  border-color: rgba(255,255,255,0.3);
  color: #fff;
}
.cta-band .btn-ghost:hover {
  border-color: #fff;
  color: #fff;
}

/* Comparison table (pricing page) */
.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
  margin-top: 48px;
}
.compare th, .compare td {
  padding: 16px 20px;
  text-align: center;
  border-bottom: 1px solid var(--rule);
}
.compare th:first-child, .compare td:first-child {
  text-align: left;
  color: var(--ink-soft);
  font-weight: 500;
}
.compare thead th {
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  background: var(--cream);
  font-weight: 500;
}
.compare td.check::after {
  content: "\2713";
  color: var(--blue-500);
  font-weight: 600;
}
.compare td.dash::after {
  content: "\2014";
  color: var(--rule-strong);
}
.compare tr.group-head td {
  background: var(--cream);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  text-align: left;
  padding: 14px 20px;
}

/* ------- 9. Utility pages ------- */
.page-head {
  padding: 96px 0 56px;
  border-bottom: 1px solid var(--rule);
  background: #fff;
}
.page-head .eyebrow { margin-bottom: 14px; }
.page-head h1 { max-width: 20ch; }
.page-head p.lead { margin-top: 22px; }

.empty-state {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding: 96px 0;
}
.empty-state h2 { margin-bottom: 18px; }
.empty-state p { color: var(--muted); margin-bottom: 32px; font-size: 1.05rem; }

.changelog-entry {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  padding: 48px 0;
  border-top: 1px solid var(--rule);
}
.changelog-entry:last-child { border-bottom: 1px solid var(--rule); }
.changelog-date {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.changelog-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 3px 10px;
  border-radius: 3px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 10px;
}
.tag-launch { background: var(--blue-900); color: #fff; }
.tag-feature { background: var(--blue-100); color: var(--blue-900); }
.tag-fix { background: var(--cream-deep); color: var(--accent); }

.kb-category {
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 28px 28px 20px;
  background: #fff;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.kb-category:hover {
  border-color: var(--blue-300);
  transform: translateY(-2px);
}
.kb-category .count {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.kb-category h3 { margin-bottom: 6px; }
.kb-category p { font-size: 0.93rem; color: var(--muted); margin: 0; }

/* ------- 10. Forms ------- */
.form { max-width: 560px; }
.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 8px;
  font-family: var(--font-body);
  letter-spacing: 0.02em;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  font: inherit;
  font-size: 0.98rem;
  padding: 13px 16px;
  border: 1px solid var(--rule-strong);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  font-family: var(--font-body);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: 0;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(46,117,182,0.15);
}

/* ------- 11. Responsive ------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; }
  .tier { border-right: 0; border-bottom: 1px solid var(--rule); }
  .tier:last-child { border-bottom: 0; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(1), .metric:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,0.1); }
  .changelog-entry { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 720px) {
  nav.primary { display: none; }
  .mobile-toggle { display: block; }
  nav.primary.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0; right: 0;
    background: #fff;
    padding: 24px 28px;
    gap: 18px;
    border-bottom: 1px solid var(--rule);
    box-shadow: var(--shadow-md);
  }
  section { padding: 68px 0; }
  .hero { padding: 80px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr; }
  .metric { border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .metric:last-child { border-bottom: 0; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  h1 { font-size: 2.4rem; }
  .tier-price { font-size: 2.6rem; }
}

/* ------- 12. Animations ------- */
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(46,125,50,0.5); }
  50% { box-shadow: 0 0 0 6px rgba(46,125,50,0); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal {
  animation: rise .7s var(--ease-out) both;
}
.reveal.d1 { animation-delay: .1s; }
.reveal.d2 { animation-delay: .2s; }
.reveal.d3 { animation-delay: .3s; }
.reveal.d4 { animation-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ------- 13. Legal prose (privacy, terms) ------- */
.legal-prose { font-size: 1rem; line-height: 1.72; color: var(--ink-soft); }
.legal-prose .effective {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--muted);
  padding: 14px 18px;
  background: var(--cream);
  border-left: 3px solid var(--blue-500);
  border-radius: 0 6px 6px 0;
  margin-bottom: 40px;
}
.legal-prose h2 {
  font-size: 1.5rem;
  margin-top: 56px;
  margin-bottom: 16px;
  color: var(--blue-900);
  scroll-margin-top: 100px;
}
.legal-prose h3 {
  font-size: 1.12rem;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 600;
}
.legal-prose p { margin-bottom: 18px; }
.legal-prose ul, .legal-prose ol { padding-left: 24px; margin-bottom: 22px; }
.legal-prose li { margin-bottom: 8px; }
.legal-prose .toc {
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 28px 32px;
  margin: 40px 0 56px;
}
.legal-prose .toc h2 {
  margin: 0 0 16px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--font-body);
  color: var(--muted);
  font-weight: 600;
}
.legal-prose .toc ol {
  columns: 2;
  column-gap: 40px;
  padding-left: 20px;
  margin: 0;
}
.legal-prose .toc li { margin-bottom: 6px; font-size: 0.94rem; break-inside: avoid; }
.legal-prose .toc a { color: var(--ink-soft); text-decoration: none; }
.legal-prose .toc a:hover { color: var(--blue-500); text-decoration: underline; }
.legal-prose .contact {
  background: var(--cream);
  border-radius: 8px;
  padding: 20px 24px;
  margin: 20px 0 28px;
  font-size: 0.95rem;
}
.legal-prose .contact p { margin: 2px 0; }
.legal-prose .small {
  font-size: 0.82rem;
  color: var(--muted);
  padding: 24px;
  border-top: 1px solid var(--rule);
  margin-top: 56px;
  font-style: italic;
}
.legal-prose strong { color: var(--ink); font-weight: 600; }
.legal-prose .legal-caps {
  background: var(--cream);
  border-left: 3px solid var(--blue-500);
  padding: 18px 22px;
  margin: 22px 0;
  border-radius: 0 6px 6px 0;
  font-size: 0.92rem;
  line-height: 1.65;
}
.legal-prose .legal-caps p { margin-bottom: 12px; }
.legal-prose .legal-caps p:last-child { margin-bottom: 0; }
.legal-prose hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 48px 0 24px;
}
@media (max-width: 720px) {
  .legal-prose .toc ol { columns: 1; }
}
