/* SolarSuite marketing site. Tokens mirror frontend/src/styles/theme.css. */
:root {
  --bg: oklch(0.985 0.006 248);
  --surface: #fff;
  --surface-2: oklch(0.97 0.01 250);
  --ink: oklch(0.18 0.035 252);
  --ink-2: oklch(0.33 0.04 252);
  --muted: oklch(0.48 0.045 252);
  --line: oklch(0.91 0.016 250);
  --line-strong: oklch(0.85 0.02 250);

  --brand: oklch(0.4 0.18 255);
  --brand-hover: oklch(0.35 0.17 255);
  --brand-bright: oklch(0.56 0.2 255);
  --brand-soft: oklch(0.93 0.04 255);
  --brand-tint: oklch(0.97 0.018 255);

  --navy: oklch(0.19 0.05 258);
  --navy-2: oklch(0.24 0.06 258);
  --navy-line: oklch(0.34 0.06 258);
  --on-navy: oklch(0.96 0.012 245);
  --on-navy-muted: oklch(0.78 0.035 250);

  --sun: oklch(0.84 0.17 89);
  --sun-deep: oklch(0.72 0.17 65);
  --leaf: oklch(0.58 0.13 160);
  --danger: oklch(0.56 0.2 27);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px oklch(0.2 0.05 258 / 0.06), 0 1px 3px oklch(0.2 0.05 258 / 0.08);
  --shadow: 0 4px 10px -2px oklch(0.2 0.05 258 / 0.08), 0 14px 34px -10px oklch(0.2 0.05 258 / 0.16);
  --shadow-lg: 0 30px 80px -24px oklch(0.2 0.08 258 / 0.38);

  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Manrope', 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --max: 1200px;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.02em; margin: 0; color: var(--ink); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brand-bright); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  padding: .6rem 1rem; border-radius: var(--radius-sm);
  background: var(--ink); color: #fff; text-decoration: none;
}
.skip-link:focus { top: 1rem; }
.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.icon {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: .65rem 1.15rem;
  border: 1px solid transparent; border-radius: 10px;
  font: 600 .95rem/1 var(--font-sans); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s;
}
.btn .icon { width: 18px; height: 18px; transition: transform .15s; }
.btn:hover .icon { transform: translateX(2px); }
.btn-primary {
  background: var(--brand); color: #fff;
  box-shadow: inset 0 1px 0 oklch(1 0 0 / .15), 0 6px 16px -6px oklch(0.4 0.18 255 / .6);
}
.btn-primary:hover { background: var(--brand-hover); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--ink-2); }
.btn-ghost { color: var(--ink-2); }
.btn-ghost:hover { color: var(--ink); background: var(--surface-2); }
.btn-sun { background: var(--sun); color: var(--navy); }
.btn-sun:hover { background: oklch(0.8 0.17 84); }
.btn-outline-light { color: var(--on-navy); border-color: oklch(1 0 0 / .28); }
.btn-outline-light:hover { background: oklch(1 0 0 / .08); }
.btn-lg { min-height: 52px; padding: .85rem 1.4rem; font-size: 1rem; }

/* Shared section furniture */
.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-top: .75rem; font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
.section-head p { margin-top: 1rem; font-size: 1.1rem; color: var(--muted); }
.kicker { font: 700 .8rem/1 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.ticks li { display: flex; gap: .6rem; align-items: flex-start; padding: .3rem 0; }
.ticks .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--leaf); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: oklch(0.985 0.006 248 / .84);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 1px 12px -6px oklch(0.2 0.05 258 / .15); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; height: var(--header-h); }
.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  font: 800 1.15rem/1 var(--font-display); letter-spacing: -0.02em; text-decoration: none;
}
.brand img { width: 32px; height: 32px; }
.nav { display: flex; align-items: center; gap: .15rem; margin-left: auto; }
.nav a {
  padding: .5rem .75rem; border-radius: 8px;
  font-size: .95rem; font-weight: 500; color: var(--ink-2); text-decoration: none;
}
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.header-actions { display: flex; align-items: center; gap: .5rem; }
.menu-toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 10px;
  background: var(--surface); color: var(--ink); cursor: pointer;
}
@media (max-width: 960px) {
  .header-actions { margin-left: auto; }
  .header-actions .btn-ghost { display: none; }
  .js .menu-toggle { display: inline-flex; }
  .js .nav {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: .5rem 1.25rem 1.25rem; margin: 0;
    background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .js .nav.is-open { display: flex; }
  .nav a { padding: .85rem .75rem; font-size: 1rem; }
  .no-js .nav { display: none; }
}

/* Hero */
.hero { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3rem, 6vw, 5rem); }
.hero::before {
  content: ""; position: absolute; z-index: -1; inset: -10% -10% auto;
  height: 900px;
  background:
    radial-gradient(560px 360px at 84% 6%, oklch(0.9 0.12 90 / .55), transparent 70%),
    radial-gradient(720px 480px at 12% 0%, oklch(0.9 0.06 255 / .85), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 20%, transparent 75%);
  opacity: .55;
}
.hero-copy { max-width: 880px; margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .35rem .85rem .35rem .4rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: .875rem; font-weight: 500; color: var(--ink-2);
}
.eyebrow-dot {
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 999px;
  background: linear-gradient(135deg, var(--sun), var(--sun-deep)); color: var(--navy);
}
.eyebrow-dot .icon { width: 14px; height: 14px; stroke-width: 2.5; }
.hero h1 { margin-top: 1.25rem; font-size: clamp(2.4rem, 5.6vw, 4.25rem); font-weight: 800; letter-spacing: -0.035em; }
.hero h1 .accent {
  background: linear-gradient(92deg, var(--brand) 0%, var(--brand-bright) 55%, oklch(0.62 0.16 232) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { max-width: 690px; margin: 1.35rem auto 0; font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 2rem; }
.hero-notes {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.5rem;
  margin-top: 1.25rem; font-size: .9rem; color: var(--muted);
}
.hero-notes li { display: inline-flex; align-items: center; gap: .4rem; }
.hero-notes .icon { width: 16px; height: 16px; color: var(--leaf); }
.hero-media { position: relative; max-width: 1100px; margin: clamp(2.5rem, 6vw, 4rem) auto 0; }

.frame { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-lg); }
.frame-bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.frame-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.frame img { width: 100%; }

.float-card {
  position: absolute; min-width: 220px; padding: .9rem 1rem;
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow);
  font-size: .85rem; animation: float 7s ease-in-out infinite;
}
.float-card.left { left: -4%; bottom: 12%; }
.float-card.right { right: -4%; bottom: -5%; animation-delay: -3.5s; }
.float-label { display: flex; align-items: center; gap: .45rem; color: var(--muted); font-weight: 500; }
.float-value { margin-top: .3rem; font: 800 1.35rem/1.2 var(--font-display); font-variant-numeric: tabular-nums; }
.float-sub { margin-top: .15rem; color: var(--muted); font-size: .8rem; }
.swatch { width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--brand)); flex: none; }
.mini-steps { display: flex; gap: 4px; margin-top: .6rem; }
.mini-steps span { flex: 1; height: 5px; border-radius: 999px; background: var(--brand); }
.mini-steps span.todo { background: var(--line); }
.mini-steps span.now { background: var(--brand-bright); opacity: .45; }
@keyframes float { 50% { transform: translateY(-8px); } }
@media (max-width: 1200px) { .float-card.left { left: 1rem; } .float-card.right { right: 1rem; } }
@media (max-width: 760px) { .float-card { display: none; } }

/* Audience strip */
.audience { padding-top: 1rem; }
.audience-title { text-align: center; font-size: .9rem; font-weight: 500; color: var(--muted); }
.chip-row { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 1rem; }
.chip {
  display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .9rem;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  font-size: .9rem; font-weight: 500; color: var(--ink-2);
}

/* Feature overview */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.feature-card {
  display: flex; flex-direction: column; padding: 1.75rem;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  text-decoration: none; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.feature-card:hover { transform: translateY(-3px); border-color: var(--brand-soft); box-shadow: var(--shadow); }
.feature-icon {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 1.1rem;
  border-radius: 12px; background: var(--brand-soft); color: var(--brand);
}
.tone-sun { background: oklch(0.96 0.06 90); color: oklch(0.52 0.12 70); }
.tone-leaf { background: oklch(0.95 0.04 160); color: oklch(0.48 0.11 160); }
.tone-violet { background: oklch(0.95 0.04 300); color: oklch(0.5 0.18 300); }
.tone-orange { background: oklch(0.96 0.045 55); color: oklch(0.55 0.16 45); }
.tone-teal { background: oklch(0.95 0.035 210); color: oklch(0.5 0.1 215); }
.feature-card h3 { font-size: 1.15rem; }
.feature-card p { margin-top: .5rem; font-size: .975rem; color: var(--muted); }
.feature-card .more { display: inline-flex; align-items: center; gap: .35rem; margin-top: auto; padding-top: 1rem; font-size: .9rem; font-weight: 600; color: var(--brand); }
.feature-card .more .icon { width: 16px; height: 16px; }
@media (max-width: 960px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .feature-grid { grid-template-columns: 1fr; } }

/* Dark workflow band */
.section-dark { position: relative; isolation: isolate; overflow: hidden; background: var(--navy); color: var(--on-navy); }
.section-dark::before {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background:
    radial-gradient(640px 320px at 92% 0%, oklch(0.56 0.2 255 / .38), transparent 70%),
    radial-gradient(520px 320px at 0% 100%, oklch(0.84 0.17 89 / .12), transparent 70%);
}
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .section-head p { color: var(--on-navy-muted); }
.section-dark .kicker { color: var(--sun); }

.phase-tabs { display: grid; grid-template-columns: repeat(6, 1fr); gap: .75rem; margin-bottom: 2.5rem; }
.phase-tab {
  position: relative; display: flex; align-items: center; gap: .6rem;
  padding: 0 0 1rem; border: 0; background: none; cursor: pointer; text-align: left;
  font: 600 .95rem/1.2 var(--font-sans); color: var(--on-navy-muted);
}
.phase-tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; border-radius: 999px; background: var(--navy-line); transition: background-color .2s; }
.phase-num {
  display: grid; place-items: center; flex: none; width: 30px; height: 30px;
  border: 1.5px solid var(--navy-line); border-radius: 50%; font-size: .85rem;
  transition: background-color .2s, border-color .2s;
}
.phase-tab:hover { color: #fff; }
.phase-tab.is-done .phase-num { background: var(--brand); border-color: var(--brand); color: #fff; }
.phase-tab.is-done::after { background: var(--brand-bright); }
.phase-tab[aria-selected="true"] { color: #fff; }
.phase-tab[aria-selected="true"] .phase-num { background: var(--brand-bright); border-color: var(--brand-bright); color: #fff; }
.phase-tab[aria-selected="true"]::after { background: var(--sun); }
.no-js .phase-tabs { display: none; }
/* Six tabs in one row stop fitting well before phone width, and a sideways
   scroller hid the later phases, so the row wraps instead. */
@media (max-width: 860px) {
  .phase-tabs { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
}
@media (max-width: 620px) {
  .phase-tabs { grid-template-columns: repeat(2, 1fr); gap: .65rem .9rem; margin-bottom: 2rem; }
  .phase-tab { gap: .5rem; padding-bottom: .8rem; font-size: .9rem; }
  .phase-num { width: 26px; height: 26px; font-size: .78rem; }
}

.phase-panel { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
.no-js .phase-panel + .phase-panel { margin-top: 4rem; }
.phase-copy h3 { margin-top: .6rem; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.phase-copy > p { margin-top: 1rem; font-size: 1.05rem; color: var(--on-navy-muted); }
.phase-copy .ticks { margin-top: 1.25rem; }
.phase-copy .ticks .icon { color: var(--sun); }
@media (max-width: 960px) { .phase-panel { grid-template-columns: 1fr; } }

.mock { overflow: hidden; border: 1px solid oklch(1 0 0 / .12); border-radius: var(--radius); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); }
.mock-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); font-weight: 600; }
.mock-head span { display: inline-flex; align-items: center; gap: .5rem; }
.mock-head small { font-size: .8rem; font-weight: 500; color: var(--muted); }
.mock-scroll { overflow-x: auto; }
.task-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.task-table th { padding: .7rem 1.25rem; border-bottom: 1px solid var(--line); text-align: left; font-size: .8rem; font-weight: 600; color: var(--muted); }
.task-table td { padding: .8rem 1.25rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.task-table tr:last-child td { border-bottom: 0; }
.task-name { font-weight: 500; color: var(--brand); }
.avatar {
  display: grid; place-items: center; width: 28px; height: 28px;
  border: 1px solid var(--line-strong); border-radius: 50%; background: var(--surface-2);
  font-size: .75rem; font-weight: 600; color: var(--ink-2);
}
.avatar.empty { border-style: dashed; color: var(--muted); }
.pill {
  display: inline-flex; align-items: center; padding: .2rem .6rem;
  border: 1px solid transparent; border-radius: 999px;
  font-size: .78rem; font-weight: 600; white-space: nowrap;
}
.pill-low, .pill-todo { background: var(--surface-2); border-color: var(--line); color: var(--ink-2); }
.pill-medium, .pill-ongoing { background: var(--brand-tint); border-color: var(--brand-soft); color: var(--brand); }
.pill-high { background: oklch(0.96 0.05 65); border-color: oklch(0.9 0.08 65); color: oklch(0.5 0.14 55); }
.pill-critical { background: oklch(0.96 0.03 27); border-color: oklch(0.9 0.06 27); color: var(--danger); }
.pill-completed { background: oklch(0.95 0.04 160); border-color: oklch(0.88 0.07 160); color: oklch(0.45 0.11 160); }
.mock-foot { display: flex; justify-content: flex-end; padding: .9rem 1.25rem; border-top: 1px solid var(--line); background: var(--surface-2); }
.mock-foot .btn { min-height: 36px; padding: .5rem .9rem; font-size: .85rem; pointer-events: none; }
@media (max-width: 560px) {
  .task-table .col-assignee { display: none; }
  .task-table th, .task-table td { padding-inline: .85rem; }
  .task-table .task-name { white-space: normal; min-width: 7.5rem; }
}

/* Split feature sections */
.split { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split.flip { grid-template-columns: 1.1fr 1fr; }
.split.flip > .split-media { order: -1; }
.split-copy h2 { margin-top: .75rem; font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.split-copy > p { margin-top: 1rem; font-size: 1.075rem; color: var(--muted); }
@media (max-width: 980px) {
  .split, .split.flip { grid-template-columns: 1fr; }
  .split.flip > .split-media { order: 0; }
}
.legend { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.legend li {
  display: inline-flex; align-items: center; gap: .45rem; padding: .4rem .75rem;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  font-size: .875rem; font-weight: 500;
}
.spec-list { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-top: 1.75rem; }
.spec-list li { display: flex; gap: .75rem; align-items: flex-start; padding: 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.spec-list .icon { margin-top: 2px; color: var(--brand); }
.spec-list strong { display: block; font-size: .95rem; }
.spec-list span { font-size: .875rem; color: var(--muted); }
@media (max-width: 560px) { .spec-list { grid-template-columns: 1fr; } }
.media-caption { margin-top: .9rem; text-align: center; font-size: .85rem; color: var(--muted); }

/* Quotation mock */
.proposal { padding: clamp(1.25rem, 3vw, 1.75rem); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-lg); }
.proposal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding-bottom: 1.25rem; border-bottom: 1px dashed var(--line-strong); }
.proposal-title { font: 700 1.1rem/1.3 var(--font-display); }
.proposal-meta { margin-top: .2rem; font-size: .85rem; color: var(--muted); }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-top: 1.25rem; }
.stat { padding: .9rem 1rem; border-radius: 12px; background: var(--surface-2); }
.stat-label { font-size: .78rem; font-weight: 500; color: var(--muted); }
.stat-value { margin-top: .25rem; font: 800 1.3rem/1.2 var(--font-display); font-variant-numeric: tabular-nums; }
.stat-value.good { color: oklch(0.45 0.11 160); }
.chart { margin-top: 1.5rem; }
.chart-title { display: flex; justify-content: space-between; gap: 1rem; font-size: .85rem; font-weight: 600; }
.chart-title span { font-weight: 500; color: var(--muted); }
.chart svg { width: 100%; height: auto; margin-top: .75rem; overflow: visible; }
.chart .bar { fill: var(--brand); transition: fill .15s; }
.chart .hit { fill: transparent; }
.chart .bar-g:hover .bar { fill: var(--brand-bright); }
.chart .axis { stroke: var(--line-strong); stroke-width: 1; }
.chart .ref { stroke: var(--ink-2); stroke-width: 1.25; stroke-dasharray: 4 4; pointer-events: none; }
.chart text { font: 500 11px var(--font-sans); fill: var(--muted); pointer-events: none; }
.chart .ref-label { fill: var(--ink-2); font-weight: 600; }
.finance-row {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem;
  margin-top: 1rem; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 12px;
  font-size: .875rem; color: var(--ink-2);
}
.finance-row strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.proposal-foot { margin-top: 1rem; font-size: .78rem; color: var(--muted); }
@media (max-width: 520px) {
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat:last-child { grid-column: 1 / -1; }
  .chart-title { flex-direction: column; gap: .1rem; }
  /* The SVG scales down with the card; larger labels stay about 10px on phones. */
  .chart text { font-size: 15px; }
}

/* Accounting + inventory */
.module-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 1.25rem; }
.module { padding: clamp(1.5rem, 3vw, 2.25rem); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.module-top { display: flex; align-items: center; gap: .9rem; }
.module-top .feature-icon { margin: 0; }
.module h3 { font-size: 1.4rem; }
.module > p { margin-top: .9rem; color: var(--muted); }
.doc-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 1.5rem; }
.doc-groups.two { grid-template-columns: repeat(2, 1fr); }
.group-title { margin-bottom: .4rem; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.doc-groups li { padding: .3rem 0; font-size: .95rem; }
@media (max-width: 900px) { .module-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .doc-groups, .doc-groups.two { grid-template-columns: 1fr 1fr; } }

/* Control & collaboration grid */
.mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.mini { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.mini .feature-icon { margin-bottom: 0; }
.mini h3 { margin-top: 1rem; font-size: 1.05rem; }
.mini p { margin-top: .4rem; font-size: .95rem; color: var(--muted); }
@media (max-width: 900px) { .mini-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .mini-grid { grid-template-columns: 1fr; } }

/* Before / after */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.compare-col { padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: var(--radius-lg); }
.compare-col h3 { font-size: 1.25rem; }
.compare-col li { display: flex; gap: .7rem; align-items: flex-start; padding: .75rem 0; border-top: 1px solid var(--line); }
.compare-col li:first-child { margin-top: 1rem; }
.compare-col .icon { width: 18px; height: 18px; margin-top: 3px; }
.compare-col.before { border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-2); }
.compare-col.before .icon { color: var(--muted); }
.compare-col.after { background: linear-gradient(160deg, var(--brand), oklch(0.28 0.12 258)); color: #fff; box-shadow: var(--shadow); }
.compare-col.after h3 { color: #fff; }
.compare-col.after li { border-color: oklch(1 0 0 / .16); }
.compare-col.after .icon { color: var(--sun); }
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } }

/* Pricing */
.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.25rem;
  max-width: min(100%, calc(var(--cols, 3) * 380px)); margin-inline: auto;
}
.plan { display: flex; flex-direction: column; padding: 2rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.plan.featured { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow); }
.plan-badge { align-self: flex-start; margin-bottom: 1rem; padding: .25rem .65rem; border-radius: 999px; background: var(--brand-soft); font-size: .78rem; font-weight: 700; color: var(--brand); }
/* Keeps names and prices level across cards when only some carry a badge. */
.plan-badge.is-empty { visibility: hidden; }
.plan h3 { font-size: 1.15rem; }
.price { margin-top: .9rem; font: 800 2.6rem/1 var(--font-display); letter-spacing: -0.03em; }
.price small { font: 500 .95rem var(--font-sans); letter-spacing: 0; color: var(--muted); }
.plan-note { margin-top: .6rem; font-size: .9rem; color: var(--muted); }
.plan .btn { width: 100%; margin-top: 1.5rem; }
.plan-features { display: grid; gap: .6rem; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .95rem; }
.plan-features li { display: flex; gap: .6rem; align-items: flex-start; }
.plan-features .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--leaf); }
.plan-features strong { font-weight: 600; }
.plan-features li.is-off { color: var(--muted); }
.plan-features li.is-off .icon { color: var(--line-strong); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 600px) { .plan-badge.is-empty { display: none; } }
.included { max-width: 1000px; margin: 1.5rem auto 0; padding: clamp(1.5rem, 3vw, 2rem); border: 1px solid var(--brand-soft); border-radius: var(--radius-lg); background: var(--brand-tint); }
.included h3 { font-size: 1.05rem; }
.included ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: .15rem 1.5rem; margin-top: .9rem; }
.pricing-contact { margin-top: 1.5rem; text-align: center; color: var(--muted); }
.pricing-contact a { font-weight: 600; color: var(--brand); }
@media (max-width: 760px) { .included ul { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .included ul { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 820px; margin-inline: auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; gap: 1rem; padding: 1.35rem 0;
  list-style: none; cursor: pointer; font: 700 1.1rem/1.4 var(--font-display);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { margin-top: 3px; color: var(--muted); transition: transform .2s; }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq .answer { max-width: 720px; padding-bottom: 1.4rem; color: var(--muted); }

/* Closing call to action */
.cta { padding-bottom: clamp(3rem, 6vw, 5rem); }
.cta-box {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(2.5rem, 6vw, 4.5rem); border-radius: 28px;
  background: var(--navy); color: var(--on-navy); text-align: center;
}
.cta-box::before {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background:
    radial-gradient(420px 260px at 85% 0%, oklch(0.84 0.17 89 / .35), transparent 70%),
    radial-gradient(520px 320px at 10% 100%, oklch(0.56 0.2 255 / .5), transparent 70%);
}
.cta-box h2 { max-width: 760px; margin-inline: auto; font-size: clamp(1.9rem, 4vw, 3rem); color: #fff; }
.cta-box p { max-width: 600px; margin: 1rem auto 0; font-size: 1.1rem; color: var(--on-navy-muted); }

/* Footer */
.site-footer { padding-block: 3.5rem 2rem; border-top: 1px solid var(--line); background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2rem; }
.footer-brand p { max-width: 330px; margin-top: .9rem; font-size: .95rem; color: var(--muted); }
.footer-title { margin-bottom: .6rem; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.site-footer li a { display: inline-block; padding: .3rem 0; font-size: .95rem; color: var(--ink-2); text-decoration: none; }
.site-footer li a:hover { color: var(--brand); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .875rem; color: var(--muted); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* Scroll reveal (enabled by site.js only when IntersectionObserver exists) */
.reveal-ready [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal-ready [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal-ready [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  .site-header { position: static; }
  .reveal-ready [data-reveal] { opacity: 1; transform: none; }
  .phase-tabs, .float-card { display: none; }
  .phase-panel[hidden] { display: grid !important; margin-top: 2rem; }
}
