/* Elkhorn Growth — colour system and section themes (runads-style-v2).
   Source: FABLE-REVIEW-v2.md sections 1 and 3. Every text/background pair used here is a passing cell in 1.4
   (see NOTES.md, "Contrast check"). On cream, brand gold, coral and lagoon are bars, borders and icons only. */

/* ---------- Section themes ---------- */
[data-theme] { position: relative; color: var(--fg); }
[data-theme="ink"] { background: #040C0A; }
[data-theme="kelp"] { background: #06261F; }
#pillars[data-theme="kelp"] { background: linear-gradient(180deg, #040C0A 0, #06261F 120px, #0A382F 100%); }
#fees[data-theme="kelp"] { background: #06261F; }
[data-theme="tide"] { --dim: #9FAEA6; }
[data-theme="green"] { background: #0A382F; --dim: #9FAEA6; --card: rgba(4, 12, 10, .22); --line: rgba(249, 244, 234, .14); }
[data-theme="cream"] {
  background: linear-gradient(180deg, #F9F4EA, #F1E9D8);
  color-scheme: light;
  --fg: #0A382F;
  --mut: #2C4A40;        /* ink-body: 8.87 on cream, 8.05 on paper-2 */
  --dim: #4F655C;        /* ink-mut: 5.72 / 5.19 */
  --gold-soft: #8A5A0F;  /* gold-ink: eyebrows, focus rings, links on cream (5.40 / 4.90) */
  --line: rgba(10, 56, 47, .14);
  --line-2: rgba(10, 56, 47, .24);
  --card: #F1E9D8;
  --btn-bg: #0A382F;
  --btn-fg: #F9F4EA;
}
#included[data-theme="cream"] { background: #F1E9D8; }

/* Cream enters with a curved edge (the hero arc, inverted), and leaves with one. */
#plans[data-theme="cream"] { border-radius: 50% 50% 0 0 / 72px 72px 0 0; padding-top: 128px; }
#included[data-theme="cream"] { border-radius: 0 0 50% 50% / 0 0 72px 72px; padding-bottom: 112px; }

/* ---------- Nav over cream (class set by the inline theme observer) ---------- */
body.nav-on-cream .bar { background: rgba(249, 244, 234, .9); border-bottom-color: rgba(10, 56, 47, .12); }
body.nav-on-cream .logo .logo-light { opacity: 0; }
body.nav-on-cream .logo .logo-dark { opacity: 1; }
body.nav-on-cream .nav a:not(.pill) { color: #0A382F; opacity: 1; }
body.nav-on-cream .nav a.pill { background: #0A382F; color: #F9F4EA; }
body.nav-on-cream .nav a.pill:hover { background: #0F5C4A; color: #F9F4EA; }
body.nav-on-cream .nav-toggle { color: #0A382F; border-color: rgba(10, 56, 47, .3); }
body.nav-on-cream :focus-visible { outline-color: #8A5A0F; }
@media (max-width: 960px) {
  body.nav-on-cream .bar { background: rgba(249, 244, 234, .96); }
  body.nav-on-cream .nav { background: rgba(249, 244, 234, .98); border-bottom-color: rgba(10, 56, 47, .14); }
}

/* ---------- Gradient text (Ember). Fallback is solid coral (8.57:1 on Ink). ---------- */
.ember-text { color: #FF8A6B; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .ember-text:not(.is-split),
  .ember-text.is-split .wi {
    background-image: linear-gradient(100deg, transparent 0 40%, rgba(255, 244, 228, .85) 50%, transparent 60% 100%), linear-gradient(90deg, #E8C57A, #FF8A6B);
    background-size: 250% 100%, 100% 100%;
    background-position: 130% 0, 0 0;
    background-repeat: no-repeat;
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
}

/* ---------- Hero field: static base so no-JS, reduced motion and pre-WebGL all get full colour ---------- */
.field-host { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.field-base {
  position: absolute; inset: 0;
  /* Bright "sun" sits low (70–85% of the height), outside the text-safe zone. Centre stays near Ink. */
  background:
    radial-gradient(ellipse 46% 18% at 50% 86%, rgba(242, 112, 78, .34), transparent 70%),
    radial-gradient(ellipse 80% 26% at 50% 90%, rgba(205, 150, 53, .40), transparent 72%),
    radial-gradient(ellipse 34% 30% at 6% 34%, rgba(15, 92, 74, .55), transparent 70%),
    radial-gradient(ellipse 30% 30% at 96% 46%, rgba(15, 92, 74, .45), transparent 70%),
    radial-gradient(ellipse 30% 22% at 82% 10%, rgba(111, 220, 196, .10), transparent 70%),
    radial-gradient(ellipse 130% 80% at 50% 100%, #0A382F 0%, #061A16 46%, #040C0A 74%);
}
.cta-band .field-base {
  background:
    radial-gradient(ellipse 50% 22% at 50% 92%, rgba(242, 112, 78, .44), transparent 70%),
    radial-gradient(ellipse 86% 30% at 50% 96%, rgba(205, 150, 53, .48), transparent 72%),
    radial-gradient(ellipse 30% 40% at 4% 40%, rgba(15, 92, 74, .5), transparent 70%),
    radial-gradient(ellipse 30% 40% at 98% 50%, rgba(15, 92, 74, .4), transparent 70%),
    radial-gradient(ellipse 130% 90% at 50% 100%, #0A382F 0%, #061A16 46%, #040C0A 76%);
}
.field-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  opacity: 0; transition: opacity 1.2s ease;
}
.field-canvas.is-on { opacity: 1; }
/* Horizon arc, recoloured in Ember: one SVG stroke. Its glow is a soft gradient (no blur filter) whose opacity breathes (motion.css). */
.horizon {
  position: absolute; left: -10%; width: 120%; bottom: 9%; height: 40%;
  overflow: visible; pointer-events: none;
}
.horizon path { fill: none; stroke: rgba(255, 138, 107, .32); stroke-width: 1; vector-effect: non-scaling-stroke; }
.horizon-glow {
  position: absolute; left: -10%; width: 120%; bottom: 9%; height: 40%; pointer-events: none;
  background: radial-gradient(ellipse 50% 100% at 50% 100%, rgba(232, 197, 122, 0) 88%, rgba(232, 197, 122, .12) 98%, rgba(232, 197, 122, 0) 100%);
  opacity: .7;
}
/* Background mark: the real Elkhorn mark (media/logo-mark.svg), large and low-opacity behind the headline.
   Box keeps the file's 192:155 ratio; the fill is the same file used as a mask, the outline is the same path inlined,
   so both line up exactly and nothing is redrawn or distorted. Recoloured only (gold to coral). */
.mark-bg {
  position: absolute; left: 50%; top: 50%;
  height: min(92%, 860px); width: auto; aspect-ratio: 192 / 155; max-width: 96vw;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.mark-fill {
  position: absolute; inset: 0; overflow: hidden;
  background: linear-gradient(115deg, #CD9635 15%, #E8C57A 45%, #FF8A6B 85%);
  -webkit-mask: url("../media/logo-mark.svg") center / contain no-repeat;
          mask: url("../media/logo-mark.svg") center / contain no-repeat;
  opacity: .11;
}
/* Light sweep: a soft band that crosses the mark (transform only; runs in motion.css) */
.mark-sweep {
  position: absolute; top: 0; bottom: 0; left: 0; width: 45%;
  background: linear-gradient(100deg, rgba(255, 244, 228, 0), rgba(255, 236, 214, .95) 50%, rgba(255, 244, 228, 0));
  transform: translateX(-110%);
  opacity: 0;
}
.mark-line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.mark-line path { fill: none; stroke: #E8C57A; stroke-opacity: .32; stroke-width: 1; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.mark-close { height: 90%; }
.mark-close .mark-fill { opacity: .13; background: linear-gradient(115deg, #E8C57A 10%, #FF8A6B 60%, #F2704E 95%); }
.mark-close .mark-line path { stroke: #FF8A6B; stroke-opacity: .34; }
@media (max-width: 760px) {
  .mark-bg { height: auto; width: 118vw; max-width: none; transform: translate(-50%, -54%); }
  .mark-close { width: 116vw; transform: translate(-50%, -50%); }
}

/* ---------- Platforms strip ---------- */
.platforms { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; }
.platforms-inner { display: flex; align-items: center; justify-content: center; gap: 14px 28px; flex-wrap: wrap; }
.platforms .eyebrow { margin: 0; }
.platform-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 0; }
.platform-list li {
  font: 500 16px/1.2 var(--font-ui); letter-spacing: -.01em;
  color: rgba(249, 244, 234, .86);
  padding: 0 20px;
}
.platform-list li + li { border-left: 1px solid rgba(249, 244, 234, .22); }
/* Slot for official logo files, used only after written approval (see the HTML comment). */
.platform-logos { list-style: none; margin: 0; padding: 0; display: flex; gap: 32px; align-items: center; }
.platform-logo img { height: 22px; width: auto; }
@media (max-width: 640px) {
  .platforms-inner { flex-direction: column; gap: 12px; }
  .platform-list li { padding: 2px 12px; font-size: 15px; }
}

/* ---------- Placeholder band ---------- */
.proof-band { padding: 40px 0 8px; }

/* ---------- Pillars: one accent per card ---------- */
.pillar { --accent: #CD9635; }
.pillar .num { color: var(--accent); }
.pillar-art { display: none; }
.pillar-art .s { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pillar-art .s2 { fill: none; stroke: rgba(249, 244, 234, .28); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Why follow-up matters (green band) ---------- */

/* ---------- How we start ---------- */
.timeline { position: relative; }
.timeline .num { color: #E8C57A; }
.timeline-line { display: none; }
@media (min-width: 961px) {
  .timeline { padding-top: 30px; }
  .timeline-line {
    display: block; position: absolute; top: 9px; height: 2px; border-radius: 2px;
    left: 30px; right: calc((100% - 42px) / 4 - 30px);
    background: linear-gradient(90deg, #CD9635, #E8C57A);
    transform-origin: 0 50%;
  }
  .t-step { position: relative; }
  .t-step::after {
    content: ""; position: absolute; top: -26px; left: 25px; width: 12px; height: 12px; border-radius: 50%;
    background: #040C0A; border: 2px solid #E8C57A;
  }
}

/* ---------- Plans and Scope (cream) ---------- */
[data-theme="cream"] .plan {
  background: #F1E9D8;
  border: 1px solid rgba(10, 56, 47, .12);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 18px 40px -28px rgba(10, 56, 47, .35);
}
[data-theme="cream"] .plan::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--plan-accent); }
[data-theme="cream"] .pill { background: #0A382F; color: #F9F4EA; }
[data-theme="cream"] .pill:hover { background: #0F5C4A; color: #F9F4EA; }
[data-theme="cream"] .pill:focus-visible { color: #F9F4EA; }
[data-theme="cream"] .card { background: #F9F4EA; border-color: rgba(10, 56, 47, .12); }
#included[data-theme="cream"] .card { background: #F9F4EA; }
[data-theme="cream"] .compare-wrap { background: rgba(249, 244, 234, .55); border-radius: 16px; border: 1px solid rgba(10, 56, 47, .1); }
[data-theme="cream"] .compare thead th { background: #F9F4EA; color: #0A382F; border-bottom: 1px solid rgba(10, 56, 47, .24); }
[data-theme="cream"] .compare tbody tr { transition: background .2s; }
[data-theme="cream"] .compare tbody tr:hover { background: rgba(10, 56, 47, .05); }
[data-theme="cream"] .compare .yes { color: #0A382F; }
[data-theme="cream"] .compare .no { color: #4F655C; }
/* "Included" keeps its word and gains a check glyph, so it never relies on colour alone */
.compare td.yes::before {
  content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 7px; vertical-align: -2px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 8.5l3.5 3.5 7.5-8' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 8.5l3.5 3.5 7.5-8' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
[data-theme="cream"] .compare td.yes::before { background: #0B6B5A; }
@media (min-width: 961px) {
  /* Desktop: the table fits, so let the header stick to the page under the nav */
  [data-theme="cream"] .compare-wrap { overflow: visible; }
  [data-theme="cream"] .compare thead th { top: var(--header-h); z-index: 2; }
  [data-theme="cream"] .compare thead th:first-child { border-top-left-radius: 16px; }
  [data-theme="cream"] .compare thead th:last-child { border-top-right-radius: 16px; }
}
@media (max-width: 960px) {
  #plans[data-theme="cream"] { border-radius: 50% 50% 0 0 / 36px 36px 0 0; padding-top: 96px; }
  #included[data-theme="cream"] { border-radius: 0 0 50% 50% / 0 0 36px 36px; padding-bottom: 88px; }
  /* Mobile: pin the first column and fade the right edge to show the table scrolls */
  .compare-shell::after {
    content: ""; position: absolute; top: 1px; right: 1px; bottom: 1px; width: 36px; pointer-events: none;
    border-radius: 0 16px 16px 0;
    background: linear-gradient(90deg, rgba(241, 233, 216, 0), #F1E9D8);
  }
  [data-theme="cream"] .compare tbody th,
  [data-theme="cream"] .compare thead th:first-child { position: sticky; left: 0; z-index: 1; background: #F9F4EA; box-shadow: 1px 0 0 rgba(10, 56, 47, .14); }
}

/* ---------- Reporting: tile top borders in Current ---------- */
.scorecard div::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--current); }

/* ---------- Fees: row hover tint ---------- */
.fee-row { transition: background .25s; }
@media (hover: hover) { .fee-row:hover { background: rgba(249, 244, 234, .04); } }

/* ---------- Advertising standards (green band, coral watermark, seaglass checks) ---------- */
#compliance { overflow: hidden; isolation: isolate; }
#compliance::before {
  content: ""; position: absolute; z-index: -1; right: -6%; bottom: -14%; width: min(56vw, 620px); aspect-ratio: 1;
  aspect-ratio: 192 / 155;
  background: #FF8A6B;
  -webkit-mask: url("../media/logo-mark.svg") center / contain no-repeat;
          mask: url("../media/logo-mark.svg") center / contain no-repeat;
  opacity: .06;
  pointer-events: none;
}
#compliance .section-head p:not(.eyebrow) { color: #B8C4BC; }
#compliance .card h3 { position: relative; padding-left: 30px; }
#compliance .card h3::before {
  content: ""; position: absolute; left: 0; top: .16em; width: 20px; height: 20px;
  background: #6FDCC4;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='8.5' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3Cpath d='M6 10.2l2.7 2.7L14.2 7' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='8.5' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3Cpath d='M6 10.2l2.7 2.7L14.2 7' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- FAQ: two columns, sticky heading, Ember open marker ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.faq-grid .section-head { position: sticky; top: calc(var(--header-h) + 32px); margin: 0; }
.faq details::before {
  content: ""; position: absolute; left: -14px; top: 14px; bottom: 14px; width: 3px; border-radius: 3px;
  background: linear-gradient(180deg, #E8C57A, #FF8A6B);
  opacity: 0; transition: opacity .3s;
}
.faq details[open]::before { opacity: 1; }
.faq details[open] { background: linear-gradient(90deg, rgba(255, 138, 107, .05), transparent 70%); }
.faq summary { transition: background .2s, color .2s; border-radius: 8px; }
@media (hover: hover) { .faq summary:hover { background: rgba(249, 244, 234, .03); } }
.faq summary::after { content: "+"; transition: transform .3s cubic-bezier(.2,.7,.1,1), color .3s; }
.faq details[open] summary::after { content: "+"; transform: rotate(45deg); color: #FF8A6B; }
@supports selector(::details-content) {
  .faq { interpolate-size: allow-keywords; }
  .faq details::details-content {
    block-size: 0; overflow-y: clip;
    transition: block-size .38s cubic-bezier(.2,.7,.1,1), content-visibility .38s allow-discrete;
  }
  .faq details[open]::details-content { block-size: auto; }
}
@media (max-width: 960px) {
  .faq-grid { grid-template-columns: 1fr; gap: 28px; }
  .faq-grid .section-head { position: static; }
  .faq details::before { left: -10px; }
}

/* ---------- Book card ---------- */
.book-cta-card { background: var(--kelp-card); border-color: rgba(249, 244, 234, .16); }
.book-cta-card :focus-visible, .form :focus-visible { outline-color: #E8C57A; }

/* ---------- Close band: the hero's bookend, inside a rounded panel ---------- */
.cta-band {
  margin: 24px; border-radius: 32px;
  padding: 150px 24px 170px;
  isolation: isolate;
  border: 1px solid rgba(232, 197, 122, .14);
}
.cta-band .field-host { z-index: 0; border-radius: inherit; }
.cta-band h2 { font: 500 clamp(40px, 6.6vw, 96px)/.98 var(--font-ui); letter-spacing: -.045em; }
.cta-band h2 .serif-em { font-size: 1.06em; }
@media (max-width: 760px) {
  .cta-band { margin: 12px; border-radius: 24px; padding: 104px 18px 128px; }
}

/* ---------- Footer: faint mark watermark at 4% ---------- */
.footer::before {
  content: ""; position: absolute; right: -40px; bottom: -60px; width: 420px; aspect-ratio: 192 / 155;
  background: #CD9635;
  -webkit-mask: url("../media/logo-mark.svg") center / contain no-repeat;
          mask: url("../media/logo-mark.svg") center / contain no-repeat;
  opacity: .04; pointer-events: none;
}
.footer .ph-link { opacity: 1; color: #B8C4BC; border-bottom: 1px dashed rgba(184, 196, 188, .5); }
.footer .ph-link:hover { color: #F9F4EA; }

/* ---------- Grain: one 128 px tile, 5%, fixed, not animated, no blend mode ---------- */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 95; pointer-events: none;
  background: url("../media/grain.png") repeat;
  background-size: 128px 128px;
  opacity: .05;
}

/* Section colour changes: class toggles with a 0.5 s transition (reduced motion: instant via the global rule) */
.nav-toggle { transition: color .5s, border-color .5s; }

/* Round 5: elkhorn coral mark removed from the hero background (Gustavo, Nov 23). Gradient field stays. */
.hero .mark-stage { display: none !important; }
