/* ==========================================================================
   EDAS website — edaspanel.com
   Plain CSS, no build step: edit and upload.

   Two themes, dark by default. The page carries data-theme="dark" or "light"
   on <html> (set before first paint by the script in includes/header.php);
   every colour below comes from the tokens for that theme. The app's own
   screens (.app-ui) stay dark in both themes, because the app is dark.
   ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---- tokens -------------------------------------------------------------- */

:root,
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0a0a;
  --bg-soft: #0e100e;
  --surface: #141614;
  --surface-2: #1c1f1b;
  --surface-3: #242822;
  --ink: #ffffff;
  --ink-2: #c3c2b7;
  --ink-3: #8f8d86;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --accent: #c6f24e;
  --accent-ink: #14180c;
  --accent-text: #c6f24e;
  --accent-soft: rgba(198, 242, 78, 0.12);
  --glow-1: rgba(198, 242, 78, 0.16);
  --glow-2: rgba(57, 135, 229, 0.10);
  --grid-line: rgba(255, 255, 255, 0.045);
  --header-bg: rgba(10, 10, 10, 0.72);
  --header-solid: #0e100e;
  --accent-line: rgba(198, 242, 78, 0.55);
  /* Dark drop shadows are off: over a near-black page a black shadow has
     only a few shades to fade through, and they show as hard steps. */
  --shadow: 0 0 0 transparent;
  --shadow-sm: 0 0 0 transparent;
  --panel-shadow: 0 0 0 transparent;
  --frame-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
  --frame-glow: rgba(198, 242, 78, 0.075);
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #ffffff;
  --bg-soft: #f6f6f1;
  --surface: #ffffff;
  --surface-2: #f3f3ee;
  --surface-3: #e9e9e2;
  --ink: #0b0c0a;
  --ink-2: #3d3e39;
  --ink-3: #66675f;
  --line: rgba(11, 12, 10, 0.10);
  --line-strong: rgba(11, 12, 10, 0.18);
  --accent: #c6f24e;
  --accent-ink: #14180c;
  --accent-text: #4a7a0c;
  --accent-soft: rgba(132, 186, 20, 0.14);
  --glow-1: rgba(198, 242, 78, 0.38);
  --glow-2: rgba(57, 135, 229, 0.12);
  --grid-line: rgba(11, 12, 10, 0.05);
  --header-bg: rgba(255, 255, 255, 0.78);
  --header-solid: #ffffff;
  --accent-line: rgba(132, 186, 20, 0.7);
  --shadow: 0 30px 60px -28px rgba(20, 24, 12, 0.30);
  --shadow-sm: 0 8px 24px -14px rgba(20, 24, 12, 0.22);
  --panel-shadow: 0 24px 40px -24px rgba(20, 24, 12, 0.22);
  --frame-shadow: 0 1px 2px rgba(20, 24, 12, 0.08), 0 16px 32px -14px rgba(20, 24, 12, 0.18), 0 40px 80px -36px rgba(20, 24, 12, 0.22);
  --frame-glow: rgba(198, 242, 78, 0.22);
}

:root {
  --good: #0ca30c;
  --warning: #e09a00;
  --critical: #d03b3b;
  --blue: #3987e5;
  --orange: #d95926;
  --aqua: #199e70;

  --radius: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;

  --page-max: 1440px;
  --gutter: clamp(20px, 4.5vw, 64px);
  --header-h: 72px;
}

/* ---- base ---------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 64px);
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "cv11", "ss01";
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main { flex: 1; }

h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
b, strong { font-weight: 600; }

.tnum { font-variant-numeric: tabular-nums; }
.accent { color: var(--accent-text); }

::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 3px;
  border-radius: 8px;
}

summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 100;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
}
.skip-link:focus { left: 12px; }

/* The theme switch fades colours — but not on first paint (see site.js). */
.theme-ready body,
.theme-ready .site-header,
.theme-ready .card,
.theme-ready .band { transition: background-color 0.25s, color 0.25s, border-color 0.25s; }

/* ---- layout -------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: calc(var(--page-max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(72px, 9vw, 128px); }
.section.is-flush-top { padding-top: 0; }
.section.is-tight { padding-block: clamp(44px, 5vw, 72px); }
.section.is-snug { padding-block: clamp(56px, 6.5vw, 96px); }

.band {
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
}

.split {
  display: grid;
  gap: clamp(40px, 5vw, 88px);
  align-items: center;
}
@media (min-width: 1024px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
  .split.is-reverse { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  .split.is-reverse > :first-child { order: 2; }
}

/* ---- type ---------------------------------------------------------------- */

.display {
  font-size: clamp(40px, 5.2vw, 76px);
  line-height: 1.03;
  font-weight: 650;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.h1 {
  font-size: clamp(36px, 4.6vw, 62px);
  line-height: 1.05;
  font-weight: 650;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.h2 {
  font-size: clamp(30px, 3.4vw, 50px);
  line-height: 1.08;
  font-weight: 650;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

.h3 { font-size: 19px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }

.lead {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.65;
  color: var(--ink-2);
  text-wrap: pretty;
}
.lead a, .text-link { color: var(--accent-text); font-weight: 500; }
.lead a:hover, .text-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.muted { color: var(--ink-3); }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.kicker::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.section-head { max-width: 48rem; }
.section-head .h2 { margin-top: 16px; }
.section-head .lead { margin-top: 18px; }
.section-head.is-center { margin-inline: auto; text-align: center; }
.section-head.is-center .kicker::after {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.section-head + * { margin-top: clamp(40px, 5vw, 64px); }

/* Heading left, intro and a link right, lined up along the bottom: fills
   the width on wide screens instead of leaving the right side empty. */
.section-head.is-split { display: grid; gap: 18px; max-width: none; }
.section-head.is-split .lead { margin-top: 0; max-width: 34rem; }
.section-head.is-split .text-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; }
.section-head.is-split .text-link .icon { width: 16px; height: 16px; transition: transform 0.15s; }
.section-head.is-split .text-link:hover .icon { transform: translateX(3px); }
@media (min-width: 1024px) {
  .section-head.is-split { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: end; gap: 56px; }
  /* A touch smaller than other headings, so it fits its column in two lines. */
  .section-head.is-split .h2 { font-size: clamp(30px, 3vw, 46px); }
}

/* ---- icons --------------------------------------------------------------- */

.icon { width: 20px; height: 20px; flex-shrink: 0; }
.icon-xs { width: 14px; height: 14px; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 24px; height: 24px; }

.icon-tile {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-text);
}
.icon-tile.is-plain { background: var(--surface-3); color: var(--ink); }

/* ---- buttons ------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.btn .icon { width: 16px; height: 16px; transition: transform 0.15s; }
.btn:hover .icon-arrow { transform: translateX(3px); }
.btn-md { height: 40px; padding: 0 18px; font-size: 14px; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 15.5px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { box-shadow: 0 10px 30px -8px var(--glow-1); transform: translateY(-1px); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { background: var(--surface-2); }
.btn-ghost { color: var(--ink-2); }
.btn-ghost:hover { color: var(--ink); background: var(--surface-2); }
.btn-dark { background: var(--accent-ink); color: #ffffff; }
.btn-dark:hover { background: #000000; transform: translateY(-1px); }
.btn-outline-dark { color: var(--accent-ink); border-color: rgba(20, 24, 12, 0.35); }
.btn-outline-dark:hover { background: rgba(20, 24, 12, 0.08); }
.btn-block { width: 100%; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.actions.is-center { justify-content: center; }
@media (max-width: 559px) {
  .actions.is-stack { flex-direction: column; }
  .actions.is-stack .btn { width: 100%; }
}

/* ---- header -------------------------------------------------------------- */

/* A full-width solid bar that stays at the top and never changes as you
   scroll. A lime hairline glows along its foot. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-solid);
  border-bottom: 1px solid var(--line);
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-line) 30%, var(--accent-line) 70%, transparent);
  pointer-events: none;
}

.header-row {
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--header-h);
}

.brand { display: flex; flex-shrink: 0; }
.brand img { height: 30px; width: auto; }
.header-row > .brand img { height: 32px; }
/* Two copies of the logo: white wordmark for dark, dark wordmark for light. */
.logo-for-light { display: none; }
[data-theme="light"] .logo-for-light { display: block; }
[data-theme="light"] .logo-for-dark { display: none; }

/* ---- main links, and the Features menu ---- */

.nav-main { display: none; }
@media (min-width: 960px) {
  .nav-main { display: flex; align-self: stretch; gap: 4px; margin-inline: auto; }
}
/* Links run the full height of the bar, so the underline sits on its foot
   and the pointer stays inside on the way down to the Features menu. */
.nav-item { display: flex; align-self: stretch; }
.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  transition: color 0.15s;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: -1px;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: var(--ink-3);
  transform: scaleX(0);
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.15s;
}
.nav-link:hover,
.has-panel:hover > .nav-link,
.has-panel:focus-within > .nav-link { color: var(--ink); }
.nav-link:hover::after,
.has-panel:hover > .nav-link::after,
.has-panel:focus-within > .nav-link::after { transform: scaleX(1); }
.nav-link[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav-link[aria-current="page"]::after { transform: scaleX(1); background: var(--accent); }
.nav-caret { width: 15px; height: 15px; color: var(--ink-3); transition: transform 0.2s; }
.has-panel:hover .nav-caret,
.has-panel:focus-within .nav-caret { transform: rotate(180deg); }

/* The Features menu: a full-width panel under the bar. It opens on hover and
   on keyboard focus — no JavaScript needed. Escape shuts it (site.js sets
   data-closed until the pointer or focus leaves). */
.nav-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--header-solid);
  box-shadow: var(--panel-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s 0.08s, transform 0.18s 0.08s, visibility 0s linear 0.26s;
}
.has-panel:hover .nav-panel,
.has-panel:focus-within .nav-panel {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.18s, transform 0.18s, visibility 0s;
}
.has-panel[data-closed] .nav-panel { opacity: 0; visibility: hidden; transform: translateY(-6px); }
.has-panel[data-closed] .nav-caret { transform: none; }
.has-panel[data-closed] > .nav-link::after { transform: scaleX(0); }

.nav-panel-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  padding-block: 24px 28px;
}
.feature-menu {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}
@media (min-width: 1200px) { .feature-menu { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.feature-menu a {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  height: 100%;
  border: 1px solid transparent;
  border-radius: 18px;
  padding: 14px;
  transition: background-color 0.15s, border-color 0.15s;
}
@media (min-width: 1200px) { .feature-menu a { flex-direction: column; padding: 18px; } }
.feature-menu a:hover { background: var(--surface-2); border-color: var(--line); }
.feature-menu b { display: block; font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--ink); }
.feature-menu a > span:last-child > span { display: block; margin-top: 3px; font-size: 13.5px; line-height: 1.45; color: var(--ink-3); }
.feature-menu a:hover .feature-menu-icon { background: var(--accent); color: var(--accent-ink); }
.feature-menu-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-text);
  transition: background-color 0.15s, color 0.15s;
}
.feature-menu-icon .icon { width: 20px; height: 20px; }

.nav-panel-side {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  background:
    radial-gradient(120% 70% at 100% 0%, var(--glow-1), transparent 70%),
    var(--bg-soft);
}
.nav-panel-kicker { font-size: 12px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-text); }
.nav-panel-price { margin-top: 14px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.nav-panel-price b { display: block; margin-block: 2px; font-size: 36px; font-weight: 650; line-height: 1.1; letter-spacing: -0.03em; color: var(--ink); }
.nav-panel-note { margin-top: 10px; font-size: 13px; line-height: 1.45; color: var(--ink-3); }
.nav-panel-actions { display: grid; gap: 8px; margin-top: auto; padding-top: 22px; }

/* ---- right-hand buttons ---- */

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
@media (min-width: 960px) { .header-actions { margin-left: 0; } }
.hide-sm { display: none; }
@media (min-width: 560px) { .hide-sm { display: inline-flex; } }
.header-divider { width: 1px; height: 22px; margin-inline: 6px; background: var(--line-strong); }
.header-actions .btn-primary { padding-inline: 20px 18px; }

.theme-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--ink-2);
  transition: background-color 0.15s, color 0.15s;
}
.theme-toggle:hover { color: var(--ink); background: var(--surface-2); }
.theme-toggle .icon { width: 18px; height: 18px; transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); }
.theme-toggle:hover .icon { transform: rotate(-20deg); }
.theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun { display: none; }

/* ---- phones and tablets: the menu ---- */

/* A <details>, so it opens without JavaScript. The panel fills the screen
   under the bar. */
.menu { position: static; }
@media (min-width: 960px) { .menu { display: none; } }
.menu summary {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.menu .icon-close { display: none; }
.menu[open] .icon-open { display: none; }
.menu[open] .icon-close { display: block; }
.menu[open] summary { background: var(--surface-3); }
@media (max-width: 959px) {
  html:has(.menu[open]) { overflow: hidden; }
  html[data-menu-open] { overflow: hidden; }
}

.menu-panel {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 20px var(--gutter) max(24px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background:
    radial-gradient(90% 40% at 100% 0%, var(--glow-1), transparent 70%),
    var(--bg);
  animation: menu-fade 0.2s ease-out;
}
.menu-body > *,
.menu-foot { animation: menu-rise 0.36s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.menu-body > :nth-child(2) { animation-delay: 0.03s; }
.menu-body > :nth-child(3) { animation-delay: 0.06s; }
.menu-foot { animation-delay: 0.09s; }
@keyframes menu-fade { from { opacity: 0; } }
@keyframes menu-rise { from { opacity: 0; transform: translateY(12px); } }

.menu-heading { font-size: 12px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.menu-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.menu-features a {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 9px 10px;
  background: var(--surface);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.25;
}
.menu-features a:active { background: var(--surface-2); }
.menu-features .feature-menu-icon { width: 32px; height: 32px; border-radius: 10px; }
.menu-features .feature-menu-icon .icon { width: 16px; height: 16px; }
.menu-links { margin-top: 16px; }
.menu-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.menu-links a .icon { width: 18px; height: 18px; color: var(--ink-3); }
.menu-links a[aria-current="page"] { color: var(--accent-text); }
.menu-foot { display: grid; gap: 10px; margin-top: auto; padding-top: 24px; }
@media (min-width: 560px) {
  .menu-features { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .menu-features a { flex-direction: column; align-items: flex-start; padding: 12px; }
  .menu-foot { grid-template-columns: 1fr 1fr; }
}

/* ---- backdrops ----------------------------------------------------------- */

.glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(50% 55% at 75% 15%, var(--glow-1), transparent 70%),
    radial-gradient(40% 45% at 5% 35%, var(--glow-2), transparent 70%);
}

.grid-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 80%);
}

/* ---- hero (Home) --------------------------------------------------------- */

.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-grid {
  position: relative;
  display: grid;
  gap: clamp(48px, 6vw, 72px);
  align-items: center;
  padding-block: clamp(56px, 7vw, 104px);
}
@media (min-width: 1100px) {
  .hero-grid { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); }
}
.hero-copy { max-width: 40rem; }
@media (max-width: 1099px) {
  .hero-copy { margin-inline: auto; text-align: center; }
  .hero-copy .actions, .hero-points { justify-content: center; }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  padding: 5px 14px 5px 5px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
}
.badge-tag {
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 650;
}

.hero .display { margin-top: 24px; }
.hero .lead { margin-top: 22px; }
.hero .actions { margin-top: 36px; }

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 28px;
  font-size: 14px;
  color: var(--ink-2);
}
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points .icon { width: 16px; height: 16px; color: var(--accent-text); }

.hero-visual { position: relative; }
/* A soft glow centred behind the drawing, the same on every side. */
.hero-visual::before {
  content: "";
  position: absolute;
  inset: -14% -10%;
  background: radial-gradient(closest-side, var(--frame-glow), transparent);
  pointer-events: none;
}
.hero-visual > * { position: relative; }

/* Hero background: three soft glows (lime, blue, lime) drifting very slowly
   on long, out-of-step loops. Only transform moves, so it stays cheap; with
   reduced motion they simply stay put. */
.hero-aura { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-aura span { position: absolute; border-radius: 50%; will-change: transform; }
.hero-aura span:nth-child(1) {
  top: -35%;
  right: -12%;
  width: min(70vw, 1000px);
  aspect-ratio: 1;
  background: radial-gradient(closest-side, var(--glow-1), transparent);
  animation: aura-a 28s ease-in-out infinite alternate;
}
.hero-aura span:nth-child(2) {
  top: 5%;
  left: -18%;
  width: min(55vw, 780px);
  aspect-ratio: 1;
  background: radial-gradient(closest-side, var(--glow-2), transparent);
  animation: aura-b 34s ease-in-out infinite alternate;
}
.hero-aura span:nth-child(3) {
  bottom: -45%;
  left: 30%;
  width: min(50vw, 720px);
  aspect-ratio: 1;
  background: radial-gradient(closest-side, var(--glow-1), transparent);
  opacity: 0.55;
  animation: aura-c 40s ease-in-out infinite alternate;
}
@keyframes aura-a { to { transform: translate(-9vw, 7vh) scale(1.12); } }
@keyframes aura-b { to { transform: translate(10vw, -5vh) scale(0.92); } }
@keyframes aura-c { to { transform: translate(-12vw, -8vh) scale(1.15); } }

/* ---- page hero (other pages) --------------------------------------------- */

.page-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero-inner { position: relative; padding-block: clamp(44px, 6vw, 88px) clamp(48px, 6vw, 88px); }
.page-hero .kicker { margin-top: 28px; }
.page-hero .h1 { margin-top: 16px; max-width: 54rem; }
.page-hero .lead { margin-top: 20px; max-width: 46rem; }
.page-hero .actions { margin-top: 32px; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13.5px; color: var(--ink-3); }
.crumbs a:hover { color: var(--ink); }
.crumbs .icon { width: 14px; height: 14px; }
.crumbs [aria-current] { color: var(--ink-2); }

/* ---- reports flow (Home, under the hero) ----------------------------------- */

/* Five Meesho reports flow along lines into EDAS, and three answers flow out.
   Wide screens (1200px up): a row of five columns (files · lines · hub · lines ·
   answers). The SVG lines are drawn for fixed row heights, so .flow-file is
   56px tall with 12px gaps and .flow-result 88px with 16px gaps — change
   those and the paths in index.php together. Narrow screens: a column, with
   short vertical lines between the parts. */
.flow-diagram {
  display: grid;
  justify-items: center;
  gap: 0;
  margin-top: clamp(40px, 5vw, 64px);
}
/* Stacked: files wrap in centred rows (a short last row stays centred). */
.flow-in,
.flow-out { display: flex; flex-wrap: wrap; justify-content: center; width: 100%; gap: 10px; }
.flow-in > li { flex: 0 1 calc(50% - 5px); }
.flow-out > li { flex: 1 1 100%; }
@media (min-width: 640px) {
  .flow-in > li,
  .flow-out > li { flex: 0 1 calc((100% - 20px) / 3); }
}

.flow-file,
.flow-result {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  padding: 10px 12px;
  transition: border-color 0.2s, transform 0.2s;
}
.flow-file:hover,
.flow-result:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.flow-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent-text);
}
.flow-icon .icon { width: 18px; height: 18px; }
.flow-icon.is-solid { background: var(--accent); color: var(--accent-ink); }
.flow-text { display: flex; flex-direction: column; min-width: 0; }
.flow-text b { font-size: 14.5px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.flow-text span { margin-top: 1px; font-size: 13px; line-height: 1.35; color: var(--ink-3); }
.flow-file .flow-text span { display: none; }
.flow-type {
  margin-left: auto;
  flex-shrink: 0;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}
.flow-result { padding: 14px 16px; }
.flow-result .flow-text b { font-size: 16px; }
/* Phones: each file is a small tile, its type in the corner. */
@media (max-width: 639px) {
  .flow-file { flex-direction: column; align-items: flex-start; gap: 10px; padding: 12px; }
  .flow-file .flow-type { position: absolute; top: 12px; right: 12px; }
}

/* The hub: EDAS's mark in a glowing ring that turns, with a slow pulse. */
.flow-hub {
  position: relative;
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(closest-side, var(--accent-soft), transparent),
    var(--surface);
}
.flow-hub img { position: relative; width: 52px; height: 52px; border-radius: 12px; }
.flow-hub-ring {
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 62%, var(--accent) 88%, transparent 100%);
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
  mask: radial-gradient(closest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
  animation: flow-spin 3.2s linear infinite;
}
.flow-hub::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid var(--accent-text);
  opacity: 0;
  animation: flow-pulse 2.8s ease-out infinite;
}
@keyframes flow-spin { to { transform: rotate(1turn); } }
@keyframes flow-pulse {
  0% { opacity: 0.55; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.45); }
}

/* Narrow screens: a short vertical line with a dot running down it. */
.flow-lines { display: none; }
.flow-vline {
  position: relative;
  width: 2px;
  height: 44px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--line-strong);
}
.flow-vline::after {
  content: "";
  position: absolute;
  left: -2px;
  top: -10px;
  width: 6px;
  height: 10px;
  border-radius: 3px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: flow-drop 1.6s ease-in infinite;
}
@keyframes flow-drop { to { transform: translateY(54px); } }

@media (min-width: 1200px) {
  .flow-diagram {
    grid-template-columns: minmax(0, 1fr) 140px 112px 140px minmax(0, 1fr);
    align-items: center;
  }
  .flow-vline { display: none; }
  .flow-lines { display: block; overflow: visible; }
  .flow-in,
  .flow-out { flex-direction: column; flex-wrap: nowrap; }
  .flow-in > li,
  .flow-out > li { flex: none; }
  .flow-in { gap: 12px; }
  .flow-out { gap: 16px; }
  .flow-file { height: 56px; padding-block: 0; }
  .flow-file .flow-text span { display: block; }
  .flow-result { height: 88px; padding-block: 0; }
  .flow-text span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  /* Cards meet the lines: a small dot on the edge each line touches. */
  .flow-file::after,
  .flow-result::before {
    content: "";
    position: absolute;
    top: 50%;
    width: 7px;
    height: 7px;
    margin-top: -3.5px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    background: var(--bg-soft);
  }
  .flow-file::after { right: -4px; }
  .flow-result::before { left: -4px; }
}

.flow-paths path { fill: none; stroke: var(--line-strong); stroke-width: 1.5; }
.flow-dot { fill: var(--accent); filter: drop-shadow(0 0 4px var(--accent)); }

@media (prefers-reduced-motion: reduce) {
  .flow-dot,
  .flow-vline::after,
  .flow-hub::after { display: none; }
}

/* ---- "Sound familiar?" (Home) ------------------------------------------- */

/* Three cards, each opening with a small drawing of the problem as it looks
   in the app (dark in both themes, like every app drawing), then the problem
   and a lime line with the fix. The fix lines line up along the bottom. */
.pains { display: grid; gap: 16px; margin-top: clamp(32px, 4vw, 48px); }
@media (min-width: 900px) { .pains { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.pain {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.2s, transform 0.2s;
}
.pain:hover { border-color: var(--line-strong); transform: translateY(-3px); }

.pain-visual {
  display: grid;
  place-items: center;
  min-height: 212px;
  padding: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(70% 80% at 50% 0%, rgba(198, 242, 78, 0.09), transparent 70%),
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 28px 28px,
    #0c0e0c;
}

.pain-body { display: flex; flex: 1; flex-direction: column; padding: 24px 24px 26px; }
.pain-body .h3 { margin: 0; }
.pain-body > p:not(.pain-fix) { flex: 1; margin-top: 10px; color: var(--ink-2); }
.pain-fix {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink);
}
.pain-fix-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
}
.pain-fix-icon .icon { width: 13px; height: 13px; stroke-width: 3; }

/* Side by side, the cards share their rows (subgrid), so drawings, titles,
   problems and fix lines line up across all three whatever their length. */
@media (min-width: 900px) {
  .pains { grid-template-rows: repeat(4, auto); row-gap: 0; }
  .pain { display: grid; grid-row: span 4; grid-template-rows: subgrid; }
  .pain-body { display: contents; }
  .pain-body .h3 { padding: 24px 24px 0; }
  .pain-body > p:not(.pain-fix) { margin: 0; padding: 10px 24px 0; }
  .pain-fix { margin: 20px 24px 26px; }
}

/* The drawings. */
.pv {
  width: 100%;
  max-width: 330px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  padding: 14px;
  font-size: 12px;
  color: var(--ink-2);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
}
.pv-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}
.pv-head .sample-tag { font-size: 9px; }

.pv-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.pv-compare div { border-radius: 10px; background: var(--surface-2); padding: 8px 10px; }
.pv-compare span { display: block; font-size: 10.5px; color: var(--ink-3); }
.pv-compare b { font-size: 16px; font-weight: 650; color: var(--ink); }
.pv-bar { display: flex; align-items: center; gap: 2px; margin-top: 12px; }
.pv-bar span { height: 8px; border-radius: 4px; }
.pv-bar .is-paid { flex: 87.3; background: var(--accent); }
.pv-bar .is-short {
  flex: 12.7;
  background: repeating-linear-gradient(-45deg, var(--critical) 0 3px, rgba(208, 59, 59, 0.45) 3px 6px);
  animation: pv-blink 1.6s ease-in-out infinite;
}
.pv-bar b { margin-left: 8px; font-size: 12px; font-weight: 650; color: #ff6b6b; }
.pv-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.pv-chips li {
  border: 1px solid rgba(208, 59, 59, 0.35);
  border-radius: 999px;
  background: rgba(208, 59, 59, 0.10);
  padding: 3px 9px;
  font-size: 10.5px;
  color: var(--ink-2);
}
.pv-chips b { font-weight: 600; color: #ff8a8a; }

.pv-rows { display: grid; gap: 6px; margin-top: 12px; }
.pv-rows li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--surface-2);
  padding: 9px 10px;
}
.pv-id { color: var(--ink-3); }
.pv-state { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: #3fcf6e; }
.pv-state .icon { width: 14px; height: 14px; }
.pv-rows .is-alert { border-color: rgba(208, 59, 59, 0.5); background: rgba(208, 59, 59, 0.12); animation: pv-alert 1.6s ease-in-out infinite; }
.pv-rows .is-alert .pv-id { color: var(--ink-2); }
.pv-rows .is-alert .pv-state { color: #ff6b6b; }

.pv-head b { font-size: 14px; font-weight: 650; }
.pv-steps { position: relative; display: grid; gap: 10px; margin-top: 14px; padding-left: 18px; }
.pv-steps::before { content: ""; position: absolute; left: 4px; top: 5px; bottom: 5px; width: 1px; background: var(--line); }
.pv-steps li { position: relative; display: flex; justify-content: space-between; }
.pv-steps li::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--surface-3);
  border: 1px solid var(--line);
}
.pv-steps .is-done::before { background: var(--accent); border-color: var(--accent); }
.pv-steps .is-wait { color: var(--warning); font-weight: 600; }
.pv-steps .is-wait::before { background: transparent; border: 2px solid var(--warning); animation: pv-blink 1.6s ease-in-out infinite; }
.pv-steps li > span:last-child { color: var(--ink-3); }
.pv-steps .is-wait > span:last-child { color: var(--warning); }
.pv-nudge {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  border-radius: 10px;
  background: rgba(198, 242, 78, 0.12);
  padding: 8px 10px;
  font-weight: 600;
  color: #c6f24e;
}
.pv-nudge .icon { width: 14px; height: 14px; }

@keyframes pv-blink { 50% { opacity: 0.45; } }
@keyframes pv-alert { 50% { box-shadow: 0 0 0 3px rgba(208, 59, 59, 0.18); } }

/* ---- cards --------------------------------------------------------------- */

.card {
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: clamp(22px, 2.2vw, 32px);
}
.card .h3 { margin-top: 20px; }
.card p { margin-top: 10px; font-size: 15px; line-height: 1.65; color: var(--ink-2); }

.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---- bento --------------------------------------------------------------- */

.bento { display: grid; gap: 16px; }
@media (min-width: 720px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento .span-2 { grid-column: span 2; }
}
@media (min-width: 1100px) {
  .bento { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .bento .row-2 { grid-row: span 2; }
}

.bento-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: clamp(22px, 2.2vw, 30px);
  min-height: 250px;
}
.bento-card .h3 { margin-top: 18px; }
.bento-card > p { margin-top: 8px; max-width: 34rem; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.bento-art { margin-top: auto; padding-top: 26px; }

/* Bento drawings — themed and simple, never real data. */
.mini-bars { display: grid; gap: 11px; }
.mini-bars li {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr) 5.6rem;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  color: var(--ink-2);
}
.mini-bars .track { height: 10px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.mini-bars .fill { display: block; height: 100%; border-radius: 999px; background: var(--ink-3); opacity: 0.5; }
.mini-bars .fill.is-sales { background: var(--blue); opacity: 1; }
.mini-bars .fill.is-profit { background: var(--accent); opacity: 1; }
.mini-bars .num { text-align: right; font-variant-numeric: tabular-nums; }
.mini-bars .is-total { color: var(--ink); font-weight: 600; }
.mini-bars .is-total .num { color: var(--accent-text); }
@media (max-width: 420px) {
  .mini-bars li { grid-template-columns: 6rem minmax(0, 1fr) 4.9rem; gap: 8px; font-size: 12px; }
}
.mini-caption { margin-top: 16px; font-size: 12.5px; color: var(--ink-3); }
.mini-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 26px; }
.mini-kpis div { border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line); padding: 12px 14px; }
.mini-kpis span { font-size: 12.5px; color: var(--ink-3); }
.mini-kpis b { display: block; margin-top: 4px; font-size: clamp(15px, 1.6vw, 22px); font-weight: 650; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }

.mini-rows { display: grid; gap: 8px; }
.mini-rows li {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 11px 14px;
  font-size: 13.5px;
}
.mini-rows .dot { width: 8px; height: 8px; flex-shrink: 0; border-radius: 999px; background: var(--warning); }
.mini-rows .what { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--ink-2); }
.mini-rows b { font-variant-numeric: tabular-nums; }

.mini-scan {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  border: 1.5px dashed var(--accent-text);
  padding: 8px 8px 8px 16px;
  font-size: 13.5px;
  color: var(--ink-3);
}
.mini-scan span { flex: 1; }
.mini-scan .cam { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); }
.mini-scan .cam .icon { width: 15px; height: 15px; }
.mini-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; text-align: center; }
.mini-stats div { border-radius: var(--radius-sm); background: var(--surface-2); padding: 10px 4px; }
.mini-stats b { display: block; font-size: 20px; font-variant-numeric: tabular-nums; }
.mini-stats span { font-size: 12px; color: var(--ink-3); }
.mini-stats .is-bad b { color: var(--critical); }

.mini-journey { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.mini-journey span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
}
.mini-journey span::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: var(--aqua); }
.mini-journey span.is-now { background: var(--accent-soft); border-color: transparent; color: var(--accent-text); }
.mini-journey span.is-now::before { background: var(--accent-text); }
.mini-journey .icon { width: 14px; height: 14px; color: var(--ink-3); }

.mini-meter .meter-head { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--ink-2); }
.mini-meter .meter-head b { color: var(--ink); font-variant-numeric: tabular-nums; }
.mini-meter .track { margin-top: 10px; height: 10px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.mini-meter .fill { display: block; height: 100%; width: 92%; border-radius: 999px; background: var(--accent); }

.mini-team { display: flex; align-items: center; }
.mini-team .avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-left: -10px;
  border-radius: 999px;
  border: 3px solid var(--surface);
  font-size: 13px;
  font-weight: 650;
  color: #ffffff;
}
.mini-team .avatar:first-child { margin-left: 0; }
.mini-team .a1 { background: #3987e5; }
.mini-team .a2 { background: #d95926; }
.mini-team .a3 { background: #199e70; }
.mini-team .a4 { background: var(--surface-3); color: var(--ink-2); }
.mini-roles { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.mini-roles span { border-radius: 999px; background: var(--surface-2); padding: 4px 11px; font-size: 12.5px; color: var(--ink-2); }

.mini-apps { display: grid; gap: 10px; }
@media (min-width: 560px) { .mini-apps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mini-apps li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-radius: var(--radius-md);
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 16px;
}
.mini-apps .icon { color: var(--accent-text); }
.mini-apps b { display: block; font-size: 15px; }
.mini-apps span { display: block; margin-top: 3px; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }

/* ---- check lists --------------------------------------------------------- */

.checks { display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }
.checks .tick {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-text);
}
.checks .tick .icon { width: 13px; height: 13px; stroke-width: 3; }
@media (min-width: 640px) {
  .checks.cols-2, .checks.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
}
@media (min-width: 1024px) {
  .checks.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.note { margin-top: 24px; font-size: 14.5px; color: var(--ink-3); }

/* ---- steps --------------------------------------------------------------- */

.steps { display: grid; gap: 16px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.step-top { display: flex; align-items: center; gap: 14px; }
.step-num {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 15px;
  font-weight: 700;
}
.step-top .line { flex: 1; height: 1px; background: linear-gradient(to right, var(--line-strong), transparent); }

/* ---- facts --------------------------------------------------------------- */

.facts { display: grid; gap: 28px 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1024px) { .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.fact { border-left: 2px solid var(--accent); padding: 2px 0 2px 18px; }
.fact b { display: block; font-size: clamp(28px, 3vw, 42px); font-weight: 650; line-height: 1.1; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; }
.fact span { display: block; margin-top: 6px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }

/* ---- pricing ------------------------------------------------------------- */

.cycle {
  display: flex;
  width: max-content;
  max-width: 100%;
  margin-inline: auto;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 4px;
}
.cycle button {
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  transition: background-color 0.15s, color 0.15s;
}
.cycle button:hover { color: var(--ink); }
.cycle button[aria-checked="true"] { background: var(--accent); color: var(--accent-ink); }
.cycle .save { margin-left: 4px; font-weight: 500; opacity: 0.75; }

[data-cycle="monthly"] [data-show="yearly"],
[data-cycle="yearly"] [data-show="monthly"] { display: none; }

.plans { display: grid; gap: 16px; margin-top: 40px; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: clamp(24px, 2.4vw, 34px);
}
.plan.is-featured { border-color: var(--accent-text); box-shadow: 0 0 0 1px var(--accent-text), var(--shadow); }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.plan-name { font-size: 20px; font-weight: 650; letter-spacing: -0.01em; }
.plan-badge { border-radius: 999px; background: var(--accent); color: var(--accent-ink); padding: 4px 12px; font-size: 12px; font-weight: 650; }
.plan-fit { margin-top: 6px; font-size: 14.5px; color: var(--ink-3); }
.plan-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin-top: 28px; }
.plan-price .amount { font-size: clamp(42px, 4vw, 54px); font-weight: 650; line-height: 1; letter-spacing: -0.035em; }
.plan-per { font-size: 15px; color: var(--ink-3); }
.plan-note { margin-top: 10px; font-size: 13.5px; color: var(--ink-3); }
.plan-limit {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-block: 26px;
  border-radius: var(--radius-md);
  background: var(--surface-2);
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 600;
}
.plan-limit .icon { color: var(--accent-text); }
.plan .btn { margin-top: auto; }

.included { margin-top: 16px; }
.included-title { font-size: 16px; font-weight: 650; }
.included .checks { margin-top: 18px; }

/* ---- FAQ ----------------------------------------------------------------- */

.faq-grid { display: grid; gap: 40px; }
@media (min-width: 1024px) {
  .faq-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: 72px; }
  .faq-aside { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
}
.faq-aside .card { margin-top: 32px; }
.faq-aside .card .h3 { margin-top: 0; }
.faq-aside .card .actions { margin-top: 20px; }

.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
  font-size: clamp(16px, 1.3vw, 18px);
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: color 0.15s;
}
.faq summary span { flex: 1; }
.faq summary:hover { color: var(--accent-text); }
.faq-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--ink-2);
  transition: transform 0.2s, background-color 0.2s;
}
.faq-icon .icon { width: 16px; height: 16px; }
.faq details[open] .faq-icon { transform: rotate(45deg); background: var(--accent); border-color: transparent; color: var(--accent-ink); }
.faq-answer { padding: 0 52px 24px 0; font-size: 15.5px; line-height: 1.7; color: var(--ink-2); }
.faq-answer a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }

/* ---- call to action band ------------------------------------------------- */

.cta { position: relative; overflow: hidden; background: var(--accent); color: var(--accent-ink); }
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 120% at 100% 0%, rgba(255, 255, 255, 0.5), transparent 60%),
    radial-gradient(50% 100% at 0% 100%, rgba(20, 24, 12, 0.14), transparent 60%);
}
.cta-inner { position: relative; display: grid; gap: 32px; align-items: center; padding-block: clamp(64px, 8vw, 112px); }
@media (min-width: 1024px) { .cta-inner { grid-template-columns: minmax(0, 1.4fr) auto; gap: 64px; } }
.cta .h2 { color: var(--accent-ink); }
.cta p { margin-top: 16px; max-width: 40rem; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.6; color: rgba(20, 24, 12, 0.78); }
.cta :focus-visible { outline-color: var(--accent-ink); }

/* ---- spotlight / features ------------------------------------------------ */

.spot-copy .h2 { margin-top: 16px; }
.spot-copy .lead { margin-top: 18px; }
.spot-copy .checks { margin-top: 30px; }

/* The section links stay under the header, as a strip of the same colour. */
.jump {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  background: var(--header-solid);
  border-bottom: 1px solid var(--line);
}
.jump ul { display: flex; gap: 4px; overflow-x: auto; padding-block: 10px; scrollbar-width: none; }
.jump ul::-webkit-scrollbar { display: none; }
.jump li { flex-shrink: 0; }
.jump a { display: block; border-radius: 999px; padding: 7px 14px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.jump a:hover { background: var(--surface-2); color: var(--ink); }

/* ---- contact ------------------------------------------------------------- */

.contact-card { display: flex; flex-direction: column; }
.contact-card .label { margin-top: 20px; font-size: 14px; font-weight: 500; color: var(--ink-3); }
.contact-card .value { margin-top: 4px; font-size: 18px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.contact-card .actions { margin-top: auto; padding-top: 24px; }

.wide-card { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; margin-top: 16px; }
@media (min-width: 720px) { .wide-card { flex-direction: row; align-items: center; justify-content: space-between; gap: 32px; } }
.wide-card .h3 { margin-top: 0; }
.wide-card p { margin-top: 6px; }

/* ---- legal pages --------------------------------------------------------- */

.legal-grid { display: grid; gap: 40px; padding-block: clamp(48px, 6vw, 80px) clamp(72px, 9vw, 128px); }
@media (min-width: 1024px) {
  .legal-grid { grid-template-columns: 15rem minmax(0, 46rem); gap: 80px; justify-content: center; }
}
.toc { display: none; }
@media (min-width: 1024px) {
  .toc { display: block; position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
}
.toc p { font-size: 13px; font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); }
.toc ol { display: grid; gap: 2px; margin-top: 14px; border-left: 1px solid var(--line); }
.toc a { display: block; margin-left: -1px; border-left: 1px solid transparent; padding: 6px 0 6px 14px; font-size: 14px; color: var(--ink-2); }
.toc a:hover { color: var(--ink); border-color: var(--accent-text); }

.prose h2 { margin-top: 44px; margin-bottom: 12px; font-size: 22px; font-weight: 650; letter-spacing: -0.015em; scroll-margin-top: calc(var(--header-h) + 24px); }
.prose p, .prose li { font-size: 16px; line-height: 1.8; color: var(--ink-2); }
.prose p + p, .prose ul + p { margin-top: 14px; }
.prose ul { margin-top: 12px; padding-left: 20px; list-style: disc; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--ink-3); }
.prose a:not(.btn) { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--ink); }
.prose .actions { margin-top: 24px; }
.prose .intro { font-size: 18px; line-height: 1.75; color: var(--ink); }

/* ---- 404 ----------------------------------------------------------------- */

.not-found {
  min-height: 62vh;
  max-width: 42rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-block: 96px;
  text-align: center;
}
.not-found-code { font-size: clamp(80px, 12vw, 150px); font-weight: 700; line-height: 1; letter-spacing: -0.05em; color: var(--accent-text); }
.not-found .h2 { margin-top: 16px; }
.not-found .lead { margin-top: 16px; }
.not-found .actions { margin-top: 32px; }

/* ---- footer -------------------------------------------------------------- */

.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 24px;
  padding-block: clamp(56px, 7vw, 88px);
}
.footer-about { grid-column: 1 / -1; max-width: 24rem; }
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); }
  .footer-about { grid-column: auto; }
}
.footer-about img { height: 30px; width: auto; }
.footer-about p { margin-top: 18px; font-size: 15px; line-height: 1.65; color: var(--ink-2); }
.footer-about .actions { margin-top: 22px; }
.footer-heading { font-size: 14px; font-weight: 650; }
.footer-links { display: grid; gap: 12px; margin-top: 18px; }
.footer-links a { font-size: 14.5px; color: var(--ink-2); transition: color 0.15s; }
.footer-links a:hover { color: var(--ink); }
.footer-bottom { border-top: 1px solid var(--line); }
.footer-bottom-row { display: flex; flex-direction: column; gap: 8px; padding-block: 24px; font-size: 13px; color: var(--ink-3); }
@media (min-width: 720px) {
  .footer-bottom-row { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ==========================================================================
   The app's own screens (includes/mockups.php). The app is dark-only, so
   these keep dark colours in both themes, as a screenshot would.
   ========================================================================== */

.app-ui {
  --surface: #141614;
  --surface-2: #1c1f1b;
  --surface-3: #242822;
  --ink: #ffffff;
  --ink-2: #c3c2b7;
  --ink-3: #898781;
  --line: rgba(255, 255, 255, 0.10);
  color: var(--ink);
}

.sample-tag {
  border-radius: 999px;
  background: var(--surface-3);
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink-3);
}

/* The drawings size themselves to their own box, not the screen — the same
   drawing sits wide on Home and in a half column on Features. */
.browser {
  container-type: inline-size;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--frame-shadow);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  background: rgba(28, 31, 27, 0.7);
  padding: 11px 16px;
}
.browser-bar .dot { width: 10px; height: 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); }
.browser-url {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-inline: auto;
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.7);
  padding: 3px 14px;
  font-size: 11.5px;
  color: var(--ink-3);
}
.browser-url .icon { width: 11px; height: 11px; }
.browser-spacer { width: 46px; }

.mock-appbar { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); padding: 12px 16px; }
.mock-appbar img { width: 26px; height: 26px; }
.mock-tabs { display: none; gap: 4px; margin-inline: auto; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); padding: 4px; }
@container (min-width: 600px) { .mock-tabs { display: flex; } }
.mock-tabs span { border-radius: 999px; padding: 4px 12px; font-size: 11.5px; font-weight: 500; color: var(--ink-3); }
.mock-tabs .is-on { background: #c6f24e; color: #14180c; }
.mock-appbar-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
@container (min-width: 600px) { .mock-appbar-right { margin-left: 0; } }
.mock-chip { display: flex; align-items: center; gap: 6px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); padding: 4px 10px; font-size: 11px; color: var(--ink-2); }
.mock-round { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); }
.mock-chip .icon, .mock-round .icon { width: 13px; height: 13px; }

.mock-body { display: grid; gap: 12px; padding: 16px; }
@container (min-width: 600px) { .mock-body { padding: 20px; } }
.mock-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mock-title { font-size: 15px; font-weight: 600; }
.mock-sub { font-size: 11px; color: var(--ink-3); }

.mock-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@container (min-width: 620px) { .mock-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.mock-tile { border-radius: var(--radius-md); background: rgba(28, 31, 27, 0.7); border: 1px solid var(--line); padding: 12px; }
.mock-tile-icon { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 999px; }
.mock-tile-icon .icon { width: 12px; height: 12px; }
.tone-accent { background: rgba(198, 242, 78, 0.14); color: #c6f24e; }
.tone-blue { background: rgba(57, 135, 229, 0.15); color: var(--blue); }
.tone-aqua { background: rgba(25, 158, 112, 0.15); color: var(--aqua); }
.tone-warning { background: rgba(250, 178, 25, 0.15); color: #fab219; }
.mock-tile-value { margin-top: 8px; font-size: 17px; font-weight: 600; line-height: 1; }
@container (min-width: 720px) { .mock-tile-value { font-size: 19px; } }
.mock-tile-label { margin-top: 6px; font-size: 11px; font-weight: 500; color: var(--ink-2); }
.mock-tile-hint { font-size: 10px; color: var(--ink-3); }

.mock-split { display: grid; gap: 8px; }
@container (min-width: 600px) { .mock-split { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }
.mock-panel { container-type: inline-size; border-radius: var(--radius-md); background: rgba(28, 31, 27, 0.7); border: 1px solid var(--line); padding: 12px; }
.mock-panel-title { font-size: 12px; font-weight: 600; }

.mock-pl { display: grid; gap: 6px; margin-top: 10px; }
.mock-pl li { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.mock-pl-label { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 10.5px; color: var(--ink-2); }
.mock-pl-value { text-align: right; font-size: 10.5px; color: var(--ink-2); }
.mock-pl .is-total .mock-pl-label { color: var(--ink); font-weight: 600; }
.mock-pl .is-total .mock-pl-value { color: #c6f24e; font-weight: 600; }
.mock-track { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); }
.mock-track span { display: block; height: 8px; border-radius: 999px; }

.bar-blue { background: var(--blue); }
.bar-orange { background: var(--orange); }
.bar-aqua { background: var(--aqua); }
.bar-warning { background: #fab219; }
.bar-accent { background: #c6f24e; }
.bar-mute { background: rgba(255, 255, 255, 0.25); }

.mock-stack { display: flex; height: 10px; margin-top: 12px; overflow: hidden; border-radius: 999px; }
.mock-legend { display: grid; gap: 8px 16px; margin-top: 12px; }
@container (min-width: 300px) { .mock-legend { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mock-legend li { display: flex; align-items: center; gap: 6px; font-size: 10.5px; color: var(--ink-2); }
.mock-legend b { margin-left: auto; font-weight: 500; color: var(--ink); }
.swatch { width: 8px; height: 8px; flex-shrink: 0; border-radius: 999px; }

.mock-pills { display: flex; gap: 6px; overflow: hidden; }
.mock-pills span { display: flex; flex-shrink: 0; align-items: center; gap: 6px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); padding: 4px 10px; font-size: 11px; font-weight: 500; color: var(--ink-2); }
.mock-pills b { font-weight: 500; color: var(--ink-3); }
.mock-pills .is-on { background: #c6f24e; border-color: transparent; color: #14180c; }
.mock-pills .is-on b { color: rgba(20, 24, 12, 0.7); }

.mock-list { overflow: hidden; border-radius: var(--radius-md); background: rgba(28, 31, 27, 0.7); border: 1px solid var(--line); }
.mock-list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; }
.mock-list li + li { border-top: 1px solid var(--line); }
.mock-list-icon { display: grid; place-items: center; flex-shrink: 0; width: 32px; height: 32px; border-radius: 999px; background: rgba(250, 178, 25, 0.15); color: #fab219; }
.mock-list-icon .icon { width: 16px; height: 16px; }
.mock-list-text { flex: 1; min-width: 0; }
.mock-list-title, .mock-list-detail { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mock-list-title { font-size: 12px; font-weight: 500; }
.mock-list-detail { font-size: 10.5px; color: var(--ink-3); }
.mock-list-amount { text-align: right; }
.mock-list-amount b { display: block; font-size: 12.5px; font-weight: 600; }
.mock-list-amount span { font-size: 10px; font-weight: 500; color: var(--ink-3); }
.mock-list-amount .is-accent { color: #c6f24e; }

.phone {
  width: 270px;
  margin-inline: auto;
  border-radius: 44px;
  background: #1c1f1b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--frame-shadow);
  padding: 10px;
}
.phone-screen { overflow: hidden; border-radius: 35px; background: #0a0a0a; border: 1px solid var(--line); }
.phone-status { display: flex; align-items: center; justify-content: space-between; padding: 12px 22px 8px; font-size: 10px; color: var(--ink-3); }
.phone-notch { width: 70px; height: 18px; border-radius: 999px; background: #1c1f1b; }
.phone-head { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 0 16px 12px; }
.phone-body { display: grid; gap: 12px; padding: 12px; }
.phone-scan { display: flex; align-items: center; gap: 8px; border-radius: 999px; background: var(--surface); border: 1px solid rgba(198, 242, 78, 0.6); padding: 8px 8px 8px 12px; font-size: 11px; color: var(--ink-3); }
.phone-scan .icon { width: 16px; height: 16px; color: #c6f24e; }
.phone-scan > span:not(.phone-cam) { flex: 1; }
.phone-cam { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 999px; background: #c6f24e; }
.phone-cam .icon { width: 13px; height: 13px; color: #14180c; }
.phone-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; text-align: center; }
.phone-stats div { border-radius: 14px; background: var(--surface); border: 1px solid var(--line); padding: 8px 0; }
.phone-stats b { display: block; font-size: 16px; font-weight: 600; }
.phone-stats span { font-size: 9.5px; color: var(--ink-3); }
.phone-list { overflow: hidden; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--line); }
.phone-list li { display: flex; align-items: center; gap: 8px; padding: 8px 12px; }
.phone-list li + li { border-top: 1px solid var(--line); }
.phone-list .icon { width: 16px; height: 16px; }
.phone-list b { display: block; font-size: 11px; font-weight: 500; }
.phone-list li > span > span { display: block; font-size: 9.5px; color: var(--ink-3); }
.phone-tabs { display: flex; justify-content: space-around; border-top: 1px solid var(--line); padding: 8px 8px 16px; }
.phone-tabs span { border-radius: 999px; padding: 4px 8px; font-size: 9px; font-weight: 500; color: var(--ink-3); }
.phone-tabs .is-on { background: rgba(198, 242, 78, 0.14); color: #c6f24e; }
.is-good { color: var(--good); }
.is-critical { color: var(--critical) !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
