/* ==========================================================================
   R&R Consulting — landing page styles
   Teal glass accents, restrained motion. Light by default; dark when the
   visitor's system asks for it (prefers-color-scheme).
   ========================================================================== */

/* Self-hosted fonts (no third-party requests). Variable fonts, Latin subset. */
@font-face {
  font-family: "Sora";
  src: url("../fonts/sora-latin.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  /* Light theme (default) */
  --bg: #f5f7f6;
  --bg-alt: #edf2f0;
  --ink-rgb: 11 20 18;          /* foreground tint used for lines and overlays */
  --accent-rgb: 14 156 122;     /* teal used for tints and borders */
  --surface: rgb(var(--ink-rgb) / 0.03);
  --surface-strong: rgb(var(--ink-rgb) / 0.05);
  --line: rgb(var(--ink-rgb) / 0.09);
  --line-strong: rgb(var(--ink-rgb) / 0.15);

  --text: #0b1412;
  --text-dim: #44514d;
  --text-muted: #67746f;
  --text-faint: #7f8b87;

  --accent: #0a7f63;            /* links and accent text */
  --accent-bright: #066a52;     /* hover */
  --icon: #0a7f63;

  --btn-bg: #0b1412;
  --btn-fg: #f4f7f6;
  --btn-bg-hover: #1b2a26;
  --btn-shadow-hover: 0 10px 30px -12px rgb(11 20 18 / 0.45);

  --nav-bg: rgb(255 255 255 / 0.62);
  --nav-bg-scrolled: rgb(255 255 255 / 0.86);
  --nav-shadow: 0 18px 40px -28px rgb(11 20 18 / 0.35);
  --nav-mobile-bg: rgb(255 255 255 / 0.96);

  --hero-base: linear-gradient(180deg, #f1f5f3 0%, #f5f7f6 70%);
  --glow-strong: rgb(14 156 122 / 0.12);
  --glow-soft: rgb(14 156 122 / 0.05);
  --grid-line: rgb(var(--ink-rgb) / 0.045);

  --card-bg: #ffffff;
  --card-shadow: 0 1px 2px rgb(11 20 18 / 0.04), 0 14px 34px -22px rgb(11 20 18 / 0.22);
  --pill-bg: #ffffff;
  --pill-shadow: 0 1px 2px rgb(11 20 18 / 0.05);
  --contact-bg: linear-gradient(160deg, #ffffff, #f7faf9 60%);

  --tick-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.3 2.3 4.7-5' fill='none' stroke='%230a7f63' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");

  /* hero flow diagram */
  --flow-in-fill: #ffffff;
  --flow-in-stroke: rgb(var(--ink-rgb) / 0.12);
  --flow-in-text: #5f6c68;
  --flow-out-fill: #e8f6f1;
  --flow-out-stroke: rgb(14 156 122 / 0.45);
  --flow-line-grey: #6a7773;
  --flow-line-teal: #0e9c7a;
  --flow-pulse-a: #d9694a;
  --flow-pulse-b: #d99a3d;
  --flow-pulse-c: #0e9c7a;
  --flow-pulse-out: #0e9c7a;
  --flow-alert: #d9694a;
  --flow-alert-fg: #c4583a;
  --flow-check: #0e9c7a;
  --flow-check-fg: #0a7f63;

  /* app mock-up */
  --mock-bg: #ffffff;
  --mock-panel: #f6f9f8;
  --mock-skel: rgb(var(--ink-rgb) / 0.08);
  --mock-shadow: 0 30px 60px -30px rgb(11 20 18 / 0.35), 0 2px 6px rgb(11 20 18 / 0.05);
  --amber: #a8620c;
  --amber-rgb: 217 154 61;

  --font-display: "Sora", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 22px;
  --radius-sm: 14px;
  --gutter: clamp(16px, 4vw, 32px);
  --maxw: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Dark theme.
   Used when the visitor's system prefers dark, unless they picked light with
   the theme switch (data-theme="light"), or whenever they picked dark
   (data-theme="dark"). The switch's choice is stored in the browser. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;

    --bg: #060908;
    --bg-alt: #080c0b;
    --ink-rgb: 255 255 255;
    --accent-rgb: 70 214 176;
    --surface: rgb(var(--ink-rgb) / 0.028);
    --line: rgb(var(--ink-rgb) / 0.08);
    --line-strong: rgb(var(--ink-rgb) / 0.14);

    --text: #eef3f1;
    --text-dim: #9aa6a2;
    --text-muted: #7f8a86;
    --text-faint: #65706c;

    --accent: #46d6b0;
    --accent-bright: #7af0d2;
    --icon: #7af0d2;

    --btn-bg: #f4f7f6;
    --btn-fg: #07100e;
    --btn-bg-hover: #ffffff;
    --btn-shadow-hover: 0 8px 32px -8px rgb(122 240 210 / 0.45);

    --nav-bg: rgb(10 14 13 / 0.55);
    --nav-bg-scrolled: rgb(8 12 11 / 0.82);
    --nav-shadow: 0 20px 40px -24px rgb(0 0 0 / 0.8);
    --nav-mobile-bg: rgb(8 12 11 / 0.94);

    --hero-base: linear-gradient(180deg, #050807 0%, #060908 60%, #060908 100%);
    --glow-strong: rgb(31 168 134 / 0.16);
    --glow-soft: rgb(70 214 176 / 0.06);
    --grid-line: rgb(var(--ink-rgb) / 0.025);

    --card-bg: linear-gradient(180deg, rgb(255 255 255 / 0.04), rgb(255 255 255 / 0.012));
    --card-shadow: none;
    --pill-bg: linear-gradient(180deg, rgb(255 255 255 / 0.05), rgb(255 255 255 / 0.015));
    --pill-shadow: inset 0 1px 0 rgb(255 255 255 / 0.06);
    --contact-bg: linear-gradient(160deg, rgb(255 255 255 / 0.05), rgb(255 255 255 / 0.01) 50%), #070b0a;

    --tick-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.3 2.3 4.7-5' fill='none' stroke='%237AF0D2' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");

    --flow-in-fill: #0c1110;
    --flow-in-stroke: rgb(255 255 255 / 0.11);
    --flow-in-text: #8f9a96;
    --flow-out-fill: #0b1c18;
    --flow-out-stroke: rgb(70 214 176 / 0.38);
    --flow-line-grey: #9aa6a2;
    --flow-line-teal: #46d6b0;
    --flow-pulse-a: #f1a487;
    --flow-pulse-b: #f1c487;
    --flow-pulse-c: #8af5da;
    --flow-pulse-out: #b5ffec;
    --flow-alert: #e58a68;
    --flow-alert-fg: #f1a487;
    --flow-check: #46d6b0;
    --flow-check-fg: #9bf7df;

    --mock-bg: #0b1110;
    --mock-panel: #0e1513;
    --mock-skel: rgb(255 255 255 / 0.08);
    --amber: #f1c487;
    --mock-shadow: 0 40px 80px -30px rgb(0 0 0 / 0.8), 0 0 0 1px rgb(255 255 255 / 0.02);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;

  --bg: #060908;
  --bg-alt: #080c0b;
  --ink-rgb: 255 255 255;
  --accent-rgb: 70 214 176;
  --surface: rgb(var(--ink-rgb) / 0.028);
  --line: rgb(var(--ink-rgb) / 0.08);
  --line-strong: rgb(var(--ink-rgb) / 0.14);

  --text: #eef3f1;
  --text-dim: #9aa6a2;
  --text-muted: #7f8a86;
  --text-faint: #65706c;

  --accent: #46d6b0;
  --accent-bright: #7af0d2;
  --icon: #7af0d2;

  --btn-bg: #f4f7f6;
  --btn-fg: #07100e;
  --btn-bg-hover: #ffffff;
  --btn-shadow-hover: 0 8px 32px -8px rgb(122 240 210 / 0.45);

  --nav-bg: rgb(10 14 13 / 0.55);
  --nav-bg-scrolled: rgb(8 12 11 / 0.82);
  --nav-shadow: 0 20px 40px -24px rgb(0 0 0 / 0.8);
  --nav-mobile-bg: rgb(8 12 11 / 0.94);

  --hero-base: linear-gradient(180deg, #050807 0%, #060908 60%, #060908 100%);
  --glow-strong: rgb(31 168 134 / 0.16);
  --glow-soft: rgb(70 214 176 / 0.06);
  --grid-line: rgb(var(--ink-rgb) / 0.025);

  --card-bg: linear-gradient(180deg, rgb(255 255 255 / 0.04), rgb(255 255 255 / 0.012));
  --card-shadow: none;
  --pill-bg: linear-gradient(180deg, rgb(255 255 255 / 0.05), rgb(255 255 255 / 0.015));
  --pill-shadow: inset 0 1px 0 rgb(255 255 255 / 0.06);
  --contact-bg: linear-gradient(160deg, rgb(255 255 255 / 0.05), rgb(255 255 255 / 0.01) 50%), #070b0a;

  --tick-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.3 2.3 4.7-5' fill='none' stroke='%237AF0D2' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");

  --flow-in-fill: #0c1110;
  --flow-in-stroke: rgb(255 255 255 / 0.11);
  --flow-in-text: #8f9a96;
  --flow-out-fill: #0b1c18;
  --flow-out-stroke: rgb(70 214 176 / 0.38);
  --flow-line-grey: #9aa6a2;
  --flow-line-teal: #46d6b0;
  --flow-pulse-a: #f1a487;
  --flow-pulse-b: #f1c487;
  --flow-pulse-c: #8af5da;
  --flow-pulse-out: #b5ffec;
  --flow-alert: #e58a68;
  --flow-alert-fg: #f1a487;
  --flow-check: #46d6b0;
  --flow-check-fg: #9bf7df;

  --mock-bg: #0b1110;
  --mock-panel: #0e1513;
  --mock-skel: rgb(255 255 255 / 0.08);
  --amber: #f1c487;
  --mock-shadow: 0 40px 80px -30px rgb(0 0 0 / 0.8), 0 0 0 1px rgb(255 255 255 / 0.02);
}

/* Show/hide helpers for theme-specific images and icons */
.only-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .only-light { display: none; }
  :root:not([data-theme="light"]) .only-dark { display: block; }
}
:root[data-theme="dark"] .only-light { display: none; }
:root[data-theme="dark"] .only-dark { display: block; }

/* ---------- Base ---------- */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

p { margin: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: rgb(var(--accent-rgb) / 0.3); }

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

.container {
  width: 100%;
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-weight: 500;
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

.muted { color: var(--text-muted); }

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 500 15px/1 var(--font-body);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease),
    color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--btn-bg);
  color: var(--btn-fg);
}
.btn--primary:hover {
  background: var(--btn-bg-hover);
  box-shadow: var(--btn-shadow-hover);
}

.btn--ghost {
  background: rgb(var(--ink-rgb) / 0.04);
  border-color: var(--line-strong);
  color: var(--text);
}
.btn--ghost:hover {
  background: rgb(var(--ink-rgb) / 0.08);
  border-color: rgb(var(--ink-rgb) / 0.24);
}

.btn--sm {
  min-height: 38px;
  padding: 0 18px;
  font-size: 14px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s, gap 0.25s var(--ease);
}
.link-arrow:hover { color: var(--accent-bright); gap: 10px; }

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  inset: 16px 0 auto;
  z-index: 50;
  padding: 0 var(--gutter);
  pointer-events: none;
}

.nav__bar,
.nav__mobile {
  pointer-events: auto;
  max-width: var(--maxw);
  margin: 0 auto;
}

.nav__bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  height: 64px;
  padding: 0 12px 0 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--nav-bg);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.nav.is-scrolled .nav__bar {
  background: var(--nav-bg-scrolled);
  border-color: var(--line-strong);
  box-shadow: var(--nav-shadow);
}

.nav__links {
  display: flex;
  gap: 30px;
  font-size: 14px;
  color: var(--text-dim);
}
.nav__links a,
.nav__text-link { transition: color 0.2s; }
.nav__links a:hover,
.nav__text-link:hover { color: var(--text); }

.nav__brand img { height: 30px; width: auto; }

.nav__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  font-size: 14px;
  color: var(--text-dim);
}

.nav__toggle {
  display: none;
  justify-self: end;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.nav__toggle span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 25px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* Light/dark theme switch */
.theme-toggle {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  transition: color 0.2s, background-color 0.2s, border-color 0.2s, transform 0.4s var(--ease);
}
.theme-toggle:hover {
  color: var(--text);
  background: var(--surface-strong);
  border-color: var(--line-strong);
}
.theme-toggle:active { transform: rotate(-20deg); }
.theme-toggle svg { width: 18px; height: 18px; }

/* phone-size cluster: theme switch + menu button */
.nav__tools { display: none; }

.nav__mobile {
  margin-top: 8px;
  padding: 12px;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: var(--nav-mobile-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: grid;
  gap: 2px;
}
.nav__mobile[hidden] { display: none; }
.nav__mobile a:not(.btn) {
  padding: 14px 14px;
  border-radius: 12px;
  color: var(--text-dim);
  font-size: 16px;
}
.nav__mobile a:not(.btn):hover { background: var(--surface-strong); color: var(--text); }
.nav__mobile .btn { margin-top: 8px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(136px, 17vh, 184px) 0 72px;
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 55% at 50% 78%, var(--glow-strong), transparent 70%),
    radial-gradient(40% 40% at 10% 0%, var(--glow-soft), transparent 70%),
    var(--hero-base);
}
.hero__bg::after {
  /* faint grid, masked to fade out */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(70% 60% at 70% 40%, #000 0%, transparent 75%);
          mask-image: radial-gradient(70% 60% at 70% 40%, #000 0%, transparent 75%);
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  align-items: end;
  gap: 36px 64px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 6px 14px;
  border: 1px solid rgb(var(--accent-rgb) / 0.28);
  border-radius: 999px;
  background: linear-gradient(90deg, rgb(var(--accent-rgb) / 0.1), rgb(var(--accent-rgb) / 0.02));
  color: var(--text);
  font: 500 13.5px/1 var(--font-body);
}
.badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgb(var(--accent-rgb) / 0.6);
  animation: pulse 2.4s infinite;
}
.badge__chip {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgb(var(--ink-rgb) / 0.06);
  border: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 12.5px;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgb(var(--accent-rgb) / 0.55); }
  70% { box-shadow: 0 0 0 8px rgb(var(--accent-rgb) / 0); }
  100% { box-shadow: 0 0 0 0 rgb(var(--accent-rgb) / 0); }
}

.hero__title {
  margin-top: 28px;
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.hero__title > span { display: block; }
.hero__title-muted { color: var(--text-muted); }

.hero__lead {
  max-width: 560px;
  font-size: clamp(16px, 1.4vw, 18px);
  color: var(--text-dim);
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 30px;
  margin-top: 30px;
}

/* Hero visual: challenges flow in, outcomes flow out */

.flow {
  position: relative;
  margin: clamp(44px, 6vh, 64px) 0 0;
}
.flow__svg {
  width: 100%;
  height: auto;
  overflow: visible;
}
.flow__svg--tall {
  display: none;
  max-width: 460px;
  margin: 0 auto;
}
.flow text {
  font-family: var(--font-body);
  font-weight: 500;
  dominant-baseline: central;
}
/* solid fills so lines passing behind a chip don't show through it */
.flow .chip-in { fill: var(--flow-in-fill); stroke: var(--flow-in-stroke); }
.flow .chip-in__t { fill: var(--flow-in-text); }
.flow .chip-out { fill: var(--flow-out-fill); stroke: var(--flow-out-stroke); }
.flow .ico-alert { fill: var(--flow-alert); fill-opacity: 0.14; stroke: var(--flow-alert); stroke-opacity: 0.7; }
.flow .ico-alert-fg { stroke: var(--flow-alert-fg); fill: var(--flow-alert-fg); }
.flow .ico-check { fill: var(--flow-check); fill-opacity: 0.18; stroke: var(--flow-check); stroke-opacity: 0.75; }
.flow .ico-check-fg { stroke: var(--flow-check-fg); }
.flow .st-grey { stop-color: var(--flow-line-grey); }
.flow .st-teal { stop-color: var(--flow-line-teal); }
.flow .st-pa { stop-color: var(--flow-pulse-a); }
.flow .st-pb { stop-color: var(--flow-pulse-b); }
.flow .st-pc { stop-color: var(--flow-pulse-c); }
.flow .chip-out__t { fill: var(--text); }
.flow .flow-cap { fill: var(--text-muted); font-size: 13px; }
.flow .flow-cap--mid { fill: var(--text-faint); font-size: 12px; }

.flow .lines-in path,
.flow .lines-out path,
.flow .pulses-in path,
.flow .pulses-out path { fill: none; stroke-linecap: round; }
.flow .lines-in path { stroke-width: 1.2; }
.flow .lines-out path { stroke-width: 1.4; }

/* small pulses of light travelling along the lines (pathLength = 100) */
.flow .pulses-in path,
.flow .pulses-out path {
  stroke-width: 2.2;
  stroke-dasharray: 4 96;
  stroke-dashoffset: 4;
  animation: flow-run 4.8s linear infinite;
  animation-delay: var(--d, 0s);
}
.flow .pulses-out path {
  stroke: var(--flow-pulse-out);
  animation-duration: 3.6s;
}

@keyframes flow-run {
  0% { stroke-dashoffset: 4; opacity: 0; }
  10% { opacity: 1; }
  85% { opacity: 1; }
  100% { stroke-dashoffset: -96; opacity: 0; }
}

/* challenge chips drift a little; outcomes hold still */
.flow .drift {
  animation: drift 5.5s ease-in-out infinite alternate;
  animation-delay: var(--d, 0s);
}
@keyframes drift {
  from { transform: translate(0, 0); }
  to { transform: translate(-3px, 4px); }
}

.flow .engine-glow {
  animation: engine-glow 4s ease-in-out infinite;
}
@keyframes engine-glow {
  50% { opacity: 0.6; }
}

/* Principles strip */

.principles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(48px, 7vh, 72px);
  border-top: 1px solid var(--line);
}
.principles li {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 26px 24px 0 0;
}
.principles li + li {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}
.principles strong {
  font: 500 15px/1.3 var(--font-display);
  color: var(--text);
  letter-spacing: -0.01em;
}
.principles span {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}

/* ---------- Sections ---------- */

.section {
  position: relative;
  padding: clamp(88px, 12vw, 140px) 0;
}
.section--alt {
  background:
    radial-gradient(50% 60% at 0% 0%, rgb(var(--accent-rgb) / 0.05), transparent 70%),
    var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section__head {
  display: grid;
  gap: 18px;
  max-width: 780px;
  margin-bottom: clamp(44px, 6vw, 64px);
}

/* Section label: a small glass pill carrying a mini logo mark */
.eyebrow {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 9px;
  padding: 7px 15px 7px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--pill-bg);
  box-shadow: var(--pill-shadow);
  font: 500 13.5px/1 var(--font-body);
  color: var(--text);
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 15px;
  height: 15px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M22.6 9.4A16 16 0 1 0 38.6 25.4' fill='none' stroke='%239aa6a2' stroke-width='4.6' stroke-linecap='round'/%3E%3Cpath d='M26.6 21.4V5.4A16 16 0 0 1 42.6 21.4Z' fill='%2346D6B0'/%3E%3C/svg%3E") center / contain no-repeat;
}

.section__title {
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.section__lead {
  max-width: 620px;
  font-size: 17px;
  color: var(--text-dim);
}

/* Cards */

.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease), background-color 0.35s;
}
.card::before {
  /* soft teal glow that wakes on hover */
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(60% 50% at 100% 0%, rgb(var(--accent-rgb) / 0.12), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.card:hover { border-color: rgb(var(--accent-rgb) / 0.3); transform: translateY(-3px); }
.card:hover::before { opacity: 1; }

/* Services */

.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.service {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(28px, 3.4vw, 44px);
}
.service__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.service__num {
  font: 500 13px/1 var(--font-display);
  letter-spacing: 0.1em;
  color: var(--text-faint);
}
.service__icon,
.sector__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid rgb(var(--accent-rgb) / 0.25);
  background: linear-gradient(140deg, rgb(var(--accent-rgb) / 0.16), rgb(var(--accent-rgb) / 0.03));
  color: var(--icon);
}
.service__icon svg,
.sector__icon svg { width: 24px; height: 24px; }

.service__title {
  font-size: clamp(24px, 2.4vw, 30px);
  letter-spacing: -0.02em;
}
.service__desc { color: var(--text-dim); max-width: 520px; }

.ticks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 24px;
  margin: 10px 0 14px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.ticks li {
  position: relative;
  padding-left: 26px;
  color: var(--text);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.32em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--tick-icon) center / 100% no-repeat, rgb(var(--accent-rgb) / 0.12);
}
.service .link-arrow { margin-top: auto; }

/* Sectors */

.sectors {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.sector {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 26px 30px;
}
.sector__icon { margin-bottom: 22px; }
.sector__title {
  font-size: 22px;
  letter-spacing: -0.02em;
}
.sector__desc {
  color: var(--text-dim);
  font-size: 15px;
  min-height: 3.2em;
}

.dashes {
  display: grid;
  gap: 10px;
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--text-muted);
}
.dashes li {
  position: relative;
  padding-left: 18px;
}
.dashes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 8px;
  height: 1px;
  background: var(--accent);
}

/* App development */

.apps {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.apps .section__head { margin-bottom: 30px; }

.apps__how {
  display: grid;
  gap: 12px;
}
.apps__how li {
  position: relative;
  padding-left: 30px;
  color: var(--text);
}
.apps__how li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.22em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--tick-icon) center / 100% no-repeat, rgb(var(--accent-rgb) / 0.12);
}

.apps__ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
  margin-top: 34px;
}

.apps__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: clamp(56px, 8vw, 96px);
}
.cap {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 28px 26px 30px;
}
.cap .sector__icon { margin-bottom: 14px; }
.cap__title {
  font-size: 20px;
  letter-spacing: -0.02em;
}
.cap__desc {
  font-size: 15px;
  color: var(--text-dim);
}

/* App mock-up: everything is sized in em, and 1em scales with the visual's width */

.apps__visual { container-type: inline-size; }

.mock {
  position: relative;
  width: 100%;
  aspect-ratio: 58 / 47;
  font-size: 10px;
  font-size: calc(100cqw / 58);
  font-family: var(--font-body);
  color: var(--text);
}
.mock em,
.mock b {
  display: block;
  width: var(--w, 60%);
  height: 0.6em;
  border-radius: 1em;
  background: var(--mock-skel);
}

.mock__window {
  position: absolute;
  left: 0;
  top: 3.2em;
  width: 48em;
  height: 38em;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-strong);
  border-radius: 1.4em;
  background: var(--mock-bg);
  box-shadow: var(--mock-shadow);
  overflow: hidden;
}
.mock__bar {
  display: flex;
  align-items: center;
  gap: 0.6em;
  height: 3.2em;
  padding: 0 1.2em;
  border-bottom: 1px solid var(--line);
}
.mock__bar i {
  width: 0.8em;
  height: 0.8em;
  border-radius: 50%;
  background: var(--mock-skel);
}
.mock__url {
  margin: 0 auto;
  padding: 0.45em 2.4em;
  border: 1px solid var(--line);
  border-radius: 1em;
  background: var(--mock-panel);
  font-size: 1.05em;
  color: var(--text-muted);
}
.mock__body {
  flex: 1;
  display: grid;
  grid-template-columns: 10em 1fr;
  min-height: 0;
}
.mock__side {
  display: grid;
  align-content: start;
  gap: 0.5em;
  padding: 1.4em 0.9em;
  border-right: 1px solid var(--line);
  background: var(--mock-panel);
}
.mock__brand {
  width: 2.2em;
  height: 2.2em;
  margin: 0 0 1em 0.5em;
  border-radius: 0.7em;
  background: linear-gradient(135deg, rgb(var(--accent-rgb) / 0.9), rgb(var(--accent-rgb) / 0.45));
}
.mock__nav {
  display: flex;
  align-items: center;
  gap: 0.7em;
  padding: 0.6em 0.6em;
  border-radius: 0.7em;
}
.mock__nav b {
  flex: none;
  width: 1.1em;
  height: 1.1em;
  border-radius: 0.35em;
}
.mock__nav.is-active { background: rgb(var(--accent-rgb) / 0.12); }
.mock__nav.is-active b,
.mock__nav.is-active em { background: rgb(var(--accent-rgb) / 0.55); }

.mock__main {
  display: grid;
  align-content: start;
  gap: 1.3em;
  padding: 1.6em 8em 1.6em 1.8em; /* keep content clear of the phone */
}
.mock__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.mock__head strong {
  display: block;
  margin-bottom: 0.45em;
  font: 600 1.5em/1.2 var(--font-display);
  letter-spacing: -0.02em;
}
.mock__cta {
  padding: 0.7em 1.1em;
  border-radius: 1em;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 1.05em;
  font-weight: 500;
}
.mock__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9em;
}
.mock__stat {
  display: grid;
  gap: 0.6em;
  padding: 1em;
  border: 1px solid var(--line);
  border-radius: 1em;
}
.mock__stat b {
  height: 1.2em;
  background: rgb(var(--ink-rgb) / 0.14);
}
.mock__trend {
  width: 3.2em;
  height: 0.9em;
  border-radius: 1em;
  background: rgb(var(--accent-rgb) / 0.22);
}
.mock__chart {
  height: 8.6em;
  padding: 0.8em 0.6em 0;
  border: 1px solid var(--line);
  border-radius: 1em;
  overflow: hidden;
}
.mock__chart svg { width: 100%; height: 100%; }
.mock__stop { stop-color: var(--flow-line-teal); }
.mock__line {
  stroke: var(--flow-line-teal);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}
.mock__rows { display: grid; }
.mock__row {
  display: flex;
  align-items: center;
  gap: 0.9em;
  padding: 0.75em 0;
  border-top: 1px solid var(--line);
}
.mock__row i,
.mock__item i {
  flex: none;
  width: 1.8em;
  height: 1.8em;
  border-radius: 50%;
  background: var(--mock-skel);
}
.mock__row div,
.mock__item div {
  flex: 1;
  display: grid;
  gap: 0.45em;
}
.mock__status {
  padding: 0.4em 0.8em;
  border-radius: 1em;
  font-size: 0.95em;
  font-weight: 500;
  white-space: nowrap;
}
.mock__status--ok { background: rgb(var(--accent-rgb) / 0.14); color: var(--accent); }
.mock__status--wait { background: rgb(var(--amber-rgb) / 0.16); color: var(--amber); }

.mock__phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 17em;
  height: 34em;
  padding: 0.7em;
  border: 1px solid var(--line-strong);
  border-radius: 2.6em;
  background: var(--mock-bg);
  box-shadow: var(--mock-shadow);
  animation: mock-float 8s ease-in-out infinite;
}
.mock__screen {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1em;
  height: 100%;
  padding: 2.8em 1.2em 1.2em;
  border-radius: 2em;
  background: var(--mock-panel);
}
.mock__screen::before {
  /* speaker / camera notch */
  content: "";
  position: absolute;
  top: 0.9em;
  left: 50%;
  width: 4.6em;
  height: 1.2em;
  border-radius: 1em;
  background: rgb(var(--ink-rgb) / 0.12);
  transform: translateX(-50%);
}
.mock__ptop {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mock__ptop strong { font: 600 1.45em/1 var(--font-display); letter-spacing: -0.02em; }
.mock__ptop i {
  width: 2em;
  height: 2em;
  border-radius: 50%;
  background: var(--mock-skel);
}
.mock__ring {
  display: flex;
  align-items: center;
  gap: 1em;
  padding: 1em;
  border: 1px solid var(--line);
  border-radius: 1.2em;
  background: var(--mock-bg);
}
.mock__ring svg { flex: none; width: 4.2em; height: 4.2em; }
.mock__ring div { flex: 1; display: grid; gap: 0.5em; }
.mock__arc { stroke: rgb(var(--ink-rgb) / 0.35); }
.mock__quarter { fill: var(--flow-line-teal); }
.mock__item {
  display: flex;
  align-items: center;
  gap: 0.8em;
  padding: 0.3em 0;
}
.mock__item i { width: 2.2em; height: 2.2em; }
.mock__dot {
  flex: none;
  width: 0.8em;
  height: 0.8em;
  border-radius: 50%;
}
.mock__dot--ok { background: var(--flow-line-teal); }
.mock__dot--wait { background: rgb(var(--amber-rgb)); }
.mock__pbtn {
  margin-top: auto;
  padding: 0.95em;
  border-radius: 1.6em;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 1.15em;
  font-weight: 500;
  text-align: center;
}

.mock__toast {
  position: absolute;
  top: 0;
  right: 11em;
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  padding: 0.8em 1.3em 0.8em 0.9em;
  border: 1px solid var(--line-strong);
  border-radius: 1.3em;
  background: var(--mock-bg);
  box-shadow: var(--mock-shadow);
  font-size: 1.15em;
  font-weight: 500;
  white-space: nowrap;
  animation: mock-float 7s ease-in-out -2.5s infinite;
}
.mock__tick {
  width: 1.7em;
  height: 1.7em;
  border-radius: 50%;
  background: var(--tick-icon) center / 100% no-repeat, rgb(var(--accent-rgb) / 0.15);
}

@keyframes mock-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-0.8em); }
}

/* Approach */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: none;
}

.step {
  position: relative;
  padding-top: 34px;
  border-top: 1px solid var(--line-strong);
}
.step::before {
  /* node on the rail */
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--accent);
  box-shadow: 0 0 12px rgb(var(--accent-rgb) / 0.5);
}
.step__num {
  display: block;
  margin-bottom: 16px;
  font: 500 13px/1 var(--font-display);
  letter-spacing: 0.1em;
  color: var(--accent);
}
.step__title {
  margin-bottom: 12px;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.step p {
  font-size: 15px;
  color: var(--text-dim);
}

/* Contact */

.section--contact { padding-top: 0; }

.contact {
  position: relative;
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: clamp(36px, 6vw, 80px);
  padding: clamp(32px, 6vw, 72px);
  border: 1px solid var(--line-strong);
  border-radius: 30px;
  background: var(--contact-bg);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  isolation: isolate;
}
.contact__glow {
  position: absolute;
  right: -20%;
  bottom: -60%;
  width: 80%;
  height: 120%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(var(--accent-rgb) / 0.2), transparent);
  filter: blur(20px);
}

.contact .section__title { font-size: clamp(30px, 3.4vw, 44px); }

.contact__main {
  display: grid;
  gap: 18px;
  align-content: start;
}

.contact__email {
  justify-self: start;
  margin-top: 14px;
  font: 400 clamp(20px, 2.6vw, 32px)/1.2 var(--font-display);
  letter-spacing: -0.02em;
  color: var(--text);
  border-bottom: 1px solid rgb(var(--accent-rgb) / 0.4);
  padding-bottom: 6px;
  overflow-wrap: anywhere;
  transition: color 0.2s, border-color 0.2s;
}
.contact__email:hover { color: var(--accent-bright); border-color: var(--accent-bright); }

.contact__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.contact__details {
  display: grid;
  align-content: end;
  gap: 0;
  margin: 0;
}
.contact__details > div {
  display: grid;
  gap: 4px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.contact__details > div:last-child { border-bottom: 1px solid var(--line); }
.contact__details dt {
  font: 500 13px/1.3 var(--font-body);
  color: var(--text-muted);
}
.contact__details dd {
  margin: 0;
  color: var(--text);
  overflow-wrap: anywhere;
}
.contact__details a:hover { color: var(--accent-bright); }

/* ---------- Footer ---------- */

.footer {
  padding: 72px 0 40px;
  border-top: 1px solid var(--line);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.2fr 1.8fr;
  gap: 48px;
}
.footer__brand {
  display: grid;
  gap: 18px;
  align-content: start;
}
.footer__brand img { height: 30px; width: auto; }
.footer__brand p {
  max-width: 340px;
  font-size: 14px;
  color: var(--text-muted);
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer__cols div {
  display: grid;
  gap: 10px;
  align-content: start;
}
.footer__cols h3 {
  margin-bottom: 4px;
  font: 500 14px/1.3 var(--font-body);
  letter-spacing: 0;
  color: var(--text);
}
.footer__cols a {
  justify-self: start;
  font-size: 14px;
  color: var(--text-dim);
  transition: color 0.2s;
}
.footer__cols a:hover { color: var(--text); }

.footer__legal {
  display: grid;
  gap: 6px;
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-muted);
}

/* ---------- Legal pages (privacy, terms) ---------- */

.legal {
  position: relative;
  padding: clamp(136px, 16vh, 172px) 0 clamp(80px, 10vw, 120px);
  isolation: isolate;
}
.legal::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 520px;
  z-index: -1;
  background:
    radial-gradient(50% 70% at 85% 0%, var(--glow-strong), transparent 70%),
    radial-gradient(40% 60% at 0% 0%, var(--glow-soft), transparent 70%);
}

.legal__head {
  display: grid;
  gap: 18px;
  max-width: 820px;
  margin-bottom: clamp(40px, 6vw, 64px);
  padding-bottom: clamp(32px, 4vw, 44px);
  border-bottom: 1px solid var(--line);
}
.legal__title {
  font-size: clamp(38px, 5vw, 60px);
  letter-spacing: -0.03em;
}
.legal__meta {
  font-size: 14px;
  color: var(--text-muted);
}

.legal__layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 740px);
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.legal__layout > nav {
  position: sticky;
  top: 112px;
}
.legal__toc summary {
  list-style: none;
  font: 500 14px/1.3 var(--font-body);
  color: var(--text);
  pointer-events: none; /* always open on wide screens */
}
.legal__toc summary::-webkit-details-marker { display: none; }
.legal__toc ol {
  display: grid;
  gap: 2px;
  margin-top: 14px;
  border-left: 1px solid var(--line);
}
.legal__toc a {
  display: block;
  margin-left: -1px;
  padding: 6px 0 6px 16px;
  border-left: 1px solid transparent;
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-muted);
  transition: color 0.2s, border-color 0.2s;
}
.legal__toc a:hover {
  color: var(--text);
  border-left-color: var(--accent);
}

.legal__summary {
  margin-bottom: 44px;
  padding: 22px 24px;
  border: 1px solid rgb(var(--accent-rgb) / 0.25);
  border-radius: 16px;
  background: linear-gradient(135deg, rgb(var(--accent-rgb) / 0.09), rgb(var(--accent-rgb) / 0.02));
}
.legal__summary p { color: var(--text); }

.legal__body section + section {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.legal__body h2 {
  margin-bottom: 16px;
  font-size: clamp(22px, 2.2vw, 26px);
  letter-spacing: -0.02em;
}
.legal__body h3 {
  margin: 24px 0 10px;
  font: 500 17px/1.3 var(--font-display);
  letter-spacing: -0.01em;
}
.legal__body p,
.legal__body li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dim);
}
.legal__body p + p,
.legal__body ul + p,
.legal__body p + ul { margin-top: 14px; }
.legal__body ul {
  display: grid;
  gap: 8px;
}
.legal__body li {
  position: relative;
  padding-left: 20px;
}
.legal__body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 8px;
  height: 1px;
  background: var(--accent);
}
.legal__body strong {
  color: var(--text);
  font-weight: 500;
}
.legal__body a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgb(var(--accent-rgb) / 0.4);
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.legal__body a:hover { color: var(--accent-bright); text-decoration-color: currentColor; }

/* ---------- Scroll reveal (only when JS is running) ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
.js .card[data-reveal].is-visible:hover { transform: translateY(-3px); }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .sectors { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 44px 24px; }
  .apps { grid-template-columns: 1fr; }
  .apps__visual { max-width: 640px; }
  .apps__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav__bar {
    grid-template-columns: 1fr auto;
    padding: 0 10px 0 18px;
  }
  .nav__links,
  .nav__actions { display: none; }
  .nav__brand { justify-self: start; }
  .nav__tools {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-self: end;
  }
  .nav__toggle { display: block; }
  .nav__tools .theme-toggle {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .hero { padding-top: 128px; }
  .hero__inner { grid-template-columns: 1fr; gap: 28px; }
  .hero__lead { max-width: 620px; }
  .hero__ctas { margin-top: 26px; }

  /* the flow diagram switches to its tall version */
  .flow__svg--wide { display: none; }
  .flow__svg--tall { display: block; }

  .principles { grid-template-columns: repeat(2, 1fr); }
  .principles li:nth-child(3) { padding-left: 0; border-left: 0; }
  .principles li:nth-child(n + 3) { margin-top: 24px; border-top: 1px solid var(--line); }

  .services { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }

  .legal__layout { grid-template-columns: 1fr; gap: 36px; }
  .legal__layout > nav { position: static; }
  .legal__toc {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
  }
  /* collapsible on small screens */
  .legal__toc summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    pointer-events: auto;
  }
  .legal__toc summary::after {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 1.5px solid var(--text-dim);
    border-bottom: 1.5px solid var(--text-dim);
    transform: translateY(-2px) rotate(45deg);
    transition: transform 0.25s var(--ease);
  }
  .legal__toc[open] summary::after { transform: translateY(2px) rotate(-135deg); }
  .legal__toc ol { margin: 0 20px 18px; }
  .footer__top { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .nav { inset: 10px 0 auto; }
  .nav__bar { height: 58px; border-radius: 18px; }
  .nav__brand img { height: 26px; }

  .badge__chip { display: none; }

  .hero { padding-top: 112px; }
  .hero__ctas .btn,
  .apps__ctas .btn { width: 100%; }

  .principles { grid-template-columns: 1fr; }
  .principles li,
  .principles li + li { padding: 20px 0 0; border-left: 0; }
  .principles li + li { margin-top: 20px; border-top: 1px solid var(--line); }

  .sectors,
  .steps,
  .apps__grid { grid-template-columns: 1fr; }
  .ticks { grid-template-columns: 1fr; }
  .sector__desc { min-height: 0; }

  .contact { border-radius: 22px; padding: 28px 22px; }
  .contact__ctas .btn { flex: 1 1 auto; }

  .footer__cols { grid-template-columns: 1fr 1fr; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .flow .pulses-in,
  .flow .pulses-out { display: none; }
}
