/*
  ithawaii.ai styles. One file, no framework.

  Palette (Steve, 2026-11-10): the TruerunEngine brand colors. Imperial purple #1d0645 is the site's color:
  headings, links, buttons, icons, checkmarks, the chat window, dark bands and the footer, with #3a1680 as its
  hover (Steve asked for the darker purple on buttons and links in place of indigo). Bright indigo #7b73ff is for
  accents on dark bands and the keyboard focus ring, which has to show on white and on purple; light indigo tints
  back chips and icons. Indigo #4f46e5 stays in the logo and in Kai's art (his shell). Neutrals are cool greys with
  a faint violet tint. Still no tan, manila, teal or coral (Steve, 2026-11-08). White on imperial purple is about
  18:1 and on the hover purple about 13:1; the focus ring is 3.7:1 on white and 4.9:1 on imperial purple.
  Font: Inter (OFL), the TruerunEngine brand font, self-hosted in /fonts (Steve, 2026-11-10; it replaced Plus
  Jakarta Sans).
*/

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Imperial purple (the site's color) */
  --purple-950: #14032f;
  --purple-900: #1d0645; /* Imperial purple */
  --purple-800: #2a0f5c;
  --purple-700: #3a1680; /* hover for purple buttons and links */
  /* Indigo (bright indigo for accents on dark and the focus ring; tints behind chips and icons) */
  --indigo-800: #3730a3;
  --indigo-700: #4338ca;
  --indigo-600: #4f46e5; /* Indigo */
  --indigo-400: #7b73ff; /* Bright indigo */
  --indigo-300: #a29dff;
  --indigo-200: #cbc8ff;
  --indigo-100: #ebeaff;
  --indigo-50: #f5f4ff;
  --on-purple: #d8d2ee;
  /* Sunset coral: retired, kept for reference */
  --coral-700: #a9431f;
  --coral-600: #c25029;
  --coral-400: #f2784b;
  --coral-100: #fdece4;
  /* The accent in use */
  --accent-700: var(--purple-700);
  --accent-600: var(--purple-900);
  --accent-400: var(--indigo-400);
  --accent-100: var(--indigo-100);
  /* Cool neutrals with a faint violet tint, never sand */
  --white: #ffffff;
  --mist-50: #f7f7fb;
  --mist-100: #f0eff6;
  --mist-200: #e2e0ec;
  --mist-300: #cbc8da;
  --ink-900: #1c1a2b;
  --ink-700: #45425a;
  --ink-600: #5b586e;
  --ink-500: #74718a;

  --bg: var(--white);
  --surface: var(--white);
  --sunken: var(--mist-50);
  --border: var(--mist-200);
  --border-strong: var(--ink-500);
  --text: var(--ink-900);
  --text-2: var(--ink-700);
  --muted: var(--ink-600);
  --heading: var(--purple-900);
  --brand: var(--purple-900);
  --brand-strong: var(--purple-700);
  --accent: var(--accent-600);
  --accent-strong: var(--accent-700);
  --night: var(--purple-900);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-sm: 0.875rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.25rem;
  --fs-h3: 1.25rem;
  --fs-h2: clamp(1.75rem, 1.2rem + 2.1vw, 2.375rem);
  --fs-h1: clamp(2.125rem, 1.4rem + 3.2vw, 3.5rem);
  --fs-display: clamp(2.375rem, 1.3rem + 4vw, 4rem);

  --wide: 1200px;
  --read: 720px;
  --gutter: 24px;
  --section: clamp(3.5rem, 2rem + 5vw, 6rem);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-card: 0 0 0 1px var(--border), 0 1px 2px rgb(28 26 43 / 0.04), 0 10px 28px -14px rgb(28 26 43 / 0.16);
  --shadow-card-hover: 0 0 0 1px var(--mist-300), 0 2px 4px rgb(28 26 43 / 0.05), 0 18px 40px -16px rgb(28 26 43 / 0.22);
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --t: 0s;
}
@media (prefers-reduced-motion: no-preference) {
  :root { --t: 180ms; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
}

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

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: 0.18em; }
a:hover { color: var(--brand-strong); }
h1, h2, h3, h4 { color: var(--heading); font-weight: 700; line-height: 1.2; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
h1 { font-size: var(--fs-h1); font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--indigo-400); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 100; padding: 10px 16px; border-radius: var(--radius-sm); background: var(--purple-900); color: #fff; font-weight: 600; }
.skip-link:focus { top: 12px; color: #fff; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: min(100% - var(--gutter) * 2, var(--wide)); margin-inline: auto; }
.container--read { width: min(100% - var(--gutter) * 2, var(--read)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section--mist { background: var(--sunken); }
.section--tint { background: linear-gradient(180deg, var(--indigo-50), var(--white)); }
.section--night { background: var(--night); color: #fff; }
.section--night h2, .section--night h3 { color: #fff; }
.section--tight { padding-block: calc(var(--section) * 0.6); }

.lead { color: var(--text-2); font-size: var(--fs-lg); line-height: 1.6; }
.section--night .lead { color: var(--on-purple); }

.section-head { max-width: 760px; margin-bottom: clamp(2rem, 1rem + 2vw, 3rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 + .lead, .section-head h2 + p { margin-top: 14px; }

/* ---- Buttons ---------------------------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px;
  border: 2px solid transparent; border-radius: 10px;
  font: inherit; font-size: 1rem; font-weight: 700; line-height: 1.2; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--t) var(--ease), color var(--t) var(--ease), border-color var(--t) var(--ease), transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px -10px rgb(29 6 69 / 0.4); }
.btn--primary:hover { background: var(--accent-strong); color: #fff; transform: translateY(-1px); }
/* A dark accent disappears on dark sections, so the main button turns white there. */
.cta-band .btn--primary, .section--night .btn--primary { background: #fff; color: var(--accent-600); box-shadow: 0 8px 20px -10px rgb(0 0 0 / 0.45); }
.cta-band .btn--primary:hover, .section--night .btn--primary:hover { background: var(--accent-100); color: var(--accent-700); }
.btn--secondary { background: var(--white); border-color: var(--accent); color: var(--accent); }
.btn--secondary:hover { background: var(--indigo-100); color: var(--accent-strong); border-color: var(--accent-strong); }
.btn--ghost-light { border-color: rgb(255 255 255 / 0.55); color: #fff; }
.btn--ghost-light:hover { background: rgb(255 255 255 / 0.12); color: #fff; border-color: #fff; }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: var(--fs-sm); }
.btn--lg { min-height: 54px; padding: 14px 26px; font-size: 1.0625rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px 14px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; }
.link-arrow svg { width: 18px; height: 18px; transition: transform var(--t) var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---- Header ----------------------------------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 255 255 / 0.92);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header__bar { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.site-header__logo { display: block; flex: none; }
.site-header__logo img { width: auto; height: 36px; }
@media (max-width: 400px) { .site-header__logo img { height: 32px; } }
.site-nav { display: flex; align-items: center; gap: 4px; margin-right: auto; }
.site-nav > a, .site-nav__toggle {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 10px 12px; border: 0; border-radius: 8px; background: none;
  color: var(--text-2); font: inherit; font-size: 0.9375rem; font-weight: 600; text-decoration: none; cursor: pointer;
}
.site-nav > a:hover, .site-nav__toggle:hover, .site-nav > a[aria-current="page"] { color: var(--heading); background: var(--mist-100); }
.site-nav__toggle svg { width: 16px; height: 16px; transition: transform var(--t) var(--ease); }
.site-nav__group { position: relative; }
.site-nav__menu {
  position: absolute; top: calc(100% + 8px); left: -12px; z-index: 10;
  display: none; width: 360px; padding: 10px;
  background: var(--white); border-radius: var(--radius); box-shadow: 0 0 0 1px var(--border), 0 24px 48px -18px rgb(28 26 43 / 0.28);
}
/* An invisible bridge over the 8px gap, so the menu stays open while the pointer moves down to it. */
.site-nav__menu::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 12px; }
.site-nav__group:hover .site-nav__menu, .site-nav__group:focus-within .site-nav__menu, .site-nav__group.is-open .site-nav__menu { display: block; }
.site-nav__group.is-open .site-nav__toggle svg { transform: rotate(180deg); }
.site-nav__menu a { display: flex; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--text); text-decoration: none; }
.site-nav__menu a:hover { background: var(--mist-50); }
.site-nav__menu .ico { flex: none; width: 36px; height: 36px; }
.site-nav__menu strong { display: block; color: var(--heading); font-size: 0.9375rem; }
.site-nav__menu small { display: block; color: var(--muted); font-size: 0.8125rem; line-height: 1.4; }
.site-nav__menu .site-nav__all { margin-top: 4px; border-top: 1px solid var(--border); border-radius: 0 0 10px 10px; color: var(--brand); font-weight: 700; font-size: var(--fs-sm); }
.site-header__actions { display: flex; align-items: center; gap: 14px; }
.site-header__phone { display: inline-flex; align-items: center; gap: 6px; color: var(--heading); font-weight: 700; font-size: 0.9375rem; text-decoration: none; white-space: nowrap; }
.site-header__phone svg { width: 16px; height: 16px; color: var(--brand); }
.menu-button { display: none; margin-left: auto; padding: 10px; border: 0; border-radius: 10px; background: none; color: var(--heading); cursor: pointer; }
.menu-button svg { width: 26px; height: 26px; }
.menu-button .icon-close { display: none; }
.site-header.is-open .menu-button .icon-open { display: none; }
.site-header.is-open .menu-button .icon-close { display: block; }

@media (max-width: 1200px) {
  .site-header__phone { display: none; }
}
@media (max-width: 1060px) {
  .menu-button { display: inline-flex; }
  /* backdrop-filter would make the header the containing block for the fixed action bar below */
  .site-header.is-open { background: var(--white); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .site-nav, .site-header__actions { display: none; }
  .site-header.is-open .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    height: calc(100dvh - 72px); overflow-y: auto;
    padding: 8px var(--gutter) 120px; background: var(--white); border-bottom: 1px solid var(--border);
  }
  .site-header.is-open .site-header__actions {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 2;
    display: flex; flex-direction: column; gap: 10px; padding: 14px var(--gutter) 18px;
    background: var(--white); border-top: 1px solid var(--border);
  }
  .site-header.is-open .site-header__phone { display: inline-flex; justify-content: center; padding: 6px; }
  .site-header.is-open .site-header__actions .btn { width: 100%; }
  .site-nav > a, .site-nav__toggle { justify-content: space-between; width: 100%; padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--border); font-size: 1.0625rem; }
  .site-nav > a:hover, .site-nav__toggle:hover { background: none; }
  .site-nav__menu { position: static; width: auto; padding: 4px 0 10px; box-shadow: none; }
  .site-nav__group:hover .site-nav__menu { display: none; }
  .site-nav__menu::before { display: none; }
  .site-nav__group.is-open .site-nav__menu, .site-nav__group:focus-within.is-open .site-nav__menu { display: block; }
  body.menu-open { overflow: hidden; }
}

/* ---- Icons ------------------------------------------------------------------------------------ */

.ico {
  display: inline-grid; place-items: center; flex: none;
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--indigo-50); color: var(--brand);
}
.ico svg { width: 55%; height: 55%; }
.ico--coral { background: var(--accent-100); color: var(--accent-700); }
.ico--night { background: rgb(255 255 255 / 0.1); color: var(--indigo-200); }
.svg-icon { width: 1em; height: 1em; }

/* ---- Home hero -------------------------------------------------------------------------------- */

.hero {
  --kai: 300px;
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--white);
}
.hero__photo { position: absolute; inset: 0; z-index: -2; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 72%; }
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, var(--white) 0%, rgb(255 255 255 / 0.95) 40%, rgb(255 255 255 / 0.86) 54%, rgb(255 255 255 / 0.3) 68%, transparent 78%);
}
.hero__inner {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "copy kai";
  align-items: end; column-gap: 48px;
  padding-block: clamp(3rem, 2rem + 4vw, 5.5rem) clamp(2.5rem, 1.5rem + 3vw, 4rem);
}
.hero__copy { grid-area: copy; max-width: 640px; padding-bottom: 8px; }
.hero h1 { font-size: clamp(2.375rem, 1.4rem + 3.4vw, 3.625rem); line-height: 1.06; max-width: 18ch; }
.hero .lead { max-width: 54ch; margin-top: 20px; }
.hero .btn-row { margin-top: 32px; }
.hero__kai { grid-area: kai; width: var(--kai); }
/* Kai's shaka on the home hero: the shaka hand (with its wrist cuff) is its own layer over the body and shakes at the
   wrist (12.9% across, 36.3% down the image), a few quick shakes, then a rest. Still for reduced motion. */
.kai-shaka { position: relative; }
.kai-shaka picture, .kai-shaka img { display: block; width: 100%; height: auto; }
.kai-shaka__hand { position: absolute; inset: 0; }
.kai-shaka__hand img { transform-origin: 12.9% 36.3%; }
@media (prefers-reduced-motion: no-preference) {
  .kai-shaka__hand img { animation: kai-shaka 4.5s ease-in-out 0.8s infinite; }
}
@keyframes kai-shaka {
  0%, 36%, 100% { transform: rotate(0deg); }
  4% { transform: rotate(10deg); }
  8% { transform: rotate(-10deg); }
  12% { transform: rotate(10deg); }
  16% { transform: rotate(-10deg); }
  20% { transform: rotate(10deg); }
  24% { transform: rotate(-10deg); }
  28% { transform: rotate(6deg); }
  32% { transform: rotate(-3deg); }
}

.hero__facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 28px 0 0; padding: 0; list-style: none; }
.hero__facts li { display: inline-flex; align-items: center; gap: 8px; color: var(--heading); font-size: 0.9375rem; font-weight: 600; }
.hero__facts svg { width: 18px; height: 18px; color: var(--brand); }
@media (max-width: 1279px) {
  .hero__scrim { background: linear-gradient(90deg, var(--white) 0%, rgb(255 255 255 / 0.95) 50%, rgb(255 255 255 / 0.84) 62%, rgb(255 255 255 / 0.25) 78%, transparent 88%); }
}
@media (max-width: 959px) {
  .hero { --kai: 200px; }
  .hero__inner { column-gap: 24px; }
}
@media (max-width: 639px) {
  .hero__inner { grid-template-columns: 1fr; grid-template-areas: "kai" "copy"; padding-top: 20px; }
  .hero__kai { width: 132px; justify-self: end; margin-bottom: -8px; }
  .hero h1 { font-size: 2.25rem; }
  .hero .btn-row .btn { flex: 1 1 100%; }
  .hero__photo img { object-position: 50% 100%; }
  .hero__scrim { background: linear-gradient(180deg, rgb(255 255 255 / 0.55) 0%, rgb(255 255 255 / 0.92) 22%, rgb(255 255 255 / 0.96) 100%); }
}

/* ---- Page hero (inner pages) ------------------------------------------------------------------ */

.page-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(70% 90% at 100% 0%, rgb(203 200 255 / 0.45), transparent 70%),
    linear-gradient(180deg, var(--indigo-50) 0%, var(--white) 100%);
  border-bottom: 1px solid var(--border);
}
.page-hero__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 40px; padding-block: clamp(2.75rem, 1.8rem + 3.5vw, 5rem); }
.page-hero__copy { max-width: 720px; }
/* A product's own logo above the heading (TruerunEngine). Its brand guide: at least 20 px tall, with clear space of
   half the symbol's height around it (the symbol is the logo's full height, so half of it below). */
.page-hero__logo { display: block; width: auto; height: clamp(32px, 1.6rem + 0.9vw, 40px); margin: 0 0 clamp(16px, 0.8rem + 0.5vw, 20px); }
.page-hero .lead { margin-top: 18px; max-width: 62ch; }
.page-hero .btn-row { margin-top: 28px; }
.page-hero__kai { width: 230px; margin-bottom: calc(clamp(2.75rem, 1.8rem + 3.5vw, 5rem) * -1); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; padding: 0; list-style: none; color: var(--muted); font-size: var(--fs-sm); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--mist-300); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.chips li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px; background: var(--white);
  box-shadow: 0 0 0 1px var(--border); color: var(--heading); font-size: 0.875rem; font-weight: 600;
}
.chips svg { width: 16px; height: 16px; color: var(--brand); }
/* "Kai around the islands": the round hero scenes on the service pages, with a slow float. */
.page-hero__inner:has(.page-hero__scene) { align-items: center; }
.page-hero__scene { display: block; width: clamp(280px, 26vw, 380px); }
.page-hero__scene img { width: 100%; height: auto; filter: drop-shadow(0 24px 30px rgb(28 26 43 / 0.18)); }
@media (prefers-reduced-motion: no-preference) {
  .page-hero__scene img { animation: kai-float 6s ease-in-out infinite; }
}
@keyframes kai-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 860px) {
  .page-hero__inner { grid-template-columns: 1fr; }
  .page-hero__kai { display: none; }
  .page-hero__scene { width: min(240px, 70vw); margin: 4px auto 0; }
}

/* ---- Cards and grids -------------------------------------------------------------------------- */

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

.card {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  padding: 26px; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-card);
  transition: box-shadow var(--t) var(--ease), transform var(--t) var(--ease);
}
.card h3 { font-size: 1.1875rem; }
.card p { color: var(--text-2); }
.card--link:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-2px); }
.card__link { margin-top: auto; padding-top: 6px; }
.card__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card .ico { margin-bottom: 4px; }
.card--flat { box-shadow: none; background: var(--mist-50); }
.card--outcome h3 { font-size: 1.125rem; }
.card__tag { align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: var(--accent-100); color: var(--accent-700); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }

/* Service rows on the services page */
.service-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 22px; align-items: start; padding: 28px; border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-card); }
.service-row + .service-row { margin-top: 16px; }
.service-row h3 { font-size: 1.375rem; }
.service-row p { margin-top: 8px; color: var(--text-2); }
.service-row ul { margin-top: 12px; }
@media (max-width: 760px) { .service-row { grid-template-columns: 1fr; } }

/* ---- Lists ------------------------------------------------------------------------------------ */

.checklist { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.checklist li { position: relative; padding-left: 34px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--indigo-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d0645' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.section--night .checklist li::before { background-color: rgb(255 255 255 / 0.12); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.checklist--compact { gap: 8px; font-size: 0.9375rem; }
.checklist strong { color: var(--heading); }
.section--night .checklist strong { color: #fff; }

/* ---- Split (text and image) ------------------------------------------------------------------- */

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: center; }
.split--reverse .split__media { order: -1; }
.split__body > * + * { margin-top: 18px; }
.split__body .checklist { margin-top: 22px; }
.split__media img { width: 100%; border-radius: var(--radius-lg); box-shadow: 0 0 0 1px rgb(28 26 43 / 0.06), 0 30px 60px -30px rgb(28 26 43 / 0.4); }
.split__media--kai img { box-shadow: none; border-radius: 0; max-width: 300px; margin-inline: auto; }
.split__media--wide img { max-width: 560px; }
/* "Kai around the islands": small round hero badges that link to the service pages (About page). */
.kai-badges__intro { margin-top: 26px; color: var(--heading); font-weight: 600; }
.kai-badges { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 12px; padding: 0; list-style: none; }
.kai-badges a { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--heading); font-size: 0.875rem; font-weight: 700; text-align: center; text-decoration: none; }
.kai-badges__img img { display: block; width: 100%; max-width: 120px; height: auto; transition: transform var(--t) var(--ease); }
.kai-badges a:hover img { transform: translateY(-3px) rotate(-2deg); }
.kai-badges a:hover span { color: var(--brand); }
.section--night .split__media--wide img { filter: drop-shadow(0 0 1px rgb(255 255 255 / 0.4)); }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
}

/* The story block on service pages: situation, stakes, the buyer's question and our answer */
.story { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 1rem + 4vw, 4.5rem); }
.story__setup > * + * { margin-top: 16px; }
.story__kai { display: flex; justify-content: center; padding-top: 16px; }
.story__kai img { width: min(250px, 70%); height: auto; }
.story__kai--wide img { width: 100%; max-width: 520px; }
.story__setup .stakes { padding-left: 16px; border-left: 3px solid var(--accent-400); color: var(--heading); font-weight: 600; }
.story__answer { padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-card); }
.story__answer h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2rem); }
.story__answer > * + * { margin-top: 18px; }
.story__note { color: var(--muted); font-size: 0.9375rem; }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; } .story__kai img { width: 170px; } .story__kai--wide img { width: 100%; max-width: 420px; } }

/* Proof callout */
.proof { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: center; padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); border-radius: var(--radius-lg); background: var(--night); color: #fff; }
.proof__stat { color: var(--accent-400); font-size: clamp(2.5rem, 1.6rem + 3vw, 3.75rem); font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.proof h2, .proof h3 { color: #fff; font-size: clamp(1.25rem, 1rem + 1vw, 1.625rem); }
.proof p { margin-top: 8px; color: var(--on-purple); }
@media (max-width: 640px) { .proof { grid-template-columns: 1fr; gap: 14px; } }

/* ---- Steps ------------------------------------------------------------------------------------ */

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: step; margin: 0; padding: 0; list-style: none; }
.steps li { position: relative; padding: 24px; border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-card); }
.steps li::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 16px;
  border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800;
}
.steps h3 { font-size: 1.125rem; }
.steps p { margin-top: 8px; color: var(--text-2); font-size: 0.9375rem; }
.steps__when { display: block; margin-top: 12px; color: var(--brand); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
@media (max-width: 1024px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---- Industry examples ------------------------------------------------------------------------ */

.industry { padding: 26px; border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-card); }
.industry__head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.industry h3 { font-size: 1.1875rem; }
.industry .checklist { font-size: 0.9375rem; }
.industry__note { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.875rem; }

/* ---- FAQ -------------------------------------------------------------------------------------- */

.faq { display: grid; gap: 12px; }
.faq details { border-radius: var(--radius); background: var(--white); box-shadow: 0 0 0 1px var(--border); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; color: var(--heading); font-size: 1.0625rem; font-weight: 700; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 22px; height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d0645' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform var(--t) var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 22px 20px; color: var(--text-2); }
.faq details > div p + p { margin-top: 10px; }

/* ---- CTA band --------------------------------------------------------------------------------- */

.cta-band { position: relative; isolation: isolate; overflow: hidden; color: #fff; }
.cta-band__photo { position: absolute; inset: 0; z-index: -2; }
.cta-band__photo img { width: 100%; height: 100%; object-fit: cover; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgb(20 3 47 / 0.92) 0%, rgb(29 6 69 / 0.82) 55%, rgb(29 6 69 / 0.6) 100%); }
.cta-band__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; padding-block: clamp(3.5rem, 2rem + 5vw, 5.5rem); }
.cta-band h2 { color: #fff; max-width: 20ch; }
.cta-band p { max-width: 56ch; margin-top: 14px; color: var(--on-purple); font-size: var(--fs-lg); }
.cta-band .btn-row { justify-content: flex-end; }
.cta-band__note { margin-top: 12px !important; font-size: 0.9375rem !important; color: rgb(255 255 255 / 0.8) !important; }
@media (max-width: 860px) {
  .cta-band__inner { grid-template-columns: 1fr; }
  .cta-band .btn-row { justify-content: flex-start; }
}

/* ---- Contact block ---------------------------------------------------------------------------- */

.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 1rem + 3vw, 3.5rem); align-items: start; }
.contact-card { padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-card); }
.contact-card h2 { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem); }
.contact-card > p { margin-top: 8px; color: var(--text-2); }
.contact-side { position: sticky; top: 96px; }
.contact-side > * + * { margin-top: 18px; }
.contact-list { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list strong { display: block; color: var(--heading); }
.contact-list a { font-weight: 600; }
.contact-list span { color: var(--text-2); }
.contact-kai { display: flex; gap: 16px; align-items: center; padding: 20px; border-radius: var(--radius-lg); background: var(--indigo-50); }
.contact-kai img { width: 84px; flex: none; }
.contact-kai p { color: var(--heading); font-weight: 600; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } .contact-side { position: static; } }

/* ---- Universal forms --------------------------------------------------------------------------
   Forms use the backend's standard markup (.trf, shared/src/forms/render.js) with its own small stylesheet,
   inlined after this file. "body .trf" outranks it, so these rules give the forms this site's look. */

body .trf { margin-top: 22px; }
body .trf form { gap: 18px 16px; }
body .trf .trf-label { color: var(--heading); font-size: 0.9375rem; }
body .trf .trf-req { color: var(--accent-700); }
body .trf input:not([type=checkbox]):not([type=radio]), body .trf select, body .trf textarea {
  min-height: 48px; padding: 11px 14px; border: 1px solid var(--border-strong); border-radius: 10px; color: var(--text); font-size: 1rem;
}
body .trf textarea { min-height: 140px; }
body .trf input:focus, body .trf select:focus, body .trf textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgb(29 6 69 / 0.14); }
body .trf input[type=checkbox], body .trf input[type=radio] { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--brand); flex: none; }
body .trf .trf-check, body .trf .trf-choice { color: var(--text-2); }
body .trf .trf-check a { color: var(--brand); }
body .trf button { min-height: 52px; padding: 13px 26px; border-radius: 10px; background: var(--accent); font-size: 1.0625rem; }
body .trf button:hover { background: var(--accent-strong); }
body .trf button.trf-prev { background: transparent; color: var(--brand); border: 2px solid var(--brand); }
body .trf .trf-done { padding: 16px 18px; border-radius: 12px; background: var(--indigo-50); color: var(--purple-900); font-weight: 600; box-shadow: 0 0 0 1px var(--indigo-200); }
body .trf .trf-fail { padding: 16px 18px; border-radius: 12px; font-weight: 600; }

/* ---- Prose (legal pages, simple pages) -------------------------------------------------------- */

.prose { color: var(--text); font-size: 1.0625rem; line-height: 1.7; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2em; font-size: 1.5rem; }
.prose h3 { margin-top: 1.6em; font-size: 1.1875rem; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 0.4em; }
.prose strong { color: var(--heading); }

/* ---- About ------------------------------------------------------------------------------------ */

.values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 760px) { .values { grid-template-columns: 1fr; } }
.facts-band { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.facts-band div { padding: 22px; border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-card); }
.facts-band strong { display: block; color: var(--heading); font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.facts-band span { display: block; margin-top: 6px; color: var(--text-2); font-size: 0.9375rem; }
@media (max-width: 900px) { .facts-band { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.team-card { display: flex; flex-direction: column; align-items: center; padding: 28px 20px 24px; border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-card); text-align: center; }
.team-card picture { display: block; width: min(180px, 100%); }
.team-card img { display: block; width: 100%; height: auto; aspect-ratio: 1; filter: drop-shadow(0 6px 14px rgba(28, 26, 43, 0.14)); }
.team-card h3 { margin: 18px 0 4px; font-size: 1.1875rem; }
.team-card p { margin: 0; color: var(--text-2); font-size: 0.9375rem; }
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (max-width: 420px) { .team-card { padding: 22px 12px 18px; } .team-card h3 { font-size: 1.0625rem; } }

/* Landing pages (/go/<slug>, content/shell/landing.md): logo and a booking button, no menu, on every screen size. */
.site-header--landing .site-header__bar { justify-content: space-between; }
.site-header--landing .site-header__actions--landing { display: flex; }
@media (max-width: 1200px) { .site-header--landing .site-header__phone { display: inline-flex; } }
.site-header--landing .hb-short { display: none; }
@media (max-width: 640px) { .site-header--landing .site-header__phone { display: none; } .site-header--landing .site-header__logo img { height: 30px; } }
@media (max-width: 480px) { .site-header--landing .hb-long { display: none; } .site-header--landing .hb-short { display: inline; } }

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

.site-footer { background: var(--purple-950); color: var(--on-purple); font-size: 0.9375rem; }
.site-footer a { color: var(--on-purple); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-block: 64px 48px; }
.site-footer__brand img { width: auto; height: 36px; max-width: 100%; }
.site-footer__brand p { margin-top: 18px; max-width: 34ch; }
.site-footer__parent { display: inline-flex; margin-top: 16px; font-weight: 700; color: #fff !important; }
.site-footer h2 { margin-bottom: 14px; color: #fff; font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; }
.site-footer ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.site-footer__contact li { display: flex; gap: 10px; }
.site-footer__contact svg { width: 18px; height: 18px; margin-top: 3px; flex: none; color: var(--accent-400); }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-block: 22px 28px; border-top: 1px solid rgb(255 255 255 / 0.12); color: var(--indigo-200); font-size: 0.8125rem; }
.site-footer__bottom ul { display: flex; flex-wrap: wrap; gap: 18px; }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: 1fr; } }

.site-footer__landing { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding-block: 36px 28px; }
.site-footer__landing img { width: auto; height: 30px; }
.site-footer__landing .site-footer__contact { display: flex; flex-wrap: wrap; gap: 12px 28px; }

/* Landing page blocks (shared/src/landing/render.js has the base styles; these match this site). */
.lp { --lp-ink: var(--text); --lp-muted: var(--text-2); --lp-line: var(--border); --lp-soft: var(--mist-50); --lp-tint: var(--mist-100); }
.lp .lp-btn { border-radius: var(--radius); }
.lp .booking-slot { margin-top: 20px; }

/* ---- 404 -------------------------------------------------------------------------------------- */

.not-found { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 40px; align-items: center; }
.not-found img { width: 300px; }
@media (max-width: 640px) { .not-found { grid-template-columns: 1fr; } .not-found img { width: 220px; } }

/* ---- Reveal on scroll (only with motion allowed; content is visible without JS) ---------------- */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}

/* ---- Meeting scheduler (shared/static/js/booking.js) -------------------------------------------- */
/* Kai's chat window (shared/static/js/chat.js): navy leads, ocean mist behind the messages. */
.kc { --kc-accent: var(--purple-900); --kc-accent-ink: #fff; --kc-soft: var(--mist-50); --kc-border: var(--mist-200); --kc-muted: var(--ink-600); --kc-radius: 18px; --kc-focus: var(--indigo-400); --kc-shadow: 0 18px 48px rgba(20, 3, 47, .24); font-family: inherit; color: var(--ink-900); }
.kc .kc-msg.ai { color: var(--ink-900); }

.booking-slot { margin-top: 20px; --bk-accent: var(--accent); --bk-accent-ink: #fff; --bk-soft: var(--indigo-100); --bk-border: var(--mist-200); --bk-muted: var(--text-2); --bk-radius: var(--radius-lg); }
.booking-slot .bk-card { border: 0; padding: 0; background: none; }
.booking-slot .bk-btn { box-shadow: 0 8px 20px -10px rgb(29 6 69 / 0.4); }
