/* HostSA prototype: Cape Town by day (light) and at dusk (dark mode)
   Palette: Teal Blue #DBF2FC · Navy #072D50 · Crimson Pink #FE5C8D.
   Built on the landing-page-design skill (type scale, spacing tokens, radii, base curve).
   User-requested exceptions: the illustrated scene uses gradients; people photos get a subtle navy grade. */

:root {
  --s-25: 2px; --s-50: 4px; --s-75: 8px; --s-100: 12px; --s-200: 16px; --s-300: 24px;
  --s-400: 32px; --s-500: 40px; --s-600: 48px; --s-700: 64px; --s-800: 80px; --s-900: 96px;
  --r-md: 6px; --r-lg: 8px; --r-xl: 12px; --r-2xl: 16px; --r-3xl: 24px; --r-full: 9999px;
  --curve: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;
  --teal: #DBF2FC; --navy: #072D50; --navy-deep: #041D35; --night: #020E1C; --crimson: #FE5C8D; --crimson-hover: #FF7AA3;

  /* Light (default): Cape Town by day */
  --bg: #ffffff;  --tint: var(--teal);  --ink: var(--navy);  --muted: #4B6580;  --line: rgba(7,45,80,.12);
  --icon: #D93A6C;  --error: #C8264F;
  --glass-bg: rgba(255,255,255,.5);  --glass-border: rgba(255,255,255,.95);  --glass-shine: rgba(255,255,255,.95);
  --glass-shadow: 0 1px 1px rgba(7,45,80,.03), 0 4px 8px rgba(7,45,80,.04), 0 16px 32px rgba(7,45,80,.08), 0 40px 80px rgba(7,45,80,.08);
  --nav-glass: rgba(255,255,255,.7);  --menu-bg: rgba(238,248,253,.94);
  --chip-bg: rgba(255,255,255,.55);  --chip-border: rgba(7,45,80,.12);  --row-bg: rgba(255,255,255,.7);  --stats-glass: rgba(255,255,255,.62);
  --hover-tint: rgba(7,45,80,.06);
  --title-from: #072D50;  --title-to: #3E6E98;

  /* Scene */
  --sky:
    radial-gradient(55% 30% at 45% 64%, rgba(254,92,141,.3), rgba(254,92,141,0) 70%),
    radial-gradient(35% 22% at 82% 18%, rgba(255,255,255,.9), rgba(255,255,255,0) 70%),
    linear-gradient(180deg, #A9DCF6 0%, #C8EAFB 22%, #E3F4FD 45%, #FBEFF4 58%, #FFD3E0 69.6%, #BFE2F5 70%, #E4F4FC 100%);
  --ridge-far: #A9C6DF;  --ridge-main: #2F5A86;  --ridge-rim: rgba(255,255,255,.85);  --ridge-glow: rgba(255,255,255,.4);
  --reflection: #5C84AC;  --reflection-opacity: .28;
  --glint: rgba(254,92,141,.45);  --shimmer: rgba(255,255,255,.45);
  --city: rgba(7,45,80,.35);  --city-glow: none;
  --stars-display: none;  --grain-opacity: .07;
  --band-sky: linear-gradient(180deg, #EEF8FD, #DBF2FC 55%, #FCE8EF);
  --band-glow: radial-gradient(70% 60% at 50% 100%, rgba(254,92,141,.22), rgba(254,92,141,0) 70%);
    color-scheme: light;
}

/* Dark mode: Cape Town at dusk */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--navy-deep);  --tint: var(--navy);  --ink: #EAF6FD;  --muted: #B4CBE0;  --line: rgba(219,242,252,.16);
    --icon: var(--crimson);  --error: #FF9BBA;
    --glass-bg: rgba(6,30,56,.42);  --glass-border: rgba(219,242,252,.2);  --glass-shine: rgba(255,255,255,.2);
    --glass-shadow: 0 20px 50px rgba(1,8,18,.45);
    --nav-glass: rgba(4,29,53,.62);  --menu-bg: rgba(4,29,53,.92);
    --chip-bg: rgba(6,30,56,.35);  --chip-border: rgba(219,242,252,.18);  --row-bg: rgba(4,29,53,.45);  --stats-glass: rgba(4,24,46,.6);
    --hover-tint: rgba(219,242,252,.1);
    --title-from: #FFFFFF;  --title-to: #9CC6E4;
    --sky:
      radial-gradient(55% 30% at 45% 62%, rgba(254,92,141,.55), rgba(254,92,141,0) 70%),
      radial-gradient(40% 20% at 82% 66%, rgba(219,242,252,.2), rgba(219,242,252,0) 70%),
      linear-gradient(180deg, #020E1C 0%, #041D35 16%, #0B2C5C 32%, #2D3C8C 43%, #7A4A98 51%, #D4568F 60%, #FE7BA2 69.6%, #0B2A4C 70%, #041D35 100%);
    --ridge-far: #3A3C86;  --ridge-main: #030C18;  --ridge-rim: rgba(254,92,141,.75);  --ridge-glow: rgba(254,92,141,.25);
    --reflection: #020812;  --reflection-opacity: .55;
    --glint: rgba(254,123,162,.75);  --shimmer: rgba(219,242,252,.06);
    --city: #FFE9C7;  --city-glow: 0 0 6px currentColor;
    --stars-display: block;  --grain-opacity: .14;
    --band-sky: linear-gradient(180deg, #020E1C, #041D35 50%, #0A2A57);
    --band-glow: radial-gradient(70% 60% at 50% 100%, rgba(254,92,141,.42), rgba(254,92,141,0) 70%);
    color-scheme: dark;
  }
}

/* Hero, nav and mobile menu are always the dusk scene (the original "wow" hero) */
.hero-band, .page-hero, .nav, .mobile-menu {
  --ink: #EAF6FD; --muted: #B4CBE0; --line: rgba(219,242,252,.16); --icon: var(--crimson); --error: #FF9BBA;
  --glass-bg: rgba(6,30,56,.42); --glass-border: rgba(219,242,252,.2); --glass-shine: rgba(255,255,255,.2);
  --glass-shadow: 0 20px 50px rgba(1,8,18,.45);
  --nav-glass: rgba(4,29,53,.62); --menu-bg: rgba(4,29,53,.92);
  --chip-bg: rgba(6,30,56,.35); --chip-border: rgba(219,242,252,.18); --row-bg: rgba(4,29,53,.45); --stats-glass: rgba(4,24,46,.6);
  --hover-tint: rgba(219,242,252,.1);
  --title-from: #FFFFFF; --title-to: #9CC6E4;
  --sky:
    radial-gradient(55% 30% at 45% 62%, rgba(254,92,141,.55), rgba(254,92,141,0) 70%),
    radial-gradient(40% 20% at 82% 66%, rgba(219,242,252,.2), rgba(219,242,252,0) 70%),
    linear-gradient(180deg, #020E1C 0%, #041D35 16%, #0B2C5C 32%, #2D3C8C 43%, #7A4A98 51%, #D4568F 60%, #FE7BA2 69.6%, #0B2A4C 70%, #041D35 100%);
  --ridge-far: #3A3C86; --ridge-main: #030C18; --ridge-rim: rgba(254,92,141,.75); --ridge-glow: rgba(254,92,141,.25);
  --reflection: #020812; --reflection-opacity: .55;
  --glint: rgba(254,123,162,.75); --shimmer: rgba(219,242,252,.06);
  --city: #FFE9C7; --city-glow: 0 0 6px currentColor;
  --stars-display: block; --grain-opacity: .14;
  color: var(--ink);
}
.hero-band, .page-hero { background: var(--night); }
:is(.hero-band, .page-hero) .city i.p { background: #FE8FB0; color: #FE8FB0; }
:is(.hero-band, .page-hero) .city i.t { background: #DBF2FC; color: #DBF2FC; }
:is(.hero-band, .page-hero) .city i.tw { animation: twinkle 3s ease-in-out infinite; }

/* Footer is navy in both themes */
.footer { --ink: #EAF6FD; --muted: #B4CBE0; --line: rgba(219,242,252,.16); color: var(--ink); }

/* ---------- Text styles ---------- */
.heading-1 { font-size: 60px; line-height: 60px; font-weight: 400; letter-spacing: -0.035em; }
.heading-2 { font-size: 48px; line-height: 48px; font-weight: 400; letter-spacing: -0.03em; }
.heading-3 { font-size: 36px; line-height: 40px; font-weight: 400; letter-spacing: -0.02em; }
.heading-4 { font-size: 30px; line-height: 36px; font-weight: 500; letter-spacing: -0.02em; }
.heading-5 { font-size: 24px; line-height: 32px; font-weight: 500; letter-spacing: -0.01em; }
.heading-6 { font-size: 20px; line-height: 28px; font-weight: 500; }
.title-2 { font-size: 18px; line-height: 28px; font-weight: 500; }
.title-3 { font-size: 16px; line-height: 24px; font-weight: 500; }
.title-4 { font-size: 14px; line-height: 20px; font-weight: 500; }
.body-2 { font-size: 16px; line-height: 24px; font-weight: 500; }
.body-3 { font-size: 16px; line-height: 24px; font-weight: 400; }
.body-6 { font-size: 14px; line-height: 20px; font-weight: 400; }
.body-7 { font-size: 18px; line-height: 28px; font-weight: 400; }
.button-md { font-size: 16px; line-height: 24px; font-weight: 600; }
.button-sm { font-size: 14px; line-height: 20px; font-weight: 600; }
.caption-1 { font-size: 14px; line-height: 20px; font-weight: 500; }
.caption-2 { font-size: 14px; line-height: 20px; font-weight: 400; }
.caption-3 { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.caption-4 { font-size: 12px; line-height: 16px; font-weight: 500; }
.caption-5 { font-size: 12px; line-height: 16px; font-weight: 400; }
h1, h2, h3, [class*="heading-"] { text-wrap: balance; margin: 0; }
p, li, dd, blockquote { text-wrap: pretty; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 24px; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
p, ul, ol, figure, blockquote, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
img { max-width: 100%; }
.ph { font-size: 20px; line-height: 1; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: var(--s-200); top: -100px; z-index: 100; background: var(--navy); color: #fff; padding: var(--s-75) var(--s-100); border-radius: var(--r-lg); }
.skip:focus { top: var(--s-200); }
:focus-visible { outline: 2px solid var(--crimson); outline-offset: 3px; }
.container { position: relative; max-width: 1248px; margin: 0 auto; padding-left: max(var(--s-300), env(safe-area-inset-left, 0px)); padding-right: max(var(--s-300), env(safe-area-inset-right, 0px)); }
.section { padding-top: var(--s-900); padding-bottom: var(--s-900); }

/* ---------- Glass ---------- */
.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(22px) saturate(1.7);
  backdrop-filter: blur(22px) saturate(1.7);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 var(--glass-shine), var(--glass-shadow);
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-75); padding: var(--s-75) var(--s-100); border-radius: var(--r-full); border: 1px solid transparent; text-decoration: none; cursor: pointer; font-family: inherit; white-space: nowrap;
  transition: background-color 300ms var(--curve), transform 500ms var(--curve), box-shadow 300ms var(--curve), border-color 300ms var(--curve); }
.btn .ph { font-size: 16px; transition: transform 500ms var(--curve); }
.btn:hover .ph { transform: translate(2px, -2px); }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--crimson); color: var(--navy); box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 10px 30px -10px rgba(254,92,141,.75); }
.btn-primary:hover { background: var(--crimson-hover); transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 14px 36px -10px rgba(254,92,141,.9); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--hover-tint); border-color: var(--glass-border); }

/* ---------- Nav ---------- */
.nav-wrap { position: fixed; top: calc(var(--s-200) + env(safe-area-inset-top, 0px)); left: 0; right: 0; z-index: 40; display: flex; justify-content: center; padding: 0 var(--s-200); pointer-events: none; }
.nav { --glass-bg: var(--nav-glass); pointer-events: auto; display: flex; align-items: center; gap: var(--s-300); padding: var(--s-75) var(--s-75) var(--s-75) var(--s-300); border-radius: var(--r-full); }
.logo { display: inline-flex; align-items: center; gap: 1px; text-decoration: none; font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.logo-host { font-size: 20px; letter-spacing: -0.03em; }
/* "SA" in a corner bracket with the logo's purple to pink gradient */
.logo-sa { position: relative; margin-left: 6px; padding: 3px 5px 2px; font-size: 13px; font-weight: 500; letter-spacing: .02em; }
.logo-sa::before, .logo-sa::after { content: ""; position: absolute; width: 9px; height: 9px; }
.logo-sa::before { left: 0; top: 0; border-top: 1.5px solid #6A3EA1; border-left: 1.5px solid #6A3EA1; }
.logo-sa::after { right: 0; bottom: 0; border-bottom: 1.5px solid #EA4C8D; border-right: 1.5px solid #EA4C8D; }
.nav-links { display: flex; gap: var(--s-25); }
.nav-links a { text-decoration: none; padding: var(--s-75) var(--s-100); border-radius: var(--r-full); color: var(--muted); transition: background-color 300ms var(--curve), color 300ms var(--curve); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); background: var(--hover-tint); }
.menu-toggle { display: none; position: relative; width: 40px; height: 40px; border: 0; background: transparent; color: var(--ink); border-radius: var(--r-full); cursor: pointer; }
.menu-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: currentColor; border-radius: 2px; transition: transform 500ms var(--curve); }
.menu-toggle span:first-child { transform: translateY(-4px); }
.menu-toggle span:last-child { transform: translateY(4px); }
.menu-toggle[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }
.mobile-menu { position: fixed; inset: 0; z-index: 30; background: var(--menu-bg); -webkit-backdrop-filter: blur(32px) saturate(1.5); backdrop-filter: blur(32px) saturate(1.5);
  padding: calc(var(--s-900) + env(safe-area-inset-top, 0px)) var(--s-300) var(--s-600); opacity: 0; transition: opacity 300ms var(--curve); }
.mobile-menu.open { opacity: 1; }
.mobile-menu nav { display: flex; flex-direction: column; gap: var(--s-200); }
.mobile-menu a { text-decoration: none; opacity: 0; transform: translateY(var(--s-300)); transition: opacity 500ms var(--curve), transform 500ms var(--curve); }
.mobile-menu a[aria-current="page"] { color: var(--icon); }
.mobile-menu.open a { opacity: 1; transform: none; }

/* ---------- Hero scene ---------- */
.hero-band { position: relative; min-height: max(880px, 100svh); display: flex; flex-direction: column; overflow: hidden; isolation: isolate; }
.scene { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: var(--sky); }
.stars { position: absolute; inset: 0; width: 100%; height: 100%; display: var(--stars-display); }
.hero-band .stars { height: 70%; }
.land { position: absolute; left: 0; right: 0; bottom: 30%; height: 30%; will-change: transform; }
.ridge { position: absolute; bottom: 0; left: -4%; width: 108%; display: block; }
.ridge-far { height: 62%; fill: var(--ridge-far); opacity: .6; }
.ridge-main { height: 100%; fill: var(--ridge-main); filter: drop-shadow(0 -1px 0 var(--ridge-rim)) drop-shadow(0 -10px 24px var(--ridge-glow)); }
.city { position: absolute; left: 0; right: 0; bottom: 0; height: 26px; }
.city i { position: absolute; width: 2px; height: 2px; border-radius: 1px; background: var(--city); color: var(--city); box-shadow: var(--city-glow); }
@media (prefers-color-scheme: dark) {
  .city i.p { background: #FE8FB0; color: #FE8FB0; }
  .city i.t { background: #DBF2FC; color: #DBF2FC; }
  .city i.tw { animation: twinkle 3s ease-in-out infinite; }
}
@keyframes twinkle { 50% { opacity: .25; } }
.network { position: absolute; left: 0; bottom: 0; width: 100%; height: 200%; overflow: visible; }
.arc { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-dasharray: 140 1200; stroke-dashoffset: 1340; animation: pulse 5.5s var(--curve) infinite; opacity: .9; }
.arc-2 { animation-delay: 1.6s; animation-duration: 6.5s; }
.arc-3 { animation-delay: 3s; animation-duration: 7s; }
.arc-4 { animation-delay: .8s; animation-duration: 4.8s; }
@keyframes pulse { to { stroke-dashoffset: 0; } }

.water { position: absolute; left: 0; right: 0; bottom: 0; height: 30%; overflow: hidden; }
.reflection { position: absolute; top: 0; left: -4%; width: 108%; height: 70%; fill: var(--reflection); transform: scaleY(-1); transform-origin: top; opacity: var(--reflection-opacity); filter: blur(2px); }
.glint { position: absolute; top: 0; left: 30%; width: 30%; height: 100%; background: radial-gradient(50% 90% at 50% 0%, var(--glint), rgba(254,92,141,0) 75%); filter: blur(3px); mask: repeating-linear-gradient(180deg, #000 0 3px, transparent 3px 7px); -webkit-mask: repeating-linear-gradient(180deg, #000 0 3px, transparent 3px 7px); animation: glint 6s ease-in-out infinite alternate; }
.shimmer { position: absolute; inset: 0; background: repeating-linear-gradient(180deg, var(--shimmer) 0 1px, transparent 1px 9px); animation: shimmer 8s linear infinite; }
@keyframes glint { from { transform: translateX(-12px) scaleX(.9); opacity: .8; } to { transform: translateX(12px) scaleX(1.1); opacity: 1; } }
@keyframes shimmer { to { background-position: 0 90px; } }
.grain { position: absolute; inset: 0; opacity: var(--grain-opacity); mix-blend-mode: soft-light; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* Hero: one big glass panel over the scene, prism breaking out of its top edge */
.hero-wrap { flex: 1; width: 100%; max-width: 1400px; display: flex; padding-top: calc(var(--s-900) + var(--s-200)); padding-bottom: var(--s-600); }
.hero-panel { position: relative; flex: 1; min-height: max(720px, calc(100svh - 160px)); border-radius: 32px;
  --glass-bg: rgba(4, 24, 46, .12); -webkit-backdrop-filter: blur(3px) saturate(1.35); backdrop-filter: blur(3px) saturate(1.35);   /* clear enough for the mountain to show */
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: auto 1fr auto;
  padding: var(--s-800) var(--s-800) 0; column-gap: var(--s-600); overflow: hidden; }
.hero-panel::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background:
    linear-gradient(140deg, rgba(255,255,255,.14), rgba(255,255,255,0) 35%),
    linear-gradient(320deg, rgba(254,92,141,.10), rgba(254,92,141,0) 40%),
    /* deeper tint low down keeps text readable over the bright horizon */
    linear-gradient(180deg, rgba(4,24,46,0) 38%, rgba(4,24,46,.38) 72%, rgba(4,24,46,.55) 100%); }
/* Thin construction lines, like an architect's frame */
.rule { position: absolute; background: rgba(219,242,252,.16); pointer-events: none; }
.rule-v { top: var(--s-800); bottom: 0; left: var(--s-600); width: 1px; }
/* Horizontal rule lives on the bottom row (.hero-foot::before) so it always sits above the note */
.rule-h { display: none; }

.hero-main { grid-column: 1; grid-row: 1 / span 2; position: relative; z-index: 2; display: flex; flex-direction: column; gap: var(--s-400); padding-left: var(--s-400); min-width: 0; }
.hero-title { margin: 0; font-size: 96px; line-height: 92px; font-weight: 400; letter-spacing: -0.045em;
  background: linear-gradient(100deg, #FFFFFF 30%, #BFE3F7 75%, #FFC2D5); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: var(--s-75); }
.hero-title span { display: block; white-space: nowrap; }
.hero-title .l2 { padding-left: 1.15em; }
.hero-title .l3 { padding-left: .45em; }
.hero-aside { grid-column: 2; grid-row: 2; align-self: end; position: relative; z-index: 2; max-width: 400px; padding: var(--s-300) 0 var(--s-600) var(--s-300); color: var(--ink);
  box-shadow: inset 1px 0 0 rgba(219,242,252,.3); }
.tick { position: absolute; left: -3px; top: var(--s-300); width: 6px; height: 6px; background: var(--ink); border-radius: 1px; }
.hero-foot::before { content: ""; position: absolute; top: 0; height: 1px; background: rgba(219,242,252,.16);
  left: calc(var(--s-600) - var(--s-800)); right: calc(-1 * var(--s-600)); }   /* from the vertical rule to the cards */
.hero-foot { grid-column: 1; grid-row: 3; position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: space-between; gap: var(--s-300); min-height: 168px; padding: var(--s-400) var(--s-400) var(--s-300) var(--s-400); }
.hero-note { position: relative; max-width: 380px; padding-left: var(--s-200); color: var(--ink); }
.hero-note .tick { left: 0; top: 10px; }
.scroll-cue { display: inline-flex; align-items: center; gap: var(--s-75); color: var(--muted); text-decoration: none; width: max-content; }
.mouse { width: 16px; height: 24px; border: 1.5px solid currentColor; border-radius: 8px; display: grid; justify-items: center; padding-top: 4px; }
.mouse i { width: 2px; height: 5px; border-radius: 1px; background: currentColor; animation: wheel 1.8s var(--curve) infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(6px); opacity: 0; } 100% { opacity: 0; } }
.hero-cards { grid-column: 2; grid-row: 3; align-self: end; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-200); position: relative; z-index: 2; }
.mini { --glass-bg: rgba(255,255,255,.08); border-radius: var(--r-3xl) var(--r-3xl) 0 0; border-bottom: 0; padding: var(--s-300) var(--s-300) 0; display: flex; flex-direction: column; gap: var(--s-50); min-height: 220px; overflow: hidden; }
.mini h2 { margin: 0; font-size: 20px; line-height: 28px; font-weight: 500; }
.mini-art { margin-top: auto; width: 100%; height: auto; }
.mini-art .bar { fill: rgba(255,255,255,.14); stroke: rgba(255,255,255,.55); stroke-width: 1; }
.mini-art .trend { fill: none; stroke: #FFC2D5; stroke-width: 2; stroke-linecap: round; }
.mini-art text { fill: rgba(234,246,253,.75); font: 500 11px var(--mono); text-anchor: middle; }
.mini-art .lock { fill: rgba(255,255,255,.06); stroke: rgba(255,255,255,.6); stroke-width: 1.5; stroke-linecap: round; }
.mini-art .lock-dot { fill: none; stroke: rgba(255,255,255,.6); stroke-width: 1.5; }

/* Prism */
.prism-wrap { position: absolute; z-index: 3; right: max(var(--s-300), calc((100% - 1400px) / 2 + var(--s-600))); top: 64px; width: min(440px, 34vw); aspect-ratio: 520 / 460; pointer-events: none; animation: prism-float 9s ease-in-out infinite alternate; }
.prism-glass { position: absolute; left: 17.3%; top: 8.7%; width: 65.4%; height: 78.3%; clip-path: polygon(50% 0, 100% 100%, 0 100%);
  -webkit-backdrop-filter: blur(10px) saturate(1.8) brightness(1.15); backdrop-filter: blur(10px) saturate(1.8) brightness(1.15); background: rgba(255,255,255,.04); }
.prism-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 30px 40px rgba(1,8,18,.45)); }
.pr-logo-blur { opacity: .55; filter: blur(6px); }
.pr-logo { opacity: .95; }
.beams-out .beam { mix-blend-mode: screen; animation: beam 4.5s ease-in-out infinite alternate; }
.beams-out .b2 { animation-delay: .6s; } .beams-out .b3 { animation-delay: 1.2s; } .beams-out .b4 { animation-delay: 1.8s; }
.beam-in { animation: beam 3.5s ease-in-out infinite alternate; }
.pr-sweep { animation: sweep 7s var(--curve) infinite; }
.glint-star { transform-box: fill-box; transform-origin: center; animation: glint-star 3.2s ease-in-out infinite; }
.glint-star.g2 { animation-delay: 1.6s; }
@keyframes prism-float { from { transform: translateY(-8px) rotate(-1deg); } to { transform: translateY(10px) rotate(1deg); } }
@keyframes beam { from { opacity: .55; } to { opacity: 1; } }
@keyframes sweep { 0% { transform: skewX(-18deg) translateX(0); } 60%, 100% { transform: skewX(-18deg) translateX(820px); } }
@keyframes glint-star { 0%, 100% { opacity: 0; transform: scale(.4); } 50% { opacity: 1; transform: scale(1.1); } }

.search { display: flex; flex-direction: column; gap: var(--s-75); max-width: 560px; }
.search-field { display: flex; align-items: center; gap: var(--s-75); border-radius: var(--r-full); padding: var(--s-75) var(--s-75) var(--s-75) var(--s-300); transition: border-color 300ms var(--curve); }
.search-field:focus-within { border-color: var(--crimson); }
.search-field .ph { color: var(--muted); }
.search-field input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: 400 16px/24px var(--mono); padding: var(--s-75) 0; outline: none; }
.search-field input::placeholder { color: var(--muted); }
.search.invalid .search-field { border-color: var(--error); }
.search-msg { min-height: 20px; color: var(--error); }

.tld-row { display: flex; flex-wrap: wrap; gap: var(--s-75); }
.tld { display: inline-flex; align-items: baseline; gap: var(--s-75); color: var(--ink); border-radius: var(--r-full); padding: var(--s-50) var(--s-100); cursor: pointer; font: inherit;
  background: var(--chip-bg); border: 1px solid var(--chip-border); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: background-color 300ms var(--curve), transform 500ms var(--curve), border-color 300ms var(--curve); }
.tld:hover { border-color: var(--crimson); transform: translateY(-1px); }
.tld b { font: 500 14px/20px var(--mono); }
.tld span { font-size: 12px; line-height: 16px; color: var(--muted); }


/* ---------- Problem ---------- */
.problem { display: grid; gap: var(--s-400); }
.problem h2 { max-width: 680px; }
.problem-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-400) var(--s-600); color: var(--muted); }

/* ---------- Sky bands (benefits, final) ---------- */
.dark-band { position: relative; overflow: hidden; isolation: isolate; }
.band-sky { position: absolute; inset: 0; z-index: -1; background: var(--band-sky); }
.band-horizon { position: absolute; left: 0; right: 0; bottom: 0; height: 60%; background: var(--band-glow); }
.final-mountain { position: absolute; left: -4%; width: 108%; bottom: 0; height: 34%; fill: var(--ridge-main); filter: drop-shadow(0 -1px 0 var(--ridge-rim)) drop-shadow(0 -10px 24px var(--ridge-glow)); }
@media (prefers-color-scheme: light) { .final-mountain { opacity: .9; } }

.benefits h2 { margin-bottom: var(--s-600); max-width: 680px; }
.bento { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-200); }
.tile { grid-column: span 2; border-radius: var(--r-3xl); padding: var(--s-400); display: flex; flex-direction: column; gap: var(--s-100); min-width: 0; transition: transform 500ms var(--curve), border-color 300ms var(--curve); }
.tile:hover { transform: translateY(-4px); border-color: rgba(254,92,141,.5); }
.tile-wide { grid-column: span 3; }
.tile .ph { font-size: 24px; color: var(--icon); margin-bottom: var(--s-200); width: 48px; height: 48px; display: grid; place-items: center; border-radius: var(--r-xl); background: rgba(254,92,141,.12); box-shadow: inset 0 0 0 1px rgba(254,92,141,.32); }


/* ---------- People: photos graded to match the dusk hero ---------- */
.photo { position: relative; overflow: hidden; border-radius: var(--r-3xl); isolation: isolate; background: var(--navy);
  box-shadow: 0 30px 60px -30px rgba(7,45,80,.45); }
/* Image is taller than its frame so it can drift (parallax) without showing edges */
.photo img { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; object-fit: cover; display: block;
  filter: saturate(.88) contrast(1.12) brightness(1.02);
  transform: translate3d(0, var(--py, 0px), 0) scale(var(--ps, 1)); transition: transform 1600ms var(--curve); will-change: transform; }
/* Colour grade: teal in the highlights, crimson light from the top corner, plus fine grain */
.photo::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; mix-blend-mode: soft-light;
  background:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E"),
    radial-gradient(80% 65% at 100% 0%, rgba(254,92,141,.95), rgba(254,92,141,0) 70%),
    linear-gradient(160deg, rgba(219,242,252,.22), rgba(7,45,80,.5)); }
/* Navy fade at the bottom and a thin glass edge */
.photo::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: inherit;
  background: linear-gradient(180deg, rgba(7,45,80,0) 45%, rgba(7,45,80,.55) 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.22), inset 0 1px 0 rgba(255,255,255,.35); }
.photo:hover { --ps: 1.03; }

/* Cinematic reveal: the frame opens out while the image settles from a slight zoom */
.js .clip { clip-path: inset(9% 9% 9% 9% round 24px); transition: clip-path 1400ms var(--curve); }
.js .clip img { --ps: 1.16; }
.js .clip.in { clip-path: inset(0 0 0 0 round 24px); }
.js .clip.in img { --ps: 1; }
.js .clip.in:hover img { --ps: 1.03; }

/* Glass labels on photos */
.photo figcaption { position: absolute; z-index: 2; left: var(--s-300); bottom: var(--s-300); display: inline-flex; align-items: center; gap: var(--s-75); padding: var(--s-75) var(--s-200); border-radius: var(--r-full);
  --glass-bg: rgba(255,255,255,.72); --glass-border: rgba(255,255,255,.9); color: var(--navy); }
.photo figcaption .ph { color: #D93A6C; font-size: 16px; }
@media (prefers-color-scheme: dark) { .photo figcaption { --glass-bg: rgba(4,29,53,.62); --glass-border: rgba(219,242,252,.22); color: #EAF6FD; } .photo figcaption .ph { color: var(--crimson); } }

.crew { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-700); align-items: center; }
.crew-photo { aspect-ratio: 5 / 4; }
.crew-copy { display: flex; flex-direction: column; gap: var(--s-300); }
.crew-points { display: flex; flex-direction: column; gap: var(--s-100); margin-top: var(--s-100); }
.crew-points li { display: flex; align-items: center; gap: var(--s-100); padding: var(--s-100) 0; box-shadow: inset 0 -1px 0 var(--line); }
.crew-points .ph { color: var(--icon); }

/* ---------- Tagline ---------- */
.tagline { padding-top: var(--s-900); padding-bottom: var(--s-900); }
.tagline-text { max-width: 1100px; }
.tl-line { display: block; }
.tl-accent { color: var(--icon); }
.tagline-text .w { opacity: 0.22; transition: opacity 500ms var(--curve); }
.tagline-text .w.on { opacity: 1; }
html:not(.js) .tagline-text .w { opacity: 1; }

/* ---------- Checkout demo ---------- */
.co-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-400); align-items: center; }
.co-steps { display: flex; flex-direction: column; gap: var(--s-100); }
.co-step { position: relative; width: 100%; display: grid; grid-template-columns: auto 1fr; gap: var(--s-200); align-items: start; text-align: left; padding: var(--s-300); border-radius: var(--r-3xl); color: var(--ink); font: inherit; cursor: pointer; overflow: hidden;
  transition: border-color 300ms var(--curve), transform 500ms var(--curve), opacity 300ms var(--curve); opacity: .6; }
.co-step:hover { opacity: .9; }
.co-step[aria-pressed="true"] { opacity: 1; border-color: rgba(254,92,141,.55); }
.co-num { color: var(--icon); padding-top: 4px; }
.co-text { display: flex; flex-direction: column; gap: var(--s-25); }
.co-bar { position: absolute; left: var(--s-300); right: var(--s-300); bottom: 0; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.co-bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #46B8F0, #FE5C8D); transform: scaleX(0); transform-origin: left; }
.co-step.playing .co-bar i { animation: fill var(--d, 5s) linear forwards; }
.co-step.done .co-bar i { transform: scaleX(1); }
@keyframes fill { to { transform: scaleX(1); } }

/* The mini browser */
.co-window { border-radius: 28px; padding: var(--s-75); overflow: hidden; background: linear-gradient(160deg, rgba(219,242,252,.75), rgba(255,255,255,.55)); }
@media (prefers-color-scheme: dark) { .co-window { background: linear-gradient(160deg, rgba(6,30,56,.7), rgba(4,24,46,.5)); } }
.co-chrome { display: flex; align-items: center; gap: var(--s-200); padding: var(--s-75) var(--s-200) var(--s-100); }
.co-dots { display: flex; gap: 6px; }
.co-dots i { width: 10px; height: 10px; border-radius: 3px; background: var(--line); }
.co-dots i:first-child { background: #FE5C8D; } .co-dots i:nth-child(2) { background: #F5C25A; } .co-dots i:nth-child(3) { background: #6FE3B5; }
.co-url { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: var(--s-50); padding: var(--s-50) var(--s-200); border-radius: var(--r-full); background: var(--glass-bg); border: 1px solid var(--glass-border); color: var(--muted); }
.co-url .ph { font-size: 12px; }
.co-tag { padding: var(--s-25) var(--s-100); border-radius: var(--r-full); border: 1px dashed var(--muted); color: var(--muted); white-space: nowrap; }
.co-stage { position: relative; height: 400px; border-radius: 20px; background: var(--bg); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.co-scene { position: absolute; inset: 0; padding: var(--s-400); display: flex; flex-direction: column; gap: var(--s-200); opacity: 0; transform: translateY(12px); transition: opacity 500ms var(--curve), transform 500ms var(--curve); pointer-events: none; }
.co-scene.on { opacity: 1; transform: none; }
.co-label { color: var(--muted); margin: 0; }
.co-field { display: flex; align-items: center; gap: var(--s-75); padding: var(--s-75) var(--s-75) var(--s-75) var(--s-200); border-radius: var(--r-full); border: 1px solid var(--line); background: var(--tint); }
.co-field .ph { color: var(--muted); }
.co-typed { font-size: 16px; line-height: 24px; color: var(--ink); white-space: pre; }
.co-caret { width: 2px; height: 20px; background: var(--icon); margin-left: -6px; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.co-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-50); padding: var(--s-75) var(--s-100); border-radius: var(--r-full); background: var(--crimson); color: var(--navy); font-size: 14px; line-height: 20px; font-weight: 600; white-space: nowrap; transition: transform 200ms var(--curve), background-color 300ms var(--curve), box-shadow 300ms var(--curve); }
.co-btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.co-search { margin-left: auto; }
.co-btn.press { transform: scale(.94); }
.co-add.added { background: var(--navy); color: #fff; }
@media (prefers-color-scheme: dark) { .co-add.added { background: #EAF6FD; color: var(--navy); } }
.co-results { display: flex; flex-direction: column; gap: var(--s-75); }
.co-results li { display: grid; grid-template-columns: 1fr auto auto auto; align-items: center; gap: var(--s-200); padding: var(--s-100) var(--s-100) var(--s-100) var(--s-200); border-radius: var(--r-2xl); border: 1px solid var(--line); opacity: 0; transform: translateY(8px); transition: opacity 500ms var(--curve), transform 500ms var(--curve); }
.co-results.show li { opacity: 1; transform: none; }
.co-results.show li:nth-child(2) { transition-delay: 90ms; } .co-results.show li:nth-child(3) { transition-delay: 180ms; }
.co-ok { color: #1F8A5B; padding: var(--s-25) var(--s-75); border-radius: var(--r-full); background: rgba(111,227,181,.18); }
@media (prefers-color-scheme: dark) { .co-ok { color: #6FE3B5; } }
.co-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-100); }
.co-plan { display: flex; flex-direction: column; gap: var(--s-50); padding: var(--s-200); border-radius: var(--r-2xl); border: 1px solid var(--line); transition: border-color 300ms var(--curve), background-color 300ms var(--curve), transform 300ms var(--curve); }
.co-plan.picked { border-color: var(--crimson); background: rgba(254,92,141,.08); transform: translateY(-2px); }
.co-continue { align-self: flex-end; margin-top: auto; }
.co-summary { display: flex; flex-direction: column; }
.co-summary li { display: flex; justify-content: space-between; align-items: center; gap: var(--s-200); padding: var(--s-200) 0; box-shadow: inset 0 -1px 0 var(--line); opacity: 0; transform: translateY(8px); transition: opacity 500ms var(--curve), transform 500ms var(--curve); }
.co-summary li > span:first-child { display: flex; flex-direction: column; }
.co-summary.show li { opacity: 1; transform: none; }
.co-summary.show li:nth-child(2) { transition-delay: 90ms; } .co-summary.show li:nth-child(3) { transition-delay: 180ms; }
.co-total { box-shadow: none !important; }
.co-pay { position: relative; overflow: hidden; align-self: stretch; margin-top: auto; padding: var(--s-100); font-size: 16px; }
.co-pay-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--navy); transform: scaleX(0); transform-origin: left; }
.co-pay.busy .co-pay-bar { transition: transform 1100ms var(--curve); transform: scaleX(1); }
.co-done { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s-75); text-align: center; background: var(--bg); opacity: 0; transition: opacity 500ms var(--curve); }
.co-done.show { opacity: 1; }
.co-done p { margin: 0; }
.co-check { width: 64px; height: 64px; margin-bottom: var(--s-100); }
.co-check rect { fill: rgba(254,92,141,.12); stroke: var(--crimson); stroke-width: 2; }
.co-check path { fill: none; stroke: var(--crimson); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; }
.co-done.show .co-check path { transition: stroke-dashoffset 700ms var(--curve) 200ms; stroke-dashoffset: 0; }
.co-cursor { position: absolute; left: 0; top: 0; width: 22px; height: 22px; z-index: 5; fill: var(--navy); stroke: #fff; stroke-width: 1.5; stroke-linejoin: round; filter: drop-shadow(0 4px 8px rgba(7,45,80,.35));
  transform: translate(var(--cx, 80%), var(--cy, 120%)); transition: transform 800ms var(--curve); opacity: 0; }
.co-cursor.on { opacity: 1; }
@media (prefers-color-scheme: dark) { .co-cursor { fill: #EAF6FD; stroke: var(--navy); } }

/* ---------- Plans ---------- */
.tint-band { position: relative; overflow: hidden; background: var(--tint); isolation: isolate; }
.tint-mountain { position: absolute; z-index: -1; left: -4%; width: 108%; bottom: 0; height: 40%; fill: var(--navy); opacity: .07; }
@media (prefers-color-scheme: dark) { .tint-mountain { fill: #000; opacity: .25; } }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-300) var(--s-600); align-items: end; margin-bottom: var(--s-600); }
.plan-list { display: flex; flex-direction: column; gap: var(--s-100); }
.plan { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) 160px 210px;   /* fixed price + button columns so every row lines up */ align-items: center; gap: var(--s-300); padding: var(--s-300) var(--s-300) var(--s-300) var(--s-400); border-radius: var(--r-3xl); transition: transform 500ms var(--curve), border-color 300ms var(--curve); }
.plan:hover { transform: translateY(-3px); border-color: var(--crimson); }
.plan-name { display: flex; flex-direction: column; gap: var(--s-25); }
.plan-specs { display: flex; flex-wrap: wrap; gap: var(--s-75); }
.plan-specs li { display: inline-flex; align-items: center; gap: var(--s-50); border: 1px solid var(--line); border-radius: var(--r-full); padding: var(--s-25) var(--s-100); }
.plan-specs .ph { font-size: 14px; color: var(--icon); }
.plan-price { font-family: var(--mono); text-align: right; white-space: nowrap; }
.plan > .btn { width: 100%; }
.plan-price small { color: var(--muted); }
.text-link { display: inline-flex; align-items: center; gap: var(--s-75); margin-top: var(--s-300); text-decoration: underline; text-decoration-color: var(--crimson); text-underline-offset: 6px; text-decoration-thickness: 2px; }
.text-link .ph { transition: transform 500ms var(--curve); font-size: 16px; }
.text-link:hover .ph { transform: translateX(4px); }
.vps { margin-top: var(--s-800); display: flex; flex-direction: column; gap: var(--s-300); }
.vps-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-300) var(--s-600); align-items: end; }
.table-wrap { overflow-x: auto; border-radius: var(--r-3xl); }
.vps-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.vps-table th, .vps-table td { padding: var(--s-200) var(--s-300); text-align: left; white-space: nowrap; }
.vps-table thead th { color: var(--muted); font-weight: 500; }
.vps-table tbody th, .vps-table tbody td { box-shadow: inset 0 1px 0 var(--line); }
.vps-table tbody tr { transition: background-color 300ms var(--curve); }
.vps-table tbody tr:hover { background: rgba(254,92,141,.06); }
.vps-table tbody th { font-weight: 500; }
.vps-table td:last-child, .vps-table th:last-child { text-align: right; font-family: var(--mono); }
.vps a, .final a { text-decoration-color: var(--crimson); text-underline-offset: 4px; }

/* ---------- Proof placeholders ---------- */
.proof-section { display: flex; flex-direction: column; gap: var(--s-300); }
.ratings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-200); margin-top: var(--s-300); }
.rating { flex-direction: row !important; justify-content: space-between; align-items: center; }
.quotes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-200); }
.placeholder { border: 1px dashed var(--muted); border-radius: var(--r-3xl); padding: var(--s-300) var(--s-400); color: var(--muted); display: flex; flex-direction: column; gap: var(--s-200); font-family: var(--mono); }

/* ---------- Support ---------- */
.support { padding-bottom: var(--s-900); }
.support-card { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-600); align-items: center; padding: var(--s-75); border-radius: var(--r-3xl); }
.support-photo { min-height: 380px; height: 100%; border-radius: var(--r-2xl); }  /* 24 outer minus 8 padding */
.support-copy { display: flex; flex-direction: column; gap: var(--s-300); padding: var(--s-400) var(--s-400) var(--s-400) 0; }
.support-copy .placeholder { padding: var(--s-100) var(--s-200); align-self: flex-start; border-radius: var(--r-full); }
.support-actions { display: flex; flex-wrap: wrap; gap: var(--s-100); }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--s-600); align-items: start; }
.faq-list { display: flex; flex-direction: column; }
.faq-list details { box-shadow: inset 0 -1px 0 var(--line); }
.faq-list details:first-child { box-shadow: inset 0 1px 0 var(--line), inset 0 -1px 0 var(--line); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s-200); padding: var(--s-300) 0; transition: color 300ms var(--curve); }
.faq-list summary:hover { color: var(--muted); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .ph { color: var(--icon); transition: transform 500ms var(--curve); flex: none; }
.faq-list details[open] summary .ph { transform: rotate(45deg); }
.faq-list details p { padding-bottom: var(--s-300); max-width: 640px; }

/* ---------- Risk ---------- */
.risk { padding-bottom: var(--s-900); }
.risk-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-200); }
.risk-item { display: flex; align-items: center; gap: var(--s-100); padding: var(--s-300); border-radius: var(--r-3xl); }
.risk-item .ph { color: var(--icon); font-size: 24px; }

/* ---------- Final ---------- */
.final { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-300); padding-top: calc(var(--s-900) + var(--s-400)); padding-bottom: calc(var(--s-900) + var(--s-900)); }
.final .search { width: 100%; }

/* ---------- Footer ---------- */
.footer { background: var(--night); padding-top: var(--s-700); padding-bottom: calc(var(--s-400) + env(safe-area-inset-bottom, 0px)); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: var(--s-400); }
.footer-grid > * { display: flex; flex-direction: column; gap: var(--s-75); min-width: 0; }
.footer-grid a:not(.logo) { text-decoration: none; overflow-wrap: anywhere; transition: color 300ms var(--curve); }
.footer-grid a:not(.logo):hover { color: var(--crimson); }
.footer .logo span { color: var(--crimson); }
.footer-brand p { max-width: 280px; }
.legal { margin-top: var(--s-600); }

/* =============================================================
   Inner pages
   ============================================================= */
.page-hero { position: relative; overflow: hidden; isolation: isolate; min-height: 620px; display: flex; }
.page-hero .stars { height: 70%; }
.page-hero-inner { flex: 1; display: flex; align-items: flex-end; padding-top: calc(var(--s-900) + var(--s-400)); padding-bottom: var(--s-600); }
.page-panel { position: relative; width: 100%; border-radius: 32px; padding: var(--s-600) var(--s-700); display: flex; flex-direction: column; gap: var(--s-300); overflow: hidden;
  --glass-bg: rgba(4,24,46,.2); -webkit-backdrop-filter: blur(4px) saturate(1.35); backdrop-filter: blur(4px) saturate(1.35); }
.page-panel::before { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(140deg, rgba(255,255,255,.14), rgba(255,255,255,0) 35%), linear-gradient(180deg, rgba(4,24,46,0) 30%, rgba(4,24,46,.45)); }
.page-panel > * { position: relative; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-75); color: var(--muted); }
.crumbs a { color: var(--ink); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; text-decoration-color: var(--crimson); text-underline-offset: 4px; }
.crumbs .ph { font-size: 12px; }
.page-title { margin: 0; font-size: 72px; line-height: 72px; font-weight: 400; letter-spacing: -0.04em;
  background: linear-gradient(100deg, #FFFFFF 30%, #BFE3F7 75%, #FFC2D5); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: var(--s-50); }
.page-lead { max-width: 560px; color: var(--muted); }
.page-actions { display: flex; flex-wrap: wrap; gap: var(--s-100); }
.page-search { max-width: 560px; }

/* Plan cards (hosting) */
.pcards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-200); }
.pcard { border-radius: var(--r-3xl); padding: var(--s-400) var(--s-300) var(--s-300); display: flex; flex-direction: column; gap: var(--s-300); transition: transform 500ms var(--curve), border-color 300ms var(--curve); }
.pcard:hover { transform: translateY(-4px); border-color: var(--crimson); }
.pcard-top { display: flex; flex-direction: column; gap: var(--s-50); min-height: 72px; }
.pcard-price { display: flex; align-items: baseline; gap: var(--s-50); }
.pcard-list { display: flex; flex-direction: column; gap: var(--s-100); flex: 1; }
.pcard-list li { display: flex; align-items: center; gap: var(--s-100); }
.pcard-list .ph { color: var(--icon); font-size: 18px; }
.pcard .btn { width: 100%; }

/* Comparison + price tables */
.compare-wrap { margin-top: var(--s-400); }
.compare, .tld-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.compare th, .compare td, .tld-table th, .tld-table td { padding: var(--s-200) var(--s-300); text-align: left; white-space: nowrap; }
.compare thead th { vertical-align: bottom; }
.compare thead th span { display: block; }
.compare tbody th { font-weight: 500; color: var(--ink); }
.compare tbody th, .compare tbody td, .tld-table tbody th, .tld-table tbody td { box-shadow: inset 0 1px 0 var(--line); }
.compare td { color: var(--ink); }
.compare .yes { color: var(--icon); font-size: 18px; }
.compare .no { color: var(--muted); }
.vps-full td:last-child { text-align: right; }
.vps-full .price-cell { text-align: right; font-size: 16px; }
.vps-full .btn { padding-top: var(--s-50); padding-bottom: var(--s-50); }
.tld-table thead th { color: var(--muted); font-weight: 500; }
.tld-table tbody th { font-size: 16px; font-weight: 500; }
.tld-table td:last-child { text-align: right; }
.tld-table .btn { padding-top: var(--s-50); padding-bottom: var(--s-50); }
.tld-table tr.group th { padding-top: var(--s-400); color: var(--muted); box-shadow: none; }
.flag { margin-left: var(--s-75); padding: 1px var(--s-75); border-radius: var(--r-full); background: rgba(254,92,141,.14); color: #B42358; font-family: var(--font); }
@media (prefers-color-scheme: dark) { .flag { color: #FF9BBA; } }
.note { margin-top: var(--s-200); }

/* Feature grid, extras, managed band */
.feat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-400) var(--s-300); margin-top: var(--s-500); }
.feat { display: flex; flex-direction: column; gap: var(--s-75); }
.feat .ph { font-size: 24px; color: var(--icon); margin-bottom: var(--s-75); }
.feat h3 { margin: 0; }
.extras { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-200); margin-top: var(--s-300); }
.extra { border-radius: var(--r-3xl); padding: var(--s-400); display: flex; flex-direction: column; gap: var(--s-100); text-decoration: none; color: var(--ink); transition: transform 500ms var(--curve), border-color 300ms var(--curve); }
.extra:hover { transform: translateY(-3px); border-color: rgba(254,92,141,.5); }
.extra > .ph { font-size: 24px; color: var(--icon); width: 48px; height: 48px; display: grid; place-items: center; border-radius: var(--r-xl); background: rgba(254,92,141,.1); margin-bottom: var(--s-100); }
.extra h2, .extra h3 { margin: 0; }
.extra .text-link { margin-top: auto; padding-top: var(--s-200); }
.managed { margin-top: var(--s-400); border-radius: var(--r-3xl); padding: var(--s-400); display: flex; align-items: center; justify-content: space-between; gap: var(--s-400); }
.managed > div { display: flex; flex-direction: column; gap: var(--s-75); max-width: 640px; }
.managed h3 { margin: 0; }

/* Domain transfer steps */
.transfer { display: flex; flex-direction: column; gap: var(--s-400); align-items: flex-start; }
.transfer > div { max-width: 680px; display: flex; flex-direction: column; gap: var(--s-200); }
.t-steps { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-200); }
.t-steps li { border-radius: var(--r-3xl); padding: var(--s-400) var(--s-300); display: flex; flex-direction: column; gap: var(--s-75); }
.t-steps .mono { color: var(--icon); margin-bottom: var(--s-100); }
.t-steps p { margin: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-200); }
.ccard { border-radius: var(--r-3xl); padding: var(--s-400); display: flex; flex-direction: column; gap: var(--s-100); }
.ccard > .ph { font-size: 24px; color: var(--icon); width: 48px; height: 48px; display: grid; place-items: center; border-radius: var(--r-xl); background: rgba(254,92,141,.1); margin-bottom: var(--s-100); }
.ccard h2 { margin: 0; }
.ccard .text-link { margin-top: auto; padding-top: var(--s-200); }
.ccard.placeholder { justify-content: center; }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-600); }
.about-copy { display: flex; flex-direction: column; gap: var(--s-300); }
.details { border-radius: var(--r-3xl); padding: var(--s-200) var(--s-400); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-600); }
.details > div { padding: var(--s-200) 0; box-shadow: inset 0 -1px 0 var(--line); display: flex; flex-direction: column; gap: var(--s-50); }
.details dd { margin: 0; }
.placeholder-inline { font-family: var(--mono); font-size: .9em; color: var(--muted); border-bottom: 1px dashed var(--muted); }

/* Legal */
.legal-wrap { display: flex; flex-direction: column; gap: var(--s-400); }
.draft { display: flex; gap: var(--s-100); align-items: flex-start; padding: var(--s-200) var(--s-300); border-radius: var(--r-2xl); border-color: rgba(245,194,90,.6) !important; }
.draft .ph { color: #B7791F; font-size: 20px; margin-top: 2px; }
.draft p { margin: 0; }
.legal-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: var(--s-600); align-items: start; }
.toc { position: sticky; top: 104px; border-radius: var(--r-3xl); padding: var(--s-300); display: flex; flex-direction: column; gap: var(--s-75); }
.toc a { text-decoration: none; color: var(--muted); transition: color 300ms var(--curve); }
.toc a:hover { color: var(--ink); }
.prose { max-width: 720px; display: flex; flex-direction: column; gap: var(--s-500); }
.prose section { display: flex; flex-direction: column; gap: var(--s-100); scroll-margin-top: 110px; }
.prose h2 { margin: 0 0 var(--s-50); }
.prose p, .prose li { font-size: 16px; line-height: 26px; color: var(--ink); }
.prose ul { list-style: none; display: flex; flex-direction: column; gap: var(--s-75); }
.prose li { position: relative; padding-left: var(--s-300); }
.prose li::before { content: ""; position: absolute; left: 4px; top: 10px; width: 6px; height: 6px; border-radius: 1px; background: var(--icon); }
.prose a { color: inherit; text-decoration-color: var(--crimson); text-underline-offset: 3px; }

/* 404 */
.nf-card h2 { margin: 0; }

@media (max-width: 1180px) {
  .pcards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-title { font-size: 60px; line-height: 60px; }
}
@media (max-width: 760px) {
  .page-hero { min-height: 560px; }
  .page-hero-inner { padding-left: var(--s-100); padding-right: var(--s-100); padding-bottom: var(--s-300); }
  .page-panel { padding: var(--s-400) var(--s-300); border-radius: var(--r-3xl); }
  .page-panel::before { background: linear-gradient(140deg, rgba(255,255,255,.12), rgba(255,255,255,0) 30%), linear-gradient(180deg, rgba(4,24,46,.2), rgba(4,24,46,.55)); }
  .page-title { font-size: 44px; line-height: 48px; }
  .page-actions .btn { flex: 1 1 auto; }
  .pcards, .extras, .contact-grid, .t-steps, .about-grid, .details, .legal-grid { grid-template-columns: minmax(0, 1fr); }
  .feat-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s-300); }
  .managed { flex-direction: column; align-items: flex-start; }
  .managed .btn { width: 100%; }
  .toc { position: static; }
  .compare th, .compare td, .tld-table th, .tld-table td { padding: var(--s-100) var(--s-200); }
  .flag { display: block; width: max-content; margin: var(--s-25) 0 0; }
}

/* ---------- Reveals ---------- */
.js .reveal { opacity: 0; transform: translateY(var(--s-400)); transition: opacity 800ms var(--curve), transform 800ms var(--curve); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Tablet ---------- */
@media (max-width: 1180px) {
  .hero-panel { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; padding: calc(var(--s-900) + var(--s-900)) var(--s-500) 0; row-gap: var(--s-400); min-height: 0; }
  .hero-main, .hero-aside, .hero-foot, .hero-cards { grid-column: 1; grid-row: auto; }
  .hero-main { padding-left: var(--s-300); }
  .hero-aside { padding-bottom: 0; }
  .rule-v { left: var(--s-300); }
  .hero-foot::before { display: none; }
  .hero-foot { min-height: 0; padding: 0 0 0 var(--s-300); }
  .prism-wrap { width: 300px; top: 72px; right: var(--s-500); }
  .hero-title { font-size: 72px; line-height: 72px; }
  .co-grid { grid-template-columns: minmax(0, 1fr); }
  .faq, .section-head, .vps-head { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .crew { grid-template-columns: minmax(0, 1fr); gap: var(--s-500); }
  .support-card { grid-template-columns: minmax(0, 1fr); gap: var(--s-300); }
  .support-photo { min-height: 320px; }
  .support-copy { padding: var(--s-200) var(--s-300) var(--s-300); }
}

/* ---------- Phone ---------- */
@media (max-width: 760px) {
  .nav-links, .nav-client { display: none; }
  .menu-toggle { display: block; }
  .nav { width: 100%; justify-content: space-between; }
  .heading-1 { font-size: 48px; line-height: 48px; }
  .hero-title { font-size: 48px; line-height: 48px; }
  .hero-title .l2 { padding-left: .6em; } .hero-title .l3 { padding-left: .2em; }
  /* On phones the bright horizon sits behind the paragraphs: tint the glass more there */
  .hero-panel::before { background:
    linear-gradient(140deg, rgba(255,255,255,.12), rgba(255,255,255,0) 30%),
    linear-gradient(180deg, rgba(4,24,46,.1) 0%, rgba(4,24,46,.5) 40%, rgba(4,24,46,.6) 75%, rgba(4,24,46,.4) 100%); }
  .hero-wrap { padding-left: var(--s-100); padding-right: var(--s-100); }
  .hero-panel { padding: 200px var(--s-200) 0; border-radius: var(--r-3xl); }
  .hero-main { padding-left: var(--s-200); }
  .rule-v { left: var(--s-75); }
  .hero-aside { padding-left: var(--s-200); }
  .hero-foot { padding-left: var(--s-200); }
  .hero-cards { gap: var(--s-100); }
  .mini { padding: var(--s-200) var(--s-200) 0; min-height: 180px; }
  .mini h2 { font-size: 16px; line-height: 24px; }
  .prism-wrap { width: 230px; top: 76px; right: 50%; transform: translateX(50%); animation: none; }
  .co-stage { height: 420px; }
  .co-scene { padding: var(--s-200); }
  .co-plans { grid-template-columns: minmax(0, 1fr); }
  .co-plan { flex-direction: row; align-items: baseline; gap: var(--s-100); padding: var(--s-100) var(--s-200); }
  .co-plan .caption-4 { margin-left: auto; text-align: right; }
  .co-results li { grid-template-columns: 1fr auto; row-gap: var(--s-50); }
  .co-results li .co-ok { display: none; }
  .co-results li > .caption-2 { grid-column: 1; grid-row: 2; }
  .co-results li > .co-btn { grid-column: 2; grid-row: 1 / span 2; justify-self: end; }
  .co-tag { display: none; }
  .heading-2 { font-size: 36px; line-height: 40px; }
  .heading-3 { font-size: 30px; line-height: 36px; }
  .tagline-text { font-size: 36px; line-height: 40px; }
  .section, .tagline { padding-top: var(--s-700); padding-bottom: var(--s-700); }
  .search-field { flex-wrap: wrap; border-radius: var(--r-3xl); padding: var(--s-75); }
  .search-field .ph-globe-simple { display: none; }
  .search-field input { flex-basis: 100%; padding: var(--s-75) var(--s-100); }
  .search-field .btn { width: 100%; padding-top: var(--s-100); padding-bottom: var(--s-100); }
  .problem-cols, .quotes, .risk-row, .ratings { grid-template-columns: minmax(0, 1fr); }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .tile, .tile-wide { grid-column: auto; padding: var(--s-300); }
  .plan { grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-200); padding: var(--s-300); }
  .plan-specs { grid-column: 1 / -1; grid-row: 2; }
  .plan .btn { grid-column: 1 / -1; padding-top: var(--s-100); padding-bottom: var(--s-100); }
  .plan-price { grid-column: 2; grid-row: 1; }
  .support-actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .land { bottom: 16%; height: 12%; }
  .water { height: 16%; }
  /* Stretch the sky so its horizon (70%) lands on the phone horizon (84%) */
  .scene { background-size: 100% 120%; background-repeat: no-repeat; background-position: top; }
  .hero-band .stars { height: 84%; }
}

@media (prefers-reduced-motion: reduce) {
  .arc, .glint, .shimmer, .city i.tw { animation: none; }
  .arc { stroke-dasharray: none; opacity: .35; }
  .js .reveal { transform: none; }
  .mobile-menu a { transform: none; }
  .plan:hover, .tile:hover, .tld:hover { transform: none; }
  .photo img { transform: none !important; transition: none; }
  .js .clip { clip-path: none; }
  .tagline-text .w { opacity: 1; transition: none; }
  .prism-wrap, .beams-out .beam, .beam-in, .pr-sweep, .glint-star, .mouse i { animation: none; }
  .glint-star { opacity: .8; }
  .co-cursor { display: none; }
  .co-scene, .co-results li, .co-summary li, .co-done { transition: none; }
}

/* Support photo: keep the person (right side of the frame) in view */
.support-img { object-position: 72% 30%; }

/* Crew photo: keep his face in the upper third of the frame */
.crew-img { object-position: 50% 6%; }

/* When a risk tile is hidden (live site), keep the row even */
.risk-row:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 767px) { .risk-row:has(> :nth-child(2):last-child) { grid-template-columns: minmax(0, 1fr); } }
