/* tokens/colors.css */
:root {
  /* Base */
  --aiia-ink: #141414;
  --aiia-ink-2: #2b2b2b;
  --aiia-black: #000000;
  --aiia-paper: #ffffff;
  --aiia-canvas: #f5f5f5;
  --aiia-mist: #e9e9e9;
  --aiia-mist-2: #f0f0f0;
  --aiia-hairline: #d9d9d9;
  --aiia-page: #fbf9f4;
  --aiia-page-edge: #ddd7ca;
  /* Night (default theme) */
  --aiia-night-bg: #0e0e0e;
  --aiia-night-fg: #ededed;
  --aiia-night-surface: #1b1b1b;
  /* Accents — orange + yellow only highlight keywords */
  --aiia-orange: #ff7a1a;
  --aiia-orange-hover: #ff8f3d;
  --aiia-orange-deep: #f2610c;
  --aiia-yellow: #fecc33;
  --aiia-yellow-strong: #ffd000;
  --aiia-green: #30a81d;

  /* Semantic */
  --text-body: var(--aiia-ink);
  --text-inverse: var(--aiia-paper);
  --text-on-accent: var(--aiia-ink);
  --surface-page: var(--aiia-canvas);
  --surface-card: var(--aiia-paper);
  --surface-inverse: var(--aiia-ink);
  --surface-placeholder: var(--aiia-mist);
  --border-card: var(--aiia-hairline);
  --border-strong: var(--aiia-ink);
  --accent-primary: var(--aiia-orange);
  --accent-highlight: var(--aiia-yellow);
  --status-success: var(--aiia-green);
  --grid-line: var(--aiia-hairline);
}

/* tokens/typography.css */
/* Self-hosted latin-subset fonts (fonts/ directory; preloaded per page). Replaces the Google Fonts CDN. */
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("/fonts/schibsted-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/jetbrains-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --font-display: "Schibsted Grotesk", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --font-body: Arial, Helvetica, sans-serif;

  --weight-display: 500;
  --weight-strong: 700;
  --tracking-display: -0.02em;
  --tracking-label: 0.06em;

  --size-hero: clamp(44px, 10.5vw, 170px);
  --size-h1: clamp(48px, 6.5vw, 96px);
  --size-h2: clamp(34px, 4.6vw, 60px);
  --size-h3: clamp(21px, 2vw, 26px);
  --size-claim: clamp(22px, 2.4vw, 32px);
  --size-lead: clamp(17px, 1.6vw, 21px);
  --size-body: 15px;
  --size-label: 12px;
  --size-label-sm: 11px;

  --leading-display: 0.9;
  --leading-tight: 1.05;
  --leading-body: 1.4;
}

/* tokens/spacing.css */
:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --gutter: clamp(20px, 4vw, 52px);
  --section-y: clamp(32px, 5vw, 56px);
  --grid-size: 40px;
  --header-h: 44px;
  --banner-h: 30px;
}

/* tokens/effects.css */
:root {
  --radius-button: 8px;
  --radius-chip: 12px;
  --radius-card: 16px;
  --radius-marker: 25px;
  --radius-pill: 160px;
  --radius-book: 4px 12px 12px 4px;

  --shadow-book: 1px 0 0 #f4f1ea, 2px 0 0 #ddd7ca, 3px 0 0 #f4f1ea, 4px 0 0 #ddd7ca, 5px 0 0 #f4f1ea, 6px 0 0 #cfc8b9, 7px 1px 0 #1b1b1b, 24px 34px 50px -22px rgba(0, 0, 0, 0.6);
  --shadow-stack: 8px 14px 24px rgba(20, 20, 20, 0.22);
  --glow-orange: 0 0 22px -4px rgba(255, 122, 26, 0.55);
  --glow-build: 0 30px 64px -28px rgba(255, 122, 26, 0.5);
  --outline-day: 1.5px solid #ff7a1a;

  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --ease-pop: cubic-bezier(.34, 1.56, .64, 1);
  --dur-fast: 200ms;
  --dur-base: 550ms;
  --dur-slow: 900ms;
}

/* aiia-ui/aiia-tokens.css */
/* ============================================================
   aiia-ui tokens — single source: ebooks.aiia-labs.com
   Extracted from app/styles/aiia.css (Next.js app) and
   design_handoff_aiia_store/design_system/tokens/{spacing,effects}.css.
   Night is the default theme (html[data-theme="dark"] = :root).
   Do not re-derive these values; copy this file.
   ============================================================ */

:root,
html[data-theme="dark"] {
  --font-scale: 1;
  --c-page: #0e0e0e;
  --c-surface: #1b1b1b;
  --c-fg: #ededed;
  --c-line: #333333;
  --c-soft: #262626;
  --c-hover: #262626;
  --c-inv: #ededed;
  --c-inv-fg: #0e0e0e;
  --c-inv-hover: #cfcfcf;
  --c-grid: #1f1f1f;
  --c-yellow: #fecc33;
  --c-yellow-text: #fecc33;
  --c-orange: #ff7a1a;
  --c-orange-text: #ff7a1a;
  --c-header: rgba(14, 14, 14, 0.92);
  --c-ph-a: #1c1c1c;
  --c-ph-b: #222222;
  --font-display: "Schibsted Grotesk", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  color-scheme: dark;
}

html[data-theme="light"] {
  --c-page: #f5f5f5;
  --c-surface: #ffffff;
  --c-fg: #141414;
  --c-line: #d9d9d9;
  --c-soft: #e9e9e9;
  --c-hover: #f0f0f0;
  --c-inv: #141414;
  --c-inv-fg: #ffffff;
  --c-inv-hover: #2b2b2b;
  --c-grid: #d9d9d9;
  --c-yellow: #fecc33;
  --c-yellow-text: #8a6200;
  --c-orange: #ff7a1a;
  /* Text-safe orange: #ff7a1a is 2.4:1 on light surfaces. Fills keep --c-orange. */
  --c-orange-text: #a84300;
  --c-header: rgba(245, 245, 245, 0.92);
  --c-ph-a: #e9e9e9;
  --c-ph-b: #f0f0f0;
  --font-display: "Schibsted Grotesk", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  color-scheme: light;
}

/* design_handoff spacing tokens */
:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --gutter: clamp(20px, 4vw, 52px);
  --section-y: clamp(32px, 5vw, 56px);
  --grid-size: 40px;
  --header-h: 44px;
  --banner-h: 30px;
}

/* design_handoff effects tokens */
:root {
  --radius-button: 8px;
  --radius-chip: 12px;
  --radius-card: 16px;
  --radius-marker: 25px;
  --radius-pill: 160px;
  --radius-book: 4px 12px 12px 4px;
  --shadow-stack: 8px 14px 24px rgba(20, 20, 20, 0.22);
  --glow-orange: 0 0 22px -4px rgba(255, 122, 26, 0.55);
  --glow-build: 0 30px 64px -28px rgba(255, 122, 26, 0.5);
  --outline-day: 1.5px solid #ff7a1a;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --ease-pop: cubic-bezier(.34, 1.56, .64, 1);
  --dur-fast: 200ms;
  --dur-base: 550ms;
  --dur-slow: 900ms;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 56px;
}

/* Body: page colour plus the 40px grid (one layer rotated 90°). */
body {
  margin: 0;
  background-color: var(--c-page);
  background-image:
    linear-gradient(var(--c-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--c-grid) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  color: var(--c-fg);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

/* Striped placeholder */
.aiia-ph {
  background-image: repeating-linear-gradient(135deg, var(--c-ph-a) 0 10px, var(--c-ph-b) 10px 20px);
  background-color: var(--c-ph-a);
}

:focus-visible {
  outline: 2px solid var(--c-fg);
  outline-offset: 3px;
}

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

/* Sequential keyword highlight on the hero claim */
@keyframes aiiaHlO {
  0%, 3% { background-image: linear-gradient(#ff7a1a, #ff7a1a); background-size: 0% 100%; background-repeat: no-repeat; color: inherit; }
  6.9% { color: inherit; }
  7%, 28.9% { background-size: 100% 100%; color: #141414; }
  9%, 29% { background-size: 100% 100%; }
  35%, 100% { background-size: 0% 100%; color: inherit; }
}
@keyframes aiiaHlY {
  0%, 3% { background-image: linear-gradient(#fecc33, #fecc33); background-size: 0% 100%; background-repeat: no-repeat; color: inherit; }
  6.9% { color: inherit; }
  7%, 28.9% { background-size: 100% 100%; color: #141414; }
  9%, 29% { background-size: 100% 100%; }
  35%, 100% { background-size: 0% 100%; color: inherit; }
}

/* Press feedback: buttons shrink slightly while pressed. */
button:active:not(:disabled),
a[role="button"]:active {
  transform: scale(0.97);
  transition: transform 0.12s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Button glow: orange sweep ring and halo on dark buttons. */
@keyframes aiia-sweep {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}
.aiia-ring,
.aiia-halo {
  position: absolute;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent 0 34%, rgba(255, 150, 70, 0.9) 42%, #ff7a1a 50%, rgba(255, 106, 0, 0.95) 57%, transparent 66% 100%);
  background-size: 300% 100%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: aiia-sweep 3.4s cubic-bezier(0.45, 0, 0.25, 1) infinite;
}
.aiia-ring {
  inset: -2px;
  padding: 2px;
  z-index: 1;
}
.aiia-halo {
  inset: -10px;
  padding: 10px;
  filter: blur(8px);
  opacity: 0.85;
  z-index: 0;
}

/* Card treatment: neutral elevation at rest; orange border and neutral glow on hover. */
.aiia-card {
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.55);
  transition: border-color 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.aiia-card:hover {
  border-color: #ff7a1a;
  box-shadow: 0 0 0 1px #ff7a1a, 0 18px 40px -10px rgba(0, 0, 0, 0.45);
}

/* Reduced motion turns everything off. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  [data-hl-seq] {
    animation: none !important;
  }
  .aiia-ring,
  .aiia-halo {
    animation: none;
    opacity: 0;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* styles.css */
/* Design tokens are linked from each page <head> so they load in parallel instead of through @import. */

/* site-shared.css */
:root {
  --shell-bg: var(--aiia-canvas, #f5f5f5);
  --shell-fg: var(--aiia-ink, #141414);
  --shell-surface: var(--aiia-paper, #fff);
  --shell-line: var(--aiia-hairline, #d9d9d9);
  --shell-accent: var(--aiia-orange, #ff7a1a);
  --shell-highlight: var(--aiia-yellow, #fecc33);
  --shell-ink: var(--aiia-ink, #141414);
  --shell-inverse: var(--aiia-paper, #fff);
  --shell-on-accent: var(--aiia-ink, #141414);
  --shell-error: #d92d20;
  --shell-success: #2d8a25;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

html[data-theme="dark"] {
  --shell-bg: var(--aiia-night-bg, #0e0e0e);
  --shell-fg: var(--aiia-night-fg, #ededed);
  --shell-surface: var(--aiia-night-surface, #1b1b1b);
  --shell-line: #333;
  --shell-ink: var(--aiia-night-fg, #ededed);
  --shell-inverse: var(--aiia-night-bg, #0e0e0e);
  --shell-on-accent: var(--aiia-ink, #141414);
  --shell-error: #ffb4ab;
  --shell-success: #4ade80;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 56px; }
html, body { min-height: 100%; }
/* Footer always sits at the viewport bottom: column flex with a growing main (short pages like
   404/legal would otherwise leave the footer floating mid-screen). */
body {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  margin: 0;
  background-color: var(--shell-bg);
  color: var(--shell-fg);
  font-family: var(--font-body, Arial, Helvetica, sans-serif);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .3s ease, color .3s ease;
}
/* The motion layer sets `body{background:...!important}` in dark mode; the extra :root keeps the 40px grid visible. */
html[data-theme]:root body {
  background-image: linear-gradient(0deg, transparent 39px, color-mix(in srgb, var(--shell-line) 42%, transparent) 40px), linear-gradient(90deg, transparent 39px, color-mix(in srgb, var(--shell-line) 42%, transparent) 40px) !important;
  background-size: 40px 40px !important;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
:focus-visible { outline: 2px solid var(--shell-accent); outline-offset: 3px; }

/* Inline SVG icons (replaced the Font Awesome icon font; see scripts/inline-icons.js) */
.fa-icon { width: 1em; height: 1em; display: inline-block; vertical-align: -.125em; fill: currentColor; }

/* ---------- Header (identical on every page) ---------- */
body > header {
  position: sticky;
  top: 0;
  z-index: 900;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px clamp(16px, 3vw, 40px);
  min-height: 48px;
  padding: 0 clamp(16px, 4vw, 52px);
  border-bottom: 1px solid var(--c-line, #333);
  background: var(--c-header, rgba(14, 14, 14, 0.92));
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  text-align: center;
  transition: background .3s, border-color .3s;
}
/* Exactly one 48px row at every width; the whole nav cluster is centred (eBooks header). */
body > header { flex-wrap: nowrap; }
.shell-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2vw, 20px);
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  min-height: 48px;
}
.shell-links { display: flex; align-items: center; gap: clamp(12px, 2.4vw, 28px); }
.shell-nav a, .shell-menu a, .shell-pill, button[data-sound-toggle] {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.shell-brand { font-weight: 700; }
.shell-navlink { text-decoration: none; color: inherit; }
.shell-navlink:hover { text-decoration: underline; text-underline-offset: 4px; }
.shell-controls { display: contents; }
.shell-controls { display: flex; align-items: center; gap: 8px; }

.shell-pill, button[data-sound-toggle] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 1px 14px;
  border: 1px solid var(--shell-fg);
  border-radius: 160px;
  background: none;
  color: inherit;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.shell-pill:hover, button[data-sound-toggle]:hover { background: var(--shell-fg); color: var(--shell-bg); }
html[data-theme="dark"] .shell-pill:hover, html[data-theme="dark"] button[data-sound-toggle]:hover { color: var(--aiia-night-bg); }
button[data-sound-toggle] svg { display: block; }
/* Locale pill: invisible native select stretched over the pill face (aiia-ui §4). */
.shell-locale { position: relative; }
.shell-locale-select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; appearance: none; -webkit-appearance: none; cursor: pointer; border: none; background: none; font-size: 16px; }
.shell-caret { font-size: 0.6em; }
[data-locale-code] { pointer-events: none; }
[data-theme-icon] {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid currentColor;
  background: linear-gradient(90deg, currentColor 50%, transparent 50%);
  transition: transform .6s var(--ease-out);
}

.shell-menu {
  display: none;
  flex-basis: 100%;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 18px 0 26px;
}
.shell-menu a { font-family: var(--font-display, "Schibsted Grotesk", Arial, sans-serif); font-size: 28px; letter-spacing: -.02em; text-transform: none; }
.shell-menu .shell-controls { flex-wrap: wrap; justify-content: center; margin-top: 6px; }

/* ---------- Footer (identical on every page) ---------- */
body > footer {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px clamp(16px, 4vw, 52px);
  border-top: 1px solid var(--c-line, var(--shell-line));
  text-align: center;
}
body > footer nav { display: flex; align-items: center; justify-content: center; gap: 4px 12px; flex-wrap: wrap; }
/* Mobile header fits one row: tighter paddings and gaps below 760px. */
@media (max-width: 759px) {
  body > header { padding-left: 12px; padding-right: 12px; }
  .shell-nav { gap: 8px; }
  .shell-pill { padding: 1px 10px; gap: 6px; }
}
body > footer a, body > footer nav span, body > footer button {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
body > footer a, body > footer button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  white-space: nowrap;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: inherit;
}
body > footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
body > footer a.footer-product:hover, body > footer a.footer-product:focus-visible { color: var(--c-orange-text, var(--shell-accent)); text-decoration: none; }
body > footer button.footer-cookies:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-arrow { color: var(--c-orange, var(--shell-accent)); font-size: 1rem !important; }
.footer-divider { color: color-mix(in srgb, var(--shell-fg) 45%, transparent); }

/* Centre-aligned content across the site (owner request, 2026-11-04). */
body > main { text-align: center; flex: 1 0 auto; }
body > main .service-card, body > main .card { text-align: center; }
body > main input, body > main textarea, body > main select { text-align: left; }
body > main li { text-align: center; }

/* ---------- Shared content patterns ---------- */
body > main, body > .svc { position: relative; z-index: 1; }
.label { font-family: var(--font-mono, ui-monospace, monospace); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; }
.highlight-orange, .highlight-yellow { display: inline; padding: .04em 10px .2em; color: var(--shell-on-accent); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.highlight-orange { background: var(--aiia-orange, #ff7a1a); border-radius: 12px; }
.highlight-yellow { background: var(--aiia-yellow, #fecc33); border-radius: 10px; padding: 0 6px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border: 0;
  border-radius: 8px;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background .3s var(--ease-out), transform .3s var(--ease-out);
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:disabled { cursor: wait; opacity: .7; transform: none; }
.btn-primary { background: var(--aiia-ink, #141414); color: var(--shell-inverse); }
.btn-primary:hover { background: var(--aiia-ink-2, #2b2b2b); }
html[data-theme="dark"] .btn-primary { background: var(--aiia-night-fg, #ededed); color: var(--aiia-night-bg); }
html[data-theme="dark"] .btn-primary:hover { background: #cfcfcf; }
.btn-accent { background: var(--aiia-orange, #ff7a1a); color: var(--shell-on-accent); }
.btn-accent:hover { background: var(--aiia-orange-hover, #ff8f3d); }
.text-link { font-family: var(--font-mono, ui-monospace, monospace); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px; }
.risk-line { font-family: var(--font-mono, ui-monospace, monospace); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; margin: 0; }
.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(16px, 2vw, 22px);
  border: 1px solid var(--shell-line);
  border-radius: 16px;
  background: var(--shell-surface);
  transition: border-color .2s, background .3s;
}
.card:hover { border-color: var(--shell-fg); }
[data-tilt] { transform-style: preserve-3d; }
[data-tilt]:hover, [data-tilt]:focus-within { will-change: transform; }

/* ---------- Service, policy and contact pages ---------- */
.svc { max-width: 860px; margin: 0 auto; padding: clamp(28px, 4vw, 48px) clamp(20px, 4vw, 52px); position: relative; text-align: center; }
.svc::before {
  content: "";
  position: absolute;
  inset: 0 -20vw auto;
  height: 520px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(38% 46% at 50% 22%, rgba(255, 122, 26, .22), rgba(255, 122, 26, 0) 70%);
}
.svc .crumb { color: var(--shell-accent); font-family: var(--font-mono, ui-monospace, monospace); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; }
.svc h1, .svc h2 { font-family: var(--font-display, "Schibsted Grotesk", Arial, sans-serif); font-weight: 500; letter-spacing: -.02em; }
.svc h1 { max-width: 12ch; font-size: clamp(2.75rem, 7vw, 5.5rem); line-height: 1; margin: 18px auto 24px; }
.svc .lead { max-width: 68ch; font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.4; margin: 0 auto 28px; }
.svc h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 48px 0 14px; }
.svc ul, .svc ol { max-width: 68ch; margin-left: auto; margin-right: auto; padding-left: 0; list-style-position: inside; line-height: 1.65; }
.svc li { margin-bottom: 8px; }
.svc .price { display: inline-block; margin: 0 auto; padding: 12px 14px; border: 1px solid var(--shell-line); border-radius: 12px; background: var(--shell-surface); }
.svc .cta {
  display: inline-block;
  margin-top: 36px;
  padding: 14px 20px;
  border: 1px solid var(--shell-accent);
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: .75rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: background .2s ease, transform .2s ease;
}
.svc .cta:hover { background: var(--shell-accent); color: var(--shell-on-accent); transform: translateY(-2px); text-decoration: none; }
/* Button-flavoured CTA (privacy page: reopen the cookie banner) — reset browser button chrome. */
.svc button.cta { cursor: pointer; background: transparent; width: auto; }
.svc .note { max-width: 68ch; margin: 12px auto 0; color: color-mix(in srgb, var(--shell-fg) 76%, transparent); font-size: .9rem; line-height: 1.5; }
.service-page .svc { max-width: 980px; padding: clamp(32px, 5vw, 56px) clamp(20px, 5vw, 64px); }
.service-page .svc h1 { max-width: 16ch; }
.service-page .svc h2 { margin-top: clamp(42px, 7vw, 76px); }
.service-page .svc ul, .service-page .svc ol { max-width: 64ch; }
.service-page .svc li { margin-bottom: 12px; }
.service-page .svc .cta { margin-top: 28px; }

.contact-page { max-width: 680px; }
.contact-page h1 { max-width: none; }
.contact-page form { display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 36px auto 0; max-width: 560px; }
.contact-field { display: flex; flex-direction: column; gap: 6px; width: 100%; text-align: left; }
.contact-field label, .contact-status { font-family: var(--font-mono, ui-monospace, monospace); font-size: .75rem; letter-spacing: .03em; }
.contact-field input, .contact-field textarea { width: auto; min-width: 0; max-width: 100%; field-sizing: content; padding: 12px 16px; border: 1px solid var(--shell-line); border-radius: 160px; background: var(--shell-surface); color: var(--shell-fg); font: inherit; font-size: 16px; line-height: 1.4; text-align: center; margin: 0 auto; }
.contact-field textarea { min-height: 132px; border-radius: 16px; resize: vertical; }
.contact-field input:focus, .contact-field textarea:focus { border-color: var(--shell-accent); }
.contact-status { min-height: 1.4em; margin: 0; }
.contact-status[data-state="error"] { color: var(--shell-error); }
.contact-status[data-state="success"] { color: var(--shell-success); }
.contact-submit { align-self: center; margin-top: 4px; }
.contact-honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.policy-page { max-width: 860px; }
.policy-page h1 { max-width: 18ch; }
.policy-page h2 { margin-top: 42px; }
.policy-page .updated { color: color-mix(in srgb, var(--shell-fg) 70%, transparent); font-family: var(--font-mono, ui-monospace, monospace); font-size: .75rem; letter-spacing: .04em; }

@media (max-width: 760px) {
  body > header { align-items: center; padding-top: max(3px, env(safe-area-inset-top)); }
  .shell-pill, button[data-sound-toggle], .btn, .shell-menu a { min-height: 40px; }
  .svc { padding-top: 28px; }
  body > footer { padding-bottom: max(10px, env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; filter: none !important; }
}

/* Skip link: hidden until focused (BUG-QA-06). */
.skip-link { position: absolute; left: 12px; top: 8px; z-index: 1000; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; padding: 8px 12px; background: var(--shell-bg); color: var(--shell-fg); border-radius: 6px; }
.skip-link:focus { width: auto; height: auto; overflow: visible; clip-path: none; }

/* Header text links meet a 24px target (BUG-QA-07). */
.shell-brand, .shell-links a, .shell-menu a { min-height: 24px; display: inline-flex; align-items: center; }

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

/* Scroll-depth section transforms can extend past the viewport; clip rather than scroll horizontally. */
main { overflow-x: clip; }
@media (min-width: 481px) { .highlight-orange, .highlight-yellow { white-space: nowrap; } }

/* Newsletter form */
#newsletter { padding: clamp(40px, 6vw, 72px) clamp(20px, 4vw, 52px); text-align: center; }
.newsletter-form { max-width: 520px; margin: 24px auto 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.newsletter-row { display: flex; gap: 8px; width: 100%; max-width: 440px; flex-wrap: wrap; justify-content: center; }
.newsletter-row input[type="email"] { flex: 1 1 220px; padding: 12px 18px; border: 1px solid var(--shell-line); border-radius: 160px; background: var(--shell-surface); color: var(--shell-fg); font: inherit; font-size: 16px; min-width: 0; }
.newsletter-row input[type="email"]:focus { outline: none; border-color: var(--shell-accent); }
.newsletter-consent { display: flex; align-items: flex-start; gap: 10px; max-width: 440px; font-size: 13px; line-height: 1.4; color: color-mix(in srgb, var(--shell-fg) 76%, transparent); text-align: left; cursor: pointer; }
.newsletter-consent input[type="checkbox"] { margin-top: 2px; flex-shrink: 0; accent-color: var(--shell-accent); }
.newsletter-msg { font-size: 14px; color: var(--shell-accent); margin: 0; }

/* The production CSP allows the shared stylesheet and rejects injected style elements. */
#aiia-consent-banner {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 80;
  width: min(calc(100% - 24px), 680px);
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  border: 1px solid var(--c-line, #333);
  background: var(--c-page, #111);
  color: var(--c-fg, #ededed);
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .35);
  padding: 16px;
  font: 15px/1.4 Arial, Helvetica, sans-serif;
}
#aiia-consent-banner h2 { font-size: 17px; margin: 0 0 8px; }
#aiia-consent-banner p { margin: 0 0 12px; max-width: 56ch; }
.aiia-consent-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
#aiia-consent-banner button {
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  font: 600 12px/1.3 ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: .06em;
  background: transparent;
  color: inherit;
  border: 1px solid var(--c-fg, #ededed);
}
#aiia-consent-banner button:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
#aiia-consent-banner button:hover,
#aiia-consent-banner .aiia-consent-accept { background: var(--c-fg, #ededed); color: var(--c-page, #111); }
.aiia-consent-accept { grid-column: 1; }
.aiia-consent-more { grid-column: 1 / -1; }
.aiia-consent-options { margin: 0 0 12px; }
.aiia-consent-options label { display: flex; align-items: center; gap: 8px; min-height: 44px; }
@media (prefers-reduced-motion: reduce) {
  #aiia-consent-banner * { transition: none; }
}

/* home.css */
/* Homepage-only layout. Global shell, buttons, cards and tokens live in site-shared.css. */

h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 500; letter-spacing: -.02em; line-height: 1; }
h1 { font-size: var(--size-hero); line-height: .9; }
h2 { font-size: var(--size-h2); }
h3 { font-size: var(--size-h3); line-height: 1.08; }
.brand-accent { color: var(--aiia-orange); }
p { margin: 0; }

main > section { position: relative; isolation: isolate; padding: clamp(10px, 1.6vw, 22px) clamp(20px, 4vw, 52px); text-align: center; }
.section-head { max-width: 860px; margin: 0 auto clamp(8px, 1.4vw, 14px); }
.product-proof { font-size: clamp(18px, 2.2vw, 25px); line-height: 1.25; margin-top: clamp(14px, 2vw, 22px); }

/* ---------- Hero ---------- */
.hero { min-height: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; padding-block: clamp(20px, 3vw, 36px); }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(38% 34% at 66% 36%, rgba(255, 122, 26, .26), rgba(255, 122, 26, 0) 70%), radial-gradient(30% 28% at 28% 70%, rgba(254, 204, 51, .18), rgba(254, 204, 51, 0) 70%);
  -webkit-mask: radial-gradient(60% 60% at 62% 38%, #000 30%, transparent 75%);
  mask: radial-gradient(60% 60% at 62% 38%, #000 30%, transparent 75%);
}
.hero-content { position: relative; z-index: 10; width: 100%; max-width: 920px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: clamp(10px, 1.8vw, 20px); }
.hero-title { font-size: clamp(30px, 4.6vw, 60px); line-height: 1.08; }
.hero-title [data-word-cycle] { white-space: nowrap; margin-top: .14em; }
.hero-claim { font-size: clamp(20px, 2.4vw, 30px); line-height: 1.15; text-wrap: pretty; }
.hero-lead { max-width: 56ch; font-size: var(--size-lead); line-height: 1.3; }
.ask-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: 760px;
  padding: 10px 10px 10px clamp(18px, 3vw, 28px);
  border: 1px solid var(--shell-line);
  border-radius: 160px;
  background: var(--shell-surface);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.hero-actions { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; }

/* ---------- Marquee ---------- */
.marquee { position: relative; overflow: hidden; border-block: 1px solid var(--shell-line); background: var(--shell-surface); white-space: nowrap; }
.marquee-track { display: flex; width: max-content; align-items: center; gap: 22px; padding: 14px 11px; font-family: var(--font-mono); font-size: 15px; letter-spacing: .06em; text-transform: uppercase; }
.marquee-track .mark-o, .marquee-track .mark-y { padding: 2px 12px; border-radius: 25px; color: var(--shell-on-accent); }
.marquee-track .mark-o { background: var(--aiia-orange); }
.marquee-track .mark-y { background: var(--aiia-yellow); }
.marquee-track .star { color: var(--aiia-orange); }

/* ---------- Goal picker ---------- */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 900px; margin: 0 auto 18px; }
.chip {
  min-height: 40px;
  padding: 8px 18px;
  border: 1px solid var(--shell-line);
  border-radius: 160px;
  background: var(--shell-surface);
  color: inherit;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .2s, background .2s, color .2s;
}
.chip:hover { border-color: var(--shell-fg); }
.chip[aria-pressed="true"] { background: var(--shell-fg); border-color: var(--shell-fg); color: var(--shell-bg); }
.match { max-width: 560px; margin: 0 auto; align-items: center; gap: 10px; padding: clamp(18px, 2.4vw, 28px); }
.match .meta { font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }

/* ---------- Audience toggle ---------- */
.audience-toggle { display: flex; justify-content: center; gap: 16px; margin-bottom: clamp(32px, 4vw, 48px); }
.toggle-btn {
  padding: 10px 20px;
  border: 1px solid var(--shell-line);
  border-radius: 160px;
  background: var(--shell-surface);
  color: inherit;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .2s, background .2s, color .2s;
}
.toggle-btn:hover { border-color: var(--shell-fg); }
.toggle-btn[aria-pressed="true"] { background: var(--shell-fg); border-color: var(--shell-fg); color: var(--shell-bg); }

/* ---------- Service and expertise cards ---------- */
.services-grid, .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: clamp(12px, 1.8vw, 20px); max-width: 1200px; margin: 0 auto; }
.service-card { align-items: center; gap: 12px; padding: clamp(20px, 2.4vw, 28px); }
.service-card h3 a { text-decoration: none; }
.service-card h3 a:hover { text-decoration: underline; }
.service-icon { color: var(--aiia-orange); font-size: 18px; transition: transform .3s var(--ease-out); }
.service-card:hover .service-icon { transform: scale(1.2) rotate(6deg); }
.service-card p, .grid .card p { font-size: 15px; line-height: 1.4; }
.service-card .price { font-family: var(--font-mono); font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--aiia-orange); margin: 8px 0; }
.service-card [data-send-brief] { width: 100%; }

/* ---------- How an engagement works ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; max-width: 1100px; margin: 0 auto 12px; }
.step { align-items: center; gap: 8px; padding: clamp(20px, 2.4vw, 28px); }
.step-num { font-family: var(--font-display); font-size: 47px; line-height: 1; color: var(--aiia-orange); }
.step p { font-size: 15px; line-height: 1.4; }
.card--dark { background: var(--aiia-ink); border-color: var(--aiia-ink); color: var(--aiia-paper); }
html[data-theme="dark"] .card--dark { background: var(--aiia-night-fg); border-color: var(--aiia-night-fg); color: var(--aiia-night-bg); }
.card--dark .step-num { color: var(--aiia-orange-deep); }
html[data-theme="dark"] .card--dark .step-num { color: #b34300; }

/* ---------- Closing call to action ---------- */
.final { display: flex; flex-direction: column; align-items: center; gap: clamp(12px, 1.8vw, 20px); }
.all-services { margin-top: 1.5rem !important; padding-top: 1.25rem !important; }
.final h2 { font-size: clamp(40px, 7vw, 96px); line-height: .95; }

@media (max-width: 760px) {
  .hero { min-height: auto; padding-top: 40px; }
  .ask-pill { flex-direction: column; border-radius: 16px; padding: 14px; text-align: center; }
  .chips { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chips .chip { flex: 0 0 auto; scroll-snap-align: start; }
}
.products-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
@media (min-width: 761px) and (max-width: 1099px) { .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .products-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
