/* ==========================================================================
   LSPcare design language — "Bedside Calm"
   KAORI's calm, premium fintech structure (warm linen canvas, deep surfaces,
   mono eyebrows, layered floating cards) + Streaming X's immersive channel
   presentation (tilted card wall, full-bleed category cards, rails).
   Anchored on the LSPcare logo teal #1CA0A8.
   ========================================================================== */

@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/geist-mono-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
  /* Brand — LSPcare primary teal stays the one saturated colour */
  --teal-500: #1ca0a8;          /* LSPcare primary: the logo teal */
  --teal-600: #178a91;
  --teal-btn: #15797f;           /* button fill: logo hue, deep enough for white text (5.2:1) */
  --teal-btn-hover: #136c72;     /* white text 6.2:1 */
  --teal-700: #17616f;          /* teal text on light surfaces (AA) */
  --teal-300: #9dd6e0;          /* light teal accent on dark surfaces */
  --teal-200: #bfe3ea;
  --teal-100: #d5eef2;          /* teal pill */
  --teal-50: #e7f4f6;           /* teal tint surface */

  /* Deep surfaces: deep teal, between the proposal's #134949 and the bedside app's navy-teal */
  --lagoon-950: #0a1b21;
  --lagoon-900: #0e232a;        /* cinema band */
  --lagoon-800: #122b33;
  --lagoon-700: #143740;        /* primary dark surface */
  --lagoon-600: #1c4651;        /* raised card on dark */
  --slate-500: #24677a;         /* mid-teal tile (app #2D7F98 family) */
  --sage-100: #d9ebef;          /* tinted light tile */

  /* Neutrals (cool, teal-tinted) */
  --ink: #13242a;
  --ink-2: #405860;
  --ink-3: #5a7177;
  --linen: #f4f7f7;
  --linen-2: #e3eaeb;
  --white: #ffffff;
  --cream: #f4f7f7;
  --line: rgba(19, 36, 42, 0.1);
  --line-strong: rgba(19, 36, 42, 0.18);
  --line-on-dark: rgba(244, 247, 247, 0.1);
  --text-on-dark: #eef5f6;
  --muted-on-dark: rgba(224, 238, 241, 0.68);

  /* Supporting */
  --signal: #e5484d;            /* LIVE indicator — echoes the logo's red dot */
  --amber-100: #fbf0d6;
  --amber-300: #f6c766;
  --amber-800: #6e4a00;
  --danger: #b42318;
  --danger-bg: #fdecea;
  --success-bg: #dff0f1;

  /* Type */
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Shape */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Depth */
  --shadow-1: 0 1px 2px rgba(19, 36, 42, 0.06), 0 1px 1px rgba(19, 36, 42, 0.04);
  --shadow-2: 0 24px 24px -16px rgba(19, 36, 42, 0.14), 0 2px 3px rgba(19, 36, 42, 0.06);
  --shadow-3: 0 40px 60px -28px rgba(19, 36, 42, 0.28), 0 3px 6px rgba(19, 36, 42, 0.06);
  --shadow-float: 0 12px 32px -8px rgba(6, 18, 23, 0.45);
  /* Elevation for layered UI scenes: hairline ring + contact shadow + ambient shadow.
     The ring separates same-coloured surfaces (white chip on white card). */
  --elev-1: 0 0 0 1px rgba(19, 36, 42, 0.07), 0 1px 2px rgba(19, 36, 42, 0.06), 0 12px 28px -14px rgba(19, 36, 42, 0.28);
  --elev-2: 0 0 0 1px rgba(19, 36, 42, 0.07), 0 2px 4px rgba(19, 36, 42, 0.06), 0 30px 50px -24px rgba(19, 36, 42, 0.42);
  --elev-chip: 0 0 0 1px rgba(19, 36, 42, 0.09), 0 2px 4px -1px rgba(19, 36, 42, 0.10), 0 10px 22px -6px rgba(19, 36, 42, 0.26);
  --elev-dark-1: 0 0 0 1px rgba(244, 247, 247, 0.08), 0 2px 4px rgba(0, 0, 0, 0.25), 0 24px 44px -20px rgba(0, 0, 0, 0.6);
  --elev-dark-2: 0 0 0 1px rgba(0, 0, 0, 0.12), 0 3px 6px rgba(0, 0, 0, 0.18), 0 34px 60px -22px rgba(0, 0, 0, 0.72);
  --elev-chip-dark: 0 0 0 1px rgba(0, 0, 0, 0.18), 0 3px 6px -1px rgba(0, 0, 0, 0.3), 0 12px 26px -8px rgba(0, 0, 0, 0.55);
  --ring: 0 0 0 3px rgba(28, 160, 168, 0.35);

  /* Layout */
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(72px, 10vw, 128px);
  --header-h: 72px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 220ms;
}

/* ---------- 2. Base ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h); /* sections land flush under the sticky header */
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--linen);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
}

body > main { flex: 1 0 auto; }

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

a { color: var(--teal-700); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; }
p { margin: 0; }

button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--teal-600); outline-offset: 3px; border-radius: 6px; }
/* Light teal focus ring on dark sections (keeps 3:1 against the background) */
:is(.on-dark, .site-header, .page-head, .cinema, .cta-band, .mobile-menu, .summary-card, .bedside-pricing) :focus-visible { outline-color: var(--teal-300); }

::selection { background: var(--teal-200); color: var(--ink); }

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

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  padding: 10px 16px; border-radius: var(--r-pill);
  background: var(--teal-btn); color: var(--white); font-weight: 600; text-decoration: none;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 12px; color: var(--ink); }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container--narrow { width: min(100% - 2 * var(--gutter), 760px); margin-inline: auto; }
.narrow-col { max-width: 760px; }

.no-js .js-only { display: none !important; }
.js .no-js-only { display: none !important; }
[hidden] { display: none !important; }

/* ---------- 3. Typography ------------------------------------------------ */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal-700);
}
.eyebrow::before {
  content: ""; width: 18px; height: 1px; background: currentColor; opacity: 0.6;
}
.on-dark .eyebrow, .eyebrow--on-dark { color: var(--teal-300); }
.section-head--center .eyebrow::after, .eyebrow--center::after {
  content: ""; width: 18px; height: 1px; background: currentColor; opacity: 0.6;
}

.display {
  font-size: clamp(2.5rem, min(5.4vw, 9vh), 4.6rem);
  font-weight: 500; letter-spacing: -0.045em; line-height: 1.02;
}

/* Section titles: KAORI's light 400 at large size — contrast against the 500 headline */
.h2 { font-size: clamp(2.2rem, 4.2vw, 3.5rem); font-weight: 400; letter-spacing: -0.045em; line-height: 1.04; text-wrap: balance; }
.h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); letter-spacing: -0.025em; line-height: 1.2; }
.lead { font-size: clamp(1rem, 1.25vw, 1.125rem); line-height: 1.6; color: var(--ink-3); }
.on-dark .lead { color: var(--muted-on-dark); }
.muted { color: var(--ink-3); }
.mono { font-family: var(--font-mono); letter-spacing: 0.02em; }

.section { padding-block: var(--section); }
.section-head { display: grid; gap: 18px; max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head--split {
  max-width: none; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: end; gap: 24px 64px;
}

/* ---------- 4. Buttons --------------------------------------------------- */
.btn {
  --btn-bg: var(--teal-btn); --btn-fg: var(--white); --btn-bd: transparent;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border: 1px solid var(--btn-bd); border-radius: var(--r-pill);
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 600; font-size: 15px; letter-spacing: -0.005em; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease),
    border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.btn:hover { --btn-bg: var(--teal-btn-hover); color: var(--btn-fg); transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(21, 121, 127, 0.75); }
.btn:active { transform: translateY(0); }
.btn:disabled, .btn[aria-disabled="true"] {
  --btn-bg: var(--linen-2); --btn-fg: var(--ink-3); --btn-bd: transparent;
  cursor: not-allowed; transform: none; box-shadow: none; pointer-events: none;
}
.on-dark .btn:disabled, .on-dark .btn[aria-disabled="true"] { opacity: 0.5; }
.btn .btn-arrow { transition: transform var(--dur) var(--ease); }
.btn:hover .btn-arrow { transform: translateX(3px); }

.btn--lg { min-height: 56px; padding: 14px 28px; font-size: 16px; }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.btn--block { width: 100%; white-space: normal; text-align: center; }

.btn--dark { --btn-bg: var(--lagoon-700); --btn-fg: var(--white); }
.btn--dark:hover { --btn-bg: var(--lagoon-600); box-shadow: 0 10px 24px -12px rgba(20, 55, 64, 0.7); }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line-strong); }
.btn--ghost:hover { --btn-bg: var(--white); box-shadow: var(--shadow-1); }

.btn--ghost-dark { --btn-bg: rgba(255, 255, 255, 0.04); --btn-fg: var(--text-on-dark); --btn-bd: var(--line-on-dark); }
.btn--ghost-dark:hover { --btn-bg: rgba(255, 255, 255, 0.1); box-shadow: none; }

.btn--light { --btn-bg: var(--linen); --btn-fg: var(--ink); }
.btn--light:hover { --btn-bg: var(--white); box-shadow: var(--shadow-float); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-block: -11px; font-weight: 600; text-decoration: none;
  color: var(--teal-700);
}
.link-arrow:hover { color: var(--ink); }
.link-arrow svg { transition: transform var(--dur) var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }
.on-dark .link-arrow { color: var(--teal-300); }
.on-dark .link-arrow:hover { color: var(--white); }

/* ---------- 5. Header & navigation -------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  color: var(--text-on-dark);
  background: var(--lagoon-700);
  transition: background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.site-header.is-scrolled {
  background: rgba(20, 55, 64, 0.94);
  box-shadow: 0 1px 0 var(--line-on-dark), 0 18px 40px -24px rgba(0, 0, 0, 0.5);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  @media (min-width: 900px) {
    .site-header.is-scrolled {
      background: rgba(20, 55, 64, 0.78);
      -webkit-backdrop-filter: saturate(140%) blur(14px);
      backdrop-filter: saturate(140%) blur(14px);
    }
  }
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; min-height: 44px; border-radius: 8px; }
.brand img { width: 172px; height: auto; } /* wide wordmark, about 33px tall */

.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav__link {
  padding: 9px 14px; border-radius: var(--r-pill);
  color: var(--muted-on-dark); font-size: 14.5px; font-weight: 500; text-decoration: none;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.site-nav__link:hover, .site-nav__link[aria-current="page"] { color: var(--white); background: rgba(255, 255, 255, 0.07); }
.site-nav__divider { width: 1px; height: 22px; margin: 0 10px; background: var(--line-on-dark); }

.menu-toggle {
  display: none; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 16px; border: 1px solid var(--line-on-dark); border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.04); color: var(--text-on-dark); font-weight: 600; font-size: 14px; cursor: pointer;
}
.menu-toggle__icon { position: relative; width: 16px; height: 10px; }
.menu-toggle__icon::before, .menu-toggle__icon::after {
  content: ""; position: absolute; left: 0; width: 100%; height: 1.5px; border-radius: 2px; background: currentColor;
  transition: transform var(--dur) var(--ease), top var(--dur) var(--ease);
}
.menu-toggle__icon::before { top: 1px; }
.menu-toggle__icon::after { top: 7.5px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon::before { top: 4.5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon::after { top: 4.5px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0; z-index: 99;
  display: flex; flex-direction: column; gap: 6px;
  padding: 24px var(--gutter) 32px;
  background: var(--lagoon-800); color: var(--text-on-dark);
  overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
/* Opening only: the panel fades in under the header and the links rise one after another.
   Closing stays instant, it usually means a link was tapped and the page is leaving anyway. */
.mobile-menu { animation: menu-fade 160ms var(--ease) backwards; }
.mobile-menu > * { animation: rise-xs 280ms var(--ease) backwards; }
.mobile-menu > :nth-child(2) { animation-delay: 30ms; }
.mobile-menu > :nth-child(3) { animation-delay: 60ms; }
.mobile-menu > :nth-child(4) { animation-delay: 90ms; }
.mobile-menu > :nth-child(n+5) { animation-delay: 120ms; }
@keyframes menu-fade { from { opacity: 0; } }
.mobile-menu a:not(.btn) {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 4px; border-bottom: 1px solid var(--line-on-dark);
  color: var(--text-on-dark); font-size: 22px; letter-spacing: -0.02em; text-decoration: none;
}
.mobile-menu .btn { margin-top: 24px; }
.menu-open { overflow: hidden; }
.menu-fallback { display: none; }
@media (max-width: 960px) { .menu-fallback { display: inline-flex; } }

/* Checkout header: brand only, no navigation away from payment */
.is-checkout { --header-h: 64px; } /* keeps anchor scroll offsets matched to the shorter header */
.site-header--checkout .site-header__inner { height: var(--header-h); }
.secure-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted-on-dark);
}
.secure-tag svg { color: var(--teal-300); }

/* ---------- 6. Landing hero --------------------------------------------- */
.on-dark { color: var(--text-on-dark); }

.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(70% 55% at 40% 112%, rgba(28, 160, 168, 0.32), transparent 72%),
    radial-gradient(50% 60% at 78% 40%, rgba(28, 160, 168, 0.08), transparent 70%),
    linear-gradient(180deg, var(--lagoon-900) 0%, var(--lagoon-700) 58%, #17505a 100%);
}
/* Even vertical line screen at the bottom (3px lines with 3px gaps). The soft ellipse masks only vary
   how high it fades up, giving a gentle wave edge; the lines themselves stay regular. */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: repeating-linear-gradient(90deg, rgba(157, 214, 224, 0.2) 0 3px, transparent 3px 6px);
  --wave:
    radial-gradient(28% 34% at 6% 100%, #000 0%, transparent 100%),
    radial-gradient(22% 22% at 27% 100%, #000 0%, transparent 100%),
    radial-gradient(30% 40% at 48% 100%, #000 0%, transparent 100%),
    radial-gradient(24% 26% at 70% 100%, #000 0%, transparent 100%),
    radial-gradient(30% 36% at 94% 100%, #000 0%, transparent 100%);
  -webkit-mask-image: var(--wave);
  mask-image: var(--wave);
}
/* Fine grain over the whole band so the gradient never shows banding */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  opacity: 0.07; mix-blend-mode: overlay;
}
.hero__inner {
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); align-items: center;
  gap: clamp(32px, 5vw, 72px);
  min-height: min(760px, calc(100vh - var(--header-h)));
  min-height: min(760px, calc(100svh - var(--header-h)));
  /* scale with viewport height so short laptop screens stay balanced */
  padding-block: clamp(32px, 6vh, 88px) clamp(48px, 9vh, 104px);
}
/* First screen: the hero fills the viewport on its own, so the cinema band starts below the fold.
   Capped so tall monitors don't get a huge, empty hero. */
@media (min-width: 961px) { /* stacked mobile layout keeps its own sizes */
  .hero__inner {
    min-height: min(1040px, calc(100vh - var(--header-h)));
    min-height: min(1040px, calc(100svh - var(--header-h)));
  }
}
.hero__copy { display: grid; gap: 28px; justify-items: start; position: relative; z-index: 2; }
.hero__copy .lead { max-width: 540px; }
/* LSPcare mark sits above the headline, larger than the header wordmark so the product brand leads.
   At full size its "care" lettering roughly matches the headline's lowercase height. */
.hero__logo { width: clamp(140px, 14.5vw, 210px); height: auto; margin-bottom: 4px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
/* The headline and the button are separate groups, so the button gets more room above it than the
   logo-to-headline gap: about 44px on desktop, 32px on phones (copy column gap is 28px). */
.hero__copy .hero__actions { margin-top: clamp(4px, 1.1vw, 16px); }
.trust-row { display: inline-flex; align-items: center; gap: 8px; margin: -6px 0 0; color: var(--muted-on-dark); font-size: 14px; }
.trust-row svg { color: var(--teal-300); flex: 0 0 auto; }

/* Hero visual: perspective channel wall */
.hero__visual {
  position: relative;
  height: clamp(420px, min(46vw, calc(100vh - var(--header-h) - 150px)), 600px);
  height: clamp(420px, min(46vw, calc(100svh - var(--header-h) - 150px)), 600px);
}

.live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--signal);
  box-shadow: 0 0 0 0 rgba(229, 72, 77, 0.6); animation: live-pulse 2.2s ease-out infinite;
}

@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(229, 72, 77, 0.55); }
  70%, 100% { box-shadow: 0 0 0 8px rgba(229, 72, 77, 0); }
}

/* ---------- 7. Channel showcase (cinema band) --------------------------- */
.cinema {
  position: relative; overflow: hidden;
  /* Starts at the primary dark surface under a hairline from the hero, settles into the deep band, with a
     faint teal glow behind the channel row. The bottom edge into the light section stays crisp. */
  background:
    radial-gradient(55% 40% at 50% 46%, rgba(28, 160, 168, 0.09), transparent 70%),
    linear-gradient(180deg, var(--lagoon-700) 0%, var(--lagoon-900) 42%, var(--lagoon-900) 100%);
  color: var(--text-on-dark);
  border-top: 1px solid var(--line-on-dark);
  padding-block: clamp(64px, 8vw, 104px) clamp(72px, 9vw, 120px);
  /* Fill the viewport under the sticky header so a jump to #whats-on doesn't leave a sliver
     of the light packages section showing at the bottom; content sits centred in the band. */
  display: flex; flex-direction: column; justify-content: center;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
}
.cinema .section-head .lead { color: var(--muted-on-dark); }

/* TV-menu shelf. The art is shown whole (these are channel title cards, so cropping cuts the logos),
   the title sits underneath like a TV menu, and a blurred, saturated copy of each tile glows
   behind it so every channel lights the dark band in its own colours. */
.channel-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; } /* one row, like a TV menu */
.channel-card { position: relative; display: grid; gap: 14px; color: var(--white); }
.channel-card__media { position: relative; aspect-ratio: 16 / 10; isolation: isolate; perspective: 900px; } /* TV-shaped */
/* Hover tilt: the same small turn-and-lift as the How it works devices. The art and its badge
   move together; the glow stays put underneath. */
.channel-card__tile { position: relative; z-index: 1; height: 100%; transform-origin: 50% 60%; transition: transform 700ms var(--ease); }
.channel-card:hover .channel-card__tile { transform: translateY(-6px) rotateX(6deg) rotateY(-8deg); }
.channel-card__art { /* radius scaled to the tile: ~8% of its height, like the step panels */
  position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 45%;
  border-radius: var(--r-sm);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 24px 40px -24px rgba(0, 0, 0, 0.8);
}
.channel-card__glow {
  position: absolute; z-index: 0; inset: 10% 6% -6%; width: 88%; height: 96%; object-fit: cover;
  border-radius: var(--r-md); filter: blur(28px) saturate(1.25); opacity: 0.3;
  transform: translateY(10px) scale(0.92); transition: opacity 700ms var(--ease), transform 700ms var(--ease);
  pointer-events: none;
}
.channel-card:hover .channel-card__glow { opacity: 0.48; transform: translateY(12px) scale(0.96); }
.channel-card__live {
  position: absolute; z-index: 2; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 7px;
  border-radius: var(--r-pill); background: rgba(10, 27, 33, 0.72); color: #ffb3b5;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.channel-card__text { display: grid; gap: 4px; }
.channel-card h3 { font-size: clamp(1.1rem, 1.35vw, 1.3rem); font-weight: 400; letter-spacing: -0.035em; line-height: 1.1; }
.channel-card__meta { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal-300); }

/* Stat row (KAORI-style numbers): the service's real figures, numerals on a shared top line */
.stat-row {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: clamp(40px, 5vw, 64px) 0 0;
  border-top: 1px solid var(--line-on-dark);
}
.stat-row > div { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 28px 24px 4px; }
.stat-row > div:first-child { padding-left: 0; }
.stat-row > div + div { border-left: 1px solid var(--line-on-dark); }
.stat-row dd { order: -1; display: flex; align-items: baseline; gap: 8px; margin: 0; }
.stat__value { font-size: clamp(3rem, 5.4vw, 4.75rem); font-weight: 300; letter-spacing: -0.055em; line-height: 0.9; color: var(--white); font-variant-numeric: tabular-nums; }
.stat__unit { font-size: clamp(1.1rem, 1.6vw, 1.4rem); font-weight: 400; letter-spacing: -0.02em; color: var(--teal-300); }
.stat-row dt { max-width: 26ch; font-size: 14.5px; line-height: 1.45; color: var(--muted-on-dark); }

/* ---------- 8. How it works --------------------------------------------- */
/* The hero button jumps here: skip most of the section's top padding, so the heading lands 40px under
   the sticky header and all three steps fit on a laptop screen (adds to html scroll-padding-top). */
#how-it-works { scroll-margin-top: calc(40px - var(--section)); }

/* ---------- 9. Package finder (landing) --------------------------------- */
.finder {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); align-items: start;
}
.finder__intro { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 20px; }
.finder__secure { display: flex; align-items: flex-start; gap: 10px; max-width: 46ch; color: var(--ink-3); font-size: 14.5px; line-height: 1.5; }
.finder__secure svg { flex: 0 0 auto; margin-top: 2px; color: var(--teal-700); }
.finder__secure a { color: var(--ink); font-weight: 500; white-space: nowrap; }
.finder__help {
  display: flex; align-items: center; gap: 14px; margin-top: 12px; padding: 16px 18px; border-radius: var(--r-lg);
  background: var(--white); box-shadow: var(--elev-1); color: var(--ink); text-decoration: none;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.finder__help:hover { color: var(--ink); transform: translateY(-1px); box-shadow: var(--elev-2); }
.finder > * { min-width: 0; }
.finder__help > span:nth-child(2) { min-width: 0; }
.finder__help b { display: block; font-weight: 500; letter-spacing: -0.01em; }
.finder__help small { display: block; color: var(--ink-3); font-size: 13.5px; }
.finder__help > svg:last-child { margin-left: auto; color: var(--ink-3); }
.check-list { display: grid; gap: 12px; padding: 0; margin: 8px 0 0; list-style: none; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.check-list svg { flex: 0 0 auto; margin-top: 3px; color: var(--teal-700); }

.panel {
  padding: clamp(22px, 3.2vw, 36px); border-radius: var(--r-xl);
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-3);
}
.finder-step { position: relative; display: grid; gap: 14px; padding: 0 0 26px 48px; }
/* Room below the next step when the finder scrolls it into view (lspcare.js revealNext) */
.finder-step, .finder-card, [data-finder-submit] { scroll-margin-bottom: 40px; }
/* Long hospital lists don't fit, so the scroll lands on the step's top: keep it clear of the sticky header (adds to html scroll-padding-top) */
.finder-step, .finder-card { scroll-margin-top: 28px; }
.finder-step:last-of-type { padding-bottom: 0; }
/* the track line connecting step numbers */
.finder-step::before {
  content: ""; position: absolute; left: 15px; top: 38px; bottom: 4px; width: 2px; border-radius: 2px; background: var(--linen-2);
}
.finder-step[data-step="type"]::before { display: none; }
.finder-step[data-step="type"] { padding-bottom: 0; }
.no-js .finder-step::before { display: none; }
.finder-step.is-done::before { background: var(--teal-500); }
.finder-step__label { display: flex; align-items: center; min-height: 32px; font-weight: 600; font-size: 17px; letter-spacing: -0.015em; }
.finder-step__num {
  position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--lagoon-700); color: var(--white); font-family: var(--font-mono); font-size: 14px; font-weight: 500;
  transition: background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.finder-step.is-current .finder-step__num { background: var(--teal-btn); color: var(--white); box-shadow: 0 0 0 5px rgba(28, 160, 168, 0.18); }
.finder-step.is-done .finder-step__num { background: var(--teal-50); color: transparent; box-shadow: inset 0 0 0 1.5px var(--teal-600); }
.finder-step.is-done .finder-step__num::after {
  content: ""; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231e6b62' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.finder-step.is-locked .finder-step__num { background: var(--linen-2); color: var(--ink-3); }
.finder-step.is-locked .finder-step__label { color: var(--ink-3); }
.finder-step__hint { color: var(--ink-3); font-size: 14.5px; }

/* 8 states: two even rows of 4. A single row squeezes the tiles until "Available" spills out. */
.state-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.state-tile {
  display: grid; justify-items: center; gap: 2px; padding: 12px 8px; border-radius: var(--r-md);
  border: 1px solid var(--line-strong); background: var(--white); color: var(--ink);
  text-decoration: none; cursor: pointer; text-align: center;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.state-tile strong { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.state-tile small { font-size: 12px; color: var(--teal-700); font-weight: 500; white-space: nowrap; }
a.state-tile:hover, button.state-tile:hover { border-color: var(--teal-500); transform: translateY(-1px); box-shadow: var(--shadow-1); color: var(--ink); }
.state-tile[aria-pressed="true"] { border-color: var(--teal-600); background: var(--teal-50); box-shadow: inset 0 0 0 1px var(--teal-600); }
.state-tile.is-unavailable { border-style: dashed; background: transparent; color: var(--ink-3); cursor: default; }
.state-tile.is-unavailable small { color: var(--ink-3); font-weight: 400; }

.option-list { display: grid; gap: 10px; }
.option-list--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.option {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border-radius: var(--r-md);
  border: 1px solid var(--line-strong); background: var(--white); color: var(--ink); text-align: left; text-decoration: none; cursor: pointer;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.option:hover { border-color: var(--teal-500); color: var(--ink); box-shadow: var(--shadow-1); }
.option[aria-pressed="true"] { border-color: var(--teal-600); background: var(--teal-50); box-shadow: inset 0 0 0 1px var(--teal-600); }
.option__logo {
  display: grid; place-items: center; flex: 0 0 auto; width: 48px; height: 48px; overflow: hidden; padding: 6px;
  border-radius: 12px; background: var(--white); border: 1px solid var(--line);
}
.option__logo img { width: 100%; height: 100%; object-fit: contain; }
.option__logo--placeholder { background: var(--teal-50); color: var(--teal-700); font-weight: 600; }
.option__body { display: grid; gap: 2px; min-width: 0; flex: 1; }
.option__title { font-weight: 600; letter-spacing: -0.01em; }
.option__sub { color: var(--ink-3); font-size: 14px; }
.option__check {
  flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-strong);
  display: grid; place-items: center; color: transparent;
}
.option[aria-pressed="true"] .option__check { border-color: var(--teal-btn); background: var(--teal-btn); color: var(--white); }

.finder-card { display: grid; gap: 14px; margin-top: 4px; padding: 18px; border-radius: var(--r-md); background: var(--teal-50); border: 1px solid rgba(28, 160, 168, 0.25); }
.finder-card[hidden] { display: none; }
/* The panel is already teal-tinted, so the ticked box stays white and shows the tick by its border */
.finder-card .checkbox-card:has(input:checked) { background: var(--white); }
.finder-card__intro { display: grid; gap: 4px; color: var(--ink-2); font-size: 14.5px; }
/* "Concession prices require a valid Concession Card number." Teal text, AA on white and the teal tint */
.concession-required { color: var(--teal-700); font-size: 16px; }
.concession-required strong { font-weight: 700; }
.finder__submit { display: grid; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line); margin-top: 26px; }
[data-finder].is-ready .finder__submit .btn { box-shadow: 0 14px 30px -14px rgba(28, 160, 168, 0.8); }
.finder__submit p { text-align: center; color: var(--ink-3); font-size: 13.5px; }
.finder__submit .finder__from { font-size: 15px; color: var(--ink-2); }
.finder__from strong { font-size: 1.6rem; font-weight: 600; letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---------- 10. Help band ---------------------------------------------- */
.help-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

/* ---------- 11. Footer -------------------------------------------------- */
.site-footer { background: var(--white); border-top: 1px solid var(--line); }
.site-footer__inner {
  display: grid; grid-template-columns: 1fr auto; gap: 28px 40px; align-items: center;
  padding-block: 36px;
}
.site-footer__brand { display: flex; align-items: center; gap: 18px; }
.site-footer__brand img { width: 52px; }
.site-footer__logo { display: inline-flex; border-radius: var(--r-sm); transition: opacity var(--dur) var(--ease); }
.site-footer__logo:hover { opacity: 0.75; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.site-footer nav a { color: var(--ink-2); font-size: 14.5px; text-decoration: none; }
.site-footer nav a:hover { color: var(--ink); text-decoration: underline; }
.site-footer__legal {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px;
  padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 13.5px;
}
.site-footer--compact .site-footer__inner { padding-block: 22px; grid-template-columns: 1fr; }
.site-footer--compact .site-footer__legal { padding-top: 0; border-top: 0; }

/* ---------- 12. Flow pages (purchase journey) --------------------------- */
.page-head {
  position: relative; overflow: hidden; isolation: isolate;
  /* Quieter echo of the landing hero: same dark-to-teal direction, shorter and fainter line screen */
  background:
    radial-gradient(60% 70% at 50% 120%, rgba(28, 160, 168, 0.18), transparent 72%),
    linear-gradient(180deg, var(--lagoon-900) 0%, var(--lagoon-700) 65%, #165059 100%);
  color: var(--text-on-dark);
  padding-block: clamp(28px, 4vw, 44px) clamp(88px, 10vw, 120px);
}
.page-head::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: repeating-linear-gradient(90deg, rgba(157, 214, 224, 0.11) 0 3px, transparent 3px 6px);
  --wave:
    radial-gradient(30% 44% at 8% 100%, #000 0%, transparent 100%),
    radial-gradient(26% 32% at 34% 100%, #000 0%, transparent 100%),
    radial-gradient(30% 46% at 62% 100%, #000 0%, transparent 100%),
    radial-gradient(28% 36% at 92% 100%, #000 0%, transparent 100%);
  -webkit-mask-image: var(--wave);
  mask-image: var(--wave);
}
.page-head__inner { display: grid; gap: 18px; }
.page-head h1 { font-size: clamp(2rem, 4.2vw, 3.3rem); letter-spacing: -0.04em; line-height: 1.04; }
.page-head .lead { max-width: 620px; color: var(--muted-on-dark); }
.page-head__context { display: flex; flex-wrap: wrap; gap: 8px; }
.context-chip {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.07); border: 1px solid var(--line-on-dark); font-size: 14px; color: var(--text-on-dark);
}
.context-chip--plain { padding-left: 14px; }
.context-chip img { width: 26px; height: 26px; border-radius: 50%; object-fit: contain; background: var(--white); padding: 2px; }
.back-link {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content;
  min-height: 44px; margin-block: -11px;
  color: var(--muted-on-dark); font-size: 14px; text-decoration: none;
}
.back-link:hover { color: var(--white); }

.page-body { position: relative; margin-top: clamp(-88px, -8vw, -64px); padding-bottom: var(--section); }
/* Pages that open with short card rows (state, hospital and patient type pickers, knowledge base list):
   the 88px overlap would bury most of the first row in the hero, so pull up less and keep the same gap under the lead */
.page-head:has(+ .page-body > .container > :is(.choice-grid, .kb-list):first-child) { padding-bottom: clamp(56px, 5vw, 72px); }
.page-body:has(> .container > :is(.choice-grid, .kb-list):first-child) { margin-top: clamp(-40px, -2.8vw, -32px); }

/* Journey stepper: connected numbered track + big background step number */
.page-head__inner { position: relative; }
.page-head__inner > :not(.journey) { position: relative; z-index: 1; }
.journey { margin: 0 0 8px; }
.journey ol { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 26px; padding: 0; margin: 0 0 0 -7px; list-style: none; counter-reset: journey; }
.journey li {
  position: relative; display: inline-flex; align-items: center; gap: 9px; padding: 6px 14px 6px 6px; border-radius: var(--r-pill);
  font-size: 14px; color: var(--muted-on-dark); border: 1px solid transparent;
}
.journey li:not(:last-child)::after {
  content: ""; position: absolute; right: -21px; top: 50%; width: 16px; height: 1.5px; border-radius: 2px; background: rgba(244, 247, 247, 0.16);
}
.journey li.is-done:not(:last-child)::after { background: var(--teal-500); }
.journey li::before {
  counter-increment: journey; content: counter(journey);
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  font-family: var(--font-mono); font-size: 12.5px; background: rgba(255, 255, 255, 0.08); color: var(--muted-on-dark);
}
.journey li.is-done { color: var(--text-on-dark); }
.journey li.is-done::before { content: "✓"; background: rgba(28, 160, 168, 0.22); color: var(--teal-300); font-family: var(--font-sans); }
.journey li.is-current { color: var(--white); font-weight: 600; border-color: rgba(28, 160, 168, 0.5); background: rgba(28, 160, 168, 0.12); }
.journey li a { color: inherit; text-decoration: none; }
.journey li a::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; }
.journey li.is-done:has(a) { transition: background-color 160ms ease, border-color 160ms ease; }
.journey li.is-done:has(a):hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(244, 247, 247, 0.14); }
.journey li a:focus-visible { outline: none; }
.journey li:has(a:focus-visible) { outline: 2px solid var(--teal-300); outline-offset: 2px; }
.journey li.is-current::before { background: var(--teal-btn); color: var(--white); font-weight: 600; }
.journey__compact { display: none; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-300); }
.journey__bar { display: none; height: 3px; margin-top: 10px; border-radius: 3px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.journey__bar span { display: block; height: 100%; background: var(--teal-500); border-radius: inherit; }

.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 14px; }
.choice-card {
  display: flex; align-items: center; gap: 16px; padding: 20px; border-radius: var(--r-lg);
  background: var(--white); border: 1px solid var(--line); color: var(--ink); text-decoration: none; box-shadow: var(--shadow-1);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.choice-card:hover { color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--teal-500); }
.choice-card__logo {
  display: grid; place-items: center; flex: 0 0 auto; width: 64px; height: 64px; padding: 8px; overflow: hidden;
  border-radius: 16px; border: 1px solid var(--line); background: var(--white);
}
.choice-card__logo img { width: 100%; height: 100%; object-fit: contain; }
.choice-card__logo--mark { background: var(--teal-50); color: var(--teal-700); border-color: transparent; font-weight: 600; font-size: 18px; letter-spacing: -0.02em; }
.choice-card__body { display: grid; gap: 4px; flex: 1; min-width: 0; }
.choice-card__title { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.choice-card__sub { color: var(--ink-3); font-size: 14.5px; }
.choice-card__go {
  display: grid; place-items: center; flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%;
  background: var(--linen); color: var(--ink); transition: background-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.choice-card:hover .choice-card__go { background: var(--teal-btn); color: var(--white); transform: translateX(2px); }
.choice-card--unavailable { border-style: dashed; box-shadow: none; background: transparent; color: var(--ink-3); pointer-events: none; }
.choice-card--unavailable .choice-card__logo { opacity: 0.6; }

.empty-state {
  display: grid; justify-items: center; gap: 12px; padding: clamp(32px, 6vw, 56px) 24px; text-align: center;
  border-radius: var(--r-lg); border: 1px dashed var(--line-strong); background: var(--white); color: var(--ink-2);
}
.empty-state h2 { font-size: 1.35rem; color: var(--ink); }

.flow-assist {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  margin-top: 28px; padding: 18px 22px; border-radius: var(--r-lg); border: 1px solid var(--line); background: rgba(255, 255, 255, 0.55);
  color: var(--ink-2); font-size: 14.5px;
}
.flow-assist__items { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.flow-assist__items span { display: inline-flex; align-items: center; gap: 8px; }
.flow-assist svg { color: var(--teal-700); flex: 0 0 auto; }

/* ---------- 13. Packages ------------------------------------------------ */
/* Package pricing: takes after the bedside app's package screen (LSPCare *_alpha layouts), the
   same way the landing's mini bedside screen does (How it works, step 1). From the app: the
   diagonal dark-to-light gradient, translucent teal-gradient cards with a white hairline,
   and the remote-focus state (card fills solid, Order turns white). From the site: lagoon palette,
   mono labels, light display numerals. The page heading names the section, so no visible title. */
.bedside-pricing {
  --card-a: 45, 127, 152;            /* app public card  #2D7F98 */
  --card-on: #3F95AE;                /* app public card, focused */
  --card-ink: #1D5A6C;               /* app button ink */
  --label: var(--teal-300);
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(32px, 4vw, 44px) clamp(20px, 3.4vw, 40px);
  border-radius: var(--r-xl); color: var(--text-on-dark);
  background: linear-gradient(135deg, var(--lagoon-900) 0%, var(--lagoon-700) 55%, var(--slate-500) 130%);
  box-shadow: var(--shadow-3);
}
.bedside-pricing--concession {
  --card-a: 171, 91, 49;
  --card-on: #86452e;
  --card-ink: #68361f;
  --label: #ffd0aa;
}
.bedside-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.bedside-card {
  position: relative; display: flex; flex-direction: column; gap: 18px; min-width: 0;
  padding: 24px 22px 20px; border-radius: var(--r-md);
  background-color: transparent;
  background-image: linear-gradient(0deg, rgba(var(--card-a), 0.5), rgba(var(--card-a), 0.16));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), var(--elev-dark-1);
  transition: background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
/* The app's remote-focus state, for mouse hover and keyboard focus */
.bedside-card:hover, .bedside-card:focus-within {
  background-color: var(--card-on); background-image: none; transform: translateY(-3px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32), 0 26px 44px -22px rgba(0, 0, 0, 0.7);
}
.bedside-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.bedside-card__name { margin: 0; font-size: 1.2rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; color: var(--white); }
.bedside-card__sub { margin: 4px 0 0; font-size: 13.5px; color: rgba(255, 255, 255, 0.72); }
.bedside-card__head > div:first-child .bedside-card__sub {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--label);
}
.bedside-card__price { text-align: right; flex: 0 0 auto; }
.bedside-card__amount { margin: 0; font-size: clamp(1.9rem, 2.8vw, 2.4rem); font-weight: 400; letter-spacing: -0.05em; line-height: 1; color: var(--white); }
.bedside-card__includes { display: grid; gap: 6px; margin: 0; padding: 16px 0 0; list-style: none; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 14px; color: rgba(255, 255, 255, 0.88); }
.bedside-card:hover .bedside-card__sub { color: var(--white); }
/* App Order button: teal pill with a light top edge; turns white with teal ink on focus */
.bedside-card__order {
  display: flex; align-items: center; justify-content: center; min-height: 48px; margin-top: auto;
  border-radius: var(--r-pill); color: var(--white); font-weight: 600; font-size: 15px; letter-spacing: -0.005em; text-decoration: none;
  background: linear-gradient(180deg, rgba(var(--card-a), 1) 0%, var(--card-ink) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 8px 18px -10px rgba(0, 0, 0, 0.6);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.bedside-card__order:hover, .bedside-card__order:focus-visible, .bedside-card:hover .bedside-card__order, .bedside-card:focus-within .bedside-card__order {
  background: var(--white); color: var(--card-ink);
}
.bedside-card__order:focus-visible { outline: 3px solid #F2C14E; outline-offset: 2px; }  /* app focus ring colour */

/* "Included in every package": a channel marquee under the pricing panel, so the panel stays just
   the app's package screen. Drifts linearly like the landing hero's channel wall, fades out at
   both edges, pauses on hover. Whole channel art, never captioned over the logos. */
.channel-marquee { margin-top: clamp(36px, 4.4vw, 56px); }
.channel-marquee__title { margin-bottom: 18px; font-size: clamp(1.25rem, 1.8vw, 1.5rem); font-weight: 400; letter-spacing: -0.035em; line-height: 1.15; }
.channel-marquee__viewport {
  overflow: hidden; margin-inline: calc(-1 * var(--gutter)); padding: 4px 0 12px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
}
/* Three identical sets, each padded by one gap, so shifting a third lands on the same pixel */
.channel-marquee__track { display: flex; width: max-content; animation: marquee 48s linear infinite; will-change: transform; }
.channel-marquee:hover .channel-marquee__track { animation-play-state: paused; }
.channel-marquee__set { display: flex; gap: 18px; margin: 0; padding: 0 18px 0 0; list-style: none; }
@keyframes marquee { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-33.3333%, 0, 0); } }
.mini-channel { display: grid; gap: 10px; flex: 0 0 auto; width: clamp(160px, 17vw, 232px); }
.mini-channel__art {
  width: 100%; aspect-ratio: 16 / 10; height: auto; object-fit: cover; object-position: center 45%;
  border-radius: var(--r-sm); box-shadow: var(--elev-1);
}
.mini-channel__name { font-size: 15px; letter-spacing: -0.02em; line-height: 1.2; color: var(--ink-2); }

.price-notes { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; color: var(--ink-3); font-size: 14px; }
.price-notes span { display: inline-flex; align-items: center; gap: 8px; }
.price-notes svg { color: var(--teal-700); }

/* ---------- 14. Forms --------------------------------------------------- */
.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.form-section { display: grid; gap: 18px; }
.form-section + .form-section { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.form-section__head { display: grid; gap: 4px; }
.form-section__head h2 { font-size: 1.3rem; letter-spacing: -0.025em; }
.numbered-sections { counter-reset: form-step; }
.numbered-sections .form-section__head { position: relative; padding-left: 46px; min-height: 32px; }
.numbered-sections .form-section__head::before {
  counter-increment: form-step; content: counter(form-step);
  position: absolute; left: 0; top: -2px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--teal-btn); color: var(--white); font-family: var(--font-mono); font-size: 14px; font-weight: 500;
}
.form-section__head p { color: var(--ink-3); font-size: 14.5px; }
.form-section__head--spaced { margin-bottom: 20px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.field { display: grid; gap: 7px; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field label, .field-label { font-weight: 600; font-size: 14.5px; letter-spacing: -0.005em; color: var(--ink); }
.field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea,
.lsp-input, .phone-field input {
  width: 100%; min-height: 52px; padding: 12px 16px; border-radius: var(--r-sm);
  border: 1px solid var(--line-strong); background: var(--white); color: var(--ink); font-size: 16px;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  -webkit-appearance: none; appearance: none;
}
.field select {
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2348544f' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(19, 36, 42, 0.32); }
.field input:focus, .field select:focus, .field textarea:focus, .lsp-input:focus, .phone-field input:focus {
  outline: none; border-color: var(--teal-600); box-shadow: var(--ring);
}
.field input::placeholder, .field textarea::placeholder { color: #82969b; }
.field.has-error input, .field.has-error select, .field input[aria-invalid="true"], .field select[aria-invalid="true"] {
  border-color: var(--danger); box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.12);
}
.field-optional { margin-left: 4px; font-weight: 400; font-size: 13.5px; color: var(--ink-3); }
.field-help, .helptext { color: var(--ink-3); font-size: 13.5px; line-height: 1.45; }
.field-error, .errorlist { margin: 0; padding: 0; list-style: none; color: var(--danger); font-size: 13.5px; font-weight: 500; }
.errorlist li { display: flex; gap: 6px; }
.errorlist li::before { content: "!"; display: inline-grid; place-items: center; flex: 0 0 auto; width: 16px; height: 16px; margin-top: 2px; border-radius: 50%; background: var(--danger); color: var(--white); font-size: 11px; font-weight: 700; }

.checkbox-card {
  display: flex; gap: 14px; align-items: center; padding: 18px; border-radius: var(--r-md);
  border: 1px solid var(--line-strong); background: var(--white); cursor: pointer;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.checkbox-card:hover { border-color: var(--teal-500); }
.checkbox-card:has(input:checked) { border-color: var(--teal-600); background: var(--teal-50); }
.checkbox-card input, .payment-consent input {
  flex: 0 0 auto; width: 22px; height: 22px; margin: 0; accent-color: var(--teal-600); cursor: pointer;
}
.checkbox-card span { font-weight: 600; }
/* Checkout: who gets the voucher code. Two short options side by side. */
.send-to { display: grid; gap: 7px; min-width: 0; margin: 0; padding: 0; border: 0; }
/* A floated legend becomes an ordinary grid item, so it gets the same gap and left edge as other field labels. */
.send-to legend { float: left; width: 100%; padding: 0; }
.send-to__options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.send-to .checkbox-card { padding: 14px 16px; }
/* Concession card number: full width so it lines up with the tick box below, the number set wide and upright */
.concession-number input { font-size: 1.2rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; font-variant-numeric: tabular-nums; }

.alert {
  display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--r-md); font-size: 14.5px;
  background: var(--teal-50); color: var(--lagoon-700); border: 1px solid rgba(28, 160, 168, 0.25);
}
.alert svg { flex: 0 0 auto; margin-top: 2px; }
.alert--error, .alert-danger, .alert-error { background: var(--danger-bg); color: var(--danger); border-color: rgba(180, 35, 24, 0.2); }
.alert--warning, .alert-warning { background: var(--amber-100); color: var(--amber-800); border-color: rgba(246, 199, 102, 0.6); }
.alert--success, .alert-success { background: var(--success-bg); color: var(--lagoon-700); }
.alerts { display: grid; gap: 10px; margin-bottom: 18px; }

/* Secondary path: one quiet line, so the main form stays the focus */
.alt-path {
  display: flex; gap: 4px 12px; align-items: center; flex-wrap: wrap; margin: 0;
  padding: 10px 14px; border-radius: var(--r-md); background: var(--linen); font-size: 14px;
}
/* A form error sitting above the first numbered section needs room before it */
.numbered-sections > .alert { margin-bottom: 24px; }
.alt-path__copy { color: var(--ink-3); }
.alt-path .link-arrow { font-size: 14px; margin-block: 0; min-height: 32px; }
.alt-path .link-arrow svg { flex: 0 0 auto; }

.form-actions { display: grid; gap: 12px; margin-top: 28px; }
.form-actions__row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; justify-content: space-between; }
.fine-print { color: var(--ink-3); font-size: 13.5px; }
.text-button { padding: 0; border: 0; background: none; color: var(--teal-700); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.text-button:hover { color: var(--ink); }

/* Order summary (sticky aside) */
.summary-card {
  position: sticky; top: calc(var(--header-h) + 24px);
  display: grid; gap: 18px; padding: 24px; border-radius: var(--r-lg);
  background: var(--lagoon-700); color: var(--text-on-dark); box-shadow: var(--shadow-3);
}
.summary-card__label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal-300); }
.summary-card__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.summary-card__row + .summary-card__row { padding-top: 14px; border-top: 1px solid var(--line-on-dark); }
.summary-card__row dt { color: var(--muted-on-dark); font-size: 14px; }
.summary-card__row dd { margin: 0; text-align: right; font-weight: 600; letter-spacing: -0.01em; }
.summary-card__change { margin-left: 10px; font-size: 13px; font-weight: 500; color: var(--teal-300); text-decoration: underline; text-underline-offset: 3px; }
.summary-card__change:hover { color: var(--white); }
.summary-card__total dd { font-size: 2.4rem; font-weight: 400; letter-spacing: -0.05em; line-height: 1; }
.summary-card dl { display: grid; gap: 14px; margin: 0; }
.summary-card__secure { display: flex; gap: 10px; align-items: flex-start; padding: 14px; border-radius: var(--r-md); background: rgba(255, 255, 255, 0.06); color: var(--muted-on-dark); font-size: 13.5px; }
.summary-card__secure > svg { flex: 0 0 auto; color: var(--teal-300); margin-top: 1px; }
.summary-card__secure a { color: var(--teal-300); }
.summary-card__secure a:hover { color: var(--white); }
.summary-card__note { color: var(--muted-on-dark); }
.summary-card__value--wrap { overflow-wrap: anywhere; }
.pay-marks { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.pay-mark { display: grid; place-items: center; width: 44px; height: 28px; border-radius: 5px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08); }
.pay-mark svg { display: block; }

/* ---------- 15. Checkout, receipts, portal ------------------------------ */
.checkout-shell { width: min(100% - 2 * var(--gutter), 600px); margin-inline: auto; }
.checkout-shell--wide { width: min(100% - 2 * var(--gutter), 760px); }
.checkout-head {
  background: var(--lagoon-700); color: var(--text-on-dark);
  padding-block: clamp(24px, 4vw, 40px) clamp(80px, 9vw, 104px);
}
.checkout-head h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); letter-spacing: -0.04em; }
.checkout-head p { margin-top: 10px; color: var(--muted-on-dark); }
.checkout-head--center { text-align: center; }
.checkout-body { margin-top: clamp(-80px, -8vw, -60px); padding-bottom: clamp(48px, 7vw, 88px); }

.amount-due {
  display: grid; justify-items: start; gap: 6px; padding: 20px 22px; margin-bottom: 24px; border-radius: var(--r-lg); background: var(--linen);
}
.amount-due__label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.amount-due .amount { font-size: clamp(2.4rem, 7vw, 3.2rem); font-weight: 400; letter-spacing: -0.05em; line-height: 1; color: var(--ink); }
.amount-due__note { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-3); font-size: 13.5px; }
.amount-due__note svg { color: var(--teal-700); }
.amount { font-size: 1.6rem; font-weight: 600; letter-spacing: -0.03em; color: var(--ink); }

#card-container { min-height: 90px; }
.payment-consent {
  display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding-block: 10px; cursor: pointer;
}
.payment-consent input { margin-top: 1px; }
.order-review { margin-bottom: 24px; padding: 4px 0 18px; border-bottom: 1px solid var(--line, rgba(15, 30, 35, 0.1)); }
.order-review__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.order-review__label { margin: 0; font-family: var(--font-mono); font-size: 12px; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.order-review__edit { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; font-size: 14px; font-weight: 600; color: var(--teal-700); text-decoration: none; }
.order-review__edit:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.order-review dl { margin: 0; display: grid; gap: 8px; }
.order-review__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: 15px; }
.order-review__row dt { color: var(--ink-3); }
.order-review__row dd { margin: 0; text-align: right; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.next-steps { margin: 12px 0 0; padding-left: 1.2em; display: grid; gap: 8px; color: var(--ink-2, var(--ink)); }
.wrong-details-help { margin: 14px 0 0; font-size: 14.5px; color: var(--ink-3); text-align: center; }
.wrong-details-help a { color: var(--teal-700); font-weight: 600; text-underline-offset: 3px; }
.status { min-height: 24px; margin: 16px 0 0; color: var(--danger); font-size: 14.5px; line-height: 1.5; }
.status:empty { margin: 0; min-height: 0; }
.security-note { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 18px; color: var(--ink-3); font-size: 13.5px; text-align: center; }
.security-note svg { color: var(--teal-700); }
.phone-field { display: grid; gap: 8px; }
.phone-field label { font-weight: 600; }

/* Receipt */
.receipt-card {
  position: relative; overflow: hidden; overflow-wrap: anywhere;
  padding: clamp(28px, 6vw, 56px) clamp(20px, 5vw, 48px) clamp(24px, 5vw, 44px);
  border-radius: var(--r-xl); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-3);
}
.receipt-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: linear-gradient(90deg, var(--teal-500), var(--teal-300)); }
.receipt-header { display: grid; justify-items: center; gap: 10px; text-align: center; }
.success-mark {
  display: grid; place-items: center; width: clamp(68px, 10vw, 92px); aspect-ratio: 1; margin: 10px 0 22px; border-radius: 50%; /* the 10px ring is a shadow, so it eats into these */
  background: var(--teal-50); color: var(--teal-700); box-shadow: 0 0 0 10px rgba(28, 160, 168, 0.08);
}
.success-mark svg { width: 44%; height: 44%; }
.receipt-header h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); letter-spacing: -0.045em; }
.payment-confirmation { font-size: clamp(1.15rem, 2.4vw, 1.45rem); font-weight: 600; letter-spacing: -0.02em; }
.activation-note {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; padding: 6px 14px; border-radius: var(--r-pill);
  background: var(--teal-50); color: var(--lagoon-700); font-size: clamp(0.95rem, 2vw, 1.05rem); font-weight: 500;
}
.receipt-divider { margin: clamp(24px, 4vw, 36px) 0; border: 0; border-top: 1px solid var(--line); }
.invoice-jump {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: fit-content; min-height: 44px; margin: -11px auto 11px;
  color: var(--teal-700); font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none;
}
.invoice-jump:hover { color: var(--ink); text-decoration: underline; }
.invoice-sms-form label { display: block; margin-bottom: 10px; font-size: 1.1rem; font-weight: 600; letter-spacing: -0.015em; }
.sms-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.sms-controls input {
  width: 100%; min-width: 0; min-height: 56px; padding: 12px 18px; border-radius: var(--r-pill);
  border: 1px solid var(--line-strong); background: var(--white); font-size: 17px;
}
.sms-controls input:focus { outline: none; border-color: var(--teal-600); box-shadow: var(--ring); }
.invoice-sms-form .help { display: block; margin-top: 10px; color: var(--ink-3); font-size: 14px; }
.receipt-button { min-height: 56px; }
.receipt-feedback, .receipt-card .errorlist { margin: 16px 0 0; font-size: 15px; color: var(--lagoon-700); }
.receipt-feedback { padding: 12px 16px; border-radius: var(--r-md); background: var(--teal-50); }
.receipt-feedback.error { background: var(--danger-bg); color: var(--danger); }
.voucher-details { display: grid; justify-items: center; gap: 14px; text-align: center; }
.voucher-details h2 { font-family: var(--font-mono); font-size: 12.5px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.voucher-code {
  display: block; padding: 18px 28px; border-radius: var(--r-lg); border: 1.5px dashed var(--teal-500); background: var(--teal-50);
  font-family: var(--font-mono); font-size: clamp(1.2rem, 4.4vw, 2rem); font-weight: 500; letter-spacing: 0.08em; color: var(--lagoon-700); /* 20 characters must stay on one line */
}
.voucher-hint { max-width: 44ch; color: var(--ink-2); font-size: 15px; text-wrap: balance; }
.voucher-sms-form { width: 100%; max-width: 360px; }
.voucher-value { color: var(--ink-3); font-size: 15px; }
.receipt-card--voucher .receipt-feedback { width: 100%; margin: 0; }
.receipt-card--voucher :is(.receipt-feedback, .receipt-reference) { text-align: center; }
.receipt-card--voucher .receipt-reference { margin-top: 12px; } /* the invoice link above already has a tall tap area */
.receipt-keep { margin: 12px 0 0; color: var(--ink-3); font-size: 14.5px; text-align: center; }
.receipt-reference { display: grid; gap: 4px; margin: 28px 0 0; padding: 16px 18px; border-radius: var(--r-md); background: var(--linen); }
.receipt-reference dt { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.receipt-reference dd { margin: 0; font-family: var(--font-mono); font-size: 14.5px; color: var(--ink); word-break: break-all; }
.watch-button, .home-button { margin-top: 24px; }
.watch-button { font-size: 1.1rem; }
.watch-button svg { flex: 0 0 auto; }
.watch-help { display: none; text-align: center; scroll-margin-top: 16px; }
.watch-help:target { display: block; }

/* Tax invoice — keeps the paper invoice look (black on white) */
.invoice-page { padding-bottom: clamp(48px, 7vw, 88px); }
.screen-invoice {
  box-sizing: border-box; margin: 28px 0 0; padding: 48px; scroll-margin-top: 16px;
  background: #fff; color: #000; border: 1px solid var(--line); border-radius: var(--r-md);
  text-align: left; font: 16px/1.5 Arial, sans-serif; word-wrap: break-word; overflow-wrap: anywhere;
}
.invoice-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.invoice-heading img { display: block; width: 96px; height: auto; }
.invoice-heading :is(h1, h2) { margin: 0; font: bold 20px/1.2 Arial, sans-serif; letter-spacing: 0; color: #000; }
.invoice-company { margin-bottom: 16px; line-height: 2; }
.invoice-company p { margin: 0; }
.invoice-details { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin: 0 0 40px; }
.invoice-bed { margin: 0; flex: 1; }
.invoice-meta { width: 52%; min-width: 0; }
.invoice-meta p { margin: 0 0 10px; }
.invoice-meta p:last-child { margin-bottom: 0; }
.invoice-items { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 14px; line-height: 1.35; }
.invoice-items .description-column { width: 52%; }
.invoice-items .quantity-column { width: 13%; }
.invoice-items .price-column { width: 18%; }
.invoice-items .amount-column { width: 17%; }
.invoice-items th, .invoice-items td { border: 1px solid #000; padding: 4px 7px; vertical-align: top; color: #000; background: #fff; }
.invoice-items th { font-weight: bold; text-align: left; }
.invoice-items .quantity { text-align: center; }
.invoice-items .money { text-align: right; }
.invoice-total { display: flex; justify-content: flex-end; align-items: baseline; gap: 32px; margin: 28px 7px 0; font-size: 14px; font-weight: bold; }
.invoice-total span:last-child { white-space: nowrap; }
.invoice-actions { display: flex; justify-content: center; margin-top: 18px; }

/* Patient portal */
.transaction-list { display: grid; gap: 14px; }
.transaction { display: grid; gap: 18px; padding: 22px 24px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.transaction__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.transaction__head h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.02em; }
.transaction .amount { font-size: 1.35rem; white-space: nowrap; }
.details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 14px 16px; border-radius: var(--r-md); background: var(--linen); }
.detail-label { display: block; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.detail-value { display: block; margin-top: 2px; font-size: 14.5px; overflow-wrap: anywhere; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: var(--r-pill); background: var(--linen-2); font-size: 12.5px; font-weight: 600; }
.status--approved { background: var(--success-bg); color: var(--lagoon-700); }
.status--pending { background: var(--amber-100); color: var(--amber-800); }
.transaction__footer { display: flex; justify-content: flex-end; }
.invoice-unavailable { color: var(--ink-3); font-size: 14px; }
.portal-account-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }

/* ---------- 16. Prose (CMS content) ------------------------------------- */
.prose { color: var(--ink-2); font-size: 16.5px; line-height: 1.7; overflow-wrap: anywhere; }
.prose > * + * { margin-top: 1em; }
.prose h1, .prose h2, .prose h3, .prose h4 { color: var(--ink); margin-top: 1.8em; letter-spacing: -0.025em; }
.prose h1 { font-size: 1.9rem; } .prose h2 { font-size: 1.5rem; } .prose h3 { font-size: 1.2rem; } .prose h4 { font-size: 1.05rem; }
.prose h1:first-child, .prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose a { color: var(--teal-700); font-weight: 500; }
.prose img { border-radius: var(--r-md); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.prose strong { color: var(--ink); }
.prose [style*="color"] { color: inherit !important; }
.prose [style*="background"] { background: none !important; }

/* Legal documents (terms): section index beside a readable column.
   Wide screens: a sticky index on the left, always open. Narrow screens: the index folds into a
   "Contents" disclosure above the text, and long sections end in a "Back to contents" link. */
.legal-layout { display: grid; gap: 16px; }
.legal-doc .prose { max-width: 68ch; } /* about 70 characters a line: easier to keep your place in long clauses */
.legal-doc .prose h2[id] { scroll-margin-top: 24px; } /* adds to html scroll-padding-top, so headings clear the sticky header */
.legal-top { margin-top: 1.4em; font-size: 14px; }
.legal-top a { color: var(--ink-3); font-weight: 500; text-decoration: none; }
.legal-top a:hover { color: var(--teal-700); text-decoration: underline; }

.legal-index {
  display: grid; gap: 4px; padding: 6px; border-radius: var(--r-lg);
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-2);
}
.legal-index summary {
  display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 14px;
  border-radius: var(--r-md); cursor: pointer; list-style: none; font-weight: 600; letter-spacing: -0.01em;
}
.legal-index summary::-webkit-details-marker { display: none; }
.legal-index summary::after {
  content: ""; width: 8px; height: 8px; margin-left: auto; margin-right: 4px;
  border-right: 1.5px solid var(--ink-3); border-bottom: 1.5px solid var(--ink-3);
  transform: translateY(-2px) rotate(45deg); transition: transform 160ms var(--ease);
}
.legal-index details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.legal-index summary:hover { background: var(--linen); }
.legal-index__count { color: var(--ink-3); font-family: var(--font-mono); font-size: 12.5px; font-weight: 400; letter-spacing: 0; }
.legal-index__list { display: grid; gap: 1px; margin: 4px 0 0; padding: 0 0 4px; list-style: none; }
.legal-index__list a {
  display: grid; grid-template-columns: 2.6em minmax(0, 1fr); align-items: baseline; gap: 4px;
  padding: 7px 12px; border-radius: var(--r-sm); color: var(--ink-2); font-size: 14px; line-height: 1.35; text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease;
}
.legal-index__list a > :only-child { grid-column: 1 / -1; }
.legal-index__list a:hover { background: var(--linen); color: var(--ink); }
.legal-index__list a[aria-current="true"] { background: var(--teal-50); color: var(--teal-700); font-weight: 500; }
.legal-index__num { color: var(--ink-3); font-family: var(--font-mono); font-size: 12.5px; }
.legal-index__list a[aria-current="true"] .legal-index__num { color: inherit; }
.legal-index__top {
  display: none; align-items: center; min-height: 40px; padding: 4px 14px; margin-top: 2px;
  border-top: 1px solid var(--line); color: var(--ink-3); font-size: 13.5px; font-weight: 500; text-decoration: none;
}
.legal-index__top:hover { color: var(--teal-700); }

@media (min-width: 1024px) {
  .legal-layout.has-index { grid-template-columns: 264px minmax(0, 760px); justify-content: center; align-items: start; gap: clamp(28px, 3vw, 44px); }
  .legal-layout:not(.has-index) .legal-doc { max-width: 760px; margin-inline: auto; }
  .legal-index {
    position: sticky; top: calc(var(--header-h) + 20px);
    display: flex; flex-direction: column;
    max-height: calc(100vh - var(--header-h) - 40px); max-height: calc(100svh - var(--header-h) - 40px);
  }
  /* the details box scrolls (its content box can't be sized directly), with the label pinned on top */
  .legal-index details { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
  .legal-index summary {
    position: sticky; top: 0; z-index: 1; background: var(--white);
    cursor: default; pointer-events: none; min-height: 44px; /* always open here: a label, not a toggle */
  }
  .legal-index summary::after { display: none; }
  .legal-index__top { flex: none; }
  .legal-index__top { display: flex; }
  .legal-top { display: none; } /* the index is always in view */
}

/* ---------- 17. Dialog -------------------------------------------------- */
.lsp-dialog {
  width: min(100% - 32px, 720px); max-height: min(86vh, 900px); padding: 0; border: 0; border-radius: var(--r-xl);
  background: var(--white); color: var(--ink); box-shadow: 0 40px 100px -20px rgba(6, 18, 23, 0.55);
}
.lsp-dialog::backdrop { background: rgba(10, 27, 33, 0.6); }
/* Opens with a small grow and fade, stays centred. Browsers without @starting-style just open it instantly. */
.lsp-dialog, .lsp-dialog::backdrop {
  opacity: 0;
  transition: opacity 150ms ease-in, transform 150ms ease-in, overlay 150ms allow-discrete, display 150ms allow-discrete;
}
.lsp-dialog { transform: scale(0.97); }
.lsp-dialog[open] { opacity: 1; transform: none; transition: opacity 220ms var(--ease), transform 220ms var(--ease), overlay 220ms allow-discrete, display 220ms allow-discrete; }
.lsp-dialog[open]::backdrop { opacity: 1; transition: opacity 200ms var(--ease), overlay 200ms allow-discrete, display 200ms allow-discrete; }
@starting-style {
  .lsp-dialog[open] { opacity: 0; transform: scale(0.97); }
  .lsp-dialog[open]::backdrop { opacity: 0; }
}
/* Only the body scrolls, so the scrollbar never runs beside the header or into the rounded corners.
   The body stops 16px short of the bottom and 6px short of the right edge, clear of the 32px corner curve. */
.lsp-dialog[open] { display: flex; flex-direction: column; overflow: hidden; }
.lsp-dialog__head {
  flex: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 24px; background: var(--white); border-bottom: 1px solid var(--line);
}
.lsp-dialog__head h2 { font-size: 1.3rem; letter-spacing: -0.025em; }
.lsp-dialog__body {
  flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
  margin: 0 6px 16px 0; padding: 24px 18px 8px 24px;
}
.icon-button {
  display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%;
  background: var(--white); color: var(--ink); cursor: pointer;
}
.icon-button:hover { background: var(--linen); }

/* ---------- 18. Helpdesk (tickets, knowledge base, support chat) ------- */
.page-head__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.page-head__actions:empty { display: none; }
.help-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.help-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; color: var(--ink); text-decoration: none; }
/* Same icon tile as the knowledge base rows (.choice-card__logo--mark), a size down */
.help-card__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--teal-50); color: var(--teal-700); }
.help-card__title { font-size: 1.17rem; }
.help-card p { flex: 1; color: var(--ink-2); }
a.help-card:hover, .help-card--action:hover { border-color: var(--teal-500); box-shadow: var(--shadow-2); }
/* Chat card opens the widget instead of navigating: a button styled as the other cards' link, stretched over the card */
.help-card__trigger { padding: 0; border: 0; background: none; font: inherit; font-weight: 600; cursor: pointer; }
.help-card__trigger::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.help-card--action:has(.help-card__trigger:focus-visible) { outline: 3px solid var(--teal-600); outline-offset: 3px; }
.help-card__trigger:focus-visible { outline: none; }
.help-card:hover .link-arrow { color: var(--ink); }
.help-card:hover .link-arrow svg { transform: translateX(3px); }
.ticket-form .form-actions { margin-top: 24px; }
/* Unchosen select reads as a placeholder, like the text inputs beside it */
.ticket-form select:has(option[value=""]:checked) { color: var(--ink-3); }
.ticket-form select option { color: var(--ink); }

/* Room under the footer so the fixed chat launcher never covers the last row */
.helpdesk-page:has(.chat-launcher) .site-footer { padding-bottom: 72px; }

/* Knowledge base */
.kb-list { display: grid; gap: 14px; }

.kb-article__summary { margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line); font-size: 1.1rem; color: var(--ink-2); }
.kb-article__body { white-space: pre-wrap; }
.kb-article__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }

/* Ticket case page */
.ticket-status {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: var(--r-pill);
  background: rgba(157, 214, 224, 0.14); color: var(--teal-300); font-size: 13.5px; font-weight: 600;
}
.ticket-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ticket-status--closed, .ticket-status--resolved { background: rgba(255, 255, 255, 0.08); color: var(--muted-on-dark); }
.ticket-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 18px; padding: 16px 18px; border-radius: var(--r-md); background: var(--linen); }
.ticket-facts dt { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.ticket-facts dd { margin: 2px 0 0; font-size: 14.5px; overflow-wrap: anywhere; }
.ticket-section + .ticket-section { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.ticket-section h2 { margin-bottom: 14px; font-size: 1.3rem; letter-spacing: -0.025em; }
.ticket-issue { color: var(--ink-2); line-height: 1.7; overflow-wrap: anywhere; }
.timeline { display: grid; gap: 12px; padding: 0; margin: 0; list-style: none; }
.timeline-entry { display: grid; gap: 8px; padding: 16px 18px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--white); }
.timeline-entry--staff { border-color: rgba(28, 160, 168, 0.35); background: var(--teal-50); }
.timeline-entry__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; }
.timeline-entry__head strong { letter-spacing: -0.01em; }
.timeline-entry__role { margin-left: 8px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal-700); }
.timeline-entry__time { color: var(--ink-3); font-size: 13px; }
.timeline-entry__body { color: var(--ink-2); overflow-wrap: anywhere; }

/* Support chat widget */
.chat-launcher { position: fixed; right: 18px; bottom: 18px; z-index: 1100; box-shadow: var(--shadow-float); }
.chat-badge {
  display: inline-grid; place-items: center; min-width: 20px; padding: 1px 7px; border-radius: var(--r-pill);
  background: var(--white); color: var(--teal-700); font-size: 11.5px; font-weight: 700;
  animation: badge-pop 240ms var(--ease) backwards; /* plays each time the badge goes from hidden to shown */
}
@keyframes badge-pop { from { opacity: 0; transform: scale(0.6); } }
.chat-panel {
  position: fixed; right: 18px; bottom: 82px; z-index: 1101; display: flex; flex-direction: column;
  width: min(380px, calc(100vw - 24px)); max-height: calc(100vh - 110px); overflow: hidden;
  border-radius: var(--r-lg); background: var(--white); color: var(--ink); box-shadow: 0 40px 100px -20px rgba(6, 18, 23, 0.55), 0 0 0 1px var(--line);
  /* grows out of the launcher; visibility keeps the closed panel out of tab order and screen readers */
  visibility: hidden; opacity: 0; pointer-events: none;
  transform: translateY(10px) scale(0.96); transform-origin: 85% 100%;
  transition: opacity 140ms ease-in, transform 160ms ease-in, visibility 0s linear 160ms;
}
.chat-panel.is-open {
  visibility: visible; opacity: 1; pointer-events: auto; transform: none;
  transition: opacity 180ms var(--ease), transform 280ms var(--ease), visibility 0s;
}
.chat-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; background: var(--lagoon-700); color: var(--text-on-dark); }
.chat-header h2 { font-size: 1.1rem; letter-spacing: -0.02em; }
.chat-status { margin-top: 2px; color: var(--teal-300); font-size: 13px; }
.chat-header .icon-button { width: 36px; height: 36px; background: rgba(255, 255, 255, 0.08); border-color: var(--line-on-dark); color: var(--text-on-dark); }
.chat-header .icon-button:hover { background: rgba(255, 255, 255, 0.16); }
.chat-header :focus-visible { outline-color: var(--teal-300); }
.chat-body { display: grid; gap: 12px; margin: 0 4px 12px 0; padding: 16px 14px 6px 18px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; } /* inset clears the 24px corner */
.chat-body .field { gap: 5px; }
.chat-body .field label { font-size: 13.5px; }
.chat-body .field input:not([type="checkbox"]):not([type="radio"]), .chat-body .field select { min-height: 44px; padding: 9px 14px; }
.chat-body .field select { padding-right: 40px; }
.chat-body .field textarea { min-height: 84px; padding: 10px 14px; }
.chat-intro, .chat-conversation { display: grid; gap: 12px; }
.chat-conversation { animation: rise-xs 240ms var(--ease) backwards; } /* replaces the start form once per chat */
.chat-messages { display: grid; align-content: start; gap: 8px; height: 280px; padding: 12px; overflow-y: auto; border-radius: var(--r-md); background: var(--linen); }
.chat-message { max-width: 88%; padding: 10px 12px; border-radius: 14px 14px 14px 4px; background: var(--white); box-shadow: var(--shadow-1); font-size: 14px; line-height: 1.45; }
.chat-message strong { display: block; margin-bottom: 2px; font-size: 12.5px; color: var(--teal-700); }
.chat-message div { white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-message small { display: block; margin-top: 4px; color: var(--ink-3); font-size: 11.5px; }
.chat-message.customer { justify-self: end; border-radius: 14px 14px 4px 14px; background: var(--teal-btn); color: var(--white); }
.chat-message.customer strong, .chat-message.customer small { color: rgba(255, 255, 255, 0.78); }
/* new replies rise in from their own side; history loaded on page load does not animate */
.chat-message.is-new { transform-origin: 0 100%; animation: chat-message-in 220ms var(--ease) backwards; }
.chat-message.customer.is-new { transform-origin: 100% 100%; }
.chat-message.system.is-new { transform-origin: 50% 100%; }
@keyframes chat-message-in { from { opacity: 0; transform: translate3d(0, 6px, 0) scale(0.98); } }
.chat-message.system { justify-self: center; max-width: 100%; background: transparent; box-shadow: none; border: 1px dashed var(--line-strong); color: var(--ink-3); text-align: center; }
.chat-actions { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.chat-actions small { color: var(--ink-3); font-size: 13px; }
.chat-action-buttons { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-left: auto; }
@media (max-width: 960px) {
  .ticket-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .summary-card.ticket-aside, .summary-card.support-aside { order: 0; } /* after the main panel when stacked */
}
@media (max-width: 760px) {
  .help-grid--two { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .chat-panel { right: 12px; bottom: 76px; }
  .chat-launcher { right: 12px; bottom: 12px; }
  .chat-actions { flex-direction: column; align-items: stretch; }
  .chat-action-buttons .btn { flex: 1; }
  .ticket-facts { grid-template-columns: 1fr; }
}

/* ---------- 19. Error pages -------------------------------------------- */
.error-hero { min-height: calc(100vh - var(--header-h)); display: grid; place-items: center; padding-block: 64px; text-align: center; }
.error-code {
  font-size: clamp(6rem, 18vw, 11rem); font-weight: 500; letter-spacing: -0.06em; line-height: 0.9;
  background: linear-gradient(180deg, var(--teal-300), rgba(157, 214, 224, 0.15));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.error-hero h1 { margin-top: 12px; font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -0.035em; }
.error-hero p { margin-top: 12px; color: var(--muted-on-dark); }
.error-hero .hero__actions { justify-content: center; margin-top: 28px; }

/* ==========================================================================
   KAORI-style composition layer
   Layered UI scenes, mixed-surface bento, fine line patterns, two-tone numbers.
   ========================================================================== */

/* Shared bits ------------------------------------------------------------ */
.pattern { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

.amount__cents, .num-dim { opacity: 0.45; }

/* Hero frame ------------------------------------------------------------- */
/* The perspective channel wall is the hero visual. No boxed panel: it bleeds off the right
   edge of the viewport, fades into the copy on the left and off the top and bottom. */
.hero-frame {
  position: absolute; top: -12%; bottom: -12%; left: -12%;
  right: calc(-1 * max(var(--gutter), (100vw - var(--container)) / 2));
}
.hero-frame::before { /* soft teal light behind the wall so the cards lift off the background */
  content: ""; position: absolute; inset: 10% 0 10% 20%; pointer-events: none;
  background: radial-gradient(50% 50% at 55% 50%, rgba(28, 160, 168, 0.22), transparent 70%);
  filter: blur(20px);
}
.channel-wall {
  position: absolute; inset: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.5) 18%, #000 38%), linear-gradient(180deg, transparent 0%, #000 16%, #000 84%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.5) 18%, #000 38%), linear-gradient(180deg, transparent 0%, #000 16%, #000 84%, transparent 100%);
  mask-composite: intersect;
}
.channel-wall__plane {
  position: absolute; inset: -22% -4% -22% 6%;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px;
  align-items: start; /* columns keep their content height, so -33.333% is exactly one set */
  transform: perspective(1100px) rotateX(20deg) rotateY(-26deg) rotateZ(9deg);
  transform-origin: 30% 50%;
}
/* Each column holds three identical sets. padding-bottom matches the gap, so the column is
   3 x (4 cards + 4 gaps) and shifting by a third lands on the same pixel as the start. */
.channel-wall__col {
  display: flex; flex-direction: column; gap: 22px; padding-bottom: 22px;
  animation: wall-drift 46s linear infinite;
  will-change: transform; backface-visibility: hidden; /* own layer: the tilted plane is not repainted every frame */
}
.channel-wall__col:nth-child(1) { opacity: 0.6; } /* far column recedes, near column pops */
.channel-wall__col:nth-child(2) { opacity: 0.85; animation-direction: reverse; animation-duration: 54s; margin-top: -60px; }
.channel-wall__col:nth-child(3) { animation-duration: 62s; margin-top: 40px; }
@keyframes wall-drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, -33.3333%, 0); } }
.wall-card {
  position: relative; flex: 0 0 auto; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 20px;
  background: var(--lagoon-800);
  box-shadow: 0 44px 70px -30px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.wall-card img { width: 100%; height: 100%; object-fit: cover; }
.wall-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(10, 27, 33, 0.8) 100%); }
.wall-card span { position: absolute; left: 16px; bottom: 12px; z-index: 1; font-size: 16px; font-weight: 700; letter-spacing: -0.01em; color: var(--white); }

/* Bento ------------------------------------------------------------------ */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.tile {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; gap: 18px;
  min-height: 500px; border-radius: var(--r-xl);
  background: var(--white); color: var(--ink);
}
.tile h3 { font-size: clamp(1.45rem, 1.9vw, 1.75rem); font-weight: 400; letter-spacing: -0.035em; line-height: 1.12; }
.tile__copy { display: grid; gap: 10px; max-width: 34ch; position: relative; z-index: 2; }
.tile__copy p { color: var(--ink-3); font-size: 15px; line-height: 1.55; }

.tile--slate {
  /* gentle top-lit shade instead of a flat fill */
  background:
    radial-gradient(80% 60% at 20% 0%, rgba(157, 214, 224, 0.12), transparent 70%),
    linear-gradient(180deg, #286f82 0%, var(--slate-500) 45%, #1e5869 100%);
  color: var(--text-on-dark);
}
.tile--slate .tile__copy p { color: var(--muted-on-dark); }
.tile--span-6 { grid-column: span 6; }
.tile--span-3 { grid-column: span 3; }
.tile--span-7 { grid-column: span 7; }
.tile--span-5 { grid-column: span 5; }

/* Wide tiles: text column reads top-to-bottom (copy, checklist, stat/action);
   the scene column holds one card sized to its content, so a tall row never leaves it half empty. */
.tile { --tile-pad: clamp(24px, 2.6vw, 36px); padding: var(--tile-pad); }
.tile--wide {
  display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  grid-template-rows: auto auto 1fr; column-gap: clamp(20px, 3vw, 40px); row-gap: 22px;
}
.tile--wide .tile__copy { grid-column: 1; grid-row: 1; }
.tile--wide .tile__list { grid-column: 1; grid-row: 2; }
.tile__stat { grid-column: 1; grid-row: 3; align-self: start; display: grid; justify-items: start; gap: 8px; }
.tile__stat strong { font-size: clamp(3rem, 4.4vw, 4rem); font-weight: 400; letter-spacing: -0.055em; line-height: 0.95; }
.tile__stat strong span { margin-left: 6px; font-size: 0.42em; letter-spacing: -0.02em; color: var(--teal-300); }
.tile__list { display: grid; gap: 10px; padding: 0; margin: 0; list-style: none; font-size: 14.5px; }
.tile__list li { display: flex; align-items: flex-start; gap: 12px; }
.tile__list li::before {
  content: ""; flex: 0 0 auto; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%;
  background: rgba(19, 36, 42, 0.08) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%231e6b62' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E") center / 10px no-repeat;
}

.tile--slate .tile__list li { color: rgba(238, 245, 246, 0.86); }
.tile--slate .tile__list li::before {
  background: rgba(244, 247, 247, 0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23a3cfc3' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E") center / 10px no-repeat;
}

.tile-scene { grid-column: 2; grid-row: 1 / -1; align-self: center; position: relative; } /* even space above and below in a tall row */
.scene-card {
  position: relative;
  overflow: hidden; display: flex; flex-direction: column;
  padding: 20px 22px 6px; border-radius: 22px; background: var(--white); color: var(--ink);
  box-shadow: var(--elev-2);
}
.tile--slate .scene-card { box-shadow: var(--elev-dark-2); }
.scene-card__head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.scene-card__head b { display: block; font-weight: 500; letter-spacing: -0.01em; }
.scene-card__head small { display: block; color: var(--ink-3); font-size: 13px; }

.scene-card__icon { display: grid; place-items: center; flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px; background: var(--teal-50); color: var(--teal-700); }

.scene-card__rows { display: grid; gap: 0; margin: 0; font-size: 13.5px; }
.scene-card__rows div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.scene-card__rows dt { color: var(--ink-3); }
.scene-card__rows dd { margin: 0; font-weight: 500; }

/* Voucher code ticket (Other ways to buy) */
.scene-card .voucher-code {
  margin: 18px 0; padding: 16px; border: 1.5px dashed var(--line-strong); border-radius: 14px; background: var(--linen);
  text-align: center; font-family: var(--font-mono); font-size: clamp(1.1rem, 1.8vw, 1.35rem); font-weight: 500; letter-spacing: 0.08em;
}
.scene-card .code-rolling { opacity: 0.45; } /* digits still shuffling (lspcare.js) */

/* Real terminal photo (lsp.io) in the "Pay on the bedside screen" tile */
.tile__photo { display: block; width: min(100%, 400px); height: auto; margin: auto auto 0; filter: drop-shadow(0 18px 22px rgba(19, 36, 42, 0.16)); }

/* How it works trio (KAORI feature trio) --------------------------------- */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: 0; margin: 0; list-style: none; }
.trio__item { display: grid; align-content: start; gap: 14px; }
.trio__item > h3 { margin-top: -6px; font-size: clamp(1.5rem, 2vw, 1.85rem); font-weight: 400; letter-spacing: -0.035em; }
.trio__item > p { color: var(--ink-3); font-size: 15.5px; max-width: 40ch; }
.scene {
  position: relative; overflow: hidden; isolation: isolate; aspect-ratio: 11 / 10; border-radius: var(--r-xl);
  display: grid; place-items: center; background: #edf2f3;
}
.scene--stone { background: var(--linen-2); }

.scene--dark { background: var(--lagoon-700); color: var(--text-on-dark); }
.scene--dark .pattern { color: rgba(157, 214, 224, 0.12); }

/* Step 1 screen: the bedside pricing screen */
.mini-bedside__title { margin: 0 0 10px; text-align: center; color: var(--white); font-size: 12.5px; font-weight: 500; letter-spacing: -0.01em; }
/* 3 x 2, like the real pricing screen (1-5 days and 1 week) */
.mini-bedside__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.mini-bedside__grid .mini-bedside__card { padding: 8px 7px 7px; gap: 8px 4px; }
.mini-bedside__grid .mini-bedside__card b { font-size: 11.5px; white-space: nowrap; }
.mini-bedside__grid .mini-bedside__card small { font-size: 9px; white-space: nowrap; }
.mini-bedside__grid .mini-bedside__card i { width: 18px; }
.mini-bedside__card {
  display: grid; grid-template-columns: 1fr auto; gap: 10px 6px; padding: 9px 9px 8px; border-radius: 9px;
  background: linear-gradient(0deg, rgba(45, 127, 152, 0.62), rgba(45, 127, 152, 0.24));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}
.mini-bedside__card b { display: block; color: var(--white); font-size: 12.5px; font-weight: 700; line-height: 1.15; }
.mini-bedside__card small { display: block; color: rgba(255, 255, 255, 0.8); font-size: 10px; }
.mini-bedside__card i { width: 30px; height: 9px; margin-top: 3px; border-radius: 5px; background: rgba(255, 255, 255, 0.55); }
.mini-bedside__card em {
  grid-column: 1 / -1; display: grid; place-items: center; height: 20px; border-radius: 12px;
  background: linear-gradient(180deg, #6FBFD6 0%, #2D7F98 35%, #1D5A6C 100%);
  color: var(--white); font-style: normal; font-size: 10px; font-weight: 700;
}
/* The app's remote-focus state: solid card, white Order button */
.mini-bedside__card.is-focused { background: #3F95AE; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35); }
.mini-bedside__card.is-focused em { background: var(--white); color: #1D5A6C; }

/* Step label, secure scene and the real terminal photo */
.trio__step { margin-top: 10px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal-700); }
/* One device, three screens ------------------------------------------------
   Every step panel holds the same CSS model of the white LSPcare terminal, at the same angle,
   on the same dark panel. Only the screen changes, so the three steps read as one story. */
.scene--device { background: var(--lagoon-700); perspective: 1100px; }
.scene--device .pattern { color: rgba(157, 214, 224, 0.1); }
.scene--device::after { /* teal pool of light under the device */
  content: ""; position: absolute; z-index: 0; left: 12%; right: 12%; bottom: 4%; height: 42%;
  background: radial-gradient(closest-side, rgba(28, 160, 168, 0.3), transparent); pointer-events: none;
}
/* Slim white shell lit from the top left. The stacked shadows on the right and bottom are the
   terminal's thickness (the faces turned towards the viewer at this angle), then a tight
   contact shadow and a soft cast shadow on the panel. */
.device {
  position: relative; z-index: 1; width: 84%; max-width: 430px; padding: 3px; border-radius: 20px;
  background: linear-gradient(145deg, #ffffff 0%, #eef2f3 45%, #c9d3d6 100%);
  box-shadow:
    1px 1px 0 #d5dde0, 2px 2px 0 #ccd5d8, 3px 3px 0 #c4ced1, 4px 4px 0 #bcc7ca,
    5px 5px 0 #b5c0c4, 6px 6px 0 #aeb9bd, 7px 7px 0 #a6b2b6, 8px 8px 0 #9eabaf,
    12px 14px 16px rgba(0, 0, 0, 0.32),
    26px 44px 60px -8px rgba(0, 0, 0, 0.55);
  /* shifted left: the tilt enlarges the near (right) edge and the thickness and shadows sit on the right,
     so a centred box reads right-heavy */
  transform: translateX(-3%) rotateX(12deg) rotateY(-20deg) rotateZ(2deg);
  transition: transform 900ms var(--ease);
}
.trio__item:hover .device { transform: translateX(-3%) translateY(-6px) rotateX(7deg) rotateY(-11deg) rotateZ(1deg); }
.device__glass { position: relative; padding: 7px 7px 0; border-radius: 17px; background: #0b1a20; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
.device__glass::after { /* glare across the glass */
  content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none;
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.05) 26%, transparent 40%);
}
.device__screen {
  position: relative; z-index: 1; overflow: hidden; display: grid; align-content: center; aspect-ratio: 16 / 10;
  padding: 10px; border-radius: 6px;
  background: linear-gradient(135deg, #0C1C2E 0%, #183852 52%, #3B7FA2 100%);
}
.device__chin { display: flex; align-items: center; justify-content: space-between; height: 22px; padding: 0 6px; }
.device__logo { color: rgba(255, 255, 255, 0.78); font-size: 8.5px; font-weight: 700; letter-spacing: -0.01em; }
.device__keys { display: flex; gap: 7px; }
.device__keys i { width: 5px; height: 5px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45); }

/* Step 2 screen: Select Payment Method (Card Payment, QR Pay, Use Voucher) */
.pay-methods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 4px 6% 0; }
.pay-method { display: grid; justify-items: center; gap: 6px; color: var(--white); }
.pay-method__tile {
  display: grid; place-items: center; width: 100%; aspect-ratio: 1.45; border-radius: 9px;
  background: linear-gradient(0deg, rgba(45, 127, 152, 0.62), rgba(45, 127, 152, 0.24));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}
.pay-method.is-focused .pay-method__tile { background: #3F95AE; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35), 0 0 0 2px rgba(255, 255, 255, 0.85); }
.pay-method small { font-size: 9.5px; font-weight: 600; white-space: nowrap; }

/* Step 3 screen: home screen as in the patient guide. Video tile left, active package and
   time left on the right, icon row along the bottom. */
.device__screen--home { grid-template-rows: auto minmax(0, 1fr) auto; align-content: stretch; gap: 6px; padding: 8px; }
.home__bar {
  display: flex; justify-content: space-between; padding-bottom: 4px; border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--white); font-size: 8.5px; font-weight: 600;
}
.home__main { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 6px; min-height: 0; }
.home__video { position: relative; overflow: hidden; border-radius: 6px; background: #0a1b21; }
.home__video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.home__video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(10, 27, 33, 0.85) 100%); }
.home__video p { position: absolute; z-index: 1; left: 7px; bottom: 5px; color: var(--white); font-size: 11px; font-weight: 600; letter-spacing: -0.01em; }
.home__status {
  display: grid; align-content: center; justify-items: center; gap: 2px; padding: 6px; border-radius: 6px; text-align: center;
  background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); color: var(--white); line-height: 1.2;
}
.home__status small { font-size: 6.5px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.72); }
.home__status b { font-size: 15px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.home__tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
.home__tiles span {
  display: grid; justify-items: center; gap: 2px; padding: 4px 2px; border-radius: 5px; color: var(--white);
  background: linear-gradient(0deg, rgba(45, 127, 152, 0.5), rgba(45, 127, 152, 0.2)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}
.home__tiles small { font-size: 5.5px; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }

/* Good to know: plain text facts under the steps */
.good-to-know {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px;
  margin: clamp(48px, 6vw, 72px) 0 0; padding-top: 28px; border-top: 1px solid var(--line);
}
.good-to-know dt { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; font-weight: 500; letter-spacing: -0.02em; }
.good-to-know dt svg { flex: 0 0 auto; color: var(--teal-700); } /* small inline anchor, not a boxed icon tile */
.good-to-know dd { margin: 8px 0 0; max-width: 40ch; padding-right: 16px; color: var(--ink-3); font-size: 15px; line-height: 1.55; }
.good-to-know a, .faq a { color: var(--ink); font-weight: 500; }

/* FAQ (KAORI-style split: title left, accordion right) ------------------- */
.faq { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.faq__intro { display: grid; gap: 18px; position: sticky; top: calc(var(--header-h) + 32px); }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; cursor: pointer; list-style: none;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem); font-weight: 500; letter-spacing: -0.02em;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { /* plus that turns into a minus */
  content: ""; flex: 0 0 auto; width: 14px; height: 14px;
  background: linear-gradient(currentColor, currentColor) center / 14px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 14px no-repeat;
  color: var(--teal-700); transition: transform var(--dur) var(--ease), background-size var(--dur) var(--ease);
}
.faq__item[open] summary::after { transform: rotate(180deg); background-size: 14px 1.5px, 1.5px 0; } /* vertical bar folds away, leaving a minus */
.faq__item summary:focus-visible { outline-offset: 4px; }
.faq__item p { max-width: 60ch; padding: 0 40px 24px 0; color: var(--ink-3); font-size: 15.5px; line-height: 1.6; }
.faq__item::details-content { block-size: 0; overflow: hidden; transition: block-size 320ms var(--ease), content-visibility 320ms allow-discrete; }
.faq__item[open]::details-content { block-size: auto; }
@supports (interpolate-size: allow-keywords) { .faq__list { interpolate-size: allow-keywords; } }


/* CTA band --------------------------------------------------------------- */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate; display: grid; justify-items: center; gap: 20px; text-align: center;
  padding: clamp(56px, 8vw, 104px) clamp(24px, 5vw, 64px); border-radius: var(--r-xl); background: var(--lagoon-700); color: var(--text-on-dark);
}
.cta-band .pattern { z-index: -1; color: rgba(157, 214, 224, 0.13); }
.cta-band::after { content: ""; position: absolute; z-index: -1; left: 50%; top: 62%; width: 60%; height: 60%; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(157, 214, 224, 0.1), transparent); }
.cta-band .h2 { max-width: 18ch; }
.cta-band .lead { max-width: 46ch; color: var(--muted-on-dark); }
.cta-band .lead a { color: var(--text-on-dark); font-weight: 600; white-space: nowrap; }
.cta-band .hero__actions { justify-content: center; }

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

@media (max-width: 1080px) {
  .tile--span-6, .tile--span-7, .tile--span-5 { grid-column: span 12; }
  .tile--span-3 { grid-column: span 6; }
  .tile { min-height: 440px; }
  .trio { grid-template-columns: 1fr 1fr; }
  .trio__item:last-child { grid-column: span 2; }

  /* Two columns: the wide third panel follows its content, with a shared minimum */
  .trio__item:last-child .scene { aspect-ratio: auto; min-height: 400px; }
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-row > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat-row > div:nth-child(n+3) { border-top: 1px solid var(--line-on-dark); margin-top: 24px; }
}

@media (max-width: 760px) {
  .tile--span-3 { grid-column: span 12; }
  .tile { min-height: 0; border-radius: var(--r-lg); }
  .tile--wide { grid-template-columns: 1fr; grid-template-rows: none; }
  .tile--wide .tile__copy, .tile--wide .tile__list, .tile__stat, .tile-scene { grid-column: 1; grid-row: auto; }
  .tile-scene { margin-top: 8px; }

  .trio { grid-template-columns: 1fr; }
  .trio__item:last-child { grid-column: auto; }
  /* Single column: all three panels share the same shape again */
  .trio__item:last-child .scene { aspect-ratio: 11 / 10; min-height: 0; }
  .scene, .cta-band { border-radius: var(--r-lg); }
  .good-to-know { grid-template-columns: 1fr; }
  .faq { grid-template-columns: 1fr; }
  .faq__intro { position: static; }
}
@media (max-width: 480px) {
  .stat-row > div { padding-inline: 16px; }
  .stat-row > div:nth-child(odd) { padding-left: 0; }
  .stat-row dt { font-size: 13.5px; }
}

/* ---------- 20. Motion -------------------------------------------------- */
/* One vocabulary, taken from the KAORI and LeadUp references: things rise 24px and fade in over
   800ms on the house ease (an ease-out quint), siblings follow 80ms apart, and cards also grow from
   96%. Only opacity and transform animate, so nothing triggers layout or paint while scrolling.
   Reveal is fail-safe: content is visible unless JS arms it, and only below the fold. */
.reveal-armed {
  opacity: 0; transform: translate3d(0, 24px, 0);
  transition: opacity 800ms var(--ease), transform 800ms var(--ease);
  transition-delay: var(--d, 0ms);
}
.reveal-armed.is-visible { opacity: 1; transform: none; }
.reveal-armed[data-delay="1"] { --d: 80ms; }
.reveal-armed[data-delay="2"] { --d: 160ms; }
.reveal-armed[data-delay="3"] { --d: 240ms; }
.reveal-armed.reveal--card { transform: translate3d(0, 28px, 0) scale(0.96); }
.reveal-armed[data-reveal="scale"] { transform: translate3d(0, 32px, 0) scale(0.97); transition-duration: 1000ms; }
.reveal-armed.is-visible.reveal--card, .reveal-armed.is-visible[data-reveal="scale"] { transform: none; }

/* How it works: each terminal arrives asleep, then wakes a beat later. The screen starts as dark as
   the bezel (the glass glare stays, as on a real sleeping tablet), the backlight ramps up over the
   whole display at once, and the UI settles from a slight zoom like a lock screen waking. */
.reveal-armed .device__screen::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: #0b1a20; /* = .device__glass, so screen and bezel read as one dark slab */
  transition: opacity 650ms cubic-bezier(0.4, 0, 0.2, 1) calc(var(--d, 0ms) + 450ms);
}
.reveal-armed.is-visible .device__screen::after { opacity: 0; }
.reveal-armed .device__screen > * { transform: scale(1.04); transition: transform 1100ms var(--ease) calc(var(--d, 0ms) + 450ms); }
.reveal-armed.is-visible .device__screen > * { transform: none; }

/* Stat numbers roll up like an odometer (built by JS, see lspcare.js). The real digit stays in the
   flow, transparent, so width, baseline and screen readers are untouched; the track rolls over it. */
.roll { position: relative; display: inline-block; color: transparent; clip-path: inset(-0.06em 0); }
.roll__track {
  position: absolute; left: 0; right: 0; top: 0; display: flex; flex-direction: column; color: var(--white);
  transform: translate3d(0, 0, 0);
  transition: transform 1400ms var(--ease) calc(var(--d, 0ms) + 120ms + var(--k, 0) * 90ms);
}
.is-visible .roll__track { transform: translate3d(0, calc(var(--n) * -10%), 0); }

/* Hero entrance runs on load, without JS. The headline comes in word by word (LeadUp), the rest
   follows in KAORI's 80ms steps, and the channel wall drifts in from the right as it fades up. */
.hero__title .word { display: inline-block; animation: rise-word 900ms var(--ease) backwards; animation-delay: calc(60ms + var(--i, 0) * 45ms); }
.hero .reveal { animation: rise 900ms var(--ease) backwards; }
.hero .reveal[data-delay="1"] { animation-delay: 320ms; }
.hero .reveal[data-delay="2"] { animation-delay: 420ms; }
.hero .reveal[data-delay="3"] { animation-delay: 520ms; }
.hero__visual { animation: wall-in 1600ms var(--ease) backwards 200ms; }
@keyframes rise { from { opacity: 0; transform: translate3d(0, 24px, 0); } }
@keyframes rise-word { from { opacity: 0; transform: translate3d(0, 0.32em, 0); } }
@keyframes wall-in { from { opacity: 0; transform: translate3d(48px, 24px, 0) scale(0.96); } }
@keyframes drop-in { from { opacity: 0; transform: translate3d(0, -12px, 0); } }

/* Landing header settles in from above, item by item. Only the contents move: the bar itself
   stays put so the page never shows behind it. */
.page-home .site-header__inner > * { animation: drop-in 700ms var(--ease) backwards; }
.page-home .site-header__inner > :nth-child(2) { animation-delay: 80ms; }
.page-home .site-header__inner > :nth-child(n+3) { animation-delay: 160ms; }

/* Page arrivals (every page except the landing). Two kinds of motion, because of how the pages are
   built: the white content blocks overlap the bottom edge of the dark heading band. Fading them in
   would make them half murky glass over the band and half invisible over the light background, with
   the band's edge showing through. So:
   - text in the dark band (one flat colour) fades and rises;
   - the white blocks stay solid from the first frame and settle up into place, starting at once,
     so the light area is never empty.
   The choice steps skip the heading part when a page transition is already animating the page. */
@keyframes rise-sm { from { opacity: 0; transform: translate3d(0, 12px, 0); } }
@keyframes settle { from { transform: translate3d(0, 18px, 0); } }

:root:not(.flow-vt) .page-head__inner > *,
.error-hero > div > * { animation: rise-sm 480ms var(--ease) backwards; }
.page-head__inner > :nth-child(2), .error-hero > div > :nth-child(2) { animation-delay: 40ms; }
.page-head__inner > :nth-child(3), .error-hero > div > :nth-child(3) { animation-delay: 80ms; }
.page-head__inner > :nth-child(n+4), .error-hero > div > :nth-child(n+4) { animation-delay: 120ms; }

/* content blocks on help, terms, receipts, your details, concession */
:root:not(.flow-motion) .page-body > div > * { animation: settle 640ms var(--ease) backwards; }
:root:not(.flow-motion) .page-body > div > :nth-child(2) { animation-delay: 40ms; }
:root:not(.flow-motion) .page-body > div > :nth-child(n+3) { animation-delay: 80ms; }

/* choice steps on a direct load: the cards settle one after another */
.flow-motion:not(.flow-vt) .page-body .choice-grid > *,
.flow-motion:not(.flow-vt) .page-body .bedside-pricing,
.flow-motion:not(.flow-vt) .page-body .channel-marquee,
.flow-motion:not(.flow-vt) .page-body .empty-state { animation: settle 640ms var(--ease) backwards; }
.flow-motion .page-body .choice-grid > * { animation-delay: calc(var(--i, 0) * 40ms); }
.choice-grid > :nth-child(2) { --i: 1; } .choice-grid > :nth-child(3) { --i: 2; } .choice-grid > :nth-child(4) { --i: 3; }
.choice-grid > :nth-child(5) { --i: 4; } .choice-grid > :nth-child(6) { --i: 5; } .choice-grid > :nth-child(n+7) { --i: 6; }

/* Checkout, receipt and terminal pages also run in the bedside terminal's WebView: the same two
   kinds, smaller and quicker, so the payment form is usable almost at once. */
.checkout-head > div > * { animation: rise-xs 360ms var(--ease) backwards; }
.checkout-head > div > :nth-child(2) { animation-delay: 40ms; }
.checkout-body > div > * { animation: settle-xs 480ms var(--ease) backwards; }
.checkout-body > div > :nth-child(n+2) { animation-delay: 40ms; }
@keyframes rise-xs { from { opacity: 0; transform: translate3d(0, 8px, 0); } }
@keyframes settle-xs { from { transform: translate3d(0, 10px, 0); } }

/* Payment success: the one celebratory moment. The mark pops in with a slight overshoot, the tick
   draws itself, one ring ripples out, then the words follow. The forms and buttons below never wait. */
.success-mark { position: relative; animation: mark-pop 620ms cubic-bezier(0.34, 1.56, 0.64, 1) backwards 80ms; }
.success-mark::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  border: 2px solid rgba(28, 160, 168, 0.45); opacity: 0;
  animation: mark-ring 1100ms cubic-bezier(0.22, 1, 0.36, 1) 420ms;
}
.success-mark path { stroke-dasharray: 22; stroke-dashoffset: 0; animation: tick-draw 460ms cubic-bezier(0.65, 0, 0.35, 1) backwards 320ms; } /* 22 = the tick's path length */
.receipt-header h1 { animation: rise-sm 560ms var(--ease) backwards 380ms; }
.receipt-header .payment-confirmation { animation: rise-sm 560ms var(--ease) backwards 450ms; }
.receipt-header .activation-note { animation: rise-sm 560ms var(--ease) backwards 520ms; }
@keyframes mark-pop { from { opacity: 0; transform: scale(0.4); } }
@keyframes mark-ring { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(1.7); } }
@keyframes tick-draw { from { stroke-dashoffset: 22; } }

/* Press feedback: buttons give a little under the finger */
.btn:active { transform: scale(0.97); transition-duration: 90ms; }

.finder-reveal { animation: finder-in 420ms var(--ease) both; }
@keyframes finder-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .channel-wall__col { animation: none !important; }
  /* marquee stands still; the row can be swiped instead */
  .channel-marquee__track { animation: none !important; }
  .channel-marquee__viewport { overflow-x: auto; scrollbar-width: none; -webkit-mask-image: none; mask-image: none; margin-inline: 0; }
  .channel-marquee__set[aria-hidden="true"] { display: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }
  .reveal-armed { opacity: 1; transform: none; }
  .hero__title .word, .hero .reveal, .hero__visual, .page-home .site-header__inner > *,
  .page-head__inner > *, .page-body > div > *, .error-hero > div > *, .checkout-head > div > *, .checkout-body > div > *,
  .flow-motion .choice-grid > *, .flow-motion .bedside-pricing, .flow-motion .channel-marquee, .flow-motion .empty-state,
  .success-mark, .success-mark::after, .success-mark path, .receipt-header > *,
  .mobile-menu, .mobile-menu > *, .chat-badge, .chat-conversation, .chat-message.is-new { animation: none !important; } /* no waiting through stagger delays */
  .live-dot { animation: none; }
  .btn:active { transform: none; }
  .channel-card:hover .channel-card__tile { transform: none; }
  .trio__item:hover .device { transform: translateX(-3%) rotateX(12deg) rotateY(-20deg) rotateZ(2deg); } /* keep the resting angle */
}

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

/* ---------- 21. Responsive --------------------------------------------- */
@media (max-width: 1080px) {
  .form-layout:not(.form-layout--even) { grid-template-columns: minmax(0, 1fr) 320px; }
  .bedside-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .site-nav { display: none; }
  .menu-toggle { display: inline-flex; }

  .hero__inner { grid-template-columns: 1fr; min-height: 0; padding-bottom: 32px; }
  .hero__visual { height: 400px; width: 100%; }
  .hero-frame { top: -6%; bottom: -6%; left: calc(-1 * var(--gutter)); right: calc(-1 * var(--gutter)); }
  .channel-wall { -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%); }

  .section-head--split { grid-template-columns: 1fr; }
  .finder { grid-template-columns: 1fr; }
  .finder__intro { position: static; }

  /* Channel row becomes a swipeable rail (5 tiles don't split evenly into 2 or 3 columns) */
  .channel-grid {
    display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1); padding: 8px var(--gutter) 28px; scroll-padding-inline: var(--gutter);
  }
  .channel-grid::-webkit-scrollbar { display: none; }
  .channel-card { flex: 0 0 34%; scroll-snap-align: start; container-type: scroll-state; }
  @container scroll-state(snapped: x) {
    .channel-card__glow { opacity: 0.48; }
  }

  .form-layout:not(.form-layout--even), .form-layout.form-layout--even { grid-template-columns: 1fr; }
  .summary-card { position: static; order: -1; }
}

@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .brand img { width: 148px; }

  .channel-grid { gap: 16px; }
  .channel-card { flex: 0 0 62%; }

  .help-grid { grid-template-columns: 1fr; }
  .summary-card { padding: 18px 20px; gap: 12px; }
  .summary-card dl { gap: 10px; }
  .summary-card__row + .summary-card__row { padding-top: 10px; }
  .summary-card__total dd { font-size: 1.6rem; }

  .bedside-grid { grid-template-columns: 1fr; }
  .field-grid { grid-template-columns: 1fr; }
  .option-list--two { grid-template-columns: 1fr; }
  .details { grid-template-columns: 1fr 1fr; }

  .journey ol { display: none; }
  .journey__compact, .journey__bar { display: block; }

  .site-footer__inner { grid-template-columns: 1fr; }
  .site-footer__legal { flex-direction: column; align-items: flex-start; }

  .screen-invoice { padding: 24px 16px; font-size: 14px; }
  .invoice-heading { margin-bottom: 24px; }
  .invoice-heading :is(h1, h2) { font-size: 18px; }
  .invoice-heading img { width: 76px; }
  .invoice-details { gap: 12px; margin-bottom: 28px; }
  .invoice-meta { width: 58%; }
  .invoice-items { font-size: 12px; }
  .invoice-items th, .invoice-items td { padding: 4px; }
  .invoice-items th { font-size: 11px; padding: 4px 2px; }
  .invoice-items .description-column { width: 46%; }
  .invoice-items .quantity-column { width: 12%; }
  .invoice-items .price-column { width: 20%; }
  .invoice-items .amount-column { width: 22%; }
  .invoice-total { gap: 16px; margin-right: 4px; font-size: 13px; }
}

@media (max-width: 480px) {
  .btn { white-space: normal; text-align: center; }
  .choice-card { gap: 12px; padding: 16px; }
  .choice-card__logo { width: 48px; height: 48px; padding: 6px; border-radius: 12px; }
  .choice-card__go { width: 34px; height: 34px; }
  .voucher-code { padding: 16px 14px; font-size: clamp(0.9rem, 4.8vw, 1.4rem); letter-spacing: 0.04em; }
  .scene-card .voucher-code { padding: 16px 14px; font-size: clamp(1.05rem, 5.2vw, 1.4rem); letter-spacing: 0.04em; }
  .receipt-reference dd { font-size: 13px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .sms-controls { grid-template-columns: 1fr; }
  .hero__visual { height: 320px; }
  .state-tile { padding: 10px 4px; }
  .state-tile strong { font-size: 15px; }
  .state-tile small { font-size: 12px; letter-spacing: -0.01em; }
  .transaction__head { flex-direction: column; }
}

@media (max-width: 380px) {
  .state-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media print {
  body { background: #fff; }
  .site-header, .site-footer, .receipt-card, .checkout-head, .invoice-actions { display: none !important; }
  /* Content pages: the dark band prints as white text on white paper with background graphics off */
  .page-head { background: none; color: var(--ink); padding: 0 0 12px; }
  .page-head::before { display: none; }
  .page-head .lead { color: var(--ink-2); }
  .page-head .eyebrow { color: var(--ink-3); }
  .page-body { margin-top: 0; padding-bottom: 0; }
  .page-head .container, .page-body .container { width: 100%; }
  .legal-index, .legal-top, .skip-link { display: none !important; }
  .legal-layout.has-index { display: block; }
  .legal-doc { padding: 0; border: 0; border-radius: 0; box-shadow: none; }
  .legal-doc .prose { max-width: none; font-size: 11pt; line-height: 1.5; color: #000; }
  .legal-doc .prose h2 { break-after: avoid; page-break-after: avoid; }
  .legal-doc .prose p, .legal-doc .prose li { orphans: 3; widows: 3; }
  .legal-doc .prose a { color: inherit; text-decoration: underline; }
  .checkout-body { margin: 0; }
  .invoice-page { padding-bottom: 0; }
  .screen-invoice { margin: 0; border: 0; }
}

#card-button { margin-top: 12px; }

/* Support page: answers come first; tickets start from a knowledge base article. */
.support-intro { margin-bottom: 18px; color: var(--ink-2); }
.answer-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.answer-list__link {
  display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 14px; border-radius: var(--r-md);
  border: 1px solid var(--line); background: var(--white); color: var(--ink); text-decoration: none;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.answer-list__link:hover { color: var(--ink); border-color: var(--teal-500); box-shadow: var(--shadow-1); transform: translateY(-1px); }
.answer-list__icon { display: grid; place-items: center; flex: 0 0 auto; width: 36px; height: 36px; border-radius: 10px; background: var(--teal-50); color: var(--teal-700); }
.answer-list__title { flex: 1; min-width: 0; font-weight: 600; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.answer-list__go { flex: 0 0 auto; color: var(--ink-3); transition: transform var(--dur) var(--ease), color var(--dur) var(--ease); }
.answer-list__link:hover .answer-list__go { color: var(--teal-700); transform: translateX(2px); }

/* Knowledge base article: clear next step when the article didn't solve it. */
.kb-help {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; margin-top: 20px;
  padding: clamp(20px, 2.6vw, 28px); border-radius: var(--r-lg); background: var(--linen); color: var(--ink-2);
}
.kb-help__icon { display: grid; place-items: center; flex: 0 0 auto; width: 48px; height: 48px; border-radius: 14px; background: var(--white); color: var(--teal-700); }
.kb-help__body { display: grid; gap: 4px; flex: 1 1 280px; min-width: 0; }
.kb-help__title { font-size: 1.2rem; letter-spacing: -0.02em; color: var(--ink); }
@media (max-width: 560px) { .kb-help .btn { width: 100%; } }


