/* ============================================================
   RetailSuite RTM — marketing site
   Static, no build step, no external requests.
   Palette matches the product apps: brand green anchored at
   #0e9f6e (the app icon colour), amber accent #c2760a/#92560a
   for emphasis and highlights. Light theme, committed — every
   surface and text colour is explicit.

   Typeface: Outfit (variable, 300–800), self-hosted in fonts/.
   Motion: transform/opacity only, 120–220ms for interaction,
   ~600ms for entrances, all disabled under prefers-reduced-motion.
   ============================================================ */

/* ---------- Outfit, self-hosted variable font ---------- */
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("fonts/outfit-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
                 U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
                 U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
                 U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("fonts/outfit-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
                 U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
                 U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF,
                 U+FFFD;
}

:root {
  /* Brand green ramp (from the RetailSuite RTM logo — emerald #0e9f6e) */
  --brand-50:  #ecfdf5;
  --brand-100: #d1fae5;
  --brand-200: #a7f3d0;
  --brand-300: #6ee7b7;
  --brand-500: #10b981;
  --brand-600: #0e9f6e;   /* logo green — primary */
  --brand-700: #087f5b;   /* pressed / active   */
  --brand-800: #065f46;
  --brand-900: #064e3b;

  /* Amber accent (used sparingly: highlights, badges, emphasis) */
  --accent-100: #fef3c7;
  --accent-600: #c2760a;
  --accent-700: #92560a;

  /* Ink + surfaces */
  --ink:        #06342a;
  --ink-soft:   #35544b;
  --ink-subtle: #5b7268;
  --paper:      #ffffff;
  --paper-subtle: #f4faf7;
  --paper-tint: #ecfdf5;
  --border:     #d7e8e0;
  --border-strong: #bcdccd;

  --radius: 12px;
  --radius-lg: 18px;
  --shadow: 0 1px 2px rgb(6 78 59 / 0.06), 0 8px 24px -12px rgb(6 78 59 / 0.18);
  --shadow-lift: 0 2px 4px rgb(6 78 59 / 0.05), 0 18px 40px -22px rgb(6 78 59 / 0.45);

  --font: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, "Noto Sans", sans-serif;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);       /* interaction */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);  /* entrances   */
  --dur-fast: 140ms;
  --dur: 190ms;
  --dur-slow: 620ms;

  /* Sticky-header allowance for in-page anchors */
  --header-h: 7.6rem;
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(1rem, 0.965rem + 0.16vw, 1.0625rem);
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis-weight: none;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-700); }
a:hover { color: var(--brand-600); }
:focus-visible {
  outline: 3px solid var(--brand-500);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Type scale (Outfit) ----------
   Display sizes lean on Outfit's geometry: heavier weights,
   tighter tracking, balanced wrapping. Text sizes stay neutral. */
h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  text-wrap: balance;
  font-weight: 700;
}
h1 {
  font-size: clamp(2.15rem, 1.5rem + 2.6vw, 3.4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
}
h2 {
  font-size: clamp(1.7rem, 1.3rem + 1.65vw, 2.5rem);
  font-weight: 700;
  line-height: 1.13;
  letter-spacing: -0.028em;
}
h3 {
  font-size: clamp(1.12rem, 1.06rem + 0.28vw, 1.3rem);
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -0.018em;
}
h4 { font-size: 1.05rem; font-weight: 650; line-height: 1.35; letter-spacing: -0.015em; }
p  { margin: 0 0 1em; max-width: 68ch; }
ul { margin: 0 0 1em; padding-left: 1.2em; }
li { margin-bottom: 0.4em; max-width: 72ch; }
strong { font-weight: 650; }
small { font-size: 0.875em; }

.container { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }
.container-narrow { max-width: 52rem; margin: 0 auto; padding: 0 1.25rem; }

/* ---------- Visually hidden (screen-reader only) ---------- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--brand-800); color: #ffffff;
  padding: 0.6rem 1rem; z-index: 100; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #ffffff; }

/* ---------- Header / nav ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--border);
}
.header-bar {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.8rem 0;
}
.brand {
  display: flex; align-items: center; gap: 0.6rem;
  text-decoration: none; color: var(--ink);
  font-weight: 750; font-size: 1.16rem; letter-spacing: -0.035em;
  margin-right: auto; line-height: 1.1;
}
.brand img { width: 38px; height: 38px; }
.brand .brand-suffix { color: var(--brand-600); }

.header-actions { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; justify-content: flex-end; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  min-height: 46px; padding: 0.6rem 1.25rem;
  border-radius: 999px; border: 1px solid transparent;
  font-family: inherit; font-weight: 600; font-size: 0.975rem;
  line-height: 1.25; letter-spacing: -0.008em; text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform var(--dur-fast) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.btn-primary { background: var(--brand-600); color: #ffffff; }
.btn-primary:hover { background: var(--brand-700); color: #ffffff; }
.btn-quiet { background: transparent; color: var(--brand-800); border-color: var(--border-strong); }
.btn-quiet:hover { background: var(--brand-50); color: var(--brand-900); }
.btn-on-dark { background: #ffffff; color: var(--brand-800); }
.btn-on-dark:hover { background: var(--brand-100); color: var(--brand-900); }
.btn-outline-on-dark { background: transparent; color: #ffffff; border-color: rgb(255 255 255 / 0.55); }
.btn-outline-on-dark:hover { background: rgb(255 255 255 / 0.12); color: #ffffff; }
.btn-lg { padding: 0.82rem 1.65rem; font-size: 1.05rem; min-height: 52px; }
.btn svg { flex: none; transition: transform var(--dur) var(--ease); }

.site-nav { border-top: 1px solid var(--border); }
.site-nav ul {
  list-style: none; margin: 0; padding: 0.15rem 0;
  display: flex; flex-wrap: wrap; gap: 0 0.25rem;
}
.site-nav li { max-width: none; margin-bottom: 0; }
.site-nav ul a {
  position: relative;
  display: inline-flex; align-items: center;
  min-height: 42px; padding: 0.25rem 0.8rem;
  text-decoration: none; color: var(--ink-soft);
  font-weight: 550; font-size: 0.955rem; letter-spacing: -0.012em;
  border-radius: 8px;
  transition: color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.site-nav ul a:hover { color: var(--brand-800); background: var(--brand-50); }
.site-nav ul a[aria-current="page"] {
  color: var(--brand-700);
  box-shadow: inset 0 -3px 0 var(--brand-600);
  border-radius: 8px 8px 0 0;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--brand-900) 0%, var(--brand-800) 45%, var(--brand-700) 100%);
  color: #f4fbfa;
  padding: 3.5rem 0 3.75rem;
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 2.5rem; align-items: center;
}
.hero h1 {
  color: #ffffff; margin-bottom: 0.42em;
  font-size: clamp(2.3rem, 1.5rem + 3vw, 3.6rem);
  line-height: 1.04; letter-spacing: -0.04em;
}
.hero .lede {
  font-size: clamp(1.1rem, 1rem + 0.45vw, 1.3rem);
  font-weight: 350; line-height: 1.5; letter-spacing: -0.008em;
  color: #d7ece9; max-width: 52ch;
}
.hero-cta { display: flex; gap: 0.8rem; flex-wrap: wrap; margin: 1.6rem 0 0.9rem; }
.hero-note { font-size: 0.94rem; color: #b9dcd7; max-width: 58ch; }
.hero-note strong { color: #ffffff; font-weight: 650; }
.hero-art { margin: 0; }
.hero-art svg { width: 100%; height: auto; display: block; }

/* Subpage hero (light) */
.page-hero {
  position: relative;
  background: linear-gradient(180deg, var(--brand-50) 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--border);
  padding: 3rem 0 2.5rem;
}
.page-hero h1 {
  font-size: clamp(2.1rem, 1.45rem + 2.5vw, 3.3rem);
  line-height: 1.06; letter-spacing: -0.038em;
}
.page-hero p.lede {
  font-size: clamp(1.08rem, 1rem + 0.35vw, 1.24rem);
  font-weight: 350; line-height: 1.55; letter-spacing: -0.006em;
  color: var(--ink-soft); max-width: 56ch; margin-bottom: 0;
}
.page-hero .hero-cta { margin-top: 1.5rem; }
.kicker {
  display: inline-block; font-size: 0.775rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brand-600); margin-bottom: 0.7rem;
}
.hero .kicker { color: var(--brand-300); }

/* ---------- Fact strip ---------- */
.fact-strip { background: var(--brand-50); border-bottom: 1px solid var(--border); }
.fact-strip ul {
  list-style: none; margin: 0; padding: 0.85rem 0;
  display: flex; flex-wrap: wrap; gap: 0.4rem 1.6rem;
}
.fact-strip li {
  display: inline-flex; align-items: center; gap: 0.45rem;
  margin: 0; max-width: none; font-size: 0.94rem; font-weight: 550;
  letter-spacing: -0.008em; color: var(--brand-900);
}
.fact-strip svg { color: var(--brand-600); flex: none; }

/* ---------- Sections ---------- */
.section { padding: 4rem 0; }
.section-tint { background: var(--paper-subtle); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 62ch; margin-bottom: 2.25rem; }
.section-head p {
  color: var(--ink-soft); font-size: 1.06rem; font-weight: 350;
  line-height: 1.6; margin-bottom: 0; max-width: 65ch;
}

/* Cards / grids */
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.5rem 1.2rem;
  box-shadow: var(--shadow);
}
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card h3 { margin-bottom: 0.45em; }
.card p { color: var(--ink-soft); }
.icon-chip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--brand-50); color: var(--brand-600);
  border: 1px solid var(--brand-100);
  margin-bottom: 0.9rem;
}
.icon-chip-warn { background: var(--accent-100); color: var(--accent-600); border-color: #fbcfd3; }
.card .more-link { font-weight: 600; font-size: 0.95rem; letter-spacing: -0.012em; text-decoration: none; }

/* Feature detail blocks (features.html) */
.feature-block {
  display: grid; grid-template-columns: 56px minmax(0, 1fr);
  gap: 1.25rem; padding: 1.75rem 0;
  border-top: 1px solid var(--border);
}
.feature-block:first-of-type { border-top: 0; }
.feature-block h3 { font-size: clamp(1.28rem, 1.15rem + 0.5vw, 1.55rem); letter-spacing: -0.028em; }
.feature-block .icon-chip { width: 52px; height: 52px; margin-bottom: 0; }
.feature-block p { color: var(--ink-soft); max-width: 68ch; }
.feature-block ul { color: var(--ink-soft); max-width: 70ch; }
.feature-block li strong { color: var(--ink); }

/* How it works steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: step; }
.steps li { margin: 0; position: relative; padding: 1.25rem 1.25rem 1.1rem; background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.steps li { max-width: none; }
.steps li::before {
  counter-increment: step; content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--brand-600); color: #ffffff; font-weight: 700;
  font-size: 0.95rem; line-height: 1;
  margin-bottom: 0.8rem;
}
.steps h3 { font-size: 1.06rem; margin-bottom: 0.4em; }
.steps p { font-size: 0.95rem; color: var(--ink-soft); margin: 0; }

/* Edition cards */
.edition-card { display: flex; flex-direction: column; }
.edition-card .edition-tag {
  align-self: flex-start; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--brand-700); background: var(--brand-50);
  border: 1px solid var(--brand-100); border-radius: 999px;
  padding: 0.2rem 0.7rem; margin-bottom: 0.8rem;
}
.edition-card ul { list-style: none; padding: 0; font-size: 0.95rem; color: var(--ink-soft); }
.edition-card li { display: flex; gap: 0.5rem; align-items: flex-start; max-width: none; }
.edition-card li svg { flex: none; margin-top: 0.28em; color: var(--brand-600); }

/* Pricing: the live plan grid (pricing.html + app.js initPricingPlans),
   mirroring the in-app Plans & Pricing screen — a billing-period toggle, then
   one card per edition for the chosen period. `.plans [hidden]` uses
   !important so the hidden attribute reliably hides even the .grid container,
   whose author display:grid would otherwise beat the UA [hidden] rule. */
.plans [hidden] { display: none !important; }
.plans-loading { color: var(--ink-soft); margin: 0; text-align: center; }

/* Billing-period toggle */
.period-tabs {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.35rem;
  width: fit-content; margin: 0 auto 2rem;
  background: var(--brand-50); border: 1px solid var(--border);
  border-radius: 999px; padding: 0.35rem;
}
.period-tab {
  border: 0; background: transparent; cursor: pointer; font: inherit;
  font-size: 0.92rem; font-weight: 600; color: var(--ink-soft); line-height: 1;
  padding: 0.45rem 1.05rem; border-radius: 999px;
  transition: background 140ms, color 140ms;
}
.period-tab:hover { color: var(--brand-700); }
.period-tab-on, .period-tab-on:hover { background: var(--brand-600); color: #fff; }

/* Plan cards */
.plan-card { display: flex; flex-direction: column; text-align: left; }
.plan-card-featured { position: relative; border-color: var(--brand-600); box-shadow: 0 0 0 1px var(--brand-600); }
.plan-badge {
  position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%);
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: #fff; background: var(--brand-600); border-radius: 999px; padding: 0.28rem 0.75rem;
  white-space: nowrap;
}
.plan-card .plan-name { font-size: 1.05rem; font-weight: 700; line-height: 1.3; margin: 0 0 0.7rem; }
.plan-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 0.25rem; }
.plan-price strong { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; }
.plan-price span { font-size: 0.9rem; color: var(--ink-soft); }
.plan-billed { font-size: 0.86rem; color: var(--ink-soft); margin: 0 0 1.2rem; }
.plan-cta { margin-top: auto; display: flex; width: 100%; justify-content: center; text-align: center; white-space: normal; }
.plans-note { margin-top: 1.6rem; color: var(--ink-soft); font-size: 0.92rem; max-width: 72ch; }

/* Comparison table (pricing) */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--paper); box-shadow: var(--shadow); }
table.compare { border-collapse: collapse; width: 100%; min-width: 44rem; font-size: 0.95rem; }
table.compare caption { text-align: left; padding: 1.1rem 1.25rem 0.35rem; font-weight: 700; font-size: 1.08rem; letter-spacing: -0.02em; color: var(--ink); }
table.compare th, table.compare td { padding: 0.8rem 1rem; text-align: center; border-top: 1px solid var(--border); }
table.compare thead th { border-top: 0; background: var(--brand-50); color: var(--brand-900); font-size: 0.86rem; font-weight: 650; letter-spacing: -0.005em; }
table.compare th[scope="row"] { text-align: left; font-weight: 550; color: var(--ink); }
table.compare td { color: var(--ink-soft); }
table.compare .yes { color: var(--brand-600); font-weight: 700; }
table.compare .no { color: var(--ink-subtle); }
table.compare tbody tr:nth-child(even) { background: var(--paper-subtle); }

/* FAQ */
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  position: relative; cursor: pointer;
  font-weight: 650; font-size: 1.04rem; letter-spacing: -0.018em;
  padding: 1.05rem 2.5rem 1.05rem 0.25rem;
  list-style: none; color: var(--ink);
  transition: color var(--dur-fast) var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 0.5rem; top: 50%;
  width: 0.62rem; height: 0.62rem; margin-top: -0.42rem;
  border-right: 2px solid var(--brand-600); border-bottom: 2px solid var(--brand-600);
  transform: rotate(45deg);
  transition: transform var(--dur) var(--ease);
}
.faq details[open] > summary::after { transform: rotate(-135deg); margin-top: -0.16rem; }
.faq summary:hover { color: var(--brand-700); }
.faq details p, .faq details ul { color: var(--ink-soft); padding: 0 0.25rem; }
.faq details[open] > :not(summary) { animation: fade-rise 320ms var(--ease-out) both; }

/* Numbered / checklist lists */
.check-list { list-style: none; padding: 0; }
.check-list li { display: flex; gap: 0.6rem; align-items: flex-start; margin-bottom: 0.6em; max-width: 68ch; }
.check-list li svg { flex: none; margin-top: 0.25em; color: var(--brand-600); }

/* Install page platform cards */
.platform-card ol { padding-left: 1.25em; color: var(--ink-soft); margin-bottom: 0; }
.platform-card ol li { margin-bottom: 0.5em; }
.platform-card .menu-word {
  display: inline-block; background: var(--paper-subtle);
  border: 1px solid var(--border-strong); border-radius: 6px;
  padding: 0 0.4em; font-weight: 650; color: var(--ink);
  overflow-wrap: anywhere;
}

/* Contact page */
.contact-card { display: flex; gap: 1rem; align-items: flex-start; }
.contact-card .icon-chip { margin-bottom: 0; flex: none; }
.contact-card h3 { margin-bottom: 0.2em; }
.contact-card p { margin-bottom: 0.3em; color: var(--ink-soft); }
.contact-card a.big-link { font-size: 1.12rem; font-weight: 700; word-break: break-word; }

/* CTA band */
.cta-band {
  position: relative; overflow: hidden;
  background: linear-gradient(150deg, var(--brand-800), var(--brand-600));
  color: #ffffff; padding: 3.5rem 0;
}
.cta-band h2 { color: #ffffff; letter-spacing: -0.032em; }
.cta-band p { color: #d7ece9; max-width: 58ch; font-weight: 350; font-size: 1.06rem; }
.cta-band .hero-cta { margin-top: 1.4rem; }
.cta-band .hero-note { margin-top: 0.9rem; }

/* Callout */
.callout {
  border: 1px solid var(--brand-100); background: var(--brand-50);
  border-left: 4px solid var(--brand-600);
  border-radius: var(--radius); padding: 1rem 1.25rem;
  color: var(--brand-900); font-size: 0.98rem;
}
.callout p:last-child { margin-bottom: 0; }
.callout-warn { border-color: #fbcfd3; background: #fef2f3; border-left-color: var(--accent-600); color: #5a0b12; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--brand-900); color: #c7e2de;
  padding: 3rem 0 2rem; font-size: 0.95rem;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; }
.footer-brand { display: flex; align-items: center; gap: 0.6rem; color: #ffffff; font-weight: 750; font-size: 1.08rem; letter-spacing: -0.03em; text-decoration: none; }
.footer-brand img { width: 34px; height: 34px; background: #ffffff; border-radius: 50%; }
.footer-tagline { margin-top: 0.85rem; color: #9cc6c0; max-width: 40ch; font-weight: 350; }
.site-footer h2.footer-heading {
  font-size: 0.755rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: #8fbcb6; margin-bottom: 0.85rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.55em; max-width: none; }
.site-footer a { color: #d7ece9; text-decoration: none; }
.site-footer a:hover { color: #ffffff; }
.footer-bottom {
  border-top: 1px solid rgb(255 255 255 / 0.15);
  margin-top: 2.25rem; padding-top: 1.25rem;
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between;
  color: #9cc6c0; font-size: 0.88rem;
}
.footer-bottom p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 30rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4, .steps { grid-template-columns: 1fr; }
  .section { padding: 2.5rem 0; }
  .hero { padding: 2.5rem 0 2.75rem; }
  .header-bar { flex-wrap: wrap; }
  .header-actions { width: 100%; justify-content: stretch; }
  .header-actions .btn { flex: 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .feature-block { grid-template-columns: 1fr; gap: 0.5rem; }
}

/* ============================================================
   Extended components — added when the site grew from 6 pages
   to the full structure (about, editions + 4 landing pages,
   industries, why-us, implementation, demo).
   Same light theme, same explicit colours, same green ramp.
   ============================================================ */

/* ---------- Small utilities ---------- */
.mt-md { margin-top: 1.1rem; }
.mt-lg { margin-top: 1.75rem; }
.mb-0  { margin-bottom: 0; }
.center-block { text-align: center; }
.center-block .kicker { display: inline-block; }
.lede-center {
  font-size: clamp(1.08rem, 1rem + 0.35vw, 1.24rem);
  font-weight: 350; line-height: 1.55; color: var(--ink-soft);
  max-width: 62ch; margin: 0 auto;
}
.lede-soft { font-size: 1.06rem; font-weight: 350; color: var(--ink-soft); max-width: 65ch; }
.muted-inline { color: var(--ink-subtle); font-weight: 550; font-size: 0.92em; white-space: nowrap; }
.card-foot { margin-top: auto; padding-top: 0.6rem; }
.check-list li span { min-width: 0; }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-size: 0.92rem; color: var(--ink-subtle);
  margin-bottom: 0.75rem;
}
.breadcrumb a { color: var(--brand-700); text-decoration: none; font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span[aria-hidden] { padding: 0 0.35rem; }

/* Standalone edition tag (outside a card) */
.page-hero .edition-tag {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--brand-700); background: var(--brand-50);
  border: 1px solid var(--brand-100); border-radius: 999px;
  padding: 0.2rem 0.75rem; margin-bottom: 0.75rem;
}

/* ---------- In-page table of contents ---------- */
.toc {
  background: var(--paper-subtle);
  border-bottom: 1px solid var(--border);
}
.toc ul {
  list-style: none; margin: 0; padding: 0.75rem 0;
  display: flex; flex-wrap: wrap; gap: 0.4rem 0.5rem;
}
.toc li { margin: 0; max-width: none; }
.toc a {
  display: inline-block; padding: 0.35rem 0.8rem;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--paper); color: var(--ink-soft);
  text-decoration: none; font-size: 0.9rem; font-weight: 550;
  letter-spacing: -0.01em;
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease),
              background-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.toc a:hover { color: var(--brand-800); border-color: var(--brand-300); background: var(--brand-50); transform: translateY(-1px); }
.toc a:active { transform: translateY(0); }

/* ---------- Split layout (prose + side panel) ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 2rem; align-items: start;
}
.split > * { min-width: 0; }

.panel {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.section-tint .panel { background: var(--paper); }
.panel h3 { font-size: 1.05rem; margin-bottom: 0.7em; }
.panel > :last-child { margin-bottom: 0; }
.panel .check-list { color: var(--ink-soft); }
.panel .check-list li strong { color: var(--ink); }

/* ---------- Pill list ---------- */
.pill-list {
  list-style: none; padding: 0; margin: 0 0 1em;
  display: flex; flex-wrap: wrap; gap: 0.45rem;
}
.pill-list li {
  margin: 0; max-width: none; background: var(--brand-50);
  border: 1px solid var(--brand-100); color: var(--brand-900);
  border-radius: 999px; padding: 0.3rem 0.85rem;
  font-size: 0.91rem; font-weight: 550; letter-spacing: -0.008em;
}

/* ---------- Numbered process (vertical, any length) ---------- */
.process {
  list-style: none; margin: 0; padding: 0;
  counter-reset: pstep; display: grid; gap: 1.5rem;
}
.process li {
  margin: 0; max-width: none; position: relative; padding-left: 3.5rem;
}
.process li::before {
  counter-increment: pstep; content: counter(pstep);
  position: absolute; left: 0; top: 0;
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--brand-600); color: #ffffff;
  font-weight: 700; font-size: 1rem; line-height: 1;
}
.process h3 { font-size: 1.14rem; margin-bottom: 0.3em; }
.process p { color: var(--ink-soft); margin: 0; max-width: 68ch; }

/* ---------- Feature block extras ---------- */
.benefit-line {
  margin-top: 0.9rem; margin-bottom: 0;
  color: var(--brand-900); font-size: 0.97rem;
}
.benefit-label {
  display: inline-block; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--brand-700); background: var(--brand-50);
  border: 1px solid var(--brand-100); border-radius: 999px;
  padding: 0.1rem 0.6rem; margin-right: 0.5rem;
  vertical-align: 0.06em;
}
.edition-badge {
  display: inline-block; font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--brand-800); background: var(--brand-50);
  border: 1px solid var(--brand-100); border-radius: 999px;
  padding: 0.15rem 0.65rem; margin-left: 0.5rem;
  vertical-align: 0.18em; white-space: nowrap;
}
.feature-block .callout { margin-top: 1rem; }

/* ---------- Industry blocks ---------- */
.industry-block {
  padding: 1.9rem 0;
  border-top: 1px solid var(--border);
}
.industry-block:first-of-type { border-top: 0; padding-top: 0.5rem; }
.industry-head { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 0.9rem; }
.industry-head .icon-chip { margin-bottom: 0; flex: none; width: 52px; height: 52px; }
.industry-head h3 { font-size: clamp(1.25rem, 1.14rem + 0.45vw, 1.5rem); letter-spacing: -0.028em; margin-bottom: 0.18em; }
.industry-edition { margin: 0; font-size: 0.93rem; color: var(--ink-subtle); font-weight: 550; }
.industry-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.25rem 2rem; align-items: start; }
.industry-body p { color: var(--ink-soft); margin-bottom: 0; }
.industry-body .check-list { color: var(--ink-soft); margin-bottom: 0; }

/* ---------- Callouts, tables, definition lists ---------- */
.callout-wide h3 { color: var(--brand-900); font-size: 1.1rem; }
.callout h3:first-child { margin-top: 0; }
.table-note { margin-top: 1rem; color: var(--ink-subtle); font-size: 0.92rem; }

.detail-list { margin: 0; }
.detail-list dt {
  font-size: 0.73rem; font-weight: 700; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--brand-700); margin-bottom: 0.2rem;
}
.detail-list dd { margin: 0 0 1.1rem; color: var(--ink-soft); }
.detail-list dd:last-child { margin-bottom: 0; }
.detail-list a { font-weight: 600; word-break: break-word; }

/* Card headings that are links */
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--brand-700); }

/* Light hero note (used under CTAs on light page heroes) */
.hero-note-light { font-size: 0.93rem; color: var(--ink-subtle); margin: 0.9rem 0 0; }
.cta-band .hero-note a { color: #ffffff; text-decoration: underline; }
.cta-band .hero-note a:hover { color: var(--brand-100); }

/* ---------- Footer (5 columns) ---------- */
.footer-grid { grid-template-columns: 1.7fr repeat(4, minmax(0, 1fr)); }
.footer-address { margin-top: 0.9rem; color: #9cc6c0; font-size: 0.9rem; }
.footer-legal {
  display: flex; flex-wrap: wrap; gap: 0.35rem 1.25rem;
  margin: 0; padding: 0; list-style: none;
}
.footer-legal li { margin: 0; }
.footer-bottom { align-items: baseline; }

.contact-card a.big-link { font-weight: 650; letter-spacing: -0.015em; }

/* ---------- Responsive for the new components ---------- */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .industry-body { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .process li { padding-left: 3rem; }
  .process li::before { width: 2.1rem; height: 2.1rem; font-size: 0.92rem; }
  .industry-head { gap: 0.75rem; }
  .industry-head .icon-chip { width: 44px; height: 44px; }
  .header-actions .btn { flex: 1 1 auto; }
  .page-hero .hero-cta .btn { flex: 1 1 100%; }
  .edition-badge { display: block; margin-left: 0; margin-top: 0.4rem; }
}

/* ============================================================
   TYPOGRAPHY & MOTION LAYER
   Everything below is transform/opacity only, 120–220ms for
   interaction and ~600ms for entrances. Reveal states apply
   only when JavaScript is present (html.js), so a no-JS or
   blocked-JS visitor always sees the full page.
   ============================================================ */

/* ---------- Shared keyframes ---------- */
@keyframes fade-rise {
  from { opacity: 0; transform: translate3d(0, 14px, 0); }
  to   { opacity: 1; transform: none; }
}
@keyframes art-in {
  from { opacity: 0; transform: translate3d(0, 22px, 0) scale(0.975); }
  to   { opacity: 1; transform: none; }
}
@keyframes drift-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-7%, 9%, 0) scale(1.14); }
}
@keyframes drift-b {
  from { transform: translate3d(0, 0, 0) scale(1.06); }
  to   { transform: translate3d(8%, -7%, 0) scale(0.94); }
}

/* ---------- Anchors clear the sticky header ---------- */
:where([id]) { scroll-margin-top: calc(var(--header-h) + 1.25rem); }

/* ---------- Sticky header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--paper);
}
.site-header::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgb(255 255 255 / 0.93);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
  box-shadow: 0 14px 34px -26px rgb(6 78 59 / 0.85);
  opacity: 0;
  transition: opacity 240ms var(--ease);
  pointer-events: none;
}
.site-header.is-stuck { background: transparent; }
.site-header.is-stuck::after { opacity: 1; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header::after { background: var(--paper); }
}
.site-header .brand img { transition: transform var(--dur) var(--ease); }
.site-header .brand:hover img { transform: rotate(-6deg) scale(1.06); }

/* Nav link: sweep indicator under hover, kept off the current page */
.site-nav ul a::after {
  content: ""; position: absolute; left: 0.8rem; right: 0.8rem; bottom: 0.32rem;
  height: 2px; border-radius: 2px; background: currentColor;
  transform: scaleX(0); transform-origin: left center; opacity: 0.55;
  transition: transform var(--dur) var(--ease);
}
@media (hover: hover) {
  .site-nav ul a:hover::after { transform: scaleX(1); }
}
.site-nav ul a[aria-current="page"]::after { display: none; }

/* ---------- Mobile navigation disclosure ---------- */
.nav-toggle {
  display: none; align-items: center; gap: 0.6rem;
  min-height: 44px; padding: 0.45rem 1rem;
  border-radius: 999px; border: 1px solid var(--border-strong);
  background: var(--paper); color: var(--brand-800);
  font-family: inherit; font-size: 0.95rem; font-weight: 600;
  letter-spacing: -0.01em; line-height: 1; cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease);
}
.nav-toggle:hover { background: var(--brand-50); border-color: var(--brand-300); }
.nav-toggle:active { transform: scale(0.96); }
.nav-toggle-bars { position: relative; width: 18px; height: 12px; flex: none; }
.nav-toggle-bars span {
  position: absolute; left: 0; width: 100%; height: 2px;
  border-radius: 2px; background: currentColor;
  transition: transform 220ms var(--ease), opacity 130ms var(--ease);
}
.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 5px; }
.nav-toggle-bars span:nth-child(3) { top: 10px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; transform: scaleX(0.3); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* CTA pair repeated inside the mobile panel — hidden everywhere else */
.nav-actions { display: none; gap: 0.6rem; flex-wrap: wrap; padding: 0.35rem 0 1rem; }
.nav-actions .btn { flex: 1 1 10rem; }

@media (max-width: 860px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 26px 44px -30px rgb(6 78 59 / 0.7);
    max-height: 74vh; overflow-y: auto;
    opacity: 0; visibility: hidden;
    transform: translate3d(0, -10px, 0);
    transition: opacity 180ms var(--ease), transform 220ms var(--ease-out),
                visibility 0s linear 240ms;
  }
  .js .site-nav.is-open {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity 200ms var(--ease), transform 260ms var(--ease-out), visibility 0s;
  }
  .js .site-nav ul { flex-direction: column; padding: 0.5rem 0 0.25rem; gap: 0; }
  .js .site-nav ul a { width: 100%; min-height: 48px; font-size: 1rem; border-radius: 10px; }
  .js .site-nav ul a::after { display: none; }
  .js .site-nav ul a[aria-current="page"] {
    background: var(--brand-50); border-radius: 10px;
    box-shadow: inset 3px 0 0 var(--brand-600);
  }
  /* the collapsed header is a single row, so anchors need less clearance */
  .js { --header-h: 4.7rem; }
}
@media (max-width: 600px) {
  .js .header-actions { display: none; }
  .js .nav-actions { display: flex; }
  .hero .hero-cta .btn, .cta-band .hero-cta .btn { flex: 1 1 100%; }
}

/* ---------- Scroll reveal (JS only) ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.js [data-reveal].is-revealed { opacity: 1; transform: none; }

/* ---------- Hero entrance (pure CSS, runs with or without JS) ---------- */
.hero .kicker   { animation: fade-rise 640ms var(--ease-out) 40ms both; }
.hero h1        { animation: fade-rise 720ms var(--ease-out) 110ms both; }
.hero .lede     { animation: fade-rise 720ms var(--ease-out) 190ms both; }
.hero .hero-cta { animation: fade-rise 720ms var(--ease-out) 280ms both; }
.hero .hero-note{ animation: fade-rise 720ms var(--ease-out) 360ms both; }
.hero-art       { animation: art-in 900ms var(--ease-out) 300ms both; }

.page-hero .kicker,
.page-hero .breadcrumb,
.page-hero .edition-tag { animation: fade-rise 560ms var(--ease-out) 30ms both; }
.page-hero h1           { animation: fade-rise 620ms var(--ease-out) 90ms both; }
.page-hero p.lede       { animation: fade-rise 620ms var(--ease-out) 160ms both; }
.page-hero .hero-cta    { animation: fade-rise 620ms var(--ease-out) 230ms both; }
.page-hero .hero-note-light { animation: fade-rise 620ms var(--ease-out) 300ms both; }

/* ---------- Signature moment: slow drifting light behind the home hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero > .container { position: relative; }
.hero::before, .hero::after {
  content: ""; position: absolute; z-index: -1;
  border-radius: 50%; pointer-events: none;
}
.hero::before {
  width: 46rem; height: 46rem; top: -19rem; right: -13rem;
  background: radial-gradient(circle at 50% 50%, rgb(45 212 191 / 0.24), rgb(45 212 191 / 0) 66%);
  animation: drift-a 38s ease-in-out infinite alternate;
}
.hero::after {
  width: 40rem; height: 40rem; bottom: -22rem; left: -11rem;
  background: radial-gradient(circle at 50% 50%, rgb(94 234 212 / 0.18), rgb(94 234 212 / 0) 62%);
  animation: drift-b 47s ease-in-out infinite alternate;
}
.cta-band::before {
  content: ""; position: absolute; inset: auto -8rem -26rem auto;
  width: 34rem; height: 34rem; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgb(94 234 212 / 0.16), rgb(94 234 212 / 0) 65%);
  animation: drift-b 52s ease-in-out infinite alternate;
}
.cta-band > .container { position: relative; }

/* ---------- Cards & card-like surfaces ---------- */
.card, .steps li {
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.steps li { position: relative; }
.card::after, .steps li::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: var(--shadow-lift); opacity: 0;
  transition: opacity var(--dur) var(--ease); pointer-events: none;
}
.icon-chip {
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
@media (hover: hover) {
  /* `.js` is carried so these beat the revealed state's `transform: none`,
     which is equally specific and declared earlier. */
  .card:hover, .steps li:hover,
  .js .card:hover, .js .steps li:hover {
    transform: translateY(-4px); border-color: var(--brand-200);
  }
  .card:hover::after, .steps li:hover::after { opacity: 1; }
  .card:hover .icon-chip, .steps li:hover .icon-chip { transform: translateY(-2px) scale(1.06); }
}
.card:focus-within { border-color: var(--brand-300); }
.card:focus-within::after { opacity: 1; }
.panel { transition: border-color var(--dur) var(--ease); }
.panel:hover { border-color: var(--border-strong); }

/* ---------- Buttons ---------- */
@media (hover: hover) {
  .btn:hover { transform: translateY(-1px); }
  .btn-primary:hover { box-shadow: 0 12px 22px -14px rgb(15 118 110 / 0.95); }
  .btn-on-dark:hover { box-shadow: 0 12px 24px -14px rgb(6 78 59 / 0.85); }
  .btn:hover svg { transform: translateX(2px); }
}
.btn:active { transform: translateY(0) scale(0.97); transition-duration: 90ms; }

/* ---------- Links: underline sweeps and arrow nudges ---------- */
a { transition: color var(--dur-fast) var(--ease); }
p a, li a, dd a, .callout a, .lede a { text-underline-offset: 0.18em; text-decoration-thickness: 1px; }

.more-link, .card h3 a, .contact-card a.big-link,
.site-footer nav a, .footer-legal a, .breadcrumb a {
  position: relative; text-decoration: none;
}
.more-link::after, .card h3 a::after, .contact-card a.big-link::after,
.site-footer nav a::after, .footer-legal a::after, .breadcrumb a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -0.14em;
  height: 1.5px; border-radius: 2px; background: currentColor;
  transform: scaleX(0); transform-origin: left center;
  transition: transform var(--dur) var(--ease);
}
.more-link:hover::after, .more-link:focus-visible::after,
.card h3 a:hover::after, .card h3 a:focus-visible::after,
.contact-card a.big-link:hover::after, .contact-card a.big-link:focus-visible::after,
.site-footer nav a:hover::after, .site-footer nav a:focus-visible::after,
.footer-legal a:hover::after, .footer-legal a:focus-visible::after,
.breadcrumb a:hover::after, .breadcrumb a:focus-visible::after { transform: scaleX(1); }

.arw { display: inline-block; transition: transform var(--dur) var(--ease); }
.more-link:hover .arw, .more-link:focus-visible .arw { transform: translateX(4px); }

/* ---------- Tables, callouts, chips ---------- */
table.compare tbody tr { transition: background-color var(--dur-fast) var(--ease); }
table.compare tbody tr:hover { background: var(--brand-50); }
.pill-list li { transition: transform var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease); }
@media (hover: hover) { .pill-list li:hover { transform: translateY(-1px); border-color: var(--brand-300); } }
.callout { transition: border-color var(--dur) var(--ease); }

/* ---------- Count-up figures ---------- */
.tally { font-variant-numeric: tabular-nums; display: inline-block; text-align: right; }

/* ---------- Reduced motion: everything calms down ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .hero::before, .hero::after, .cta-band::before { animation: none !important; }
  .card:hover, .steps li:hover, .btn:hover, .btn:active,
  .toc a:hover, .pill-list li:hover, .nav-toggle:active { transform: none !important; }
  .site-header .brand:hover img { transform: none !important; }
}
