/* ==========================================================================
   Site OS marketing site
   Editorial construction aesthetic: Archivo display, Inter body, square edges.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand palette, sampled from the Site OS mark (Brand Spec Rev A) */
  --terracotta:       #CE6348;   /* the mark, large display accents, progress */
  --terracotta-light: #D76B50;   /* hover, highlighted facets */
  --clay-dark:        #A65540;   /* small text + button fills: 5.26:1 on white */

  --navy:   #2D3849;   /* headlines, wordmark, dark surfaces */
  --slate:  #585F6F;   /* the "OS", secondary text, borders on dark */
  --steel:  #545964;   /* taglines, captions, metadata */
  --ink:    #232B38;   /* body text on light */

  --white:  #FFFFFF;
  --paper:  #FCFBF7;   /* warm page surface, not clinical white */
  --off:    #F5F3ED;   /* alternating band */
  --off-2:  #EFEDE5;   /* input / inset */
  --line:   #E4E0D6;   /* hairlines */
  --line-2: #D6D1C4;

  /* Aliases kept so component rules read naturally */
  --body:   var(--steel);
  --body-2: #4C525E;
  --faint:  #8A8F99;
  --rule:   var(--line);
  --rule-2: var(--line-2);
  --clay:   var(--clay-dark);   /* small-text accent (contrast-safe) */

  /* States */
  --ok:      #2A6B3C;
  --ok-bg:   #EDF4EE;
  --warn:    #8A5B0C;
  --warn-bg: #FAF4E8;
  --bad:     #A6192E;
  --bad-bg:  #F9EDEE;

  /* Type: Montserrat display, Inter body, JetBrains Mono for figures */
  --display: 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --t-hero: clamp(2.5rem, 6.5vw, 4.75rem);
  --t-h1:   clamp(2.125rem, 5vw, 3.5rem);
  --t-h2:   clamp(1.625rem, 3.4vw, 2.375rem);
  --t-h3:   clamp(1.125rem, 1.8vw, 1.375rem);
  --t-lede: clamp(1.0625rem, 1.7vw, 1.3125rem);

  /* Layout */
  --gutter: 1.75rem;
  --maxw:   1240px;
  --maxw-n: 780px;
  --pad-y:  clamp(4.5rem, 11vw, 11.25rem);   /* 180px at full size */

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur:  0.3s;
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background-color: var(--paper);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; }

/* Display type is sentence case with tight tracking, per the brand book.
   Uppercase is reserved for section titles and wide-tracked labels. */
h1, h2, h3, h4, h5 {
  font-family: var(--display);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
h3, h4, h5 { font-weight: 700; letter-spacing: -0.01em; }

strong, b { font-weight: 600; color: var(--navy); }

:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 0;
  z-index: 300;
  transform: translateY(-120%);
  padding: 0.875rem 1.25rem;
  background: var(--clay-dark);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: transform var(--dur) var(--ease);
}
.skip-link:focus { transform: translateY(0); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.wrap-n { max-width: var(--maxw-n); }

.section { padding: var(--pad-y) 0; }
.section-sm { padding: clamp(3rem, 7vw, 6rem) 0; }
.section-alt { background: var(--off); }
.section-dark { background: var(--navy); }
.rule-top { border-top: 1px solid var(--rule); }

/* Eyebrow: mono, wide-tracked, clay-dark for contrast at small sizes */
.eyebrow {
  display: block;
  margin-bottom: 1.125rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clay-dark);
}

.head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.head.center { margin-inline: auto; text-align: center; }

.h-display { font-size: var(--t-hero); }
.h-1 { font-size: var(--t-h1); }
.h-2 {
  font-size: var(--t-h2);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 1.12;
}

.lede {
  font-size: var(--t-lede);
  font-weight: 300;
  line-height: 1.45;
  color: var(--body-2);
  max-width: 40rem;
  text-wrap: pretty;
}
.head.center .lede { margin-inline: auto; }

.note {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--faint);
  text-wrap: pretty;
}

/* Dark-band inversions */
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-dark .lede { color: rgba(255, 255, 255, 0.6); }
.section-dark .eyebrow { color: #fff; }
.section-dark p { color: rgba(255, 255, 255, 0.6); }
.section-dark strong, .section-dark b { color: #fff; }

/* --------------------------------------------------------------------------
   4. Buttons: square, uppercase, wide tracking
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.25rem 2.75rem;
  border: 1px solid transparent;
  border-radius: 0;
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.btn svg { width: 0.875rem; height: 0.875rem; flex-shrink: 0; }

.btn-solid { background: var(--clay-dark); color: #fff; }
.btn-solid:hover { background: var(--terracotta); }

.btn-outline { background: transparent; color: var(--navy); border-color: var(--line-2); }
.btn-outline:hover { border-color: var(--navy); background: var(--navy); color: #fff; }

.btn-sm { padding: 0.9375rem 1.75rem; font-size: 0.6875rem; letter-spacing: 0.18em; }

/* On dark */
.section-dark .btn-solid, .hero .btn-solid { background: #fff; color: var(--navy); }
.section-dark .btn-solid:hover, .hero .btn-solid:hover { background: var(--terracotta); color: #fff; }
.section-dark .btn-outline, .hero .btn-outline { color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.section-dark .btn-outline:hover, .hero .btn-outline:hover { background: #fff; color: var(--navy); border-color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Text link with arrow */
.link-more {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clay-dark);
}
.link-more svg { width: 0.875rem; height: 0.875rem; transition: transform var(--dur) var(--ease); }
.link-more:hover svg { transform: translateX(4px); }
.section-dark .link-more { color: #fff; }

/* --------------------------------------------------------------------------
   4b. Announcement bar
   -------------------------------------------------------------------------- */
.announce {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.82);
}
.announce-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 2.75rem;
  padding-block: 0.5rem;
  text-align: center;
}
.announce p {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.5;
  color: inherit;
}
.announce a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.announce a:hover { color: var(--clay-dark); }

.announce-dot {
  position: relative;
  flex-shrink: 0;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--terracotta);
}
.announce-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: inherit;
  animation: ping 2.8s var(--ease) infinite;
}
@keyframes ping {
  0%   { transform: scale(1);   opacity: 0.75; }
  70%  { transform: scale(3.4); opacity: 0; }
  100% { transform: scale(3.4); opacity: 0; }
}

@media (max-width: 620px) {
  .announce p { font-size: 0.625rem; letter-spacing: 0.1em; }
}

/* --------------------------------------------------------------------------
   5. Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 5.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.brand-logo { display: block; width: auto; }
/* Brand rule: the full lockup is never set below 140px wide, and the tagline
   would be illegible at header scale, so the header uses the icon + wordmark
   and the footer carries the complete lockup. */
.brand-icon { width: 34px; height: 34px; flex-shrink: 0; }
.brand-name {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--navy);
  line-height: 1;
}
.brand-name .os { color: var(--slate); }
.site-footer .brand-logo { height: 58px; }

.nav {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  margin: 0 auto;
}
.nav-link {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--body);
  white-space: nowrap;
  transition: color var(--dur) var(--ease);
}
.nav-link:hover { color: var(--ink); }
.nav-link[aria-current="page"] { color: var(--clay-dark); }

.header-actions { display: flex; align-items: center; gap: 1.25rem; flex-shrink: 0; }
.header-login {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--body);
}
.header-login:hover { color: var(--ink); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem; height: 2.75rem;
  background: transparent;
  border: 1px solid var(--rule-2);
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle svg { width: 1.125rem; height: 1.125rem; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--navy);
  color: #fff;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 88px 88px;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 70% at 20% 15%, rgba(255, 255, 255, 0.07), transparent 70%);
  pointer-events: none;
}

/* padding-block only. A `padding` shorthand here would cancel the horizontal
   gutter that .wrap sets on this same element. */
.hero-inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(5rem, 13vw, 11rem) clamp(4rem, 9vw, 8rem);
}

.hero .eyebrow { color: #fff; opacity: 0.72; }

.hero h1 {
  font-size: var(--t-hero);
  color: #fff;
  letter-spacing: -0.04em;
  line-height: 0.9;
  max-width: 22em;
  margin-bottom: 1.75rem;
}
.hero h1 .accent { color: var(--terracotta); }

.hero .lede {
  color: rgba(255, 255, 255, 0.68);
  max-width: 38rem;
  margin-bottom: 2.75rem;
}

.hero-micro {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

/* Interior page hero: light, compact */
.page-hero {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--rule);
}
.page-hero h1 { font-size: var(--t-h1); margin-bottom: 1.5rem; max-width: 34em; }
.page-hero h1 .accent { color: var(--terracotta); }
.page-hero .btn-row { margin-top: 2.25rem; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 1.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
}
.breadcrumb a { color: var(--body); }
.breadcrumb a:hover { color: var(--clay-dark); }

/* --------------------------------------------------------------------------
   7. Stat / fact row
   -------------------------------------------------------------------------- */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.fact {
  padding: 2.25rem 2rem 2.25rem 0;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}
.fact:last-child { border-right: none; }
.fact dt {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0.625rem;
}
.fact dd {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: #fff;
}

/* Light variant */
.facts-light { border-top-color: var(--rule); }
.facts-light .fact { border-right-color: var(--rule); }
.facts-light dt { color: var(--faint); }
.facts-light dd { color: var(--ink); }

/* --------------------------------------------------------------------------
   7b. Disclosure: the "drill down if you want to" primitive
   Everything optional on this site lives inside one of these. Closed by
   default, so the page reads short; open on demand, so nothing is hidden.
   -------------------------------------------------------------------------- */
.disclose {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-top: -1px;                      /* collapse borders when stacked */
}
.disclose + .disclose { margin-top: -1px; }

.disclose > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.375rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay-dark);
  transition: color var(--dur) var(--ease);
}
.disclose > summary::-webkit-details-marker { display: none; }
.disclose > summary:hover { color: var(--navy); }

/* plus → minus */
.disclose > summary .sign {
  position: relative;
  flex-shrink: 0;
  width: 0.75rem; height: 0.75rem;
}
.disclose > summary .sign::before,
.disclose > summary .sign::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto 0;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.disclose > summary .sign::after { transform: rotate(90deg); }
.disclose[open] > summary .sign::after { transform: rotate(0deg); opacity: 0; }

.disclose-body { padding: 0.25rem 0 2.25rem; }

.section-dark .disclose { border-color: rgba(255, 255, 255, 0.16); }
.section-dark .disclose > summary { color: #fff; }
.section-dark .disclose > summary:hover { color: var(--clay-dark); }

/* --------------------------------------------------------------------------
   7c. Trio: the whole product in three lines
   -------------------------------------------------------------------------- */
.trio { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.trio-row {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 15rem) minmax(0, 1fr);
  gap: 1rem 2rem;
  align-items: baseline;
  padding: 2rem 0;
  border-bottom: 1px solid var(--rule);
}
.trio-num {
  font-family: var(--mono);
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--clay-dark);
}
.trio-row h3 { font-size: 1.125rem; }
.trio-row p { font-size: 1rem; text-wrap: pretty; }

@media (max-width: 760px) {
  .trio-row { grid-template-columns: 2.5rem 1fr; gap: 0.5rem 1rem; padding: 1.5rem 0; }
  .trio-row p { grid-column: 2; }
}

/* --------------------------------------------------------------------------
   7d. Doors: let the reader pick their own depth
   -------------------------------------------------------------------------- */
.doors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.door {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  padding: 2.25rem 1.75rem 2rem;
  background: var(--white);
  transition: background-color var(--dur) var(--ease);
}
.door:hover { background: var(--off); }
.door-time {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
}
.door h3 { font-size: 1.25rem; }
.door p { font-size: 0.9375rem; text-wrap: pretty; }
.door .link-more { margin-top: auto; padding-top: 1.25rem; }

/* --------------------------------------------------------------------------
   7e. Plain module rows (calmer than a wall of cards)
   -------------------------------------------------------------------------- */
.rows { display: grid; }
.rows > li {
  display: grid;
  grid-template-columns: minmax(0, 13rem) minmax(0, 1fr);
  gap: 0.375rem 2rem;
  padding: 1.0625rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.9375rem;
}
.rows > li:last-child { border-bottom: none; }
.rows b {
  font-family: var(--display);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--navy);
}
.rows p { text-wrap: pretty; }

@media (max-width: 700px) {
  .rows > li { grid-template-columns: 1fr; gap: 0.25rem; }
}

/* --------------------------------------------------------------------------
   10. Flow (platform deep dive)
   -------------------------------------------------------------------------- */
.flow { display: grid; gap: clamp(3rem, 6vw, 5rem); }

/* Single-column step: summary always visible, specifics behind a disclosure. */
.stack-step {
  max-width: 54rem;
  scroll-margin-top: 7rem;
}
.stack-step h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 1rem; }
.stack-step > p { font-size: 1.0625rem; margin-bottom: 1.5rem; text-wrap: pretty; }
.stack-step .mock { margin-top: 2rem; }


.flow-marker {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--rule);
}
.flow-marker b {
  font-family: var(--mono);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--clay-dark);
  line-height: 1;
}
.flow-marker span {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faint);
}


/* --------------------------------------------------------------------------
   11. Detail lists
   -------------------------------------------------------------------------- */
.detail-list { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.detail-list li {
  padding: 1.125rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.9375rem;
  text-wrap: pretty;
}
.detail-list li strong { display: block; margin-bottom: 0.1875rem; }

.section-dark .detail-list { border-top-color: rgba(255,255,255,0.14); }
.section-dark .detail-list li { border-bottom-color: rgba(255,255,255,0.14); }

/* --------------------------------------------------------------------------
   13. Product mock: flat, square, no chrome tricks
   -------------------------------------------------------------------------- */
.mock {
  background: var(--white);
  border: 1px solid var(--rule-2);
}
.section-dark .mock { border-color: rgba(255,255,255,0.18); background: var(--navy); }

.mock-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.875rem 1.125rem;
  border-bottom: 1px solid var(--rule);
  background: var(--off);
}
.mock-bar h4 {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}
.mock-bar p {
  margin-top: 0.1875rem;
  font-size: 0.6875rem;
  letter-spacing: 0.02em;
  color: var(--faint);
}
.section-dark .mock-bar { background: rgba(255,255,255,0.04); border-bottom-color: rgba(255,255,255,0.14); }

.mock-rows { padding: 0.25rem 1.125rem 1.125rem; }

.mock-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem 1rem;
  align-items: center;
  padding: 0.9375rem 0;
  border-bottom: 1px solid var(--rule);
}
.mock-row:last-child { border-bottom: none; }
.section-dark .mock-row { border-bottom-color: rgba(255,255,255,0.1); }

.mock-row-title {
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 0.25rem;
}
.section-dark .mock-row-title { color: #fff; }

.mock-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.1875rem 0.875rem;
  font-size: 0.6875rem;
  color: var(--faint);
}
.mock-meta b { color: var(--body); font-weight: 600; }
.section-dark .mock-meta b { color: rgba(255,255,255,0.75); }

.mock-amt {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink);
  text-align: right;
  white-space: nowrap;
}
.section-dark .mock-amt { color: #fff; }

.tag {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.tag-ok   { background: var(--ok-bg);   color: var(--ok); }
.tag-warn { background: var(--warn-bg); color: var(--warn); }
.tag-bad  { background: var(--bad-bg);  color: var(--bad); }
.tag-info { background: var(--off-2);   color: var(--body-2); }

/* --------------------------------------------------------------------------
   14. Pricing
   -------------------------------------------------------------------------- */
.price-wrap {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  border: 1px solid var(--rule);
}

.price-main { padding: clamp(2rem, 4vw, 3.5rem); border-right: 1px solid var(--rule); }
.price-side { padding: clamp(2rem, 4vw, 3.5rem); background: var(--off); }

.price-tier {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--clay-dark);
  margin-bottom: 1.5rem;
}
.price-amount {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: clamp(3.25rem, 8vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  color: var(--ink);
  line-height: 0.9;
}
.price-amount span {
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}
.price-basis {
  margin-top: 1rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--rule);
  font-size: 1rem;
  color: var(--body-2);
}
.price-includes { margin-top: 1.75rem; display: grid; gap: 0; }
.price-includes li {
  display: flex;
  gap: 0.875rem;
  padding: 0.8125rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.9375rem;
}
.price-includes svg { width: 1rem; height: 1rem; flex-shrink: 0; margin-top: 0.3125rem; color: var(--clay-dark); }
.price-main .btn { margin-top: 2.25rem; }

.price-side h3 { font-size: 1.0625rem; margin-bottom: 0.875rem; }
.price-side p { font-size: 0.9375rem; }
.price-side .price-block { padding-bottom: 1.75rem; margin-bottom: 1.75rem; border-bottom: 1px solid var(--rule-2); }
.price-side .price-block:last-child { padding-bottom: 0; margin-bottom: 0; border-bottom: none; }

/* --------------------------------------------------------------------------
   16. Forms
   -------------------------------------------------------------------------- */
.form-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field.span-2 { grid-column: 1 / -1; }
.field label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--body);
}
.control {
  width: 100%;
  padding: 0.9375rem 1rem;
  background: var(--white);
  border: 1px solid var(--rule-2);
  border-radius: 0;
  font-size: 0.9375rem;
  color: var(--ink);
  outline: none;
  transition: border-color var(--dur) var(--ease);
}
.control::placeholder { color: var(--faint); }
.control:focus { border-color: var(--ink); }

select.control {
  appearance: none;
  cursor: pointer;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7177' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
}

.form-actions { margin-top: 1.75rem; }
.form-actions .btn { width: 100%; }

.form-fine { margin-top: 1.25rem; font-size: 0.75rem; line-height: 1.6; color: var(--faint); }
.form-fine a { color: var(--body); text-decoration: underline; text-underline-offset: 2px; }

.form-status {
  display: none;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding: 1rem 1.125rem;
  font-size: 0.875rem;
  border: 1px solid;
}
.form-status.is-shown { display: flex; }
.form-status.is-ok  { background: var(--ok-bg);  color: var(--ok);  border-color: rgba(42, 107, 60, 0.28); }
.form-status.is-err { background: var(--bad-bg); color: var(--bad); border-color: rgba(166, 25, 46, 0.28); }
.form-status svg { width: 1rem; height: 1rem; flex-shrink: 0; margin-top: 0.25rem; }

.spinner {
  width: 0.875rem; height: 0.875rem;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------------------
   17. Next-up cross links
   -------------------------------------------------------------------------- */
.next-up {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.next-card {
  display: block;
  padding: 1.75rem;
  background: var(--white);
  transition: background-color var(--dur) var(--ease);
}
.next-card:hover { background: var(--off); }
.next-card h3 { font-size: 0.9375rem; margin-bottom: 0.4375rem; }
.next-card p { font-size: 0.8125rem; }

/* --------------------------------------------------------------------------
   18. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--rule);
  padding: clamp(3.5rem, 6vw, 5rem) 0 2.25rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 3rem 2rem;
  padding-bottom: 3.5rem;
}
.footer-brand .brand { margin-bottom: 1.25rem; }
.footer-brand p { font-size: 0.875rem; max-width: 20rem; }

.footer-col h4 {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--faint);
  margin-bottom: 1.25rem;
  font-family: var(--font);
}
.footer-col li + li { margin-top: 0.75rem; }
.footer-col a { font-size: 0.875rem; color: var(--body); }
.footer-col a:hover { color: var(--clay-dark); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  font-size: 0.75rem;
  color: var(--faint);
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 1.75rem; }
.footer-bottom a:hover { color: var(--clay-dark); }

/* --------------------------------------------------------------------------
   19. Prose (legal pages)
   -------------------------------------------------------------------------- */
.prose { max-width: 46rem; }
.prose h1 { font-size: var(--t-h1); margin-bottom: 1.25rem; }
.prose-meta {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  padding-bottom: 2rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--rule);
}
.prose h2 {
  font-size: 1.125rem;
  margin: 3rem 0 1rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule);
}
.prose h2:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.prose h3 {
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  margin: 1.75rem 0 0.625rem;
}
.prose p, .prose li { font-size: 0.9375rem; text-wrap: pretty; }
.prose p + p { margin-top: 1rem; }
.prose ul { margin: 1rem 0; display: grid; gap: 0.625rem; }
.prose ul li { padding-left: 1.25rem; position: relative; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.75rem;
  width: 6px; height: 1px;
  background: var(--terracotta);
}
.prose a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--clay-dark); }

.callout {
  padding: 1.5rem 1.75rem;
  margin: 1.75rem 0;
  background: var(--off);
  border-left: 2px solid var(--terracotta);
}
.callout p { font-size: 0.875rem; }

/* --------------------------------------------------------------------------
   20. Reveal
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }

/* --------------------------------------------------------------------------
   21. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .form-shell { grid-template-columns: 1fr; }
  .price-wrap { grid-template-columns: 1fr; }
  .price-main { border-right: none; border-bottom: 1px solid var(--rule); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav {
    position: fixed;
    inset: 5.25rem 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 0.5rem var(--gutter) 1.5rem;
    background: var(--white);
    border-bottom: 1px solid var(--rule);
    transform: translateY(-135%);
    visibility: hidden;
    transition: transform var(--dur) var(--ease), visibility var(--dur);
  }
  .nav.is-open { transform: translateY(0); visibility: visible; }
  .nav-link { padding: 1rem 0; border-bottom: 1px solid var(--rule); font-size: 0.8125rem; }
  .nav-toggle { display: inline-flex; }
  .header-actions { margin-left: auto; }
  .facts { grid-template-columns: 1fr 1fr; }
  .fact { padding-right: 1.25rem; }
}

@media (max-width: 620px) {
  :root { --gutter: 1.25rem; }
  .header-inner { height: 4.5rem; gap: 0.75rem; }
  .nav { inset-block-start: 4.5rem; }
  .btn { padding: 1.125rem 1.75rem; }
  /* Full-width only where a button owns its row, not the header CTA, which
     would push .header-actions past the viewport. */
  .btn-row .btn, .form-actions .btn, .price-main .btn { width: 100%; }
  .btn-row { flex-direction: column; }
  .header-actions { gap: 0.625rem; }
  .header-actions .btn-sm { padding: 0.75rem 0.9375rem; font-size: 0.625rem; letter-spacing: 0.1em; }
  .header-login { display: none; }
  .field-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.25rem; }
  .facts { grid-template-columns: 1fr; }
  .fact { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.14); padding: 1.5rem 0; }
  .facts-light .fact { border-bottom-color: var(--rule); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .nav-toggle, .hero::before, .hero::after { display: none; }
  body { background: #fff; color: #000; }
}
