/* =====================================================================
   EDGERA.COM  —  main.css
   Design system + components. No framework, no build step.

   Palette note: petal peach is the brand colour. It reads pale and quiet
   on white, so the site sets it against a deep aubergine ink instead —
   that contrast is what makes it glow. A single aqua "signal" accent
   marks live telemetry, borrowed from the link-status lights on the
   equipment this software manages.
   ===================================================================== */

/* ---------- 1. Tokens ------------------------------------------------ */
:root {
  /* core */
  --ink:        #141024;
  --ink-2:      #1F1839;
  --ink-3:      #2C2350;
  --petal:      #FFCDB8;
  --petal-mid:  #FFB194;
  --petal-soft: #FFF1EA;
  --petal-tint: #FFF8F4;
  --ember:      #FF6A3D;
  --ember-deep: #E14A20;
  --signal:     #2FE0C0;
  --paper:      #FFFFFF;

  /* text */
  --text:       #191526;
  --text-soft:  #5C5473;
  --text-faint: #8A82A0;
  --on-ink:     #F6F2FF;
  --on-ink-soft:#B7AFCF;

  /* lines + shadow */
  --line:        #ECE4EE;
  --line-strong: #DCD2E2;
  --line-ink:    rgba(255, 205, 184, .18);
  --shadow-sm:  0 1px 2px rgba(20, 16, 36, .06), 0 4px 12px rgba(20, 16, 36, .05);
  --shadow-md:  0 2px 6px rgba(20, 16, 36, .07), 0 18px 40px -12px rgba(20, 16, 36, .16);
  --shadow-lg:  0 30px 70px -24px rgba(20, 16, 36, .35);
  --glow-peach: 0 20px 60px -18px rgba(255, 106, 61, .45);

  /* type */
  --display: 'Space Grotesk', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --body:    'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* scale (Elements of Typographic Style, 1.25 with a wider display step) */
  --t-xs:   .78rem;
  --t-sm:   .875rem;
  --t-base: 1rem;
  --t-md:   1.125rem;
  --t-lg:   1.375rem;
  --t-xl:   1.75rem;
  --t-2xl:  2.25rem;
  --t-3xl:  3rem;
  --t-4xl:  clamp(2.35rem, 4vw, 3.5rem);

  /* space */
  --s-1: .25rem; --s-2: .5rem;  --s-3: .75rem; --s-4: 1rem;
  --s-5: 1.5rem; --s-6: 2rem;   --s-7: 3rem;   --s-8: 4rem;
  --s-9: 6rem;   --s-10: 8rem;

  --shell: 1200px;
  --radius:    14px;
  --radius-lg: 22px;
  --radius-xl: 30px;

  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* ---------- 2. Reset ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--body);
  font-size: var(--t-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.025em;
  margin: 0 0 var(--s-4);
  text-wrap: balance;
}
h1 { font-size: var(--t-4xl); letter-spacing: -.035em; }
h2 { font-size: var(--t-2xl); }
h3 { font-size: var(--t-lg); }
h4 { font-size: var(--t-md); }
p  { margin: 0 0 var(--s-4); max-width: 68ch; }

ul, ol { margin: 0 0 var(--s-4); padding-left: 1.15em; }
li { margin-bottom: var(--s-2); }

/* Focus is always visible and always the same shape. */
:focus-visible {
  outline: 3px solid var(--ember);
  outline-offset: 3px;
  border-radius: 4px;
}
:focus:not(:focus-visible) { outline: none; }

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

/* Hidden by its own height rather than a fixed offset: on a narrow screen
   the label wraps to two lines and a -60px offset left it peeking out
   above the header. */
.skip-link {
  position: absolute; left: 50%; top: 0;
  transform: translate(-50%, -100%);
  z-index: 200; background: var(--ink); color: var(--on-ink);
  padding: .7rem 1.2rem; border-radius: 0 0 10px 10px; text-decoration: none;
  font-weight: 600; white-space: nowrap;
  transition: transform .18s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

/* ---------- 3. Layout ------------------------------------------------ */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 4vw, 2.5rem);
}

.section { padding-block: clamp(3.5rem, 8vw, var(--s-9)); }
.section-tight { padding-block: clamp(2.5rem, 5vw, var(--s-8)); }
.section-ink   { background: var(--ink); color: var(--on-ink); }
.section-soft  { background: var(--petal-soft); }
.section-tint  { background: var(--petal-tint); }
.section-ink h1, .section-ink h2, .section-ink h3 { color: var(--paper); }
.section-ink p { color: var(--on-ink-soft); }

.section-head { max-width: 46rem; margin-bottom: var(--s-7); }
.section-head p { font-size: var(--t-md); color: var(--text-soft); }
.section-ink .section-head p { color: var(--on-ink-soft); }

.grid { display: grid; gap: var(--s-5); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.5rem), 1fr)); }

/* ---------- 4. Header ------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }

.header-inner {
  display: flex; align-items: center; gap: var(--s-5);
  min-height: 72px;
}

.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  text-decoration: none; flex-shrink: 0;
}
.brand-mark { border-radius: 9px; }
.brand-word {
  font-family: var(--display); font-weight: 700; font-size: 1.3rem;
  letter-spacing: -.04em; color: var(--ink);
}

.primary-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.nav-item { position: relative; margin: 0; }

.nav-link {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .55rem .8rem; border: 0; background: none;
  font: inherit; font-size: var(--t-sm); font-weight: 500;
  color: var(--text-soft); text-decoration: none; cursor: pointer;
  border-radius: 9px; transition: color .16s var(--ease), background .16s var(--ease);
}
.nav-link:hover, .nav-link.is-active { color: var(--ink); background: var(--petal-soft); }
.nav-link .chev { transition: transform .18s var(--ease); }
.nav-link[aria-expanded="true"] .chev { transform: rotate(180deg); }

.nav-menu {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  min-width: 21rem; padding: .5rem;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
}
.nav-menu ul { list-style: none; margin: 0; padding: 0; }
.nav-menu li { margin: 0; }
.nav-menu a {
  display: block; padding: .65rem .8rem; border-radius: 11px;
  text-decoration: none; transition: background .14s var(--ease);
}
.nav-menu a:hover { background: var(--petal-soft); }
.menu-title { display: block; font-weight: 600; font-size: var(--t-sm); color: var(--ink); }
.menu-note  { display: block; font-size: var(--t-xs); color: var(--text-faint); margin-top: .1rem; }

.header-actions { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }

.nav-toggle {
  display: none; margin-left: auto;
  width: 44px; height: 44px; padding: 0;
  background: var(--petal-soft); border: 1px solid var(--line);
  border-radius: 12px; cursor: pointer;
}
.nav-toggle-bars { display: grid; gap: 5px; justify-items: center; }
.nav-toggle-bars span {
  display: block; width: 17px; height: 2px; border-radius: 2px; background: var(--ink);
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:last-child  { transform: translateY(-3.5px) rotate(-45deg); }

.mobile-nav {
  border-top: 1px solid var(--line);
  background: var(--paper);
  padding-block: var(--s-4) var(--s-5);
  max-height: calc(100dvh - 72px);
  overflow-y: auto;
}
.mobile-list { list-style: none; margin: 0 0 var(--s-4); padding: 0; }
.mobile-list > li { margin: 0; border-bottom: 1px solid var(--line); }
.mobile-list > li > a {
  display: block; padding: .85rem 0; font-family: var(--display);
  font-weight: 600; font-size: var(--t-md); text-decoration: none; color: var(--ink);
}
.mobile-list ul { list-style: none; margin: 0 0 .8rem; padding: 0 0 0 .9rem; }
.mobile-list ul a {
  display: block; padding: .38rem 0; font-size: var(--t-sm);
  color: var(--text-soft); text-decoration: none;
}

/* ---------- 5. Buttons ---------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .82rem 1.5rem;
  font-family: var(--body); font-size: var(--t-sm); font-weight: 600;
  line-height: 1.2; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; border-radius: 999px; cursor: pointer;
  transition: transform .16s var(--ease), box-shadow .18s var(--ease),
              background .18s var(--ease), color .18s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-sm  { padding: .58rem 1.1rem; font-size: var(--t-sm); }
.btn-lg  { padding: 1rem 1.9rem;   font-size: var(--t-base); }
.btn-block { width: 100%; }

.btn-primary {
  background: linear-gradient(135deg, var(--ember) 0%, #FF8A4D 100%);
  color: #fff; box-shadow: var(--glow-peach);
}
.btn-primary:hover { background: linear-gradient(135deg, var(--ember-deep) 0%, var(--ember) 100%); }

.btn-petal { background: var(--petal); color: var(--ink); }
.btn-petal:hover { background: #FFDCCB; }

.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); background: var(--petal-soft); }

/* Every dark surface, not only .section-ink — a ghost button on ink was
   rendering dark-on-dark and effectively disappearing. */
.section-ink .btn-ghost,
.hero .btn-ghost,
.cta-band .btn-ghost,
.card-ink .btn-ghost { border-color: var(--line-ink); color: var(--petal); background: transparent; }
.section-ink .btn-ghost:hover,
.hero .btn-ghost:hover,
.cta-band .btn-ghost:hover,
.card-ink .btn-ghost:hover { background: rgba(255, 205, 184, .12); border-color: var(--petal); color: #fff; }

/* ---------- 6. Hero -------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--on-ink);
  padding-block: clamp(2.75rem, 6vw, 4.5rem) clamp(3rem, 7vw, 5rem);
}
/* Two soft peach light sources, offset — the vibrancy comes from these
   sitting on near-black, not from saturating the whole surface. */
.hero::before {
  content: ''; position: absolute; border-radius: 50%; pointer-events: none;
  filter: blur(90px);
  width: 46rem; height: 46rem; top: -22rem; right: -14rem;
  background: radial-gradient(circle, rgba(255,122,77,.55), transparent 68%);
}
.hero .shell { position: relative; z-index: 1; }

.hero-grid {
  display: grid; gap: clamp(2.5rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .95fr);
  align-items: center;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .38rem .9rem .38rem .55rem; margin-bottom: var(--s-5);
  background: rgba(255, 205, 184, .1); border: 1px solid var(--line-ink);
  border-radius: 999px; font-size: var(--t-xs); font-weight: 500;
  color: var(--petal); letter-spacing: .01em;
}
.hero-kicker .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--signal);
  box-shadow: 0 0 0 4px rgba(47, 224, 192, .18);
  animation: pulse 2.6s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(47,224,192,.14); }
  50%      { box-shadow: 0 0 0 7px rgba(47,224,192,.04); }
}

.hero h1 { color: var(--paper); margin-bottom: var(--s-5); }
.hero-lede {
  font-size: clamp(1.05rem, 1.6vw, var(--t-md));
  color: var(--on-ink-soft); max-width: 34rem; margin-bottom: var(--s-6);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: var(--s-7); }

.hero-stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
  padding-top: var(--s-5); border-top: 1px solid var(--line-ink);
}
.hero-stat dt {
  font-family: var(--display); font-size: var(--t-lg); font-weight: 600;
  color: var(--petal); letter-spacing: -.03em; line-height: 1.15;
}
.hero-stat dd {
  margin: .2rem 0 0; font-size: var(--t-xs); color: var(--on-ink-soft);
  max-width: 13rem; line-height: 1.45;
}

/* ---------- 7. Fleet panel (hero signature element) ------------------ */
.fleet {
  background: rgba(255, 255, 255, .045);
  border: 1px solid var(--line-ink);
  border-radius: var(--radius-xl);
  padding: 1.15rem;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(6px);
}
.fleet-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-4); padding: .2rem .35rem .9rem;
  border-bottom: 1px solid var(--line-ink);
}
.fleet-title { font-family: var(--display); font-size: var(--t-sm); font-weight: 600; color: var(--paper); }
.fleet-live {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: var(--t-xs); color: var(--signal);
}
.fleet-live::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--signal); animation: pulse 2.6s var(--ease) infinite;
}

.fleet-metrics {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: .6rem; padding: .9rem 0;
}
.fleet-metric {
  background: rgba(255, 255, 255, .04); border-radius: 12px; padding: .7rem .8rem;
}
.fleet-metric .v {
  font-family: var(--display); font-size: 1.1rem; font-weight: 600; color: var(--paper);
  letter-spacing: -.02em;
}
.fleet-metric .k { font-size: .68rem; color: var(--on-ink-soft); }
.fleet-metric .v .unit { font-size: .7rem; color: var(--petal); margin-left: .15rem; }

/* Device grid: each tile is one CPE, coloured by state. */
.fleet-grid {
  display: grid; grid-template-columns: repeat(16, 1fr);
  gap: 4px; padding: .9rem 0 .5rem;
}
.fleet-cell {
  aspect-ratio: 1; border-radius: 3px;
  background: rgba(255, 205, 184, .16);
}
.fleet-cell.ok   { background: rgba(47, 224, 192, .55); }
.fleet-cell.warn { background: var(--petal-mid); }
.fleet-cell.bad  { background: var(--ember); box-shadow: 0 0 8px rgba(255,106,61,.6); }
.fleet-cell.live { animation: cellpulse 3.4s var(--ease) infinite; }
@keyframes cellpulse { 0%,100% { opacity: 1; } 50% { opacity: .58; } }

.fleet-legend {
  display: flex; flex-wrap: wrap; gap: .9rem;
  padding-top: .7rem; border-top: 1px solid var(--line-ink);
  font-size: .7rem; color: var(--on-ink-soft);
}
.fleet-legend span { display: inline-flex; align-items: center; gap: .35rem; }
.fleet-legend i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }

/* ---------- 8. Cards ------------------------------------------------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--s-5);
}
.card h3 { margin-bottom: .5rem; }
.card p:last-child { margin-bottom: 0; }
.card-link { text-decoration: none; display: block; transition: border-color .18s var(--ease), box-shadow .18s var(--ease); }
.card-link:hover { border-color: var(--petal-mid); box-shadow: var(--shadow-md); }

.card-soft { background: var(--petal-soft); border-color: transparent; }
.card-ink  { background: var(--ink-2); border-color: var(--line-ink); color: var(--on-ink); }
.card-ink h3 { color: var(--paper); }
.card-ink p  { color: var(--on-ink-soft); }

.card-meta {
  font-size: var(--t-xs); color: var(--text-faint);
  display: flex; flex-wrap: wrap; gap: .5rem; align-items: center;
}
.card-meta .sep { color: var(--line-strong); }

/* Problem slices — deliberately not identical rounded cards */
.slice-list { display: grid; gap: 0; border-top: 1px solid var(--line-ink); }
.slice {
  display: grid; grid-template-columns: 12rem 1fr; gap: var(--s-4);
  padding: 1.1rem .25rem; border-bottom: 1px solid var(--line-ink);
  align-items: baseline;
}
.slice dt { font-family: var(--display); font-weight: 600; color: var(--petal); }
.slice dd { margin: 0; color: var(--on-ink-soft); font-size: var(--t-sm); }

.cost-list { list-style: none; margin: var(--s-6) 0 0; padding: 0; display: grid; gap: .55rem; }
.cost-list li {
  display: flex; gap: .7rem; align-items: flex-start;
  font-size: var(--t-sm); color: var(--on-ink-soft); margin: 0;
}
.cost-list li::before {
  content: ''; flex: 0 0 auto; width: 6px; height: 6px; margin-top: .55rem;
  border-radius: 2px; background: var(--ember);
}

/* ---------- 9. Platform sequence (Monitor → Operate) ----------------- */
.seq { display: grid; grid-template-columns: 15rem 1fr; gap: clamp(1.5rem, 4vw, 3rem); }
.seq-nav { list-style: none; margin: 0; padding: 0; position: sticky; top: 96px; align-self: start; }
.seq-nav li { margin: 0; }
.seq-btn {
  display: flex; align-items: center; gap: .75rem; width: 100%;
  padding: .7rem .85rem; border: 0; border-radius: 12px;
  background: none; font: inherit; font-size: var(--t-sm); font-weight: 500;
  color: var(--text-soft); text-align: left; cursor: pointer;
  transition: background .16s var(--ease), color .16s var(--ease);
}
.seq-btn .n {
  font-family: var(--display); font-size: var(--t-xs); font-weight: 600;
  color: var(--text-faint); min-width: 1.3rem;
}
.seq-btn:hover { background: var(--petal-soft); color: var(--ink); }
.seq-btn[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.seq-btn[aria-selected="true"] .n { color: var(--petal); }

.seq-panel { min-height: 15rem; }
.seq-panel[hidden] { display: none; }
.seq-panel h3 { font-size: var(--t-xl); margin-bottom: var(--s-4); }
.seq-panel > p { font-size: var(--t-md); color: var(--text-soft); }
.seq-points { list-style: none; margin: var(--s-5) 0 0; padding: 0; display: grid; gap: .6rem; }
.seq-points li { display: flex; gap: .65rem; align-items: flex-start; margin: 0; font-size: var(--t-sm); }
.seq-points li::before {
  content: ''; flex: 0 0 auto; width: 18px; height: 18px; margin-top: .18rem;
  border-radius: 50%; background: var(--petal-soft);
  box-shadow: inset 0 0 0 5px var(--ember);
}

/* ---------- 10. Capability grid -------------------------------------- */
.cap-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.cap { background: var(--paper); padding: var(--s-5); }
.cap h3 { font-size: var(--t-base); margin-bottom: .35rem; }
.cap p { font-size: var(--t-sm); color: var(--text-soft); margin: 0; }

/* ---------- 11. Comparison table ------------------------------------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--line); }
table.compare { width: 100%; border-collapse: collapse; font-size: var(--t-sm); min-width: 40rem; background: var(--paper); }
table.compare th, table.compare td { padding: 1rem 1.2rem; text-align: left; vertical-align: top; }
table.compare thead th {
  background: var(--ink); color: var(--paper); font-family: var(--display);
  font-size: var(--t-sm); font-weight: 600;
}
table.compare thead th:nth-child(2) { color: var(--petal); }
table.compare tbody tr + tr { border-top: 1px solid var(--line); }
table.compare tbody th { font-weight: 600; color: var(--ink); width: 14rem; }
table.compare td:nth-child(2) { background: var(--petal-tint); font-weight: 500; }
table.compare td:last-child { color: var(--text-soft); }

/* ---------- 12. Outcomes / stats ------------------------------------- */
.outcome { padding: var(--s-5); border-radius: var(--radius-lg); background: var(--paper); border: 1px solid var(--line); }
.outcome h3 { font-size: var(--t-base); color: var(--ember-deep); margin-bottom: .35rem; }
.outcome p { font-size: var(--t-sm); color: var(--text-soft); margin: 0; }

.logo-wall { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: var(--s-5); padding: 0; list-style: none; }
.logo-wall li {
  margin: 0; padding: .5rem 1rem; border-radius: 999px;
  background: rgba(255,255,255,.05); border: 1px solid var(--line-ink);
  font-size: var(--t-sm); color: var(--petal);
}

/* ---------- 13. FAQ (details/summary, works without JS) -------------- */
.faq { display: grid; gap: .6rem; max-width: 52rem; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); overflow: hidden;
}
.faq details[open] { border-color: var(--petal-mid); }
.faq summary {
  padding: 1rem 1.2rem; cursor: pointer; list-style: none;
  font-family: var(--display); font-weight: 600; font-size: var(--t-base);
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; font-size: 1.3rem; color: var(--ember); line-height: 1; flex-shrink: 0;
  transition: transform .2s var(--ease);
}
.faq details[open] summary::after { content: '\2013'; }
.faq .faq-body { padding: 0 1.2rem 1.1rem; }
.faq .faq-body p { margin: 0; color: var(--text-soft); font-size: var(--t-sm); }

/* ---------- 14. Forms ------------------------------------------------ */
.form-shell {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 26rem);
  gap: clamp(2rem, 5vw, 4rem); align-items: start;
}
.form-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-xl); padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-md);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.field { margin-bottom: var(--s-4); }
.field label {
  display: block; margin-bottom: .35rem;
  font-size: var(--t-sm); font-weight: 600; color: var(--ink);
}
.field .req { color: var(--ember); }
.field .hint { display: block; font-weight: 400; font-size: var(--t-xs); color: var(--text-faint); margin-top: .1rem; }

.field input[type="text"], .field input[type="email"], .field input[type="tel"],
.field select, .field textarea {
  width: 100%; padding: .75rem .9rem;
  font: inherit; font-size: var(--t-sm); color: var(--text);
  background: var(--petal-tint); border: 1px solid var(--line-strong);
  border-radius: 11px; transition: border-color .16s var(--ease), background .16s var(--ease);
}
.field textarea { min-height: 7rem; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%235C5473' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center; padding-right: 2.2rem; }
.field input:focus, .field select:focus, .field textarea:focus {
  background: var(--paper); border-color: var(--ember);
}
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] {
  border-color: var(--ember-deep); background: #FFF4F0;
}
.field-error { display: block; margin-top: .3rem; font-size: var(--t-xs); color: var(--ember-deep); font-weight: 500; }

.check { display: flex; gap: .7rem; align-items: flex-start; }
.check input { margin-top: .25rem; width: 18px; height: 18px; accent-color: var(--ember); flex-shrink: 0; }
.check label { font-weight: 400; font-size: var(--t-sm); color: var(--text-soft); margin: 0; }

/* Honeypot: off-screen rather than display:none, which some bots detect. */
.hp-field {
  position: absolute !important; left: -9999px !important; top: auto !important;
  width: 1px !important; height: 1px !important; overflow: hidden !important;
}

.form-note { font-size: var(--t-xs); color: var(--text-faint); margin-top: var(--s-4); }

.alert { padding: 1rem 1.15rem; border-radius: var(--radius); margin-bottom: var(--s-5); font-size: var(--t-sm); }
.alert p:last-child { margin-bottom: 0; }
.alert-error   { background: #FFF1EC; border: 1px solid #FFC7B2; color: #9A3512; }
.alert-success { background: #E9FBF6; border: 1px solid #A6EBDA; color: #10604F; }

.success-panel { text-align: left; }
.success-panel .tick {
  width: 46px; height: 46px; border-radius: 50%; background: var(--signal);
  display: grid; place-items: center; margin-bottom: var(--s-4);
}

/* ---------- 15. Breadcrumb ------------------------------------------- */
.breadcrumb { background: var(--petal-tint); border-bottom: 1px solid var(--line); }
.breadcrumb ol {
  display: flex; flex-wrap: wrap; gap: .45rem; align-items: center;
  list-style: none; margin: 0; padding: .7rem 0; font-size: var(--t-xs);
}
.breadcrumb li { margin: 0; display: flex; align-items: center; gap: .45rem; color: var(--text-faint); }
.breadcrumb li + li::before { content: '/'; color: var(--line-strong); }
.breadcrumb a { color: var(--text-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--ember-deep); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 500; }

/* ---------- 16. Article / prose -------------------------------------- */
.prose { max-width: 44rem; }
.prose h2 { font-size: var(--t-xl); margin-top: var(--s-7); }
.prose h3 { margin-top: var(--s-6); }
.prose p, .prose li { font-size: var(--t-md); line-height: 1.75; color: #2B2540; }
.prose a { color: var(--ember-deep); text-underline-offset: 3px; }
.prose blockquote {
  margin: var(--s-6) 0; padding: var(--s-4) var(--s-5);
  background: var(--petal-soft); border-radius: var(--radius);
  font-size: var(--t-md);
}
.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em;
  background: var(--petal-soft); padding: .12em .4em; border-radius: 5px;
}
.article-head { max-width: 44rem; }
.article-meta {
  display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; align-items: center;
  font-size: var(--t-xs); color: var(--text-faint);
  padding-bottom: var(--s-5); border-bottom: 1px solid var(--line); margin-bottom: var(--s-6);
}

.tag {
  display: inline-block; padding: .22rem .6rem; border-radius: 6px;
  background: var(--petal-soft); color: var(--ember-deep);
  font-size: var(--t-xs); font-weight: 600;
}

/* ---------- 17. Definition list (technology pages) ------------------- */
.qa { display: grid; gap: var(--s-6); max-width: 46rem; }
.qa-item h2 { font-size: var(--t-lg); margin-bottom: .6rem; }
.qa-item p { color: var(--text-soft); margin: 0; }

.term-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.term-list li { margin: 0; background: var(--paper); }
.term-list a { display: block; padding: 1rem 1.2rem; text-decoration: none; transition: background .14s var(--ease); }
.term-list a:hover { background: var(--petal-soft); }
.term-list strong { display: block; font-family: var(--display); color: var(--ink); }
.term-list span { font-size: var(--t-sm); color: var(--text-soft); }

/* ---------- 18. CTA band --------------------------------------------- */
.cta-band {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--on-ink);
  border-radius: var(--radius-xl); padding: clamp(2rem, 5vw, 3.5rem);
}
.cta-band::before {
  content: ''; position: absolute; width: 30rem; height: 30rem;
  top: -16rem; right: -8rem; border-radius: 50%; filter: blur(70px);
  background: radial-gradient(circle, rgba(255,122,77,.5), transparent 70%);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: var(--paper); max-width: 24ch; }
.cta-band p { color: var(--on-ink-soft); max-width: 46ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: var(--s-5); }

/* ---------- 19. Footer ----------------------------------------------- */
.site-footer { background: var(--ink); color: var(--on-ink-soft); padding-block: var(--s-8) var(--s-5); margin-top: 0; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.1fr); gap: var(--s-7); padding-bottom: var(--s-7); }
.footer-brand .brand-word { color: var(--paper); font-size: 1.4rem; display: block; margin-bottom: .8rem; }
.footer-brand p { font-size: var(--t-sm); max-width: 26ch; }
.footer-mail { color: var(--petal); font-size: var(--t-sm); text-decoration: none; }
.footer-mail:hover { text-decoration: underline; }

.footer-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: var(--s-5); }
.footer-col h2 { font-size: var(--t-xs); font-weight: 600; color: var(--paper); margin-bottom: .8rem; letter-spacing: 0; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: .5rem; }
.footer-col a { font-size: var(--t-sm); color: var(--on-ink-soft); text-decoration: none; }
.footer-col a:hover { color: var(--petal); }

.footer-signup {
  display: flex; flex-wrap: wrap; gap: var(--s-5); align-items: center; justify-content: space-between;
  padding: var(--s-5) 0; border-block: 1px solid var(--line-ink);
}
.footer-signup h2 { font-size: var(--t-md); color: var(--paper); margin-bottom: .25rem; }
.footer-signup p { font-size: var(--t-sm); margin: 0; max-width: 44ch; }

.footer-bottom {
  display: flex; flex-wrap: wrap; gap: var(--s-4); align-items: center; justify-content: space-between;
  padding-top: var(--s-5); font-size: var(--t-xs);
}
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; gap: 1.1rem; list-style: none; margin: 0; padding: 0; }
.footer-legal li { margin: 0; }
.footer-legal a { color: var(--on-ink-soft); text-decoration: none; }
.footer-legal a:hover { color: var(--petal); }

/* ---------- 20. Utility ---------------------------------------------- */
.lede { font-size: var(--t-md); color: var(--text-soft); }
.center { text-align: center; margin-inline: auto; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: var(--s-4); }
.pill-row { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.pill {
  padding: .35rem .8rem; border-radius: 999px; background: var(--petal-soft);
  font-size: var(--t-xs); font-weight: 500; color: var(--ember-deep); margin: 0;
}
.divider { height: 1px; background: var(--line); border: 0; margin-block: var(--s-7); }

.empty-state {
  padding: var(--s-7); text-align: center; border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg); color: var(--text-soft);
}

/* ---------- 21. Responsive ------------------------------------------- */
@media (max-width: 1040px) {
  .primary-nav, .header-actions { display: none; }
  .nav-toggle { display: grid; place-items: center; }
  .hero-grid { grid-template-columns: 1fr; }
  .seq { grid-template-columns: 1fr; }
  .seq-nav {
    position: static; display: flex; gap: .4rem; overflow-x: auto;
    padding-bottom: .5rem; margin-bottom: var(--s-5);
    border-bottom: 1px solid var(--line);
  }
  .seq-btn { white-space: nowrap; }
  .form-shell { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  :root { --t-2xl: 1.85rem; --t-xl: 1.45rem; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .slice { grid-template-columns: 1fr; gap: .2rem; padding: .9rem .25rem; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
  .hero-stat dd { max-width: none; }
  .fleet-grid { grid-template-columns: repeat(12, 1fr); }
  .fleet-metrics { grid-template-columns: 1fr 1fr; }
  .fleet-metrics .fleet-metric:last-child { grid-column: 1 / -1; }
  .footer-signup { flex-direction: column; align-items: flex-start; }
}

/* ---------- 22. Print ------------------------------------------------ */
@media print {
  .site-header, .site-footer, .cta-band, .nav-toggle, .breadcrumb { display: none; }
  body { color: #000; background: #fff; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; }
}

/* ---------- 23. Utilities -------------------------------------------
   The Content-Security-Policy blocks inline style attributes (a nonce
   authorises <style> elements, not style="..." attributes), so every
   presentational tweak lives here as a class instead. ------------------ */

/* type */
.t-sm       { font-size: var(--t-sm); }
.t-base     { font-size: var(--t-base); }
.t-lg       { font-size: var(--t-lg); }
.t-stat     { font-size: var(--t-2xl); color: var(--ember-deep); }
.t-hero     { font-size: clamp(2rem, 4vw, 3rem); }
.t-hero-lg  { font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
.t-soft     { color: var(--text-soft); }
.t-faint    { color: var(--text-faint); }
.t-ink      { color: var(--ink); }
.t-white    { color: #fff; }
.t-petal    { color: var(--petal); }
.t-on-ink   { color: var(--on-ink-soft); }
.t-accent   { color: var(--ember-deep); }
.t-sm-soft  { font-size: var(--t-sm); color: var(--text-soft); }
.t-sm-accent{ font-size: var(--t-sm); color: var(--ember-deep); }
.t-sm-petal { font-size: var(--t-sm); color: var(--petal); }
.t-sm-on-ink{ font-size: var(--t-sm); color: var(--on-ink-soft); }
.t-xs-on-ink{ font-size: var(--t-xs); color: var(--on-ink-soft); }
.t-link-bold{ color: var(--ember-deep); font-weight: 600; font-size: var(--t-sm); }
.plain-link { text-decoration: none; }

/* spacing */
.m-0    { margin: 0; }
.mt-sm  { margin-top: .6rem; }
.mt-md  { margin-top: .7rem; }
.mt-1   { margin-top: 1rem; }
.mt-2   { margin-top: 1.5rem; }
.mt-3   { margin-top: 2rem; }
.mt-4   { margin-top: 2.5rem; }
.mb-xs  { margin-bottom: .4rem; }
.mb-sm  { margin-bottom: .5rem; }
.mb-md  { margin-bottom: .6rem; }
.mb-1   { margin-bottom: 1rem; }
.mb-2   { margin-bottom: 1.2rem; }
.mb-3   { margin-bottom: 1.5rem; }
.my-2   { margin: 1.5rem 0 2.5rem; }
.my-3   { margin: 2rem 0; }

/* layout helpers */
.items-center { align-items: center; }
.items-start  { align-items: start; }
.gap-lg       { gap: clamp(2rem, 5vw, 4rem); }
.gap-md       { gap: clamp(2rem, 5vw, 3.5rem); }
.above        { position: relative; z-index: 1; }
.push-right   { margin-left: auto; }
.plain-list   { list-style: none; padding: 0; margin: 0; }
.input-row    { display: flex; gap: .6rem; }
.input-row input { background: #fff; }

/* measures */
.w-14ch { max-width: 14ch; } .w-16ch { max-width: 16ch; } .w-18ch { max-width: 18ch; }
.w-20ch { max-width: 20ch; } .w-50ch { max-width: 50ch; } .w-52ch { max-width: 52ch; }
.w-54ch { max-width: 54ch; } .w-56ch { max-width: 56ch; }
.w-28   { max-width: 28rem; } .w-34 { max-width: 34rem; } .w-36 { max-width: 36rem; }
.w-38   { max-width: 38rem; } .w-44 { max-width: 44rem; }

/* Inner-page hero: same ink-and-glow treatment as the homepage, reused. */
.page-hero { background: var(--ink); color: var(--on-ink); position: relative; overflow: hidden; }
.page-hero.is-tall { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.page-hero h1 { color: #fff; }
.page-hero-blob {
  position: absolute; border-radius: 50%; pointer-events: none;
  width: 38rem; height: 38rem; top: -22rem; right: -11rem; filter: blur(85px);
  background: radial-gradient(circle, rgba(255,122,77,.44), transparent 70%);
}

/* Filter pills that show an active state */
.pill.is-on { background: var(--ink); color: #fff; }

/* Contact panel */
.panel-ink {
  background: var(--ink); border-color: transparent; color: var(--on-ink);
  padding: 2rem; border-radius: var(--radius-xl);
}
.panel-ink h2 { color: #fff; }

/* Confirmation tick, larger variant used on the verify page */
.tick-lg {
  width: 52px; height: 52px; border-radius: 50%; background: var(--signal);
  display: grid; place-items: center; margin-bottom: 1.5rem;
}

/* Legend swatches in the fleet panel */
.sw-ok   { background: rgba(47, 224, 192, .55); }
.sw-warn { background: var(--petal-mid); }
.sw-bad  { background: var(--ember); }

/* Product page "who it's for" body text */
.fleet-body { color: var(--on-ink-soft); font-size: var(--t-sm); padding: .9rem .25rem 0; margin: 0; }

address.office { font-style: normal; color: var(--text-soft); font-size: var(--t-sm); line-height: 1.9; }
