/* ============================================================================
   Abbot — marketing.css
   Static marketing site for Abbot Enterprise. Companion to index.html.
   Pure CSS3, mobile-first, zero dependencies.

   DESIGN TOKENS — complete and exhaustive palette:
     --ink:       #000000
     --charcoal:  #1A1A1A
     --line:      #E5E5E5
     --paper:     #FFFFFF
   The only non-token colors ANYWHERE in this file are the two spec-mandated
   overlay scrims (rgba(0,0,0,0.85) demo modal, rgba(0,0,0,0.5) drawer) —
   alpha of --ink, prescribed by the build spec itself.
   ============================================================================ */

:root {
  --ink: #000000;
  --charcoal: #1A1A1A;
  --line: #E5E5E5;
  --paper: #FFFFFF;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --t: 180ms ease; /* spec ceiling is 200ms ease */
}

* { box-sizing: border-box; }

html {
  -webkit-tap-highlight-color: transparent; /* OS tap flash off; pressed state = our own shading */
  scroll-padding-top: calc(72px + env(safe-area-inset-top, 0px)); /* sticky header offset for anchor jumps */
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden; /* marketing page can never drift sideways on mobile */
}

a { color: inherit; }

img { max-width: 100%; }

/* ---------------------------------------------------------------- Utils */

.eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin: 0 0 20px;
}
.eyebrow-dark { color: var(--line); }

.section-headline {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 32px;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 48px;
  max-width: 720px;
}

/* ---------------------------------------------------------------- Live UI previews
   Real HTML/CSS previews replacing the V-*/S-* wireframe rectangles.
   Grayscale only: --ink / --charcoal / --line / --paper. */
.pv { background: var(--paper); border: 1px solid var(--ink); }
.pv-win { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.pv-win i { width: 8px; height: 8px; border: 1px solid var(--ink); border-radius: 50%; display: inline-block; }
.pv-url { font-size: 10px; color: var(--charcoal); margin-left: 8px; font-weight: 500; letter-spacing: .02em; }
.pv-body { padding: 14px; position: relative; }
.pv-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.pv-table th { font-size: 8.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--charcoal); border-bottom: 1px solid var(--ink); padding: 0 6px 6px; text-align: left; font-weight: 600; }
.pv-table td { padding: 7px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.pv-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.pv-pill { display: inline-block; font-size: 8.5px; letter-spacing: .07em; text-transform: uppercase; padding: 2px 8px; border: 1px solid var(--ink); font-weight: 600; }
.pv-pill.fill { background: var(--ink); color: var(--paper); }
.pv-pill.line { background: var(--paper); color: var(--ink); }
.pv-pill.mute { border-color: var(--charcoal); color: var(--charcoal); font-weight: 400; }
.pv-strip { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.pv-kpi { font-family: var(--font-heading); font-size: 21px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Hero split preview: index table + overlapping Document Studio modal */
.hero-pv { aspect-ratio: auto; }
.hero-pv .pv-body { padding-right: clamp(14px, 22%, 150px); }
.pv-modal { position: absolute; right: 10px; top: 16px; width: min(215px, 56%); border: 1px solid var(--ink); background: var(--charcoal); color: var(--paper); box-shadow: 6px 6px 0 rgba(0,0,0,.16); }
.pv-modal-bar { font-size: 9px; text-transform: uppercase; letter-spacing: .06em; padding: 6px 8px; border-bottom: 1px solid var(--paper); }
.pv-scan { height: 86px; margin: 8px; background: repeating-linear-gradient(0deg, var(--paper) 0 6px, var(--line) 6px 7px); border: 1px solid var(--line); }
.pv-filters { display: flex; gap: 4px; padding: 0 8px 8px; flex-wrap: wrap; align-items: center; }
.pv-filters span { font-size: 8px; text-transform: uppercase; letter-spacing: .06em; border: 1px solid var(--paper); padding: 2px 6px; }
.pv-filters span.on { background: var(--paper); color: var(--ink); }
.pv-filters .pv-extract { font-size: 8px; text-transform: uppercase; letter-spacing: .06em; background: var(--paper); color: var(--ink); border: none; padding: 3px 6px; font-weight: 700; }

/* Diary/BMS feed lines */
.pv-feed-item { border-left: 2px solid var(--ink); padding: 3px 0 3px 10px; margin-bottom: 8px; font-size: 11.5px; }
.pv-feed-item .pv-meta { font-size: 9px; color: var(--charcoal); margin-top: 2px; letter-spacing: .03em; }

/* File tiles */
.pv-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pv-tile { border: 1px solid var(--ink); padding: 10px 8px; font-size: 10px; word-break: break-all; }
.pv-tile .pv-glyph { font-size: 8.5px; font-weight: 700; letter-spacing: .08em; border: 1px solid var(--ink); display: inline-block; padding: 2px 5px; margin-bottom: 6px; }
.pv-tile .pv-thumb { height: 26px; background: repeating-linear-gradient(0deg, var(--paper) 0 4px, var(--line) 4px 5px); border: 1px solid var(--line); margin-bottom: 6px; }

/* Roles matrix */
.pv-matrix { width: 100%; border-collapse: collapse; font-size: 11px; }
.pv-matrix td { padding: 6px; border-bottom: 1px solid var(--line); }
.pv-matrix .role { font-weight: 600; }
.pv-matrix .tick { font-weight: 700; }

@media (max-width: 720px) { .pv-modal { position: static; width: 100%; margin-top: 12px; box-shadow: none; } .hero-pv .pv-body { padding-right: 14px; } }

.asset-ph {
  /* Still used by the pending UPI_QR asset block; all V-*/S-* previews are
     now live HTML (see 'Live UI previews' above). */
  background: var(--line);
  border: 1px solid var(--line);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
}
.asset-id {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--charcoal);
}

/* ---------------------------------------------------------------- Buttons */

.btn-primary,
.btn-secondary,
.btn-outline-dark,
.btn-primary-inverted,
.btn-commission,
.btn-back {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  border-radius: 0; /* sharp corners, by brand rule */
  transition: background var(--t), color var(--t), opacity var(--t);
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  padding: 14px 28px;
  border: 1px solid var(--ink);
}
.btn-primary:hover { background: var(--charcoal); }

.btn-secondary {
  background: var(--paper);
  color: var(--ink);
  font-size: 12px;
  padding: 14px 28px;
  border: 1px solid var(--ink);
}
.btn-secondary:hover { background: var(--ink); color: var(--paper); }

.btn-outline-dark {
  background: var(--paper);
  color: var(--ink);
  font-size: 11px;
  padding: 14px 28px;
  border: 1px solid var(--ink);
}
.btn-outline-dark:hover { background: var(--ink); color: var(--paper); }

.btn-primary-inverted {
  background: var(--paper);
  color: var(--ink);
  font-size: 11px;
  padding: 14px 28px;
  border: 1px solid var(--paper);
}
.btn-primary-inverted:hover { background: var(--line); }

.btn-back {
  background: var(--paper);
  color: var(--ink);
  font-size: 11px;
  padding: 12px 20px;
  border: 1px solid var(--ink);
}
.btn-back:hover { background: var(--line); }

.btn-primary:active, .btn-secondary:active, .btn-outline-dark:active,
.btn-primary-inverted:active, .btn-commission:active, .btn-back:active { opacity: 0.7; }

/* ---------------------------------------------------------------- 1. Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: calc(56px + env(safe-area-inset-top, 0px)); /* 56px + notch, combined */
  padding: env(safe-area-inset-top, 0px) 24px 0;
}

.wordmark {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.15em;
  color: var(--ink);
  text-decoration: none;
}

.header-nav { display: none; } /* mobile: anchor discovery via scroll + footer */

.header-nav a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--charcoal);
  text-decoration: none;
  padding: 8px 2px;
  transition: color var(--t);
}
.header-nav a:hover { color: var(--ink); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-signin {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  color: var(--charcoal);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.header-signin:hover { color: var(--ink); }

.btn-commission {
  background: var(--ink);
  color: var(--paper);
  font-size: 11px;
  padding: 10px 20px;
  border: 1px solid var(--ink);
  display: inline-flex;
  align-items: center;
}
.btn-commission:hover { background: var(--charcoal); }

/* ---------------------------------------------------------------- 2. Hero */

.hero-section {
  padding: 56px 24px 72px;
}

.hero-text {
  max-width: 680px;
  margin: 0 auto 48px;
  text-align: center; /* mobile center; desktop left via media query */
}

.hero-headline {
  font-family: var(--font-heading);
  font-weight: 900;
  font-style: italic;
  font-size: 36px;
  line-height: 1.1;
  color: var(--ink);
  margin: 0 0 24px;
}

.hero-sub {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--charcoal);
  max-width: 560px;
  margin: 0 auto 32px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.hero-visual { max-width: 1120px; margin: 0 auto; }

.hero-ph {
  aspect-ratio: 4 / 3; /* mobile ratio; desktop widens to 16/9 */
}

.hero-caption {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 11px;
  color: var(--charcoal);
  margin: 10px 0 0;
  text-align: center;
}

/* ---------------------------------------------------------------- Demo modal */

.demo-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.85); /* spec-prescribed scrim */
  align-items: center;
  justify-content: center;
  padding: 24px;
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}
.demo-modal.open { display: flex; }

.demo-box {
  position: relative;
  background: var(--paper);
  padding: 32px;
  max-width: 800px;
  width: 100%;
  border-radius: 0;
}

.demo-close {
  position: absolute;
  top: 6px;
  right: 10px;
  border: none;
  background: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 20px;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---------------------------------------------------------------- 3. Reality check */

.reality-check {
  padding: 72px 24px;
  max-width: 1120px;
  margin: 0 auto;
}

.reality-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.reality-col {
  border-top: 1px solid var(--ink); /* newspaper column rule */
  padding-top: 20px;
}

.reality-stat {
  font-family: var(--font-heading);
  font-weight: 700;
  font-style: italic;
  font-size: 20px;
  line-height: 1.35;
  color: var(--ink);
  margin: 0 0 16px;
}

.reality-body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
  color: var(--charcoal);
  margin: 0;
}

.reality-rule {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0 0 32px;
}

.reality-punch {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  text-align: center;
  margin: 0;
}

/* ---------------------------------------------------------------- 4. Modules */

.modules-section {
  padding: 72px 24px;
  max-width: 1120px;
  margin: 0 auto;
}

.module-block {
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}
.module-block:first-of-type { padding-top: 24px; }

.module-media { margin-bottom: 28px; }

.module-number {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--line); /* decorative only, per spec */
  margin-bottom: 10px;
}

.module-name {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 14px;
}

.module-headline {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 16px;
}

.module-copy {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--charcoal);
  margin: 0;
  max-width: 520px;
}

/* ---------------------------------------------------------------- 5. Security */

.security-section {
  background: var(--ink);
  padding: 72px 24px;
}

.security-section > .eyebrow,
.security-section > .security-headline,
.security-section > .security-grid {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

.security-headline {
  font-family: var(--font-heading);
  font-weight: 700;
  font-style: italic;
  font-size: 36px;
  line-height: 1.2;
  color: var(--paper);
  margin: 0 0 48px;
  max-width: 720px;
}

.security-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px; /* hairline gaps read as shared borders */
  background: var(--charcoal);
  border: 1px solid var(--charcoal);
}

.security-block {
  background: var(--ink);
  padding: 32px;
}

.security-block-title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper);
  margin: 0 0 16px;
}

.security-block-body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.7;
  color: var(--line);
  margin: 0 0 24px;
}

.dash-item {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.65;
  color: var(--line);
  margin: 0 0 14px;
}
.dash-item:last-child { margin-bottom: 0; }

.i01-diagram {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 8px; /* sits inside block 1, under its body copy */
}

.audit-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 12px;
  color: var(--line);
}
.audit-table th {
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper);
  text-align: left;
  border: 1px solid var(--charcoal);
  padding: 8px 12px;
}
.audit-table td {
  border: 1px solid var(--charcoal);
  padding: 8px 12px;
  font-variant-numeric: tabular-nums;
}

.pledge {
  font-family: var(--font-heading);
  font-weight: 400;
  font-style: italic;
  font-size: 18px;
  line-height: 1.6;
  color: var(--paper);
  margin: 0 0 20px;
}
.pledge:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------- 6. Pricing */

.pricing-section {
  padding: 72px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.billing-row { margin-bottom: 40px; }

.billing-toggle {
  display: inline-flex;
  border: 1px solid var(--ink);
}
.bill-opt {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  color: var(--ink);
  background: var(--paper);
  border: none;
  padding: 10px 22px;
  cursor: pointer;
  transition: background var(--t), color var(--t);
}
.bill-opt + .bill-opt { border-left: 1px solid var(--ink); }
.bill-opt.active { background: var(--ink); color: var(--paper); }

.annual-note {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 12px;
  color: var(--charcoal);
  margin: 10px 0 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: stretch;
}

.price-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.price-card-dark {
  background: var(--ink);
  border: 1px solid var(--ink);
}
.price-card-dark .price-tag,
.price-card-dark .price-figure { color: var(--paper); }
.price-card-dark .price-pos,
.price-card-dark .price-per,
.price-card-dark .price-anchor { color: var(--line); }
.price-card-dark .price-features li { color: var(--line); }
.price-card-dark .tick { color: var(--paper); }

.price-tag-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.price-tag {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--charcoal);
}

.rec-pill {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper);
  border: 1px solid var(--paper);
  padding: 2px 8px;
  white-space: nowrap;
}

.price-pos {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.6;
  color: var(--charcoal);
  margin: 18px 0 24px;
}

.price-figure {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 36px;
  line-height: 1.1;
  color: var(--ink);
  margin: 0 0 4px;
}

.price-figure-custom {
  font-style: italic;
  font-size: 24px;
  margin-bottom: 22px;
}

.price-per {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  color: var(--charcoal);
}

.price-anchor {
  font-family: var(--font-body);
  font-weight: 400;
  font-style: italic;
  font-size: 12px;
  color: var(--charcoal);
  margin: 14px 0 0;
  min-height: 18px;
}

.price-features {
  list-style: none;
  padding: 0;
  margin: 24px 0 32px;
}
.price-features li {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.55;
  color: var(--charcoal);
  margin-bottom: 12px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.tick {
  font-weight: 600;
  color: var(--ink);
  flex-shrink: 0;
}

.price-card .btn-outline-dark,
.price-card .btn-primary-inverted {
  margin-top: auto; /* CTAs pin to the card bottom so all three align */
  width: 100%;
}

/* ---------------------------------------------------------------- Partner briefing */

.partner-briefing {
  margin-top: 72px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
  max-width: 720px;
}

.partner-headline {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 24px;
  color: var(--ink);
  margin: 0 0 28px;
}

.partner-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.partner-submit { width: 100%; }

.partner-confirm {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  color: var(--charcoal);
  border-left: 2px solid var(--ink);
  background: var(--line);
  padding: 14px 16px;
}

/* ---------------------------------------------------------------- 7. Checkout drawer */

body.drawer-open { overflow: hidden; } /* scroll lock while the drawer owns the screen */
body.demo-open { overflow: hidden; }

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5); /* spec-prescribed scrim */
  z-index: 150;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t), visibility var(--t);
}
body.drawer-open .drawer-overlay { opacity: 1; visibility: visible; }

.checkout-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  height: 100dvh; /* drawer must track the collapsing mobile address bar */
  width: 100%;
  background: var(--paper);
  z-index: 151;
  overflow-y: auto;
  transform: translateY(100%); /* mobile: slides from the bottom */
  transition: transform 200ms ease;
  will-change: transform;
  box-shadow: none;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
body.drawer-open .checkout-drawer { transform: translateY(0); }

.drawer-close {
  position: absolute;
  top: 10px;
  right: 14px;
  z-index: 2;
  border: none;
  background: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 20px;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.drawer-body {
  padding: 64px 28px 40px;
  max-width: 420px;
  margin: 0 auto;
}

.drawer-step-indicator {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin: 0 0 20px;
}

.drawer-error {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  color: var(--ink);
  border-left: 2px solid var(--ink);
  background: var(--line);
  padding: 8px 12px;
  margin: 0 0 18px;
}

.drawer-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 24px;
  color: var(--ink);
  margin: 0 0 24px;
}

.drawer-step { display: none; }
.drawer-step.active { display: block; }

/* Drawer fields — shared language with the partner form */
.field { margin-bottom: 18px; }

.field label,
.field-label {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 6px;
}

.field .opt { color: var(--charcoal); font-size: 12px; }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"] {
  width: 100%;
  height: 40px;
  border: 1px solid var(--charcoal);
  border-radius: 0;
  padding: 0 10px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: none;
  outline: none;
}
.field input:focus {
  outline: 2px solid var(--ink);
  outline-offset: 0;
}

.field input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--ink); /* native check, grayscale-ized */
  flex-shrink: 0;
}

.field-note {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 12px;
  color: var(--charcoal);
  margin: 6px 0 0;
}

.tier-badge {
  display: inline-block;
  border: 1px solid var(--ink);
  padding: 8px 12px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}

.subdomain-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.subdomain-row input { flex: 1; min-width: 0; }
.subdomain-suffix {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  color: var(--charcoal);
  white-space: nowrap;
}
.subdomain-check {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 18px;
  color: var(--ink); /* spec asked for a green tick; the design system has no green — ink carries it */
}

.check-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
}

.drawer-nav {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}
.drawer-nav .btn-primary { flex: 1; }
.drawer-step > .drawer-next { width: 100%; }

.summary-card {
  border: 1px solid var(--line);
  padding: 8px 20px;
  margin-bottom: 24px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  color: var(--charcoal);
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.summary-row:last-child { border-bottom: none; }
.summary-total {
  font-weight: 600;
  color: var(--ink);
}

.pay-via {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
  margin: 0 0 12px;
}

.pay-methods {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.pay-label {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  color: var(--charcoal);
  margin: 0 0 10px;
}

.qr-ph {
  width: 160px;
  height: 160px;
  aspect-ratio: auto;
}

.pay-proceed { width: 100%; }

.pay-note {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 11px;
  line-height: 1.6;
  color: var(--charcoal);
  margin: 20px 0 0;
}

/* ---------------------------------------------------------------- 8. Footer */

.site-footer {
  background: var(--ink);
  padding: 64px 24px 32px;
}

.footer-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.footer-wordmark {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.15em;
  color: var(--paper);
}

.footer-tag {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  color: var(--line);
  margin: 12px 0 0;
}

.footer-epigraph {
  font-family: var(--font-heading);
  font-weight: 400;
  font-style: italic;
  font-size: 16px;
  color: var(--line);
  margin: 28px 0 0;
  line-height: 1.6;
}
.footer-epigraph .epigraph-translation {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.72); /* footer is solid --ink; never charcoal-on-black */
  margin-top: 4px;
}

/* "All Systems Operational" strip previously inherited footer darkness
   (charcoal on ink — invisible). Pinned to paper/70% white. */
.status-line {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin: 16px 0 0;
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--paper); display: inline-block; }

.footer-col-title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper);
  margin-bottom: 14px;
}

.footer-link {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  color: var(--line);
  text-decoration: none;
  padding: 7px 0;
  transition: color var(--t);
}
.footer-link:hover { color: var(--paper); }

.status-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 12px;
  color: var(--line);
  margin: 0 0 20px;
}
.status-dot {
  width: 8px; /* spec read 3px — illegibly small at real DPIs; 8px keeps the intent readable */
  height: 8px;
  border-radius: 50%;
  background: var(--paper);
  flex-shrink: 0;
}

.footer-legal,
.footer-muted {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 11px;
  color: var(--charcoal); /* intentional: near-invisible legal line on black */
  margin: 0 0 6px;
}

.footer-bottom {
  max-width: 1120px;
  margin: 48px auto 0;
  border-top: 1px solid var(--charcoal);
  padding-top: 24px;
  text-align: center;
}
.footer-bottom p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 11px;
  color: var(--line);
  margin: 0;
}

/* ---------------------------------------------------------------- Desktop */

@media (min-width: 861px) {
  .header-nav {
    display: flex;
    gap: 28px;
  }

  .hero-section { padding: 96px 48px 96px; }

  .hero-text {
    margin: 0;
    text-align: left;
  }
  .hero-sub { margin: 0 0 32px; }
  .hero-cta { justify-content: flex-start; }

  .hero-headline { font-size: 56px; }
  .hero-sub { font-size: 18px; }
  .hero-ph { aspect-ratio: 16 / 9; }

  .reality-check,
  .modules-section,
  .pricing-section { padding-left: 48px; padding-right: 48px; }

  .reality-grid { grid-template-columns: repeat(3, 1fr); gap: 48px; }

  .module-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
  }
  .module-media { margin-bottom: 0; }
  /* Authored alternation: even module rows put media right, text left */
  .module-block:nth-of-type(even) .module-media { order: 2; }
  .module-block:nth-of-type(even) .module-text { order: 1; }

  .security-grid { grid-template-columns: 1fr 1fr; }

  .pricing-grid { grid-template-columns: repeat(3, 1fr); }

  .partner-grid { grid-template-columns: 1fr 1fr; }
  .partner-submit { width: auto; }

  .checkout-drawer {
    width: 420px;
    transform: translateX(100%); /* desktop: slides from the right */
  }
  body.drawer-open .checkout-drawer { transform: translateX(0); }

  .footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: 64px; }
}

/* ---------------------------------------------------------------- Touch ergonomics */

@media (pointer: coarse) {
  .header-signin,
  .btn-commission { min-height: 44px; }

  .demo-close,
  .drawer-close { min-width: 44px; min-height: 44px; }

  .bill-opt { min-height: 44px; }

  .btn-primary, .btn-secondary, .btn-outline-dark, .btn-primary-inverted, .btn-back {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .field input[type="text"],
  .field input[type="email"],
  .field input[type="tel"] { height: 44px; }
  .check-row { min-height: 44px; align-items: center; }

  .footer-link {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 0;
  }
}

/* ---------------------------------------------------------------- Motion safety */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
