/* GRAIT Cloud: near-black, white type, quiet panels, one brand blue used sparingly. */
:root { --sec-pad: clamp(64px, 8vw, 112px); /* the space between page sections: their top padding, or margin */
  --map-land: rgba(255, 255, 255, 0.17);
  --bg: #0a0a0a;
  --ink: #fff;
  --muted: #8f9399;
  --dim: #868a91;
  --card: #141414;
  --card-2: #1c1c1c;
  --line: #24262b;
  --pill-dark: #212121;
  --pill-dark-hover: #2c2c2c;
  --accent: #51aff5;
  --teal: #02c0d8;
  --live: #3ddc97;
  --glow: rgba(0, 141, 228, 0.35);
  --shade: rgba(0, 141, 228, 0.5);   /* the stronger blue behind the home page's product chapters and the product pages */
  --shade-2: rgba(2, 192, 216, 0.22); /* a teal one beside it, so the blue blends rather than sitting as one spot */
  --font: "Montserrat", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --pad: clamp(16px, 4vw, 40px);
  --max: 1240px;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --map-land: rgba(0, 57, 102, 0.2);
  /* GRAIT brand: navy ink, blue actions, teal for success, blue-tinted greys */
  --bg: #f6f9fc;
  --ink: #003966;
  --muted: #4d6a85;
  --dim: #536d86;
  --card: #fff;
  --card-2: #eaf2f9;
  --line: #d7e4ef;
  --pill-dark: #e3eef8;
  --pill-dark-hover: #d4e6f5;
  /* brand blue #008de4 reads at 3.4:1 on this ground; one step darker passes AA for text and white-on-blue pills */
  --accent: #0072b8;
  --teal: #007784;
  --live: #12805c;
  --glow: rgba(81, 175, 245, 0.32);
  --shade: rgba(81, 175, 245, 0.42);
  --shade-2: rgba(2, 192, 216, 0.16);
  color-scheme: light;
}
:root[data-theme="light"] .pill--light { background: var(--accent); color: #fff; }
:root[data-theme="light"] .pill--light:hover { background: #005f99; }
:root[data-theme="light"] .typed { background-image: linear-gradient(90deg, var(--accent), var(--teal)); }
:root[data-theme="light"] .caret { background: var(--teal); }
:root[data-theme="light"] .mock-term .run { color: #b7791f; }
:root[data-theme="light"] .out-line .del { color: #d64545; }
:root[data-theme="light"] .is-done .q-check::after { border-color: #fff; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 64px; } /* = header height; common.js keeps it exact */
/* Smooth only once the page has loaded. Arriving with a section link (index.html#press), the browser then jumps at
   once and keeps re-jumping to the section until the page has loaded, as fonts and pictures above it arrive; a smooth
   scroll is aimed once at the start, so it stopped short when something above it grew. Anything that appears after
   load must keep its space from the start (as .asof does), or it would push the section down. */
html.is-loaded { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; transition: background 300ms, color 300ms; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { font-weight: 600; text-wrap: balance; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img, video { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--accent); color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.logo-light { display: none; }
.pill-short { display: none; }
:root[data-theme="light"] .logo-light { display: block; }
:root[data-theme="light"] .logo-dark { display: none; }

/* ---------- pills ---------- */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 18px; border-radius: 999px; font-size: 14px; font-weight: 500; white-space: nowrap; transition: background 200ms, transform 200ms var(--ease); }
.pill:active { transform: scale(0.97); }
.pill--light { background: var(--ink); color: var(--bg); }
.pill--light:hover { background: color-mix(in srgb, var(--ink) 86%, var(--bg)); }
.pill--dark { background: var(--pill-dark); color: var(--ink); }
.pill--dark:hover { background: var(--pill-dark-hover); }

/* ---------- top bar ---------- */
.top { position: fixed; inset: 0 0 auto; z-index: 30; display: flex; align-items: center; gap: 24px; height: 64px; padding: 0 var(--pad); transition: background 300ms; }
.top.is-solid { background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.mark img { height: 24px; width: auto; }
.nav { display: flex; gap: 4px; margin-right: auto; }
.nav a { padding: 8px 12px; border-radius: 999px; font-size: 14px; color: var(--muted); transition: color 200ms, background 200ms; }
.nav a:hover, .nav a.is-on { color: var(--ink); background: var(--pill-dark); }
.top-tools { display: flex; align-items: center; gap: 8px; }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--pill-dark); }
.icon-btn:hover { background: var(--pill-dark-hover); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn .moon, :root[data-theme="light"] .icon-btn .sun { display: none; }
:root[data-theme="light"] .icon-btn .moon { display: block; }

/* ---------- hero ---------- */
.hero { position: relative; display: grid; justify-items: center; text-align: center; padding: 168px var(--pad) clamp(40px, 5.6vw, 72px); overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 62%; width: min(1100px, 140vw); aspect-ratio: 2 / 1; transform: translate(-50%, -50%); background: radial-gradient(closest-side, var(--glow), transparent 70%); filter: blur(20px); }
.hero-sky { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; }
.badge { display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--muted); background: color-mix(in srgb, var(--card) 70%, transparent); transition: border-color 200ms, color 200ms; }
.badge:hover { color: var(--ink); border-color: var(--dim); }
.badge-new { padding: 2px 10px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 20%, transparent); color: var(--accent); font-weight: 500; font-size: 13px; }
.hero :is(h1, h2) { margin-top: 28px; font-size: clamp(40px, 6.2vw, 84px); line-height: 1.04; letter-spacing: -0.03em; font-weight: 600; }
.typed { background: linear-gradient(90deg, var(--ink), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.caret { display: inline-block; width: 0.06em; height: 0.82em; margin-left: 0.04em; margin-right: -0.1em; vertical-align: -0.06em; background: var(--accent); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-sub { max-width: 600px; margin-top: 24px; font-size: 18px; color: var(--muted); text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 32px; }

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px; max-width: var(--max); margin: 0 auto; padding: 24px var(--pad) 0; }
.card { position: relative; display: flex; flex-direction: column; min-height: 320px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); overflow: hidden; transition: border-color 250ms, transform 400ms var(--ease-expo); }
.card:hover { border-color: var(--dim); transform: translateY(-3px); }
.c4 { grid-column: span 4; } .c5 { grid-column: span 5; } .c6 { grid-column: span 6; } .c7 { grid-column: span 7; }
.card-art { flex: 1; padding: 22px 22px 0; overflow: hidden; }
.card--video { min-height: 360px; }
.card--video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform 1.2s var(--ease-expo); }
.card--video:hover video { transform: scale(1.04); }
.card--video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--card) 4%, transparent 42%); pointer-events: none; }
.card-foot { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 16px; width: 100%; margin-top: auto; padding: 18px 22px; text-align: left; font-size: 15px; font-weight: 500; }
.card-foot::before { content: ""; position: absolute; inset: -400px 0 0; }
.explore { flex: none; font-size: 14px; color: var(--muted); transition: color 200ms, transform 300ms var(--ease); }
.card:hover .explore { color: var(--ink); transform: translateX(3px); }
.card.is-seen .card-foot > span:first-child::after { content: "✓"; margin-left: 8px; color: var(--teal); font-size: 13px; }

.mock-chat { display: flex; flex-direction: column; gap: 10px; font-size: 13px; line-height: 1.45; }
.bub { max-width: 86%; padding: 9px 13px; border-radius: 14px; }
.bub.me { align-self: flex-end; background: var(--card-2); }
.bub.ai { align-self: flex-start; color: var(--muted); }
.mock-term { font: 12.5px/1.75 var(--mono); color: var(--muted); }
.mock-term p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-term b { color: var(--accent); font-weight: 500; }
.mock-term i { font-style: normal; color: var(--dim); }
.mock-term .ok { color: var(--teal); }
.mock-term .run { color: #e5b94e; }
.t-bar { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); color: var(--dim); }
.t-dim { color: var(--dim); }
.mock-plan { display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.plan-k { font: 13px var(--mono); color: var(--dim); }
.plan-n { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.plan-n span { display: grid; gap: 2px; padding: 14px; border-radius: 12px; background: var(--card-2); font-size: 13px; color: var(--muted); }
.plan-n b { font-size: 38px; font-weight: 500; line-height: 1; letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.plan-n span:first-child b { color: var(--teal); }
.plan-ok { font-size: 14px; color: var(--muted); }

/* ---------- try it ---------- */
.dev { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 72px); align-items: center; max-width: var(--max); margin: 0 auto; padding: var(--sec-pad) var(--pad) 0; }
.kicker { font-size: 14px; color: var(--accent); }
.dev h2 { margin-top: 12px; font-size: clamp(38px, 4.4vw, 56px); line-height: 1.05; letter-spacing: -0.03em; }
.dev-copy > p:not(.kicker) { margin-top: 20px; font-size: 17px; color: var(--muted); max-width: 440px; }
.dev-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.mini { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 32px; margin: 36px 0 0; }
.mini div { display: flex; flex-direction: column-reverse; }
.mini dt { font-size: 13px; color: var(--muted); }
.mini dd { margin: 0; font-size: 26px; font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

.panel { display: flex; flex-direction: column; height: 560px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.panel-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); font: 12.5px var(--mono); color: var(--muted); }
.dots { display: flex; gap: 6px; } .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.panel-file { margin-left: auto; color: var(--dim); }
.panel-ask { padding: 14px 16px 0; font-size: 14px; line-height: 1.5; min-height: 4.6em; }
.you { margin-right: 6px; padding: 1px 8px; border-radius: 999px; background: var(--card-2); font-size: 12px; color: var(--muted); }
.panel-ask .typing::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--accent); animation: blink 1s steps(1) infinite; }
.panel-code { flex: 1; min-height: 120px; margin: 12px 16px 0; padding: 14px 16px; border-radius: 12px; background: var(--bg); overflow: auto; font: 12.5px/1.7 var(--mono); color: var(--ink); }
.panel-code .k { color: var(--accent); } .panel-code .s { color: #7ee0b8; } .panel-code .c { color: var(--dim); }
:root[data-theme="light"] .panel-code .s { color: #0a7d55; }
.panel-out { max-height: 48%; overflow: auto; padding: 0 16px; font: 12.5px/1.7 var(--mono); }
.panel-out:not(:empty) { padding-top: 12px; }
.out-line { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); animation: line-in 300ms var(--ease) both; animation-delay: calc(var(--r, 0) * 45ms); }
.out-line .add { color: var(--teal); } .out-line .del { color: #ff6b6b; }
.out-head { color: var(--ink); margin-bottom: 4px; }
.out-note { color: var(--muted); font-family: var(--font); font-size: 14px; margin: 6px 0; }
.out-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.out-actions .pill { min-height: 34px; font-family: var(--font); }
@keyframes line-in { from { opacity: 0; transform: translateY(4px); } }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 12px 16px; border-top: 1px solid var(--line); margin-top: 12px; overflow-x: auto; }
.tabs button { padding: 7px 14px; border-radius: 999px; font-size: 13px; color: var(--muted); white-space: nowrap; transition: background 200ms, color 200ms; }
.tabs button:hover { color: var(--ink); }
.tabs [aria-selected="true"] { background: var(--pill-dark); color: var(--ink); }
.medal { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; padding: 8px 12px; border-radius: 10px; font: 600 14px var(--font); animation: medal-in 700ms var(--ease-expo); }
.medal-coin { width: 20px; height: 20px; border-radius: 50%; flex: none; }
.medal--gold { background: rgba(242, 183, 5, 0.14); color: #f2c94c; } .medal--gold .medal-coin { background: #f2b705; }
.medal--silver { background: rgba(169, 182, 195, 0.14); color: #c4ced8; } .medal--silver .medal-coin { background: #a9b6c3; }
.medal--bronze { background: rgba(200, 121, 63, 0.16); color: #e09a63; } .medal--bronze .medal-coin { background: #c8793f; }
:root[data-theme="light"] .medal--gold { color: #7a5600; } :root[data-theme="light"] .medal--silver { color: #3d4a57; } :root[data-theme="light"] .medal--bronze { color: #7a3f14; }
@keyframes medal-in { from { opacity: 0; transform: scale(0.9) translateY(6px); } }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); max-width: var(--max); margin: var(--sec-pad) auto 0; padding: 0 var(--pad); }
.stats > div { padding: 8px 32px 0 28px; border-left: 1px solid var(--line); }
.stats > div:first-child { border-left: 0; padding-left: 0; }
.big { font-size: clamp(72px, 10vw, 148px); font-weight: 600; line-height: 1; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.stats p:not(.big) { margin-top: 14px; max-width: 260px; color: var(--muted); }


/* ---------- start ---------- */
.start { max-width: var(--max); margin: 0 auto; padding: var(--sec-pad) var(--pad) 0; }
.start h2 { text-align: center; font-size: clamp(32px, 4vw, 52px); line-height: 1.08; letter-spacing: -0.03em; }
.start h2 [data-rank-name] { color: var(--accent); }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 48px; }
.plan { position: relative; display: flex; flex-direction: column; padding: 32px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); overflow: hidden; isolation: isolate; }
.plan h3 { font-size: 26px; letter-spacing: -0.02em; }
.plan > p { margin-top: 8px; color: var(--muted); }
.plan ul { list-style: none; margin: 28px 0 32px; padding: 0; display: grid; gap: 12px; }
.plan li { display: flex; gap: 12px; align-items: baseline; }
.plan li::before { content: "✓"; color: var(--teal); font-size: 14px; }
.plan .pill { align-self: flex-start; margin-top: auto; }
.plan--pic img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; opacity: 0.32; }
.plan--pic::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, var(--card) 30%, transparent); }
:root[data-theme="light"] .plan--pic img { opacity: 0.18; }

/* ---------- footer ---------- */
/* The bottom padding keeps the copyright line clear of the chat button (taller on phones, where the line runs full width). */
.foot { max-width: var(--max); margin: var(--sec-pad) auto 0; padding: 56px var(--pad) 88px; border-top: 1px solid var(--line); }
@media (max-width: 760px) { .foot { padding-bottom: 96px; } }
/* Justified: the logo sits on the left edge, the last column ends on the right edge, the gaps between are equal. */
/* The usual footer: logo and socials on the left, the link columns grouped on the right at equal widths. */
.foot-top { display: grid; grid-template-columns: minmax(0, 1fr) repeat(2, minmax(160px, 200px)); gap: 40px clamp(40px, 6vw, 96px); }
.foot-logo { height: 40px; width: auto; }
.foot-top > div p { margin-top: 16px; max-width: 280px; color: var(--muted); font-size: 14px; }
.foot nav, .foot-col { display: grid; align-content: start; gap: 12px; font-size: 14px; color: var(--muted); }
.foot h3 { margin-bottom: 6px; font-size: 15px; font-weight: 600; color: var(--ink); }
.credits a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.credits a:hover { color: var(--ink); }
.foot nav a:hover { color: var(--ink); }
/* Products column: plain links like Company and Get in Touch; GRAITOne's three apps sit slightly indented under it. */
.foot-tree, .foot-tree ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
/* GRAITOne with its apps always listed underneath as bullets */
.foot-sub { margin-top: 12px !important; padding-left: 4px !important; }
.foot-sub li { position: relative; padding-left: 16px; }
.foot-sub li::before { content: ""; position: absolute; left: 2px; top: 0.6em; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: 0.7; }
/* Bottom bar: copyright on the left, legal links on the right; they stack when there is no room. */
.credits { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 32px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--dim); }
.credits-copy { margin: 0; }
.credits-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 24px; margin: 0; }

/* ---------- viewer ---------- */
.viewer { width: min(1180px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 1px solid var(--line); border-radius: 20px; background: var(--card); color: var(--ink); overflow: hidden; }
.viewer::backdrop { background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(6px); }
.viewer[open] { animation: viewer-in 420ms var(--ease-expo); }
@keyframes viewer-in { from { opacity: 0; transform: translateY(16px) scale(0.98); } }
.viewer-in { position: relative; display: grid; grid-template-columns: 1fr 340px; }
.viewer video { width: 100%; height: 100%; aspect-ratio: 1280 / 634; object-fit: cover; object-position: top left; background: #000; }
.viewer-text { display: flex; flex-direction: column; padding: 32px 28px 24px; }
.viewer-n { font: 13px var(--mono); color: var(--dim); }
.viewer h3 { margin-top: 12px; font-size: 28px; line-height: 1.1; letter-spacing: -0.02em; }
.viewer-body { margin-top: 14px; color: var(--muted); }
.viewer-nav { display: flex; gap: 8px; margin-top: auto; padding-top: 24px; }
.viewer-close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; background: var(--pill-dark); font-size: 22px; line-height: 1; }

/* ---------- reveal ---------- */
.js [data-rise] { opacity: 0; transform: translateY(24px); transition: opacity 800ms var(--ease), transform 1000ms var(--ease-expo); transition-delay: var(--d, 0ms); }
.js [data-rise].is-in { opacity: 1; transform: none; }

/* ---------- game layer ---------- */
.hud { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: flex; align-items: center; gap: 10px; padding: 5px 16px 5px 5px; border-radius: 999px; background: var(--card); color: var(--ink); border: 1px solid var(--line); transition: transform 200ms var(--ease), border-color 200ms; }
.hud:hover { transform: translateY(-2px); border-color: var(--dim); }
.hud.is-bumped { animation: bump 700ms var(--ease-expo); }
@keyframes bump { 30% { transform: scale(1.1); } 100% { transform: none; } }
.hud-ring { --p: 0; width: 40px; height: 40px; transform: rotate(-90deg); }
.hud-ring circle { fill: none; stroke-width: 3.2; }
.hud-track { stroke: var(--line); }
.hud-val { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--p, 0) * 100); transition: stroke-dashoffset 900ms var(--ease-expo); }
.hud-lv { transform: rotate(90deg); transform-origin: 18px 18px; fill: currentColor; font: 600 12px var(--font); }
.hud-text { display: grid; text-align: left; line-height: 1.2; }
.hud-rank { font-weight: 500; font-size: 14px; }
.hud-xp { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

.quest-log { position: fixed; right: 20px; bottom: 80px; z-index: 41; width: min(400px, calc(100vw - 32px)); max-height: min(72vh, 680px); overflow: auto; padding: 20px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); animation: log-in 360ms var(--ease-expo); }
@keyframes log-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } }
.log-head { display: flex; justify-content: space-between; align-items: center; }
.log-head h2 { font-size: 20px; }
.log-close { width: 36px; height: 36px; border-radius: 50%; font-size: 22px; line-height: 1; background: var(--pill-dark); }
.log-rank { margin-top: 6px; font-size: 15px; color: var(--muted); }
.log-rank b { color: var(--ink); font-weight: 500; }
.log-meter { position: relative; height: 6px; margin-top: 14px; border-radius: 999px; background: var(--card-2); overflow: hidden; }
.log-fill { position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform 900ms var(--ease-expo); }
.log-line { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.log-xp { color: var(--ink); }
.quests { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 4px; }
.quests li { display: grid; grid-template-columns: 20px 1fr auto; gap: 12px; align-items: start; padding: 10px 12px; border-radius: 12px; background: var(--card-2); }
.q-check { position: relative; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--dim); margin-top: 1px; }
.is-done .q-check { border-color: var(--teal); background: var(--teal); }
.is-done .q-check::after { content: ""; position: absolute; left: 5.5px; top: 2px; width: 5px; height: 10px; border: solid #0a0a0a; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.q-text { display: grid; font-size: 13px; line-height: 1.4; }
.q-text b { font-size: 14px; font-weight: 500; }
.q-text span:not(.q-parts) { color: var(--muted); }
.q-parts { font-size: 12px; color: var(--accent); }
.q-xp { font: 13px var(--mono); color: var(--dim); }
.is-done .q-xp { color: var(--ink); }
.log-foot { margin-top: 14px; align-items: center; }
.log-reset { font-size: 13px; text-decoration: underline; color: var(--muted); }

.toasts { position: fixed; right: 20px; bottom: 80px; z-index: 42; display: grid; gap: 8px; justify-items: end; pointer-events: none; }
.toast { position: relative; width: min(300px, calc(100vw - 40px)); padding: 14px 18px 14px 54px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); opacity: 0; transform: translateY(12px) scale(0.96); transition: opacity 360ms var(--ease), transform 520ms var(--ease-expo); }
.toast.is-in { opacity: 1; transform: none; }
.toast.is-out { opacity: 0; transform: translateY(-8px); }
.toast--level { width: min(340px, calc(100vw - 40px)); border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--card)); }
.toast-label { font-size: 12px; color: var(--muted); }
.toast-title { font-size: 17px; font-weight: 500; line-height: 1.2; }
.toast--level .toast-title { font-size: 22px; }
.toast-body { font: 13px var(--mono); color: var(--teal); }
.toast-burst { position: absolute; left: 27px; top: 50%; }
.toast-burst::before { content: ""; position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 50%; background: var(--teal); }
.toast--level .toast-burst::before { background: var(--accent); }
.toast-burst i { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--teal); opacity: 0; }
.toast-burst i:nth-child(2n) { background: var(--accent); }
.toast.is-in .toast-burst i { animation: burst 900ms var(--ease) forwards; }
.toast-burst i:nth-child(1) { --a: 0deg; } .toast-burst i:nth-child(2) { --a: 36deg; } .toast-burst i:nth-child(3) { --a: 72deg; }
.toast-burst i:nth-child(4) { --a: 108deg; } .toast-burst i:nth-child(5) { --a: 144deg; } .toast-burst i:nth-child(6) { --a: 180deg; }
.toast-burst i:nth-child(7) { --a: 216deg; } .toast-burst i:nth-child(8) { --a: 252deg; } .toast-burst i:nth-child(9) { --a: 288deg; }
.toast-burst i:nth-child(10) { --a: 324deg; }
@keyframes burst { 0% { opacity: 1; transform: rotate(var(--a)) translateX(0); } 100% { opacity: 0; transform: rotate(var(--a)) translateX(36px) scale(0.4); } }

/* ---------- smaller screens ---------- */
@media (max-width: 1000px) {
  .c4, .c5, .c7 { grid-column: span 6; }
  .bento .card:last-child { grid-column: span 12; }
  .bento .card.c6 { grid-column: span 6; }
  .dev { grid-template-columns: 1fr; }
  .viewer-in { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: repeat(2, minmax(160px, 200px)); }
}
@media (max-width: 760px) {
  /* The section links drop to a second row of the bar and scroll sideways if they don't fit. */
  html { scroll-padding-top: 96px; }
  .top { flex-wrap: wrap; justify-content: space-between; row-gap: 0; height: auto; padding-top: 12px; padding-bottom: 6px; }
  .nav { order: 3; flex: 1 0 100%; gap: 0; margin: 6px calc(var(--pad) * -1) 0; padding: 0 var(--pad); overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  /* Only when the tabs don't fit: fade the edge and show an arrow, so it's clear the row scrolls (common.js sets .is-more). */
  .nav.is-more { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); }
  .nav a { flex: none; padding: 6px 10px; font-size: 13px; }
  .top:has(.nav) { background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
  .hero { padding-top: 168px; }
  .hero-sub { font-size: 16px; }
  .bento { gap: 10px; }
  .c4, .c5, .c7, .bento .card:last-child, .bento .card.c6 { grid-column: span 12; }
  .card { min-height: 280px; }
  .card--video { min-height: 0; aspect-ratio: 1280 / 760; }
  .panel { height: 540px; }
  .mini { gap: 20px; }
  .t-bar span + span { display: none; }
  .stats { grid-template-columns: 1fr; gap: 40px; }
  .stats > div, .stats > div:first-child { border-left: 0; padding: 0; }
  .plans { grid-template-columns: 1fr; }
  .plan { padding: 24px; }
  .viewer { max-height: calc(100vh - 24px); overflow: auto; }
  .viewer-text { padding: 20px; }
  .viewer h3 { font-size: 22px; }

  /* The HUD sits in the top bar, just after the logo. */
  .hud { top: 14px; bottom: auto; left: 96px; right: auto; padding: 2px; }
  .hud-text { display: none; }
  .hud-ring { width: 36px; height: 36px; }
  .quest-log { top: 64px; bottom: auto; right: 12px; left: 12px; width: auto; }
  .toasts { top: 64px; bottom: auto; right: 12px; left: 12px; justify-items: stretch; }
  .toast, .toast--level { width: auto; }
  .toast:not(:last-child) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html, html.is-loaded { scroll-behavior: auto; }
  .caret, .toast.is-in .toast-burst i, .hud.is-bumped, .medal, .quest-log, .viewer[open], .out-line { animation: none; }
  .js [data-rise] { opacity: 1; transform: none; transition: none; }
}

/* ---------- product page crumb ---------- */
.crumb { margin-left: -12px; padding-left: 14px; border-left: 1px solid var(--line); font-weight: 600; font-size: 15px; }

/* ---------- home ---------- */
.home .hero :is(h1, h2) { font-size: clamp(40px, 6vw, 80px); }
.ask { display: flex; align-items: center; gap: 12px; width: min(680px, 100%); margin-top: 36px; padding: 10px 10px 10px 22px; border-radius: 28px; background: var(--card); border: 1px solid var(--line); text-align: left; transition: border-color 200ms, transform 300ms var(--ease-expo); }
.ask:hover { border-color: var(--dim); transform: translateY(-2px); }
.ask-text { flex: 1; min-width: 0; min-height: 3em; display: flex; align-items: center; font-size: 15px; color: var(--muted); line-height: 1.5; }
.ask-text::after { content: ""; flex: none; width: 2px; height: 1.1em; margin-left: 2px; background: var(--accent); animation: blink 1s steps(1) infinite; }
.ask-go { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--bg); }
.ask-go svg { width: 18px; height: 18px; }
:root[data-theme="light"] .ask-go { background: var(--accent); color: #fff; }

.products { max-width: var(--max); margin: 0 auto; --sec-pad: 40px; padding: var(--sec-pad) var(--pad) 0; }
.line-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 24px; }
.line-head h3 { margin-top: 8px; font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.02em; }
.line-head p:not(.kicker) { margin-top: 10px; max-width: 560px; color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px 14px; }
.tile { display: grid; gap: 4px; align-content: start; }
.tile-pic { display: block; margin-bottom: 10px; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: var(--card); border: 1px solid var(--line); transition: border-color 250ms; }
.tile-pic video { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform 900ms var(--ease-expo); }
.tile:hover .tile-pic, .tile:focus-visible .tile-pic { border-color: var(--dim); }
.tile:hover video { transform: scale(1.05); }
.tile-t { font-weight: 600; font-size: 15px; }
.tile-t::after { content: " ›"; color: var(--dim); transition: color 200ms; }
.tile:hover .tile-t::after { color: var(--accent); }
.tile-d { font-size: 14px; color: var(--muted); }
.feature { position: relative; display: flex; align-items: end; gap: 24px; min-height: 300px; margin-top: 56px; padding: 32px; border-radius: 20px; border: 1px solid var(--line); overflow: hidden; isolation: isolate; color: #fff; }
.feature img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-expo); }
.feature::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(0, 20, 40, 0.88), rgba(0, 20, 40, 0.15) 70%); }
.feature:hover img { transform: scale(1.03); }
.feature-text { display: grid; gap: 6px; flex: 1; }
.feature .kicker { color: #9fd3fa; }
.feature-t { font-size: clamp(26px, 3vw, 38px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.feature-d { max-width: 520px; color: rgba(255, 255, 255, 0.82); }
.feature-go { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #fff; color: #003966; font-size: 24px; }

.beliefs { max-width: var(--max); margin: 0 auto; padding: var(--sec-pad) var(--pad) 0; }
.beliefs h2 { max-width: 900px; font-size: clamp(34px, 4.6vw, 64px); line-height: 1.06; letter-spacing: -0.03em; }
.belief-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 56px; }
.belief-row > div { padding-top: 20px; border-top: 1px solid var(--line); }
.belief-t { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.belief-row p:not(.belief-t) { margin-top: 10px; color: var(--muted); }

.pc { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; max-width: var(--max); margin: 0 auto; padding: var(--sec-pad) var(--pad) 0; }
.pc-pic { margin: 0; aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); }
.pc-pic img { width: 100%; height: 100%; object-fit: cover; }
.pc h2, .pc h3 { margin-top: 12px; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.08; letter-spacing: -0.025em; }
.pc-text > p:not(.kicker) { margin-top: 18px; color: var(--muted); max-width: 500px; }
.ticks { list-style: none; margin: 28px 0 32px; padding: 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: baseline; }
.ticks li::before { content: "✓"; color: var(--teal); font-size: 14px; }
.pc-caps { margin-top: 28px; }
.pc-caps + .ticks { margin-top: 14px; }

/* ---------- Press & media ---------- */
.press { max-width: var(--max); margin: 0 auto; padding: var(--sec-pad) var(--pad) 0; }
.press-head h2 { margin-top: 10px; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.08; letter-spacing: -0.025em; text-wrap: balance; }
.press-head p:not(.kicker) { margin-top: 12px; max-width: 600px; color: var(--muted); }
.press-head a { color: var(--accent); }
.press-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; margin-top: 40px; align-items: stretch; }
.press > .press-grid:first-child { margin-top: 0; } /* the Press page grid has no heading above it */
.press-lead { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); background: var(--card); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
/* The poster is portrait and the card is taller than it, so it sits framed on a pale mat that fills the column. */
.press-pic { display: grid; place-items: center; padding: clamp(14px, 1.6vw, 22px); background: radial-gradient(120% 70% at 50% 0%, #ffffff, #e3eef8); overflow: hidden; }
.press-pic img { border-radius: 8px; box-shadow: 0 14px 34px -14px rgba(0, 40, 80, 0.35); }
/* Press cards lift a little on hover. `translate` is used (not `transform`) so it doesn't fight the scroll-in reveal. */
.press-lead, .press-item { transition: translate 360ms var(--ease-expo), box-shadow 360ms var(--ease-expo), border-color 300ms; }
.js .press [data-rise] { transition: opacity 800ms var(--ease), transform 1000ms var(--ease-expo), translate 360ms var(--ease-expo), box-shadow 360ms var(--ease-expo), border-color 300ms;
  transition-delay: var(--d, 0ms), var(--d, 0ms), 0ms, 0ms, 0ms; }
@media (hover: hover) {
  .press-lead:hover, .press-item:hover { translate: 0 -4px; border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: 0 22px 48px -26px rgba(0, 0, 0, 0.55); }
}
.press-pic img { display: block; width: 100%; height: auto; aspect-ratio: 871 / 1078; object-fit: contain; object-position: 50% 50%; transition: transform 700ms var(--ease-expo); }
.press-lead:hover .press-pic img, .press-item:hover .press-thumb img { transform: scale(1.04); }
.press-body { display: flex; flex-direction: column; gap: 14px; padding: clamp(20px, 2.4vw, 32px); min-width: 0; }
.press-body h3 { font-size: clamp(22px, 2vw, 28px); line-height: 1.18; letter-spacing: -0.02em; text-wrap: balance; }
.press-body > p:not(.press-meta), .press-item p:not(.press-meta) { color: var(--muted); font-size: 15px; }
.press-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13px; color: var(--dim); }
.press-tag { padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); font-weight: 600; }
.press blockquote { margin: 4px 0 0; padding-left: 14px; border-left: 2px solid var(--teal); font-weight: 500; }
.press blockquote cite { display: block; margin-top: 6px; font-style: normal; font-size: 13px; font-weight: 400; color: var(--muted); }
.press h3 a { transition: color 200ms; }
.press h3 a:hover { color: var(--accent); }
.press-more { margin-top: auto; color: var(--accent); font-weight: 600; font-size: 15px; }
.press-list { display: grid; gap: 20px; }
.press-item { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 18px; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; }
.press-item h3 { margin: 8px 0 6px; font-size: 19px; line-height: 1.25; letter-spacing: -0.01em; }
.press-thumb { display: block; border-radius: 14px; overflow: hidden; aspect-ratio: 1; }
.press-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-expo); }
.press-all { justify-self: start; }
/* Homepage: one line to the latest release and the newsroom */
/* The news strip is a small add-on to "Who it's for", not a full section: it sits closer to the cards above it and to the footer. */
.press--strip { padding-top: clamp(40px, 4.4vw, 56px); }
.home .foot { margin-top: clamp(48px, 5.6vw, 72px); }
/* Straight after a chapter, the chapter's own bottom padding is the gap, so the strip is spaced the same above and below. */
.chapter + .press--strip { padding-top: 0; }
.news-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 16px 18px; border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line)); border-radius: 18px; background: var(--card); }
.news-when { font-size: 13px; color: var(--dim); }
.news-link { flex: 1 1 320px; min-width: 0; font-weight: 600; color: var(--ink); transition: color 200ms; }
.news-strip { color: inherit; text-decoration: none; transition: border-color 200ms; }   /* the whole strip is one link to press.html */
.news-strip:hover { border-color: color-mix(in srgb, var(--accent) 75%, var(--line)); }
.news-strip:hover .news-link { color: var(--accent); }
.news-all { flex: none; }
/* Press page: press kit */
.kit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.kit-card { display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); min-width: 0; }
.kit-card h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.kit-card p { color: var(--muted); }
.kit-about { grid-column: 1 / -1; }
.kit-about p { max-width: 75ch; color: var(--ink); }
.kit-logos { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.kit-logos li { display: grid; grid-template-columns: 88px minmax(0, 1fr); align-items: center; gap: 12px; }
.kit-swatch { display: flex; align-items: center; justify-content: center; height: 48px; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line); overflow: hidden; }
.kit-swatch--light { background: #fff; }
.kit-swatch--dark { background: #0a0a0a; }
.kit-swatch img { display: block; width: 100%; height: 34px; object-fit: contain; }
.kit-logos a, .kit-link { color: var(--accent); font-size: 14px; }
@media (max-width: 900px) { .kit-grid { grid-template-columns: 1fr; } }
.press-thumb--event { display: grid; align-content: end; gap: 2px; padding: 12px; color: #fff; text-align: left;
  background: radial-gradient(circle at 80% 15%, color-mix(in srgb, var(--teal) 70%, transparent), transparent 55%), linear-gradient(150deg, #0b3a66, #06162b); }
.press-thumb--event span { font-size: 12px; font-weight: 600; line-height: 1.2; }
.press-thumb--event b { font-size: 28px; line-height: 1; letter-spacing: -0.02em; }
.press-thumb--event small { font-size: 10px; opacity: 0.75; }

@media (max-width: 1000px) { .press-grid { grid-template-columns: 1fr; } }
@media (max-width: 620px) {
  .press-lead { grid-template-columns: 1fr; }
  .press-pic img { height: auto; }
  .press-item { grid-template-columns: 88px minmax(0, 1fr); gap: 14px; padding: 12px; }
  .press-item h3 { font-size: 17px; }
  .press-thumb--event { padding: 8px; }
  .press-thumb--event span { font-size: 9px; }
  .press-thumb--event b { font-size: 20px; }
  .press-thumb--event small { font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) { .press-pic img, .press-thumb img, .press-lead, .press-item, .js .press [data-rise] { transition: none; } }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 0; }
.facts div { padding-top: 16px; border-top: 1px solid var(--line); }
.facts dt { font-size: 13px; color: var(--muted); }
.facts dd { margin: 6px 0 0; font-weight: 500; overflow-wrap: anywhere; }
.facts a { color: var(--accent); }
.company-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }

@media (max-width: 1000px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .belief-row, .facts { grid-template-columns: 1fr 1fr; }
  .pc { grid-template-columns: 1fr; }
  .pc-pic { aspect-ratio: 16 / 10; }
}
@media (max-width: 760px) {
  .crumb { display: none; }
  .ask { padding-left: 16px; }
  .ask-text { font-size: 14px; min-height: 4.5em; }
  .line-head { flex-direction: column; align-items: start; }
  .tiles { gap: 20px 10px; }
  .tile-d { display: none; }
  .tile-t { font-size: 14px; }
  .feature { min-height: 260px; padding: 22px; }
  .feature-go { display: none; }
  .belief-row, .facts { grid-template-columns: 1fr; gap: 24px; }
}
@media (prefers-reduced-motion: reduce) { .ask-text::after { animation: none; } }

/* ---------- home: numbers ---------- */
.numbers { max-width: var(--max); margin: 0 auto; padding: var(--sec-pad) var(--pad) 0; }
.numbers-head h2 { margin-top: 10px; max-width: 760px; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.08; letter-spacing: -0.025em; }
.numbers-head > p:not(.kicker) { margin-top: 14px; color: var(--muted); }
.num-row { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 48px; }
.num-row > div { padding: 0 24px; border-left: 1px solid var(--line); }
.num-row > div:first-child { padding-left: 0; border-left: 0; }
.num { font-size: clamp(48px, 6vw, 88px); font-weight: 600; line-height: 1; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.num-row p:not(.num) { margin-top: 12px; max-width: 220px; color: var(--muted); }
.num-mob { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); font-size: clamp(20px, 2.2vw, 28px); line-height: 1.3; letter-spacing: -0.015em; color: var(--muted); text-wrap: balance; }
.num-mob b { color: var(--ink); font-weight: 600; }
.num-mob [data-stat] { background: linear-gradient(90deg, var(--accent), var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  .num-row { grid-template-columns: 1fr; gap: 28px; }
  .num-row > div { padding: 0; border-left: 0; }
}

/* Very narrow phones: make room for the HUD between the logo and the bar's buttons. */
@media (max-width: 380px) {
  .top-tools { gap: 6px; }
  .top-tools .pill { padding-inline: 14px; font-size: 13px; }
  .hud { left: 88px; }
  .hero :is(h1, h2), .home .hero :is(h1, h2) { font-size: clamp(32px, 11vw, 40px); }
}
.nw { white-space: nowrap; }
.br-phone { display: none; }
@media (max-width: 760px) { .br-phone { display: inline; } }

/* ---------- spotlight: one registration call, right under the hero ---------- */
.spotlight { max-width: var(--max); margin: 0 auto; padding: 8px var(--pad) 40px; }
.spot { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; padding: clamp(24px, 4vw, 44px); border-radius: 24px; overflow: hidden; border: 1px solid var(--line);
  background: radial-gradient(60% 140% at 100% 50%, var(--glow), transparent 70%), var(--card); }
.spot-text { min-width: 0; max-width: 640px; }
.spot-k { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.spot h2 { margin-top: 14px; font-size: clamp(26px, 3.2vw, 40px); line-height: 1.1; letter-spacing: -0.025em; text-wrap: balance; }
.spot-text > p:last-child { margin-top: 12px; color: var(--muted); text-wrap: pretty; }
.spot-go { flex: none; min-height: 48px; padding: 0 24px; font-size: 15px; }
@media (max-width: 760px) {
  .spot { flex-direction: column; align-items: stretch; }
  .spot-go { align-self: flex-start; }
}

/* ---------- Merge: every cloud's services collapse into one chat. The band sits on the page background, so it reads as one with the sections around it. ---------- */
.merge { background: var(--bg); color: var(--ink); }
.merge-stage { position: relative; display: grid; grid-template-rows: auto 1fr auto; justify-items: center; gap: 32px; padding: clamp(80px, 10vw, 128px) var(--pad); overflow: hidden; }
.merge.is-live { height: 340vh; } /* the merge, then a stretch of scrolling for each of the three products */
.merge.is-live .merge-stage { position: sticky; top: 0; height: 100vh; height: 100svh; box-sizing: border-box; padding-block: clamp(84px, 12vh, 120px) clamp(28px, 6vh, 56px); }
.merge-title { display: grid; font-size: clamp(40px, 6.4vw, 96px); line-height: 1; letter-spacing: -0.045em; text-align: center; position: relative; z-index: 2; }

/* GRAITOne's window sits in the middle row, between the title and the numbered steps */
.merge.is-live .one-card { grid-row: 2; grid-column: 1; }
.merge.is-live .merge-title { grid-row: 1; }
.merge.is-live .merge-steps { grid-row: 3; }

.one-card { align-self: center; z-index: 1; width: min(640px, 100%); padding: 0; overflow: hidden; border-radius: 22px; background: var(--w-bg); color: var(--w-ink); border: 1px solid var(--w-line); box-shadow: var(--w-shadow); text-align: left; }
/* The cloud switch: each request targets one cloud, and the card cycles through them (home.js). */

.oc-run { min-height: 172px; }

@keyframes oc-in { from { opacity: 0; transform: translateY(8px); } }
.oc-ask { margin: 14px 0 0 auto; width: fit-content; max-width: 92%; padding: 10px 14px; border-radius: 16px 16px 4px 16px; background: var(--pa-btn); color: #fff; font-size: 15px; }
.oc-plan { display: grid; gap: 4px; list-style: none; margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--w-soft); font: 12.5px/1.6 var(--mono); color: var(--w-ink); }
.oc-plan li { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.oc-plan li::before { content: "+ "; color: var(--w-ok); font-weight: 600; }
.oc-sum { margin-top: 8px; font: 12px var(--mono); color: var(--w-ok); }
.oc-wait { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--w-line); font-size: 13px; color: var(--w-muted); }
.oc-wait > span:first-child::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: #e5a400; vertical-align: 1px; }
.oc-btns { display: flex; gap: 6px; }
.oc-btns b { padding: 6px 12px; border-radius: 999px; background: var(--pa-btn); color: #fff; font-size: 12px; font-weight: 600; }
.oc-btns b + b { background: var(--w-btn2); color: var(--w-ink); }
.oc-ask, .oc-plan, .oc-sum, .oc-wait { transition: opacity 500ms var(--ease), transform 700ms var(--ease-expo); }
/* The cloud tabs and the request show from the start, so the card is never an empty box; the plan, then the approval, follow as the band scrolls. */
/* While the card is still forming (step 0) it shows the tabs and the request; each product's findings come in once its step starts. */
.oc-run.is-swap :is(.oc-ask, .oc-plan li, .oc-sum, .oc-wait) { animation: oc-in 520ms var(--ease-expo) both; }
.oc-run.is-swap .oc-plan li:nth-child(1) { animation-delay: 260ms; }
.oc-run.is-swap .oc-plan li:nth-child(2) { animation-delay: 420ms; }
.oc-run.is-swap .oc-plan li:nth-child(3) { animation-delay: 580ms; }
.oc-run.is-swap .oc-sum { animation-delay: 780ms; }
.oc-run.is-swap .oc-wait { animation-delay: 960ms; }
/* SalesIQ and Pulse list what they found rather than resources to add */
.oc-plan--find { font-family: var(--font); font-size: 13px; }
.oc-plan--find li { white-space: normal; }
.oc-plan--find li::before { content: "✓ "; color: var(--pa-ink); }
.oc-plan--find li.is-warn::before { content: "▲ "; color: var(--w-warn); }

.merge-steps { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; list-style: none; margin: 0; padding: 0; z-index: 2; font-size: 15px; }
.merge-steps li { display: flex; align-items: center; gap: 10px; opacity: 0.45; transition: opacity 400ms var(--ease); }
.merge-steps span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--ink) 50%, transparent); font: 500 12px var(--mono); transition: background 400ms, color 400ms; }
/* The numbered steps open an app; the open one is lit */
.merge-steps button { display: flex; align-items: center; gap: 10px; padding: 4px 6px; border: 0; border-radius: 999px; background: none; color: inherit; font: inherit; cursor: pointer; }
.merge-steps button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.merge-steps li:has(button[aria-pressed="true"]), .merge-steps li:hover { opacity: 1; }
.merge-steps button[aria-pressed="true"] span { background: var(--ink); color: var(--bg); }

@media (max-width: 760px) {
  .oc-run { min-height: 0; }
  .oc-plan { font-size: 11.5px; }
  .oc-wait { flex-wrap: wrap; }
  .merge-steps { gap: 8px 16px; font-size: 13px; }
  /* Short phones (375×667): less padding and gap, so the third step stays inside the sticky stage. */
  .merge-steps span { width: 26px; height: 26px; }
  @media (max-height: 700px) { .merge.is-live .merge-stage { gap: 8px; padding-block: 100px 8px; } .merge-steps { gap: 2px 16px; } .merge-steps span { width: 22px; height: 22px; } .oc-run { padding: 10px 14px 12px; } .merge-title { font-size: 34px; } }
}

/* ---------- Spotlight first, above the hero ---------- */
.home .spotlight { padding-top: 88px; padding-bottom: 0; }
.home .hero { padding-top: 88px; }

/* ---------- Product jumble: clips of different sizes, each with a short caption ---------- */
.jumble { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(110px, 12vw, 160px); gap: 12px; }
.jumble .tile { display: block; position: relative; border-radius: 16px; overflow: hidden; }
.jumble .tile-pic { position: absolute; inset: 0; margin: 0; aspect-ratio: auto; border-radius: inherit; }
.jumble .tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.tile-cap { position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 20px); padding: 5px 11px; border-radius: 999px; background: rgba(0, 22, 44, 0.78); color: #fff; font: 600 12.5px/1.3 var(--font); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.j1 { grid-column: 1 / 8; grid-row: 1 / 3; } .j2 { grid-column: 8 / 13; grid-row: 1 / 2; } .j3 { grid-column: 8 / 13; grid-row: 2 / 3; }
.j4 { grid-column: 1 / 5; grid-row: 3 / 5; } .j5 { grid-column: 5 / 9; grid-row: 3 / 4; } .j6 { grid-column: 9 / 13; grid-row: 3 / 4; }
.j7 { grid-column: 5 / 9; grid-row: 4 / 5; } .j8 { grid-column: 9 / 13; grid-row: 4 / 5; }

/* The private-cloud card is drawn: a lit rack face in brand navy, no photograph */
.feature-art { position: absolute; inset: 0; z-index: -2; transition: transform 1.2s var(--ease-expo);
  background:
    radial-gradient(55% 120% at 82% 35%, rgba(0, 141, 228, 0.5), transparent 62%),
    radial-gradient(circle at 12px 11px, rgba(2, 192, 216, 0.9) 1.6px, transparent 2.4px) 0 0 / 120px 22px,
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.07) 0 16px, transparent 16px 22px),
    repeating-linear-gradient(90deg, transparent 0 108px, rgba(0, 10, 20, 0.55) 108px 120px),
    linear-gradient(135deg, #002848, #003966 55%, #0a5a9c); }
.feature:hover .feature-art { transform: scale(1.03); }

/* Private cloud drawing */
.pc-pic { display: grid; place-items: center; background: radial-gradient(70% 70% at 50% 40%, var(--glow), transparent 70%), var(--card); }
.rack-art { width: 88%; height: auto; }
.rack-art .racks rect { stroke: var(--line); stroke-width: 1.5; }
.rack-art .u { fill: var(--bg); stroke: var(--line); }
.rack-art .led { fill: var(--dim); }
.rack-art .led.on { fill: var(--teal); }
.rack-art .vent { stroke: var(--line); stroke-width: 2; stroke-dasharray: 2 3; }
.rack-art .rack-floor path { stroke: var(--line); stroke-width: 2; }
@media (prefers-reduced-motion: no-preference) {
  .rack-art .led.on:nth-of-type(3n) { animation: led 2.4s steps(2) infinite; }
  .rack-art .led.on:nth-of-type(5n) { animation: led 3.1s steps(2) infinite; }
}
@keyframes led { 50% { fill: var(--dim); } }

/* Plans card for private cloud: same drawn rack face instead of a photograph */
.plan--pc { position: relative; isolation: isolate; overflow: hidden; }
.plan--pc::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.12;
  background:
    radial-gradient(circle at 12px 11px, var(--teal) 1.6px, transparent 2.4px) 0 0 / 120px 22px,
    repeating-linear-gradient(0deg, var(--line) 0 16px, transparent 16px 22px); }

/* ---------- Shorts: vertical films ---------- */
.shorts { max-width: var(--max); margin: 0 auto; padding: var(--sec-pad) var(--pad) 0; display: grid; justify-items: center; gap: clamp(28px, 4vw, 48px); text-align: center; }
.shorts-head h3, .shorts-head h2 { margin-top: 8px; font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.02em; text-wrap: balance; }
.shorts-head p:not(.kicker) { margin: 10px auto 0; max-width: 520px; color: var(--muted); }
.short { margin: 0; margin-block: 44px; width: min(340px, 100%); position: relative; z-index: 1; }
/* margin-block: room for the hover grow (scale 1.16 adds about 8% of the height above and below), so it never covers the heading. */
/* The film grows toward the viewer on hover, and stays big while it plays. */
.short video { display: block; width: 100%; aspect-ratio: 9 / 16; border-radius: 22px; background: #000; border: 1px solid var(--line);
  box-shadow: 0 18px 50px -24px rgba(0, 0, 0, 0.5); transform-origin: 50% 50%;
  transition: transform 520ms var(--ease-expo), box-shadow 520ms var(--ease-expo), border-color 300ms; }
.short.is-big video { transform: scale(1.16); border-color: var(--teal); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.65), 0 0 0 6px color-mix(in srgb, var(--teal) 18%, transparent); }
@media (hover: hover) { .short:hover video { transform: scale(1.16); border-color: var(--teal); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.65), 0 0 0 6px color-mix(in srgb, var(--teal) 18%, transparent); } }
@media (max-width: 760px) { .short.is-big video { transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .short video { transition: none; } .oc-run.is-swap { animation: none; } }

/* ---------- Who it's for ---------- */
.who { max-width: var(--max); margin: 0 auto; padding: var(--sec-pad) var(--pad) 0; }
.who h2 { margin-top: 10px; max-width: 760px; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.08; letter-spacing: -0.025em; text-wrap: balance; }
.who-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.who-row > div { padding: 24px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
.who-t { font-weight: 600; font-size: 18px; }
.who-row p:not(.who-t) { margin-top: 10px; color: var(--muted); }

/* ---------- Product page: the bottleneck, and the architect on call ---------- */
.compare, .architect { max-width: var(--max); margin: 0 auto; padding: var(--sec-pad) var(--pad) 0; }
.compare-head h2 { margin-top: 10px; max-width: 760px; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.08; letter-spacing: -0.025em; text-wrap: balance; }
.compare-head > p:not(.kicker) { margin-top: 14px; max-width: 620px; color: var(--muted); }
.compare-table { margin-top: 40px; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.ct-row { display: grid; grid-template-columns: 1.1fr 1fr 1fr; }
.ct-row > span { padding: 16px 20px; border-top: 1px solid var(--line); }
.ct-row:first-child > span { border-top: 0; }
.ct-head { background: var(--card-2); font-size: 14px; font-weight: 600; }
.ct-row > span:nth-child(2) { color: var(--muted); }
.ct-row > span:nth-child(3) { color: var(--ink); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.ct-head > span:nth-child(3) { color: var(--accent); }
.ct-row [role="rowheader"] { font-weight: 500; }
.arch-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.arch-row--2 { grid-template-columns: repeat(2, 1fr); }
.arch-row > div { padding: 24px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
.arch-k { font: 500 12px var(--mono); color: var(--accent); }
.arch-t { margin-top: 8px; font-weight: 600; font-size: 18px; }
.arch-row a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.arch-row p:last-child { margin-top: 10px; color: var(--muted); }

/* ---------- Footer socials ---------- */
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--pill-dark); color: var(--muted); transition: color 200ms, background 200ms; }
.socials a:hover { color: var(--ink); background: var(--pill-dark-hover); }
.socials svg { width: 17px; height: 17px; }

/* ---------- Ask GRAIT chat ---------- */
.chat { position: fixed; right: max(20px, env(safe-area-inset-right, 0px)); bottom: max(20px, env(safe-area-inset-bottom, 0px)); z-index: 45; display: grid; justify-items: end; gap: 12px; }
.chat-open { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 999px; background: var(--accent); color: #fff; font: 600 14px var(--font); box-shadow: 0 12px 30px rgba(0, 20, 40, 0.35); }
:root:not([data-theme="light"]) .chat-open { color: #00243f; }
.chat-open svg { width: 18px; height: 18px; }
.chat.is-open .chat-open span { display: none; }
.chat-panel { order: -1; display: grid; grid-template-rows: auto 1fr auto auto; width: min(380px, calc(100vw - 32px)); height: min(540px, calc(100vh - 120px)); border-radius: 20px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45); overflow: hidden; }
.chat-panel[hidden] { display: none; }
.chat-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.chat-bar p { display: grid; font-size: 15px; } .chat-bar span { font-size: 12px; color: var(--muted); }
.chat-close { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: var(--muted); }
.chat-close:hover { background: var(--pill-dark); color: var(--ink); }
.chat-close svg { width: 18px; height: 18px; }
.chat-log { overflow-y: auto; display: grid; align-content: start; gap: 10px; padding: 16px; }
.chat-msg { max-width: 88%; padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.5; }
.chat-msg--bot { background: var(--card-2); border-bottom-left-radius: 4px; }
.chat-msg--me { justify-self: end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
:root:not([data-theme="light"]) .chat-msg--me { color: #00243f; }
.chat-msg a { color: var(--accent); font-weight: 500; }
.chat-quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 12px; }
.chat-quick button { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; color: var(--ink); text-align: left; }
.chat-quick button:hover { border-color: var(--accent); }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; min-width: 0; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: 14px var(--font); }
.chat-form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.chat-form button { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; }
.chat-form button svg { width: 18px; height: 18px; }
/* On the product page the game badge moves up to make room for the chat button */
@media (min-width: 761px) { .hud { bottom: 84px; } .toasts { bottom: 150px; } }

@media (max-width: 1000px) {
  .who-row, .arch-row, .arch-row--2 { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .home .spotlight { padding-top: 120px; }
  .home .hero { padding-top: 64px; }
  .jumble { grid-template-columns: 1fr 1fr; grid-auto-rows: 120px; gap: 8px; }
  .jumble .tile { grid-column: auto; grid-row: auto; }
  .jumble .j1 { grid-column: 1 / -1; grid-row: span 2; }
  .jumble .j8 { grid-column: 1 / -1; }
  .ct-row { grid-template-columns: 1fr 1fr; }
  .ct-row [role="rowheader"], .ct-head > span:first-child { grid-column: 1 / -1; padding-bottom: 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
  .ct-row > span:nth-child(2), .ct-row > span:nth-child(3) { border-top: 0; }
  .ct-head > span:first-child { display: none; }
  .chat-open { min-height: 44px; padding: 0 14px; }
  .tile-cap { left: 6px; bottom: 6px; max-width: calc(100% - 12px); padding: 3px 8px; border-radius: 8px; font-size: 11px; }
  .pill-long { display: none; }
  .pill-short { display: inline; }
  .chat-open span { display: none; }
  .chat-panel { height: min(520px, calc(100svh - 110px)); }
}

/* ---------- region map in the numbers section ---------- */
.num-map { margin-top: 56px; padding: clamp(20px, 3vw, 32px); border-radius: 24px; background: var(--card); border: 1px solid var(--line); }
.map-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; margin-bottom: 20px; }
.map-head h3 { font-size: 20px; letter-spacing: -0.01em; }
.map-head p { color: var(--muted); font-size: 14px; max-width: 62ch; }
.map-head p span { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.map-body { display: grid; gap: 16px; }
.map-body .map-key { justify-content: center; }
.map { position: relative; width: 100%; aspect-ratio: 1000 / 377.8; max-width: 100%; }
.map-land { position: absolute; inset: 0; background: var(--map-land);
  -webkit-mask: url(assets/world-dots.svg) center / 100% 100% no-repeat; mask: url(assets/world-dots.svg) center / 100% 100% no-repeat; }
.map-pins { position: absolute; inset: 0; }
.pin { --s: calc(var(--d) * var(--ps, 1)); position: absolute; width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); border-radius: 50%;
  background: color-mix(in srgb, var(--pc) 32%, transparent); border: 1.5px solid var(--pc); cursor: default; transition: transform 200ms var(--ease); }
.pin::before { content: ""; position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 50%; background: var(--pc); }
.pin.is-top::after { content: ""; position: absolute; inset: -1.5px; border-radius: 50%; border: 1.5px solid var(--pc); animation: pin-ping 2.6s var(--ease) infinite; }
.pin:nth-child(2)::after { animation-delay: 0.8s; } .pin:nth-child(3)::after { animation-delay: 1.6s; }
@keyframes pin-ping { 0% { transform: scale(1); opacity: 0.8; } 80%, 100% { transform: scale(2.1); opacity: 0; } }
.pin:hover { transform: scale(1.15); z-index: 99 !important; }
.map-pins .pin[data-tip]:hover::after { content: attr(data-tip); position: absolute; inset: auto; left: 50%; bottom: calc(100% + 10px); width: max-content; transform: translateX(-50%);
  padding: 6px 10px; border: 0; border-radius: 8px; background: var(--ink); color: var(--bg); font-size: 12px; font-weight: 500; white-space: nowrap; animation: none; opacity: 1; }
/* The same colour per cloud as the cloud chips and the sign-up form (.c-aws, .c-az, .c-gcp). */
.pin-aws { --pc: #ff9900; } .pin-azure { --pc: #2f9bf0; } .pin-gcp { --pc: #34a853; }
.map-side { display: grid; gap: 14px; align-content: start; min-width: 0; }
.map-side-t { font-size: 13px; color: var(--dim); }
.map-top { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.map-top li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.map-top li:last-child { border-bottom: 0; }
.map-top i, .map-key i { width: 10px; height: 10px; border-radius: 50%; background: var(--pc); }
.mt-place { display: grid; font-size: 15px; font-weight: 600; min-width: 0; }
.mt-place small { font: 400 12px var(--mono); color: var(--dim); }
.map-top b { font-weight: 600; font-variant-numeric: tabular-nums; }
.map-key { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); }
.map-key span { display: inline-flex; align-items: center; gap: 7px; }
@media (max-width: 860px) { .map-body { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .map { --ps: 0.55; } .pin::before { width: 3px; height: 3px; margin: -1.5px 0 0 -1.5px; } }
@media (prefers-reduced-motion: reduce) { .pin.is-top::after { animation: none; opacity: 0; } }
/* ---------- Registration dialog: GRAIT DevOps early access ---------- */
:root { --bad: #ff7a7a; }
:root[data-theme="light"] { --bad: #c53030; }
:root:has(.reg[open]) { overflow: hidden; }
.reg { width: min(1060px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); padding: 0; border: 1px solid var(--line); border-radius: 24px; background: var(--card); color: var(--ink); overflow: hidden; overflow: clip; box-shadow: 0 40px 120px rgba(0, 0, 0, 0.5); }
.reg::backdrop { background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
:root[data-theme="light"] .reg::backdrop { background: rgba(0, 30, 60, 0.42); }
:root[data-theme="light"] .reg { box-shadow: 0 40px 120px rgba(0, 40, 80, 0.22); }
.reg[open] { animation: viewer-in 480ms var(--ease-expo); }
.reg-in { position: relative; display: flex; height: min(820px, calc(100dvh - 34px)); }

/* the brand side: logo, the promise, and a plan that fills in as the form does */
/* The column takes about a third of the dialog (290-380px) and scrolls on short screens instead of cutting off. */
.reg-side { position: relative; isolation: isolate; flex: 0 0 clamp(290px, 36%, 380px); display: flex; flex-direction: column; padding: 32px 30px 28px; overflow: hidden auto; overscroll-behavior: contain; scrollbar-width: thin; border-right: 1px solid var(--line);
  background: radial-gradient(90% 55% at 0% 0%, var(--glow), transparent 70%), radial-gradient(70% 45% at 100% 100%, color-mix(in srgb, var(--teal) 16%, transparent), transparent 70%), var(--card-2); }
.reg-side::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.5; background: radial-gradient(circle, color-mix(in srgb, var(--ink) 22%, transparent) 1px, transparent 1.6px) 0 0 / 18px 18px;
  -webkit-mask-image: linear-gradient(160deg, #000, transparent 55%); mask-image: linear-gradient(160deg, #000, transparent 55%); }
.reg-logo { width: 104px; height: auto; }
.reg-k { margin-top: 28px; }
.reg-side h2 { margin-top: 14px; font-size: clamp(30px, 3vw, 40px); line-height: 1.05; letter-spacing: -0.03em; }
.reg-lede { margin-top: 12px; color: var(--muted); font-size: 15px; text-wrap: pretty; }
.reg-plan { margin-top: auto; padding: 14px 16px; border-radius: 16px; background: color-mix(in srgb, var(--bg) 82%, transparent); border: 1px solid var(--line); font: 12px/1.75 var(--mono); color: var(--dim); }
.reg-plan-bar { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.reg-plan-n { color: var(--ink); font-variant-numeric: tabular-nums; }
.reg-line { display: grid; grid-template-columns: 14px 12.5ch minmax(0, 1fr); gap: 4px 8px; }
.reg-line b { font-weight: 500; color: var(--dim); transition: color 300ms; }
.reg-key { color: var(--dim); transition: color 300ms; }
.reg-v { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.reg-line.is-set b { color: var(--teal); }
.reg-line.is-set .reg-key { color: var(--accent); }
.reg-line.is-set .reg-v { color: var(--ink); }
.reg-plan-foot { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); color: var(--muted); }
.reg-plan-foot.is-ready { color: var(--teal); }
.reg-meter { position: relative; height: 4px; margin-top: 14px; border-radius: 999px; background: var(--line); overflow: hidden; }
.reg-meter span { position: absolute; inset: 0; background: linear-gradient(90deg, var(--accent), var(--teal)); transform-origin: left; transform: scaleX(0); transition: transform 700ms var(--ease-expo); }
.reg-perk { margin-top: 14px; font-size: 13px; color: var(--muted); }
.reg-perk::before { content: "✓"; margin-right: 8px; color: var(--teal); }

/* the form side */
.reg-main { flex: 1; min-width: 0; overflow-y: auto; overscroll-behavior: contain; }
.reg-form { padding: 36px 36px 28px; }
.reg-head h3 { font-size: 22px; letter-spacing: -0.02em; padding-right: 48px; }
.reg-head p { margin-top: 6px; font-size: 14px; color: var(--muted); }
.reg-head .reg-req { margin: 0; }
.reg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; margin-top: 26px; }
.reg-field { min-width: 0; margin: 0; padding: 0; border: 0; display: grid; align-content: start; gap: 7px; }
.reg-field--wide { grid-column: 1 / -1; }
.reg-label { padding: 0; font-size: 13.5px; font-weight: 500; color: var(--ink); }
.reg-req { margin-left: 3px; color: var(--accent); }
.reg-opt { margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--pill-dark); font-size: 11.5px; font-weight: 500; color: var(--muted); }
.reg-help { font-size: 12.5px; color: var(--muted); }
.reg-label + .reg-help { margin-top: -2px; }
.reg-input { width: 100%; min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: 15px var(--font); text-align: left;
  transition: border-color 200ms, box-shadow 200ms, background 200ms; }
.reg-input::placeholder { color: var(--dim); opacity: 0.85; }
.reg-input:hover { border-color: color-mix(in srgb, var(--dim) 70%, var(--line)); }
.reg-input:focus, .reg-input:focus-visible, .pick.is-open .pick-btn { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent); }
.reg-input[aria-invalid="true"] { border-color: var(--bad); }
.reg-input[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px color-mix(in srgb, var(--bad) 18%, transparent); }
.reg-err { font-size: 12.5px; color: var(--bad); }
.reg-err:empty { display: none; }
.reg-err:not(:empty)::before { content: "!"; display: inline-grid; place-items: center; width: 15px; height: 15px; margin-right: 7px; border-radius: 50%; background: var(--bad); color: var(--card); font: 700 10px var(--font); vertical-align: 1px; }
.reg-hint { font-size: 12.5px; color: var(--muted); }
.reg-hint button { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.reg-phone { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; }
.reg-code { font-family: var(--mono); font-size: 14px; text-align: center; }
.reg-other { margin-top: 2px; animation: line-in 300ms var(--ease); }
.reg-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* dropdowns */
.pick { position: relative; }
.pick-btn { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.pick-val { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pick-val.is-empty { color: var(--dim); }
.pick-chev { flex: none; width: 18px; height: 18px; color: var(--muted); transition: transform 300ms var(--ease-expo); }
.pick.is-open .pick-chev { transform: rotate(180deg); color: var(--accent); }
.pick-pop { position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 6px); display: grid; padding: 6px; border-radius: 14px; background: var(--card); border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); animation: pick-in 240ms var(--ease-expo); }
:root[data-theme="light"] .pick-pop { box-shadow: 0 24px 60px rgba(0, 40, 80, 0.18); }
.pick-pop[hidden] { display: none; }
.pick-pop.is-up { top: auto; bottom: calc(100% + 6px); }
@keyframes pick-in { from { opacity: 0; transform: translateY(-4px) scale(0.98); } }
.pick-find { position: relative; margin-bottom: 6px; }
.pick-find svg { position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--dim); pointer-events: none; }
.pick-search { width: 100%; min-height: 40px; padding: 0 12px 0 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: 14px var(--font); }
.pick-search:focus { outline: none; border-color: var(--accent); }
.pick-list { max-height: 248px; margin: 0; padding: 0; overflow-y: auto; overscroll-behavior: contain; list-style: none; outline: none; }
.pick-opt { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 7px 10px; border-radius: 9px; font-size: 14px; cursor: pointer; }
.pick-opt.is-active { background: var(--pill-dark); }
.pick-list:focus .pick-opt.is-active { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent); }
.pick-opt[aria-selected="true"] { color: var(--accent); font-weight: 500; }
.pick-l { flex: 1; min-width: 0; }
.pick-dial { font: 12px var(--mono); color: var(--dim); }
.pick-sep { height: 1px; margin: 5px 8px; background: var(--line); }
.pick-box { position: relative; flex: none; width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--dim); transition: background 150ms, border-color 150ms; }
.pick-opt[aria-selected="true"] .pick-box { background: var(--accent); border-color: var(--accent); }
.pick-opt[aria-selected="true"] .pick-box::after { content: ""; position: absolute; left: 5px; top: 1.5px; width: 4px; height: 9px; border: solid var(--card); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.pick-none { padding: 10px; font-size: 13px; color: var(--muted); }

/* cloud chips: multi-select, each with its cloud's colour */
.reg-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.reg-chip { position: relative; display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 16px 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); font-size: 14px; font-weight: 500; cursor: pointer; user-select: none;
  transition: border-color 200ms, background 200ms, transform 200ms var(--ease); }
.reg-chip:hover { border-color: var(--dim); }
.reg-chip:active { transform: scale(0.97); }
.reg-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.reg-chip i { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.reg-chip i.c-other { background: var(--dim); }
.reg-tick { width: 0; height: 16px; color: var(--accent); opacity: 0; transition: width 250ms var(--ease-expo), opacity 200ms; }
.reg-chip:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--bg)); }
.reg-chip:has(input:checked) .reg-tick { width: 16px; opacity: 1; }
.reg-chip:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.reg-field.is-bad .reg-chip:not(:has(input:checked)) { border-color: color-mix(in srgb, var(--bad) 55%, var(--line)); }

.reg-actions { display: flex; align-items: center; justify-content: flex-end; gap: 16px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.reg-status { flex: 1; font-size: 13.5px; color: var(--muted); }
.reg-status.is-bad { color: var(--bad); }
.reg-status a { color: var(--accent); text-decoration: underline; }
.reg-submit { min-height: 50px; padding: 0 26px; font-size: 15px; font-weight: 600; }
.reg-submit:disabled { opacity: 0.7; cursor: progress; }
.reg.is-sending .reg-submit-t::before { content: ""; display: inline-block; width: 13px; height: 13px; margin-right: 9px; vertical-align: -1px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 700ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.reg-fine { margin-top: 14px; font-size: 12px; color: var(--dim); text-align: right; }
.reg-fine a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }

/* done */
.reg-done { display: grid; justify-items: center; align-content: center; min-height: 100%; padding: 48px 36px; text-align: center; outline: none; }
.reg-done[hidden] { display: none; }
.reg-done-mark { position: relative; width: 84px; height: 84px; }
.reg-done-mark svg { width: 100%; height: 100%; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.reg-done-mark circle { stroke: var(--teal); stroke-width: 2.5; fill: color-mix(in srgb, var(--teal) 14%, transparent); transform-origin: center; }
.reg-done-mark path { stroke: var(--teal); stroke-width: 3.5; stroke-dasharray: 40; stroke-dashoffset: 0; }
.reg.is-fresh .reg-done-mark circle { animation: done-ring 700ms var(--ease-expo) both; }
.reg.is-fresh .reg-done-mark path { animation: done-tick 500ms 300ms var(--ease) both; }
.reg-done-mark .toast-burst { left: 50%; top: 50%; }
.reg-done-mark .toast-burst::before { display: none; }
.reg.is-fresh .reg-done-mark .toast-burst i { animation: burst 1000ms 350ms var(--ease) forwards; }
@keyframes done-ring { from { transform: scale(0.6); opacity: 0; } }
@keyframes done-tick { from { stroke-dashoffset: 40; } }
.reg-done-k { margin-top: 24px; font: 13px var(--mono); color: var(--teal); }
.reg-done h3 { margin-top: 10px; font-size: clamp(28px, 3vw, 38px); line-height: 1.1; letter-spacing: -0.03em; }
.reg-done-p { margin-top: 12px; max-width: 420px; color: var(--muted); }
.reg-done-p b { color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
.reg-done-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }

/* verify: the code from the email */
.reg-otp { display: grid; justify-items: center; align-content: center; min-height: 100%; padding: 48px 36px; text-align: center; outline: none; animation: line-in 400ms var(--ease); }
.reg-otp[hidden] { display: none; }
.reg-otp-mark { position: relative; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.reg-otp-mark svg { width: 42px; height: 42px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.reg-otp-ping { position: absolute; top: 14px; right: 14px; width: 14px; height: 14px; border-radius: 50%; background: var(--teal); border: 3px solid var(--card); }
.reg-otp-ping::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid var(--teal); animation: ping 1.6s var(--ease) infinite; }
@keyframes ping { to { transform: scale(2.4); opacity: 0; } }
.reg-otp .reg-done-k { color: var(--accent); }
.reg-otp h3 { margin-top: 10px; font-size: clamp(28px, 3vw, 38px); line-height: 1.1; letter-spacing: -0.03em; }
.reg-demo { display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; padding: 6px 14px 6px 6px; border-radius: 999px; border: 1px dashed color-mix(in srgb, var(--accent) 50%, var(--line)); font-size: 13px; color: var(--muted); }
.reg-otp-form { display: grid; justify-items: center; gap: 12px; margin-top: 26px; width: 100%; }
.reg-otp-boxes { display: flex; gap: 10px; }
.reg-otp-boxes.is-shake { animation: shake 420ms var(--ease); }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.reg-otp-box { width: 54px; height: 64px; padding: 0; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: 600 26px var(--mono); text-align: center; caret-color: var(--accent);
  transition: border-color 200ms, box-shadow 200ms, transform 250ms var(--ease-expo); }
.reg-otp-box:nth-child(3) { margin-right: 10px; }
.reg-otp-box:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent); transform: translateY(-2px); }
.reg-otp-box::placeholder { color: var(--line); }
.reg-otp-box:not(:placeholder-shown) { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.reg-otp-box[aria-invalid="true"] { border-color: var(--bad); }
.reg-otp-note { font-size: 13px; color: var(--teal); }
.reg-otp-note:empty { display: none; }
.reg-verify { margin-top: 6px; min-width: 240px; }
.reg-otp-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 10px; margin-top: 20px; font-size: 13.5px; color: var(--dim); }
.reg-otp-links button { color: var(--accent); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.reg-otp-links button:disabled { color: var(--dim); text-decoration: none; cursor: default; }
.reg-otp-timer { margin-left: -6px; font-variant-numeric: tabular-nums; }
.reg-otp-links.no-resend > :not([data-reg-edit]) { display: none; }
.reg-plan-foot.is-wait { color: #e5b94e; }
.reg-plan-foot.is-wait::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: currentColor; vertical-align: 1px; animation: blink 1.2s steps(1) infinite; }
:root[data-theme="light"] .reg-plan-foot.is-wait { color: #9a6a00; }

.reg-close { position: absolute; z-index: 6; top: 16px; right: 16px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--pill-dark); color: var(--muted); transition: background 200ms, color 200ms, transform 300ms var(--ease-expo); }
.reg-close:hover { background: var(--pill-dark-hover); color: var(--ink); transform: rotate(90deg); }
.reg-close svg { width: 18px; height: 18px; }

/* Short laptop screens: tighten the left column so it fits without scrolling where it can. */
@media (min-width: 881px) and (max-height: 780px) {
  .reg-side { padding: 24px 26px 22px; }
  .reg-logo { width: 88px; }
  .reg-k { margin-top: 18px; }
  .reg-side h2 { margin-top: 10px; font-size: clamp(26px, 2.6vw, 34px); }
  .reg-lede { margin-top: 8px; font-size: 14px; }
  .reg-plan { margin-top: 18px; padding: 10px 14px; line-height: 1.6; }
  .reg-perk { margin-top: 10px; }
  .reg-form { padding-top: 28px; }
}

@media (min-width: 881px) and (max-height: 640px) {
  .reg-side { padding-top: 20px; padding-bottom: 18px; }
  .reg-logo { width: 76px; }
  .reg-k { margin-top: 14px; }
  .reg-plan { margin-top: 14px; line-height: 1.5; }
}

/* Tablets and landscape phones: the left column moves above the form and keeps all of its
   content, the intro on one side and the live plan on the other. */
@media (max-width: 880px) {
  .reg { max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain; }
  .reg-in { display: flex; flex-direction: column; height: auto; }
  .reg-side { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto auto 1fr auto;
    grid-template-areas: "logo ." "k plan" "title plan" "lede plan" "perk meter"; column-gap: 28px; align-items: start;
    padding: 24px 24px 22px; overflow: hidden; border-right: 0; border-bottom: 1px solid var(--line); }
  .reg-logo { grid-area: logo; width: 84px; }
  .reg-k { grid-area: k; margin-top: 18px; }
  .reg-side h2 { grid-area: title; margin-top: 12px; font-size: 30px; }
  .reg-lede { grid-area: lede; font-size: 14px; }
  .reg-plan { grid-area: plan; margin-top: 18px; align-self: stretch; }
  .reg-meter { grid-area: meter; align-self: end; margin-top: 14px; }
  .reg-perk { grid-area: perk; align-self: end; margin-top: 14px; }
  .reg-main { overflow: visible; }
  .reg-form { padding: 24px 24px 22px; }
  .reg-head h3 { padding-right: 0; font-size: 19px; }
  .reg-done, .reg-otp { padding: 40px 22px; }
  /* The close button stays in reach while the dialog scrolls. */
  .reg-close { position: sticky; top: 12px; order: -1; align-self: flex-end; margin: 12px 12px -52px 0;
    background: color-mix(in srgb, var(--pill-dark) 88%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
}

/* The sticky mini plan: only on phones and tablets, where the full plan sits above the form and scrolls away. */
.reg-mini { display: none; }
@media (max-width: 880px) {
  .reg-mini { position: sticky; top: 0; z-index: 5; order: -2; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px;
    height: 64px; margin-bottom: -64px; padding: 0 68px 0 20px; text-align: left; border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--card) 90%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    font: 12px/1.45 var(--mono); color: var(--dim); opacity: 0; visibility: hidden; translate: 0 -8px;
    transition: opacity 220ms var(--ease), translate 320ms var(--ease-expo), visibility 0s 320ms; }
  .reg-mini.is-on { opacity: 1; visibility: visible; translate: 0 0; transition: opacity 220ms var(--ease), translate 320ms var(--ease-expo), visibility 0s; }
  .reg-mini-t { display: grid; min-width: 0; }
  .reg-mini-t > span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .reg-mini-foot { color: var(--muted); }
  .reg-mini-foot.is-ready { color: var(--teal); }
  .reg-mini-foot.is-wait { color: #e5b94e; }
  :root[data-theme="light"] .reg-mini-foot.is-wait { color: #9a6a00; }
  .reg-mini-n { color: var(--ink); font-variant-numeric: tabular-nums; font-size: 13px; }
  .reg-mini-bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; overflow: hidden; }
  .reg-mini-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--teal)); transform: scaleX(0); transform-origin: 0 50%; transition: transform 400ms var(--ease-expo); }
}

/* Phones: one column, everything in the same order as on a laptop. */
@media (max-width: 600px) {
  .reg-side { display: flex; flex-direction: column; padding: 22px 20px 20px; }
  .reg-side h2 { font-size: 28px; padding-right: 44px; }
  .reg-plan { margin-top: 18px; padding: 12px 14px; font-size: 11.5px; }
  .reg-form { padding: 22px 20px 20px; }
}
@media (max-width: 560px) {
  .reg { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); border-radius: 20px; }
  .reg-grid { grid-template-columns: 1fr; gap: 16px; }
  .reg-phone { grid-template-columns: 84px minmax(0, 1fr); }
  .reg-actions { flex-direction: column-reverse; align-items: stretch; }
  .reg-submit { width: 100%; }
  .reg-fine { text-align: left; }
  .reg-demo { text-align: left; border-radius: 14px; }
  .reg-otp-boxes { gap: 6px; }
  .reg-otp-box { width: 42px; height: 54px; font-size: 22px; border-radius: 12px; }
  .reg-otp-box:nth-child(3) { margin-right: 6px; }
  .reg-verify { width: 100%; }
}
/* Very narrow phones: six code boxes still fit on one line. */
@media (max-width: 380px) {
  .reg-otp-boxes { gap: 5px; }
  .reg-otp-box { width: 36px; height: 48px; font-size: 20px; border-radius: 10px; }
  .reg-otp-box:nth-child(3) { margin-right: 5px; }
  .reg-line { column-gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .reg-otp, .reg-otp-boxes.is-shake, .reg-otp-ping::after, .reg-plan-foot.is-wait::before,
  .reg[open], .pick-pop, .reg-other, .reg.is-fresh .reg-done-mark circle, .reg.is-fresh .reg-done-mark path, .reg.is-fresh .reg-done-mark .toast-burst i { animation: none; }
  .reg-close:hover { transform: none; }
  .reg-mini, .reg-mini.is-on, .reg-mini-bar span { transition: none; }
}

/* ---------- Legal pages (cookie policy) ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 56px max(16px, var(--pad)) 96px; display: grid; gap: 16px; }
.legal-mark img { height: 28px; width: auto; }
.legal h1 { margin-top: 32px; font-size: clamp(34px, 5vw, 52px); line-height: 1.05; letter-spacing: -0.03em; }
.legal-date { color: var(--dim); font-size: 14px; }
.legal h2 { margin-top: 24px; font-size: 22px; letter-spacing: -0.01em; }
.legal p { color: var(--muted); text-wrap: pretty; }
.legal a:not(.pill) { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.legal code { font: 13px var(--mono); color: var(--ink); }
.legal-table { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 14px; }
.legal th, .legal td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.legal th { font-weight: 500; color: var(--ink); background: var(--card); }
.legal td { color: var(--muted); }
.legal tr:last-child td { border-bottom: 0; }
.legal-back { margin-top: 24px; }
/* The visitor's country, from their device's time zone (flag.js). */
.geo-flag { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--pill-dark); font-size: 20px; line-height: 1; cursor: default; user-select: none; }
.geo-flag--code { font: 600 12px var(--mono); letter-spacing: 0.04em; color: var(--ink); }

/* ---------- Intro: one full screen over a live sea of clouds (clouds.js) ---------- */
.intro { --sky-top: #02040b; --sky-bot: #16243f; --intro-ink: #fff; --intro-sub: rgba(255, 255, 255, 0.86); --scrim: rgba(4, 8, 20, 0.42); --band: rgba(4, 6, 14, 0.6);
  position: relative; display: grid; place-items: center; min-height: 100svh; padding: 96px var(--pad) 88px; overflow: hidden; isolation: isolate; text-align: center; color: var(--intro-ink);
  background: linear-gradient(180deg, var(--sky-top), var(--sky-bot)); }
:root[data-theme="light"] .intro { --sky-top: #2b62c4; --sky-bot: #b4d0ef; --intro-ink: #003966; --intro-sub: #1f4a72; --scrim: rgba(246, 249, 252, 0.72); --band: rgba(246, 249, 252, 0.82); }
/* Light theme: the clouds are bright, so the words are navy over a soft white haze (the "scrim" above), with a white glow instead of a dark shadow. */
:root[data-theme="light"] .intro-text { text-shadow: 0 0 18px rgba(255, 255, 255, 0.85), 0 1px 2px rgba(255, 255, 255, 0.6); }
:root[data-theme="light"] .intro-down { border-color: rgba(0, 57, 102, 0.35); background: rgba(255, 255, 255, 0.55); }
:root[data-theme="light"] .intro-down:hover { background: rgba(255, 255, 255, 0.8); }
.intro-sky { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; opacity: 0; transition: opacity 600ms var(--ease); }
.intro-sky.is-on { opacity: 1; }
/* A soft dark pool behind the words, so they read on bright cloud tops in either theme. */
.intro::before { content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, var(--band), transparent 140px), radial-gradient(60% 46% at 50% 48%, var(--scrim), transparent 100%); }
.intro-text { display: grid; justify-items: center; gap: 22px; max-width: 980px; text-shadow: 0 2px 24px rgba(0, 10, 30, 0.35); }
.intro h2 { font-size: clamp(38px, 6.4vw, 88px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 600; }
.intro-sub { max-width: 720px; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.5; color: var(--intro-sub); text-wrap: pretty; }
.intro-chat { margin-top: 10px; font-size: clamp(20px, 2.2vw, 28px); font-weight: 500; letter-spacing: -0.015em; text-wrap: balance; }
.intro-down { position: absolute; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); translate: -50% 0; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--intro-ink); border: 1px solid rgba(255, 255, 255, 0.45); background: rgba(255, 255, 255, 0.08); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.intro-down svg { width: 20px; height: 20px; }
.intro-down:hover { background: rgba(255, 255, 255, 0.18); }
@media (prefers-reduced-motion: no-preference) { .intro-down svg { animation: intro-bob 2.4s var(--ease) infinite; } }
@keyframes intro-bob { 0%, 100% { translate: 0 -2px; } 50% { translate: 0 3px; } }
.home .intro + .spotlight { padding-top: 64px; }
/* The header sits over the clouds while the intro is on screen, so its type stays white until it turns solid. */
@media (max-width: 760px) { .intro { padding-top: 112px; } .intro-text { gap: 18px; } }
/* The clouds fade into the page below, rather than ending on a line. */
.intro::after { content: ""; position: absolute; z-index: -1; inset: auto 0 0; height: 140px; background: linear-gradient(180deg, transparent, var(--bg)); pointer-events: none; }
/* Intro words split into letters so each can ride the ripples (clouds.js); words never break inside. */
.intro .rw { display: inline-block; white-space: nowrap; }
.intro .rl { display: inline-block; }
.intro-text.is-drifting .rl { will-change: transform; } /* layers only while puffs drift by */

/* ---------- "Why GRAIT" dropdown in the top bar ---------- */
.nav-drop { display: flex; flex: none; }
.nav-dt { display: inline-flex; align-items: center; gap: 4px; padding: 8px 10px 8px 12px; border: 0; border-radius: 999px; background: none; font: inherit; font-size: 14px; color: var(--muted); cursor: pointer; white-space: nowrap; transition: color 200ms, background 200ms; }
.nav-dt svg { width: 14px; height: 14px; transition: transform 240ms var(--ease); }
.nav-dt[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-dt:hover, .nav-dt[aria-expanded="true"], .nav-drop:has(.nav-menu a.is-on) .nav-dt, .nav-dt.is-on { color: var(--ink); background: var(--pill-dark); }
/* A two-part panel: the three pages with an icon and a line each, and a featured card for hiring. */
.nav-menu { position: fixed; inset: auto; margin: 0; z-index: 40; color: var(--ink); display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 8px; width: min(580px, calc(100vw - 16px)); padding: 8px;
  border: 1px solid var(--line); border-radius: 22px; background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: blur(20px) saturate(1.3); -webkit-backdrop-filter: blur(20px) saturate(1.3);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 24px 60px rgba(0, 0, 0, 0.35); transform-origin: 30% 0; }
@media (prefers-reduced-motion: no-preference) { .nav-menu:popover-open, .nav-menu:not([popover]):not([hidden]) { animation: nm-in 220ms var(--ease-expo); } }
@keyframes nm-in { from { opacity: 0; transform: translateY(-6px) scale(0.98); } }
.nav-menu.is-swap { animation: none !important; } /* switching straight from the other menu: no fade, so it's instant */
.nm-list { display: grid; gap: 2px; align-content: start; }
.nav-menu .nm-item { display: flex; gap: 14px; align-items: flex-start; padding: 12px; border-radius: 14px; background: none; color: var(--ink); white-space: normal; }
.nav-menu .nm-item:hover, .nav-menu .nm-item:focus-visible, .nav-menu .nm-item.is-on, .nav-menu .nm-item[aria-current="page"] { background: var(--pill-dark); }
.nm-ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); transition: transform 300ms var(--ease-expo); }
.nm-ic svg { width: 20px; height: 20px; }
.nm-item:hover .nm-ic { transform: translateY(-2px); }
.nm-tx { display: grid; gap: 3px; min-width: 0; }
.nm-t { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.nm-d { font-size: 13px; line-height: 1.4; color: var(--muted); }
.nav-menu .nm-feat { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; min-height: 200px; padding: 18px; border-radius: 16px; overflow: hidden; isolation: isolate; color: #fff; white-space: normal;
  background: radial-gradient(90% 60% at 20% 105%, rgba(255, 255, 255, 0.55), transparent 60%), radial-gradient(70% 45% at 85% 95%, rgba(255, 255, 255, 0.4), transparent 62%), radial-gradient(60% 50% at 70% 15%, rgba(81, 175, 245, 0.55), transparent 70%), linear-gradient(180deg, #06122b, #123a74 60%, #4f86c6); }
.nm-feat::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, rgba(3, 10, 28, 0.55)); }
.nm-feat-k { font-size: 12px; opacity: 0.85; }
.nm-feat-t { font-size: 17px; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; text-wrap: balance; }
.nm-feat-go { margin-top: 4px; font-size: 13px; font-weight: 500; }
.nm-feat:hover .nm-feat-go span { display: inline-block; transform: translateX(3px); transition: transform 200ms; }
@media (max-width: 620px) { .nav-menu { grid-template-columns: 1fr; } .nav-menu .nm-feat { min-height: 120px; } }

/* ---------- Sub-pages (services, Pricing, Mission, Press, Meet the team, Work with us): a plain intro, then the page ---------- */
.intro h1 { font-size: clamp(40px, 6.4vw, 88px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 600; }
.intro-k { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 500; letter-spacing: 0.02em; color: #fff; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.28); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.intro-k i { width: 6px; height: 6px; border-radius: 50%; background: #5ff0c8; box-shadow: 0 0 10px #5ff0c8; }
.intro-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.pill--glass { color: #fff; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.pill--glass:hover { background: rgba(255, 255, 255, 0.2); }
.intro .pill--light { background: #fff; color: #06122b; }
/* Every page but the home one: a plain intro on the page background, no cloud sky (that stays on the home page only) */
/* Page headings start a set gap under the header (about 78px on desktop, 40px on phones), not a fixed distance from the top */
.intro--page { min-height: 0; max-width: var(--max); margin: 0 auto; padding: calc(var(--top-h, 64px) + clamp(40px, 6.2vw, 78px)) var(--pad) 0; place-items: start; text-align: left; color: var(--ink); background: none; overflow: visible; }
.intro--page::before, .intro--page::after { content: none; }
.intro--page .intro-text { justify-items: start; max-width: 860px; text-shadow: none; }
.intro--page h1 { font-size: clamp(38px, 5.2vw, 68px); }
.intro--page .intro-sub { color: var(--muted); }
.intro--page .intro-cta { justify-content: flex-start; }
.intro--page .pill--glass { color: var(--ink); background: var(--pill-dark); border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.intro--page .pill--glass:hover { background: var(--pill-dark-hover); }
/* GRAIT SalesIQ and Pulse: a "Coming soon" tag where a button would be (only GRAIT Maestro takes early access now) */
.pill--soon { gap: 8px; border: 1px dashed var(--dim); color: var(--teal); font-weight: 600; cursor: default; }
.pill--soon i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.page-sec { --page-pad: clamp(72px, 9vw, 128px); max-width: var(--max); margin: 0 auto; padding: var(--page-pad) var(--pad) 0; }
.page-head { display: grid; gap: 14px; max-width: 760px; }
.page-head h2 { font-size: clamp(30px, 3.8vw, 52px); line-height: 1.06; letter-spacing: -0.03em; text-wrap: balance; }
.page-head > p:last-child:not(.kicker) { color: var(--muted); font-size: 18px; text-wrap: pretty; }
/* What you'd work on: real GRAIT screens, numbered */
.areas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.area { display: grid; grid-template-rows: auto 1fr; border-radius: 24px; overflow: hidden; background: var(--card); border: 1px solid var(--line); transition: transform 400ms var(--ease-expo), border-color 300ms; }
.area:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.area-pic { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--card-2); isolation: isolate; }
.area-pic img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform 1.2s var(--ease-expo); }
.area:hover .area-pic img { transform: scale(1.04); }
.area-pic::after { content: ""; position: absolute; inset: auto 0 0; height: 45%; background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--card) 85%, transparent)); }
.area-pic .feature-art { z-index: 0; }
.area-body { display: grid; gap: 10px; align-content: start; padding: 22px 24px 26px; }
.area-n { font: 500 13px var(--mono); color: var(--accent); }
.area-t { font-size: 22px; font-weight: 600; letter-spacing: -0.015em; }
.area-body p:last-child { color: var(--muted); text-wrap: pretty; }
/* Principles, numbered, on sub-pages */
.tenets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 48px; counter-reset: t; }
.tenets > div { position: relative; padding: 28px 24px; border-radius: 22px; background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 9%, var(--card)), var(--card)); border: 1px solid var(--line); }
.tenets > div::before { counter-increment: t; content: "0" counter(t); display: block; margin-bottom: 28px; font: 500 13px var(--mono); color: var(--accent); }
.tenet-t { font-size: 20px; font-weight: 600; letter-spacing: -0.015em; text-wrap: balance; }
.tenets p:not(.tenet-t) { margin-top: 10px; color: var(--muted); }
/* Closing band: a plain card, like the rest of the sub-pages (the cloud sky is only on the home page) */
.cta-band { position: relative; display: grid; justify-items: start; gap: 18px; padding: clamp(36px, 6vw, 72px); border-radius: 32px; color: var(--ink); background: var(--card); border: 1px solid var(--line); }
.cta-band h2 { max-width: 640px; font-size: clamp(30px, 4vw, 54px); line-height: 1.04; letter-spacing: -0.03em; text-wrap: balance; }
.cta-band p:not(.kicker) { max-width: 560px; font-size: 18px; color: var(--muted); text-wrap: pretty; }
.cta-mail { font: 14px var(--mono); color: var(--muted); user-select: all; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 6px; }
/* Team: placeholders until we have the real people */
@media (max-width: 860px) { .areas { grid-template-columns: 1fr; } .tenets { grid-template-columns: 1fr; } .tenets > div::before { margin-bottom: 14px; } }
@media (max-width: 560px) { .cta-band { border-radius: 24px; } }
.who-sub { margin-top: 14px; max-width: 640px; font-size: 18px; color: var(--muted); text-wrap: pretty; }
.nav-menu[popover]:not(:popover-open) { display: none; }
@media (max-width: 760px) { .nav-dt { flex: none; padding: 6px 8px 6px 10px; font-size: 13px; } }

/* Phone menu: an arrow at the right end when more tabs are off screen (common.js). */
/* Phones: the logo already goes home, so drop "Home" and Pricing fits without scrolling (down to about 358px). */
@media (max-width: 480px) { .nav > a:first-child { display: none; } }
.nav-more { display: none; }
@media (max-width: 760px) {
  .nav-more { position: absolute; right: 6px; bottom: 9px; z-index: 2; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: var(--ink); background: var(--pill-dark); opacity: 0; pointer-events: none; transition: opacity 200ms; }
  .nav-more svg { width: 14px; height: 14px; }
  .top.has-more .nav-more { opacity: 1; pointer-events: auto; }
}
/* Ask GRAIT: hidden over the first screen, then a round icon whose label slides out on hover or focus. */
.chat { transition: opacity 300ms, translate 300ms var(--ease-expo); }
.chat { transition: opacity 300ms, translate 300ms var(--ease-expo), visibility 0s; }
.chat.is-away:not(.is-open) { opacity: 0; translate: 0 16px; pointer-events: none; visibility: hidden; transition: opacity 300ms, translate 300ms var(--ease-expo), visibility 0s 300ms; } /* hidden = out of the tab order too */
.chat.is-compact:not(.is-open) .chat-open { padding: 0 15px; }
.chat.is-compact:not(.is-open) .chat-open span { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width 300ms var(--ease-expo); }
.chat.is-compact:not(.is-open) .chat-open:is(:hover, :focus-visible) span { max-width: 120px; }
.chat.is-compact:not(.is-open) .chat-open { gap: 0; }
.chat.is-compact:not(.is-open) .chat-open:is(:hover, :focus-visible) { gap: 8px; padding: 0 18px; }
/* Press: keep "Pre-seed" and the date line whole at tablet widths. */
.press-when { white-space: nowrap; }
/* The XP game is opt-in: a quiet text button beside the demo turns it on (game.js). */
.hud[hidden] { display: none; }
.dev-game { align-self: center; padding: 8px 4px; font: 500 14px var(--font); color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.dev-game:hover { color: var(--ink); }
.dev-game[aria-pressed="true"] { color: var(--accent); }
/* Product screenshots sit where the clips were; they fill the tile the same way (object-position is per image). */
.tile-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-expo); }
.tile:hover .tile-pic img { transform: scale(1.04); }
.card--video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-expo); }
.card--video:hover img { transform: scale(1.04); }
.viewer-shot { display: block; width: 100%; height: auto; max-height: 70vh; object-fit: contain; border-radius: 14px; background: #1c1c1c; }
.viewer-shot[hidden], .viewer-in video[hidden] { display: none; }

/* ---------- Cookie consent (consent.js): the banner and the choices pop-up ---------- */
/* The banner: a bar across the bottom of the page, as on most sites. What cookies are for, with links to the three
   policies (they open in the document viewer), on the left; Set cookie preferences, Reject all and Accept all on the
   right. A thin brand gradient along its top edge. */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; max-height: min(78dvh, 560px); overflow-y: auto; overscroll-behavior: contain;
  padding: 0 max(var(--pad), env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom, 0px) max(var(--pad), env(safe-area-inset-left, 0px));
  border-top: 1px solid var(--line); background: color-mix(in srgb, var(--card) 96%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 -18px 50px rgba(0, 0, 0, 0.35); }
.consent::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--accent), var(--teal)); }
:root[data-theme="light"] .consent { box-shadow: 0 -18px 50px rgba(0, 40, 80, 0.14); }
.consent-in { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px 28px; max-width: var(--max); margin: 0 auto; padding: 22px 0 20px; }
.consent-cookie { flex: none; width: 46px; height: 46px; overflow: visible; align-self: start; }
.consent-dough { fill: color-mix(in srgb, var(--accent) 22%, var(--card-2)); stroke: color-mix(in srgb, var(--accent) 55%, transparent); stroke-width: 1.2; }
.consent-chips circle { fill: var(--accent); transform-box: fill-box; transform-origin: center; }
.consent-chips circle:nth-child(even) { fill: var(--teal); }
.consent-bite { transform: scale(0); transform-box: fill-box; transform-origin: center; }
.consent.is-accepted .consent-bite { transform: scale(1); }
.consent.is-rejected .consent-chips circle { opacity: 0; transform: translateY(12px); }
.consent.is-rejected .consent-dough { fill: var(--card-2); stroke: var(--line); }
.consent-t { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.consent-p { margin-top: 4px; max-width: 92ch; font-size: 14px; line-height: 1.55; color: var(--muted); }
.consent-p a { color: var(--accent); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.consent-p a:hover { color: var(--ink); }
.consent-actions { display: flex; gap: 8px; }
.consent-actions .pill { min-height: 44px; padding: 0 20px; }
.consent-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) {
  .consent { transition: opacity 360ms var(--ease), transform 420ms var(--ease-expo); }
  .consent:not([hidden]) { animation: consent-in 560ms var(--ease-expo); }
  .consent-bite { transition: transform 420ms var(--ease-expo) 120ms; }
  .consent-chips circle { transition: transform 600ms var(--ease-expo), opacity 500ms; }
  .consent-chips circle:nth-child(2n) { transition-delay: 60ms; }
  .consent-chips circle:nth-child(3n) { transition-delay: 120ms; }
  .consent-dough { transition: fill 400ms, stroke 400ms; }
  .consent.is-accepted .consent-cookie { animation: consent-nom 520ms var(--ease-expo); }
}
.consent.is-leaving { opacity: 0; transform: translateY(100%); }
@keyframes consent-in { from { opacity: 0; transform: translateY(100%); } }
@keyframes consent-nom { 40% { transform: rotate(-12deg) scale(1.08); } }
/* Narrower screens: the buttons move under the text. */
@media (max-width: 1100px) {
  .consent-in { grid-template-columns: auto minmax(0, 1fr); }
  .consent-actions { grid-column: 1 / -1; justify-content: flex-end; }
}
/* Phones: one column, the cookie next to the title, buttons in a grid. */
@media (max-width: 640px) {
  .consent-in { grid-template-columns: 34px minmax(0, 1fr); align-items: start; gap: 10px 12px; padding: 18px 0 16px; }
  .consent-cookie { width: 34px; height: 34px; }
  .consent-t { align-self: center; }
  .consent-p { font-size: 12.5px; line-height: 1.5; }
  .consent-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .consent-actions .pill { min-height: 40px; }
  .consent-actions .pill { padding: 0 12px; }
  .consent-set { grid-column: 1 / -1; order: 3; }
  .consent-text { display: contents; }
  .consent-text .consent-p { grid-column: 1 / -1; margin-top: 0; }
}
/* Short screens (phones on their side, small laptop windows): smaller text, so the page stays usable. */
@media (max-height: 500px) {
  .consent-t, .consent-cookie { display: none; }
  .consent-in { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .consent-text { display: block; }
  .consent-text .consent-p { margin-top: 0; }
  .consent-actions { grid-column: auto; display: flex; flex-direction: column; }
  .consent-set { order: 0; }
}
@media (max-height: 600px) {
  .consent-in { padding: 14px 0 12px; gap: 10px 20px; }
  .consent-cookie { width: 34px; height: 34px; }
  .consent-t { font-size: 15px; }
  .consent-p { font-size: 12.5px; line-height: 1.45; }
  .consent-actions .pill { min-height: 38px; }
}

/* The choices pop-up ("Cookie settings"): the same dialog look as the registration form. */
:root:has(.ck[open]) { overflow: hidden; }
.ck { width: min(1000px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); padding: 0; border: 1px solid var(--line); border-radius: 24px; background: var(--card); color: var(--ink); overflow: hidden; overflow: clip; box-shadow: 0 40px 120px rgba(0, 0, 0, 0.5); }
.ck::backdrop { background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
:root[data-theme="light"] .ck::backdrop { background: rgba(0, 30, 60, 0.42); }
:root[data-theme="light"] .ck { box-shadow: 0 40px 120px rgba(0, 40, 80, 0.22); }
@media (prefers-reduced-motion: no-preference) { .ck[open] { animation: viewer-in 480ms var(--ease-expo); } }
.ck.is-settings { width: min(460px, calc(100vw - 32px)); }
.ck-in { display: flex; flex-direction: column; height: min(780px, calc(100dvh - 34px)); }
/* "Cookie settings" is as tall as its content, but never taller than the screen: the choices then scroll inside it. */
.ck.is-settings .ck-in { height: auto; max-height: calc(100dvh - 34px); }
.ck-head { position: relative; z-index: 2; display: flex; align-items: center; gap: 18px; padding: 20px 76px 18px 24px; border-bottom: 1px solid var(--line);
  background: radial-gradient(60% 160% at 0% 0%, var(--glow), transparent 70%), var(--card-2); }
.ck-logo { flex: none; width: 84px; height: auto; }
.ck-head-t { min-width: 0; padding-left: 18px; border-left: 1px solid var(--line); }
.ck-head h2 { margin-top: 4px; font-size: clamp(22px, 3vw, 28px); line-height: 1.1; letter-spacing: -0.02em; }
/* Shares the registration form's close button, but not its phone rule (sticky, negative margins): pinned in the header. */
.ck-close { position: absolute; top: 50%; right: 20px; margin: -20px 0 0; order: 0; align-self: auto; }
.ck-close:hover { transform: rotate(90deg); }
.ck-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 340px minmax(0, 1fr); }
.ck.is-settings .ck-body { grid-template-columns: minmax(0, 1fr); }
.ck-side { display: grid; align-content: start; gap: 24px; padding: 22px; overflow: hidden auto; overscroll-behavior: contain; scrollbar-width: thin; border-right: 1px solid var(--line); }
.ck.is-settings .ck-side { border-right: 0; }
.ck-side-t { font: 500 12px var(--mono); color: var(--accent); }
.ck-choices { display: grid; gap: 12px; }
/* Two groups: Essential (always on) and Optional (a switch per category). */
.ck-group { display: grid; border-radius: 16px; border: 1px solid var(--line); background: var(--card-2); overflow: hidden; }
.ck-group--opt { transition: border-color 200ms; }
.ck-group--opt:has(.ck-switch:checked) { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.ck-group-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.ck-group-t { font-size: 15px; font-weight: 600; color: var(--ink); }
.ck-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.ck-row:last-child { border-bottom: 0; }
.ck-row-t { min-width: 0; }
.ck-cat-t { font-size: 14px; font-weight: 500; line-height: 1.35; color: var(--ink); }
.ck-cat-t label { cursor: pointer; }
.ck-cat-d { margin-top: 3px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.ck-ref { margin-left: 4px; padding: 1px 6px; border-radius: 6px; font: 500 11px var(--mono); vertical-align: 1px; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); white-space: nowrap; }
.ck-ref { border: 0; cursor: pointer; }
.ck-ref:hover { background: color-mix(in srgb, var(--accent) 22%, transparent); }
.ck-tag { flex: none; padding: 3px 10px; border-radius: 999px; font: 500 12px var(--mono); white-space: nowrap; color: var(--teal); background: color-mix(in srgb, var(--teal) 14%, transparent); }
.ck-count.is-off { color: var(--dim); background: var(--pill-dark); }
.ck-switch { appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 46px; height: 26px; margin: 2px 0 0; border-radius: 999px; border: 1px solid var(--line); background: var(--pill-dark-hover); cursor: pointer; transition: background 200ms, border-color 200ms; }
.ck-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--muted); transition: transform 280ms var(--ease-expo), background 200ms; }
.ck-switch:checked { background: var(--accent); border-color: var(--accent); }
.ck-switch:checked::after { transform: translateX(20px); background: #fff; }
.ck-switch:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.ck-record { font: 12px/1.5 var(--mono); color: var(--dim); }
.ck-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ck-actions .pill { min-height: 40px; }
.ck-actions [type="submit"] { grid-column: 1 / -1; grid-row: 2; }
.ck-read { justify-self: start; font-size: 14px; color: var(--accent); }
@media (max-width: 760px) {
  .ck { overflow-y: auto; overscroll-behavior: contain; }
  /* The whole pop-up scrolls on phones, so no height cap inside it: the sticky header (and close button) stays pinned. */
  .ck-in, .ck.is-settings .ck-in { height: auto; max-height: none; }
  .ck-head { position: sticky; top: 0; gap: 12px; padding: 12px 60px 12px 16px; }
  .ck-logo { width: 56px; }
  .ck-head-t { padding-left: 12px; }
  .ck-head h2 { font-size: 21px; }
  .ck-close { right: 12px; }
  .ck-body { display: block; }
  .ck-side { padding: 18px 16px; border-right: 0; border-bottom: 1px solid var(--line); overflow: visible; }
  .ck.is-settings .ck-side { border-bottom: 0; }
}
/* Very narrow phones: a smaller header so the title stays on one line. */
@media (max-width: 380px) {
  .ck-head { gap: 10px; padding-right: 56px; }
  .ck-logo { width: 46px; }
  .ck-head-t { padding-left: 10px; }
  .ck-head h2 { font-size: 18px; }
}
/* Large monitors: a roomier pop-up instead of a small box in the middle of the screen. */
@media (min-width: 1800px) and (min-height: 1000px) {
  .ck { width: min(1200px, calc(100vw - 32px)); }
  .ck.is-settings { width: min(520px, calc(100vw - 32px)); }
  .ck-in { height: min(940px, calc(100dvh - 34px)); }
  .ck-body { grid-template-columns: 390px minmax(0, 1fr); }
  .policy p, .policy li { font-size: 16px; }
}

/* The policy text: the same in the pop-up and on cookie-policy.html. */
.policy { display: grid; gap: 18px; }
.policy section { display: grid; gap: 10px; padding-top: 20px; border-top: 1px solid var(--line); scroll-margin-top: 16px; }
.policy section:first-child { padding-top: 0; border-top: 0; }
.policy h2, .legal .policy h2 { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 20px; letter-spacing: -0.01em; }
.policy-n { display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 6px; border-radius: 10px; font: 500 13px var(--mono); color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.policy h3 { margin-top: 6px; font-size: 16px; font-weight: 600; color: var(--ink); }
.policy p, .policy li { font-size: 15px; line-height: 1.6; color: var(--muted); }
.policy ul { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.policy li { position: relative; padding-left: 20px; }
.policy li::before { content: ""; position: absolute; left: 4px; top: 0.68em; width: 6px; height: 6px; border-radius: 2px; background: var(--teal); }
.policy a:not(.pill), .policy .link-btn { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.link-btn { padding: 0; border: 0; background: none; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.link-btn:hover { color: var(--ink); }
.legal .link-btn { color: var(--accent); }
/* The "as of" date keeps its space while stats.json loads, so nothing below it moves when it appears.
   Without JavaScript it never arrives, so it takes no space at all. */
.js .asof.is-pending { visibility: hidden; }
html:not(.js) .asof { display: none; }

/* Section links land with the section's content just under the header, not after its top padding (--sec-pad, which
   the padding rules use too, so the two can't drift apart). */
.products, .beliefs, .pc, .press, .dev, .compare, .start { scroll-margin-top: calc(24px - var(--sec-pad)); }
/* Private cloud's text comes first in the page (and on phones); only the two-column layout puts the drawing on the left. */
@media (min-width: 1001px) { .pc-pic { order: -1; } }

/* numbered lists in the policies keep their own numbers as text */
.policy .policy-ol li { padding-left: 0; }
.policy .policy-ol li::before { display: none; }
.policy-oln { display: inline-block; min-width: 1.9em; font: 500 13px var(--mono); color: var(--accent); }

/* ---------- Registration: the privacy field under the form (register.js) ---------- */
/* A card naming the two documents with "Read and agree" (opens them in the document viewer), and the tick box,
   which is required and can be ticked straight away (reading first is optional). */
.reg-consent { margin-top: 6px; }
.reg-consent-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--card-2); transition: border-color 200ms; }
.reg-consent.is-bad .reg-consent-card { border-color: var(--bad); }
.reg-consent.is-agreed .reg-consent-card { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.reg-consent-ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.reg-consent-ic svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.reg-consent.is-agreed .reg-consent-ic { background: color-mix(in srgb, var(--teal) 16%, transparent); color: var(--teal); }
.reg-consent-t { flex: 1; min-width: 0; }
.reg-consent-name { font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--ink); }
.reg-consent-state { margin-top: 2px; font-size: 12.5px; color: var(--muted); }
.reg-consent.is-agreed .reg-consent-state { color: var(--teal); }
.reg-consent-open { flex: none; min-height: 40px; padding: 0 16px; }
.reg-agree { position: relative; display: flex; align-items: flex-start; gap: 12px; margin-top: 10px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); cursor: pointer; transition: border-color 200ms, background 200ms, opacity 200ms; }
.reg-agree input { position: absolute; top: 12px; left: 14px; width: 24px; height: 24px; margin: 0; opacity: 0; }
.reg-agree-box { position: relative; flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; border: 1.5px solid var(--accent); background: var(--bg); color: var(--dim); transition: background 200ms, border-color 200ms, color 200ms; }
.reg-agree-box svg { grid-area: 1 / 1; width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: opacity 220ms, transform 320ms var(--ease-expo); }
.reg-agree-tick { opacity: 0; transform: scale(0.4); stroke-width: 2.8; }
.reg-agree-t { font-size: 14px; line-height: 1.5; color: var(--ink); }
.reg-agree input:checked + .reg-agree-box { background: var(--accent); border-color: var(--accent); color: #fff; }
.reg-agree input:checked + .reg-agree-box .reg-agree-tick { opacity: 1; transform: none; }
.reg-agree input:focus-visible + .reg-agree-box { outline: 2px solid var(--accent); outline-offset: 3px; }
.reg-consent.is-agreed .reg-agree { border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.reg-consent .reg-err { margin-top: 8px; }
.reg-line--consent { grid-template-columns: 14px auto minmax(0, 1fr); margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--line); }
@media (max-width: 560px) {
  .reg-consent-card { flex-wrap: wrap; }
  .reg-consent-open { width: 100%; }
}

/* ---------- The document viewer (docs.js): the Cookie Policy, Privacy Policy and Privacy Notice in a pop-up ---------- */
/* The same dialog look as the rest of the site: the brand header with tabs for the three documents, a contents list
   on the left and the text on the right. In "read and agree" (the registration form) a footer adds a reading meter,
   Close and I agree. */
:root:has(.dv[open]) { overflow: hidden; }
.dv { width: min(1040px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); padding: 0; border: 1px solid var(--line); border-radius: 24px; background: var(--card); color: var(--ink); overflow: hidden; overflow: clip; box-shadow: 0 40px 120px rgba(0, 0, 0, 0.5); }
.dv::backdrop { background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
:root[data-theme="light"] .dv::backdrop { background: rgba(0, 30, 60, 0.42); }
:root[data-theme="light"] .dv { box-shadow: 0 40px 120px rgba(0, 40, 80, 0.22); }
@media (prefers-reduced-motion: no-preference) { .dv[open] { animation: viewer-in 480ms var(--ease-expo); } }
.dv-in { display: flex; flex-direction: column; height: min(820px, calc(100dvh - 34px)); }
.dv-head { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "logo title" "tabs tabs"; align-items: center; gap: 14px 18px; padding: 20px 76px 0 24px; border-bottom: 1px solid var(--line);
  background: radial-gradient(60% 160% at 0% 0%, var(--glow), transparent 70%), var(--card-2); }
.dv-logo { grid-area: logo; width: 84px; height: auto; }
.dv-head-t { grid-area: title; min-width: 0; padding-left: 18px; border-left: 1px solid var(--line); }
.dv-k { font: 12px var(--mono); color: var(--dim); }
.dv-head h2 { margin-top: 2px; font-size: clamp(20px, 2.6vw, 26px); line-height: 1.15; letter-spacing: -0.02em; }
/* Shares the registration form's close button, but not its phone rule (sticky, negative margins): pinned in the header. */
.dv-close { position: absolute; top: 22px; right: 20px; margin: 0; order: 0; align-self: auto; }
.dv-close:hover { transform: rotate(90deg); }
.dv-tabs { grid-area: tabs; display: flex; gap: 4px; margin: 0 -8px -1px; overflow-x: auto; scrollbar-width: none; }
.dv-tabs::-webkit-scrollbar { display: none; }
.dv-tab { flex: none; padding: 10px 10px 12px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted); font: 500 14px var(--font); white-space: nowrap; cursor: pointer; transition: color 200ms, border-color 200ms; }
.dv-tab:hover { color: var(--ink); }
.dv-tab[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.dv-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 8px; }
.dv.is-read .dv-tabs { display: none; }
.dv.is-read .dv-head { padding-bottom: 18px; }
.dv-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 260px minmax(0, 1fr); }
.dv-toc { min-height: 0; overflow: hidden auto; padding: 22px 14px 22px 18px; border-right: 1px solid var(--line); overscroll-behavior: contain; scrollbar-width: thin; }
.dv-toc-t { margin: 0 0 8px 8px; font: 500 12px var(--mono); color: var(--accent); }
.dv-toc ol + .dv-toc-t { margin-top: 20px; }
.dv-toc ol { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.dv-toc a { display: grid; grid-template-columns: 28px minmax(0, 1fr); padding: 5px 8px; border-radius: 8px; font-size: 13.5px; line-height: 1.4; color: var(--muted); transition: background 200ms, color 200ms; }
.dv-toc a span { font: 12px/1.6 var(--mono); color: var(--dim); }
.dv-toc a:hover { background: var(--pill-dark); color: var(--ink); }
.dv-toc a.is-on { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--ink); }
.dv-toc a.is-on span { color: var(--accent); }
.dv-doc { min-height: 0; overflow: hidden auto; padding: 28px 36px 20px; overscroll-behavior: contain; scrollbar-width: thin; outline: none; }
.dv-doc:focus-visible { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--accent) 45%, transparent); }
.dv-part + .dv-part { margin-top: 34px; padding-top: 34px; border-top: 2px dashed var(--line); }
.dv .dv-doc-title { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; color: var(--ink); }
.dv .policy { gap: 14px; }
.dv .policy section { scroll-margin-top: 12px; }
.dv .policy h4 { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 18px; letter-spacing: -0.01em; color: var(--ink); }
.dv .policy h5 { margin: 6px 0 0; font-size: 15.5px; font-weight: 600; color: var(--ink); }
.dv-end { display: flex; align-items: center; gap: 12px; margin: 34px 0 10px; font: 12px var(--mono); color: var(--dim); white-space: nowrap; }
.dv-end::before, .dv-end::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.dv.is-done .dv-end { color: var(--teal); }
.dv-loading { color: var(--muted); }
.dv-foot { border-top: 1px solid var(--line); background: var(--card-2); }
.dv-meter { height: 3px; background: var(--line); }
.dv-meter span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--teal)); transform: scaleX(0); transform-origin: left; transition: transform 160ms linear; }
.dv-foot-in { position: relative; display: flex; align-items: center; gap: 16px; padding: 14px 24px; }
.dv-state { flex: 1; min-width: 0; }
.dv-pct { font: 500 13px var(--mono); color: var(--accent); font-variant-numeric: tabular-nums; }
.dv.is-done .dv-pct { color: var(--teal); }
.dv.is-done .dv-pct::before { content: "✓ "; }
.dv-hint { margin-top: 2px; font-size: 13px; color: var(--muted); }
.dv-actions { display: flex; gap: 8px; }
.dv-actions .pill { min-height: 44px; padding: 0 20px; }
[data-dv-agree]:disabled { opacity: 0.45; cursor: not-allowed; }
/* "Go to the end": hidden like a skip link until it has keyboard focus. */
.dv-skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.dv-skip:focus { position: absolute; right: 24px; bottom: calc(100% + 12px); z-index: 2; display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px; border-radius: 999px;
  background: var(--accent); color: #fff; font: 600 13px var(--font); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3); outline: 2px solid var(--ink); outline-offset: 2px; }
/* Tablets: no contents list. */
@media (max-width: 900px) {
  .dv-body { grid-template-columns: minmax(0, 1fr); }
  .dv-toc { display: none; }
}
/* Phones: nearly full screen, a smaller header, and the footer's buttons share a row. */
@media (max-width: 640px) {
  .dv { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); border-radius: 18px; }
  .dv-in { height: calc(100dvh - 18px); }
  .dv-head { gap: 10px 12px; padding: 14px 60px 0 16px; }
  .dv.is-read .dv-head { padding-bottom: 14px; }
  .dv-logo { width: 54px; }
  .dv-head-t { padding-left: 12px; }
  .dv-head h2 { font-size: 19px; }
  .dv-close { top: 12px; right: 12px; }
  .dv-tab { padding: 8px 8px 10px; font-size: 13px; }
  .dv-doc { padding: 20px 18px 16px; }
  .dv .dv-doc-title { font-size: 19px; }
  .dv .policy h4 { font-size: 16.5px; }
  .dv-foot-in { flex-wrap: wrap; gap: 10px; padding: 12px 16px; }
  .dv-state { flex-basis: 100%; }
  .dv-actions { flex: 1; display: grid; grid-template-columns: 1fr 1fr; }
}
/* Short screens (phones on their side): a slimmer header so the text gets the room. */
@media (max-height: 500px) {
  .dv-in { height: calc(100dvh - 18px); }
  .dv { max-height: calc(100dvh - 16px); }
  .dv-k { display: none; }
  .dv-logo { width: 48px; }
  .dv-head { padding-top: 10px; row-gap: 6px; }
  .dv.is-read .dv-head { padding-bottom: 10px; }
  .dv-close { top: 8px; }
  .dv-head h2 { font-size: 17px; }
  .dv-foot-in { padding-top: 8px; padding-bottom: 8px; }
  .dv-hint { display: none; }
  .dv-actions .pill { min-height: 38px; }
}
/* Large monitors: roomier. */
@media (min-width: 1800px) and (min-height: 1000px) {
  .dv { width: min(1200px, calc(100vw - 32px)); }
  .dv-in { height: min(940px, calc(100dvh - 34px)); }
  .dv-body { grid-template-columns: 300px minmax(0, 1fr); }
  .dv-doc { padding: 34px 48px 24px; }
}

/* The shared "didn't load" message (consent-head.js), in the document viewer */
.doc-fallback { font-size: 14px; color: var(--muted); }
.doc-fallback a, .doc-fallback .link-btn { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* The links row under the policy and press pages, as in the site footer */
.legal-links { margin-top: 8px; font-size: 13px; color: var(--dim); }
.legal-links a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.legal-links a:hover, .legal-links .link-btn:hover { color: var(--ink); }
.legal-links .link-btn { color: var(--muted); }
.legal-links .sep { margin: 0 8px; opacity: 0.6; }
/* ---------- Meet the team: three tall founder cards in a row; a click moves that card to the left and opens the profile beside it ---------- */
.founders { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.founder { display: contents; }
.founder-id { grid-row: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: clamp(24px, 3vw, 36px) 16px clamp(18px, 2.2vw, 24px); border-radius: 28px; background: var(--card); border: 1px solid var(--line); color: var(--ink); font: inherit; text-align: center; cursor: pointer; scroll-margin-top: 24px; transition: border-color 200ms, background 200ms; }
.founder-id:hover { border-color: color-mix(in srgb, var(--dim) 60%, transparent); }
.founder-id[aria-expanded="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--card)); }
.founder-id:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.founder-av { width: clamp(88px, 9vw, 120px); height: clamp(88px, 9vw, 120px); margin-bottom: 14px; padding: 3px; border-radius: 50%; object-fit: cover; background: conic-gradient(from 200deg, var(--accent), var(--teal), #8fd3ff, var(--accent)); }
.founder-name { font-size: clamp(20px, 2vw, 24px); font-weight: 600; line-height: 1.15; letter-spacing: -0.015em; }
.founder-role { margin-bottom: 16px; font: 500 12px var(--mono); color: var(--accent); }
.founder-chev { display: grid; place-items: center; width: 36px; height: 36px; margin-top: auto; border-radius: 50%; background: var(--pill-dark); color: var(--muted); transition: color 200ms, background 200ms; }
.founder-chev svg { width: 18px; height: 18px; transition: transform 250ms var(--ease); }
.founder-id:hover .founder-chev { color: var(--ink); background: var(--pill-dark-hover); }
.js .founder-chev svg { transform: rotate(-90deg); }
.js .founder-id[aria-expanded="true"] .founder-chev svg { transform: rotate(90deg); }
.founder-body { grid-column: 1 / -1; display: grid; align-content: start; gap: 22px; min-width: 0; padding: clamp(24px, 3.2vw, 44px); border-radius: 28px; background: var(--card); border: 1px solid var(--line); }
.founder-text { display: grid; align-content: start; gap: 22px; min-width: 0; }
.js .founder-body:not(.is-open) { display: none; }   /* without JavaScript every profile simply shows under the cards */
/* One founder open: their card on the left, the profile on the right, the other two cards out of the way */
.founders.has-open { grid-template-columns: minmax(240px, 320px) minmax(0, 1fr); align-items: start; }
.founders.has-open .founder-id:not([aria-expanded="true"]) { display: none; }
.founders.has-open .founder-id[aria-expanded="true"] { grid-column: 1; }
/* The open profile fills the right column */
.founders.has-open .founder-body.is-open { display: contents; }
.founders.has-open .founder-id[aria-expanded="true"] { grid-row: 1; }
.founders.has-open .founder-text { grid-column: 2; grid-row: 1; display: grid; align-content: start; gap: 22px; min-width: 0; padding: clamp(24px, 3.2vw, 44px); border-radius: 28px; background: var(--card); border: 1px solid var(--line); }
.founders.has-open .founder-text > * { max-width: none; }
/* Photo and profile read as one card: no gap, one shared outline and background */
.founders.has-open { gap: 0; align-items: stretch; }
.founders.has-open .founder-id[aria-expanded="true"] { justify-content: flex-start; border-color: var(--line); border-right: 0; border-radius: 28px 0 0 28px; background: var(--card); }
.founders.has-open .founder-id[aria-expanded="true"] .founder-chev { margin-top: 0; }
.founders.has-open .founder-text { border-left: 0; border-radius: 0 28px 28px 0; }
/* The open card closes with the × in its top-right corner (or a click outside it, or Esc); the arrow gives way to it */
.founders { position: relative; }
.founder-close { display: none; }
.founders.has-open .founder-close { position: absolute; top: 14px; right: 14px; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: var(--pill-dark); color: var(--muted); cursor: pointer; transition: color 200ms, background 200ms; }
.founder-close:hover { color: var(--ink); background: var(--pill-dark-hover); }
.founder-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.founder-close svg { width: 18px; height: 18px; }
.founders.has-open .founder-chev { display: none; }
.founders.has-open .founder-text { padding-right: clamp(64px, 6vw, 80px); }
/* The animation between the two: the cards and photos glide to their new places and the profile slides in (common.js runs it as a view transition) */
.founder:nth-child(1) .founder-id { view-transition-name: founder-card-1; }
.founder:nth-child(2) .founder-id { view-transition-name: founder-card-2; }
.founder:nth-child(3) .founder-id { view-transition-name: founder-card-3; }
.founder:nth-child(1) .founder-av { view-transition-name: founder-photo-1; }
.founder:nth-child(2) .founder-av { view-transition-name: founder-photo-2; }
.founder:nth-child(3) .founder-av { view-transition-name: founder-photo-3; }
.founder-body.is-open .founder-text { view-transition-name: founder-profile; }
::view-transition-group(*) { animation-duration: 450ms; animation-timing-function: var(--ease); }
::view-transition-new(founder-profile) { animation: founder-in 450ms var(--ease) both; }
::view-transition-old(founder-profile) { animation: founder-out 200ms ease both; }
@keyframes founder-in { from { opacity: 0; transform: translateX(32px); } }
@keyframes founder-out { to { opacity: 0; transform: translateX(16px); } }
@media (max-width: 760px) {
  .founders.has-open { grid-template-columns: minmax(0, 1fr); }
  .founders.has-open .founder-text { grid-column: 1; grid-row: 2; }
  .founders.has-open .founder-id { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 14px; row-gap: 2px; align-items: center; justify-items: start; padding: 14px 16px; text-align: left; }
  .founders.has-open .founder-av { grid-row: span 2; width: 56px; height: 56px; margin: 0; }
  .founders.has-open .founder-name { align-self: end; }
  .founders.has-open .founder-role { grid-column: 2; align-self: start; margin: 0; }
  .founders.has-open .founder-chev { grid-column: 3; grid-row: 1 / span 2; margin: 0; }
  .founders.has-open .founder-id[aria-expanded="true"] { border-right: 1px solid var(--line); border-bottom: 0; border-radius: 20px 20px 0 0; }
  .founders.has-open .founder-text { border-left: 1px solid var(--line); border-top: 0; border-radius: 0 0 20px 20px; }
  .founders.has-open .founder-text { padding-right: clamp(24px, 3.2vw, 44px); }
  .founders.has-open .founder-id[aria-expanded="true"] { padding-right: 64px; }
  .founders.has-open .founder-close { top: 50px; transform: translateY(-50%); }
  @keyframes founder-in { from { opacity: 0; transform: translateY(24px); } }
}
.founder-line { max-width: 62ch; font-size: clamp(17px, 1.5vw, 19px); line-height: 1.5; text-wrap: pretty; }
.founder-more { max-width: 62ch; margin-top: -8px; color: var(--muted); text-wrap: pretty; }
.founder-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0; }
.founder-stats .fs { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; padding: 16px 18px; border-radius: 16px; background: var(--card-2); border: 1px solid var(--line); }
.founder-stats dd { margin: 0; font-size: clamp(26px, 2.6vw, 34px); font-weight: 600; line-height: 1; letter-spacing: -0.03em; }
.founder-stats dt { font-size: 14px; line-height: 1.35; color: var(--muted); text-wrap: pretty; }
.founder-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 32px; margin: 0; padding-top: 20px; border-top: 1px solid var(--line); }
.founder-meta dt { font: 500 12px var(--mono); color: var(--muted); }
.founder-meta dd { margin: 6px 0 0; text-wrap: pretty; }
@media (max-width: 560px) { .founders { gap: 8px; } .founder-id { padding: 16px 6px 12px; border-radius: 20px; } .founder-av { width: 60px; height: 60px; margin-bottom: 8px; } .founder-name { font-size: 15px; } .founder-role { margin-bottom: 10px; font-size: 10px; } .founder-chev { width: 28px; height: 28px; } .founder-body { border-radius: 20px; } }
@media (prefers-reduced-motion: reduce) { .founder-chev svg { transition: none; } ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } }
@media (max-width: 560px) { .founder-meta { grid-template-columns: minmax(0, 1fr); } .founder-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .founder-stats .fs { padding: 14px; } }
/* The Why GRAIT menu card: the founders' faces above "Meet the team". */
.nm-feat--team { justify-content: space-between; }
.nm-faces { display: flex; }
.nm-faces img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255, 255, 255, 0.9); background: #fff; }
.nm-faces img + img { margin-left: -10px; }
.nm-feat--team .nm-feat-t { margin-top: auto; }
/* ---------- Meet the team: the key team ---------- */
.team-wrap .page-sec:first-of-type { padding-top: clamp(40px, 5vw, 64px); --page-pad: clamp(40px, 5vw, 64px); }
.key-team { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; padding: clamp(28px, 4vw, 56px); border-radius: 28px; background: var(--card); border: 1px solid var(--line); }
.key-head { display: grid; gap: 14px; }
.key-head h2 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.06; letter-spacing: -0.03em; text-wrap: balance; }
.key-head > p:not(.kicker) { max-width: 52ch; font-size: 18px; color: var(--muted); text-wrap: pretty; }
.key-side { display: grid; gap: 14px; align-self: center; }
.key-k { font: 500 12px var(--mono); color: var(--muted); }
.key-areas { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.key-areas li { padding: 9px 14px; border-radius: 999px; background: var(--card-2); border: 1px solid var(--line); font-weight: 500; }
@media (max-width: 860px) { .key-team { grid-template-columns: minmax(0, 1fr); } }
/* The founders sit in one big box like the key team's; the tiles and the open profile inside it use the lighter card colour */
.founding-team { padding: clamp(28px, 4vw, 56px); border-radius: 28px; background: var(--card); border: 1px solid var(--line); }
.founding-team .founders { margin-top: clamp(28px, 3vw, 40px); }
.founding-team .key-head h2 { font-size: clamp(28px, 3.1vw, 42px); text-wrap: wrap; }   /* the heading and the line under it run the full width of the box */
.founding-team .key-head > p:not(.kicker) { max-width: none; }
.founding-team .founder-id, .founding-team .founders.has-open .founder-id[aria-expanded="true"], .founding-team .founders.has-open .founder-text, .founding-team .founder-body { background: var(--card-2); }
.founding-team .founder-id[aria-expanded="true"] { background: color-mix(in srgb, var(--accent) 6%, var(--card-2)); }
.founding-team .founder-stats .fs, .founding-team .founder-chev, .founding-team .founder-close { background: var(--card); }
.founding-team .founder-stats:has(> .fs:nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }   /* four numbers sit 2 × 2 rather than 3 + 1 */
@media (max-width: 560px) { .founding-team { padding: 20px 14px; border-radius: 22px; } }

/* GRAITOne head: the agents as tags */
.line-head .soon + .pill { margin-top: 24px; }
.soon { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.soon li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: 14px; font-weight: 600; }
.soon small { font-size: 12px; font-weight: 500; color: var(--muted); }
.soon li.is-soon { border-style: dashed; border-color: var(--dim); background: none; }
.soon em, .nm-soon em { font-style: normal; font-size: 11px; font-weight: 600; color: var(--teal); }
/* Coming-soon agents inside the Products menu */
.nm-soon { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; font-size: 12px; }
.nm-soon > span { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); }
.nm-soon > span.is-soon { border-style: dashed; border-color: var(--dim); }
.nm-soon em { font-size: 10px; }

/* GRAITOne agents as links: home chips, the Products menu and the agent pages */
.soon li { padding: 0; }
.soon li a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: inherit; color: inherit; transition: background 200ms; }
.soon li a:hover { background: var(--pill-dark); }
.nm-subs { display: flex; flex-wrap: wrap; gap: 6px; margin: -6px 0 4px 66px; }
.nav .nm-sub { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); font-size: 12.5px; font-weight: 500; color: var(--ink); transition: background 200ms, border-color 200ms; }
/* All three pills share one outline so they read the same size; the live one is marked by its gradient name */
.nav .nm-sub { border-color: color-mix(in srgb, var(--dim) 60%, transparent); }
.nm-grad { background: linear-gradient(90deg, var(--accent), var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 600; }
.nm-sub em { font-style: normal; font-size: 10px; font-weight: 600; color: var(--teal); }
.nav .nm-sub:hover, .nav .nm-sub:focus-visible, .nav .nm-sub[aria-current="page"] { background: var(--pill-dark); border-color: var(--dim); }
.family { margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.fam { position: relative; display: grid; gap: 6px; padding: 26px 24px; border-radius: 20px; border: 1px solid var(--line); background: var(--card); color: var(--ink); transition: border-color 200ms, transform 300ms var(--ease-expo); }
.fam:hover { border-color: var(--dim); transform: translateY(-2px); }
.fam.is-soon { border-style: dashed; border-color: var(--dim); background: none; }
.fam[aria-current="page"] { border-style: solid; border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.fam-k { font: 500 12px var(--mono); color: var(--accent); }
.fam-t { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.fam-s { font-size: 14px; color: var(--muted); }
.fam.is-soon .fam-s { color: var(--teal); font-weight: 600; }
.fam-go { position: absolute; top: 22px; right: 22px; color: var(--dim); font-size: 20px; }
@media (max-width: 800px) { .family { grid-template-columns: 1fr; } .nm-subs { margin-left: 12px; } }
@media (max-width: 1000px) { .foot-top > div:first-child { grid-column: 1 / -1; } }
@media (max-width: 600px) { .foot-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; } }
@media (max-width: 1000px) { .credits { flex-direction: column; align-items: flex-start; } .credits-links { gap: 6px 18px; } }

/* Mission and motto page: one large statement per section */
.statement { display: grid; gap: 18px; max-width: 900px; }
.statement h2 { font-size: clamp(40px, 6vw, 84px); line-height: 1.02; letter-spacing: -0.035em; text-wrap: balance; }
.statement p:not(.kicker) { max-width: 680px; font-size: clamp(17px, 1.4vw, 20px); color: var(--muted); text-wrap: pretty; }
.statement--motto { margin-left: auto; text-align: right; justify-items: end; }
.statement--motto h2 { background: linear-gradient(90deg, var(--accent), var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 700px) { .statement--motto { margin-left: 0; text-align: left; justify-items: start; } }
.statement p.statement-key { color: var(--ink); font-weight: 500; }   /* the motto's three-part line */

/* Product screenshots and videos: softly blurred (most of the detail still shows) until the pointer is on one, then that one comes clear.
   clip-path keeps each blur inside its own frame. On touch screens a press shows it. The one-minute film, and anything opened in the viewer, is never blurred. */
.tile-pic img, .tile-pic video, .card--video > img, .card--video > video {
  filter: blur(2.5px); clip-path: inset(0); transition: filter 350ms ease; }
.tile:hover .tile-pic > *, .tile:focus-visible .tile-pic > *, .tile:active .tile-pic > *,
.card--video:hover > img, .card--video:hover > video, .card--video:focus-within > img, .card--video:focus-within > video, .card--video:active > img, .card--video:active > video { filter: none; }
@media (prefers-reduced-motion: reduce) { .tile-pic img, .tile-pic video, .card--video > img, .card--video > video { transition: none; } }
/* Founder highlights from their one-pagers */
.founder-hl { max-width: 72ch; }
.founder-hl-t { font: 500 12px var(--mono); color: var(--muted); }
.founder-hl ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.founder-hl li { position: relative; padding-left: 20px; color: var(--muted); text-wrap: pretty; }
.founder-hl li::before { content: ""; position: absolute; left: 2px; top: 0.6em; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
/* Just above the phone layout the header is tight with five nav items: use the short button label. */
@media (min-width: 761px) and (max-width: 940px) { .top .pill-long { display: none; } .top .pill-short { display: inline; } }

/* Live tag next to GRAIT Maestro, the agent that's out now. Scoped to em: home.js also puts is-live on the .merge section. */
em.is-live { display: inline-flex; align-items: center; gap: 5px; font-style: normal; font-size: 10px; font-weight: 600; color: var(--live); }
em.is-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 3px color-mix(in srgb, var(--live) 22%, transparent); }
.soon em.is-live { font-size: 11px; }
.fam em.is-live { font-size: 12px; }
/* A founder profile written as prose, not as a resume (Aanchal's, in her own words) */
.founder-bio { max-width: 68ch; font-size: clamp(17px, 1.3vw, 19px); line-height: 1.65; color: var(--ink); text-wrap: pretty; }
/* Profile text is justified (both edges straight), with hyphenation so narrow columns don't open wide gaps */
.founder-line, .founder-more, .founder-bio, .founder-hl li { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
@media (max-width: 560px) { .founder-line, .founder-more, .founder-bio, .founder-hl li { text-align: left; hyphens: manual; -webkit-hyphens: manual; } }   /* phone columns are too narrow to justify without wide gaps */
.founder-edu { padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); }
/* The address next to an email button, so it still works without a mail app (selects in one click) */
.pc-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.pc-mail { font: 14px var(--mono); color: var(--muted); user-select: all; }

/* ---------- Contact forms: Schedule a demo, Join us (contact.js) ---------- */
:root:has(.cf[open]) { overflow: hidden; }
.cf { width: min(640px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 1px solid var(--line); border-radius: 22px; background: var(--card); color: var(--ink); overflow: auto; overscroll-behavior: contain; box-shadow: 0 40px 120px rgba(0, 0, 0, 0.55); }
.cf::backdrop { background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
:root[data-theme="light"] .cf::backdrop { background: rgba(0, 30, 60, 0.42); }
:root[data-theme="light"] .cf { box-shadow: 0 40px 120px rgba(0, 40, 80, 0.22); }
@media (prefers-reduced-motion: no-preference) { .cf[open] { animation: viewer-in 420ms var(--ease-expo); } }
.cf-form { display: grid; gap: 16px; padding: 24px 26px 26px; }
.cf-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cf-head h2 { font-size: clamp(22px, 2.6vw, 28px); letter-spacing: -0.02em; }
.cf-close { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--pill-dark); color: var(--ink); font-size: 22px; cursor: pointer; transition: transform 300ms var(--ease-expo); }
.cf-close:hover { transform: rotate(90deg); }
.cf-intro { margin-top: -6px; color: var(--muted); }
.cf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.cf-f { display: grid; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.cf-wide, .cf-checks { grid-column: 1 / -1; }
.cf-l { font-size: 13px; font-weight: 600; color: var(--ink); }
.cf-opt { font-weight: 400; color: var(--dim); }
.cf-in { width: 100%; min-height: 44px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card-2); color: var(--ink); font: 15px var(--font); transition: border-color 200ms; }
.cf-in:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
textarea.cf-in { min-height: 104px; resize: vertical; }
.cf-boxes { display: flex; flex-wrap: wrap; gap: 8px; }
.cf-box { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; cursor: pointer; }
.cf-box:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.cf-box input, .cf-consent input { accent-color: var(--accent); width: 16px; height: 16px; margin: 0; }
.cf-consent { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; line-height: 1.5; color: var(--muted); cursor: pointer; }
.cf-consent input { margin-top: 2px; flex: none; }
.cf-consent a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.cf-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-status { min-height: 1.2em; font-size: 14px; color: var(--muted); }
.cf-status.is-bad { color: var(--bad, #e5484d); }
.cf-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.cf-send:disabled { opacity: 0.55; cursor: progress; }
.cf-alt { font-size: 13px; color: var(--dim); }
.cf-mail { font-family: var(--mono); color: var(--muted); user-select: all; }
.cf-done { display: grid; justify-items: start; gap: 14px; padding: 8px 0 4px; }
.cf-tick { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: color-mix(in srgb, var(--live) 18%, transparent); color: var(--live); font-size: 22px; }
@media (max-width: 560px) { .cf-grid { grid-template-columns: minmax(0, 1fr); } .cf-form { padding: 20px 18px 22px; } }
.key-more a { color: var(--accent); font-weight: 600; }
.key-more a:hover { text-decoration: underline; text-underline-offset: 3px; }
/* The résumé picker in the Join us form: a real file input, laid over a styled row */
.cf-file { position: relative; display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px 14px 6px 6px; border: 1px dashed var(--dim); border-radius: 12px; background: var(--card-2); cursor: pointer; }
.cf-file input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.cf-file:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.cf-file-btn { flex: none; padding: 8px 14px; border-radius: 9px; background: var(--pill-dark); font-size: 14px; font-weight: 600; }
.cf-file-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; color: var(--muted); }
.cf-file.has-file { border-style: solid; border-color: var(--accent); }
.cf-file.has-file .cf-file-name { color: var(--ink); }

/* ---------- Service pages share one look (GRAIT Maestro, SalesIQ, Pulse): cloud hero, page-head sections, card style, closing band ---------- */
.page-sec .bento { max-width: none; margin-top: 40px; padding: 0; }
.page-sec .plans { margin-top: 40px; }
/* Without / With GRAIT, as cards */
.vs { display: grid; gap: 2px; margin-top: 12px !important; }
.vs span { font: 500 12px var(--mono); color: var(--dim); }
.vs--without { color: var(--muted); }
.vs--with { color: var(--ink) !important; }
.vs--with span { color: var(--teal); }
.vs--without span { color: color-mix(in srgb, var(--ink) 50%, var(--dim)); }
/* DevOps page: smaller body text in the nine cards */
.arch-row--compact > div > p:not(.arch-t) { font-size: 14px; }
/* Linked page sections land 24px under the header, like the home sections (Meet the team keeps its own rule) */
:where(.page-sec)[id] { scroll-margin-top: calc(24px - var(--page-pad)); }
/* GRAITOne service cards (graitone.html) */
.svc-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 40px 0 0; }
.svc-card { display: grid; align-content: start; gap: 6px; padding: 24px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); color: var(--ink); transition: border-color 200ms, transform 300ms var(--ease-expo); }
.svc-card:hover, .svc-card:focus-visible { border-color: var(--dim); transform: translateY(-2px); }
.svc-card.is-soon { border-style: dashed; border-color: var(--dim); background: none; }
.svc-k { font: 500 12px var(--mono); color: var(--accent); }
.svc-t { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.svc-s { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.svc-card.is-soon .svc-s { color: var(--teal); font-weight: 600; }
/* Status pills on the GRAITOne product cards: a pulsing Live pill and a bordered Coming soon pill. */
.svc-s em.is-live { gap: 7px; padding: 4px 11px 4px 9px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--live) 45%, transparent); background: color-mix(in srgb, var(--live) 14%, transparent); font-size: 11px; font-weight: 700; }
.svc-s em.is-live::before { width: 7px; height: 7px; box-shadow: 0 0 0 0 color-mix(in srgb, var(--live) 60%, transparent); animation: live-ping 2s infinite; }
.svc-soon { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px 4px 9px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--teal) 55%, transparent); background: color-mix(in srgb, var(--teal) 10%, transparent); font-style: normal; font-size: 11px; font-weight: 700; color: var(--teal); }
.svc-soon::before { content: ""; box-sizing: border-box; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid currentColor; }
@media (prefers-reduced-motion: reduce) { .svc-s em.is-live::before { animation: none; } }
.svc-go { margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--accent); }
@media (max-width: 760px) { .svc-row { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Contact us (contact.html): no hero, what GRAIT is beside the form ---------- */
.contact-page { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 6vw, 96px); align-items: start; max-width: var(--max); margin: 0 auto; padding: clamp(112px, 14vw, 168px) var(--pad) 0; }
.contact-pill { justify-self: start; width: fit-content; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-size: 15px; color: var(--ink); }
.contact-info { display: grid; gap: 22px; min-width: 0; }
.contact-info h1 { margin-top: 18px; font-size: clamp(38px, 5vw, 64px); line-height: 1.04; letter-spacing: -0.035em; text-wrap: balance; }
.contact-lead { max-width: 560px; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.contact-ticks { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 14px; }
.contact-ticks li { display: flex; align-items: center; gap: 12px; }
.contact-ticks svg { flex: none; width: 26px; height: 26px; padding: 5px; border-radius: 50%; border: 1px solid var(--line); color: var(--teal); }
/* Facts: What we build and Stage side by side, Write to us on its own row so the addresses never break */
.contact-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 18px 0 0; padding-top: 28px; border-top: 1px solid var(--line); }
.contact-facts div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.contact-facts div:last-child { grid-column: 1 / -1; padding: 16px 0 0; border-left: 0; border-top: 1px solid var(--line); }
.contact-facts dt { font-size: 12px; color: var(--dim); }
.contact-facts dd { margin: 6px 0 0; font-size: 14px; line-height: 1.5; color: var(--ink); overflow-wrap: anywhere; }
.contact-facts a { color: var(--accent); white-space: nowrap; }
.contact-mails { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 20px; }
.contact-mails span { color: var(--muted); }
.contact-card { position: sticky; top: calc(var(--top-h, 64px) + 24px); border: 1px solid var(--line); border-radius: 24px; background: var(--card); box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.5); }
.contact-card .cf-form { padding: clamp(24px, 3vw, 40px); }
.contact-card .cf-grid { grid-template-columns: minmax(0, 1fr); }
.contact-card .cf-send { flex: 1 1 100%; justify-content: center; min-height: 52px; }
.contact-noscript { padding: 32px; color: var(--muted); }
.contact-noscript a { color: var(--accent); }
@media (max-width: 900px) {
  .contact-page { grid-template-columns: minmax(0, 1fr); }
  .contact-card { position: static; }
}
@media (max-width: 560px) {
  .contact-facts { grid-template-columns: minmax(0, 1fr); }
  .contact-facts div + div { padding: 14px 0 0; border-left: 0; border-top: 1px solid var(--line); }
}
.cta-note { font-size: 14px; color: inherit; opacity: 0.9; }
.cf-alt { margin-top: -4px; }
.cf-alt a.cf-mail { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; user-select: text; }

/* ---------- Home: the two products as chapters (GRAITOne, GRAIT Private Cloud) ---------- */
/* Full width, with the hero's look behind it: the blue glow and the drifting points (common.js), faded out at the top and bottom edges. */
.chapter { position: relative; isolation: isolate; overflow: hidden; padding: var(--sec-pad) max(var(--pad), calc((100% - var(--max)) / 2 + var(--pad))) clamp(40px, 5.6vw, 72px); scroll-margin-top: 24px; }
.chapter::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 58%; width: min(1400px, 160vw); aspect-ratio: 16 / 9; transform: translate(-50%, -50%); background: radial-gradient(closest-side, var(--shade), transparent 72%), radial-gradient(closest-side, var(--shade), transparent 46%); filter: blur(24px); pointer-events: none; }
.chapter::after { content: ""; position: absolute; z-index: -1; left: 18%; top: 22%; width: min(760px, 110vw); aspect-ratio: 1; transform: translate(-50%, -50%); background: radial-gradient(closest-side, var(--shade-2), transparent 70%); filter: blur(30px); pointer-events: none; }
.chapter--pc::after { left: 84%; top: 70%; }
/* Cards on the glow let a little of it through, so the blue shows behind them as it does around the hero. */
.chapter .prod-card { background-color: color-mix(in srgb, var(--card) 70%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.chapter--pc::before { top: 55%; }
.chapter-sky { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; pointer-events: none;
  -webkit-mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent); }
.chapter-head { padding-top: clamp(28px, 3vw, 40px); border-top: 1px solid var(--line); }
.chapter-k { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--accent); }
.chapter-n { padding: 2px 9px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); font: 600 12px/1.5 var(--mono); }
.chapter-head h2 { margin-top: 14px; font-size: clamp(44px, 6vw, 80px); line-height: 1; letter-spacing: -0.035em; }
.chapter-head > p:not(.chapter-k) { margin-top: 18px; max-width: 640px; font-size: 17px; color: var(--muted); }
.chapter-go { margin-top: 24px; }
.chapter > .pc { padding: clamp(32px, 4vw, 48px) 0 0; }
/* The home glimpse has less text than the Private Cloud page, so its drawing is shorter on desktop to match the text beside it. */
@media (min-width: 1001px) { .chapter .pc-pic { aspect-ratio: 6 / 5; } }
.page-sec > .pc--page { padding: 0; }

/* GRAITOne services: Maestro (live) large, SalesIQ and Pulse (coming soon) beside it */
.prod-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: 1fr 1fr; gap: 16px; margin-top: clamp(32px, 4vw, 48px); }
.prod-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: clamp(20px, 2.2vw, 28px); border-radius: 22px; background: var(--card); border: 1px solid var(--line); color: inherit; overflow: hidden; transition: border-color 300ms, translate 360ms var(--ease-expo), box-shadow 360ms var(--ease-expo); }
.prod-card:hover, .prod-card:focus-visible { translate: 0 -3px; border-color: var(--dim); box-shadow: 0 18px 40px -24px var(--glow); }
.prod-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.prod-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.prod-name { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; }
.prod-card--soon .prod-top { flex-wrap: wrap; justify-content: flex-start; gap: 6px 10px; }
.prod-area { font-size: 13px; font-weight: 600; color: var(--muted); }
.prod-desc { margin-top: 6px; max-width: 520px; color: var(--muted); font-size: 15px; }
.prod-soon { flex: none; padding: 3px 10px; border-radius: 999px; border: 1px dashed var(--dim); font-size: 11px; font-weight: 600; color: var(--teal); }
.prod-live { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px; border-radius: 999px; background: color-mix(in srgb, var(--live) 16%, transparent); color: var(--live); font-size: 12px; font-weight: 700; }
.prod-live i, .sa-ok i { width: 7px; height: 7px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 color-mix(in srgb, var(--live) 60%, transparent); animation: live-ping 2s infinite; }
@keyframes live-ping { 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* Maestro: the featured card, with a small request-to-plan mock-up */
.prod-card--live { grid-row: 1 / 3; padding: clamp(24px, 3vw, 36px); border-color: color-mix(in srgb, var(--accent) 38%, var(--line));
  background: radial-gradient(110% 70% at 100% 0%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 62%) color-mix(in srgb, var(--card) 70%, transparent); }
.prod-card--live .prod-name { font-size: clamp(26px, 2.6vw, 34px); }
.prod-card--live .prod-desc { font-size: 16px; }
.prod-art-live { display: grid; gap: 10px; margin-top: 24px; padding: 18px; border-radius: 16px; background: var(--card-2); border: 1px solid var(--line); font-size: 13px; }
.prod-art-live > * { min-width: 0; }
.sa-ask { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 16px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-weight: 500; }
.sa-ask span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sa-ask b { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--teal)); color: #fff; }
.sa-step { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.sa-step i { font-style: normal; color: var(--dim); }
.sa-plan { display: flex; flex-wrap: wrap; gap: 8px; }
.sa-plan b { padding: 4px 10px; border-radius: 8px; font-size: 12px; font-weight: 600; border: 1px solid; }
.sa-plan .add { color: var(--live); border-color: color-mix(in srgb, var(--live) 40%, transparent); background: color-mix(in srgb, var(--live) 10%, transparent); }
.sa-plan .chg { color: #e0a43a; border-color: color-mix(in srgb, #e0a43a 40%, transparent); background: color-mix(in srgb, #e0a43a 10%, transparent); }
.sa-plan .del { color: #e5645b; border-color: color-mix(in srgb, #e5645b 40%, transparent); background: color-mix(in srgb, #e5645b 10%, transparent); }
.sa-ok { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.prod-go { margin-top: auto; padding-top: 22px; font-weight: 600; color: var(--accent); }

/* SalesIQ and Pulse: coming soon, each with a small drawing */
.prod-card--soon { flex-direction: row; align-items: center; gap: 16px; border-style: dashed; border-color: color-mix(in srgb, var(--dim) 55%, var(--line)); }
.prod-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.prod-art { flex: none; width: clamp(110px, 11vw, 150px); height: auto; }
.sa-card { fill: var(--card-2); stroke: var(--line); }
.sa-bar { fill: color-mix(in srgb, var(--accent) 35%, transparent); }
.sa-bar--hi { fill: var(--accent); }
.sa-trend { fill: none; stroke: var(--teal); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.sa-budget { stroke: var(--dim); stroke-width: 1.5; stroke-dasharray: 4 4; }
.sa-line { fill: none; stroke: var(--teal); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.sa-dot { fill: #e5645b; stroke: var(--card-2); stroke-width: 2; }

@media (max-width: 860px) {
  .prod-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .prod-card--live { grid-row: auto; }
}
@media (max-width: 480px) {
  .prod-card--soon { flex-direction: column-reverse; align-items: stretch; }
  .prod-art { width: 120px; }
  .sa-step { display: none; }
}
@media (prefers-reduced-motion: reduce) { .prod-live i, .sa-ok i { animation: none; } .prod-card { transition: none; } }
:root[data-theme="light"] .sa-plan .chg { color: #8a5a00; }
:root[data-theme="light"] .sa-plan .del { color: #b3261e; }

/* ---------- Product pages (Maestro, SalesIQ, Pulse): soft blue and teal shades down the page, with the hero's drifting points ---------- */
.has-shades { position: relative; isolation: isolate; }
.page-shades { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.page-shades .chapter-sky { -webkit-mask-image: linear-gradient(transparent, #000 3%, #000 94%, transparent); mask-image: linear-gradient(transparent, #000 3%, #000 94%, transparent); }
.page-shades i { position: absolute; width: min(1000px, 130vw); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(closest-side, var(--shade), transparent 70%); filter: blur(30px); opacity: 0.75; }
.page-shades i:nth-child(2) { left: 72%; top: 4%; }
.page-shades i:nth-child(3) { left: 12%; top: 26%; width: min(800px, 110vw); background: radial-gradient(closest-side, var(--shade-2), transparent 70%); opacity: 1; }
.page-shades i:nth-child(4) { left: 88%; top: 48%; }
.page-shades i:nth-child(5) { left: 18%; top: 70%; opacity: 0.6; }
.page-shades i:nth-child(6) { left: 70%; top: 92%; width: min(900px, 120vw); background: radial-gradient(closest-side, var(--shade-2), transparent 70%); opacity: 1; }

/* Maestro card animation (home.js): lines after the request appear stage by stage; without JavaScript all of it shows */
.prod-art-live.is-anim :is(.sa-step, .sa-plan, .sa-ok) { opacity: 0; translate: 0 6px; transition: opacity 400ms var(--ease), translate 500ms var(--ease-expo); }
.prod-art-live.is-anim[data-stage="1"] .sa-step,
.prod-art-live.is-anim[data-stage="2"] :is(.sa-step, .sa-plan),
.prod-art-live.is-anim[data-stage="3"] :is(.sa-step, .sa-plan, .sa-ok) { opacity: 1; translate: none; }
.prod-art-live.is-anim .sa-plan b { opacity: 0; transition: opacity 300ms var(--ease); }
.prod-art-live.is-anim:is([data-stage="2"], [data-stage="3"]) .sa-plan b { opacity: 1; }
.prod-art-live.is-anim .sa-plan b:nth-child(2) { transition-delay: 120ms; }
.prod-art-live.is-anim .sa-plan b:nth-child(3) { transition-delay: 240ms; }
.prod-art-live.is-typing .sa-typed::after { content: ""; display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -0.15em; background: var(--accent); animation: blink 1s steps(1) infinite; }
.sa-typed:empty::before { content: "Describe what you need…"; color: var(--dim); }
.sa-ask b { transition: transform 160ms var(--ease), box-shadow 300ms var(--ease); }
.sa-ask b.is-press { transform: scale(0.82); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 30%, transparent); }
.sa-n { display: inline-block; min-width: 2ch; text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- The GRAITOne card as a window: logo, a tab per product, and one product at a time ---------- */
.oc-chrome { display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: var(--w-chrome); border-bottom: 1px solid var(--w-line); font-size: 14px; font-weight: 600; }
.oc-sep { color: var(--w-sep); }
.oc-app { display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px; border-radius: 999px; background: var(--w-bg); border: 1px solid var(--w-line); color: var(--pa-ink); transition: color 300ms; }
.oc-app i { width: 8px; height: 8px; border-radius: 50%; background: var(--pa); transition: background 300ms; }
.oc-logo { flex: none; width: 40px; height: auto; }
.oc-run { padding: 16px 20px 18px; }
/* Each product's own header and colour */
.oc-head { display: flex; align-items: baseline; gap: 10px; padding-bottom: 10px; border-bottom: 2px solid var(--pa); }
.oc-head b { font-size: 17px; font-weight: 700; color: var(--pa-ink); }
.oc-head span { font-size: 11px; font-weight: 600; color: var(--w-muted); }
.one-card .oc-plan { background: color-mix(in srgb, var(--pa) 12%, var(--w-bg)); }
.one-card .oc-sum { color: var(--pa-ink); }
.one-card .oc-plan--find li::before { color: var(--pa-ink); }
.oc-run.is-swap .oc-head { animation: oc-in 420ms var(--ease-expo) both; }
@media (max-width: 760px) {
  .oc-chrome { gap: 8px; padding: 8px 12px; font-size: 13px; }
  .oc-logo { width: 32px; }
  .oc-run { padding: 12px 14px 14px; }
}

/* GRAITOne's home screen: the three apps as tiles. The bar shows just "GRAITOne" until an app is open. */
.one-card[data-prod="home"] :is(.oc-sep, .oc-app) { display: none; }
.oc-crumb { padding: 2px 4px; border: 0; border-radius: 6px; background: none; color: var(--w-muted); font: inherit; cursor: pointer; }
.oc-crumb:hover { color: var(--w-ink); }
.one-card[data-prod="home"] .oc-crumb { color: var(--w-ink); cursor: default; }
.oc-run { min-height: 300px; }
.oc-home { display: flex; flex-direction: column; }
.oc-home .oc-apps { flex: 1; }
.oc-home-k { font-size: 11px; font-weight: 600; color: var(--w-muted); }
.oc-apps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.oc-tile { --c: var(--maestro); --c-ink: var(--maestro-ink); display: flex; flex-direction: column; gap: 4px; min-height: 150px; padding: 16px; border: 1px solid var(--w-line); border-top: 3px solid var(--c); border-radius: 14px; background: var(--w-tile); color: var(--w-ink); font: inherit; text-align: left; cursor: pointer; transition: transform 200ms var(--ease), box-shadow 300ms, border-color 300ms; }
.oc-tile.p-salesiq { --c: var(--salesiq); --c-ink: var(--salesiq-ink); } .oc-tile.p-pulse { --c: var(--pulse); --c-ink: var(--pulse-ink); }
.oc-tile:hover, .oc-tile:focus-visible { transform: translateY(-2px); box-shadow: 0 12px 24px -16px var(--w-tile-shadow); }
.oc-tile.is-open { transform: scale(1.04); border-color: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 35%, transparent), 0 18px 40px -18px var(--c); }
.oc-tile b { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; }
.oc-tile i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.oc-tile small { font-size: 10.5px; font-weight: 600; color: var(--w-muted); }
.oc-tile > span { font-size: 13px; line-height: 1.45; color: var(--w-muted); }
.oc-tile-art { width: 100%; max-width: 132px; height: auto; margin-top: auto; padding-top: 12px; }
.oc-tile-art rect { fill: color-mix(in srgb, var(--c) 22%, var(--w-bg)); stroke: color-mix(in srgb, var(--c) 55%, var(--w-bg)); stroke-width: 1.2; }
.oc-tile-art rect.hi { fill: var(--c); stroke: var(--c); }
.oc-tile-art path { fill: none; stroke: var(--c); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.oc-tile-art path.dash { stroke: var(--w-sep); stroke-width: 1.4; stroke-dasharray: 4 4; }
.oc-tile-art circle { fill: #e5645b; }
.oc-open { margin-top: 0; padding-top: 12px; font-style: normal; font-size: 13px; font-weight: 600; }
.oc-open { color: var(--c-ink); }
.oc-run.is-swap .oc-tile { animation: oc-in 520ms var(--ease-expo) both; }
.oc-run.is-swap .oc-tile:nth-child(2) { animation-delay: 90ms; } .oc-run.is-swap .oc-tile:nth-child(3) { animation-delay: 180ms; }
@media (max-width: 760px) {
  .oc-run { min-height: 0; }
  .oc-apps { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .oc-tile { min-height: 0; padding: 12px 14px; }
  .oc-open { padding-top: 6px; }
  .oc-tile-art { display: none; }
}

/* The GRAITOne window follows the theme: dark on the dark theme, white on the light one. Each app keeps its colour. */
.one-card {
  --w-bg: #15181d; --w-ink: #eef3f8; --w-muted: #9aa6b2; --w-line: #2a3038; --w-chrome: #1c2026; --w-soft: #1b1f25; --w-tile: #1a1e24;
  --w-sep: #5b6670; --w-btn2: #252a31; --w-ok: #3ddc97; --w-warn: #fb923c; --w-shadow: 0 30px 80px rgba(0, 0, 0, 0.55); --w-tile-shadow: rgba(0, 0, 0, 0.6);
  --maestro: #2f9bf0; --maestro-ink: #6cbcf7; --maestro-btn: #1f7fd0;
  --salesiq: #14b8cc; --salesiq-ink: #5fd8e8; --salesiq-btn: #0e8fa0;
  --pulse: #22b87c; --pulse-ink: #5fe0a6; --pulse-btn: #17865a;
  --pa: var(--maestro); --pa-ink: var(--maestro-ink); --pa-btn: var(--maestro-btn); }
:root[data-theme="light"] .one-card {
  --w-bg: #fff; --w-ink: #003966; --w-muted: #4d6a85; --w-line: #d7e4ef; --w-chrome: #e3eef8; --w-soft: #eaf2f9; --w-tile: #f7fafd;
  --w-sep: #8aa6bf; --w-btn2: #eaf2f9; --w-ok: #0a7d55; --w-warn: #c2410c; --w-shadow: 0 30px 80px rgba(0, 20, 40, 0.25); --w-tile-shadow: rgba(0, 57, 102, 0.45);
  --maestro: #008de4; --maestro-ink: #0072b8; --maestro-btn: #0072b8;
  --salesiq: #02a9be; --salesiq-ink: #007784; --salesiq-btn: #007784;
  --pulse: #1fb57a; --pulse-ink: #12805c; --pulse-btn: #12805c; }
.one-card[data-prod="salesiq"] { --pa: var(--salesiq); --pa-ink: var(--salesiq-ink); --pa-btn: var(--salesiq-btn); }
.one-card[data-prod="pulse"] { --pa: var(--pulse); --pa-ink: var(--pulse-ink); --pa-btn: var(--pulse-btn); }

/* The home screen is a bigger window; opening an app shrinks it to the app's size (the width eases between the two). */
.one-card { transition: width 750ms var(--ease-expo), box-shadow 400ms; }
.one-card[data-prod="home"] { width: min(980px, 100%); }
.one-card[data-prod="home"] .oc-run { min-height: 360px; padding: 22px 26px 26px; }
.one-card[data-prod="home"] .oc-apps { gap: 16px; margin-top: 14px; }
.one-card[data-prod="home"] .oc-tile { min-height: 250px; padding: 22px; }
.one-card[data-prod="home"] .oc-tile b { font-size: 18px; }
.one-card[data-prod="home"] .oc-tile > span { font-size: 14px; }
.one-card[data-prod="home"] .oc-tile-art { max-width: 190px; }
.one-card[data-prod="home"] .oc-chrome { padding: 12px 20px; font-size: 15px; }
@media (max-width: 760px) {
  .one-card[data-prod="home"] .oc-run { min-height: 0; padding: 14px; }
  .one-card[data-prod="home"] .oc-tile { min-height: 0; padding: 12px 14px; }
  .one-card[data-prod="home"] .oc-tile b { font-size: 15px; }
  .one-card[data-prod="home"] .oc-tile > span { font-size: 13px; }
  /* On a phone each app is one compact row: name and area on the left, Open on the right */
  .oc-tile { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 12px; row-gap: 2px; }
  .oc-tile b { grid-column: 1; }
  .oc-tile small { grid-column: 1; }
  .oc-tile > span { display: none; }
  .oc-open { grid-column: 2; grid-row: 1 / 3; padding-top: 0; }
}
@media (prefers-reduced-motion: reduce) { .one-card { transition: none; } }
