/* Quinine Cybersecurity public site: editorial page layouts.
   Owned by the company content pages (home main, about, approach, services, service detail,
   industries, frameworks, contact). Builds on site-nav.css (tokens, base, buttons) and home.css
   (shared components). Colours come only from design tokens; the aliases below prefer the
   redesign palette tokens when tokens.css defines them and fall back to the base tokens otherwise.
   No hex colours, no remote assets; every transition is removed under prefers-reduced-motion. */

:root {
  --pg-accent: var(--color-detail-ink, var(--cyan-ink));
  --pg-fine: var(--color-line-fine, var(--line-strong));
  --pg-signal: var(--color-on-band-signal, var(--cyan));
  --pg-alert: var(--color-alert-ink, var(--critical));
  --pg-dark: var(--color-band, var(--navy-deep));
  --pg-paper: var(--color-bg-alt, var(--bg-alt));
  --pg-on-dark: var(--color-on-band, var(--on-navy));
  --pg-on-dark-muted: var(--color-on-band-muted, var(--on-navy-muted));
  --pg-rule: var(--line-strong);
}

/* ------------------------------------------------------------------ labels & rules */

.ed-label {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 18px;
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--pg-accent);
}
.ed-label::after { content: ""; flex: 1 1 auto; max-width: 120px; height: 1px; background: currentColor; opacity: 0.45; }
.ed-label__num { color: var(--muted); }
.ed-label--plain::after { display: none; }

.ed-rule {
  position: relative; height: 1px; margin: 0; border: 0;
  background: var(--pg-rule);
}
.ed-rule::before, .ed-rule::after {
  content: ""; position: absolute; top: -3px; width: 7px; height: 7px;
  border: 1px solid var(--pg-rule); background: var(--bg);
}
.ed-rule::before { left: 0; }
.ed-rule::after { right: 0; }

.ed-kicker { font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; }
.ed-mono { font-family: var(--font-mono); font-size: 0.86em; }

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

.ed-hero { position: relative; padding: clamp(36px, 6vw, 88px) 0 clamp(36px, 5vw, 64px); background: var(--bg); overflow: hidden; }
.ed-hero__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: end; }
.ed-hero h1 { font-size: clamp(2.2rem, 5.2vw, 4rem); line-height: 1.03; letter-spacing: -0.035em; margin: 0 0 0.35em; max-width: 18ch; }
.ed-hero .lead { margin-bottom: 0; }
.ed-hero__meta { display: grid; gap: 0; margin: 0; padding: 0; border-top: 1px solid var(--pg-rule); }
.ed-hero__meta > div { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ed-hero__meta dt { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.ed-hero__meta dd { margin: 0; font-size: 0.92rem; color: var(--ink); font-weight: 600; }
.ed-hero .breadcrumb { margin-bottom: clamp(20px, 3vw, 36px); }
.ed-hero__foot { margin-top: clamp(32px, 4vw, 56px); }
.ed-hero__watermark { position: absolute; right: -4%; top: 8%; width: min(38vw, 420px); pointer-events: none; opacity: 0.6; }

/* ------------------------------------------------------------------ sections */

.ed-section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.ed-section--tight { padding: clamp(44px, 6vw, 80px) 0; }
.ed-section--paper { background: var(--pg-paper); }
.ed-section--dark { background: var(--pg-dark); color: var(--pg-on-dark-muted); }
.ed-section--dark h2, .ed-section--dark h3, .ed-section--dark strong { color: var(--pg-on-dark); }
.ed-section--dark .lead, .ed-section--dark p { color: var(--pg-on-dark-muted); }
.ed-section--dark .ed-label { color: var(--pg-signal); }
.ed-section--dark .ed-label__num { color: var(--pg-on-dark-muted); }
.ed-section--dark .ed-facts dt { color: var(--pg-on-dark-muted); }
.ed-section--dark .ed-facts dd { color: var(--pg-on-dark); }
.ed-section--dark .ed-rule, .ed-section--dark .ed-rule::before, .ed-section--dark .ed-rule::after { border-color: var(--pg-on-dark-muted); }
.ed-section--dark .ed-rule { background: color-mix(in srgb, var(--pg-on-dark) 22%, transparent); }
.ed-section--dark .ed-rule::before, .ed-section--dark .ed-rule::after { background: var(--pg-dark); border-color: color-mix(in srgb, var(--pg-on-dark) 40%, transparent); }
.ed-section--dark a:not(.btn) { color: var(--pg-on-dark); }
.ed-section--dark .muted { color: var(--pg-on-dark-muted); }
.ed-section--dark .ed-kicker { color: var(--pg-on-dark-muted); }

.ed-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(20px, 5vw, 80px); align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.ed-head h2 { margin: 0; max-width: 20ch; }
.ed-head .lead { margin: 0; }
.ed-head--stack { grid-template-columns: minmax(0, 1fr); max-width: 760px; }

/* Asymmetric grids */
.ed-grid { display: grid; gap: clamp(28px, 5vw, 80px); align-items: start; }
.ed-grid--5-7 { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.ed-grid--7-5 { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.ed-grid--4-8 { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
.ed-sticky { position: sticky; top: calc(var(--header-h) + 24px); }

.ed-statement { font-size: clamp(1.45rem, 2.8vw, 2.25rem); line-height: 1.22; letter-spacing: -0.022em; font-weight: 700; color: var(--ink); margin: 0 0 0.6em; max-width: 26ch; }
.ed-section--dark .ed-statement { color: var(--pg-on-dark); }
.ed-prose p { max-width: 66ch; }
.ed-prose p + p { margin-top: 0.9em; }
.ed-columns { columns: 2 22rem; column-gap: clamp(24px, 4vw, 56px); }
.ed-columns p { break-inside: avoid; margin-top: 0; }

/* ------------------------------------------------------------------ service index (editorial rows) */

.ed-index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--pg-rule); }
.ed-index > li {
  position: relative;
  display: grid; grid-template-columns: 64px minmax(0, 1.1fr) minmax(0, 1.4fr) auto; gap: 12px clamp(16px, 3vw, 40px); align-items: baseline;
  padding: clamp(20px, 2.6vw, 30px) 0;
  border-bottom: 1px solid var(--line);
  transition: background-color var(--dur-fast) var(--ease-out);
}
.ed-index > li:has(:focus-visible) { background: color-mix(in srgb, var(--surface-2) 70%, transparent); }
.ed-index__num { font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); padding-left: 4px; }
.ed-index h3 { margin: 0; font-size: clamp(1.12rem, 1.8vw, 1.42rem); letter-spacing: -0.018em; }
.ed-index h3 a { color: var(--ink); text-decoration: none; }
.ed-index h3 a::after { content: ""; position: absolute; inset: 0; }
.ed-index h3 a:focus-visible { outline: none; }
.ed-index h3 a:focus-visible::after { outline: 3px solid var(--focus); outline-offset: -3px; }
.ed-index p { margin: 0; color: var(--text); font-size: 0.96rem; }
.ed-index__status { justify-self: end; padding-right: 4px; }
.ed-index__arrow { display: inline-block; font-family: var(--font-mono); color: var(--pg-accent); margin-left: 10px; transition: transform var(--dur-fast) var(--ease-out); }
/* Linked rows: the whole row is the hit area (h3 a::after). Editorial rows keep their flat,
   ruled look, so the feedback is a tint plus a 3px arrow nudge rather than a card lift. */
@media (hover: hover) and (pointer: fine) {
  .ed-index > li:hover { background: color-mix(in srgb, var(--surface-2) 70%, transparent); }
  .ed-index > li:hover h3 a { color: var(--color-link); }
}
@media (prefers-reduced-motion: no-preference) {
  .ed-index > li:has(:focus-visible) .ed-index__arrow { transform: translateX(3px); }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .ed-index > li:hover .ed-index__arrow { transform: translateX(3px); }
}
.ed-section--dark .ed-index { border-color: color-mix(in srgb, var(--pg-on-dark) 28%, transparent); }
.ed-section--dark .ed-index > li { border-color: color-mix(in srgb, var(--pg-on-dark) 14%, transparent); }
.ed-section--dark .ed-index > li:has(:focus-visible) { background: color-mix(in srgb, var(--pg-on-dark) 5%, transparent); }
.ed-section--dark .ed-index h3 a { color: var(--pg-on-dark); }
@media (hover: hover) and (pointer: fine) {
  .ed-section--dark .ed-index > li:hover { background: color-mix(in srgb, var(--pg-on-dark) 5%, transparent); }
  .ed-section--dark .ed-index > li:hover h3 a { color: var(--pg-on-dark); }
}

/* Group headings inside an index */
.ed-index-group { margin: clamp(36px, 4vw, 56px) 0 12px; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ed-index-group:first-child { margin-top: 0; }
.ed-index-group h3 { margin: 0; font-size: 1rem; }

/* ------------------------------------------------------------------ segments (industries) */

.ed-segments { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--pg-rule); border-left: 1px solid var(--line); }
.ed-segments > li { padding: clamp(24px, 3vw, 40px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 12px; align-content: start; }
.ed-segments h3 { margin: 0; font-size: clamp(1.15rem, 1.8vw, 1.4rem); }
.ed-segments p { margin: 0; }
.ed-segments .ed-kicker { margin: 0; }
.ed-segments__focus { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 0.92rem; }
.ed-segments__focus li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; }
.ed-segments__focus li::before { content: ""; width: 9px; height: 1px; margin-top: 0.8em; background: var(--pg-fine); }

/* ------------------------------------------------------------------ process / steps */

.ed-steps { list-style: none; margin: 0; padding: 0; counter-reset: ed-step; }
.ed-steps > li {
  position: relative; counter-increment: ed-step;
  display: grid; grid-template-columns: 56px minmax(0, 0.9fr) minmax(0, 1.6fr); gap: 8px clamp(16px, 3vw, 48px);
  padding: clamp(22px, 3vw, 36px) 0; border-top: 1px solid var(--line);
}
.ed-steps > li:last-child { border-bottom: 1px solid var(--line); }
.ed-steps > li::before {
  content: counter(ed-step, decimal-leading-zero);
  font-family: var(--font-mono); font-size: 0.8rem; font-weight: 600; color: var(--pg-accent);
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid currentColor; border-radius: 50%;
}
.ed-steps > li:not(:last-child)::after {
  content: ""; position: absolute; left: 20px; top: calc(clamp(22px, 3vw, 36px) + 40px); bottom: calc(-1 * clamp(22px, 3vw, 36px));
  width: 1px; background: color-mix(in srgb, var(--pg-accent) 45%, transparent);
}
.ed-steps h3 { margin: 6px 0 0; font-size: clamp(1.08rem, 1.6vw, 1.3rem); }
.ed-steps p { margin: 0; }
.ed-steps__body > * + * { margin-top: 10px; }
.ed-steps__tag { display: inline-block; margin-top: 10px; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.ed-section--dark .ed-steps > li { border-color: color-mix(in srgb, var(--pg-on-dark) 16%, transparent); }
.ed-section--dark .ed-steps > li::before { color: var(--pg-signal); }
.ed-section--dark .ed-steps > li::after { background: color-mix(in srgb, var(--pg-signal) 40%, transparent); }
.ed-section--dark .ed-steps__tag { color: var(--pg-on-dark-muted); }

/* Compact horizontal process (homepage) */
.ed-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--pg-rule); }
.ed-flow > li { position: relative; padding: 22px 18px 4px 0; display: grid; gap: 8px; align-content: start; }
.ed-flow > li::before { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--pg-accent); }
.ed-flow__num { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); letter-spacing: 0.1em; }
.ed-flow strong { color: var(--ink); font-size: 1rem; line-height: 1.3; }
.ed-flow span:last-child { font-size: 0.88rem; color: var(--text); }
.ed-section--dark .ed-flow { border-color: color-mix(in srgb, var(--pg-on-dark) 30%, transparent); }
.ed-section--dark .ed-flow > li::before { background: var(--pg-signal); }
.ed-section--dark .ed-flow strong { color: var(--pg-on-dark); }
.ed-section--dark .ed-flow span:last-child, .ed-section--dark .ed-flow__num { color: var(--pg-on-dark-muted); }

/* ------------------------------------------------------------------ matrix (frameworks) */

.ed-matrix { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--pg-rule); }
.ed-matrix > li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1.4fr); gap: 12px clamp(18px, 3vw, 44px); padding: clamp(22px, 3vw, 34px) 0; border-bottom: 1px solid var(--line); }
.ed-matrix h3 { margin: 0 0 6px; font-size: clamp(1.05rem, 1.5vw, 1.22rem); }
.ed-matrix .ed-kicker { margin: 0; }
.ed-matrix p { margin: 0; font-size: 0.95rem; }
.ed-matrix__col-label { display: block; margin-bottom: 6px; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.ed-matrix__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1.4fr); gap: 12px clamp(18px, 3vw, 44px); padding-bottom: 10px; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.ed-timeline { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; font-size: 0.9rem; }
.ed-timeline li { display: grid; grid-template-columns: minmax(0, 9.5em) minmax(0, 1fr); gap: 10px; }
.ed-timeline time, .ed-timeline .ed-mono { color: var(--ink); font-weight: 600; }

/* ------------------------------------------------------------------ risk register (service pages) */

.ed-register { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(20px, 4vw, 56px); border-top: 1px solid var(--pg-rule); }
.ed-register > li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 4px 12px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.ed-register__code { grid-row: span 2; font-family: var(--font-mono); font-size: 0.72rem; color: var(--pg-accent); padding-top: 3px; }
.ed-register strong { color: var(--ink); }
.ed-register span:last-child { font-size: 0.93rem; }

.ed-ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ed-ticks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; }
.ed-ticks li::before { content: ""; width: 12px; height: 12px; margin-top: 0.42em; border: 1px solid var(--pg-accent); border-radius: 2px; background: linear-gradient(135deg, transparent 45%, var(--pg-accent) 46%, var(--pg-accent) 54%, transparent 55%); }
.ed-section--dark .ed-ticks li::before { border-color: var(--pg-signal); background: linear-gradient(135deg, transparent 45%, var(--pg-signal) 46%, var(--pg-signal) 54%, transparent 55%); }

/* ------------------------------------------------------------------ panels, callouts, asides */

.ed-panel { position: relative; padding: clamp(22px, 3vw, 34px); border: 1px solid var(--line-strong); background: var(--surface); border-radius: var(--radius-sm); }
.ed-panel::before, .ed-panel::after { content: ""; position: absolute; width: 12px; height: 12px; border-color: var(--pg-fine); border-style: solid; }
.ed-panel::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.ed-panel::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }
.ed-panel h2, .ed-panel h3 { margin-top: 0; }
.ed-panel > :last-child { margin-bottom: 0; }
.ed-section--dark .ed-panel { background: color-mix(in srgb, var(--pg-on-dark) 4%, transparent); border-color: color-mix(in srgb, var(--pg-on-dark) 22%, transparent); }
.ed-section--dark .ed-panel::before, .ed-section--dark .ed-panel::after { border-color: var(--pg-signal); }

.ed-facts { margin: 0; display: grid; gap: 0; }
.ed-facts > div { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ed-facts > div:first-child { border-top: 1px solid var(--line); }
.ed-facts dt { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.ed-facts dd { margin: 0; color: var(--ink); font-size: 0.94rem; }
.ed-facts address { font-style: normal; }
.ed-aside { display: grid; gap: 18px; }
.ed-aside .btn { width: 100%; justify-content: center; }

.ed-note { margin: 24px 0 0; padding-left: 16px; border-left: 2px solid var(--pg-accent); font-size: 0.92rem; color: var(--muted); max-width: 70ch; }
.ed-section--dark .ed-note { border-color: var(--pg-signal); color: var(--pg-on-dark-muted); }
.ed-status-note { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); font-size: 0.94rem; }
.ed-status-note .badge { flex: none; margin-top: 2px; }
.ed-status-note p { margin: 0; }

/* ------------------------------------------------------------------ diagrams (inline SVG) */

.ed-diagram { margin: 0; padding: clamp(14px, 2vw, 24px); border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.ed-diagram svg { display: block; width: 100%; height: auto; }
.ed-diagram figcaption { margin-top: 12px; font-size: 0.84rem; color: var(--muted); }
.dg-grid { fill: none; stroke: var(--line); stroke-width: 1; }
.dg-box { fill: var(--surface); stroke: var(--line-strong); stroke-width: 1.4; }
.dg-box--core { fill: var(--surface-2); stroke: var(--ink); }
.dg-box--ext { fill: none; stroke: var(--muted); stroke-dasharray: 4 4; }
.dg-zone { fill: color-mix(in srgb, var(--pg-fine) 8%, transparent); stroke: var(--pg-fine); stroke-width: 1.2; stroke-dasharray: 6 5; }
.dg-line { fill: none; stroke: var(--muted); stroke-width: 1.4; }
.dg-line--dash { stroke-dasharray: 4 4; }
.dg-arrow { fill: var(--muted); }
.dg-probe { fill: var(--surface); stroke: var(--pg-alert); stroke-width: 1.6; }
.dg-probe-text { font-family: var(--font-mono); font-size: 10px; font-weight: 700; fill: var(--pg-alert); }
.dg-text { font-family: var(--font); font-size: 13px; font-weight: 700; fill: var(--ink); }
.dg-sub { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; fill: var(--muted); }
.dg-zone-text { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; fill: var(--pg-accent); }
.dg-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 12px 0 0; padding: 0; list-style: none; font-size: 0.8rem; color: var(--muted); }
.dg-legend li { display: inline-flex; align-items: center; gap: 8px; }
.dg-legend__probe { width: 14px; height: 14px; border-radius: 50%; border: 1.6px solid var(--pg-alert); }
.dg-legend__zone { width: 18px; height: 12px; border: 1.2px dashed var(--pg-fine); }

/* ------------------------------------------------------------------ founder & company */

.ed-founder { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.ed-founder__photo { display: block; width: 100%; max-width: 420px; height: auto; border-radius: var(--radius-sm); filter: grayscale(0.15) contrast(1.02); border: 1px solid var(--line); }
.ed-founder__name { margin: 0; font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.ed-founder__role { margin: 4px 0 20px; font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--pg-accent); }
.ed-quote { margin: 0; padding: 0 0 0 clamp(16px, 2vw, 28px); border-left: 2px solid var(--pg-accent); }
.ed-quote p { font-size: clamp(1.02rem, 1.5vw, 1.18rem); line-height: 1.7; color: var(--ink); max-width: var(--max-text); }
.ed-section--dark .ed-quote p { color: var(--pg-on-dark); }
.ed-section--dark .ed-founder__photo { border-color: color-mix(in srgb, var(--pg-on-dark) 20%, transparent); }
.ed-section--dark .ed-founder__role { color: var(--pg-signal); }
.ed-social { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 20px 0 0; padding: 0; list-style: none; }

/* ------------------------------------------------------------------ product band (Q9 Continuous on the homepage) */

.ed-product { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.3fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.ed-product__by { margin: 0 0 14px; font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--pg-on-dark-muted); }
.ed-product__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid color-mix(in srgb, var(--pg-on-dark) 28%, transparent); }
.ed-product__list > li { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 20px; padding: 20px 0; border-bottom: 1px solid color-mix(in srgb, var(--pg-on-dark) 14%, transparent); }
.ed-product__list h3 { margin: 0; font-size: 1.12rem; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ed-product__list h3 a { color: var(--pg-on-dark); text-decoration: none; }
.ed-product__list h3 a:hover { text-decoration: underline; }
.ed-product__list p { margin: 0; grid-column: 1 / -1; font-size: 0.93rem; }
.ed-product__price { font-family: var(--font-mono); font-size: 0.86rem; color: var(--pg-on-dark); white-space: nowrap; }
.ed-product__price span { color: var(--pg-on-dark-muted); }
.ed-product__links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 20px; }

/* ------------------------------------------------------------------ FAQ */

.ed-faq { margin: 0; border-top: 1px solid var(--pg-rule); }
.ed-faq details { border-bottom: 1px solid var(--line); }
.ed-faq summary {
  display: grid; grid-template-columns: minmax(0, 1fr) 24px; gap: 16px; align-items: center;
  padding: 20px 0; cursor: pointer; list-style: none;
  font-weight: 700; color: var(--ink); font-size: 1.04rem;
}
.ed-faq summary::-webkit-details-marker { display: none; }
.ed-faq summary::after { content: "+"; font-family: var(--font-mono); font-size: 1.2rem; color: var(--pg-accent); justify-self: end; }
.ed-faq details[open] summary::after { content: "\2212"; }
.ed-faq summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.ed-faq summary { transition: color var(--dur-fast) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .ed-faq summary:hover { color: var(--color-link); }
}
.ed-faq__body { padding: 0 40px 22px 0; max-width: 72ch; }
.ed-faq__body p { margin: 0; }
.ed-faq__body p + p { margin-top: 0.8em; }

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

.ed-contact { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.ed-routes { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--pg-rule); }
.ed-routes > li { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.ed-routes h3 { margin: 0; font-size: 1.02rem; }
.ed-routes p { margin: 0; font-size: 0.93rem; }
.ed-confirm { display: none; align-items: center; gap: 12px; margin-top: 14px; }
.form-status[data-state="success"] + .ed-confirm { display: flex; }
.ed-confirm .qmark { width: 28px; height: 28px; flex: none; }
.ed-regarding { display: none; margin: 0 0 16px; font-size: 0.9rem; color: var(--muted); }
.ed-regarding[data-active="true"] { display: block; }
.ed-regarding strong { color: var(--ink); }

/* ------------------------------------------------------------------ closing band */

.ed-close { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: end; }
.ed-close h2 { margin: 0 0 12px; max-width: 18ch; }
.ed-close__actions { display: grid; gap: 12px; justify-items: start; }
.ed-close__actions p { margin: 0; font-size: 0.92rem; }

/* ------------------------------------------------------------------ responsive */

@media (max-width: 1100px) {
  .ed-flow { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; }
  .ed-index > li { grid-template-columns: 52px minmax(0, 1fr) auto; }
  .ed-index > li > p { grid-column: 2 / -1; }
}
@media (max-width: 900px) {
  .ed-hero__grid, .ed-head, .ed-grid--5-7, .ed-grid--7-5, .ed-grid--4-8, .ed-founder, .ed-product, .ed-contact, .ed-close { grid-template-columns: minmax(0, 1fr); }
  .ed-sticky { position: static; }
  .ed-matrix > li, .ed-matrix__head { grid-template-columns: minmax(0, 1fr); }
  .ed-matrix__head { display: none; }
  .ed-founder__photo { max-width: 300px; }
  .ed-hero__watermark { display: none; }
}
@media (max-width: 700px) {
  .ed-segments, .ed-register { grid-template-columns: minmax(0, 1fr); }
  .ed-flow { grid-template-columns: minmax(0, 1fr); border-top: 0; border-left: 1px solid var(--pg-rule); row-gap: 0; }
  .ed-flow > li { padding: 0 0 22px 22px; }
  .ed-flow > li::before { top: 6px; left: -4px; }
  .ed-section--dark .ed-flow { border-left-color: color-mix(in srgb, var(--pg-on-dark) 30%, transparent); }
  .ed-steps > li { grid-template-columns: 48px minmax(0, 1fr); }
  .ed-steps__body { grid-column: 2; }
  .ed-index > li { grid-template-columns: 40px minmax(0, 1fr); }
  .ed-index__status { grid-column: 2; justify-self: start; }
  .ed-hero__meta > div, .ed-facts > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .ed-timeline li { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .ed-faq__body { padding-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .ed-index > li { transition: none; }
}

.h3-like { font-size: 1.14rem; letter-spacing: -0.012em; margin: 0 0 10px; }
.hero__by { margin: 18px 0 0; }

/* ------------------------------------------------------------------ fixes: dark register text, aligned status column */
.ed-section--dark .ed-register > li { border-color: color-mix(in srgb, var(--pg-on-dark) 14%, transparent); }
.ed-section--dark .ed-register { border-color: color-mix(in srgb, var(--pg-on-dark) 28%, transparent); }
.ed-section--dark .ed-register strong { color: var(--pg-on-dark); }
.ed-section--dark .ed-register__code { color: var(--pg-signal); }
.ed-index__status { min-width: 9.5rem; text-align: right; }
.ed-figure-row { margin-top: clamp(36px, 5vw, 64px); }
@media (max-width: 700px) {
  .ed-index__status { min-width: 0; text-align: left; }
}
