/* ==========================================================================
   Nandhika â€” homepage styles
   Layout concept: an editorial sketchbook on off-white paper. Wide open
   sections, ink-outlined illustrations, and pastel colour used in small,
   deliberate patches.

   1. Tokens
   2. Reset & base
   3. Layout utilities
   4. Components (buttons, pills, eyebrow)
   5. SVG illustration language
   6. Header & navigation
   7. Sections
   8. Footer & back-to-top
   9. Animations & reveal states
   10. Responsive breakpoints
   11. Reduced motion
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  /* Brand palette (from the brief) */
  --offwhite: #FBFBF8;
  --ink: #3c3c3c;
  --red: #D50607;           /* logo red */
  --blue: #4D8DFF;
  --green: #45B97C;
  --orange: #FF9B52;
  --yellow: #F6C453;
  --red-tint: #FDECEC;
  --lightblue: #EAF3FF;
  --lightgreen: #E8F7EF;

  /* Derived tones */
  --white: #FFFFFF;
  --peach: #FFF0E3;
  --butter: #FEF5DA;
  --rose: #FCEEF1;
  --red-ink: #B30406;       /* darker logo red: AA contrast for button fills, links and text */
  --green-ink: #1F7A4A;
  --muted: #5C5F66;
  --ink-soft: #3D3F45;
  --error: #C2361F;
  --error-tint: #FDF0EE;
  --line: #E9E7E1;
  --line-strong: #D8D5CC;
  --ill-skin: #ECEAE4;      /* line-art illustrations: light and mid greys */
  --ill-shade: #C9C7C0;
  --control-border: #85878D; /* form controls: 3.5:1 against the page and card (WCAG 1.4.11) */
  --scrim: rgba(32, 33, 36, 0.08);

  /* Type */
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-hand: Caveat, "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive;

  --fs-hero: clamp(2.5rem, 1.6rem + 3.8vw, 4.6rem);
  --fs-h2: clamp(2rem, 1.45rem + 2.1vw, 3.1rem);
  --fs-h3: 1.25rem;
  --fs-lead: clamp(1.05rem, 1rem + 0.3vw, 1.22rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;

  /* Space, shape, depth */
  --gutter: 24px;
  --max: 1200px;
  --section-y: clamp(72px, 6vw + 40px, 128px);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: light;
}

/* 2. Reset & base ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

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

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

h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
address { font-style: normal; }

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.025em; text-wrap: balance; }
p { text-wrap: pretty; }

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

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--white);
  font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

main:focus { outline: none; }

.hand {
  font-family: var(--font-hand);
  font-size: 1.3em;
  font-weight: 700;
  line-height: 1;
}

/* 3. Layout utilities ------------------------------------------------------ */
.container {
  width: min(var(--max), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.section { padding-block: var(--section-y); }

.section-head {
  display: grid;
  gap: 16px;
  max-width: 720px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section-head-center { margin-inline: auto; text-align: center; justify-items: center; }

.section-title { font-size: var(--fs-h2); font-weight: 800; }
.section-lead { font-size: var(--fs-lead); color: var(--muted); max-width: 60ch; }

/* 4. Components ------------------------------------------------------------ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 12px 0 0 var(--yellow), 24px 0 0 var(--green);
  margin-right: 24px;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1.5px solid transparent;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.25s var(--ease), background-color 0.2s, border-color 0.2s, color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-lg { min-height: 52px; padding: 14px 24px; font-size: 1rem; border-radius: 14px; }

.btn-primary {
  background: var(--red-ink);
  color: var(--white);
  border-color: var(--ink);
}

.btn-outline {
  background: var(--white);
  border-color: var(--ink);
  color: var(--ink);
}
.btn-outline:hover { background: var(--red-tint); }

.btn-ghost { color: var(--ink); }
.btn-ghost:hover { background: var(--scrim); transform: none; }

.btn-light {
  background: var(--white);
  color: var(--ink);
  border-color: var(--ink);
}

.btn-arrow {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s var(--ease);
}
.btn:hover .btn-arrow { transform: translateX(3px); }

/* Ripple created by JS on press */
.ripple {
  position: absolute;
  z-index: -1;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.25;
  transform: translate(-50%, -50%) scale(0);
  animation: ripple 0.6s var(--ease) forwards;
  pointer-events: none;
}

.pill {
  min-height: 44px;
  padding: 10px 18px;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  background: var(--white);
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease);
}
.pill:hover { border-color: var(--ink); transform: translateY(-1px); }
.pill[aria-selected="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

/* 5. SVG illustration language -------------------------------------------- */
.ill {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  fill: var(--white);
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.f-w { fill: var(--white); }
.f-k { fill: var(--ink); }
.f-r { fill: var(--red); }
.f-b { fill: var(--blue); }
.f-g { fill: var(--green); }
.f-o { fill: var(--orange); }
.f-y { fill: var(--yellow); }
.f-lr { fill: var(--red-tint); }
.f-lb { fill: var(--lightblue); }
.f-lg { fill: var(--lightgreen); }
.f-peach { fill: var(--peach); }
.f-butter { fill: var(--butter); }
.f-line { fill: var(--line-strong); }
.nf { fill: none; }
.ns { stroke: none; }
.th { stroke-width: 1.5; }
.w3 { stroke-width: 3; }
.w4 { stroke-width: 4; }
.w6 { stroke-width: 6; }
.s-r { stroke: var(--red); }
.s-b { stroke: var(--blue); }
.s-g { stroke: var(--green); }
.s-o { stroke: var(--orange); }
.s-y { stroke: var(--yellow); }
.s-w { stroke: var(--white); stroke-width: 2.2; }
.dash { stroke-dasharray: 3 6; }
.gear { stroke-width: 7; stroke-dasharray: 5 4.4; }
.cable { stroke: var(--green); stroke-width: 2.5; stroke-dasharray: 8 6; }
.blob-soft { opacity: 0.7; }

.ill text { stroke: none; }
.t-s { font: 500 10px var(--font-sans); fill: var(--muted); }
.t-m { font: 700 15px var(--font-sans); fill: var(--ink); }
.t-sm { font-size: 12px; }
.t-ink { fill: var(--ink); }
.t-bold { font-weight: 700; }
.t-green { fill: var(--green-ink); font-weight: 700; }
.ill .hand { font-family: var(--font-hand); font-size: 21px; font-weight: 700; fill: var(--ink); }
.ill .hand-sm { font-size: 16px; }

/* Character line-art: heavier ink, greyscale fills and one brand accent per
   scene. Sits on top of .ill, so the palette classes above still apply. */
.ill-line { stroke-width: 2.6; }
.ill-line .th { stroke-width: 1.8; }
.f-ink { fill: var(--ink); }
.f-skin { fill: var(--ill-skin); }
.f-shade { fill: var(--ill-shade); }
.f-paper { fill: var(--offwhite); }
.f-dots { fill: url(#pat-dots); stroke: none; }
.t-white { fill: var(--white); }

/* 6. Header & navigation --------------------------------------------------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 100;
  background: rgba(251, 251, 248, 0.82);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.3s, border-color 0.3s;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.95);
  border-color: transparent;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; flex-shrink: 0; border-radius: 8px; }
.brand-logo { display: block; width: auto; height: 40px; }
.footer-brand .brand-logo { height: 46px; }

.nav { display: flex; align-items: center; flex: 1; gap: 24px; }
.nav-links { display: flex; gap: 4px; margin-inline: auto; }
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--muted);
  transition: color 0.2s, background-color 0.2s;
}
.nav-link:hover { color: var(--ink); background: var(--scrim); }
.nav-link.active { color: var(--ink); }
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 3px;
  border-radius: 3px;
  background: var(--yellow);
}
.nav-actions { display: flex; align-items: center; gap: 8px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0 11px;
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  background: var(--white);
}
.nav-toggle-bar {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 7. Sections -------------------------------------------------------------- */

/* Hero */
.hero { padding-block: clamp(48px, 6vw, 96px) clamp(40px, 5vw, 72px); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(32px, 4vw, 64px);
}
.hero-copy { display: grid; gap: 24px; min-width: 0; }
.hero-title { font-size: var(--fs-hero); font-weight: 800; letter-spacing: -0.04em; line-height: 1.04; }
.hero-lead { font-size: var(--fs-lead); color: var(--muted); max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 4px; }
.hero-note { color: var(--muted); font-size: var(--fs-small); }
.hero-note .hand { color: var(--red-ink); font-size: 1.45em; }
.hero-art { min-width: 0; }
.hero-ill { max-width: 640px; margin-inline: auto; }

.scribble { position: relative; display: inline-block; white-space: nowrap; isolation: isolate; }
.scribble-line {
  position: absolute;
  left: -2%;
  bottom: -0.12em;
  width: 104%;
  height: 0.34em;
  overflow: visible;
  fill: none;
  stroke: var(--yellow);
  stroke-width: 5;
  stroke-linecap: round;
  z-index: -1;
}
.scribble-line path { stroke-dasharray: 1; stroke-dashoffset: 0; animation: draw 1.1s 0.4s var(--ease) both; }

/* Trust strip */
.trust { padding-block: 8px clamp(48px, 5vw, 72px); }
.trust-inner {
  display: grid;
  gap: 24px;
  justify-items: center;
  padding: 28px clamp(20px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
}
.trust-title { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem); font-weight: 700; text-align: center; }
.trust-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
}
.trust-list li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 0.95rem;
}
.trust-icon { width: 36px; height: 36px; flex-shrink: 0; }

/* Solutions */
.sol-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.sol-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.3s;
}
.sol-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
}
.sol-art {
  padding: 24px 22px 16px;
  background: var(--tint);
  border-bottom: 1px solid var(--line);
}
.sol-art .ill { transition: transform 0.5s var(--ease); }
.sol-card:hover .sol-art .ill { transform: scale(1.03) rotate(-0.6deg); }
.sol-body { display: grid; gap: 10px; padding: 22px 24px 24px; align-content: start; flex: 1; }
.sol-title { font-size: var(--fs-h3); font-weight: 700; }
.sol-body p { color: var(--muted); }
.sol-link {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin-top: 4px;
  padding: 0;
  border: 0;
  background: none;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 2px solid var(--accent);
  border-radius: 0;
}
.sol-link span { transition: transform 0.25s var(--ease); }
.sol-link:hover span { transform: translateX(4px); }

.sol-card-wide { grid-column: 1 / -1; flex-direction: row; }
.sol-card-wide .sol-art { flex: 1.6; border-bottom: 0; border-right: 1px solid var(--line); display: grid; place-items: center; }
.sol-card-wide .sol-body { flex: 1; align-content: center; padding: 32px; }
.sol-card-wide .sol-title { font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.75rem); }

/* Explorer */
.explorer-section { background: var(--white); border-block: 1px solid var(--line); }
.explorer { display: grid; gap: 32px; }
.explorer-tabs {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.explorer-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
  padding: clamp(20px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--offwhite);
}
.explorer-panel:focus-visible { outline-offset: 4px; border-radius: var(--radius-lg); }
.explorer-visual {
  min-width: 0;
  padding: clamp(16px, 3vw, 32px);
  border-radius: var(--radius);
  background: var(--tint);
  border: 1px solid var(--line);
  transition: background-color 0.4s;
}
.explorer-copy { display: grid; gap: 14px; justify-items: start; min-width: 0; }
.explorer-kicker { font-family: var(--font-hand); font-weight: 700; font-size: 1.5rem; line-height: 1; color: var(--red-ink); }
.explorer-title { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); font-weight: 800; }
.explorer-desc { color: var(--muted); font-size: 1.05rem; }
.feature-list { display: grid; gap: 10px; margin-block: 6px 10px; }
.feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}
.feature-list li::before {
  content: "";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--ink);
  border-radius: 7px;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6 11.5l3.2 3.2L16 8' fill='none' stroke='%23202124' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.explorer-visual,
.explorer-copy > * { transition: opacity 0.25s var(--ease), transform 0.35s var(--ease); }
.explorer-panel.is-switching .explorer-visual { opacity: 0; transform: scale(0.97); }
.explorer-panel.is-switching .explorer-copy > * { opacity: 0; transform: translateY(10px); }

/* Split section */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
}
.split-art { min-width: 0; }
.split-copy { display: grid; gap: 32px; justify-items: start; min-width: 0; }
.split-copy header { display: grid; gap: 16px; }
.steps { display: grid; gap: 0; width: 100%; border-top: 1px solid var(--line); }
.step {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px;
  padding-block: 18px;
  border-bottom: 1px solid var(--line);
}
.step-num { font-family: var(--font-hand); font-size: 2rem; font-weight: 700; line-height: 1; color: var(--red-ink); }
.step-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 2px; }
.step p { color: var(--muted); }

/* Workflow */
.workflow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 28px;
  counter-reset: wf;
}
.wf-step {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 10px;
  text-align: center;
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transition-delay: calc(var(--i) * 110ms);
}
.wf-icon {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  padding: 16px;
  border: 1.5px solid var(--ink);
  border-radius: 30px 34px 28px 36px / 34px 28px 36px 30px;
  background: var(--tint);
  transition: transform 0.3s var(--ease);
}
.wf-step:hover .wf-icon { transform: translateY(-4px) rotate(-3deg); }
.wf-title { font-size: 1rem; font-weight: 700; }
.wf-text { font-size: var(--fs-small); color: var(--muted); }
.wf-arrow {
  position: absolute;
  top: 36px;
  right: -42px;
  width: 56px;
  height: 24px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}
.wf-arrow path {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.6s var(--ease);
  transition-delay: calc(var(--i) * 110ms + 250ms);
}
.workflow.is-pending .wf-step { opacity: 0; transform: translateY(18px); }
.workflow.is-pending .wf-arrow path { stroke-dashoffset: 1; }
.workflow.is-animated .wf-icon { animation: bob 4s ease-in-out infinite; animation-delay: calc(var(--i) * -0.5s); }

/* Why choose us */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.why-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  column-gap: 18px;
  row-gap: 4px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--tint);
  border: 1px solid transparent;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.why-card:hover { transform: translateY(-4px); border-color: var(--ink); }
.why-icon { grid-row: 1 / span 2; width: 56px; height: 56px; }
.why-card h3 { font-size: 1.1rem; font-weight: 700; align-self: end; }
.why-card p { color: var(--muted); font-size: 0.95rem; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(40px, 5vw, 64px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  overflow: hidden;
}
.stat {
  display: flex;
  flex-direction: column-reverse;
  gap: 4px;
  padding: 24px 28px;
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: 0; }
.stat dt { color: var(--muted); font-size: var(--fs-small); }
.stat dd { font-size: clamp(2rem, 1.6rem + 1.4vw, 2.8rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }

/* Ecosystem */
.eco-section { background: var(--white); border-block: 1px solid var(--line); }
.eco-wrap {
  padding: clamp(12px, 3vw, 40px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 50% 50%, var(--red-tint) 0, transparent 55%),
    var(--offwhite);
  border: 1px solid var(--line);
}
.eco-svg { max-width: 920px; margin-inline: auto; }
.eco-line { fill: none; stroke: var(--line-strong); stroke-width: 1.6; stroke-dasharray: none; transition: stroke 0.4s, stroke-width 0.4s; }
.eco-line.is-pulse { stroke: var(--node-color, var(--red)); stroke-width: 2.6; stroke-dasharray: 6 7; animation: dash-flow 1s linear infinite; }
.eco-node rect { fill: var(--white); stroke: var(--ink); stroke-width: 1.5; transition: fill 0.4s; }
.eco-node.is-pulse rect { fill: var(--node-tint, var(--red-tint)); }
.eco-node .eco-dot { fill: var(--node-color); stroke: var(--ink); stroke-width: 1.5; }
.eco-node text { font: 600 15px var(--font-sans); fill: var(--ink); stroke: none; }
.eco-center rect { fill: var(--ink); stroke: var(--ink); }
.eco-center text { font: 800 18px var(--font-sans); fill: var(--white); stroke: none; }
.eco-center .eco-sub { font: 700 15px var(--font-hand); fill: var(--yellow); }
.eco-spark { fill: var(--node-color, var(--red)); stroke: var(--ink); stroke-width: 1.5; }

/* Testimonials */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.testi-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 20px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  transition: transform 0.3s var(--ease);
}
.testi-card:hover { transform: translateY(-4px); }
.quote-mark { width: 44px; height: 36px; }
.testi-card blockquote p { font-size: 1.08rem; line-height: 1.6; }
.testi-card figcaption {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px dashed var(--line-strong);
}
.testi-avatar { width: 52px; height: 52px; flex-shrink: 0; }
.testi-card strong { display: block; font-weight: 700; }
.testi-co { display: block; color: var(--muted); font-size: var(--fs-small); }

/* CTA */
.cta {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(32px, 5vw, 72px);
  border: 1.5px solid var(--ink);
  border-radius: 36px;
  background: var(--red-tint);
  overflow: hidden;
  isolation: isolate;
}
.cta-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.cta-blob {
  position: absolute;
  display: block;
  border-radius: 46% 54% 60% 40% / 50% 42% 58% 50%;
  transition: transform 0.6s var(--ease);
}
.cta-blob-1 { width: 280px; height: 260px; left: -80px; bottom: -110px; background: var(--yellow); opacity: 0.55; }
.cta-blob-2 { width: 220px; height: 200px; right: 30%; top: -110px; background: var(--lightblue); }
.cta-blob-3 { width: 360px; height: 320px; right: -120px; bottom: -150px; background: var(--lightgreen); }
.cta-blob-4 { width: 90px; height: 90px; left: 44%; bottom: 24px; background: var(--orange); opacity: 0.35; }
.cta-copy { display: grid; gap: 20px; justify-items: start; min-width: 0; }
.cta-title { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.3rem); font-weight: 800; letter-spacing: -0.035em; }
.cta-text { font-size: var(--fs-lead); color: #3D3F45; max-width: 52ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 6px; }
.cta-art { min-width: 0; transition: transform 0.6s var(--ease); }

/* 8. Footer & back-to-top -------------------------------------------------- */
.site-footer { padding-block: 72px 32px; border-top: 1px solid var(--line); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.8fr 1.1fr;
  gap: 40px;
}
.footer-brand { display: grid; gap: 16px; align-content: start; }
.footer-brand p { color: var(--muted); max-width: 34ch; }
.footer-title { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.footer-col ul { display: grid; gap: 4px; }
.footer-col li { color: var(--muted); font-size: 0.95rem; }
.footer-col a { display: inline-block; padding-block: 4px; color: var(--ink); transition: color 0.2s; }
.footer-col a:hover { color: var(--red-ink); }
.social { display: flex !important; gap: 8px !important; margin-top: 16px; }
.social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  background: var(--white);
  transition: transform 0.25s var(--ease), background-color 0.2s;
}
.social a:hover { transform: translateY(-2px); background: var(--red-tint); }
.social svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--fs-small);
}
.footer-owner { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; transition: color 0.2s, text-decoration-color 0.2s; }
.footer-owner:hover { color: var(--red-ink); text-decoration-color: currentColor; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-legal a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; transition: color 0.2s; }
.footer-legal a:hover, .footer-legal a[aria-current="page"] { color: var(--ink); }

/* Legal pages (terms.html, privacy.html) ---------------------------------- */
.legal-hero {
  padding-block: clamp(40px, 5vw, 80px) clamp(32px, 4vw, 56px);
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.legal-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 240px);
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
}
.legal-hero-copy { display: grid; gap: 18px; min-width: 0; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: var(--fs-small); color: var(--muted); }
.breadcrumb a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.breadcrumb a:hover { color: var(--ink); }
.legal-title { font-size: clamp(2.3rem, 1.6rem + 2.8vw, 3.8rem); font-weight: 800; letter-spacing: -0.04em; }
.legal-intro { font-size: var(--fs-lead); color: var(--muted); max-width: 62ch; }
.legal-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: var(--fs-small); color: var(--muted); }
.legal-meta strong { color: var(--ink); font-weight: 600; }
.legal-meta a { color: var(--red-ink); font-weight: 600; }
.legal-hero-art { min-width: 0; }

.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 250px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(32px, 5vw, 80px);
  padding-block: clamp(40px, 5vw, 72px) clamp(64px, 7vw, 112px);
}
.legal-toc {
  position: sticky;
  top: calc(var(--header-h) + 24px + env(safe-area-inset-top, 0px));
  max-height: calc(100vh - var(--header-h) - 48px);
  overflow-y: auto;
  padding-right: 4px;
}
.legal-toc-title { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.toc-list { display: grid; counter-reset: toc; }
.toc-list a {
  display: flex;
  gap: 10px;
  padding: 7px 12px;
  border-left: 2px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}
.toc-list a::before { counter-increment: toc; content: counter(toc); min-width: 1.2em; font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 600; }
.toc-list a:hover { color: var(--ink); border-color: var(--ink); }
.toc-list a.is-active { color: var(--ink); font-weight: 600; border-color: var(--red); background: var(--red-tint); border-radius: 0 8px 8px 0; }
.toc-list a.is-active::before { color: var(--red-ink); }

.legal-content { display: grid; gap: 0; max-width: 74ch; min-width: 0; }
.legal-content section {
  display: grid;
  gap: 12px;
  padding-block: 28px;
  border-bottom: 1px dashed var(--line-strong);
}
.legal-content section:last-child { border-bottom: 0; }
.legal-content h2 { display: flex; align-items: baseline; gap: 12px; font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem); font-weight: 700; }
.legal-num { flex-shrink: 0; min-width: 1.2em; font-family: var(--font-hand); font-size: 1.6em; font-weight: 700; line-height: 0.8; color: var(--red-ink); }
.legal-content h3 { font-size: 1.02rem; font-weight: 700; margin-top: 6px; }
.legal-content p, .legal-content li { color: var(--ink-soft); }
.legal-content ul { display: grid; gap: 8px; padding-left: 1.3rem; list-style: none; }
.legal-content ul li { position: relative; }
.legal-content ul li::before {
  content: "";
  position: absolute;
  left: -1.1rem;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  background: var(--yellow);
}
.legal-content a { color: var(--red-ink); text-decoration: underline; text-underline-offset: 3px; }
.legal-content strong { color: var(--ink); font-weight: 600; }

.legal-summary {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
  padding: 22px 24px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  background: var(--red-tint);
}
.legal-summary-label { font-family: var(--font-hand); font-size: 1.6rem; font-weight: 700; line-height: 1; color: var(--red-ink); }
.legal-summary ul li::before { background: var(--red); }

.legal-contact {
  display: grid;
  gap: 4px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.legal-contact p { overflow-wrap: anywhere; }

/* Contact page ------------------------------------------------------------ */
.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;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(24px, 4vw, 48px);
  padding-block: clamp(40px, 5vw, 72px) clamp(64px, 7vw, 112px);
}
.contact-card {
  min-width: 0;
  padding: clamp(22px, 3.5vw, 44px);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-lg);
  background: var(--white);
}
.contact-card-title { font-size: clamp(1.5rem, 1.25rem + 0.9vw, 2rem); font-weight: 800; }
.contact-card-title:focus { outline: none; }
.contact-card-lead { margin-top: 6px; color: var(--muted); }
.req { color: var(--error); font-weight: 700; }

.contact-form { display: grid; gap: 22px; margin-top: 28px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.field { display: grid; gap: 8px; align-content: start; min-width: 0; margin: 0; padding: 0; border: 0; }
.field > label, .field > legend { font-weight: 600; font-size: 0.95rem; padding: 0; }
.field > legend { margin-bottom: 8px; }

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1.5px solid var(--control-border);
  border-radius: 12px;
  background: var(--offwhite);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.2s, background-color 0.2s;
}
.contact-form textarea { resize: vertical; min-height: 150px; line-height: 1.55; }
.contact-form select {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 8l5 5 5-5' fill='none' stroke='%23202124' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
}
.contact-form ::placeholder { color: #6B6E75; } /* 4.9:1 */
.contact-form input:hover, .contact-form select:hover, .contact-form textarea:hover { border-color: var(--muted); }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  border-color: var(--red);
  background: var(--white);
  outline: 4px solid var(--red-tint);
}
.contact-form [aria-invalid="true"] { border-color: var(--error); background: var(--error-tint); }
.contact-form [aria-invalid="true"]:focus { outline-color: var(--error-tint); }

.field-hint { font-size: var(--fs-small); color: var(--muted); }
.field-error { font-size: var(--fs-small); font-weight: 600; color: var(--error); }
.field-error:empty { display: none; }
.field-meta { display: flex; justify-content: space-between; gap: 12px; }
.field-count { margin-left: auto; font-size: var(--fs-small); color: var(--muted); font-variant-numeric: tabular-nums; }
.field-count.is-near { color: var(--error); }

/* Selectable chips (checkboxes) */
.chip-group { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; cursor: pointer; }
.chip input, .segmented input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  background: var(--white);
  font-weight: 500;
  font-size: 0.93rem;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.chip span::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--control-border);
  border-radius: 5px;
  background: var(--white) center / 100% no-repeat;
  transition: background-color 0.2s, border-color 0.2s;
}
.chip:hover span { border-color: var(--ink); }
.chip input:checked + span { border-color: var(--ink); background: var(--red-tint); }
.chip input:checked + span::before {
  border-color: var(--ink);
  background-color: var(--red);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.chip input:focus-visible + span, .segmented input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }
fieldset[aria-invalid="true"] .chip span { border-color: var(--error); }

/* Segmented radio control */
.segmented {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  padding: 4px;
  border: 1.5px solid var(--line-strong);
  border-radius: 12px;
  background: var(--offwhite);
}
.segmented label { position: relative; cursor: pointer; }
.segmented span {
  display: grid;
  place-items: center;
  min-height: 40px;
  padding: 6px 8px;
  border-radius: 9px;
  font-weight: 500;
  font-size: 0.92rem;
  transition: background-color 0.2s, color 0.2s;
}
.segmented label:hover span { background: var(--scrim); }
.segmented input:checked + span { background: var(--ink); color: var(--white); }

/* Consent checkbox */
.check { display: flex; align-items: flex-start; gap: 12px; font-weight: 400 !important; font-size: 0.93rem; color: var(--ink-soft); cursor: pointer; }
.check input { flex-shrink: 0; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--red-ink); cursor: pointer; }
.check a { color: var(--red-ink); text-decoration: underline; text-underline-offset: 3px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-top: 4px; }
.form-note { color: var(--muted); font-size: var(--fs-small); }
.btn[aria-busy="true"] { pointer-events: none; opacity: 0.85; }
.btn[aria-busy="true"] .btn-arrow { animation: spin 0.9s linear infinite; }

.form-alert {
  margin-top: 20px;
  padding: 14px 16px;
  border: 1.5px solid var(--error);
  border-radius: 12px;
  background: var(--error-tint);
  color: var(--ink);
  font-size: 0.95rem;
}
.form-alert:focus { outline: none; }
.form-alert ul { margin-top: 6px; padding-left: 1.2rem; list-style: disc; }
.form-alert a { color: var(--error); font-weight: 600; text-decoration: underline; }

.form-success { display: grid; justify-items: start; gap: 14px; padding-block: 12px; }
.success-ill { width: 120px; height: auto; }
.form-preview-note {
  padding: 12px 14px;
  border: 1px dashed var(--orange);
  border-radius: 10px;
  background: var(--butter);
  font-size: var(--fs-small);
}
.form-preview-note code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.95em; }

/* Contact aside */
.contact-aside { display: grid; gap: 20px; min-width: 0; }
.info-card {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
}
.info-card-tint { background: var(--lightgreen); border-color: transparent; }
.info-title { font-size: 1.1rem; font-weight: 700; }
.info-list { display: grid; gap: 14px; }
.info-list li { display: flex; align-items: center; gap: 14px; }
.info-icon { flex-shrink: 0; width: 40px; height: 40px; padding: 4px; border-radius: 12px; background: var(--offwhite); border: 1px solid var(--line); }
.info-text { display: grid; min-width: 0; flex: 1; }
.info-label { font-size: 0.8rem; color: var(--muted); }
.info-value { font-weight: 600; overflow-wrap: anywhere; }
a.info-value:hover { color: var(--red-ink); }
.copy-btn {
  flex-shrink: 0;
  min-height: 36px;
  padding: 6px 12px;
  border: 1.5px solid var(--line-strong);
  border-radius: 10px;
  background: var(--white);
  font-size: 0.82rem;
  font-weight: 600;
  transition: border-color 0.2s, background-color 0.2s;
}
.copy-btn:hover { border-color: var(--ink); }
.copy-btn.is-copied { border-color: var(--green); background: var(--lightgreen); }
.next-steps { display: grid; gap: 16px; }
.next-steps li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; }
.next-num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--white);
  font-family: var(--font-hand);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
}
.next-steps strong { display: block; font-weight: 700; }
.next-steps p, .info-copy { color: var(--ink-soft); font-size: 0.93rem; }
.info-copy a { color: var(--red-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }

mark.todo {
  padding: 0 4px;
  border: 1px dashed var(--orange);
  border-radius: 4px;
  background: var(--butter);
  color: var(--ink);
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  background: var(--yellow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s var(--ease), visibility 0.3s;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { transform: translateY(-2px); }
.back-to-top svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* 9. Animations & reveal states ------------------------------------------- */
.float {
  transform-box: fill-box;
  animation: float 6s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
.spin { transform-box: fill-box; transform-origin: center; animation: spin 14s linear infinite; }
.twinkle { transform-box: fill-box; transform-origin: center; animation: twinkle 3s ease-in-out infinite; }
.pulse-wave { animation: wave 2.4s ease-in-out infinite; animation-delay: var(--d, 0s); }
.spark { fill: none; stroke-width: 2.4; transform-box: fill-box; transform-origin: center; animation: spark 2.8s ease-in-out infinite; animation-delay: var(--d, 0s); }
.cable { animation: dash-flow 1.8s linear infinite; }

.reveal {
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--delay, 0s);
}
.reveal.is-pending { opacity: 0; transform: translateY(28px); }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes twinkle { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(0.75) rotate(20deg); } }
@keyframes wave { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes spark { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.45; transform: scale(0.85); } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes dash-flow { to { stroke-dashoffset: -28; } }
@keyframes ripple { to { transform: translate(-50%, -50%) scale(30); opacity: 0; } }

/* 10. Responsive breakpoints ---------------------------------------------- */
@media (min-width: 1440px) {
  :root { --max: 1320px; }
}

@media (max-width: 1200px) {
  :root { --max: 1080px; }
  .workflow { gap: 18px; }
  .wf-icon { width: 84px; height: 84px; padding: 14px; }
  .wf-arrow { right: -34px; width: 46px; top: 30px; }
  .why-grid { gap: 16px; }
}

@media (max-width: 992px) {
  :root { --header-h: 64px; }

  /* Mobile navigation drawer */
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 16px var(--gutter) 24px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-links { flex-direction: column; margin: 0; gap: 2px; }
  .nav-link { width: 100%; font-size: 1.05rem; padding: 12px 14px; color: var(--ink); }
  .nav-link.active { background: var(--red-tint); }
  .nav-link.active::after { display: none; }
  .nav-actions { flex-direction: column-reverse; align-items: stretch; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
  .nav-actions .btn { width: 100%; }

  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { max-width: 680px; }
  .hero-ill { max-width: 560px; }

  .sol-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sol-card-wide { flex-direction: column; }
  .sol-card-wide .sol-art { border-right: 0; border-bottom: 1px solid var(--line); }
  .sol-card-wide .sol-body { padding: 22px 24px 24px; }

  .explorer-panel { grid-template-columns: minmax(0, 1fr); }
  .explorer-tabs { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding: 4px 4px 12px; margin-inline: -4px; scrollbar-width: thin; }

  .split { grid-template-columns: minmax(0, 1fr); }
  .split-art { max-width: 520px; width: 100%; margin-inline: auto; }

  /* Workflow becomes a vertical timeline */
  .workflow { grid-template-columns: minmax(0, 1fr); gap: 36px; max-width: 520px; margin-inline: auto; }
  .wf-step {
    grid-template-columns: 76px minmax(0, 1fr);
    grid-template-rows: auto auto;
    justify-items: start;
    align-items: center;
    column-gap: 20px;
    row-gap: 2px;
    text-align: left;
  }
  .wf-icon { grid-row: 1 / span 2; width: 76px; height: 76px; padding: 12px; border-radius: 24px 28px 22px 30px / 28px 22px 30px 24px; }
  .wf-title { align-self: end; }
  .wf-text { align-self: start; }
  .wf-arrow { top: auto; bottom: -34px; left: 22px; right: auto; width: 36px; height: 18px; transform: rotate(90deg); transform-origin: center; }

  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .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); }

  .testi-grid { grid-template-columns: minmax(0, 1fr); max-width: 640px; }

  .cta { grid-template-columns: minmax(0, 1fr); }
  .cta-art { max-width: 480px; width: 100%; justify-self: center; }

  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* Legal pages: contents box above the text instead of a sticky sidebar */
  .legal-hero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 160px); }
  .legal-layout { grid-template-columns: minmax(0, 1fr); }
  .legal-toc {
    position: static;
    max-height: none;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
  }
  .toc-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }

  /* Contact: form first, details below in two columns */
  .contact-layout { grid-template-columns: minmax(0, 1fr); }
  .contact-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-aside .info-card:first-child { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .contact-aside { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 576px) {
  .legal-hero-inner { grid-template-columns: minmax(0, 1fr); }
  .legal-hero-art { display: none; }
  .toc-list { grid-template-columns: minmax(0, 1fr); }
  .legal-summary { padding: 18px; }
  .form-actions .btn { width: 100%; }
  .info-card { padding: 20px; }
}

@media (max-width: 768px) {
  :root { --gutter: 20px; }
  .section-head { margin-bottom: 36px; }
  .trust-inner { justify-items: start; }
  .trust-title { text-align: left; }
  .trust-list { justify-content: flex-start; flex-direction: column; gap: 12px; }
  .why-card { padding: 20px; }
  .testi-card { padding: 24px; }
  .cta { border-radius: 28px; }
}

@media (max-width: 576px) {
  .sol-grid { grid-template-columns: minmax(0, 1fr); }
  .why-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-actions .btn,
  .cta-actions .btn { width: 100%; }
  .hero-actions, .cta-actions { width: 100%; }
  .stat { padding: 18px 20px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .back-to-top { right: 16px; }
}

@media (max-width: 480px) {
  :root { --gutter: 16px; --radius-lg: 22px; }
  .brand-logo { height: 34px; }
  .hero-title { letter-spacing: -0.035em; }
  .sol-art { padding: 18px 16px 12px; }
  .sol-body { padding: 18px 18px 20px; }
  .explorer-panel { padding: 14px; }
  .step { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; }
  .step-num { font-size: 1.7rem; }
  .cta { padding: 28px 20px; }
}

/* 11. Reduced motion ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .float, .spin, .twinkle, .pulse-wave, .spark, .cable,.workflow.is-animated .wf-icon { animation: none !important; }
  .reveal.is-pending, .workflow.is-pending .wf-step { opacity: 1; transform: none; }
  .workflow.is-pending .wf-arrow path { stroke-dashoffset: 0; }
  .scribble-line path { animation: none; stroke-dashoffset: 0; }
}
