/* ═══════════════════════════════════════════════════════════════════════
   ecomit colour layer: ink + one purple family, on plain white
   Loaded after experience.css, before mobile.css.
   · One matched palette: ink text, the ecomit purple and its own tints.
     The old teal and amber accents are remapped into the same family,
     so Build, Run and Grow no longer clash.
   · No coloured backgrounds: every page and section is white.
   · Feature lists render as icon chips (Content Diet Plan, rule 3)
   ═══════════════════════════════════════════════════════════════════════ */
:root {
  --ink: #0B1220;
  --brand: #5B3FD9; --brand-600: #4A30C4; --brand-800: #2B1B7A;
  --brand-50: #F4F2FE; --brand-100: #E8E3FD; --brand-200: #CFC6F7;
  /* one family: former teal and amber now read as deeper and lighter purples */
  --teal: #4A30C4; --teal-ink: #3B26A8; --teal-50: #F1EEFD; --teal-100: #E2DCFB;
  --amber: #8A72F2; --amber-ink: #5B3FD9; --amber-50: #F4F2FE; --amber-100: #E8E3FD;
  --text: var(--ink); --text-2: #3A4252; --muted: #5A6272; --faint: #747C8B;
  --line: #E7E8EE; --line-2: #D8DAE3;
  --dot: var(--brand); --ring: rgba(91,63,217,.18);
}

/* ─── White everywhere ─── */
body, .page-hero, .hero, .section, .section--soft, .band, .proof, .cta-band, .footer { background: #fff; }
.section--soft { border-block: 1px solid var(--line); }
.hero-grid-bg { opacity: .35; }
.ambient, [data-glow]::before { display: none; }

/* ─── Hero: ink lines, the last one in purple ─── */
.js-motion .hero__line { opacity: .82; }
.js-motion .hero__line.is-on { opacity: 1; }
.hero__line:nth-child(2) { color: var(--ink); }
.hero__line:nth-child(3) { background: none; -webkit-background-clip: initial; background-clip: initial; color: var(--brand); }
.text-dim { color: var(--brand); }

/* ─── Type accents ─── */
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; padding: 0; background: none; color: var(--brand); font-size: .84rem; font-weight: 650; }
.eyebrow::before { content: ""; display: block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.lede, .tile__body, .body-sm { color: var(--text-2); }
.h1 em, .h2 em, .pillar .h1 em { font-style: normal; color: var(--brand); }

/* ─── Buttons and links ─── */
.btn--primary { background: var(--brand); box-shadow: 0 8px 20px -10px rgba(91,63,217,.6), inset 0 -1px 0 rgba(0,0,0,.14); }
.btn--primary:hover { background: var(--brand-600); }
.link-arrow { color: var(--brand); }

/* ─── Icon chips: one family ─── */
.chip, .chip--purple, .chip--teal, .chip--amber { background: var(--brand-50); color: var(--brand); }
.pill--live::before { background: var(--brand); }
.metric-badge { background: var(--brand-50); color: var(--brand-600); font-weight: 650; }
.pill--purple { background: var(--brand-50); border-color: var(--brand-100); color: var(--brand-600); }

/* ─── Numbers carry the colour, cards stay white ─── */
.proof .tile { background: #fff; }
.stat__num { color: var(--ink); }
.proof .stat__num { color: var(--brand); }
.case-card__metric { color: var(--brand); }
.tile { background: #fff; border-color: var(--line); }
.tile--purple { background: #fff; border-color: var(--brand-200); }
.plan--pop, .plan:has(.pill--purple) { border: 2px solid var(--brand); box-shadow: 0 24px 50px -30px rgba(91,63,217,.5); }
.post-tile > :first-child[class*="art"], .post-tile__art { background: var(--brand-50); color: var(--brand); }

/* CTA card: the one solid colour block, deep ecomit purple */
.tile--cta { background: linear-gradient(135deg, #5B3FD9 0%, #2B1B7A 100%); box-shadow: 0 30px 60px -34px rgba(43,27,122,.7); }

/* ─── Feature lists become icon chips ─── */
.feature-list { display: flex !important; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.feature-list li { display: inline-flex; align-items: center; gap: .4rem; margin: 0 !important; padding: .42rem .75rem .42rem .55rem; border-radius: 99px; background: #fff; border: 1px solid var(--line-2); font-size: .84rem; line-height: 1.25; color: var(--ink); }
.feature-list li .ico { width: 16px; height: 16px; flex: none; color: var(--brand); }
.feature-list li.is-off { opacity: .55; }

/* ─── Small labels that were hard to read ─── */
.globe .pin text { fill: var(--ink); }
.globe .pin text.time { fill: var(--muted); }
.v-build .v-card, .v-build .v-nav, .v-build .v-phone { font-size: .66rem; }

/* ─── Footer: white, with a line on top ─── */
.footer { border-top: 1px solid var(--line); }
.footer__mid { background: #fff; }
.footer__col h3 .ico, .footer__col:nth-child(3) h3 .ico, .footer__col:nth-child(4) h3 .ico { color: var(--brand); }

/* ─── Details drawer (Content Diet V9): long copy one tap away ─── */
.drawer { margin-top: 12px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; }
.drawer > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .5rem; padding: 11px 14px; font-weight: 600; font-size: .9rem; color: var(--brand); }
.drawer > summary::-webkit-details-marker { display: none; }
.drawer > summary::after { content: "+"; margin-left: auto; font-size: 1.2rem; line-height: 1; transition: transform .25s; }
.drawer[open] > summary::after { transform: rotate(45deg); }
.drawer > :not(summary) { padding: 0 14px 14px; color: var(--text-2); font-size: .92rem; }

/* Compact steps: last step stays the purple highlight */
.steps-compact .step { background: #fff; }
.step__n { background: var(--brand-50); color: var(--brand); }

@media (max-width: 767px) {
  .globe .pin text { font-size: 30px; }
  .globe .pin text.time { display: none; }
  .tabbar__quote span:first-child { background: var(--brand); }
}

/* Visual panels and menu cards: white with a border, no tinted fills */
.pillar__visual, .build-card__art, .mega__feature, #mega-run .mega__feature, #mega-grow .mega__feature { background: #fff !important; border: 1px solid var(--line); }
#mega-run .chip, #mega-grow .chip { background: var(--brand-50); color: var(--brand); }
#mega-run .mega__feature .link-arrow, #mega-grow .mega__feature .link-arrow { color: var(--brand); }

/* Feature lists read as proper lists again (plans and features need their detail) */
.feature-list { display: grid !important; gap: .6rem; }
.feature-list li { display: flex; align-items: flex-start; gap: .55rem; padding: 0; border: 0; border-radius: 0; background: none; font-size: .93rem; line-height: 1.45; color: var(--text-2); }
.feature-list li .ico { margin-top: .18em; }

/* Plan comparison matrix */
.compare-matrix { margin-top: 20px; padding: clamp(18px, 3vw, 30px); display: grid; gap: 18px; }
.cm-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.cm-table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 560px; }
.cm-table th, .cm-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.cm-table tbody tr:last-child th, .cm-table tbody tr:last-child td { border-bottom: 0; }
.cm-table thead th { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 650; background: #fff; }
.cm-table thead th.is-pop { color: var(--brand); }
.cm-table tbody th { font-weight: 550; color: var(--ink); width: 34%; }
.cm-table td { color: var(--text-2); }
.cm-table td:nth-child(3) { background: var(--brand-50); }
.cm-table .ico { width: 18px; height: 18px; color: var(--brand); }
.cm-no { color: var(--faint); }
.cm-fit b { display: block; margin-bottom: .3rem; color: var(--ink); }

/* About: long-form story */
.about-seo__grid { gap: clamp(20px, 3vw, 40px) clamp(24px, 4vw, 56px); }
.about-seo__grid article p { color: var(--text-2); line-height: 1.7; margin-top: .6rem; }
.about-seo__grid .feature-list { margin-top: .8rem; }
.about-seo__reach { padding: clamp(20px, 3vw, 32px); }
.about-seo__reach p { color: var(--text-2); line-height: 1.7; margin-top: .5rem; max-width: 820px; }

/* Calculator: starting prices */
.sp-card { display: flex; flex-direction: column; gap: .2rem; }
.sp-card__price { margin: .6rem 0 1rem; }
.sp-card__price b { font-size: 1.5rem; letter-spacing: -.02em; color: var(--brand); font-variant-numeric: tabular-nums; }
.sp-card .tile__foot { margin-top: auto; }

/* Form submit errors */
.form-error { margin-top: .8rem; padding: .7rem .9rem; border-radius: 10px; background: #FEF3F2; border: 1px solid #FECDCA; color: #B42318; font-size: .9rem; }
