/* =============================================================================
   AdellaCommerce — Brand-conformant stylesheet
   Governed by /brand-rules.md (Adella Brand Rules, 2026).
   Two colors: Action Red #FF472E, Deep Espresso #261D1D, on White #FFFFFF.
   One font: Work Sans (400/500/600). No DM Mono. No secondary palette.
   ============================================================================= */

/* Tokens — the only three colors + Work Sans. Nothing else. */
:root {
  --red:   #FF472E;
  --ink:   #261D1D;
  --bg:    #FFFFFF;
  --ink-50: rgba(38, 29, 29, 0.50);
  --ink-20: rgba(38, 29, 29, 0.20);
  --ink-10: rgba(38, 29, 29, 0.10);
  --ink-06: rgba(38, 29, 29, 0.06);
  --red-hover: #C91501;
  --font: 'Work Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { font-family: var(--font); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Headlines — Action Red, Semibold 600, tight line-heights */
h1, h2, h3, h4, h5, h6 { font-family: var(--font); font-weight: 700; color: var(--red); margin: 0 0 0.4em; }
h1 { font-size: clamp(40px, 5vw, 64px); line-height: 1.1; letter-spacing: -0.01em; }
h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.2; letter-spacing: -0.005em; }
h3 { font-size: clamp(22px, 2vw, 26px); line-height: 1.3; }
h4 { font-size: 18px; line-height: 1.35; }
h5 { font-size: 14px; line-height: 1.4; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

/* Links — Action Red, Medium 500, underlined */
a { color: var(--ink); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--red); text-decoration-thickness: 1px; }
a:hover, a:focus-visible { color: var(--red); text-decoration-color: var(--red); }
a:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; border-radius: 2px; }

/* Emphasis */
b, strong { font-weight: 600; }
em { font-style: italic; }

/* Skip link */
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--bg); padding: 12px 20px; font-weight: 500; z-index: 999; text-decoration: none; }
.skip-link:focus { left: 12px; top: 12px; }

/* Layout */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
section { padding: 88px 0; }
section.alt { background: var(--bg); border-top: 1px solid var(--ink-10); border-bottom: 1px solid var(--ink-10); }
.center { text-align: center; }
.lede { font-size: 20px; line-height: 1.55; color: var(--ink); max-width: 60ch; }
.center .lede, .lede.center { margin-left: auto; margin-right: auto; }
.micro { font-size: 13px; line-height: 1.5; color: var(--ink); }
.dot { color: var(--red); }

/* Eyebrows / overlines — Work Sans 500, uppercase, Deep Espresso 50% */
.eyebrow {
  display: inline-block;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 20px;
}
.eyebrow::before { content: "— "; color: var(--red); }

/* Navigation */
nav { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--ink-10); }
.nav-in { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 20px; }
.brand:hover, .brand:focus-visible { color: var(--ink); text-decoration: none; }
.brand img { height: 28px; width: auto; }
.brand .b-name { color: var(--ink); }
.brand .b-commerce { color: var(--red); font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--red); text-decoration: underline; }
.nav-links a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nav-links a.btn-red { color: var(--bg); font-weight: 600; text-decoration: none; }
.nav-links a.btn-ghost { color: var(--ink); text-decoration: none; }
.nav-links .btn { text-decoration: none; }
.nav-cta { display: none; align-items: center; gap: 12px; }
.mtoggle { display: none; }

@media (max-width: 900px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); flex-direction: column; padding: 24px; border-bottom: 1px solid var(--ink-10); gap: 20px; align-items: stretch; }
  .nav-links.open { display: flex; }
  .nav-links a { text-align: left; }
  .nav-cta { display: flex; }
  .nav-cta .btn { display: none; }
  .mtoggle { display: inline-flex; flex-direction: column; gap: 4px; padding: 8px; background: transparent; border: 1px solid var(--ink-20); border-radius: 4px; cursor: pointer; }
  .mtoggle span { width: 20px; height: 2px; background: var(--ink); }
}
@media (min-width: 901px) { .nav-cta .btn { display: inline-flex; } .mtoggle { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font); font-weight: 500;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 15px 32px;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  line-height: 1;
}
.btn-red { background: #C91501; color: var(--bg); border-color: #C91501; font-weight: 600; }
.btn-red:hover, .btn-red:focus-visible { background: #A0110A; border-color: #A0110A; color: var(--bg); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover, .btn-ghost:focus-visible { background: var(--ink); color: var(--bg); text-decoration: none; }
.btn-block { display: flex; width: 100%; }
.btn:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* Hero */
.hero { padding: 88px 0 64px; background: var(--bg); }
.hero .lede { margin-top: 24px; }
.hero-cta { display: flex; gap: 16px; margin-top: 36px; flex-wrap: wrap; }
.hero-cta.center, .center .hero-cta { justify-content: center; }
.hero-foot { margin-top: 24px; }
.hero-foot .micro { display: inline-block; }

/* Section head */
.sec-head { margin-bottom: 48px; max-width: 780px; }
.sec-head.center { margin-left: auto; margin-right: auto; }
.sec-head .lede { margin-top: 16px; }

/* Grid */
.grid { display: grid; gap: 24px; }
.grid.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) {
  .grid.g3, .grid.g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.g2 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .grid.g3, .grid.g4 { grid-template-columns: 1fr; }
}

/* Cards */
.card {
  background: var(--bg);
  border: 1px solid var(--ink-10);
  border-radius: 4px;
  padding: 32px;
}
.card h3 { margin-bottom: 12px; }
.card.ink { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.card.ink h3, .card.ink h4 { color: var(--red); }
.card.ink p { color: var(--bg); }
.card.ink .eyebrow { color: rgba(255, 255, 255, 0.85); }
.card.ink .micro { color: rgba(255, 255, 255, 0.85); }
.card.ink a { color: var(--red); }
.card .ic {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
  display: block;
}
.card.ink .ic { color: rgba(255, 255, 255, 0.85); }
.ic-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid var(--red); border-radius: 4px;
  color: var(--red);
  margin-bottom: 20px;
}
.card.ink .ic-badge { border-color: var(--red); color: var(--red); }

/* Split (2-column with content + figure) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px; } }
.figure { }

/* Tech-list — spec/list items with bold label + description */
.tech-list { list-style: none; padding: 0; margin: 24px 0 0; }
.tech-list li { padding: 16px 0; border-bottom: 1px solid var(--ink-10); }
.tech-list li:last-child { border-bottom: none; }
.tech-list b { display: block; color: var(--ink); font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.tech-list span { display: block; color: var(--ink); }
.card.ink .tech-list li { border-color: rgba(255, 255, 255, 0.15); }
.card.ink .tech-list b, .card.ink .tech-list span { color: var(--bg); }

/* Tier-list — simple bullet list inside cards */
.tier-list { list-style: none; padding: 0; margin: 0; }
.tier-list li { padding: 10px 0 10px 24px; position: relative; border-bottom: 1px solid var(--ink-10); }
.tier-list li:last-child { border-bottom: none; }
.tier-list li::before {
  content: "";
  position: absolute; left: 0; top: 20px;
  width: 12px; height: 1px; background: var(--red);
}
.card.ink .tier-list li { border-color: rgba(255, 255, 255, 0.15); }

/* Callout */
.callout {
  background: var(--bg);
  border: 1px solid var(--red);
  border-radius: 4px;
  padding: 56px 48px;
  max-width: 900px;
  margin: 0 auto;
}
.callout .eyebrow { color: var(--red); }
.callout .eyebrow::before { color: var(--red); }

/* CTA band */
.cta-band {
  background: var(--ink);
  color: var(--bg);
  border-radius: 4px;
  padding: 64px 48px;
  text-align: center;
}
.cta-band h2 { color: var(--red); margin-bottom: 20px; }
.cta-band p, .cta-band .lede { color: var(--bg); margin-left: auto; margin-right: auto; max-width: 60ch; }
.cta-band .hero-cta { justify-content: center; margin-top: 32px; }

/* Steps — numbered process */
.steps { display: flex; flex-direction: column; gap: 32px; max-width: 820px; margin: 0 auto; }
.step { display: grid; grid-template-columns: 80px 1fr; gap: 32px; align-items: start; }
.step-n {
  font-family: var(--font);
  font-size: 40px;
  font-weight: 600;
  color: var(--red);
  line-height: 1;
}
.step-body h3 { margin-bottom: 12px; }
@media (max-width: 640px) {
  .step { grid-template-columns: 1fr; gap: 8px; }
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--ink-10);
  padding: 24px 0;
}
.faq-item summary {
  font-weight: 600;
  font-size: 18px;
  cursor: pointer;
  color: var(--ink);
  list-style: none;
  position: relative;
  padding-right: 32px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute; right: 0; top: 0;
  color: var(--red); font-size: 24px; line-height: 1; font-weight: 400;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin-top: 16px; color: var(--ink); }

/* Forms */
.form { }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.form .row.single { grid-template-columns: 1fr; }
@media (max-width: 640px) { .form .row { grid-template-columns: 1fr; } }
.fld { display: flex; flex-direction: column; gap: 8px; }
.fld label {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.fld input, .fld select, .fld textarea {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  color: var(--ink);
  padding: 14px 16px;
  border: 1px solid var(--ink-20);
  border-radius: 4px;
  background: var(--bg);
  width: 100%;
}
.fld input:focus, .fld select:focus, .fld textarea:focus {
  outline: 2px solid var(--red);
  outline-offset: 2px;
  border-color: var(--red);
}
.fld textarea { resize: vertical; min-height: 100px; font-family: var(--font); line-height: 1.5; }
.form-actions { margin-top: 8px; }
.form-result { margin-top: 20px; padding: 16px; border: 1px solid var(--ink-20); border-radius: 4px; font-size: 14px; }
.form-result:empty { display: none; }

/* Footer */
footer { background: var(--ink); color: var(--bg); padding: 72px 0 32px; }
footer .foot-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255, 255, 255, 0.15); }
@media (max-width: 900px) { footer .foot-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { footer .foot-top { grid-template-columns: 1fr; } }
footer .brand { color: var(--bg); }
footer .brand .b-name { color: var(--bg); }
footer .foot-tag { color: rgba(255, 255, 255, 0.85); font-size: 15px; line-height: 1.6; margin-top: 20px; max-width: 42ch; }
footer .foot-endorse { color: rgba(255, 255, 255, 0.85); font-size: 12px; margin-top: 20px; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 500; }
footer .foot-col h5 { color: var(--red); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 20px; }
footer .foot-col a { display: block; color: rgba(255, 255, 255, 0.85); font-size: 15px; padding: 6px 0; text-decoration: none; font-weight: 400; }
footer .foot-col a:hover, footer .foot-col a:focus-visible { color: var(--red); text-decoration: underline; }
footer .foot-bot { padding-top: 32px; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: 12px; color: rgba(255, 255, 255, 0.85); text-transform: uppercase; letter-spacing: 0.12em; font-weight: 500; }

/* Chart wrapper */
.chart { display: block; width: 100%; height: auto; border-radius: 4px; background: var(--bg); }

/* Reveal — accessibility-safe */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
html:not(.js) .reveal { opacity: 1; transform: none; }

/* ROI calculator */
.calc-wrap { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: start; margin-top: 48px; }
@media (max-width: 900px) { .calc-wrap { grid-template-columns: 1fr; gap: 32px; } }
.calc-panel { background: var(--bg); border: 1px solid var(--ink-10); border-radius: 4px; padding: 32px; }
.calc-panel h3 { margin-bottom: 6px; font-size: 20px; font-weight: 700; }
.calc-panel .sub { color: var(--ink); font-size: 14px; margin-bottom: 24px; }
.calc-row { margin: 22px 0; }
.calc-row .lbl { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; gap: 12px; }
.calc-row .lbl-name { font-size: 14px; color: var(--ink); font-weight: 500; }
.calc-row .lbl-val {
  font-family: var(--font);
  font-size: 13px;
  color: var(--bg);
  font-weight: 600;
  padding: 4px 12px;
  background: #C91501;
  border-radius: 4px;
  min-width: 68px;
  text-align: center;
}
.calc-row input[type=range] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 4px; background: var(--ink-10); border-radius: 2px; outline: none; margin: 0;
}
.calc-row input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 20px; height: 20px; border-radius: 50%; background: var(--red);
  cursor: pointer; border: 2px solid var(--bg);
  box-shadow: 0 0 0 1px var(--red);
}
.calc-row input[type=range]::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%; background: var(--red);
  cursor: pointer; border: 2px solid var(--bg);
  box-shadow: 0 0 0 1px var(--red);
}
.calc-row input[type=range]:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }

.calc-out { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.calc-out .out {
  background: var(--bg);
  border: 1px solid var(--ink-10);
  border-radius: 4px;
  padding: 20px;
}
.calc-out .out.feat { border-color: var(--red); }
.calc-out .out .out-lbl {
  font-family: var(--font); font-size: 11px; font-weight: 500;
  color: var(--ink); text-transform: uppercase; letter-spacing: 0.12em;
  margin-bottom: 8px;
}
.calc-out .out .out-val {
  font-family: var(--font); font-size: 28px; font-weight: 600;
  color: var(--ink); line-height: 1.1;
}
.calc-out .out.feat .out-val { color: var(--red); }

.waterfall {
  background: var(--bg);
  border: 1px solid var(--ink-10);
  border-radius: 4px;
  padding: 32px;
}
.waterfall-title { font-size: 20px; font-weight: 700; color: var(--red); margin-bottom: 6px; }
.waterfall-sub { font-size: 14px; color: var(--ink); margin-bottom: 24px; }
.section-label {
  font-family: var(--font); font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--ink);
  margin: 20px 0 12px;
}
.section-label.feat { color: var(--red); }
.bar-row { margin: 10px 0; }
.bar-row .bar-label { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; margin-bottom: 6px; }
.bar-row .bar-stage { color: var(--ink); font-weight: 500; }
.bar-row .bar-rate { color: var(--ink); font-weight: 400; font-size: 12px; }
.bar-row .bar-track { background: var(--ink-06); border-radius: 4px; height: 26px; overflow: hidden; }
.bar-row .bar-fill {
  height: 100%; border-radius: 4px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex; align-items: center; justify-content: flex-end;
  padding-right: 12px;
  color: var(--bg);
  font-family: var(--font); font-size: 12px; font-weight: 500;
  min-width: fit-content;
}
.bar-row .bar-fill.current { background: var(--ink); }
.bar-row .bar-fill.commerce { background: #C91501; }
.bar-row.terminal .bar-stage { color: var(--ink); font-weight: 700; }

.calc-rec {
  background: var(--ink);
  color: var(--bg);
  border-radius: 4px;
  padding: 32px;
}
.calc-rec .rec-eyebrow {
  font-family: var(--font); font-size: 11px; font-weight: 500;
  color: var(--red); text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.calc-rec .rec-plan { font-size: 20px; font-weight: 600; color: var(--bg); margin-bottom: 12px; line-height: 1.35; }
.calc-rec .rec-price { color: rgba(255, 255, 255, 0.85); font-size: 14px; margin-bottom: 20px; }
.calc-rec .rec-cta {
  display: inline-flex;
  font-family: var(--font); font-size: 14px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  background: #C91501; color: var(--bg);
  padding: 14px 28px; border-radius: 4px; text-decoration: none;
  transition: background 0.15s;
}
.calc-rec .rec-cta:hover, .calc-rec .rec-cta:focus-visible { background: #A0110A; color: var(--bg); text-decoration: none; }
