
/* =============================================================================
   encodedbrands.ai homepage
   Built on the Encoded Brands design system (/ds/encoded.css).

   Identity rules: white, ink, and International Orange. Edges are inset rings,
   never drop shadows. Display type is Aeonik, body is Inter, labels are mono.
   ========================================================================== */

/* ----------------------------------------------------------------- hero --- */

.hero {
  position: relative;
  border-radius: var(--ec-radius-md);
  overflow: hidden;
  background: url("/ds/img/hero-landing.jpg") 50% 42% / cover no-repeat;
  background-color: var(--ec-neutral-900);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,10,10,.72) 0%, rgba(10,10,10,.72) 52%, rgba(10,10,10,.65) 100%);
}
.hero-row { position: relative; padding: 47px 41px 64px; display: flex; flex-direction: column; gap: 96px; }
/* The vertical rail and red bar belong to the retired identity. */
.hero-rail { display: none; }
.hero-main { display: block; }
.hero-body { display: flex; gap: 64px; align-items: flex-end; padding: 0 11px; }
.hero-copy { flex: 1; display: flex; flex-direction: column; gap: 26px; min-width: 0; max-width: 850px; }

.hero-eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--ec-font-mono);
  font-size: var(--ec-label-sm-size);
  letter-spacing: var(--ec-label-sm-ls);
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
}

.hero-headline {
  margin: 0;
  max-width: 860px;
  font-family: var(--ec-font-display);
  font-weight: 500;
  font-size: var(--ec-display-xl-size);
  line-height: var(--ec-display-xl-lh);
  letter-spacing: var(--ec-display-xl-ls);
  color: #fff;
}
.hero-headline > span { display: block; white-space: nowrap; }
.hero-headline { font-size: clamp(42px, 4.5vw, 72px); line-height: 1; text-wrap: balance; }
@media (max-width: 640px) { .hero-headline > span { white-space: normal; } }

.hero-sub {
  margin: 0;
  max-width: 520px;
  font-family: var(--ec-font-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 26px;
  color: rgba(255,255,255,.88);
}
.hero-sub-line { display: inline; }

.hero-cta { display: flex; gap: 10px; align-items: center; margin-top: var(--ec-space-2); flex-wrap: wrap; }
.hero-cta .btn.primary { min-width: 220px; }
.hero-cta .btn.ghost {
  background: transparent;
  color: #fff;
  opacity: .85;
  padding: 0 14px;
  height: auto;
  min-width: 0;
}
.hero-cta .btn.ghost:hover { background: transparent; color: #fff; opacity: 1; }

.hero-diagram { width: 560px; flex-shrink: 0; }
.hero-code-offset,
.dogfood-code-offset { position: relative; }
/* Code cards paint above the offset block behind them. */
.hero-code-offset .bd-file,
.dogfood-code-offset > .bd-file { position: relative; z-index: 1; }

.connector-line {
  margin: 0; padding: 16px 18px;
  font-family: var(--ec-font-mono); font-size: 11px; line-height: 1.6;
  letter-spacing: 1px; color: var(--ec-text-secondary);
}
.foot .locale-control { color: var(--ec-text-inverse); }
.foot .locale-select { background: var(--ec-neutral-0); color: var(--ec-text-primary); }
.hero-code-offset .bd-file, .hero-code-offset .bd-file-head, .hero-code-offset .bd-file-body {
  background: var(--ec-neutral-900);
}
.hero-code-offset .bd-file-name { font-size: 12px; overflow-wrap: anywhere; }
.hero-code-offset .bd-file-head { border-bottom: 1px solid var(--ec-code-punct); }
.hero-code-offset .bd-file-pre { color: var(--ec-code-fg); }
.hero-code-offset .bd-file-pre .key { color: var(--ec-code-key); }
.hero-code-offset .bd-file-pre .val { color: var(--ec-code-string); }
.hero-code-offset .bd-file-pre .yaml-delim { color: var(--ec-code-punct); }

/* --------------------------------------------------------- mobile CTA ---- */

.mobile-convert-cta { display: none; }

/* --------------------------------------------------------- logo parade --- */

.logo-parade {
  padding: 0 28px;
  display: flex;
  flex-direction: column;
  gap: var(--ec-space-6);
}
.parade-label {
  font-family: var(--ec-font-mono);
  font-size: var(--ec-label-sm-size);
  letter-spacing: var(--ec-label-sm-ls);
  text-transform: uppercase;
  color: var(--ec-text-tertiary);
}
.parade-track-wrap {
  overflow: hidden;
  border-radius: var(--ec-radius-md);
  background: var(--ec-surface);
  box-shadow: var(--ec-ring-subtle);
  padding: var(--ec-space-5) 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.parade-track { display: flex; align-items: center; gap: 40px; width: max-content; animation: ec-marquee 46s linear infinite; }
.parade-item { display: inline-flex; align-items: center; gap: var(--ec-space-2); flex-shrink: 0; }
.parade-icon { width: 18px; height: 18px; display: block; opacity: .75; }
.parade-name {
  font-family: var(--ec-font-mono);
  font-size: var(--ec-label-sm-size);
  letter-spacing: var(--ec-label-sm-ls);
  text-transform: uppercase;
  color: var(--ec-text-secondary);
  white-space: nowrap;
}
.parade-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--ec-text-primary); flex-shrink: 0; }

/* ------------------------------------------------------- spark starter --- */

.spark-section { padding: 0 28px; display: flex; flex-direction: column; gap: 50px; }
.spark-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 70px;
  align-items: start;
}
.spark-copy { display: flex; flex-direction: column; gap: var(--ec-space-8); }
.spark-title {
  margin: 0;
  font-family: var(--ec-font-display);
  font-weight: 500;
  font-size: var(--ec-h1-size);
  line-height: var(--ec-h1-lh);
  letter-spacing: var(--ec-h1-ls);
  color: var(--ec-text-primary);
  max-width: 900px;
}
.spark-copy p {
  margin: 0;
  font-family: var(--ec-font-body);
  font-weight: 300;
  font-size: var(--ec-body-size);
  line-height: var(--ec-body-lh);
  color: var(--ec-text-primary);
}

.spark-starter-card {
  display: flex;
  flex-direction: column;
}
/* The filename bar and the code body are one card, so nothing sits between
   them. The spacing belongs below, before the copy action. */
.spark-starter-card > .spark-copy-status { margin-top: 12px; }
.spark-starter-card > .spark-actions { margin-top: 12px; }
.spark-starter-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  border-radius: var(--ec-radius-md) var(--ec-radius-md) 0 0;
  background: var(--ec-code-bg);
  border-bottom: 1px solid rgba(255,255,255,.1);
  font-family: var(--ec-font-mono);
  font-size: 11px;
  line-height: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
}
.spark-starter-line {
  margin: 0;
  padding: 16px;
  border-radius: 0 0 var(--ec-radius-md) var(--ec-radius-md);
  background: var(--ec-code-bg);
  color: var(--ec-code-fg);
  font-family: var(--ec-font-mono);
  font-size: 12px;
  line-height: 19.2px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.spark-actions { display: flex; align-items: center; gap: var(--ec-space-4); }
.spark-copy-status {
  margin: 0;
  font-family: var(--ec-font-mono);
  font-size: var(--ec-label-sm-size);
  letter-spacing: var(--ec-label-sm-ls);
  text-transform: uppercase;
  color: var(--ec-text-tertiary);
}

/* ------------------------------------------------------- § what we do ---- */

.bd { display: flex; flex-direction: column; gap: 40px; }
#bcp > .t-eyebrow { margin-bottom: 40px; }
.bd-head { display: flex; gap: 70px; align-items: flex-end; justify-content: space-between; }
.bd-head-copy { flex: 1; min-width: 0; }
.bd-headline { margin: 0; }

.bd-svg { width: 100%; height: auto; display: block; overflow: visible; }
/* The centre card is drawn into a fixed 300x300 foreignObject, so its inner
   rhythm is tighter than the free-standing code cards. */
.bd-svg .bd-file-body { padding: 14px 16px; }
.bd-svg .bd-file-rule { margin: 10px 0; }
.bd-svg .bd-file-list { gap: 6px; margin-top: 8px; }
.bd-svg .bd-file-item { font-size: 12px; }
.bd-line { stroke: var(--ec-neutral-200); }
.bd-dash { animation: ec-dash 2.6s linear infinite; }

.bd-a-card,
.bd-b-card {
  box-sizing: border-box;
  width: 100%; height: 100%;
  background: var(--ec-neutral-0);
  border-radius: var(--ec-radius-md);
  box-shadow: var(--ec-ring-subtle);
  transition: opacity .7s var(--ec-ease-standard), transform .7s var(--ec-ease-standard);
}
.bd-a-card {
  display: flex; align-items: center;
  padding: 0 18px;
  font-family: var(--ec-font-display);
  font-weight: 500; font-size: 18px; letter-spacing: -0.4px;
  color: var(--ec-text-primary);
}
.bd-b-card { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.bd-b-idx {
  font-family: var(--ec-font-mono);
  font-size: var(--ec-label-xs-size);
  letter-spacing: var(--ec-label-xs-ls);
  text-transform: uppercase;
  color: var(--ec-orange-500);
}
.bd-b-title {
  font-family: var(--ec-font-display);
  font-weight: 500; font-size: 19px; line-height: 22px; letter-spacing: -0.5px;
  color: var(--ec-text-primary);
}
.bd-b-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.bd-chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--ec-font-mono);
  font-size: 9.5px;
  color: var(--ec-text-secondary);
  padding: 4px 7px;
  border-radius: var(--ec-radius-status);
  background: var(--ec-surface-muted);
  white-space: nowrap;
}
.bd-chip img { width: 10px; height: 10px; display: block; }

.bd-toggle-wrap { display: flex; justify-content: center; }
.bd-toggle {
  display: inline-flex;
  padding: 4px; gap: 4px;
  border-radius: var(--ec-radius-md);
  background: var(--ec-neutral-0);
  box-shadow: var(--ec-ring-subtle);
}
.bd-toggle-btn {
  height: 36px; padding: 0 18px;
  border: 0; cursor: pointer;
  border-radius: var(--ec-radius-xs);
  background: transparent;
  color: var(--ec-text-secondary);
  font-family: var(--ec-font-mono);
  font-size: var(--ec-label-sm-size);
  letter-spacing: var(--ec-label-sm-ls);
  text-transform: uppercase;
  transition: background-color .35s var(--ec-ease-standard), color .35s var(--ec-ease-standard);
}
.bd-toggle-btn.active { background: var(--ec-neutral-800); color: #fff; }

.bd-mobile { display: none; }
/* Prevent a subpixel overflow from the clipped accessibility text on iOS. */
@media (max-width: 640px) { .ec-page { overflow-x: clip; } }
/* Native HTML avoids Safari foreignObject clipping/compositing on every iPad
   size, including landscape. Hidden phases leave no partially masked layer. */
@media (max-width: 1366px), (hover: none) and (pointer: coarse) {
  .bd-svg { display: none; }
  .bd-mobile { display: block; width: 100%; max-width: 720px; margin-inline: auto; }
  .bd-mobile-team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bd-mobile-team { min-width: 0; overflow-wrap: anywhere; }
}
.bd-mobile-label { font-family: var(--ec-font-mono); font-size: 11px; text-transform: uppercase; color: var(--ec-text-secondary); margin-bottom: 16px; }
.bd-mobile-team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bd-mobile-team, .bd-mobile-destination { padding: 14px; border-radius: var(--ec-radius-md); background: var(--ec-neutral-0); box-shadow: var(--ec-ring-subtle); }
.bd-mobile-team { font-family: var(--ec-font-mono); font-size: 12px; }
.bd-mobile-flow { height: 32px; width: 1px; margin: 0 auto; background: var(--ec-border-strong); }
.bd-mobile-file { border-radius: var(--ec-radius-md); overflow: hidden; background: var(--ec-neutral-0); box-shadow: var(--ec-ring-subtle); }
.bd-mobile-file-head { background: var(--ec-neutral-800); color: var(--ec-text-inverse); padding: 14px 18px; }
.bd-mobile-file-name { display: flex; align-items: center; gap: 10px; font: 12px var(--ec-font-mono); }
.bd-mobile-file-name img { width: 19px; height: 19px; }
.bd-mobile-file-body { padding: 18px; font: 12px/1.6 var(--ec-font-mono); }
.bd-mobile-file-path { color: var(--ec-text-secondary); margin-bottom: 16px; }
.bd-mobile-file-contents { display: grid; gap: 8px; }
.bd-mobile-destinations { display: grid; gap: 8px; }
.bd-mobile-destination { display: flex; flex-direction: column; gap: 8px; }
.bd-mobile-destination small { font: 10px var(--ec-font-mono); text-transform: uppercase; color: var(--ec-text-secondary); }
.bd-mobile-destination strong { font: 20px var(--ec-font-display); }
.bd[data-mode="in"] .bd-mobile-publishing, .bd[data-mode="out"] .bd-mobile-authoring { display: none; }

/* Editorial figures beside the What we do copy. */
.stat-grid { display: flex; gap: 40px; width: 560px; flex-shrink: 0; }
.stat-card { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 20px; max-width: 400px; overflow-wrap: anywhere; }
.stat-num {
  font-family: var(--ec-font-mono);
  font-weight: 400; font-size: 32px; line-height: 32px; letter-spacing: -2px;
  color: var(--ec-text-primary);
}
.stat-desc {
  font-family: var(--ec-font-body);
  font-weight: 300; font-size: var(--ec-body-sm-size); line-height: var(--ec-body-sm-lh); letter-spacing: .28px;
  color: var(--ec-text-primary);
}
.stat-source {
  font-family: var(--ec-font-mono);
  font-size: var(--ec-label-xs-size);
  letter-spacing: var(--ec-label-xs-ls);
  text-transform: uppercase;
  color: var(--ec-text-tertiary);
}

/* --------------------------------------------------- § why it matters ---- */

#why-it-matters > .wrap {
  background: url("/ds/img/gradient-dawn.png") 50% 50% / cover no-repeat;
  border-radius: var(--ec-radius-xl);
  padding: 48px 48px 44px;
  gap: 28px;
}
#why-it-matters > .t-eyebrow { max-width: none; margin: 0 0 28px; }
#why-it-matters .section-title { color: var(--ec-text-primary); }
#why-it-matters .section-lede { color: var(--ec-text-primary); }
/* Label across the top, then the heading and its lede side by side,
   both sitting on the same baseline. */
/* The heading block shares the card grid's columns, so the lede starts on
   the same edge as the second card rather than floating in its own rail. */
#why-it-matters .section-head > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--ec-space-4);
  align-items: end;
}
#why-it-matters .section-head .t-eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
#why-it-matters .section-title { grid-column: 1 / 2; }
#why-it-matters .section-lede { grid-column: 2 / -1; max-width: none; }

.control-grid { display: flex; gap: var(--ec-space-4); flex-wrap: wrap; }
.control-card {
  flex: 1; min-width: 260px;
  display: flex; flex-direction: column; gap: 10px;
  padding: 22px 22px 20px;
  background: color-mix(in srgb, var(--ec-neutral-0) 72%, transparent);
  backdrop-filter: blur(12px);
  border-radius: var(--ec-radius-md);
}
.control-icon { display: none; }
.control-label {
  font-family: var(--ec-font-mono);
  font-size: var(--ec-label-sm-size);
  letter-spacing: var(--ec-label-sm-ls);
  text-transform: uppercase;
  color: var(--ec-orange-500);
}
.control-title {
  margin: 0;
  font-family: var(--ec-font-display);
  font-weight: 500; font-size: 28px; line-height: 31px; letter-spacing: -1px;
  color: var(--ec-text-primary);
}
.control-desc {
  margin: 0; flex: 1;
  font-family: var(--ec-font-body);
  font-weight: 300; font-size: 15px; line-height: 23px;
  color: var(--ec-text-primary);
}
.control-quote {
  margin-top: var(--ec-space-2);
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.14);
  font-family: var(--ec-font-body);
  font-weight: 300; font-size: 12px; line-height: 18px;
  color: var(--ec-text-secondary);
}
.control-source {
  font-family: var(--ec-font-mono);
  font-size: var(--ec-label-xs-size);
  letter-spacing: var(--ec-label-xs-ls);
  text-transform: uppercase;
  color: var(--ec-text-secondary);
}

/* --------------------------------------------------------- § process ----- */

#how .section-title { max-width: 640px; }

.steps { display: flex; gap: var(--ec-space-4); flex-wrap: wrap; }
.step {
  flex: 1; min-width: 260px;
  display: flex; flex-direction: column; gap: var(--ec-space-4);
  padding: 28px 26px;
  background: var(--ec-neutral-0);
  border-radius: var(--ec-radius-md);
  box-shadow: var(--ec-ring-subtle);
}
.step-n {
  font-family: var(--ec-font-mono);
  font-size: var(--ec-label-sm-size);
  letter-spacing: var(--ec-label-sm-ls);
  text-transform: uppercase;
  color: var(--ec-orange-500);
}
.step-body { display: flex; flex-direction: column; gap: var(--ec-space-4); }
.step-body h3 {
  margin: 0;
  font-family: var(--ec-font-display);
  font-weight: 500; font-size: 28px; line-height: 31px; letter-spacing: -1px;
  color: var(--ec-text-primary);
}
.step-body h3 .em { display: inline; }
.step-body p {
  margin: 0;
  font-family: var(--ec-font-body);
  font-weight: 300; font-size: 15px; line-height: 23px;
  color: var(--ec-text-secondary);
}
.step-body p b { font-weight: 500; color: var(--ec-text-primary); }

/* --------------------------------------------------------- § pricing ----- */

.pricing-section { padding: 0 28px; }
.pricing-section > .wrap { display: flex; flex-direction: column; gap: 50px; }

.pricing-heading {
  margin: 0;
  font-family: var(--ec-font-display);
  font-weight: 500;
  font-size: var(--ec-h1-size);
  line-height: var(--ec-h1-lh);
  letter-spacing: var(--ec-h1-ls);
  color: var(--ec-text-primary);
  max-width: 620px;
}
.pricing-heading em { display: block; font-style: normal; }

.pricing-lede {
  margin: 0;
  max-width: 620px;
  font-family: var(--ec-font-body);
  font-weight: 300; font-size: var(--ec-body-size); line-height: var(--ec-body-lh);
  color: var(--ec-text-secondary);
}

.pricing-free-strip {
  display: flex;
  flex-direction: column;
  gap: var(--ec-space-8);
  align-items: stretch;
  flex-wrap: wrap;
  padding: 34px 32px;
  background: var(--ec-neutral-0);
  border-radius: var(--ec-radius-md);
  box-shadow: var(--ec-ring-subtle);
}
.pricing-free-strip p {
  margin: 0; flex: 1; min-width: 0;
  font-family: var(--ec-font-body);
  font-weight: 300; font-size: 15px; line-height: 23px;
  color: var(--ec-text-secondary);
}

.pricing-swipe-hint { display: none; }

.pricing-grid { display: flex; gap: var(--ec-space-4); flex-wrap: wrap; }

.pricing-card {
  flex: 1; min-width: 300px;
  display: flex; flex-direction: column; gap: 22px;
  padding: 34px 32px;
  border-radius: var(--ec-radius-md);
  background: var(--ec-neutral-0);
  color: var(--ec-text-primary);
  box-shadow: var(--ec-ring-subtle);
}
/* Certified is ink; the approved Dawn asset belongs to Enterprise. */
.pricing-card.featured {
  background: var(--ec-neutral-800);
  color: var(--ec-text-inverse);
  box-shadow: none;
}
.pricing-card.enterprise {
  background: url("/ds/img/gradient-dawn.png") 50% 50% / cover no-repeat;
  color: var(--ec-text-primary);
  box-shadow: none;
}

.card-name {
  font-family: var(--ec-font-mono);
  font-size: var(--ec-label-sm-size);
  letter-spacing: var(--ec-label-sm-ls);
  text-transform: uppercase;
  color: var(--ec-text-tertiary);
}
.pricing-card.featured .card-name { color: var(--ec-text-inverse-muted); }

.card-price {
  font-family: var(--ec-font-display);
  font-weight: 500; font-size: var(--ec-h2-size); line-height: var(--ec-h2-lh); letter-spacing: -1.7px;
}
.card-price span[data-i18n="pricing.month"] { font-size: 16px !important; font-weight: 400 !important; color: inherit !important; opacity: .55; }
.pricing-price-unit { white-space: nowrap; }
.card-price { overflow-wrap: anywhere; }

.card-term {
  font-family: var(--ec-font-mono);
  font-size: var(--ec-label-xs-size);
  letter-spacing: var(--ec-label-xs-ls);
  text-transform: uppercase;
  color: var(--ec-text-tertiary);
  margin-top: -18px;
}
.pricing-card.featured .card-term { color: var(--ec-text-inverse-muted); }

.card-divider { display: none; }

.card-pitch-title {
  margin: 0 0 14px;
  font-family: var(--ec-font-body);
  font-weight: 300; font-size: 15px; line-height: 23px;
  color: var(--ec-text-secondary);
}
.pricing-card.featured .card-pitch-title { color: var(--ec-text-inverse-muted); }

.pricing-card-toggle { display: none; }

.pricing-card-details { display: flex; flex-direction: column; gap: 22px; flex: 1; }

.features { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; flex: 1; padding-top: 6px; border-top: 1px solid var(--ec-border-default); }
.pricing-card.featured .features { border-top-color: var(--ec-code-punct); }
.features li {
  display: flex; gap: 10px; padding-top: 9px;
  font-family: var(--ec-font-body);
  font-weight: 300; font-size: var(--ec-body-sm-size); line-height: var(--ec-body-sm-lh);
  color: var(--ec-text-primary);
}
.pricing-card.featured .features li { color: var(--ec-text-inverse-muted); }
.features li::before {
  content: "";
  width: 5px; height: 5px; border-radius: 5px;
  background: var(--ec-orange-500);
  margin-top: 7px; flex-shrink: 0;
}

.card-cta {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; height: var(--ec-control-lg);
  border-radius: var(--ec-radius-xs);
  text-decoration: none;
  font-family: var(--ec-font-mono);
  font-size: var(--ec-label-size);
  line-height: var(--ec-label-lh);
  text-transform: uppercase;
  transition: var(--ec-transition-color);
}
.card-cta.primary { background: var(--ec-action-primary); color: #fff; }
.card-cta.primary:hover { background: var(--ec-action-primary-hover); color: #fff; }
.card-cta.ghost { background: var(--ec-surface-muted); color: var(--ec-action-on-secondary); }
.card-cta.ghost:hover { background: var(--ec-action-secondary-hover); color: var(--ec-text-primary); }

.pricing-footnote {
  margin: 0;
  max-width: 900px;
  font-family: var(--ec-font-mono);
  font-size: var(--ec-label-xs-size);
  line-height: 17px;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--ec-text-tertiary);
}
.pricing-footnote a { color: var(--ec-text-primary); text-decoration: none; }
.pricing-footnote a:hover { color: var(--ec-action-primary); }

/* ---------------------------------------------------------- § dogfood ---- */

.dogfood {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 70px;
  align-items: start;
}

/* The heading shares the measure of the column below it, so it ends on the
   same edge as the LIVE, IN PUBLIC rule instead of overrunning it. */
#dogfood .section-title {
  max-width: calc((100% - 70px) * 5 / 12);
  text-wrap: balance;
}
#dogfood .section-title .em { display: inline; }
.dogfood-left { display: flex; flex-direction: column; gap: 28px; }
.dogfood-left h3 {
  margin: 0;
  font-family: var(--ec-font-display);
  font-weight: 500; font-size: 28px; line-height: 33px; letter-spacing: -1px;
  color: var(--ec-text-primary);
}
.dogfood-left h3 .em { display: inline; }
.dogfood-left p {
  margin: 0;
  font-family: var(--ec-font-body);
  font-weight: 300; font-size: var(--ec-body-size); line-height: var(--ec-body-lh);
  color: var(--ec-text-primary);
}
.dogfood-left p b { font-weight: 500; }
.dogfood-left .meta {
  display: flex; gap: 34px; flex-wrap: wrap;
  padding-top: var(--ec-space-4);
  border-top: 1px solid var(--ec-border-default);
  font-family: var(--ec-font-body);
  font-weight: 300; font-size: var(--ec-body-sm-size);
  color: var(--ec-text-secondary);
}
.dogfood-left .meta b { font-weight: 500; color: var(--ec-text-primary); }
.dogfood-cta { display: flex; gap: 10px; flex-wrap: wrap; }

.dogfood-right { background: transparent; }
.dogfood-right .bd-file-body { max-height: 620px; overflow-y: auto; }
.dogfood-right .bd-file-pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.dogfood-right .bd-file-path a { color: inherit; text-decoration-color: currentColor; text-underline-offset: 3px; }
.dogfood-right .bd-file-path a:hover { color: var(--r); }

/* ---------------------------------------------------------- § contact ---- */

#contact > .wrap {
  background: var(--ec-neutral-0);
  border-radius: var(--ec-radius-xl);
  padding: 56px 58px;
  box-shadow: var(--ec-ring-subtle);
}
.contact-grid { display: flex; gap: 72px; flex-wrap: wrap; }
.contact-copy { width: 420px; flex-shrink: 0; display: flex; flex-direction: column; gap: var(--ec-space-6); }
.contact-copy h2 {
  margin: 0;
  font-family: var(--ec-font-display);
  font-weight: 500; font-size: var(--ec-h2-size); line-height: 45px; letter-spacing: -1.7px;
  color: var(--ec-text-primary);
}
.contact-copy p {
  margin: 0;
  font-family: var(--ec-font-body);
  font-weight: 300; font-size: var(--ec-body-size); line-height: var(--ec-body-lh);
  color: var(--ec-text-secondary);
}

.contact-form { flex: 1; min-width: 320px; display: flex; flex-direction: column; gap: var(--ec-space-4); }
.contact-form-row { display: flex; gap: var(--ec-space-4); flex-wrap: wrap; }
.contact-field { display: flex; flex-direction: column; gap: var(--ec-space-2); flex: 1; min-width: 200px; }
.contact-field label {
  font-family: var(--ec-font-mono);
  font-size: var(--ec-label-xs-size);
  letter-spacing: var(--ec-label-xs-ls);
  text-transform: uppercase;
  color: var(--ec-text-tertiary);
}
.contact-field input,
.contact-field textarea {
  height: var(--ec-control-lg);
  padding: 0 16px;
  border-radius: var(--ec-radius-xs);
  border: 1px solid var(--ec-border-default);
  background: var(--ec-neutral-0);
  font-family: var(--ec-font-body);
  font-weight: 300; font-size: 15px;
  color: var(--ec-text-primary);
  width: 100%;
  resize: none;
}
.contact-field textarea { height: 120px; padding: 14px 16px; line-height: 22px; }
.contact-field input:focus,
.contact-field textarea:focus { border-color: var(--ec-action-primary); outline: none; }

.contact-error {
  font-family: var(--ec-font-body);
  font-size: 12px; line-height: 17px;
  color: var(--ec-action-primary);
  min-height: 17px;
}
.contact-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-actions { display: flex; align-items: center; gap: var(--ec-space-4); flex-wrap: wrap; }
.contact-status {
  margin: 0;
  font-family: var(--ec-font-body);
  font-weight: 300; font-size: var(--ec-body-sm-size);
  color: var(--ec-text-secondary);
}

/* ----------------------------------------------------------- start modal -- */

.start-modal {
  width: min(760px, calc(100vw - 32px));
  /* The fork has to fit the viewport it opens in. Without a ceiling the
     dialog overflows on a short window, and on a phone where the two
     options stack, with no way to reach what is cut off. */
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  border-radius: var(--ec-radius-xl);
  background: var(--ec-neutral-0);
  box-shadow: var(--ec-ring-default);
  color: var(--ec-text-primary);
  overflow: hidden;
}
/* A closed <dialog> is display:none, so the column only applies while open. */
.start-modal[open] { display: flex; flex-direction: column; }
.start-modal::backdrop { background: var(--ec-surface-scrim); }
.start-modal-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: var(--ec-space-6);
  padding: 32px 32px 0;
  flex-shrink: 0;
}
.start-modal-eyebrow {
  font-family: var(--ec-font-mono);
  font-size: var(--ec-label-sm-size);
  letter-spacing: var(--ec-label-sm-ls);
  text-transform: uppercase;
  color: var(--ec-text-tertiary);
  margin-bottom: var(--ec-space-3);
}
.start-modal-head h2 {
  margin: 0;
  font-family: var(--ec-font-display);
  font-weight: 500; font-size: var(--ec-h3-size); line-height: var(--ec-h3-lh); letter-spacing: var(--ec-h3-ls);
}
.start-modal-close {
  appearance: none; border: 0; cursor: pointer;
  width: 34px; height: 34px;
  border-radius: var(--ec-radius-xs);
  background: var(--ec-action-secondary);
  color: var(--ec-text-primary);
  font-size: 18px; line-height: 1;
}
.start-modal-close:hover { background: var(--ec-action-secondary-hover); }
.start-modal-body { padding: 24px 32px 32px; display: flex; flex-direction: column; gap: var(--ec-space-6); overflow-y: auto; min-height: 0; }
.start-modal-intro {
  margin: 0;
  font-family: var(--ec-font-body);
  font-weight: 300; font-size: var(--ec-body-size); line-height: var(--ec-body-lh);
  color: var(--ec-text-secondary);
}
.start-options { display: flex; gap: var(--ec-space-4); flex-wrap: wrap; }
.start-option {
  flex: 1; min-width: 260px;
  display: flex; flex-direction: column; gap: 12px;
  padding: 24px;
  border-radius: var(--ec-radius-md);
  background: var(--ec-surface-muted);
  text-decoration: none;
  color: var(--ec-text-primary);
  transition: var(--ec-transition-color);
}
.start-option:hover { background: var(--ec-action-secondary-hover); color: var(--ec-text-primary); }
.start-option-label {
  font-family: var(--ec-font-mono);
  font-size: var(--ec-label-sm-size);
  letter-spacing: var(--ec-label-sm-ls);
  text-transform: uppercase;
  color: var(--ec-orange-500);
}
.start-option h3 {
  margin: 0;
  font-family: var(--ec-font-display);
  font-weight: 500; font-size: var(--ec-h5-size); line-height: var(--ec-h5-lh); letter-spacing: var(--ec-h5-ls);
}
.start-option p {
  margin: 0; flex: 1;
  font-family: var(--ec-font-body);
  font-weight: 300; font-size: var(--ec-body-sm-size); line-height: var(--ec-body-sm-lh);
  color: var(--ec-text-secondary);
}
.start-option-cta {
  font-family: var(--ec-font-mono);
  font-size: var(--ec-label-sm-size);
  letter-spacing: var(--ec-label-sm-ls);
  text-transform: uppercase;
  color: var(--ec-text-primary);
}

/* ===========================================================================
   RESPONSIVE
   Desktop-first. Two-column blocks stack below 1100px, the nav collapses into
   a disclosure menu at 960px, and the diagram falls back to native HTML at
   640px rather than rendering SVG foreignObject on a phone.
   ======================================================================== */

@media (max-width: 1400px) {
  .hero-headline { font-size: 68px; line-height: 68px; letter-spacing: -2.7px; }
  .hero-diagram { width: 460px; }
  .stat-grid { width: 460px; }
}

@media (max-width: 1180px) {
  .hero-body { flex-direction: column; align-items: stretch; gap: 40px; }
  .hero-diagram { width: 100%; max-width: 560px; }
  .hero-copy { max-width: 700px; }

  .bd-head { flex-direction: column; align-items: flex-start; gap: 40px; }
  .stat-grid { width: 100%; }

  .spark-grid,
  .dogfood { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  #dogfood .section-title { max-width: 900px; }

  #faq > .wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  #faq .section-head { max-width: 640px; }
}

@media (max-width: 1100px) {
  /* Stacked: the explicit column placements have to come off too, or the
     lede's grid-column: 2 forces an implicit second track and collapses
     the heading to 0px. */
  #why-it-matters .section-head > div { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  #why-it-matters .section-title,
  #why-it-matters .section-lede { grid-column: 1 / -1; }
  .section-title, .pricing-heading, .spark-title { font-size: 40px; line-height: 44px; letter-spacing: -1.6px; }
  .manifesto .text { font-size: 34px; line-height: 36px; letter-spacing: -1.4px; }
  #why-it-matters > .wrap,
  #contact > .wrap,
  .manifesto > .wrap { padding: 40px 32px; }
  .contact-grid { gap: 40px; }
  .contact-copy { width: 100%; }
}

@media (max-width: 960px) {
  .nav { height: 58px; padding: 0 8px 0 16px; }
  .nav-brand img { height: 26px; }

  .nav-menu-toggle {
    display: inline-flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 0;
    border: 0; background: transparent; color: var(--ec-text-primary); cursor: pointer;
    border-radius: var(--ec-radius-xs);
  }
  .nav-menu-toggle span {
    display: block; width: 21px; height: 1.5px; background: currentColor;
    transform-origin: center;
    transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
  }
  .nav-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  .nav-links,
  .nav .nav-links {
    position: absolute; inset: calc(100% + 8px) 0 auto;
    display: flex; flex-direction: column; align-items: stretch;
    gap: 0; padding: 8px;
    background: var(--ec-surface);
    border-radius: var(--ec-radius-md);
    box-shadow: var(--ec-ring-subtle);
  }
  .nav-links[hidden] { display: none; }
  .nav .nav-links[hidden] { display: none; }
  .nav-link {
    display: flex; align-items: center; min-height: 48px;
    opacity: 1; padding: 0 12px;
    border-bottom: 1px solid var(--ec-border-default);
  }
  .nav-link:last-of-type { border-bottom: 0; }
  .locale-control { margin: 8px 0 0; width: 100%; }
  .locale-select { width: 100%; height: 44px; }
  .nav .btn.nav-cta-full { display: inline-flex; width: 100%; margin: 8px 0 0; height: 48px; }

  .hero-row { padding: 24px 16px 40px; gap: 48px; }
  .hero-body { padding: 0; }
  .hero-headline { font-size: 46px; line-height: 48px; letter-spacing: -1.8px; }
  .hero-sub { font-size: 16px; line-height: 24px; }

  .foot { padding: 48px 24px 32px; border-radius: var(--ec-radius-md); }
  .foot-grid { flex-direction: column; gap: 40px; }
  .foot-grid > :first-child { min-width: 0; }
  .foot-sub { font-size: 26px; line-height: 28px; }
  .foot > .wrap { gap: 48px; }
}

@media (max-width: 640px) {
  /* Approved Dawn artwork replaces the photograph on phones. Ink, not white,
     keeps the copy readable without obscuring the gradient with a dark mask. */
  .hero { background: #dce5eb url("/ds/img/gradient-dawn.png") center / cover no-repeat; }
  .hero::before { content: none; }
  .hero-headline { color: #1a1a1a; }
  .hero-sub, .hero-eyebrow { color: #454545; }
  .hero-cta .btn.ghost, .hero-cta .btn.ghost:hover { color: #1a1a1a; opacity: 1; }

  .section, .spark-section, .pricing-section, .logo-parade, .manifesto { padding: 0 12px; }
  .section > .wrap { gap: 32px; }

  .section-title, .pricing-heading, .spark-title { font-size: 32px; line-height: 35px; letter-spacing: -1.2px; }
  .manifesto .text { font-size: 26px; line-height: 29px; letter-spacing: -1px; }
  .manifesto > .wrap, #why-it-matters > .wrap, #contact > .wrap { padding: 32px 20px; border-radius: var(--ec-radius-md); }

  .hero-headline { font-size: 30px; line-height: 33px; letter-spacing: -1.1px; }
  .hero-row { padding: 16px 12px 32px; gap: 36px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .hero-cta .btn.ghost { height: 44px; }

  .btn { width: 100%; min-width: 0; }
  .cta-row, .dogfood-cta, .spark-actions { flex-direction: column; align-items: stretch; }

  /* Mobile skips the SVG foreignObject rendering path entirely. */
  .bd-svg { display: none; }
  .bd-mobile { display: block; }

  .closer-row { flex-direction: column; align-items: flex-start; gap: var(--ec-space-4); }

  /* A native swipeable rail so plans can be compared without a table. */
  .pricing-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 86%;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: var(--ec-space-2);
  }
  .pricing-card { scroll-snap-align: center; min-width: 0; }
  .pricing-swipe-hint {
    display: block;
    font-family: var(--ec-font-mono);
    font-size: var(--ec-label-xs-size);
    letter-spacing: var(--ec-label-xs-ls);
    text-transform: uppercase;
    color: var(--ec-text-tertiary);
  }

  /* Plan detail collapses until asked for, so the rail stays scannable. */
  .pricing-card-toggle {
    display: inline-flex; align-items: center; justify-content: space-between;
    width: 100%; height: 44px; padding: 0 14px;
    border: 0; cursor: pointer;
    border-radius: var(--ec-radius-xs);
    background: var(--ec-action-secondary);
    color: var(--ec-action-on-secondary);
    font-family: var(--ec-font-mono);
    font-size: var(--ec-label-size);
    text-transform: uppercase;
  }
  .pricing-card.featured .pricing-card-toggle { background: var(--ec-neutral-700); color: var(--ec-text-inverse); }
  .pricing-card-toggle-icon { font-size: 16px; }
  .pricing-grid.is-collapsible .pricing-card-details { display: none; }
  .pricing-grid.is-collapsible .pricing-card[data-mobile-expanded="true"] .pricing-card-details { display: flex; }

  .pricing-free-strip { padding: 24px 20px; }
  .pricing-free-strip p { min-width: 0; }

  .contact-form-row { flex-direction: column; }

  /* The post-hero conversion action stays fixed to the viewport, clearing any
     injected consent layer pinned to the bottom of the screen. */
  .mobile-convert-cta:not([hidden]) {
    display: block;
    position: fixed;
    left: 12px; right: 12px;
    bottom: var(--bottom-overlay-offset, 0px);
    margin-bottom: 12px;
    z-index: 90;
  }
  .mobile-convert-cta .btn { width: 100%; box-shadow: var(--ec-ring-inverse); }

  .start-modal-head { padding: 24px 20px 0; }
  .start-modal-body { padding: 20px; }
  .start-options { flex-direction: column; }

  .foot-bottom { flex-direction: column; align-items: flex-start; }
}
