/* Pyrus website mockup. Tokens from src/app/v2/v2.css (dark) and the light social-template set in BRAND_GUIDELINES.md. */

:root,
[data-theme="dark"] {
  --bg: #0a0a0c;
  --bg-2: #111114;
  --card: rgba(255, 255, 255, 0.03);
  --card-solid: #101014;
  --card-hover: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f4f6;
  --text-2: rgba(244, 244, 246, 0.8);
  --text-3: rgba(244, 244, 246, 0.62);
  --text-4: rgba(244, 244, 246, 0.4);
  --accent: #8b7cff;
  --accent-text: #a99fff;
  --accent-dim: rgba(139, 124, 255, 0.14);
  --btn-bg: #f0f0f2;
  --btn-text: #0a0a0c;
  --btn-bg-hover: #ffffff;
  --glow-1: rgba(103, 80, 255, 0.24);
  --glow-2: rgba(103, 80, 255, 0.12);
  --nav-bg: rgba(10, 10, 12, 0.72);
  --ok: #6ee7a0;
  --dot: rgba(255, 255, 255, 0.08);
  --card-shadow: none;
  --hero-card-border: rgba(139, 124, 255, 0.55);
  --hero-card-glow: rgba(139, 124, 255, 0.3);
  --band: #0e0e12;
  --logo-filter: brightness(0) invert(1);
  --placeholder-a: #15141c;
  --placeholder-b: #111016;
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #f6f5fa;
  --bg-2: #eeecf5;
  --card: #ffffff;
  --card-solid: #ffffff;
  --card-hover: #fbfaff;
  --border: rgba(21, 19, 28, 0.08);
  --border-strong: rgba(21, 19, 28, 0.18);
  --text: #15131c;
  --text-2: rgba(21, 19, 28, 0.76);
  --text-3: rgba(21, 19, 28, 0.6);
  --text-4: rgba(21, 19, 28, 0.54);
  --accent: #5b4be6;
  --accent-text: #4a3bd0;
  --accent-dim: rgba(91, 75, 230, 0.09);
  --btn-bg: #15131c;
  --btn-text: #f6f5fa;
  --btn-bg-hover: #000000;
  --glow-1: rgba(139, 124, 255, 0.24);
  --glow-2: rgba(190, 180, 255, 0.28);
  --nav-bg: rgba(246, 245, 250, 0.8);
  --ok: #17915a;
  --dot: rgba(21, 19, 28, 0.08);
  --card-shadow: 0 1px 2px rgba(30, 20, 90, 0.04), 0 12px 32px rgba(30, 20, 90, 0.07);
  --hero-card-border: rgba(91, 75, 230, 0.45);
  --hero-card-glow: rgba(91, 75, 230, 0.16);
  --band: #eeecf5;
  --logo-filter: brightness(0);
  --placeholder-a: #ebe9f3;
  --placeholder-b: #f2f1f7;
  color-scheme: light;
}

[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--bg);
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-2);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
  transition: background-color 300ms var(--ease, ease);
}

:root { --ease: cubic-bezier(0.22, 1, 0.36, 1); --max: 1200px; }

::selection { background: var(--accent-dim); color: var(--text); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}

/* ---------- Atmosphere ---------- */

.ambient {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 900px 520px at 50% -160px, var(--glow-1), transparent 70%),
    radial-gradient(ellipse 600px 420px at 100% 30%, var(--glow-2), transparent 72%),
    radial-gradient(ellipse 700px 460px at 0% 70%, var(--glow-2), transparent 72%);
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

.dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, var(--dot) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 60% 55% at var(--dx, 70%) var(--dy, 40%), black, transparent 92%);
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at var(--dx, 70%) var(--dy, 40%), black, transparent 92%);
}

main, footer.foot { position: relative; z-index: 2; }
header.nav { position: sticky; z-index: 50; }

/* ---------- Layout ---------- */

.wrap { width: min(var(--max), 100% - 48px); margin-inline: auto; }
.section { padding-block: clamp(72px, 8vw, 108px); position: relative; }
.section + .section { border-top: 1px solid var(--border); }
.section.tight { padding-block: clamp(48px, 6vw, 80px); }
.band { background: var(--band); border-block: 1px solid var(--border); }

/* ---------- Type ---------- */

h1, h2, h3, h4 { font-family: "DM Sans", system-ui, sans-serif; color: var(--text); font-weight: 500; margin: 0; }
h1, h2 { text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); letter-spacing: -0.04em; line-height: 1.06; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); letter-spacing: -0.03em; line-height: 1.1; }
h3 { font-size: 22px; letter-spacing: -0.02em; line-height: 1.25; }
h4 { font-size: 17px; letter-spacing: -0.01em; line-height: 1.35; }
.dim { color: var(--text-3); }
p { margin: 0 0 14px; }
.lede { font-size: 17.5px; line-height: 1.7; color: var(--text-2); max-width: 560px; }
.small { font-size: 14px; }
.muted { color: var(--text-3); }

.eyebrow {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 16px;
}

.mono { font-family: "DM Sans", system-ui, sans-serif; font-size: 12px; color: var(--text-3); }

.metal { display: inline; filter: drop-shadow(0 0 26px rgba(139, 124, 255, 0.22)); }
.metal > span {
  background: linear-gradient(178deg, #fff 0%, #fff 34%, #cfccdd 56%, #fff 74%, #e6e4ef 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
[data-theme="light"] .metal { filter: none; }
[data-theme="light"] .metal > span { background: none; color: var(--text); -webkit-text-fill-color: currentColor; }
.period { color: inherit; }

.head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.head p { margin-top: 18px; }
.head.center { margin-inline: auto; text-align: center; }
.head.center .lede { margin-inline: auto; }

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

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-text);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.2;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  transition: background 260ms var(--ease), box-shadow 260ms var(--ease), transform 260ms var(--ease);
}
.btn:hover { background: var(--btn-bg-hover); box-shadow: 0 0 48px var(--accent-dim); transform: translateY(-1px); }
.btn:active { transform: none; }
.btn.sm { padding: 9px 16px; font-size: 14px; }
.btn.ghost { background: transparent; color: var(--text-2); border: 1px solid var(--border-strong); }
.btn.ghost:hover { color: var(--text); border-color: var(--text-3); box-shadow: none; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.link-arrow { color: var(--text); font-weight: 500; display: inline-flex; gap: 6px; align-items: center; }
.link-arrow:hover { color: var(--accent-text); }

/* ---------- Nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav .wrap { display: flex; align-items: center; gap: 8px; height: 68px; }
.nav .brand { display: flex; align-items: center; margin-right: 28px; }
.nav .brand img { height: 22px; width: auto; filter: var(--logo-filter); }
.nav-links { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav-links > li { position: relative; }
.nav-links > li > a, .nav-links > li > button {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: 999px;
  color: var(--text-2); font-size: 14.5px; background: none; border: 0; cursor: pointer;
  transition: color 200ms var(--ease), background 200ms var(--ease);
}
.nav-links > li > a:hover, .nav-links > li > button:hover, .nav-links > li.open > button, .nav-links a[aria-current="page"] { color: var(--text); background: var(--card); }
.nav-links .chev { width: 10px; height: 10px; transition: transform 200ms var(--ease); }
.nav-links li.open .chev { transform: rotate(180deg); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.theme-toggle {
  width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--border-strong);
  background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--text-2);
  transition: color 200ms var(--ease), border-color 200ms var(--ease);
}
.theme-toggle:hover { color: var(--text); border-color: var(--text-3); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .sun { display: none; }
[data-theme="light"] .theme-toggle .sun { display: block; }
[data-theme="light"] .theme-toggle .moon { display: none; }

.mega {
  position: absolute; top: calc(100% + 10px); left: -12px;
  min-width: 420px;
  background: var(--card-solid);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 10px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 200ms var(--ease), transform 200ms var(--ease), visibility 200ms;
}
[data-theme="light"] .mega { box-shadow: 0 24px 60px rgba(30, 20, 90, 0.14); }
.nav-links li.open .mega { opacity: 1; visibility: visible; transform: none; }
.mega a.item { display: block; padding: 12px 14px; border-radius: 14px; transition: background 180ms var(--ease); }
.mega a.item:hover { background: var(--card-hover); }
[data-theme="dark"] .mega a.item:hover { background: rgba(255,255,255,0.045); }
.mega a.item b { display: block; color: var(--text); font-weight: 500; font-size: 15px; }
.mega a.item span { display: block; color: var(--text-3); font-size: 13.5px; line-height: 1.5; margin-top: 2px; }
.mega.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; min-width: 560px; }
.mega .col-title { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-4); padding: 10px 14px 4px; }
.mega .col a.item { padding: 8px 14px; }
.mega .col a.item b { font-size: 14.5px; }
.mega .foot-line { grid-column: 1 / -1; border-top: 1px solid var(--border); margin-top: 6px; padding: 12px 14px 6px; font-size: 13.5px; color: var(--text-3); display: flex; justify-content: space-between; }

.menu-btn { display: none; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--border-strong); background: none; cursor: pointer; place-items: center; color: var(--text); }
.menu-btn svg { width: 18px; height: 18px; }

.mobile-menu { display: none; }

/* ---------- Hero ---------- */

.hero { padding-block: clamp(56px, 8vw, 104px) clamp(40px, 6vw, 72px); position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(40px, 6vw, 80px); align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero .lede { margin-bottom: 30px; }
.hero.center { text-align: center; }
.hero.center .lede { margin-inline: auto; }
.hero.center .btn-row { justify-content: center; }
.crumbs { font-size: 13.5px; color: var(--text-3); margin-bottom: 20px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--text); }
.crumbs span[aria-hidden] { color: var(--text-4); }

.status { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-3); }
.status i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ---------- Visual placeholder ---------- */

.visual {
  position: relative;
  border-radius: 24px;
  border: 1px solid var(--border);
  background:
    radial-gradient(ellipse 90% 140% at 50% -40%, var(--hero-card-glow), transparent 62%),
    var(--card-solid);
  box-shadow: var(--card-shadow);
  padding: 18px;
  aspect-ratio: 5 / 4;
  display: flex;
}
.visual.wide { aspect-ratio: 16 / 10; }
.placeholder {
  flex: 1;
  border-radius: 14px;
  border: 1px dashed var(--border-strong);
  background: repeating-linear-gradient(135deg, var(--placeholder-a) 0 14px, var(--placeholder-b) 14px 28px);
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
  gap: 8px; padding: 28px;
}
.placeholder b { color: var(--text); font-weight: 500; font-size: 15px; }
.placeholder span { color: var(--text-3); font-size: 13.5px; max-width: 34em; line-height: 1.55; }
.placeholder .tag { font-family: "DM Sans", system-ui, sans-serif; font-size: 11px; letter-spacing: 0.08em; color: var(--accent-text); }

/* ---------- Logos ---------- */

.logos { padding-block: 0 clamp(40px, 5vw, 56px); }
.hero:has(+ .logos) { padding-bottom: clamp(36px, 4.5vw, 56px); }
.logos .label { text-align: center; font-size: 12.5px; color: var(--text-3); margin-bottom: 22px; }
.logo-row { display: flex; justify-content: center; align-items: center; gap: clamp(20px, 2.6vw, 44px); flex-wrap: wrap; }
@media (min-width: 900px) { .logo-row { flex-wrap: nowrap; } .logo-row img { flex: none; } }
.logo-row img { height: clamp(16px, 1.75vw, 26px); width: auto; opacity: 0.7; filter: var(--logo-filter); }
.logo-row .ph-logo { font-size: 14px; color: var(--text-4); border: 1px dashed var(--border-strong); border-radius: 999px; padding: 6px 14px; }

/* ---------- Feature split ---------- */

.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 80px); align-items: center; }
.split.rev > :first-child { order: 2; }
.split h2 { margin-bottom: 18px; }
.split .lede { margin-bottom: 26px; }
.checks { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 4px; border-radius: 50%; background: var(--accent-dim); box-shadow: inset 0 0 0 1px var(--hero-card-border); }

/* ---------- Cards ---------- */

.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: var(--card-solid);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 26px;
  box-shadow: var(--card-shadow);
  transition: border-color 250ms var(--ease), transform 250ms var(--ease), background 250ms var(--ease);
  display: flex; flex-direction: column;
}
a.card:hover, .card.hoverable:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.card h3, .card h4 { margin-bottom: 10px; }
.card p { color: var(--text-3); font-size: 15px; line-height: 1.6; }
.card .outcome { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--border); color: var(--text); font-size: 14.5px; font-weight: 500; }
.card .kicker { font-family: "DM Sans", system-ui, sans-serif; font-size: 11.5px; color: var(--text-4); margin-bottom: 18px; }
.card .more { margin-top: auto; padding-top: 16px; color: var(--text); font-size: 14.5px; font-weight: 500; }

.hero-card {
  border-color: var(--hero-card-border);
  background: radial-gradient(ellipse 90% 140% at 50% -40%, var(--hero-card-glow), transparent 62%), var(--card-solid);
}

.icon { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-dim); color: var(--accent-text); display: grid; place-items: center; margin-bottom: 18px; }
.icon svg { width: 20px; height: 20px; }

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

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.steps li { display: flex; flex-direction: column; counter-increment: s; padding: 28px; border-radius: 20px; border: 1px solid var(--border); background: var(--card-solid); box-shadow: var(--card-shadow); }
.steps li::before { content: "0" counter(s); display: block; font-weight: 600; font-size: 44px; letter-spacing: -0.04em; color: var(--text-4); line-height: 1; margin-bottom: 22px; }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--text-3); font-size: 15px; margin: 0; }
.steps .when { display: block; margin-top: auto; padding-top: 14px; font-family: "DM Sans", system-ui, sans-serif; font-size: 12px; color: var(--accent-text); }

/* ---------- Numbers ---------- */

.numbers { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); border-top: 1px solid var(--border); }
.numbers > div { padding: 28px 24px 0 0; }
.numbers b { display: block; font-size: clamp(34px, 4.2vw, 52px); font-weight: 500; letter-spacing: -0.04em; line-height: 1.05; color: var(--text); }
.numbers span { display: block; margin-top: 10px; color: var(--text-3); font-size: 14.5px; line-height: 1.5; max-width: 16em; }
.sources { margin-top: 30px; font-size: 12.5px; color: var(--text-4); }
.sources a { color: var(--text-3); text-decoration: underline; text-underline-offset: 2px; }

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

.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--border); }
.faq details:first-child { border-top: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative; color: var(--text); font-size: 18px; font-weight: 500; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -8px; border-right: 1.5px solid var(--text-3); border-bottom: 1.5px solid var(--text-3); transform: rotate(45deg); transition: transform 250ms var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq .a { padding: 0 44px 22px 0; color: var(--text-2); max-width: 720px; }

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

.cta-panel {
  position: relative; overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--hero-card-border);
  background: radial-gradient(ellipse 90% 140% at 50% -40%, var(--hero-card-glow), transparent 62%), var(--card-solid);
  box-shadow: var(--card-shadow);
  padding: clamp(40px, 6vw, 72px);
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 40px; align-items: center;
}
.cta-panel h2 { margin-bottom: 14px; }
.cta-panel ul { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 10px; }
.cta-panel li { display: flex; gap: 12px; color: var(--text-2); }
.cta-panel li::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: 10px; border-radius: 50%; background: var(--ok); }

/* ---------- Chips / filters / tabs ---------- */

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip { border: 1px solid var(--border-strong); background: transparent; color: var(--text-2); border-radius: 999px; padding: 7px 14px; font-size: 14px; cursor: pointer; transition: all 200ms var(--ease); }
.chip:hover { color: var(--text); border-color: var(--text-3); }
.chip[aria-pressed="true"] { background: var(--btn-bg); color: var(--btn-text); border-color: var(--btn-bg); }

.tabs { display: inline-flex; padding: 4px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); gap: 2px; flex-wrap: wrap; }
.tabs button { border: 0; background: transparent; padding: 8px 16px; border-radius: 999px; color: var(--text-3); cursor: pointer; font-size: 14.5px; transition: all 200ms var(--ease); }
.tabs button[aria-selected="true"] { background: var(--btn-bg); color: var(--btn-text); }
.tabpanel { margin-top: 26px; }

/* ---------- Before / after rows ---------- */

.ba { border: 1px solid var(--border); border-radius: 20px; overflow: hidden; background: var(--card-solid); box-shadow: var(--card-shadow); }
.ba-row { display: grid; grid-template-columns: 1fr 1fr; }
.ba-row + .ba-row { border-top: 1px solid var(--border); }
.ba-row > div { padding: 18px 24px; font-size: 15px; }
.ba-row > div:first-child { color: var(--text-3); border-right: 1px solid var(--border); }
.ba-row > div:last-child { color: var(--text); }
.ba-head > div { font-size: 11.5px !important; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-4) !important; padding-block: 14px !important; }

/* ---------- Forms ---------- */

.form { display: grid; gap: 16px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-size: 14px; color: var(--text-2); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--border-strong); background: var(--card-solid); color: var(--text);
  font: inherit; font-size: 15px;
}
.field input, .field select { height: 50px; line-height: 1.4; }
.field textarea { min-height: 110px; resize: vertical; }
.form-legend { font-size: 11.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-4); margin-top: 8px; }
.form-done { padding: 26px; border-radius: 16px; border: 1px solid var(--hero-card-border); background: var(--accent-dim); color: var(--text); }

/* ---------- Range calculator ---------- */

.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: 1px solid var(--border); border-radius: 24px; overflow: hidden; background: var(--card-solid); box-shadow: var(--card-shadow); }
.calc > div { padding: clamp(24px, 4vw, 40px); }
.calc > div + div { border-left: 1px solid var(--border); background: radial-gradient(ellipse 90% 140% at 50% -40%, var(--hero-card-glow), transparent 62%); display: flex; flex-direction: column; justify-content: center; }
.calc .rng { margin-bottom: 24px; }
.calc .rng label { display: flex; justify-content: space-between; font-size: 14.5px; color: var(--text-2); margin-bottom: 10px; }
.calc .rng output { font-family: "DM Sans", system-ui, sans-serif; color: var(--text); }
.calc input[type="range"] { width: 100%; accent-color: var(--accent); }
.calc .result { font-size: clamp(40px, 5vw, 60px); font-weight: 500; letter-spacing: -0.04em; color: var(--text); line-height: 1.05; margin: 8px 0 10px; }

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

.foot { border-top: 1px solid var(--border); padding-block: 64px 40px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.foot .brand img { height: 22px; width: auto; filter: var(--logo-filter); margin-bottom: 16px; }
.foot h4 { font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot li a { color: var(--text-3); font-size: 14.5px; }
.foot li a:hover { color: var(--text); }
.foot-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13.5px; color: var(--text-4); }

/* ---------- Reveal ---------- */

.js [data-reveal] { opacity: 0; transform: translateY(24px); }
.js [data-reveal].in { opacity: 1; transform: none; transition: opacity 750ms var(--ease), transform 750ms var(--ease); }

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

@media (max-width: 1020px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: 1fr 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .nav-links, .nav-right .btn { display: none; }
  .menu-btn { display: grid; }
  .mobile-menu[data-open="true"] { display: block; position: fixed; inset: 68px 0 0 0; z-index: 49; background: var(--bg); overflow-y: auto; padding: 16px 24px 40px; border-top: 1px solid var(--border); }
  .mobile-menu details { border-bottom: 1px solid var(--border); }
  .mobile-menu summary, .mobile-menu > a { display: block; padding: 16px 0; color: var(--text); font-size: 18px; list-style: none; cursor: pointer; border-bottom: 1px solid var(--border); }
  .mobile-menu details summary { border-bottom: 0; }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu details a { display: block; padding: 8px 0 8px 12px; color: var(--text-2); }
  .mobile-menu details div { padding-bottom: 14px; }
  .mobile-menu .btn { margin-top: 24px; }
  .mobile-menu > a.btn { display: flex; justify-content: center; color: var(--btn-text); border-bottom: 0; padding: 15px 22px; font-size: 16px; }
  .mobile-menu details summary { position: relative; padding-right: 32px; }
  .mobile-menu details summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 9px; height: 9px; margin-top: -7px; border-right: 1.5px solid var(--text-3); border-bottom: 1.5px solid var(--text-3); transform: rotate(45deg); transition: transform 250ms var(--ease); }
  .mobile-menu details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
  .hero-grid, .split, .cta-panel, .calc, .g2, .g3 { grid-template-columns: 1fr; }
  .split.rev > :first-child { order: 0; }
  .calc > div + div { border-left: 0; border-top: 1px solid var(--border); }
  .steps { grid-template-columns: 1fr; }
  .numbers { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .wrap { width: calc(100% - 32px); }
  .g4 { grid-template-columns: 1fr; }
  .numbers { grid-template-columns: 1fr; }
  .ba-row > div { padding: 14px; font-size: 14px; line-height: 1.5; }
  .ba-head > div { letter-spacing: 0.16em; }
  .form .row2 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .visual { aspect-ratio: 4 / 3.4; }
  .logo-row { gap: 16px 18px; }
  .logo-row img { height: 18px; }
  .logo-row .ph-logo { font-size: 12.5px; padding: 5px 12px; }
  .tabs { border-radius: 18px; }
  .cta-panel { padding: 32px 22px; border-radius: 22px; }
  .hero .btn-row .btn { flex: 1 1 auto; justify-content: center; }
}

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

/* ---------- Pain checklist ---------- */
.signs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sign { display: flex; gap: 14px; align-items: flex-start; text-align: left; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--border); background: var(--card-solid); box-shadow: var(--card-shadow); color: var(--text-2); cursor: pointer; font-size: 15.5px; transition: all 200ms var(--ease); }
.sign i { flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 6px; border: 1.5px solid var(--border-strong); display: grid; place-items: center; }
.sign[aria-pressed="true"] { border-color: var(--hero-card-border); color: var(--text); }
.sign[aria-pressed="true"] i { background: var(--accent); border-color: var(--accent); }
.sign[aria-pressed="true"] i::after { content: ""; width: 5px; height: 9px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg) translate(-1px, -1px); }
.signs-out { margin-top: 16px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px 22px; border-radius: 16px; border: 1px dashed var(--border-strong); color: var(--text-2); }
@media (max-width: 900px) { .signs { grid-template-columns: 1fr; } }

/* ---------- Case study block ---------- */
.case { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; border: 1px solid var(--border); border-radius: 24px; overflow: hidden; background: var(--card-solid); box-shadow: var(--card-shadow); }
.case .img { min-height: 320px; background-size: cover; background-position: center; filter: grayscale(1); }
/* Show the whole 16:9 cover (logo included) inside the tall image column, over a blurred fill of the same image. */
.case .img { position: relative; isolation: isolate; overflow: hidden; }
.case .img::before, .case .img::after { content: ""; position: absolute; inset: 0; background-image: inherit; background-repeat: no-repeat; background-position: center; }
.case .img::before { z-index: -1; background-size: cover; filter: blur(26px) brightness(0.6); transform: scale(1.15); }
.case .img::after { inset: auto 0; top: 50%; transform: translateY(-50%); aspect-ratio: 16 / 9; background-size: cover; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 84%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 84%, transparent); }
.case .body { padding: clamp(28px, 4vw, 44px); display: flex; flex-direction: column; }
.case .tag { font-size: 12.5px; color: var(--text-3); margin-bottom: 12px; }
.case h3 { margin-bottom: 12px; }
.case p { color: var(--text-3); }
.case .body > .link-arrow { align-self: flex-start; margin: 2px 0 22px; }
.case .facts { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--border); display: flex; gap: 28px; flex-wrap: wrap; }
.case .facts b { display: block; font-size: 26px; font-weight: 500; letter-spacing: -0.03em; color: var(--text); }
.case .facts span { font-size: 13px; color: var(--text-3); }
@media (max-width: 900px) { .case { grid-template-columns: 1fr; } .case .img { min-height: 220px; } }

/* Split heroes carry a smaller headline than centered heroes */
.hero-grid h1 { font-size: clamp(2.4rem, 4.2vw, 3.5rem); }

/* Buyer quotes (replaces the tick-box checklist) */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.quote { margin: 0; padding: 26px; border-radius: 20px; border: 1px solid var(--border); background: var(--card-solid); box-shadow: var(--card-shadow); display: flex; flex-direction: column; gap: 18px; }
.quote p { margin: 0; color: var(--text); font-size: 18px; line-height: 1.45; letter-spacing: -0.01em; }
.quote span { margin-top: auto; font-family: "DM Sans", system-ui, sans-serif; font-size: 12px; color: var(--text-3); }
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr; } }

/* ---------- Buttons, site-wide (one style on every page): square, uppercase; the main call to action is outlined
   with an arrow and fills white on hover ---------- */
.btn, .gridhero .btn, .ind-btn { border-radius: 0; padding: 16px 26px; font: 500 12.5px/1.2 "DM Sans", system-ui, sans-serif; text-transform: uppercase; letter-spacing: .14em; box-shadow: none; }
.btn.sm { padding: 12px 18px; font-size: 11.5px; }
.btn:hover, .ind-btn:hover { box-shadow: none; transform: none; }
.btn.ghost { color: var(--text); }
/* Main call to action: outlined, with an arrow; on hover it fills white and the text turns dark */
.btn:not(.ghost) { background: transparent; color: var(--text); border: 1px solid rgba(244, 244, 246, .55); gap: 12px; transition: background .25s ease, color .25s ease, border-color .25s ease; }
.btn:not(.ghost)::after { content: ""; width: 14px; height: 14px; flex: none; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8h11M9 4l4 4-4 4' fill='none' stroke='black' stroke-width='1.5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8h11M9 4l4 4-4 4' fill='none' stroke='black' stroke-width='1.5'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform .25s ease; }
.btn:not(.ghost):hover, .btn:not(.ghost):focus-visible { background: #f4f4f6; color: #0a0a0c; border-color: #f4f4f6; }
.btn:not(.ghost):hover::after, .btn:not(.ghost):focus-visible::after { transform: translateX(3px); }
.btn.ghost { border-color: rgba(244, 244, 246, .2); color: var(--text-3); }
.btn.ghost:hover { color: var(--text); border-color: rgba(244, 244, 246, .55); }
/* Secondary CTA, site-wide: text with an arrow, no box */
.btn.ghost { border: 0; background: none; padding: 8px 2px; gap: 10px; font: 500 15px/1.2 "DM Sans", system-ui, sans-serif; text-transform: none; letter-spacing: 0; color: var(--text-3); }
.btn.ghost::after { content: ""; width: 13px; height: 13px; flex: none; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8h11M9 4l4 4-4 4' fill='none' stroke='black' stroke-width='1.5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8h11M9 4l4 4-4 4' fill='none' stroke='black' stroke-width='1.5'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform .25s ease; }
.btn.ghost:hover, .btn.ghost:focus-visible { color: var(--text); background: none; border: 0; }
.btn.ghost:hover::after, .btn.ghost:focus-visible::after { transform: translateX(3px); }
.btn-row:has(.btn.ghost) { gap: 12px 20px; }
/* CTA arrows: diagonal, like the department cards; on hover they travel up and to the right */
.btn:not(.ghost)::after, .btn.ghost::after { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 12 12 4M5.5 4H12v6.5' fill='none' stroke='black' stroke-width='1.5'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 12 12 4M5.5 4H12v6.5' fill='none' stroke='black' stroke-width='1.5'/%3E%3C/svg%3E"); transition: transform .35s ease; }
.btn:not(.ghost):hover::after, .btn:not(.ghost):focus-visible::after, .btn.ghost:hover::after, .btn.ghost:focus-visible::after { transform: translate(3px, -3px); }

/* ---------- Header menu: square, three motion options (line follows the cursor, card grows out of the button) ---------- */
.nav-links > li > a, .nav-links > li > button { border-radius: 0; background: none !important; }
.nav-links > li > a:hover, .nav-links > li > button:hover, .nav-links > li.open > button, .nav-links a[aria-current="page"] { color: var(--text); }
.mega, .mega a.item { border-radius: 0; }
.mega .col-title { letter-spacing: 0; text-transform: none; font-size: 12.5px; color: var(--text-4); }
.mega a.item { transition: background 180ms var(--ease), color 180ms var(--ease); }
.mega a.item b { transition: transform 220ms var(--ease); }
.mega a.item:hover b { transform: translateX(4px); }
.mega .col a.item, .mega .foot-line { --d: calc(var(--i, 0) * 28ms); }
.mm-title { font-size: 12.5px; color: var(--text-4); padding: 6px 0 2px; }


/* A line under the menu follows the cursor; the Solutions card grows out of its button */
.nav-links { position: relative; }
.nav-ink { position: absolute; bottom: -1px; height: 1px; background: var(--text); left: 0; width: 0; opacity: 0; transition: left 320ms var(--ease), width 320ms var(--ease), opacity 200ms ease; pointer-events: none; }
.mega { top: calc(100% + 16px); transform-origin: 40px 0; transform: scale(.94); transition: opacity 200ms ease, transform 260ms var(--ease), visibility 0s 260ms; }
.nav-links li.open .mega { transform: none; transition: opacity 200ms ease, transform 300ms var(--ease), visibility 0s; }
.nav-links > li.has-menu::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 18px; }
@media (prefers-reduced-motion: reduce) { .mega, .mega *, .nav-ink { transition: none !important; } }
/* Header: transparent at the top of the page, background once the page scrolls */
.nav { transition: background 260ms ease, border-color 260ms ease, backdrop-filter 260ms ease; }
.nav:not(.scrolled) { background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
/* Header lines up with the frame lines of the page */
@media (min-width: 601px) { .nav .wrap { width: min(var(--max) + 64px, 100% - 16px); } }

/* Small labels: plain sentence case in the body font. No tracked capitals, no monospace. */
html body :is(.eyebrow, .mono, .st-lab, .st-c a, .hw-time, .ly-count, .ly-ex span, .mega .col-title, .ba-head > div, .form-legend, .lbl, .tl-head > div, .built-lbl, .fsteps .time, .fsteps h4, .ledger .meta, .cases3 .tag, .ceo .by span, .mh-tag) {
  font-family: "DM Sans", system-ui, sans-serif !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 14px !important;
  font-weight: 400 !important;
}
html body .tl-row > div[data-l]::before { font-family: "DM Sans", system-ui, sans-serif !important; text-transform: none !important; letter-spacing: 0 !important; font-size: 13px !important; }
.foot-links { display: inline-flex; gap: 20px; }
.menu-btn { border-radius: 0; }
@media (max-width: 600px) { main #numbers > .wrap, main #industries > .wrap, main #departments > .wrap, main #how-we-work > .wrap, main #cases > .wrap { width: calc(100% - 32px) !important; } }

/* ======================================================================
   Inner pages in the home style: square shapes, frame lines with crosses
   between sections, Inter Tight headings, no pills, no monospace.
   ====================================================================== */
:root { --frame: min(var(--max) + 64px, 100% - 16px); --fs-display: clamp(2.6rem, 5.2vw, 4.7rem); --fs-h2: clamp(2.1rem, 3.78vw, 3.4rem); --fs-h3: clamp(1.6rem, 2.39vw, 2.15rem); --fs-h4: clamp(1.25rem, 1.67vw, 1.5rem); }
@media (max-width: 600px) { :root { --frame: calc(100% - 12px); } }
main.inner { position: relative; }
main.inner .section, main.inner .hero { position: relative; background-image: linear-gradient(var(--border), var(--border)), linear-gradient(var(--border), var(--border)); background-size: 1px 100%; background-repeat: no-repeat; background-position: calc(50% - var(--frame) / 2) 0, calc(50% + var(--frame) / 2) 0; }
main.inner .section { border-top: 1px solid var(--border); }
main.inner .section::before, main.inner .section::after { content: ""; position: absolute; top: -6px; width: 11px; height: 11px; pointer-events: none; z-index: 1; background: linear-gradient(var(--text-3), var(--text-3)) center / 100% 1px no-repeat, linear-gradient(var(--text-3), var(--text-3)) center / 1px 100% no-repeat; }
main.inner .section::before { left: calc(50% - var(--frame) / 2 - 5px); }
main.inner .section::after { left: calc(50% + var(--frame) / 2 - 6px); }
main.inner .section.band { background-color: transparent; }

/* Type */
main.inner h1, main.inner h2, main.inner h3, main.inner h4, main.inner .faq summary { font-family: "Inter Tight", "DM Sans", system-ui, sans-serif; font-weight: 400; }
main.inner h1 { font-size: var(--fs-display); letter-spacing: -0.045em; line-height: 1.02; }
main.inner h2 { font-size: var(--fs-h2); letter-spacing: -0.04em; line-height: 1.05; }
main.inner .card h3, main.inner .card h4, main.inner .steps h3, main.inner .case h3 { font-size: var(--fs-h4); letter-spacing: -0.03em; line-height: 1.2; }
main.inner .head.center { margin-inline: 0; text-align: left; }
main.inner .head.center .lede { margin-inline: 0; }

/* Square everything */
main.inner *:not(.dot):not(.hw-dot) { border-radius: 0 !important; }
main.inner .card, main.inner .steps li, main.inner .visual, main.inner .case, main.inner .cta-panel, main.inner .tabpanel { box-shadow: none !important; }
main.inner .card, main.inner .steps li { background: transparent; border: 1px solid var(--border-strong); }
main.inner .grid { gap: 0; }
main.inner .grid > .card { margin: 0 -1px -1px 0; }
main.inner .visual { background: transparent; border: 1px solid var(--border-strong); padding: 0; }
main.inner .placeholder { background: repeating-linear-gradient(135deg, transparent 0 10px, rgba(255,255,255,.025) 10px 11px); border: 0; }
main.inner .placeholder .tag, main.inner .card .kicker, main.inner .steps .when { font-family: "DM Sans", system-ui, sans-serif !important; letter-spacing: 0 !important; text-transform: none !important; font-size: 13.5px !important; color: var(--text-4); }
main.inner .steps li::before { font-family: "Inter Tight", "DM Sans", sans-serif; font-weight: 400; font-size: 15px; letter-spacing: 0; color: var(--text-4); margin-bottom: 18px; }
main.inner .checks li::before { width: 14px; height: 1px; margin-top: 13px; background: var(--text-3); box-shadow: none; }

/* Tabs: a row of words with a line under the active one */
main.inner .tabs { display: flex; gap: 28px; padding: 0; border: 0; border-bottom: 1px solid var(--border-strong); background: none; }
main.inner .tabs button { padding: 0 0 14px; margin-bottom: -1px; background: none !important; color: var(--text-3); border-bottom: 1px solid transparent; font-size: 15px; }
main.inner .tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--text); }

/* FAQ like the home: plus that turns into a minus */
main.inner .faq { max-width: none; }
main.inner .faq details { border-color: var(--border-strong); }
main.inner .faq summary { padding: 30px 56px 30px 0; font-size: clamp(1.15rem, 1.7vw, 1.45rem); line-height: 1.25; letter-spacing: -0.03em; }
main.inner .faq summary::before, main.inner .faq summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 15px; height: 1px; margin: 0; border: 0; background: var(--text); transform: none; transition: transform .35s ease, opacity .35s ease; }
main.inner .faq summary::before { transform: rotate(90deg); }
main.inner .faq details[open] summary::before { transform: rotate(0deg); opacity: 0; }
main.inner .faq details[open] summary::after { transform: none; margin: 0; }
main.inner .faq .a { padding: 0 56px 32px 0; max-width: 60ch; font-size: 15.5px; line-height: 1.65; color: var(--text-3); }

/* Closing call to action: no panel, ruled list */
main.inner .cta-panel { background: none !important; border: 0 !important; padding: 0 !important; }
main.inner .cta-panel::before, main.inner .cta-panel::after { display: none !important; }
main.inner .cta-panel ul { gap: 0; border-top: 1px solid var(--border-strong); }
main.inner .cta-panel li { padding: 18px 0; border-bottom: 1px solid var(--border-strong); color: var(--text); font-size: 17px; }
main.inner .cta-panel li::before { display: none; }

/* Case card on inner pages */
main.inner .case .img { filter: grayscale(1); }
main.inner .numbers { border-color: var(--border-strong); }
main.inner .hero.center { text-align: left; }
main.inner .hero.center .lede { margin-inline: 0; }
main.inner .hero.center .btn-row { justify-content: flex-start; }
main.inner .hero.center h1 { margin-inline: 0; }
main.inner .case .built li::before { width: 10px; height: 1px; top: .78em; background: var(--text-3); }
/* Language dropdown in the header */
.lang-dd { position: relative; margin-right: 6px; }
.lang-dd summary { list-style: none; display: flex; align-items: center; gap: 6px; padding: 8px 10px; font-size: 13.5px; color: var(--text-2); cursor: pointer; }
.lang-dd summary::-webkit-details-marker { display: none; }
.lang-dd summary:hover, .lang-dd[open] summary { color: var(--text); }
.lang-dd .chev { width: 10px; height: 10px; transition: transform 200ms var(--ease); }
.lang-dd[open] .chev { transform: rotate(180deg); }
.lang-menu { position: absolute; top: calc(100% + 10px); right: 0; min-width: 150px; padding: 6px 0; background: var(--card-solid); border: 1px solid var(--border-strong); box-shadow: 0 20px 40px rgba(0,0,0,.35); z-index: 60; }
.lang-menu a { display: block; padding: 10px 16px; font-size: 14px; color: var(--text-3); }
.lang-menu a:hover { color: var(--text); background: rgba(255,255,255,.04); }
.lang-menu a[aria-current] { color: var(--text); }
@media (max-width: 900px) { .calc { grid-template-columns: minmax(0, 1fr); } .calc .rng label { gap: 12px; } }
@media (max-width: 600px) { .btn { white-space: normal; max-width: 100%; text-align: center; justify-content: center; } }

/* ---------- Figures on the subpages: process flows and example screens ---------- */
.visual:has(.fig) { aspect-ratio: auto !important; min-height: 0 !important; border: 0 !important; background: none !important; padding: 0 !important; display: block; }
.fig { margin: 0; font-family: "DM Sans", system-ui, sans-serif; }
.fig-flow { border: 1px solid var(--border-strong); background: #0d0d10; padding: 22px 22px 18px; }
.fig-flow figcaption { font: 400 1.05rem/1.3 "Inter Tight", "DM Sans", sans-serif; letter-spacing: -0.015em; color: var(--text); margin-bottom: 18px; }
.fig-flow ol { list-style: none; margin: 0; padding: 0; position: relative; }
.fig-flow li { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 0 0 16px; position: relative; }
.fig-flow li:not(:last-child)::before { content: ""; position: absolute; left: 6px; top: 16px; bottom: -2px; width: 1px; background: var(--border-strong); }
.fl-m { width: 13px; height: 13px; margin-top: 3px; border: 1px solid var(--text-3); background: #0d0d10; position: relative; z-index: 1; }
.fl-agent .fl-m { border-color: #8b7cff; background: rgba(139, 124, 255, .25); }
.fl-person .fl-m { border-color: #f5be6e; background: rgba(245, 190, 110, .18); }
.fl-rule .fl-m { background: rgba(255, 255, 255, .12); }
.fl-b b { display: block; font-weight: 500; font-size: 14.5px; line-height: 1.35; color: var(--text); }
.fl-b span { display: block; margin-top: 2px; font-size: 13px; line-height: 1.45; color: var(--text-3); }
.fl-w { text-align: right; font-size: 12.5px; line-height: 1.35; color: var(--text-2); white-space: nowrap; }
.fl-w i { display: block; font-style: normal; color: var(--text-4); }
.fl-agent .fl-w i { color: #a99fff; }
.fl-person .fl-w i { color: #f5be6e; }
.fl-note { margin: 4px 0 0; padding-top: 14px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-3); }
.fig-win { border: 1px solid var(--border-strong); background: #0d0d10; }
.win-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--border-strong); font-size: 12.5px; }
.win-app { color: var(--text-2); font-weight: 500; }
.win-tag { color: var(--text-4); }
.win-body { padding: 16px 16px 18px; }
.win-title { font: 400 1.05rem/1.3 "Inter Tight", "DM Sans", sans-serif; letter-spacing: -0.015em; color: var(--text); margin-bottom: 14px; }
.win-scroll { overflow-x: auto; }
.fig-win table { width: 100%; border-collapse: collapse; font-size: 13px; }
.fig-win th { text-align: left; font-weight: 400; color: var(--text-4); padding: 0 10px 8px 0; border-bottom: 1px solid var(--border-strong); white-space: nowrap; }
.fig-win td { padding: 9px 10px 9px 0; border-bottom: 1px solid var(--border); color: var(--text-2); white-space: nowrap; }
.fig-win td:first-child { color: var(--text); }
.pill { display: inline-block; padding: 2px 8px; font-size: 12px; border: 1px solid currentColor; }
.pill-ok { color: #6ee7a0; } .pill-wait { color: #f5be6e; } .pill-issue { color: #f08a8a; } .pill-none { color: var(--text-3); }
.doc-ask { margin-bottom: 14px; padding: 10px 12px; border: 1px solid var(--border-strong); font-size: 13.5px; color: var(--text); }
.doc-b { padding: 10px 0; border-top: 1px solid var(--border); }
.doc-b:first-of-type { border-top: 0; padding-top: 0; }
.doc-b b { display: block; font-weight: 500; font-size: 13.5px; color: var(--text); margin-bottom: 3px; }
.doc-b p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--text-3); }
.doc-src { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.doc-src span { padding: 3px 8px; border: 1px solid var(--border-strong); font-size: 12px; color: var(--text-3); }
@media (max-width: 600px) { .fig-flow li { grid-template-columns: 14px minmax(0, 1fr); } .fl-w { grid-column: 2; text-align: left; } .fl-w i { display: inline; margin-left: 6px; } }
.split > *, .hero-grid > *, .visual, .fig { min-width: 0; }
@media (max-width: 900px) { .split, .hero-grid { grid-template-columns: minmax(0, 1fr) !important; } }
@media (max-width: 600px) { .fig-win td, .fig-win th { white-space: normal; padding-right: 8px; font-size: 12.5px; } .pill { white-space: nowrap; } .win-body { padding: 12px; } }
/* Drawn flowchart (replaces the tagged list) */
.fig-fd figcaption { font-size: 14px; color: var(--text-3); margin-bottom: 16px; }
.fd { display: flex; flex-direction: column; align-items: stretch; }
.fd-n { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 13px 16px; border: 1px solid var(--border-strong); background: #0d0d10; }
.fd-n b { font-weight: 400; font-size: 15px; color: var(--text); }
.fd-n span { font-size: 12.5px; color: var(--text-4); white-space: nowrap; }
.fd-agent { border-color: #8b7cff; background: rgba(139, 124, 255, .08); }
.fd-agent span { color: #a99fff; }
.fd-person { border-style: dashed; }
.fd-a { position: relative; height: 22px; }
.fd-a::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 5px; width: 1px; background: var(--text-3); }
.fd-a::after { content: ""; position: absolute; left: calc(50% - 4px); bottom: 2px; width: 7px; height: 7px; border-right: 1px solid var(--text-3); border-bottom: 1px solid var(--text-3); transform: rotate(45deg); }
.fd-ex { display: flex; gap: 12px; margin-top: 18px; align-items: flex-start; }
.fd-ex i { flex: none; width: 22px; height: 14px; margin-top: 3px; border-left: 1px dashed var(--text-4); border-bottom: 1px dashed var(--text-4); }
.fd-ex p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--text-3); }
@media (max-width: 600px) { .fd-n { flex-direction: column; gap: 2px; } }
/* Subpage heroes: no frame lines, no eyebrow repeating the breadcrumb, calmer title */
main.inner .hero { background-image: none !important; }
main.inner .hero .crumbs + .eyebrow, main.inner .hero .crumbs ~ .eyebrow { display: none; }
main.inner .hero h1 { font-size: clamp(2.3rem, 3.7vw, 3.5rem); line-height: 1.06; letter-spacing: -0.04em; }
/* Subpages: no labels above titles, no icon squares in cards */
main.inner .eyebrow, main.inner .label, main.inner .card .icon { display: none !important; }
@media (max-width: 600px) { .fig-win table { table-layout: fixed; } .fig-win td, .fig-win th { overflow-wrap: anywhere; } .pill { white-space: normal; } }
/* Cookie consent banner */
.ck { position: fixed; left: 16px; bottom: 16px; z-index: 80; width: min(420px, calc(100% - 32px)); padding: 18px 18px 16px; background: #111114; border: 1px solid var(--border-strong); box-shadow: 0 20px 50px rgba(0,0,0,.45); }
.ck p { margin: 0 0 14px; font-size: 14px; line-height: 1.55; color: var(--text-2); }
.ck p a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.ck-b { display: flex; gap: 8px; justify-content: flex-end; }
.ck-b button { padding: 9px 16px; font: 500 13px "DM Sans", system-ui, sans-serif; cursor: pointer; border: 1px solid var(--border-strong); background: transparent; color: var(--text); }
.ck-b .ck-yes { background: var(--text); color: #0a0a0c; border-color: var(--text); }
.ck-b button:hover { border-color: var(--text-3); }
/* Minimal footer */
.foot-min .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; padding-block: 36px; }
.foot-min .foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; }
.foot-min .foot-links a { color: var(--text-3); }
.foot-min .foot-links a:hover { color: var(--text); }
/* Cards are not links for now: no arrows, no hover lift */
div.dq-c .dq-a, div.dp-c .dp-a, div.cs .link-arrow { display: none; }
div.dq-c, div.dp-c, div.cs { cursor: default; }
@media (max-width: 900px) { .mobile-menu > a.btn { color: var(--text); border: 1px solid var(--text); padding: 16px 22px; font-size: 13px; } .mobile-menu > a.btn:hover { background: var(--text); color: #0a0a0c; } }
/* Mobile sticky booking button */
.m-cta { display: none; }
@media (max-width: 900px) {
  .m-cta { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(to top, rgba(10,10,12,.96) 70%, rgba(10,10,12,0)); transform: translateY(14px); opacity: 0; pointer-events: none; transition: transform .6s cubic-bezier(.22, 1, .36, 1), opacity .45s ease; }
  .m-cta.on { transform: none; opacity: 1; pointer-events: auto; }
  .m-cta .btn { display: flex; justify-content: center; width: 100%; background: var(--text); color: #0a0a0c; border-color: var(--text); }
}
@media (prefers-reduced-motion: reduce) { .m-cta { transition: none; } }
