/* ============================================================
   Component classes — vanilla CSS using Open Props + theme tokens
   Shared patterns used on 2+ pages. Page-specific CSS lives in
   each page's scoped <style> block.
   ============================================================ */

/* CC overrides — font-face + base reset handled by framework + theme */
/* Brand-specific heading color */
h1, h2, .h1, .h2 { color: var(--color-secondary); font-weight: var(--weight-extrabold); letter-spacing: var(--tracking-tight); }
h3, h4, .h3, .h4 { color: var(--color-secondary); font-weight: var(--weight-bold); letter-spacing: var(--tracking-snug); }
h5, h6, .h5, .h6 { color: var(--color-secondary); font-weight: var(--weight-semibold); }

/* ---- Typography utilities ---- */
.lede { font-size: var(--text-lg); line-height: var(--line-relaxed); color: var(--color-ink-soft); margin: var(--space-m) 0; max-width: 42em; }
.lede strong { color: var(--color-secondary); }
.lede a { color: var(--color-primary); font-weight: var(--weight-bold); }
.display-stat { font-size: var(--step-5); font-weight: var(--weight-extrabold); line-height: var(--line-none); }

/* ---- Range slider ---- */
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; cursor: pointer; border: 0; outline: none; }
input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: var(--radius-full); background: linear-gradient(to right, var(--color-accent) var(--range-pct, 50%), var(--brand-100) var(--range-pct, 50%)); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: var(--radius-full); background: var(--color-primary); border: 3px solid #fff; box-shadow: 0 2px 8px rgba(13,38,56,.18); margin-top: -7px; cursor: pointer; }
input[type="range"]::-moz-range-track { height: 8px; border-radius: var(--radius-full); background: var(--brand-100); border: 0; }
input[type="range"]::-moz-range-progress { height: 8px; border-radius: var(--radius-full); background: var(--color-accent); }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: var(--radius-full); background: var(--color-primary); border: 3px solid #fff; box-shadow: 0 2px 8px rgba(13,38,56,.18); cursor: pointer; }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px rgba(103,184,220,.4); }
.caption { font-size: var(--step--1); color: var(--color-ink-soft); }
.caption-sm { font-size: var(--step--2); color: var(--color-ink-soft); }

/* ---- Layout ---- */
.wrap { max-width: var(--grid-max-width); margin: 0 auto; padding: 0 var(--space-m); position: relative; z-index: 1; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
section.block { padding: var(--space-4xl) 0; }
.block.tint { background: var(--color-surface); }
.block.pale { background: linear-gradient(180deg, var(--brand-50), var(--color-surface)); }

/* ---- Grid utility ---- */
.grid { display: grid; gap: var(--space-m); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }

/* ---- Eyebrow ---- */
.eyebrow { font-size: var(--text-md); font-weight: var(--weight-bold); letter-spacing: .14em; text-transform: uppercase; color: var(--color-accent); margin: 0 0 var(--space-xs); }
.eyebrow.on-dark { color: var(--color-accent); }

/* ---- Gradient rule ---- */
.rule { width: var(--space-2xl); height: var(--space-3xs); border-radius: var(--radius-xs); background: var(--grad-line); }

/* ---- Section head ---- */
.section-head { max-width: 760px; margin: 0 auto var(--space-xl); text-align: center; }
.section-head h2 { }
.section-head p { font-size: var(--text-lg); line-height: var(--line-relaxed); color: var(--color-ink-soft); margin: var(--space-xs) 0 0; }
.section-head .rule { margin: var(--space-s) auto 0; }
.section-head .eyebrow { color: var(--color-accent); font-size: var(--text-md); }
.section-head .eyebrow.on-dark { color: var(--color-accent); }

/* ---- Buttons ---- */
/* CC button overrides — gradient fills + brand shadows */
.btn-primary { background: var(--grad-primary) border-box; border-color: transparent; color: var(--color-primary-content); box-shadow: 0 12px 26px oklch(from var(--color-primary) l c h / 38%); }
.btn-primary:hover { background: var(--grad-primary); transform: translateY(-2px); box-shadow: 0 18px 36px oklch(from var(--color-primary) l c h / 50%); }
.btn-solid { background: var(--grad-deep) border-box; border-color: transparent; color: var(--color-primary-content); box-shadow: 0 12px 26px oklch(from var(--color-secondary) l c h / 32%); }
.btn-solid:hover { background: var(--grad-deep); transform: translateY(-2px); box-shadow: 0 18px 38px oklch(from var(--color-secondary) l c h / 42%); }
.btn-ghost { background: rgb(255 255 255 / 12%); color: #fff; border: 1.5px solid rgb(255 255 255 / 55%); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgb(255 255 255 / 22%); transform: translateY(-2px); }
.btn-outline { background: var(--color-surface); color: var(--color-secondary); border: 1.5px solid var(--color-border); }
.btn-outline:hover { border-color: var(--color-accent); transform: translateY(-2px); box-shadow: var(--shadow-xs); }

/* ---- Hero CTA row ---- */
.btn-row { display: flex; gap: var(--space-s); flex-wrap: wrap; }

/* ---- Icon chip ---- */
.chip-ic { width: 38px; height: 38px; border-radius: var(--radius-lg); flex: none; display: flex; align-items: center; justify-content: center; background: var(--grad-chip); color: #fff; margin-bottom: var(--space-xs); }
.chip-ic svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 2; }
.chip-ic-sm { width: var(--space-xl); height: var(--space-xl); }
.chip-ic-sm svg { width: 24px; height: 24px; }
.chip-ic.pale { background: var(--brand-100); color: var(--color-secondary); }
.chip-ic.pale svg { stroke: var(--color-secondary); }

/* ---- Card ---- */
.card {
  background: var(--brand-25); border: none;
  border-radius: var(--radius-xl); padding: var(--space-l);
  box-shadow: var(--shadow-xs);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--color-accent); }
.card h3 { margin: 0 0 var(--space-2xs); }
.card p { margin: 0; color: var(--color-ink-soft); font-size: var(--text-md); line-height: var(--line-relaxed); }

/* ---- Callout ---- */
.callout { border-left: 5px solid var(--color-accent); background: var(--brand-50); border-radius: 0 var(--radius-xl) var(--radius-xl) 0; padding: var(--space-xs) var(--space-m); color: var(--brand-600); font-size: var(--text-md); }
.callout strong { color: var(--color-secondary); }

/* Callout with icon */
.callout-icon { display: flex; align-items: flex-start; gap: var(--space-xs); }
.callout-icon svg { width: 22px; height: 22px; flex-shrink: 0; margin-top: 1px; stroke: var(--color-accent); fill: none; stroke-width: 2; }
.callout-icon img { width: 22px; height: 22px; flex-shrink: 0; margin-top: 1px; }

/* Semantic colour variants */
.callout-info { border-left-color: var(--info-mid); background: var(--info-light); }
.callout-info svg { stroke: var(--info-mid); }
.callout-success { border-left-color: var(--success-mid); background: var(--success-light); }
.callout-success svg { stroke: var(--success-mid); }
.callout-warning { border-left-color: var(--warning-mid); background: var(--warning-light); color: var(--warning-dark); }
.callout-warning svg { stroke: var(--warning-mid); fill: var(--warning-mid); }
.callout-warning strong { color: var(--warning-dark); }
.callout-danger { border-left-color: var(--danger-mid); background: var(--danger-light); }
.callout-danger svg { stroke: var(--danger-mid); }

/* ---- Float card (overlaid stat/info card on photos) ---- */
.float-card { position: absolute; display: flex; align-items: center; gap: var(--space-xs); background: #fff; border-radius: var(--radius-xl); padding: var(--space-xs) var(--space-s); box-shadow: var(--shadow-lg); max-width: 300px; }
.float-card-ic { width: 44px; height: 44px; flex: none; border-radius: var(--radius-lg); background: var(--grad-chip); color: #fff; display: flex; align-items: center; justify-content: center; }
.float-card-ic svg { width: 23px; height: 23px; stroke: #fff; fill: none; stroke-width: 2; }
.float-card strong { display: block; color: var(--color-secondary); font-size: var(--text-sm); line-height: var(--line-snug); }
.float-card > div span { font-size: var(--text-sm); color: var(--color-ink-soft); }

/* ---- Banner badge (used in CTA bands, hero sections) ---- */
.banner { display: inline-flex; align-items: center; gap: var(--space-2xs); background: rgba(103,184,220,.18); border: 1px solid rgba(103,184,220,.45); color: #fff; font-weight: var(--weight-bold); font-size: var(--text-sm); letter-spacing: .06em; text-transform: uppercase; padding: var(--space-2xs) var(--space-s); border-radius: var(--radius-full); margin-bottom: var(--space-m); }
.banner svg { width: 16px; height: 16px; stroke: var(--color-accent); fill: none; stroke-width: 2.2; }

/* ---- CTA band ---- */
.cta-band { background: var(--grad-hero); color: #fff; text-align: center; padding: var(--space-2xl) 0; position: relative; overflow: hidden; }
.cta-band .wrap { position: relative; z-index: 2; }
.cta-band h2 { color: #fff; max-width: 16em; margin: 0 auto var(--space-xs); }
.cta-band p { color: rgba(255,255,255,.9); max-width: 36em; margin: 0 auto var(--space-l); }
.cta-band .btn-row { justify-content: center; }

/* ---- Testimonial card ---- */
.tcard { background: var(--brand-25); border: none; border-radius: var(--radius-xl); padding: var(--space-l); box-shadow: var(--shadow-xs); position: relative; overflow: hidden; display: flex; flex-direction: column; height: 100%; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.tcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tcard .qmark { font-family: Georgia, serif; font-size: 5rem; color: var(--brand-100); line-height: .5; height: 42px; }
.tcard blockquote { margin: 0; font-size: var(--text-md); color: var(--color-ink); line-height: var(--line-relaxed); flex: 1; position: relative; z-index: 1; }
.tcard .who { display: flex; align-items: center; gap: var(--space-xs); margin-top: var(--space-m); padding-top: var(--space-s); border-top: 1px solid var(--color-border-soft); position: relative; z-index: 1; }
.tcard .avatar { width: 50px; height: 50px; border-radius: var(--radius-full); flex: none; background: var(--grad-chip); color: #fff; font-weight: var(--weight-extrabold); font-size: var(--text-md); display: flex; align-items: center; justify-content: center; letter-spacing: .02em; overflow: hidden; }
.tcard .avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tcard .name { font-weight: var(--weight-extrabold); color: var(--color-secondary); font-size: var(--text-md); }
.tcard .role { font-size: var(--text-xs); color: var(--color-ink-soft); }

/* ---- Testimonial card — photo header variant ---- */
.tcard-hero { padding: 0; }
.tcard-photo { display: flex; justify-content: center; padding-top: var(--space-l); }
.tcard-photo img { width: 180px; height: 180px; object-fit: cover; object-position: center top; display: block; border-radius: var(--radius-full); box-shadow: var(--shadow-md); }
.tcard-hero .tcard-body { padding: var(--space-2xl) var(--space-l) var(--space-l); display: flex; flex-direction: column; flex: 1; position: relative; }
.tcard-hero .qmark { font-size: 6rem; margin-top: -48px; margin-bottom: 0; position: relative; z-index: 2; color: var(--color-primary); opacity: .25; line-height: .6; }
.tcard-hero .who { border-top: none; }
.tcard-hero .who { margin-top: auto; }

/* ---- Comparison table ---- */
.compare { max-width: 920px; margin: 0 auto; border: none; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-md); background: var(--brand-25); }
.compare-row { display: grid; grid-template-columns: 1fr 1fr; }
.compare-row + .compare-row { border-top: 1px solid var(--color-border); }
.compare-row span { padding: var(--space-xs) var(--space-m); font-size: var(--text-md); line-height: var(--line-normal); display: flex; align-items: center; gap: var(--space-2xs); }
.compare-row.head span { font-weight: var(--weight-extrabold); font-size: var(--text-sm); letter-spacing: .04em; text-transform: uppercase; color: var(--color-ink-soft); background: var(--brand-50); }
.compare-row.head span:last-child { color: var(--color-secondary); }
.compare-row span.bad { color: var(--color-ink-soft); border-right: 1px solid var(--color-border); }
.compare-row span.good { color: var(--color-ink); font-weight: var(--weight-semibold); background: rgba(46,139,87,.05); }

/* ---- PMS chips ---- */
.pms-row { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-xs); max-width: 840px; margin: 0 auto; }
.pms { display: inline-flex; align-items: center; background: var(--brand-25); border: none; border-radius: var(--radius-xl); padding: var(--space-xs) var(--space-m); font-weight: var(--weight-bold); color: var(--color-secondary); box-shadow: var(--shadow-xs); font-size: var(--text-md); }

/* ---- Photo frame ---- */
.photo-frame { padding: var(--space-xs); border-radius: var(--radius-xl); box-shadow: 0 16px 40px rgba(13,38,56,.14); overflow: hidden; }
.photo-frame.white { background: var(--color-surface); }
.photo-frame img { width: 100%; height: auto; display: block; border-radius: var(--radius-md); object-fit: cover; }

/* ---- Support team ---- */
.support-team .people { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-m); max-width: 880px; margin: 0 auto; }
.sup-person { background: var(--brand-25); border: none; border-radius: var(--radius-xl); padding: var(--space-m); text-align: center; box-shadow: var(--shadow-xs); transition: transform .18s var(--ease), box-shadow .18s var(--ease); }
.sup-person:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.sup-person .avatar { width: var(--space-2xl); height: var(--space-2xl); border-radius: var(--radius-full); margin: 0 auto var(--space-xs); background: var(--grad-chip); color: #fff; font-weight: var(--weight-extrabold); font-size: var(--text-xl); display: flex; align-items: center; justify-content: center; letter-spacing: .02em; overflow: hidden; }
.sup-person .avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sup-person h3 { font-size: var(--text-lg); color: var(--color-secondary); margin: 0 0 var(--space-3xs); }
.sup-person .role { font-size: var(--text-sm); color: var(--color-ink-soft); }
.sup-help { display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-xs); justify-content: center; margin-top: var(--space-l); }
.sup-help span { display: inline-flex; align-items: center; gap: var(--space-2xs); background: var(--brand-50); border-radius: var(--radius-full); padding: var(--space-2xs) var(--space-xs); font-weight: var(--weight-semibold); font-size: var(--text-sm); color: var(--color-secondary); }
.sup-help svg { width: 16px; height: 16px; color: var(--color-primary); stroke: currentColor; fill: none; stroke-width: 2.2; }
@media (max-width: 760px) { .support-team .people { grid-template-columns: 1fr; max-width: 420px; } }

/* ---- Check list (green tick marks — reusable) ---- */
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { position: relative; padding-left: var(--space-m); margin-bottom: var(--space-2xs); font-size: var(--text-md); color: var(--color-ink-soft); line-height: var(--line-normal); }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: var(--radius-full); background: linear-gradient(135deg, var(--color-success), oklch(from var(--color-success) calc(l + 0.1) c h)); color: #fff; font-size: 10px; font-weight: var(--weight-bold); display: flex; align-items: center; justify-content: center; line-height: 1; padding-top: 1px; }

/* ---- Compliance card ---- */
.comp-split { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); }
.comp-left { background: var(--brand-25); padding: var(--space-xl); display: flex; flex-direction: column; justify-content: flex-start; }
.comp-left .eyebrow { color: var(--color-accent); font-size: var(--text-md); margin-bottom: var(--space-xs); }
.comp-left h2 { margin-bottom: var(--space-s); }
.comp-left p { color: var(--color-ink); font-size: var(--text-lg); }
.comp-right { background: var(--grad-deep); padding: var(--space-xl); display: flex; flex-direction: column; gap: var(--space-l); }
.comp-col { }
.comp-col-row { display: flex; gap: var(--space-xs); align-items: center; margin-bottom: var(--space-2xs); }
.comp-col-ic { width: 38px; height: 38px; flex: none; border-radius: var(--radius-lg); background: rgba(255,255,255,.12); color: #fff; display: flex; align-items: center; justify-content: center; }
.comp-col-ic svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 2; }
.comp-col h3 { font-size: var(--text-lg); font-weight: var(--weight-bold); color: #fff; margin: 0 0 var(--space-2xs); }
.comp-right .check-list li { color: rgba(255,255,255,.82); }
.comp-right .check-list li::before { background: linear-gradient(135deg, var(--color-accent), var(--color-primary)); }
.comp-col + .comp-col { border-top: 1px solid rgba(255,255,255,.1); padding-top: var(--space-l); }
@media (max-width: 880px) { .comp-split { grid-template-columns: 1fr; } }

/* ---- Logos band ---- */
.logos-band { padding: var(--space-2xl) 0 var(--space-xl); background: var(--color-surface); }
.logos-lead { text-align: center; color: var(--color-ink-soft); font-weight: var(--weight-semibold); font-size: var(--text-sm); letter-spacing: .01em; margin: 0 0 var(--space-l); }
.logo-chip { flex: none; height: 62px; margin: 0 var(--space-xl); display: flex; align-items: center; justify-content: center; }
.logo-chip img { max-height: 42px; max-width: 185px; width: auto; height: auto; object-fit: contain; display: block; }

/* ---- Ruled list (2-col, top-bordered items) ---- */
.ruled-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 var(--space-xl); }
.ruled-list li { padding: var(--space-xs) 0; border-top: 1px solid var(--color-border-soft); font-size: var(--text-md); line-height: var(--line-normal); color: var(--color-ink); }
.ruled-list li strong { color: var(--color-secondary); }
.ruled-list sup { margin-left: var(--space-3xs); }
.ruled-list sup a, .ruled-list sup button { color: var(--color-primary); font-weight: var(--weight-bold); font-size: .65em; cursor: pointer; background: none; border: 0; padding: 0; font: inherit; font-size: .65em; font-weight: var(--weight-bold); vertical-align: super; line-height: 0; }
@media (max-width: 680px) { .ruled-list { grid-template-columns: 1fr; } }

/* ---- Modal (generic) ---- */
body:has(dialog[open]), body:has(dialog:modal) { overflow: hidden; }
.modal, .refs-modal { width: min(760px, 92vw); max-height: 84vh; border: 0; border-radius: var(--radius-xl); padding: 0; box-shadow: var(--shadow-xl); color: var(--color-ink); background: var(--color-surface); overflow: hidden; }
.modal::backdrop, .refs-modal::backdrop { background: rgba(13,38,56,.45); backdrop-filter: blur(4px); }

.modal-head, .refs-modal .refs-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-xs); padding: var(--space-s) var(--space-m); border-bottom: 1px solid var(--color-border); position: sticky; top: 0; background: var(--color-surface); z-index: 1; }
.modal-head h3, .refs-modal .refs-head h3 { margin: 0; }

.modal-close, .refs-modal .refs-close { width: 38px; height: 38px; border-radius: var(--radius-md); border: 1px solid var(--color-border); background: var(--color-surface); cursor: pointer; display: flex; align-items: center; justify-content: center; flex: none; color: var(--color-secondary); }
.modal-close:hover, .refs-modal .refs-close:hover { border-color: var(--color-accent); background: var(--brand-50); }
.modal-close svg, .refs-modal .refs-close svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; }

.modal-body, .refs-modal .refs-body { padding: var(--space-m); overflow-y: auto; max-height: calc(84vh - 76px); }
.modal-foot { padding: var(--space-s) var(--space-m); border-top: 1px solid var(--color-border); display: flex; align-items: center; justify-content: flex-end; gap: var(--space-xs); }

/* ---- References modal (extends generic) ---- */
.refs-modal ol { font-size: var(--text-sm); color: var(--color-ink-soft); line-height: var(--line-relaxed); padding-left: 2em; margin: 0; list-style: decimal; }
.refs-modal li { margin-bottom: var(--space-2xs); scroll-margin-top: var(--space-2xs); border-radius: var(--radius-md); padding: var(--space-3xs) var(--space-2xs); margin-left: calc(-1 * var(--space-2xs)); }
.refs-modal li em { color: var(--color-ink); }
.refs-modal a { color: var(--color-primary); word-break: break-word; }
.ref-cite { display: inline; appearance: none; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; font-size: .62em; font-weight: var(--weight-bold); color: var(--color-primary); vertical-align: super; line-height: 0; }
.ref-cite:hover { text-decoration: underline; }
.ref-cite + .ref-cite { margin-left: 1px; }
.refs-trigger { display: inline-flex; align-items: center; gap: var(--space-2xs); margin: var(--space-m) auto 0; background: none; border: 0; cursor: pointer; font: inherit; font-weight: var(--weight-bold); font-size: var(--step--1); color: var(--color-primary); }
.refs-trigger svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 2; }
.refs-trigger:hover { text-decoration: underline; }

/* ---- FAQ accordion ---- */
.faq { display: flex; flex-direction: column; gap: var(--space-2xs); max-width: 840px; margin: 0 auto; }
.faq details { background: var(--color-surface); border: none; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-xs); transition: box-shadow .2s var(--ease); }
.faq details[open] { box-shadow: var(--shadow-md); }
.faq summary { list-style: none; cursor: pointer; padding: var(--space-s) var(--space-m); font-weight: var(--weight-bold); font-size: var(--step-1); color: var(--color-secondary); display: flex; align-items: center; justify-content: space-between; gap: var(--space-xs); }
.faq .faq-a { padding: 0 var(--space-m) var(--space-s); }
.faq .faq-a p { margin: 0; line-height: var(--line-relaxed); color: var(--color-ink-soft); }
.faq .faq-a p strong { color: var(--color-secondary); }

/* ---- Split layout ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xl); align-items: center; }
.split h2 { }
.split p { color: var(--color-ink-soft); margin: var(--space-xs) 0 0; line-height: var(--line-relaxed); }
.split .callout { margin-top: var(--space-m); }

/* ---- Stat strip ---- */
.stat-strip { position: relative; z-index: 3; margin-top: -42px; }
.stat-strip .inner { background: var(--color-surface); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); display: grid; grid-template-columns: repeat(4, 1fr); padding: var(--space-2xs) 0; }
.stat-strip .stat { padding: var(--space-s) var(--space-m); text-align: center; border-right: 1px solid var(--color-border-soft); }
.stat-strip .stat:last-child { border-right: 0; }
.stat-strip .num { font-size: var(--step-4); font-weight: var(--weight-extrabold); color: var(--color-secondary); line-height: var(--line-none); }
.stat-strip .num span { color: var(--color-primary); }
.stat-strip .lbl { font-size: var(--step--2); color: var(--color-ink-soft); margin-top: var(--space-2xs); }

/* ---- Video frame ---- */
.video-frame { max-width: 920px; margin: 0 auto; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-xl); background: var(--color-surface-dark); position: relative; aspect-ratio: 16/9; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---- Icon grid ---- */
.icon-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-xs) var(--space-l); max-width: 900px; margin: 0 auto; }
.icon-grid .cell { display: flex; align-items: center; gap: var(--space-xs); background: var(--color-surface); border-radius: var(--radius-xl); padding: var(--space-xs) var(--space-s); box-shadow: var(--shadow-xs); }
.icon-grid .cell .ic { width: 44px; height: 44px; flex: none; border-radius: var(--radius-md); background: var(--brand-100); display: flex; align-items: center; justify-content: center; }
.icon-grid .cell .ic svg { width: 23px; height: 23px; stroke: var(--color-secondary); fill: none; stroke-width: 2; }
.icon-grid .cell p { margin: 0; color: var(--color-ink); }
.icon-grid .cell strong { color: var(--color-secondary); }

/* ---- Stat callout ---- */
.stat-callout { margin: var(--space-xl) auto 0; max-width: 880px; position: relative; z-index: 2; background: var(--grad-deep); color: #fff; border-radius: var(--radius-xl); padding: var(--space-m) var(--space-xl); display: flex; align-items: center; gap: var(--space-l); box-shadow: 0 20px 50px rgba(13,38,56,.3); }
.stat-callout .big { font-size: var(--step-5); font-weight: var(--weight-extrabold); color: var(--color-accent); line-height: var(--line-none); flex: none; }
.stat-callout p { margin: 0; color: rgba(255,255,255,.92); }
.stat-callout p strong { color: #fff; }
.circle-portrait { position: relative; flex: none; width: var(--circle-size, 100px); height: calc(var(--circle-size, 100px) + var(--circle-overflow, 20px)); z-index: 1; overflow: visible; }
.circle-portrait::before { content: ''; position: absolute; bottom: 0; left: 0; width: var(--circle-size, 100px); height: var(--circle-size, 100px); border-radius: var(--radius-full); background: linear-gradient(135deg, var(--brand-100), var(--brand-50)); }
.stat-callout .circle-portrait::before { background: linear-gradient(135deg, rgba(255,255,255,.15), rgba(255,255,255,.05)); }
.circle-portrait img { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: calc(var(--circle-size, 100px) * 1.3); height: auto; max-width: none; z-index: 1; }

/* ---- Money grid ---- */
.money-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--space-xl); align-items: center; }
.money-grid h2 { }
.money-grid > div > p { color: var(--color-ink-soft); margin: var(--space-xs) 0 0; line-height: var(--line-relaxed); }
.money-figs { display: flex; gap: var(--space-s); flex-wrap: wrap; margin: var(--space-m) 0; }
.fig-card { background: var(--brand-25); border: none; border-radius: var(--radius-xl); padding: var(--space-s) var(--space-m); box-shadow: var(--shadow-xs); flex: 1; min-width: 150px; }
.fig-card .v { font-size: var(--step-5); font-weight: var(--weight-extrabold); color: var(--color-secondary); line-height: var(--line-none); }
.fig-card .v small { font-size: var(--step-0); color: var(--color-primary); font-weight: var(--weight-bold); margin-left: .14em; }
.fig-card .k { font-size: var(--step--1); color: var(--color-ink-soft); margin-top: var(--space-2xs); }

/* ---- Bar chart ---- */
.barchart { background: var(--color-surface); border-radius: var(--radius-xl); box-shadow: var(--shadow-md); padding: var(--space-l); }
.barchart h3 { line-height: var(--line-snug); margin: 0 0 var(--space-s); }
.barchart .row { display: grid; grid-template-columns: minmax(120px, 1.1fr) 1.6fr; gap: var(--space-xs); align-items: center; margin-bottom: var(--space-xs); }
.barchart .label { font-size: var(--step--1); font-weight: var(--weight-semibold); color: var(--color-ink); text-align: right; }
.barchart .label strong { color: var(--color-secondary); }
.barchart .track { background: var(--brand-50); border-radius: var(--radius-md); height: 26px; overflow: hidden; position: relative; }
.barchart .fill { height: 100%; width: 0; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: flex-end; padding-right: var(--space-2xs); color: #fff; font-weight: var(--weight-bold); font-size: var(--text-sm); white-space: nowrap; background: linear-gradient(135deg, var(--color-accent), var(--brand-300)); transition: width 1.1s var(--ease); }
.barchart .row.hi .fill { background: var(--grad-deep); }
.barchart .row.hi .label { color: var(--color-secondary); font-weight: var(--weight-extrabold); }
.barchart .cap { font-size: var(--step--2); color: var(--color-ink-soft); margin: var(--space-2xs) 0 0; }

/* ---- Steps ---- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-m); }
.step { position: relative; }
.step .shot { border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-md); border: none; aspect-ratio: 4/3; background: var(--brand-50); margin-bottom: var(--space-xs); }
.step .shot img { width: 100%; height: 100%; object-fit: cover; }
.step .n { position: absolute; top: -14px; left: -10px; z-index: 2; width: 40px; height: 40px; border-radius: var(--radius-full); background: var(--grad-deep); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: var(--weight-extrabold); font-size: var(--step-1); box-shadow: var(--shadow-md); }
.step h3 { margin: 0 0 var(--space-2xs); }
.step p { margin: 0; font-size: var(--step--1); color: var(--color-ink-soft); line-height: var(--line-normal); }

/* ---- Facts grid ---- */
.facts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-s); margin-top: var(--space-xl); }
.fact { background: var(--color-surface); border: none; border-left: 4px solid var(--color-accent); border-radius: var(--radius-xl); padding: var(--space-s); box-shadow: var(--shadow-xs); }
.fact h4 { margin: 0 0 var(--space-3xs); color: var(--color-secondary); }
.fact p { margin: 0; font-size: var(--step--1); color: var(--color-ink-soft); line-height: var(--line-normal); }

/* ---- Eligibility pills ---- */
.elig { display: flex; flex-wrap: wrap; gap: var(--space-xs); justify-content: center; max-width: 880px; margin: 0 auto; }
.elig .pill { display: inline-flex; align-items: center; gap: var(--space-2xs); background: var(--color-surface); border: 1px solid #e0e9f1; border-radius: var(--radius-full); padding: var(--space-2xs) var(--space-s); font-weight: var(--weight-semibold); color: var(--color-secondary); box-shadow: var(--shadow-xs); transition: transform .15s var(--ease), border-color .15s; }
.elig .pill:hover { transform: translateY(-2px); border-color: var(--color-accent); }
.elig .pill .dot { width: 9px; height: 9px; border-radius: var(--radius-full); background: var(--color-accent); }

/* ---- Type card ---- */
.type-card { background: var(--brand-25); border: none; border-radius: var(--radius-xl); padding: var(--space-m); box-shadow: var(--shadow-xs); transition: transform .18s var(--ease), box-shadow .18s; }
.type-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.type-card .ic { width: 38px; height: 38px; border-radius: var(--radius-lg); background: var(--grad-chip); color: #fff; display: flex; align-items: center; justify-content: center; margin-bottom: var(--space-xs); }
.type-card .ic svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 2; }
.type-card h3 { margin: 0 0 var(--space-2xs); }
.type-card p { margin: 0; font-size: var(--text-md); color: var(--color-ink-soft); line-height: var(--line-normal); }
.type-card.feature { display: flex; flex-direction: column; justify-content: center; background: var(--grad-deep); border: 0; }
.type-card.feature h3 { color: #fff; }
.type-card.feature p { color: rgba(255,255,255,.9); margin-top: var(--space-2xs); }

/* ---- Quotes ---- */
.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-m); }
.quote { background: var(--brand-25); border: none; border-radius: var(--radius-xl); padding: var(--space-l); box-shadow: var(--shadow-xs); position: relative; }
.quote::before { content: "\201C"; font-family: Georgia, serif; font-size: 4rem; color: var(--brand-100); position: absolute; top: 6px; left: var(--space-xs); line-height: var(--line-none); }
.quote p { margin: var(--space-xs) 0 0; color: var(--color-ink); font-style: italic; position: relative; line-height: var(--line-relaxed); }
.quote .src { display: block; margin-top: var(--space-xs); font-style: normal; font-weight: var(--weight-bold); font-size: var(--step--2); color: var(--color-primary); }

/* ---- GP-free band ---- */
.gp-free { background: var(--grad-hero); color: #fff; position: relative; overflow: hidden; }
.gp-free-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-m); }
.gp-free-card { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius-xl); padding: var(--space-m); text-align: center; backdrop-filter: blur(4px); display: flex; flex-direction: column; align-items: center; }
.gp-free-card h3 { color: #fff; font-size: var(--text-lg); }
.gp-free-card p { color: rgba(255,255,255,.85); }

/* ---- Legal pages ---- */
.legal-hero { background: var(--brand-50); padding: 160px 0 var(--space-2xl); text-align: center; }
.legal-hero h1 { color: var(--color-secondary); font-weight: var(--weight-extrabold); margin-bottom: var(--space-xs); }
.legal-page { max-width: 780px; margin: 0 auto; padding: var(--space-2xl) var(--space-m); }
.legal-page h2 { color: var(--color-secondary); font-weight: var(--weight-bold); margin: var(--space-xl) 0 var(--space-xs); }
.legal-page p, .legal-page li { color: var(--color-ink-soft); line-height: var(--line-relaxed); }
.legal-page ul, .legal-page ol { padding-left: var(--space-m); margin-bottom: var(--space-xs); }
.legal-page a { color: var(--color-primary); }

/* ---- Route cards ---- */
.routes-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-xs); }
.route-card { display: flex; flex-direction: column; background: var(--brand-25); border: none; border-radius: var(--radius-xl); padding: var(--space-m) var(--space-s) var(--space-s); box-shadow: var(--shadow-xs); transition: transform .2s var(--ease), box-shadow .2s var(--ease); position: relative; overflow: hidden; }
.route-card::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--grad-line); transform: scaleX(0); transform-origin: 0 50%; transition: transform .25s var(--ease); }
.route-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--color-accent); }
.route-card:hover::after { transform: scaleX(1); }
.route-card h3 { margin: 0 0 var(--space-2xs); }
.route-card p { font-size: var(--text-sm); color: var(--color-ink-soft); margin: 0 0 var(--space-xs); flex: 1; }
.route-link { display: inline-flex; align-items: center; gap: var(--space-2xs); font-weight: var(--weight-bold); font-size: var(--step--1); color: var(--color-primary); margin-top: auto; }
.route-link svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.route-card:hover .route-link svg { transform: translateX(4px); }

/* ---- App-screenshot placeholder ---- */
.app-ph { display: flex; align-items: center; justify-content: center; text-align: center; width: 100%; border-radius: var(--radius-xl); border: 2px dashed var(--color-accent); background: var(--brand-50); background-image: repeating-linear-gradient(45deg, transparent, transparent 13px, rgba(103,184,220,.07) 13px, rgba(103,184,220,.07) 26px); color: var(--color-ink-soft); padding: var(--space-m); overflow: hidden; }

/* ---- Responsive overrides ---- */
@media (max-width: 980px) {
  .split, .money-grid { grid-template-columns: 1fr; gap: var(--space-l); }
  .cols-4, .steps { grid-template-columns: repeat(2, 1fr); }
  .quotes { grid-template-columns: 1fr; }
  .facts-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  section.block { padding: var(--space-2xl) 0; }
  .stat-strip .inner { grid-template-columns: 1fr 1fr; }
  .cols-2, .cols-3, .cols-4, .steps, .icon-grid, .facts-grid { grid-template-columns: 1fr; }
  .stat-callout { flex-direction: column; text-align: center; gap: var(--space-xs); }
  .gp-free-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1000px) { .routes-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .routes-grid { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .compare-row span { padding: var(--space-2xs) var(--space-xs); font-size: var(--step--1); } }

/* ---- Nav ---- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: var(--space-xs) 0; transition: background .3s var(--ease), box-shadow .3s var(--ease), padding .3s var(--ease); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--space-s); }
.nav .logo { height: 36px; width: auto; }
.nav .logo.colour { display: none; }
.nav-links { display: flex; align-items: center; gap: var(--space-l); }
.nav-links a.link { color: rgba(255,255,255,.9); font-weight: var(--weight-semibold); font-size: var(--step--1); transition: color .2s; }
.nav-links a.link:hover { color: #fff; }
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: var(--radius-md); border: 1.5px solid rgba(255,255,255,.5); background: rgba(255,255,255,.12); cursor: pointer; align-items: center; justify-content: center; flex: none; }
.nav-toggle svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 2; }

/* ---- Mega menu ---- */
.mega-trigger { position: relative; }
.mega-btn { display: inline-flex; align-items: center; gap: var(--space-3xs); background: none; border: 0; cursor: pointer; font: inherit; padding: 0; color: rgba(255,255,255,.9); font-weight: var(--weight-semibold); }
.mega-caret { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; transition: transform .2s var(--ease); }
.mega-trigger:hover .mega-caret,
.mega-trigger.is-open .mega-caret { transform: rotate(180deg); }

.mega-panel { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); padding-top: var(--space-s); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .25s var(--ease), visibility .25s; z-index: 200; }
.mega-trigger:hover .mega-panel,
.mega-trigger.is-open .mega-panel { opacity: 1; visibility: visible; pointer-events: auto; }

.mega-inner { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--space-l); background: var(--color-surface); border-radius: var(--radius-xl); box-shadow: 0 20px 60px rgba(13,38,56,.18), 0 0 0 1px rgba(13,38,56,.06); padding: var(--space-l); min-width: 860px; }
.mega-inner-sm { grid-template-columns: 1.2fr 0.8fr; min-width: 480px; }

.mega-heading { font-size: var(--text-xs); font-weight: var(--weight-bold); text-transform: uppercase; letter-spacing: .1em; color: var(--color-ink-soft); margin: 0 0 var(--space-xs); padding-bottom: var(--space-2xs); border-bottom: 1px solid var(--color-border-soft); }

.mega-item { display: flex; align-items: flex-start; gap: var(--space-xs); padding: var(--space-2xs) var(--space-xs); border-radius: var(--radius-lg); transition: background .15s var(--ease); text-decoration: none; }
.mega-item:hover { background: var(--brand-25); text-decoration: none; }
.mega-ic { width: 36px; height: 36px; flex: none; border-radius: var(--radius-md); background: var(--brand-50); display: flex; align-items: center; justify-content: center; }
.mega-ic svg { width: 18px; height: 18px; stroke: var(--color-primary); fill: none; stroke-width: 2; }
.mega-item strong { display: block; font-size: var(--text-md); font-weight: var(--weight-bold); color: var(--color-secondary); }
.mega-item div span { display: block; font-size: var(--text-sm); color: var(--color-ink-soft); line-height: var(--line-snug); margin-top: var(--space-3xs); }

.mega-feature { display: flex; flex-direction: column; justify-content: center; align-items: center; background: var(--brand-50); border-radius: var(--radius-lg); padding: var(--space-m); }
.mega-feature > img { width: 100%; height: auto; border-radius: var(--radius-md); box-shadow: var(--shadow-md); margin-bottom: var(--space-xs); }
.mega-feature p { font-size: var(--text-xs); color: var(--color-ink-soft); text-align: center; margin: 0; }

.mega-trust { display: flex; flex-direction: column; gap: var(--space-xs); padding: var(--space-m); background: var(--brand-50); border-radius: var(--radius-lg); }
.mega-trust span { display: inline-flex; align-items: center; gap: var(--space-2xs); font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--color-secondary); }
.mega-trust svg { width: 18px; height: 18px; stroke: var(--color-primary); fill: none; stroke-width: 2; }

/* Scrolled state — dark text on white bg */
.nav.scrolled .mega-btn { color: var(--color-ink); }
.nav.on-light .mega-btn { color: var(--color-ink); }

/* ---- Footer ---- */
.site-foot { background: var(--color-surface-dark); color: rgba(255,255,255,.78); padding: var(--space-2xl) 0 var(--space-l); font-size: var(--text-md); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--space-xl); align-items: start; }
.foot-grid .logo { height: 38px; margin-bottom: var(--space-xs); }
.foot-grid p { margin: 0 0 var(--space-2xs); max-width: 30em; line-height: var(--line-relaxed); }
.foot-col h4 { color: #fff; font-size: var(--text-sm); text-transform: uppercase; letter-spacing: .1em; margin: 0 0 var(--space-xs); }
.foot-col a { display: block; color: rgba(255,255,255,.78); margin-bottom: var(--space-3xs); transition: color .2s; }
.foot-col a:hover { color: #fff; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: var(--space-xl); padding-top: var(--space-s); display: flex; justify-content: space-between; gap: var(--space-xs); flex-wrap: wrap; font-size: var(--text-sm); color: rgba(255,255,255,.6); }
.foot-bottom a { color: rgba(255,255,255,.78); text-decoration: underline; text-underline-offset: 2px; }
.foot-bottom a:hover { color: #fff; }
@media (max-width: 1000px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 100%; right: var(--space-m); left: var(--space-m); background: var(--color-surface); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); padding: var(--space-s); gap: var(--space-2xs); align-items: stretch; }
  .nav-links.open a.link, .nav-links.open .mega-btn { color: var(--color-ink); }
  .nav-toggle { display: inline-flex; }
  .mega-panel { position: static; transform: none; padding-top: 0; opacity: 1; visibility: visible; pointer-events: auto; display: none; }
  .mega-trigger.is-open .mega-panel { display: block; }
  .mega-inner, .mega-inner-sm { display: flex; flex-direction: column; gap: var(--space-xs); min-width: 0; padding: var(--space-xs); box-shadow: none; background: var(--brand-25); border-radius: var(--radius-lg); margin-top: var(--space-2xs); }
  .mega-feature { display: none; }
  .mega-quote { display: none; }
  .mega-trust { flex-direction: row; flex-wrap: wrap; }
}

/* ---- Radial scene (persona showcase, feature radial) ---- */
.radial-scene { position: relative; width: 100%; aspect-ratio: 4/3; max-width: 900px; margin: 0 auto; }
.radial-ring { position: absolute; border-radius: var(--radius-full); border: 1.5px solid var(--brand-200); top: 50%; left: 50%; transform: translate(-50%, -50%); pointer-events: none; }
.radial-ring-1 { width: 320px; height: 320px; opacity: .5; }
.radial-ring-2 { width: 520px; height: 520px; opacity: .25; border-style: dashed; }
.radial-mark { position: absolute; width: 120px; bottom: 8%; right: 12%; color: var(--brand-200); opacity: .3; }
.radial-center { --rc-size: 320px; --rc-r: calc(var(--rc-size) / 2); position: absolute; top: 50%; left: 50%; transform: translate(-50%, -45%); z-index: 1; width: var(--rc-size); height: var(--rc-size); }
.radial-center::before { content: ''; position: absolute; inset: 0; border-radius: var(--radius-full); background: linear-gradient(135deg, var(--brand-50), var(--brand-100)); box-shadow: 0 12px 40px rgba(0,0,0,.08); }
.radial-center img { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); max-height: 420px; width: auto; z-index: 1; filter: drop-shadow(0 8px 20px rgba(0,0,0,.12)); -webkit-mask-image: radial-gradient(circle var(--rc-r) at 50% calc(100% - var(--rc-r)), #000 99.9%, transparent 100%), linear-gradient(#000, #000); -webkit-mask-size: 100% 100%, 100% calc(100% - var(--rc-r) * 1.5); -webkit-mask-repeat: no-repeat; -webkit-mask-composite: source-over; mask-image: radial-gradient(circle var(--rc-r) at 50% calc(100% - var(--rc-r)), #000 99.9%, transparent 100%), linear-gradient(#000, #000); mask-size: 100% 100%, 100% calc(100% - var(--rc-r) * 1.5); mask-repeat: no-repeat; mask-composite: add; }
.radial-card { position: absolute; top: 50%; left: 50%; --_x: calc(cos(var(--angle)) * var(--dist, 300px)); --_y: calc(sin(var(--angle)) * var(--dist, 300px)); transform: translate(-50%, -50%) translate(var(--_x), var(--_y)); z-index: 2; display: flex; align-items: center; gap: var(--space-xs); background: var(--color-surface); border: none; border-radius: var(--radius-xl); padding: var(--space-xs) var(--space-s); box-shadow: var(--shadow-md); cursor: default; max-width: 200px; text-align: left; font: inherit; color: inherit; transition: transform .3s var(--ease), box-shadow .3s var(--ease), opacity .3s var(--ease), filter .3s var(--ease); }
.radial-card:hover { transform: translate(-50%, -50%) translate(var(--_x), var(--_y)) scale(1.06); box-shadow: var(--shadow-lg); }
.radial-card-ic { width: 36px; height: 36px; flex: none; border-radius: var(--radius-lg); background: var(--grad-chip); color: #fff; display: flex; align-items: center; justify-content: center; }
.radial-card-ic svg { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 2; }
.radial-card-label { font-size: var(--text-sm); font-weight: var(--weight-bold); color: var(--color-secondary); white-space: nowrap; }
.radial-card-body { font-size: var(--text-sm); color: var(--color-ink-soft); line-height: var(--line-relaxed); white-space: normal; display: grid; grid-template-rows: 0fr; opacity: 0; overflow: hidden; margin-top: 0; }
.radial-card-body > span { overflow: hidden; }
.radial-scene.has-open .radial-card:not(.is-open) { opacity: .35; filter: blur(1px); }
@media (max-width: 880px) { .radial-scene { aspect-ratio: 1; } }

/* ---- Segmented toggle ---- */
.seg { display: inline-flex; background: var(--brand-50); border-radius: var(--radius-lg); padding: 3px; }
.seg button { font: inherit; font-size: var(--text-sm); font-weight: var(--weight-semibold); border: 0; background: transparent; color: var(--color-ink-soft); padding: var(--space-2xs) var(--space-m); border-radius: var(--radius-md); cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease); }
.seg button[aria-pressed="true"], .seg button.on { background: var(--color-surface); color: var(--color-secondary); box-shadow: var(--shadow-xs); }
.seg button:hover:not([aria-pressed="true"]):not(.on) { color: var(--color-secondary); }

/* Orbit wrapper for spinning the entire card group */
.persona-orbit { position: absolute; inset: 0; z-index: 2; }
.persona-cards { position: absolute; inset: 0; }

/* Persona orbit arms */
.persona-arm { z-index: 2; }
.persona-card-slot .radial-card { position: relative; top: auto; left: auto; transform: none; cursor: pointer; }

/* Radial card expanded state */
.radial-card:hover { z-index: 5; }
.radial-card.is-open {
  flex-direction: column;
  align-items: flex-start;
  width: 280px;
  max-width: 280px;
  padding: var(--space-m);
  z-index: 10;
  box-shadow: var(--shadow-xl);
}
.radial-card.is-open .radial-card-label {
  white-space: normal;
  font-size: var(--text-md);
}
.radial-card.is-open .radial-card-body {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 0;
  transition: grid-template-rows .35s var(--ease), opacity .3s var(--ease) .1s;
}
.radial-card.is-open .radial-card-ic {
  width: 40px; height: 40px;
  margin-bottom: var(--space-2xs);
}
.radial-card.is-open .radial-card-ic svg {
  width: 20px; height: 20px;
}
.radial-card .radial-card-body {
  transition: grid-template-rows .35s var(--ease), opacity .15s var(--ease), margin .3s var(--ease);
}
