/* Awlware site styles. One file, no build step, no external requests.
   Light + dark via prefers-color-scheme. */

/* ---------- Tokens ---------- */
:root {
  color-scheme: light dark;

  --bg: #ffffff;
  --bg-alt: #f7f9fc;
  --card: #f3f6fb;          /* card on --bg */
  --card-alt: #ffffff;      /* card on --bg-alt */
  --surface-hi: #ffffff;    /* mocks, lists */
  --text: #1a1c20;
  --text-2: #474e5c;
  --text-3: #5d6472;
  --line: #e3e7ee;
  --line-strong: #cfd5df;

  --accent: #1f5fd1;
  --accent-hover: #184fb0;
  --on-accent: #ffffff;
  --accent-soft: #e8f0fe;
  --accent-soft-hover: #dbe7fd;
  --on-accent-soft: #0b3a8c;
  --focus: #1f5fd1;

  --blue-bg: #e8f0fe;   --blue-fg: #1f5fd1;
  --teal-bg: #dcf3ef;   --teal-fg: #0b6f64;
  --violet-bg: #eee8fd; --violet-fg: #5f3bc4;
  --amber-bg: #fdf0da;  --amber-fg: #8a5300;
  --ok-bg: #e3f4e8;     --ok-fg: #146c3a;
  --warn-bg: #fdf0da;   --warn-fg: #8a5300;

  --header-bg: rgba(255, 255, 255, 0.82);
  --hero-tint: #eef4fe;

  --elev-1: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px 1px rgba(16, 24, 40, 0.04);
  --elev-2: 0 2px 6px 2px rgba(16, 24, 40, 0.07), 0 1px 3px rgba(16, 24, 40, 0.1);
  --elev-3: 0 12px 32px -8px rgba(16, 24, 40, 0.16), 0 2px 6px rgba(16, 24, 40, 0.06);

  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 24px;
  --r-xl: 28px;
  --maxw: 1200px;
  --gutter: 24px;
  --sans: "Segoe UI Variable Text", "Segoe UI", Roboto, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --display: "Segoe UI Variable Display", "Segoe UI Variable Text", "Segoe UI", Roboto, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.2, 0, 0, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --bg-alt: #16191f;
    --card: #191d24;
    --card-alt: #1e222a;
    --surface-hi: #1e222a;
    --text: #e6e8ec;
    --text-2: #b9bfca;
    --text-3: #a3aab6;
    --line: #2a2f38;
    --line-strong: #3a404b;

    --accent: #a8c7fa;
    --accent-hover: #c2d7fb;
    --on-accent: #0a2a63;
    --accent-soft: #1f2b42;
    --accent-soft-hover: #28364f;
    --on-accent-soft: #d3e2fd;
    --focus: #a8c7fa;

    --blue-bg: #1e2b45;   --blue-fg: #a8c7fa;
    --teal-bg: #132f2c;   --teal-fg: #7fd6c8;
    --violet-bg: #28223f; --violet-fg: #c8b6fa;
    --amber-bg: #372a14;  --amber-fg: #f0c27a;
    --ok-bg: #16302a;     --ok-fg: #8fd9a8;
    --warn-bg: #3a2c14;   --warn-fg: #f2c27a;

    --header-bg: rgba(15, 17, 21, 0.8);
    --hero-tint: #141a26;

    --elev-1: 0 1px 2px rgba(0, 0, 0, 0.3), 0 1px 3px 1px rgba(0, 0, 0, 0.15);
    --elev-2: 0 2px 6px 2px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.35);
    --elev-3: 0 16px 40px -8px rgba(0, 0, 0, 0.55), 0 2px 6px rgba(0, 0, 0, 0.3);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1, h2, h3, .h3 {
  font-family: var(--display);
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.08; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); line-height: 1.2; letter-spacing: -0.015em; }
h3, .h3 { font-size: 1.25rem; line-height: 1.35; letter-spacing: -0.005em; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
strong { font-weight: 600; }
img, svg { display: block; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--accent-hover); text-decoration-thickness: 2px; }

code {
  font-family: var(--mono);
  font-size: 0.875em;
  background: var(--accent-soft);
  color: var(--on-accent-soft);
  padding: 0.1em 0.45em;
  border-radius: 6px;
  overflow-wrap: anywhere;
}

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 100;
  background: var(--accent);
  color: var(--on-accent);
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 12px; color: var(--on-accent); }

.ic {
  width: 22px; height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.1875rem;
  letter-spacing: -0.01em;
  border-radius: 10px;
}
.brand:hover { color: var(--text); }
.logo { width: 32px; height: 32px; }
.logo-bg { fill: #1f5fd1; }
.logo-fg { fill: #ffffff; }
.logo-tip { fill: #bfd3fa; }

.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 4px; list-style: none; }
.site-nav a {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--text-2);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 150ms var(--ease), color 150ms var(--ease);
}
.site-nav a:hover { background: var(--bg-alt); color: var(--text); }
.site-nav a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--on-accent-soft);
  font-weight: 600;
}

/* ---------- Buttons & chips ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 600 0.9375rem/1.2 var(--sans);
  letter-spacing: 0.005em;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 150ms var(--ease), box-shadow 150ms var(--ease), color 150ms var(--ease), border-color 150ms var(--ease);
}
.btn:hover { text-decoration: none; }
.btn:focus-visible { border-radius: 999px; outline-offset: 3px; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); box-shadow: var(--elev-1); }
.btn-tonal { background: var(--accent-soft); color: var(--on-accent-soft); }
.btn-tonal:hover { background: var(--accent-soft-hover); color: var(--on-accent-soft); }
.btn-outlined { background: transparent; color: var(--accent); border-color: var(--line-strong); }
.btn-outlined:hover { background: var(--accent-soft); color: var(--on-accent-soft); border-color: var(--accent-soft); }
.btn-sm { min-height: 40px; padding: 0 20px; font-size: 0.875rem; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.actions-center { justify-content: center; }

.chip {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--on-accent-soft);
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}

.eyebrow {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9375rem;
  margin: 0 0 12px;
}

.lede { font-size: 1.1875rem; line-height: 1.6; color: var(--text-2); max-width: 40rem; }
.note { color: var(--text-3); font-size: 0.9375rem; margin-top: 24px; }
.caption { color: var(--text-3); font-size: 0.875rem; margin-top: 20px; text-align: center; }

/* ---------- Sections ---------- */
.section { padding-block: 96px; }
.section.alt { background: var(--bg-alt); }
.section.alt .card { background: var(--card-alt); }
.section-head { max-width: 46rem; margin-bottom: 48px; }
.section-head h2 { margin-bottom: 0; }
.section-head .lede { margin-top: 16px; }

.grid { display: grid; gap: 20px; list-style: none; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mt-lg { margin-top: 20px; }

/* ---------- Cards ---------- */
.card {
  background: var(--card);
  border-radius: var(--r-lg);
  padding: 32px;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease);
}
.card-list > .card:hover {
  transform: translateY(-2px);
  box-shadow: var(--elev-2);
}
.card h3 { margin-top: 20px; margin-bottom: 8px; }
.card p { color: var(--text-2); font-size: 1rem; }

.icon-tile {
  display: inline-grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--blue-bg);
  color: var(--blue-fg);
  flex: none;
}
.icon-tile-lg { width: 56px; height: 56px; border-radius: 16px; }
.icon-tile-lg .ic { width: 28px; height: 28px; }
.tone-blue { background: var(--blue-bg); color: var(--blue-fg); }
.tone-teal { background: var(--teal-bg); color: var(--teal-fg); }
.tone-violet { background: var(--violet-bg); color: var(--violet-fg); }
.tone-amber { background: var(--amber-bg); color: var(--amber-fg); }

/* ---------- Hero ---------- */
.hero {
  padding-block: 80px 96px;
  background:
    radial-gradient(80% 70% at 85% 0%, var(--hero-tint) 0%, transparent 70%),
    linear-gradient(180deg, var(--hero-tint) 0%, var(--bg) 70%);
}
.hero-compact { padding-block: 72px 80px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 64px;
  align-items: center;
}
.hero-grid-even { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; }
.hero-copy h1 { margin-bottom: 24px; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-bottom: 16px; }
.hero-meta .eyebrow { margin: 0; }
.hero-link { margin-top: 20px; font-weight: 600; font-size: 0.9375rem; }
.hero-link a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.hero-link .ic { width: 18px; height: 18px; transition: transform 150ms var(--ease); }
.hero-link a:hover .ic { transform: translateX(3px); }
.hero-visual { margin: 0; min-width: 0; }

.hero-center { text-align: center; padding-block: 120px; }
.hero-center .lede { margin-inline: auto; }
.error-code {
  font-family: var(--display);
  font-size: clamp(5rem, 14vw, 8rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--accent);
  margin: 0 0 16px;
}

/* ---------- Product mock (illustration) ---------- */
.visual-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "sheet sheet" "flow cal";
  align-items: start;
  font-size: 0.8125rem;
  line-height: 1.35;
}
.mock {
  background: var(--surface-hi);
  border-radius: var(--r-md);
  box-shadow: var(--elev-3);
  border: 1px solid var(--line);
  overflow: hidden;
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.mock-app {
  display: inline-grid; place-items: center;
  width: 28px; height: 28px;
  border-radius: 8px;
}
.mock-app .ic { width: 16px; height: 16px; stroke-width: 2; }
.mock-app-sheet { background: var(--teal-bg); color: var(--teal-fg); }
.mock-app-cal { background: var(--blue-bg); color: var(--blue-fg); }
.mock-title { font-weight: 600; color: var(--text); font-size: 0.875rem; }
.mock-menu {
  margin-left: auto;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-alt);
  color: var(--text-3);
  font-size: 0.75rem;
}

.mock-sheet { grid-area: sheet; margin-right: 12%; }
.sheet-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center;
  min-height: 40px;
  border-bottom: 1px solid var(--line);
  color: var(--text-2);
}
.sheet-row:last-child { border-bottom: 0; }
.sheet-row > span { padding: 0 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet-row > span:first-child {
  color: var(--text-3);
  text-align: center;
  padding: 0;
  font-size: 0.75rem;
  align-self: stretch;
  display: grid; place-items: center;
  background: var(--bg-alt);
  border-right: 1px solid var(--line);
}
.sheet-row > span:nth-child(2) { color: var(--text); font-weight: 600; }
.sheet-head { min-height: 34px; background: var(--bg-alt); }
.sheet-head > span { color: var(--text-3); font-weight: 600 !important; font-size: 0.75rem; }
.sheet-row.is-warn { background: color-mix(in srgb, var(--warn-bg) 55%, transparent); }

.st {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 10px 0 7px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.75rem;
}
.st .ic { width: 14px; height: 14px; stroke-width: 2.4; }
.st-ok { background: var(--ok-bg); color: var(--ok-fg); }
.st-warn { background: var(--warn-bg); color: var(--warn-fg); }

.visual-flow {
  grid-area: flow;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 32px 12px 0 8%;
}
.flow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px 0 14px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  font-size: 0.875rem;
  box-shadow: var(--elev-2);
  white-space: nowrap;
}
.flow-pill .ic { width: 18px; height: 18px; stroke-width: 2.2; }
.flow-arrow { color: var(--accent); }
.flow-arrow .ic { width: 28px; height: 28px; stroke-width: 2; }

.mock-cal { grid-area: cal; margin-top: -40px; position: relative; }
.month {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  padding: 10px 12px 6px;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-2);
}
.month > span { height: 26px; display: grid; place-items: center; border-radius: 999px; position: relative; }
.month .dow { color: var(--text-3); font-weight: 600; font-size: 0.6875rem; height: 20px; }
.month .has::after {
  content: "";
  position: absolute;
  bottom: 1px; left: 50%;
  width: 4px; height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: currentColor;
}
.month .is-today { background: var(--accent); color: var(--on-accent) !important; font-weight: 600; }
.month .is-today::after { display: none; }
.month .ev-blue { color: var(--blue-fg); font-weight: 600; }
.month .ev-teal { color: var(--teal-fg); font-weight: 600; }
.month .ev-violet { color: var(--violet-fg); font-weight: 600; }
.month .ev-amber { color: var(--amber-fg); font-weight: 600; }

.agenda { list-style: none; padding: 6px 12px 12px; display: grid; gap: 6px; }
.ev {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 10px;
  font-size: 0.75rem;
}
.ev strong { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev span { opacity: 0.85; white-space: nowrap; }
.ev.ev-blue { background: var(--blue-bg); color: var(--blue-fg); }
.ev.ev-teal { background: var(--teal-bg); color: var(--teal-fg); }
.ev.ev-violet { background: var(--violet-bg); color: var(--violet-fg); }
.ev.ev-amber { background: var(--amber-bg); color: var(--amber-fg); }

/* ---------- Product card (home) ---------- */
.product {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  background: var(--card-alt);
  border-radius: var(--r-xl);
  padding: 48px;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease);
}
.product:hover { transform: translateY(-2px); box-shadow: var(--elev-2); }
.product-title { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 20px; }
.product-title h3 { font-size: 1.75rem; margin: 0; letter-spacing: -0.015em; }
.product-title h3 a { color: var(--text); text-decoration: none; }
.product-title h3 a:hover { color: var(--accent); }
.product-copy > p { color: var(--text-2); max-width: 36rem; margin-bottom: 28px; }
.product-icon {
  display: inline-grid; place-items: center;
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--accent);
  color: var(--on-accent);
}
.product-icon .ic { width: 28px; height: 28px; stroke-width: 2; }
.product-icon-sm { width: 36px; height: 36px; border-radius: 11px; }
.product-icon-sm .ic { width: 20px; height: 20px; }

.product-preview {
  background: var(--bg-alt);
  border-radius: var(--r-lg);
  padding: 32px;
  display: grid;
  place-items: center;
}
.preview-card {
  width: 100%;
  max-width: 300px;
  background: var(--surface-hi);
  border-radius: var(--r-md);
  box-shadow: var(--elev-2);
  padding: 20px;
  font-size: 0.875rem;
}
.preview-title { display: flex; align-items: center; gap: 8px; font-weight: 600; margin-bottom: 12px; }
.preview-title .ic { color: var(--accent); width: 20px; height: 20px; }
.preview-rows { list-style: none; display: grid; gap: 2px; margin-bottom: 16px; }
.preview-rows li {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--text-2);
}
.preview-rows li.is-warn { background: var(--warn-bg); color: var(--warn-fg); }
.preview-rows b { margin-left: auto; color: var(--text); font-weight: 600; }
.preview-rows li.is-warn b { color: var(--warn-fg); }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot.tone-blue { background: var(--blue-fg); }
.dot.tone-teal { background: var(--teal-fg); }
.dot.tone-violet { background: var(--violet-fg); }
.dot.tone-amber { background: var(--amber-fg); }
.preview-btn {
  display: flex; align-items: center; justify-content: center;
  height: 36px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
}

/* ---------- Lists (M3-style) ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
.list-card {
  list-style: none;
  background: var(--card);
  border-radius: var(--r-lg);
  padding: 8px 0;
}
.section.alt .list-card { background: var(--card-alt); }
.list-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  position: relative;
}
.list-item + .list-item::before {
  content: "";
  position: absolute;
  top: 0; left: 80px; right: 24px;
  border-top: 1px solid var(--line);
}
.list-item > div { min-width: 0; flex: 1; }
.list-label { color: var(--text-3); font-size: 0.8125rem; margin: 0; }
.list-title { color: var(--text); font-weight: 600; margin: 0; overflow-wrap: anywhere; }
.list-title strong { font-weight: 700; }
.list-sub { color: var(--text-2); font-size: 0.9375rem; margin: 2px 0 0; }

.perm-list .list-item { align-items: flex-start; padding-block: 20px; }
.perm-list .icon-tile { margin-top: 2px; }
.scope {
  flex: none;
  align-self: center;
  max-width: 17rem;
  font-size: 0.8125rem;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--bg-alt);
  color: var(--text-2);
  border: 1px solid var(--line);
}

/* ---------- Check lists ---------- */
.checks { list-style: none; display: grid; gap: 10px; }
.checks li {
  position: relative;
  padding-left: 30px;
  color: var(--text-2);
  font-size: 1rem;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.2em;
  width: 20px; height: 20px;
  border-radius: 50%;
  background-color: var(--ok-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.6L14 7.5' fill='none' stroke='%23146c3a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.checks li.no::before {
  background-color: var(--bg-alt);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M7 7l6 6M13 7l-6 6' fill='none' stroke='%235d6472' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}
.card .checks { margin-top: 16px; }
.include-card h2 { margin-top: 20px; }
.include-card .checks { margin-top: 12px; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.step { counter-increment: step; }
.step::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.125rem;
}

/* ---------- Pricing ---------- */
.plans { align-items: stretch; }
.plan {
  display: flex;
  flex-direction: column;
  background: var(--card-alt);
  border-radius: var(--r-xl);
  padding: 36px;
  border: 1px solid var(--line);
}
.plan h3 { margin: 0 0 4px; font-size: 1.125rem; color: var(--text-2); }
.price {
  font-family: var(--display);
  font-size: 2.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 8px;
  overflow-wrap: anywhere;
}
.plan-sub { color: var(--text-2); margin-bottom: 24px; }
.plan .checks { margin-bottom: 32px; flex: 1; align-content: start; }
.plan .btn { align-self: flex-start; }
.plan-featured {
  border: 2px solid var(--accent);
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--card-alt) 55%);
  padding: 35px;
}
.plan-featured h3 { color: var(--accent); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--accent-soft);
  border-radius: var(--r-xl);
  padding: 64px 32px;
  text-align: center;
}
.cta-band .icon-tile { background: var(--bg); margin-bottom: 20px; }
.cta-band .eyebrow { color: var(--on-accent-soft); }
.cta-band .lede { margin-inline: auto; color: var(--on-accent-soft); }
.cta-band .actions { justify-content: center; }
.cta-band .note { color: var(--on-accent-soft); max-width: 40rem; margin-inline: auto; }
.cta-band .note a, .cta-band .lede a { color: var(--on-accent-soft); }
.cta-band .btn-outlined { border-color: color-mix(in srgb, var(--on-accent-soft) 35%, transparent); color: var(--on-accent-soft); }
.cta-band .btn-outlined:hover { background: var(--bg); }

/* ---------- FAQ accordion ---------- */
.faq details {
  background: var(--card);
  border-radius: var(--r-md);
  margin-bottom: 12px;
  transition: background-color 150ms var(--ease), box-shadow 150ms var(--ease);
}
.faq details[open] { background: var(--card); box-shadow: var(--elev-1); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-weight: 600;
  font-size: 1.0625rem;
  border-radius: var(--r-md);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:focus-visible { border-radius: var(--r-md); outline-offset: 0; }
.faq summary::after {
  content: "";
  flex: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  background-color: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M11 14l5 5 5-5' fill='none' stroke='%231f5fd1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  transition: transform 180ms var(--ease);
}
.faq details[open] summary::after { transform: rotate(180deg); }
.faq summary:hover::after { background-color: var(--accent-soft); }
.answer { padding: 0 24px 24px; color: var(--text-2); font-size: 1rem; }
.answer ul { padding-left: 1.25em; margin-bottom: 1em; display: grid; gap: 6px; }

/* ---------- Legal documents ---------- */
.doc-page { padding-block: 64px 96px; }
.doc-head { max-width: 720px; margin-left: calc(240px + 64px); margin-bottom: 40px; }
.doc-head h1 { font-size: clamp(2.25rem, 4vw, 3rem); margin-bottom: 12px; }
.meta { color: var(--text-3); font-size: 0.9375rem; }
.doc-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 720px);
  gap: 64px;
  align-items: start;
}
.doc-aside { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow-y: auto; }
.toc-title { font-weight: 600; font-size: 0.875rem; color: var(--text); margin: 0 0 8px 12px; }
.toc ol { list-style: none; counter-reset: toc; display: grid; gap: 2px; }
.toc li { counter-increment: toc; }
.toc a {
  display: flex;
  gap: 10px;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--text-2);
  font-size: 0.875rem;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color 150ms var(--ease);
}
.toc a::before { content: counter(toc); color: var(--text-3); min-width: 1.1em; font-variant-numeric: tabular-nums; }
.toc a:hover { background: var(--accent-soft); color: var(--on-accent-soft); }
.toc a:focus-visible { border-radius: 999px; }

.doc { min-width: 0; }
.doc > p, .doc li { color: var(--text-2); }
.doc h2 {
  font-size: 1.625rem;
  margin: 56px 0 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.doc h3 { font-size: 1.1875rem; margin: 36px 0 12px; }
.doc ul { padding-left: 1.3em; display: grid; gap: 8px; margin-bottom: 1em; }
.doc li::marker { color: var(--accent); }
.doc .mt { margin-top: 24px; }
.callout {
  background: var(--accent-soft);
  color: var(--on-accent-soft);
  border-radius: var(--r-md);
  padding: 20px 24px;
  margin: 28px 0;
}
.callout p { color: var(--on-accent-soft) !important; }
.callout a { color: var(--on-accent-soft); }

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin: 20px 0;
}
table { border-collapse: collapse; width: 100%; font-size: 0.9375rem; }
th, td { text-align: left; vertical-align: top; padding: 14px 16px; }
th { background: var(--bg-alt); font-weight: 600; color: var(--text); font-size: 0.875rem; }
td { color: var(--text-2); border-top: 1px solid var(--line); }
td code { font-size: 0.8125rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  padding-block: 56px 32px;
  font-size: 0.9375rem;
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr);
  gap: 48px;
  padding-bottom: 40px;
}
.footer-brand p { color: var(--text-2); margin-top: 14px; max-width: 22rem; }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-cols h2 { font-family: var(--sans); font-size: 0.875rem; font-weight: 600; letter-spacing: 0; margin: 0 0 12px; color: var(--text); }
.footer-cols ul { list-style: none; display: grid; gap: 4px; }
.footer-cols a {
  display: inline-block;
  padding: 4px 0;
  color: var(--text-2);
  text-decoration: none;
}
.footer-cols a:hover { color: var(--accent); text-decoration: underline; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 0.8125rem;
}
.footer-bottom p { margin: 0; }
.fineprint { max-width: 48rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc-layout { grid-template-columns: 200px minmax(0, 1fr); gap: 40px; }
  .doc-head { margin-left: calc(200px + 40px); }
}

@media (max-width: 900px) {
  .section { padding-block: 72px; }
  .hero { padding-block: 56px 72px; }
  .hero-grid, .hero-grid-even, .contact-grid, .product { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .product { padding: 32px; }
  .footer-top { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .doc-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .doc-head { margin-left: 0; margin-bottom: 24px; }
  .doc-aside { position: static; max-height: none; background: var(--bg-alt); border-radius: var(--r-md); padding: 16px 8px; }
}

@media (max-width: 760px) {
  :root { --gutter: 16px; }
  html { scroll-padding-top: 124px; }
  .header-inner { flex-wrap: wrap; gap: 0 12px; padding-top: 10px; }
  .brand { min-height: 44px; }
  .header-cta { margin-left: auto; }
  .site-nav {
    order: 3;
    flex-basis: 100%;
    margin: 4px calc(-1 * var(--gutter)) 0;
    padding: 0 var(--gutter) 8px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { height: 36px; padding: 0 14px; }
  .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 24px; }
  .section-head { margin-bottom: 32px; }
  .lede { font-size: 1.0625rem; }
  .list-item { padding: 14px 16px; }
  .list-item + .list-item::before { left: 72px; right: 16px; }
  .perm-list .list-item { flex-wrap: wrap; }
  .perm-list .list-text { flex: 1 1 calc(100% - 56px); }
  .scope { margin-left: 56px; align-self: flex-start; max-width: calc(100% - 56px); }
  .plan { padding: 28px 24px; }
  .plan-featured { padding: 27px 23px; }
  .cta-band { padding: 48px 20px; }
  .faq summary { padding: 16px 18px; }
  .answer { padding: 0 18px 20px; }

  /* Mock: tighter, stacks calendar under sheet */
  .visual-stage { grid-template-areas: "sheet sheet" "flow flow" "cal cal"; font-size: 0.75rem; }
  .mock-sheet { margin-right: 0; }
  .sheet-row { grid-template-columns: 26px minmax(0, 1.15fr) minmax(0, 0.95fr) minmax(0, 1.2fr); min-height: 36px; }
  .sheet-row > span { padding: 0 6px; }
  .st { padding: 0 8px 0 5px; font-size: 0.6875rem; }
  .visual-flow { justify-content: center; padding: 16px 0; }
  .flow-arrow { transform: rotate(90deg); }
  .mock-cal { margin: 0 0 0 auto; width: 88%; }

  /* Stacked tables */
  table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
  table.stack tr { padding: 12px 16px; }
  table.stack tr + tr { border-top: 1px solid var(--line); }
  table.stack td { border: 0; padding: 4px 0; }
  table.stack td::before {
    content: attr(data-th);
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text);
  }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}

@media (max-width: 400px) {
  .header-cta { padding: 0 16px; }
  .actions .btn { flex: 1 1 100%; }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .card-list > .card:hover, .product:hover { transform: none; }
  .hero-link a:hover .ic { transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .skip, .doc-aside { display: none; }
  body { background: #fff; color: #000; }
  .doc-layout { display: block; }
  .doc-head { margin-left: 0; }
}

/* ---------- Dark-mode icon variants (data URIs cannot use currentColor) ---------- */
@media (prefers-color-scheme: dark) {
  .checks li::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.6L14 7.5' fill='none' stroke='%238fd9a8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  }
  .checks li.no::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M7 7l6 6M13 7l-6 6' fill='none' stroke='%23a3aab6' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  }
  .faq summary::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M11 14l5 5 5-5' fill='none' stroke='%23a8c7fa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  }
}

.sheet-foot {
  padding: 10px 14px 44px;
  color: var(--text-3);
  font-size: 0.75rem;
  background: var(--bg-alt);
}
@media (max-width: 760px) { .sheet-foot { padding-bottom: 10px; } }

/* ---------- Illustration animation (CSS only) ----------
   One 8s loop. Negative base delay (--g) means the first frame is already the
   "all synced" state; the loop then clears and replays row by row.
   prefers-reduced-motion: no animation at all, the static final state is shown. */
@media (prefers-reduced-motion: no-preference) {
  .visual-stage { --g: -5s; --step: 0.55s; --dur: 8s; }
  .sheet-row { position: relative; }
  .sheet-row:not(.sheet-head)::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--accent-soft);
    opacity: 0;
    pointer-events: none;
    animation: row-flash var(--dur) var(--ease) infinite;
    animation-delay: calc(var(--g) + var(--i) * var(--step));
  }
  .sheet-row > span { position: relative; z-index: 1; }
  .sheet-row:nth-child(2) { --i: 0; }
  .sheet-row:nth-child(3) { --i: 1; }
  .sheet-row:nth-child(4) { --i: 2; }
  .sheet-row:nth-child(5) { --i: 3; }
  .sheet-row:nth-child(6) { --i: 4; }
  .sheet-row .st {
    animation: chip-in var(--dur) var(--ease) infinite both;
    animation-delay: calc(var(--g) + var(--i) * var(--step));
  }

  .agenda .ev:nth-child(1), .month .ev-blue { --i: 0; }
  .agenda .ev:nth-child(2), .month .ev-teal { --i: 1; }
  .agenda .ev:nth-child(3), .month .ev-violet { --i: 2; }
  .agenda .ev:nth-child(4), .month .ev-amber { --i: 3; }
  .agenda .ev {
    animation: ev-in var(--dur) var(--ease) infinite both;
    animation-delay: calc(var(--g) + var(--i) * var(--step) + 0.3s);
  }
  .month .has::after {
    animation: dot-in var(--dur) var(--ease) infinite both;
    animation-delay: calc(var(--g) + var(--i) * var(--step) + 0.3s);
  }

  .flow-pill { animation: pill-pulse var(--dur) var(--ease) infinite; animation-delay: var(--g); }
  .flow-pill .ic { animation: spin var(--dur) var(--ease) infinite; animation-delay: var(--g); }
  .flow-arrow .ic { animation: nudge var(--dur) var(--ease) infinite; animation-delay: var(--g); }
}

@keyframes chip-in {
  0%, 6%   { opacity: 0; transform: scale(0.8); }
  12%, 84% { opacity: 1; transform: none; }
  92%, 100% { opacity: 0; transform: scale(0.9); }
}
@keyframes row-flash {
  0%, 5%    { opacity: 0; }
  9%        { opacity: 0.9; }
  17%, 100% { opacity: 0; }
}
@keyframes ev-in {
  0%, 8%   { opacity: 0; transform: translateX(-14px); }
  15%, 84% { opacity: 1; transform: none; }
  92%, 100% { opacity: 0; transform: none; }
}
@keyframes dot-in {
  0%, 8%   { opacity: 0; transform: scale(0); }
  15%, 84% { opacity: 1; transform: none; }
  92%, 100% { opacity: 0; transform: scale(0); }
}
@keyframes pill-pulse {
  0%, 1%, 7%, 100% { transform: none; }
  3.5% { transform: scale(1.05); }
}
@keyframes spin {
  0%, 2%    { transform: rotate(0deg); }
  36%, 100% { transform: rotate(360deg); }
}
@keyframes nudge {
  0%, 3%, 30%, 100% { transform: none; }
  8%, 22% { transform: translateX(4px); }
}

.h1-product { font-size: clamp(2.5rem, 4.2vw, 3.5rem); }
