/* Structure vs Poem - site styles. System fonts only; no external requests. */

:root {
  --bg: #f6f8fc;
  --surface: #ffffff;
  --surface-2: #eef2f9;
  --ink: #0e1a2b;
  --ink-2: #26344a;
  --muted: #55627a;
  --line: #e1e7f0;
  --line-strong: #c3cddc;

  --night: #0a1424;
  --night-2: #13233d;
  --on-night: #eef3fb;
  --on-night-muted: #a3b1c9;

  --blue: #2563eb;   --blue-ink: #1d4ed8;   --blue-soft: #e7eefd;
  --violet: #7c3aed; --violet-ink: #6d28d9; --violet-soft: #f0eafe;
  --teal: #0d9488;   --teal-ink: #0f766e;   --teal-soft: #e3f5f2;
  --orange: #f97316; --orange-ink: #c2410c; --orange-soft: #fff0e5;
  --pink: #db2777;   --pink-ink: #be185d;   --pink-soft: #fdeaf3;
  --green: #16a34a;  --green-ink: #166534;  --green-soft: #e6f6ea;
  --rose: #e11d48;

  --grad-brand: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  --grad-vivid: linear-gradient(120deg, #2563eb 0%, #7c3aed 50%, #db2777 100%);
  --grad-spectrum: linear-gradient(90deg, #4f6ef7, #22b8f0, #2dd4bf, #84cc16, #facc15, #fb923c, #f43f5e);
  --grad-text-dark: linear-gradient(95deg, #67e8f9 0%, #86efac 38%, #fde047 68%, #fdba74 100%);
  --grad-text-light: linear-gradient(95deg, #2563eb 0%, #7c3aed 55%, #db2777 100%);

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --mono: ui-monospace, "Cascadia Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 44px);
  --section: clamp(64px, 7.5vw, 104px);
  --radius: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(14, 26, 43, 0.05), 0 2px 8px rgba(14, 26, 43, 0.05);
  --shadow: 0 14px 34px -16px rgba(14, 26, 43, 0.25), 0 4px 10px -6px rgba(14, 26, 43, 0.08);
  --shadow-lg: 0 40px 80px -32px rgba(14, 26, 43, 0.35);
  color-scheme: light;
}

.tone-blue   { --tone: var(--blue);   --tone-ink: var(--blue-ink);   --tone-soft: var(--blue-soft); }
.tone-violet { --tone: var(--violet); --tone-ink: var(--violet-ink); --tone-soft: var(--violet-soft); }
.tone-teal   { --tone: var(--teal);   --tone-ink: var(--teal-ink);   --tone-soft: var(--teal-soft); }
.tone-orange { --tone: var(--orange); --tone-ink: var(--orange-ink); --tone-soft: var(--orange-soft); }
.tone-pink   { --tone: var(--pink);   --tone-ink: var(--pink-ink);   --tone-soft: var(--pink-soft); }
.tone-green  { --tone: var(--green);  --tone-ink: var(--green-ink);  --tone-soft: var(--green-soft); }

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
img { display: block; height: auto; }
a { color: var(--blue-ink); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--violet-ink); }
:focus-visible { outline: 3px solid #93b4fb; outline-offset: 3px; }
h1, h2, h3 { margin: 0; color: var(--ink); font-family: var(--display); font-weight: 700; line-height: 1.12; letter-spacing: -0.022em; }
h1 { font-size: clamp(2.2rem, 1.3rem + 3vw, 3.7rem); line-height: 1.05; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.8rem, 1.25rem + 1.7vw, 2.65rem); letter-spacing: -0.03em; }
h3 { font-size: 1.2rem; line-height: 1.3; letter-spacing: -0.012em; }
p, ul, ol, dl, dd { margin: 0; }
p + p { margin-top: 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -120px; z-index: 100;
  padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #fff;
}
.skip-link:focus { top: 12px; color: #fff; }
.grad-text, .grad-text-light { -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-text { background-image: var(--grad-text-dark); }
.grad-text-light { background-image: var(--grad-text-light); }
@media (forced-colors: active) {
  .grad-text, .grad-text-light { background: none; color: CanvasText; }
}

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(1.8) blur(14px); backdrop-filter: saturate(1.8) blur(14px);
  border-bottom: 1px solid rgba(14, 26, 43, 0.08);
}
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand:hover { color: var(--ink); }
.brand-mark { flex: none; width: 34px; height: 34px; filter: drop-shadow(0 6px 10px rgba(124, 58, 237, 0.35)); }
.brand-name { font: 750 1.12rem/1 var(--display); letter-spacing: -0.02em; }
.brand-vs { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--violet); }
.site-nav { display: flex; gap: 4px; margin-left: auto; }
.site-nav a {
  padding: 8px 14px; border-radius: 999px; color: var(--ink-2); font-size: 0.95rem; font-weight: 550;
  text-decoration: none; white-space: nowrap; transition: background-color 0.15s, color 0.15s;
}
.site-nav a:hover { background: var(--surface-2); color: var(--ink); }
.site-nav a[aria-current="page"] { background: var(--blue-soft); color: var(--blue-ink); }
@media (min-width: 900px) { html { scroll-padding-top: 96px; } }
@media (max-width: 899px) {
  .site-header { position: static; }
  .header-inner { flex-wrap: wrap; gap: 8px 12px; min-height: 0; padding-block: 12px 10px; }
  .header-cta { margin-left: auto; }
  .site-nav { order: 3; width: 100%; margin-left: 0; gap: 2px; overflow-x: auto; scrollbar-width: none; }
  .site-nav a { padding: 7px 11px; }
}
@media (max-width: 400px) {
  .brand-name { font-size: 1rem; }
  .brand-mark { width: 30px; height: 30px; }
  .header-cta { padding-inline: 0.9em; }
}

/* --------------------------------------------------------------- buttons */
.button {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 50px; padding: 0.8em 1.45em; border: 0; border-radius: 999px;
  background: var(--grad-brand); color: #fff;
  font: 650 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  box-shadow: 0 10px 24px -10px rgba(91, 33, 182, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease, background-color 0.15s ease;
}
.button:hover {
  color: #fff; transform: translateY(-2px); filter: saturate(1.15) brightness(1.06);
  box-shadow: 0 16px 32px -12px rgba(91, 33, 182, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.button:active { transform: translateY(0); }
.button-secondary { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-strong), var(--shadow-sm); }
.button-secondary:hover { color: var(--blue-ink); filter: none; box-shadow: inset 0 0 0 1.5px var(--blue), var(--shadow); }
.button-ghost { background: rgba(255, 255, 255, 0.07); color: var(--on-night); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26); }
.button-ghost:hover { background: rgba(255, 255, 255, 0.14); color: #fff; filter: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45); }
.button-light { background: #fff; color: var(--ink); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.45); }
.button-light:hover { color: var(--violet-ink); filter: none; }
.button-small { min-height: 42px; padding: 0.55em 1.1em; font-size: 0.92rem; }
.button[aria-current="page"] { box-shadow: 0 0 0 3px var(--violet-soft), 0 10px 24px -10px rgba(91, 33, 182, 0.6); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ------------------------------------------------------------ typography */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 18px; padding: 6px 14px 6px 10px;
  border-radius: 999px; background: var(--tone-soft, var(--blue-soft)); color: var(--tone-ink, var(--blue-ink));
  font: 650 0.8rem/1.2 var(--sans); letter-spacing: 0.01em;
}
.eyebrow::before {
  content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--tone, var(--blue));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--tone, var(--blue)) 20%, transparent);
}
.eyebrow-dark { background: rgba(255, 255, 255, 0.08); color: #c7d2fe; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); }
.eyebrow-dark::before { background: #67e8f9; box-shadow: 0 0 0 4px rgba(103, 232, 249, 0.18), 0 0 12px rgba(103, 232, 249, 0.8); }
.lead { max-width: 62ch; color: var(--muted); font-size: clamp(1.08rem, 1rem + 0.35vw, 1.24rem); line-height: 1.6; }
.label { color: var(--muted); font: 700 0.74rem/1.4 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; }

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: clamp(48px, 6.5vw, 92px) clamp(104px, 11vw, 150px);
  background: var(--night); color: var(--on-night);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(38% 55% at 6% 10%, rgba(37, 99, 235, 0.55), transparent 70%),
    radial-gradient(32% 50% at 94% 14%, rgba(124, 58, 237, 0.45), transparent 70%),
    radial-gradient(36% 48% at 78% 102%, rgba(13, 148, 136, 0.4), transparent 70%),
    radial-gradient(28% 40% at 28% 108%, rgba(219, 39, 119, 0.3), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 80% 75% at 50% 35%, #000 25%, transparent 85%);
  mask-image: radial-gradient(ellipse 80% 75% at 50% 35%, #000 25%, transparent 85%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr); gap: clamp(36px, 5vw, 64px); align-items: center; }
.hero h1 { color: #fff; }
.hero .lead { margin-top: 24px; color: var(--on-night-muted); }
.assurances { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; padding: 0; list-style: none; }
.assurances li {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px 6px 7px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); color: #dbe4f3; font-size: 0.88rem;
}
.assurances li::before {
  content: ""; flex: none; width: 19px; height: 19px; border-radius: 50%;
  background: #16a34a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5.5 12.5l4 4 9-9' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-grid > figure { max-width: 640px; }
}

/* Mock analysis window */
.app-window {
  margin: 0; overflow: hidden; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(22, 38, 64, 0.94), rgba(10, 20, 36, 0.94));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 50px 100px -40px rgba(0, 0, 0, 0.8);
}
.app-bar, .code-card-bar {
  display: flex; align-items: center; gap: 14px; padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08); background: rgba(255, 255, 255, 0.03);
  color: var(--on-night-muted); font: 500 0.78rem/1.3 var(--mono);
}
.app-dots { display: inline-flex; gap: 6px; }
.app-dots i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.app-dots i:nth-child(2) { background: #febc2e; }
.app-dots i:nth-child(3) { background: #28c840; }
.app-note {
  margin-left: auto; padding: 2px 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.08);
  font: 600 0.68rem/1.5 var(--sans); letter-spacing: 0.06em; text-transform: uppercase;
}
.app-window .fig { padding: 12px 14px 6px; }
.app-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid rgba(255, 255, 255, 0.08); }
.app-stats > span { display: grid; gap: 2px; padding: 12px 16px; }
.app-stats > span + span { border-left: 1px solid rgba(255, 255, 255, 0.08); }
.app-stats small { color: var(--on-night-muted); font-size: 0.74rem; }
.app-stats strong { color: #fff; font: 650 0.95rem/1.3 var(--mono); }
.app-stats .value-cyan { color: #67e8f9; }
.app-stats .value-rose { color: #fb7185; }
.app-stats .value-ok { display: inline-flex; align-items: center; gap: 7px; color: #86efac; }
.app-stats .value-ok::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 10px #22c55e; }
@media (max-width: 520px) {
  .app-sub { display: none; }
  .app-window .fig { padding: 8px 6px 2px; }
  .app-stats > span { padding: 10px 10px; }
  .app-stats small { font-size: 0.68rem; }
  .app-stats strong { font-size: 0.8rem; white-space: nowrap; }
}

/* SVG figures (colors are set in the SVG; see tools/generate_figures.py) */
.fig { display: block; width: 100%; height: auto; }
.fig-t { font: 600 11px/1 var(--mono); letter-spacing: 0.04em; }
.icon { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon .icon-fill { fill: currentColor; stroke: none; }
.icon-tile {
  display: inline-grid; place-items: center; flex: none; width: 54px; height: 54px; border-radius: 16px;
  background: var(--tone-soft, var(--blue-soft)); color: var(--tone-ink, var(--blue-ink));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone, var(--blue)) 18%, transparent);
}
.icon-tile .icon { width: 28px; height: 28px; }

/* ------------------------------------------------------------ stats band */
.stats-band { position: relative; z-index: 2; margin-top: clamp(-84px, -7vw, -60px); }
.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 8px;
  border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--line);
}
.stat { display: flex; align-items: flex-start; gap: 14px; padding: 20px 18px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat .icon-tile { width: 46px; height: 46px; border-radius: 14px; }
.stat .icon-tile .icon { width: 24px; height: 24px; }
.stat-value { color: var(--ink); font: 750 1.06rem/1.25 var(--display); letter-spacing: -0.01em; }
.stat .stat-label { margin-top: 4px; color: var(--muted); font-size: 0.88rem; line-height: 1.45; }
@media (max-width: 1024px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
}

/* -------------------------------------------------------------- sections */
.section { position: relative; padding-block: var(--section); }
.section-tight { padding-block: clamp(44px, 6vw, 76px); }
.section-soft { background: linear-gradient(180deg, #edf2fb 0%, var(--bg) 100%); }
.section-intro { max-width: 800px; margin: 0 auto clamp(40px, 5vw, 60px); text-align: center; }
.section-intro .lead { margin: 16px auto 0; }
.section-head { margin-bottom: clamp(32px, 4vw, 48px); }
.section-head h2 { max-width: 26ch; }
.section-head .lead { margin-top: 14px; }
.section-dark { isolation: isolate; overflow: hidden; background: var(--night); color: var(--on-night); }
.section-dark::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(40% 60% at 0% 0%, rgba(37, 99, 235, 0.38), transparent 70%),
    radial-gradient(35% 55% at 100% 100%, rgba(219, 39, 119, 0.26), transparent 70%),
    radial-gradient(30% 50% at 88% 6%, rgba(13, 148, 136, 0.28), transparent 70%);
}
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p, .section-dark .lead { color: var(--on-night-muted); }

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

/* ------------------------------------------------------ before / after */
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.compare-card { padding: clamp(24px, 3vw, 36px); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); }
.compare-after {
  border: 2px solid transparent; box-shadow: var(--shadow);
  background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad-vivid) border-box;
}
.compare-title { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; font-size: 1.16rem; }
.compare-title::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: #fb7185; box-shadow: 0 0 0 4px #ffe4e8; }
.compare-after .compare-title::before { background: #22c55e; box-shadow: 0 0 0 4px #dcfce7; }
@media (max-width: 820px) { .compare { grid-template-columns: minmax(0, 1fr); } }

.x-list, .check-list, .dot-list { display: grid; gap: 13px; padding: 0; list-style: none; }
.x-list li, .check-list li { position: relative; padding-left: 34px; line-height: 1.5; }
.x-list li { color: var(--muted); }
.check-list li { color: var(--ink-2); }
.x-list li::before, .check-list li::before {
  content: ""; position: absolute; left: 0; top: 0.05em; width: 22px; height: 22px; border-radius: 50%;
  background-position: center; background-repeat: no-repeat; background-size: 13px;
}
.x-list li::before {
  background-color: #ffe4e8;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 7l10 10M17 7L7 17' fill='none' stroke='%23e11d48' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
}
.check-list li::before {
  background-color: #dcfce7;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5.5 12.5l4 4 9-9' fill='none' stroke='%2316a34a' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.dot-list li { position: relative; padding-left: 20px; color: var(--muted); font-size: 0.97rem; line-height: 1.5; }
.dot-list li::before { content: ""; position: absolute; left: 2px; top: 0.55em; width: 8px; height: 8px; border-radius: 50%; background: var(--tone, var(--blue)); }

/* ----------------------------------------------------------------- cards */
.service-card, .feature-card, .offer-card, .why-card, .panel, .cred-card {
  position: relative; border-radius: var(--radius-lg);
}
.service-card, .feature-card, .offer-card, .panel, .cred-card {
  background: var(--surface); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line);
}
.service-card {
  display: flex; flex-direction: column; align-items: flex-start; overflow: hidden; padding: 28px 24px 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--tone), color-mix(in srgb, var(--tone) 35%, #fff)); }
.service-card::after {
  content: ""; position: absolute; right: -70px; top: -70px; width: 180px; height: 180px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--tone) 16%, transparent), transparent 70%);
}
.service-card:hover, .service-row:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 50px -24px color-mix(in srgb, var(--tone) 55%, transparent), inset 0 0 0 1px color-mix(in srgb, var(--tone) 32%, var(--line));
}
.service-card .icon-tile { margin-bottom: 20px; }
.service-card h3 { margin-bottom: 12px; font-size: 1.14rem; }
.service-card h3 a, .service-row h2 a { color: var(--ink); text-decoration: none; }
.service-card h3 a::after, .service-row h2 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.service-card:focus-within, .service-row:focus-within { outline: 3px solid color-mix(in srgb, var(--tone) 55%, #fff); outline-offset: 4px; }
.service-card h3 a:focus-visible, .service-row h2 a:focus-visible { outline: none; }
.service-card p, .feature-card p, .offer-card p, .service-row p { color: var(--muted); }
.service-card p { font-size: 0.98rem; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; padding: 0; list-style: none; }
.pills li { padding: 2px 10px; border-radius: 999px; background: var(--tone-soft); color: var(--tone-ink); font: 650 0.76rem/1.55 var(--sans); }
.card-more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 18px; color: var(--tone-ink); font-weight: 650; font-size: 0.95rem; transition: gap 0.2s; }
.service-card:hover .card-more, .service-row:hover .card-more { gap: 11px; }

.feature-card { padding: 26px 24px; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow), inset 0 0 0 1px color-mix(in srgb, var(--tone, var(--blue)) 30%, var(--line)); }
.feature-card .icon-tile, .offer-card .icon-tile { margin-bottom: 18px; }
.feature-card h3, .offer-card h3 { margin-bottom: 8px; }
.feature-card p { font-size: 0.98rem; }

.offer-card { display: flex; flex-direction: column; padding: 30px 28px 26px; }
.offer-card .best-for {
  display: grid; justify-items: start; gap: 6px; margin-top: auto; padding-top: 20px;
  color: var(--ink-2); font-size: 0.95rem; font-weight: 550;
}
.best-for span { padding: 2px 10px; border-radius: 999px; background: var(--tone-soft); color: var(--tone-ink); font: 700 0.7rem/1.6 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; }

.why-card { padding: 26px 24px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09); }
.why-card .icon-tile {
  margin-bottom: 18px; background: color-mix(in srgb, var(--tone) 24%, transparent);
  color: color-mix(in srgb, var(--tone) 40%, #fff); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone) 50%, transparent);
}
.why-card h3 { margin-bottom: 10px; }
.why-card p { font-size: 0.98rem; }

.note-panel {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px;
  margin-top: clamp(28px, 4vw, 44px); padding: 26px 30px; border-radius: var(--radius-lg);
  background: linear-gradient(120deg, rgba(37, 99, 235, 0.2), rgba(124, 58, 237, 0.16) 50%, rgba(219, 39, 119, 0.16));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.note-panel > div { max-width: 68ch; }
.section-dark .note-title { color: #fff; font: 700 1.12rem/1.3 var(--display); }
.tool-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; padding: 0; list-style: none; }
.tool-pills li {
  padding: 3px 12px; border-radius: 999px; background: color-mix(in srgb, var(--tone) 24%, transparent);
  color: color-mix(in srgb, var(--tone) 35%, #fff); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone) 55%, transparent);
  font: 650 0.82rem/1.5 var(--mono);
}

/* ------------------------------------------------------------- pipeline */
.pipeline { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; padding-block: 0; list-style: none; }
.pipeline::before {
  content: ""; position: absolute; top: 27px; height: 3px; border-radius: 3px; opacity: 0.55;
  left: calc(var(--gutter) + (100% - 2 * var(--gutter) - 60px) / 8);
  right: calc(var(--gutter) + (100% - 2 * var(--gutter) - 60px) / 8);
  background: linear-gradient(90deg, var(--blue), var(--teal), var(--orange), var(--violet));
}
.stage { display: flex; flex-direction: column; align-items: center; }
.stage-dot {
  position: relative; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 18px;
  border-radius: 18px; background: var(--tone-ink); background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.28), transparent 60%);
  color: #fff; box-shadow: 0 12px 24px -10px var(--tone), 0 0 0 6px var(--bg);
}
.stage-dot .icon { width: 26px; height: 26px; }
.stage-card {
  flex: 1; width: 100%; padding: 22px 22px 24px; border-radius: var(--radius-lg); background: var(--surface);
  box-shadow: inset 0 3px 0 var(--tone), var(--shadow-sm), inset 0 0 0 1px var(--line);
}
.stage-step { display: block; margin-bottom: 2px; color: var(--tone-ink); font: 700 0.72rem/1.4 var(--sans); letter-spacing: 0.08em; text-align: center; text-transform: uppercase; }
.stage-card h3 { margin-bottom: 14px; text-align: center; }
@media (max-width: 1024px) {
  .pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .pipeline::before { display: none; }
}
@media (max-width: 600px) { .pipeline { grid-template-columns: minmax(0, 1fr); } }

/* ----------------------------------------------------------------- steps */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; padding: 0; list-style: none; counter-reset: step; }
.steps.steps-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps li {
  position: relative; counter-increment: step; padding: 26px 24px; border-radius: var(--radius-lg);
  background: var(--surface); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line);
}
.steps li::before {
  content: counter(step, decimal-leading-zero); display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 18px;
  border-radius: 14px; background: var(--tone-ink, var(--blue-ink)); background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.25), transparent 60%);
  color: #fff; font: 750 1rem/1 var(--mono); box-shadow: 0 10px 20px -10px var(--tone, var(--blue));
}
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 0.97rem; }
@media (max-width: 1024px) { .steps, .steps.steps-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps, .steps.steps-3 { grid-template-columns: minmax(0, 1fr); } }

.deliverables { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 18px; margin-top: clamp(36px, 5vw, 56px); }
.deliverables-title { color: var(--muted); font-weight: 650; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.deliverables .chips { justify-content: center; }
.chips li {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 11px; border-radius: 999px;
  background: var(--surface); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line);
  color: var(--ink-2); font-size: 0.9rem; font-weight: 550;
}
.chips li::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--tone, var(--blue)); }

/* ------------------------------------------------------------------- FAQ */
.faq-layout { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.faq-intro .lead { margin-top: 14px; }
.faq-intro .button { margin-top: 26px; }
@media (min-width: 900px) { .faq-intro { position: sticky; top: 110px; } }
@media (max-width: 899px) { .faq-layout { grid-template-columns: minmax(0, 1fr); } }
.faq { display: grid; gap: 12px; }
.faq details { border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); transition: box-shadow 0.2s; }
.faq details[open] { box-shadow: var(--shadow), inset 0 0 0 1.5px color-mix(in srgb, var(--tone, var(--blue)) 40%, var(--line)); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 20px 18px 22px;
  color: var(--ink); font-weight: 650; font-size: 1.04rem; line-height: 1.4; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; transition: transform 0.2s;
  background:
    linear-gradient(var(--tone-ink, var(--blue-ink)), var(--tone-ink, var(--blue-ink))) center / 12px 2.4px no-repeat,
    linear-gradient(var(--tone-ink, var(--blue-ink)), var(--tone-ink, var(--blue-ink))) center / 2.4px 12px no-repeat,
    var(--tone-soft, var(--blue-soft));
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--tone-ink, var(--blue-ink)); }
.faq-body { padding: 0 22px 20px; color: var(--muted); }

/* ------------------------------------------------------------- CTA card */
.cta-section { padding-block: clamp(8px, 2vw, 24px) var(--section); }
.cta-card {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px 56px; align-items: center;
  padding: clamp(32px, 5vw, 64px); border-radius: 28px; color: #fff;
  background: linear-gradient(120deg, #1e3a8a 0%, #6d28d9 55%, #be185d 100%);
  box-shadow: 0 40px 80px -36px rgba(109, 40, 217, 0.6);
}
.cta-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(32% 60% at 96% 100%, rgba(251, 191, 36, 0.24), transparent 70%), radial-gradient(35% 60% at 0% 0%, rgba(45, 212, 191, 0.28), transparent 70%);
}
.cta-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 36px 36px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.cta-card h2 { max-width: 22ch; color: #fff; }
.cta-card p { max-width: 52ch; margin-top: 14px; color: #efe7ff; }
.cta-actions { display: grid; gap: 12px; justify-items: start; }
.cta-card .cta-alt { margin: 0; color: #fff; font-size: 0.95rem; }
.cta-alt a { color: #fff; font-weight: 650; }
.cta-alt a:hover { color: #fde68a; }
@media (max-width: 820px) { .cta-card { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- footer */
.site-footer { position: relative; padding-block: 60px 36px; background: var(--night); color: var(--on-night-muted); font-size: 0.93rem; }
.site-footer::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--grad-spectrum); }
.site-footer a { color: var(--on-night); text-decoration: none; }
.site-footer a:hover { color: #67e8f9; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 0.8fr); gap: 36px 48px; padding-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.site-footer .brand, .site-footer .brand:hover { color: #fff; text-decoration: none; }
.site-footer .brand-vs { color: #c4b5fd; }
.footer-brand p { max-width: 46ch; margin-top: 16px; }
.footer-contact { display: grid; gap: 2px; }
.footer-heading { margin-bottom: 14px; color: #fff; font: 700 0.8rem/1.3 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; }
.footer-list { display: grid; gap: 8px; padding: 0; list-style: none; }
.footer-legal { display: grid; gap: 8px; padding-top: 24px; font-size: 0.82rem; }
.footer-legal p + p { margin-top: 0; }
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 460px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------------------ inner pages */
.breadcrumbs { margin-bottom: clamp(22px, 3vw, 34px); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; list-style: none; color: var(--muted); font-size: 0.88rem; }
.breadcrumbs li + li::before { content: "›"; margin-right: 6px; color: var(--line-strong); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--blue-ink); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--ink-2); font-weight: 600; }

.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: clamp(24px, 3vw, 36px) clamp(56px, 7vw, 96px);
  background: linear-gradient(180deg, color-mix(in srgb, var(--tone, var(--blue)) 9%, #fff) 0%, var(--bg) 100%);
}
.page-hero::before {
  content: ""; position: absolute; z-index: -1; top: -34%; right: -14%; width: min(760px, 90vw); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--tone, var(--blue)) 30%, transparent) 0%, transparent 65%);
}
.page-hero::after {
  content: ""; position: absolute; z-index: -1; bottom: -50%; left: -16%; width: min(600px, 80vw); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.16), transparent 65%);
}
.page-hero h1 { max-width: 20ch; }
.page-hero .lead { margin-top: 20px; }
.credential {
  display: flex; align-items: center; gap: 14px; max-width: 60ch; margin-top: 24px; padding: 14px 18px 14px 14px;
  border-radius: var(--radius); background: rgba(255, 255, 255, 0.75); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); font-size: 0.95rem;
}
.credential .icon-tile { width: 44px; height: 44px; border-radius: 13px; }
.credential .icon-tile .icon { width: 24px; height: 24px; }

.hero-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding-bottom: 28px; }
.hero-tile {
  display: grid; justify-items: start; gap: 4px; padding: 22px; border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.88); box-shadow: var(--shadow), inset 0 0 0 1px var(--line);
}
.hero-tile:nth-child(even) { transform: translateY(28px); }
.hero-tile .icon-tile { margin-bottom: 10px; }
.hero-tile strong { color: var(--ink); font: 700 1.05rem/1.25 var(--display); }
.hero-tile small { color: var(--tone-ink); font-size: 0.86rem; font-weight: 600; }
@media (max-width: 980px) { .hero-tiles { display: none; } }

.figure-panel {
  margin: 0; padding: 18px 18px 14px; border-radius: var(--radius-lg);
  background-color: #fff; background-image: linear-gradient(rgba(14, 26, 43, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(14, 26, 43, 0.035) 1px, transparent 1px);
  background-size: 22px 22px; box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--line);
}
.figure-panel figcaption {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 12px;
  margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.86rem; font-weight: 600;
}
.tag { padding: 2px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font: 700 0.68rem/1.6 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; }

.split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }
.panel { padding: clamp(24px, 3vw, 36px); }
.panel h2 { margin-bottom: 22px; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.aside-panel {
  padding: clamp(24px, 3vw, 32px); border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--tone-soft, var(--blue-soft)), #fff 80%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone, var(--blue)) 22%, var(--line));
}
.aside-panel h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.aside-panel h3 .icon-tile { width: 40px; height: 40px; border-radius: 12px; background: #fff; }
.aside-panel h3 .icon-tile .icon { width: 22px; height: 22px; }
.aside-panel .hint { margin-top: 16px; }

.spec-list { display: grid; gap: 10px; }
.spec-list div {
  display: grid; grid-template-columns: minmax(120px, 0.42fr) minmax(0, 1.58fr); gap: 6px 22px; align-items: baseline;
  padding: 16px 20px; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
}
.spec-list dt {
  justify-self: start; padding: 2px 10px; border-radius: 999px; background: var(--tone-soft, var(--blue-soft)); color: var(--tone-ink, var(--blue-ink));
  font: 700 0.72rem/1.6 var(--sans); letter-spacing: 0.06em; text-transform: uppercase;
}
.spec-list dd { color: var(--muted); }
@media (max-width: 560px) { .spec-list div { grid-template-columns: minmax(0, 1fr); } }

.related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.related a {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 20px 48px 20px 22px;
  border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line);
  color: var(--ink); font-weight: 650; text-decoration: none; transition: transform 0.2s, box-shadow 0.2s;
}
.related a::after { content: "→"; position: absolute; right: 20px; top: 50%; color: var(--tone-ink); transform: translateY(-50%); transition: transform 0.2s; }
.related a:hover { color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow), inset 0 0 0 1px color-mix(in srgb, var(--tone) 35%, var(--line)); }
.related a:hover::after { transform: translate(4px, -50%); }
.related-tag { padding: 2px 10px; border-radius: 999px; background: var(--tone-soft); color: var(--tone-ink); font: 700 0.68rem/1.6 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; }
.related-title { margin-bottom: 16px; font-size: 1.3rem; }
@media (max-width: 820px) { .related { grid-template-columns: minmax(0, 1fr); } }

.service-rows { display: grid; gap: 18px; }
.service-row {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1.3fr) minmax(0, 1fr); gap: 18px 34px; align-items: start;
  padding: clamp(22px, 3vw, 32px); border-radius: var(--radius-lg); background: var(--surface);
  box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-row::before { content: ""; position: absolute; left: 0; top: 24px; bottom: 24px; width: 4px; border-radius: 0 4px 4px 0; background: var(--tone); }
.service-row .icon-tile { width: 60px; height: 60px; border-radius: 18px; }
.service-row .icon-tile .icon { width: 32px; height: 32px; }
.service-row h2 { margin-bottom: 10px; font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.7rem); }
.service-row .card-more { padding-top: 14px; }
@media (max-width: 900px) {
  .service-row { grid-template-columns: auto minmax(0, 1fr); }
  .service-row .check-list { grid-column: 2; }
}
@media (max-width: 520px) {
  .service-row { grid-template-columns: minmax(0, 1fr); }
  .service-row .check-list { grid-column: 1; }
}

.code-card { margin: 0; overflow: hidden; border-radius: var(--radius-lg); background: #0f1b2d; color: #e2e8f0; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(14, 26, 43, 0.4); }
.code-card pre { margin: 0; padding: 18px 20px; overflow-x: auto; font: 0.85rem/1.75 var(--mono); tab-size: 4; }
.code-card code { font: inherit; } /* the UA stylesheet would otherwise reset <code> to the generic monospace font */
.code-card figcaption.code-card-bar { border-top: 1px solid rgba(255, 255, 255, 0.08); border-bottom: 0; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
.tok-c { color: #8391a7; font-style: italic; }
.tok-f { color: #7dd3fc; }
.tok-s { color: #fcd34d; }
.tok-n { color: #f9a8d4; }
.mini-table { width: 100%; border-collapse: collapse; font: 0.82rem/1.4 var(--mono); }
.mini-table caption { padding: 12px 20px 6px; color: var(--on-night-muted); font: 700 0.7rem/1.4 var(--sans); letter-spacing: 0.1em; text-align: left; text-transform: uppercase; }
.mini-table th, .mini-table td { padding: 8px 20px; border-top: 1px solid rgba(255, 255, 255, 0.07); text-align: left; }
.mini-table th { color: var(--on-night-muted); font-weight: 600; }
.mini-table .ok span { display: inline-block; padding: 0 9px; border-radius: 999px; background: rgba(34, 197, 94, 0.16); color: #86efac; font-weight: 700; }

/* ------------------------------------------------------------------ about */
.facts { display: grid; gap: 2px; padding: 10px; border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--line); }
.facts > div { position: relative; min-height: 64px; padding: 12px 14px 12px 70px; border-radius: 14px; transition: background-color 0.15s; }
.facts > div:hover { background: var(--surface-2); }
.facts .icon-tile { position: absolute; left: 14px; top: 50%; width: 42px; height: 42px; border-radius: 12px; transform: translateY(-50%); }
.facts .icon-tile .icon { width: 22px; height: 22px; }
.facts dt { color: var(--muted); font: 700 0.7rem/1.4 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; }
.facts dd { color: var(--ink); font-weight: 600; }
.recognition { display: grid; gap: 12px; padding: 0; list-style: none; }
.recognition li { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--radius); background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.recognition strong { display: block; color: var(--ink); line-height: 1.35; }
.recognition span.note { display: block; margin-top: 2px; color: var(--muted); font-size: 0.9rem; }
.tool-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding: 0; list-style: none; }
.tool-grid li { padding: 20px; border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); color: var(--muted); font-size: 0.95rem; line-height: 1.5; }
.tool-grid strong { display: block; width: fit-content; margin-bottom: 10px; padding: 2px 10px; border-radius: 999px; background: var(--tone-soft); color: var(--tone-ink); font: 700 0.84rem/1.6 var(--mono); }
.tool-grid.tool-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.panel .tool-grid li { box-shadow: inset 0 0 0 1px var(--line); }
@media (max-width: 1024px) { .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tool-grid, .tool-grid.tool-grid-2 { grid-template-columns: minmax(0, 1fr); } }
.skill-group .label { margin-bottom: 14px; }
.cred-card { padding: clamp(24px, 3vw, 32px); }
.cred-card h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.cred-card h3 .icon-tile { width: 42px; height: 42px; border-radius: 12px; }
.cred-card h3 .icon-tile .icon { width: 22px; height: 22px; }
.cred-list { padding: 0; list-style: none; }
.cred-list li { padding-block: 14px; border-top: 1px solid var(--line); }
.cred-list li:first-child { border-top: 0; }
.cred-list strong { display: block; color: var(--ink); font-weight: 650; }
.cred-list span { display: block; margin-top: 2px; color: var(--muted); font-size: 0.94rem; }
.skill-groups { display: grid; gap: 26px; }
.skill-group .label { margin-bottom: 12px; }
.quote { max-width: 860px; margin-inline: auto; text-align: center; }
.quote p { color: var(--ink); font: 500 clamp(1.35rem, 1.1rem + 1.2vw, 2rem)/1.45 var(--display); letter-spacing: -0.015em; }
.quote em { font-family: var(--serif); }

/* ---------------------------------------------------------------- contact */
.contact-page { position: relative; isolation: isolate; overflow: hidden; background: linear-gradient(180deg, #eaf0fd 0%, var(--bg) 480px); }
.contact-page::before {
  content: ""; position: absolute; z-index: -1; top: -260px; right: -200px; width: 720px; height: 720px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.2), transparent 65%);
}
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 80px); align-items: start; padding-block: clamp(24px, 3vw, 36px) var(--section); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.contact-intro h1 { max-width: 15ch; }
.contact-intro .lead { margin-top: 18px; }
.next-steps { display: grid; gap: 10px; margin-top: 30px; padding: 0; list-style: none; counter-reset: next; }
.next-steps li {
  counter-increment: next; display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 14px; align-items: center;
  padding: 12px 16px 12px 12px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.8); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2);
}
.next-steps li::before {
  content: counter(next); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px;
  background: var(--blue-ink); color: #fff; font: 750 0.95rem/1 var(--mono);
}
.next-steps li:nth-child(2)::before { background: var(--teal-ink); }
.next-steps li:nth-child(3)::before { background: var(--violet-ink); }
.direct-card { display: grid; gap: 10px; margin-top: 22px; padding: 20px 22px; border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); }
.direct-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.direct-email { color: var(--blue-ink); font: 650 1.02rem/1.4 var(--mono); }
.direct-card p { color: var(--muted); font-size: 0.94rem; }
.include-list { margin-top: 26px; }
.include-list .label { margin-bottom: 12px; }

.form-card { position: relative; overflow: hidden; padding: clamp(24px, 3.5vw, 40px); border-radius: 24px; background: #fff; box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--line); }
.form-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: var(--grad-vivid); }
.form { display: grid; gap: 22px; }
.form-title { font-size: 1.45rem; }
.form-subtitle { margin-top: -14px; color: var(--muted); font-size: 0.95rem; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: end; }
@media (max-width: 560px) { .field-row { grid-template-columns: minmax(0, 1fr); } }
.field > label, .fieldset legend { display: block; margin-bottom: 7px; padding: 0; color: var(--ink); font-weight: 650; font-size: 0.95rem; }
.optional { color: var(--muted); font-weight: 400; font-size: 0.85rem; }
.hint { margin-top: 6px; color: var(--muted); font-size: 0.86rem; }
.input {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--line-strong); border-radius: 12px;
  background: #fbfcfe; color: var(--ink); font: 400 1rem/1.4 var(--sans); transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
}
.input:hover { border-color: #9aa8bd; }
.input:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.18); }
.input[aria-invalid="true"] { border-color: var(--rose); box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.12); }
textarea.input { min-height: 170px; resize: vertical; line-height: 1.55; }
select.input {
  appearance: none; padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2355627a' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.checkbox-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(138px, 1fr)); gap: 8px; }
.check {
  display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: 12px;
  background: #fbfcfe; color: var(--ink-2); font-size: 0.95rem; line-height: 1.25; cursor: pointer; transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
}
.check:hover { border-color: #9aa8bd; }
.check input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--blue); }
.check:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); color: var(--blue-ink); font-weight: 600; box-shadow: 0 8px 16px -10px rgba(37, 99, 235, 0.6); }
.check:focus-within { outline: 3px solid #93b4fb; outline-offset: 1px; }
.check-plain { align-items: flex-start; min-height: 0; padding: 0; border: 0; background: none; }
.check-plain:hover { border: 0; }
.check-plain input { margin-top: 3px; }
.check-plain:has(input:checked) { background: none; box-shadow: none; color: var(--ink-2); font-weight: 400; }
.fieldset[aria-invalid="true"] .check { border-color: var(--rose); }
@media (max-width: 420px) {
  .form-card { padding: 24px 16px; }
  .checkbox-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .check { gap: 8px; padding: 8px 10px; font-size: 0.9rem; }
}
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-footer { display: grid; gap: 12px; justify-items: start; }
.form-note { color: var(--muted); font-size: 0.86rem; }
.form-status { padding: 14px 16px; border-radius: 12px; background: var(--teal-soft); box-shadow: inset 4px 0 0 var(--teal); color: var(--teal-ink); font-size: 0.95rem; }
.form-card .form-status { margin-top: 18px; }
.form-status[data-tone="error"] { background: #ffe4e8; box-shadow: inset 4px 0 0 var(--rose); color: #9f1239; }
.fallback { display: grid; gap: 12px; margin-top: 14px; padding: 20px; border: 1.5px dashed #9aa8bd; border-radius: 16px; background: #f8fafd; }
.fallback p { font-size: 0.95rem; }
.fallback textarea.input { min-height: 220px; font: 0.84rem/1.5 var(--mono); }
.fallback-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.success-panel { display: grid; gap: 12px; }
.success-panel h2 { font-size: 1.6rem; }

/* ------------------------------------------------------------ prose / 404 */
.prose-card { max-width: 860px; padding: clamp(24px, 4vw, 48px); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); }
.prose h2 { margin: 1.8em 0 0.5em; font-size: 1.3rem; }
.prose p { color: var(--muted); }
.prose p + p { margin-top: 0.9em; }
.updated { display: inline-block; padding: 3px 12px; border-radius: 999px; background: var(--blue-soft); color: var(--blue-ink); font-size: 0.86rem; font-weight: 600; }
.not-found { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(56px, 9vw, 120px); text-align: center; }
.not-found::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(40% 60% at 20% 20%, rgba(37, 99, 235, 0.16), transparent 70%), radial-gradient(40% 60% at 80% 80%, rgba(219, 39, 119, 0.14), transparent 70%);
}
.not-found-code {
  margin-bottom: 8px; background-image: var(--grad-text-light); -webkit-background-clip: text; background-clip: text; color: transparent;
  font: 800 clamp(5rem, 3rem + 10vw, 9.5rem)/1 var(--display); letter-spacing: -0.06em;
}
.not-found h1 { margin-inline: auto; }
.not-found .lead { margin: 18px auto 0; }
.not-found .actions { justify-content: center; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
@media print {
  .site-header, .cta-section, .site-footer nav, .skip-link { display: none; }
  body { background: #fff; }
}
