/* ==========================================================================
   MediaMetrix - design tokens come from the Brand & Style Guide
   Inter (body) + Space Grotesk (headlines). Primary #3F66F9, Secondary #009BF8.
   Secondary Blue fails AA for text on white: used only for gradients/decor/large type.
   ========================================================================== */
:root {
  --primary: #3f66f9;
  --primary-hover: #2f54e0;
  --secondary: #009bf8;
  --charcoal: #3c3c3c;
  --grey: #c8c7c7;
  --navy: #0b1437;          /* derived: guide shows "Navy" with 17.46:1 white contrast, no hex given */
  --navy-2: #121c4a;
  --white: #fff;
  --tint: #f5f7fe;
  --line: #e4e6ee;
  --danger: #c62828;
  --danger-bg: #fdecec;
  --ok: #1b7f4c;
  --ok-bg: #e6f6ee;
  --info-bg: #eaf0ff;

  --r-sm: 4px; --r-md: 8px; --r-lg: 12px; --r-xl: 20px; --r-full: 999px;
  --s1: 4px; --s2: 8px; --s3: 16px; --s4: 24px; --s5: 32px; --s6: 48px; --s7: 64px;

  --shadow-1: 0 1px 2px rgba(11,20,55,.06), 0 4px 14px rgba(11,20,55,.06);
  --shadow-2: 0 10px 40px rgba(11,20,55,.18);
  --gradient: linear-gradient(135deg, #009bf8 0%, #3f66f9 55%, #6a4cf5 100%);

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-heading: "Fraunces", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font-body); font-size: 1rem; line-height: 1.6;
  color: var(--charcoal); background: var(--white);
  padding-bottom: env(safe-area-inset-bottom);
}
img { max-width: 100%; height: auto; }
a { color: var(--primary); }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-heading); color: var(--navy); line-height: 1.15; margin: 0 0 var(--s3); font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw + .5rem, 3.4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw + .5rem, 2.4rem); letter-spacing: -.01em; }
h3 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 600; }
p { margin: 0 0 var(--s3); }
.muted { color: #6a6a6a; }
.muted-inline { color: #6a6a6a; font-size: .9rem; font-weight: 400; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .05em; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--s3); }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--primary); color: #fff; padding: var(--s2) var(--s3); z-index: 100; }
.skip-link:focus { left: var(--s3); top: var(--s3); border-radius: var(--r-md); }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  font: 600 .95rem/1 var(--font-body); padding: 14px 22px; border-radius: var(--r-md);
  border: 1.5px solid transparent; cursor: pointer; text-decoration: none !important;
  min-height: 44px; transition: background .15s, border-color .15s, color .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[disabled] { opacity: .4; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--primary-hover); }
.btn-secondary { background: #fff; color: var(--primary); border-color: var(--primary); }
.btn-secondary:hover:not(:disabled) { background: var(--info-bg); }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--tint); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-outline-light:hover { background: rgba(255,255,255,.1); }
.btn-danger-outline { background: #fff; color: var(--danger); border-color: var(--danger); }
.btn-danger-outline:hover { background: var(--danger-bg); }
.btn-sso { background: #fff; color: var(--charcoal); border-color: var(--grey); font-weight: 500; }
.btn-sso:hover { background: var(--tint); }
.btn-sm { padding: 10px 16px; font-size: .875rem; min-height: 38px; }
.btn-lg { padding: 16px 28px; font-size: 1rem; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none !important; }
.brand-word { font: 700 1.3rem/1 var(--font-display); color: var(--navy); letter-spacing: -.01em; }
.brand-word span { color: var(--primary); }
.brand-light .brand-word { color: #fff; }
.brand-light .brand-word span { color: #7fa3ff; }

.nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 0 10px; background: none; border: 0; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); padding: var(--s3); flex-direction: column; gap: var(--s1); box-shadow: var(--shadow-1); }
.site-nav.open { display: flex; }
.site-nav > a:not(.btn) { color: var(--navy); font-weight: 500; text-decoration: none; padding: 12px 8px; border-radius: var(--r-md); }
.site-nav > a:not(.btn):hover { background: var(--tint); }
.nav-actions { display: flex; gap: var(--s2); padding-top: var(--s2); }
.nav-actions .btn { flex: 1; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav { display: flex; position: static; flex-direction: row; align-items: center; gap: var(--s1); padding: 0; border: 0; box-shadow: none; background: none; }
  .nav-actions { padding: 0 0 0 var(--s3); }
  .nav-actions .btn { flex: none; }
}

/* ---------- Hero ---------- */
.hero { background: radial-gradient(1200px 500px at 85% -10%, rgba(0,155,248,.35), transparent 60%), radial-gradient(900px 500px at 0% 110%, rgba(106,76,245,.35), transparent 60%), var(--navy); color: #fff; padding: var(--s6) 0 var(--s7); overflow: hidden; }
.hero h1 { color: #fff; }
.hero-grid { display: grid; gap: var(--s6); align-items: center; }
.eyebrow { font: 600 .8rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: #8fb0ff; margin-bottom: var(--s3); }
.eyebrow-dark { color: var(--primary); }
.lead { font-size: 1.125rem; color: rgba(255,255,255,.86); max-width: 56ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--s3); margin: var(--s4) 0; }
.hero-points { list-style: none; padding: 0; margin: var(--s5) 0 0; display: grid; gap: var(--s3); }
.hero-points li { display: grid; gap: 2px; font-size: .9rem; color: rgba(255,255,255,.75); border-left: 2px solid rgba(0,155,248,.7); padding-left: var(--s3); }
.hero-points strong { color: #fff; font-size: .95rem; }
@media (min-width: 640px) { .hero-points { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1fr 1.05fr; } .hero { padding: var(--s7) 0; } }

/* Rotating scenario in the headline */
.h1-lead { display: block; }
.rotator { display: grid; color: #8fb0ff; }
.phrase { grid-area: 1 / 1; opacity: 0; transform: translateY(.45em); transition: opacity .6s ease, transform .6s ease; }
.phrase.is-in { opacity: 1; transform: translateY(0); transition-delay: .3s; }
.phrase.is-out { opacity: 0; transform: translateY(-.45em); transition-duration: .3s; }

/* Rotating report showcase */
.report-showcase { position: relative; border-radius: var(--r-xl); border: 1px solid rgba(255,255,255,.12); box-shadow: var(--shadow-2), 0 24px 60px rgba(0,0,0,.35); overflow: hidden; background: #1b2130; aspect-ratio: 1482 / 860; }
.report-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; opacity: 0; transform: scale(1.015); transition: opacity .7s ease, transform 1.2s ease; }
.report-img.is-on { opacity: 1; transform: scale(1); }
.report-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); margin-top: var(--s3); }
.report-tab { position: relative; overflow: hidden; text-align: left; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-lg); padding: 12px 14px 14px; color: rgba(255,255,255,.7); font: inherit; cursor: pointer; transition: background .2s, border-color .2s, color .2s; min-height: 44px; }
.report-tab:hover { background: rgba(255,255,255,.08); }
.report-tab.is-on { background: rgba(255,255,255,.1); border-color: rgba(143,176,255,.6); color: #fff; }
.tab-label { display: block; font: 600 .9rem/1.2 var(--font-body); color: #fff; margin-bottom: 3px; }
.tab-desc { display: block; font-size: .78rem; line-height: 1.35; }
.tab-progress { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--gradient); transform-origin: left; animation: tab-fill linear forwards; }
.tab-progress.paused { animation-play-state: paused; }
@keyframes tab-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.report-caption { margin: var(--s2) 0 0; font-size: .8rem; color: rgba(255,255,255,.55); }

/* ---------- Badges / alerts ---------- */
.badge { display: inline-block; font: 600 .72rem/1 var(--font-body); padding: 5px 10px; border-radius: var(--r-full); vertical-align: middle; }
.badge-live { background: var(--ok-bg); color: var(--ok); }
.badge-new { background: var(--info-bg); color: var(--primary-hover); }
.badge-draft { background: #eee; color: #5a5a5a; }
.alert { display: grid; gap: 2px; padding: var(--s3); border-radius: var(--r-md); border-left: 4px solid; margin-bottom: var(--s3); font-size: .92rem; }
.alert:empty { display: none; }
.alert-info { background: var(--info-bg); border-color: var(--primary); }
.alert-error { background: var(--danger-bg); border-color: var(--danger); color: #7a1a1a; }
.alert ul { margin: 0; padding-left: 1.1rem; }

/* ---------- Sections ---------- */
.section { padding: var(--s6) 0; }
.section-tint { background: var(--tint); }
.section-lead { font-size: 1.1rem; max-width: 62ch; color: #555; margin-bottom: var(--s5); }
@media (min-width: 900px) { .section { padding: var(--s7) 0; } }

.compare { display: grid; gap: var(--s4); margin-top: var(--s5); }
.compare-col { border-radius: var(--r-xl); padding: var(--s5); }
.compare-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s3); }
.compare-col li strong { display: block; color: var(--navy); }
.compare-old { background: var(--tint); border: 1px solid var(--line); }
.compare-old h3 { color: #6a6a6a; }
.compare-new { background: var(--navy); color: rgba(255,255,255,.85); box-shadow: var(--shadow-2); }
.compare-new h3, .compare-new li strong { color: #fff; }
@media (min-width: 800px) { .compare { grid-template-columns: 1fr 1fr; } }

/* Icon bullets for the comparison columns */
.icon-list li { position: relative; padding-left: 38px; }
.icon-list li::before { content: ""; position: absolute; left: 0; top: 2px; width: 26px; height: 26px; border-radius: 50%; background-position: center; background-repeat: no-repeat; background-size: 14px; }
.icon-list-x li::before { background-color: #e9eaf0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236a6a6a' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E"); }
.icon-list-check li::before { background-color: transparent; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E"), var(--gradient); }
.compare-new { position: relative; overflow: hidden; }
.compare-new::after { content: ""; position: absolute; width: 320px; height: 320px; right: -120px; top: -140px; background: radial-gradient(circle, rgba(0,155,248,.35), transparent 65%); pointer-events: none; }

.steps { list-style: none; padding: 0; margin: var(--s5) 0 0; display: grid; gap: var(--s4); counter-reset: s; position: relative; }
.steps li { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: var(--s4); box-shadow: var(--shadow-1); }
.step-num { position: relative; z-index: 1; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--gradient); color: #fff; font: 700 1rem var(--font-display); margin-bottom: var(--s3); box-shadow: 0 0 0 6px rgba(63,102,249,.12); }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
  /* a gradient thread running through the step numbers */
  .steps::before { content: ""; position: absolute; left: 12%; right: 12%; top: calc(var(--s4) + 20px); height: 2px; background: linear-gradient(90deg, rgba(0,155,248,.15), rgba(63,102,249,.6), rgba(106,76,245,.15)); }
  .steps li { background: rgba(255,255,255,.92); }
}

/* Shared card motion: lift + gradient edge on hover, fade up into view on scroll */
.lift { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.lift:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(11,20,55,.14); border-color: rgba(63,102,249,.45); }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal.lift.is-visible:hover { transform: translateY(-4px); }
@media (hover: hover) { .js .plan-flip.reveal.is-visible:hover { transform: translateY(-4px); } }

/* ---------- Pricing ---------- */
.plans { display: grid; gap: var(--s4); margin: var(--s5) 0; }
.plan { position: relative; background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-xl); padding: var(--s5) var(--s4); display: flex; flex-direction: column; box-shadow: var(--shadow-1); }
.plan .badge { position: absolute; top: var(--s3); right: var(--s3); }
.plan-featured { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(63,102,249,.12), var(--shadow-1); }
.plan h3 { font: 700 1.3rem var(--font-display); margin-bottom: 4px; }
.plan-range { color: #6a6a6a; margin-bottom: var(--s3); }
.plan-price { font: 700 2.6rem/1 var(--font-display); color: var(--navy); margin-bottom: var(--s3); }
.plan-price span { font: 500 1rem var(--font-body); color: #6a6a6a; }
.plan-blurb { flex: 1; color: #555; }
@media (min-width: 800px) { .plans { grid-template-columns: repeat(3, 1fr); } }

/* Home page plans: price hidden until hover (or tap / keyboard via "See pricing") */
.plan-flip { padding: 0; overflow: hidden; min-height: 340px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.plan-front, .plan-back { padding: var(--s5) var(--s4); display: flex; flex-direction: column; }
.plan-front { height: 100%; }
.plan-front .plan-blurb { flex: 1; }
.plan-peek { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 8px 0; min-height: 44px; font: 600 .95rem var(--font-body); color: var(--primary); cursor: pointer; }
.plan-peek svg { transition: transform .2s ease; }
.plan-peek:hover svg { transform: translateX(3px); }
.plan-back { position: absolute; inset: 0; background: radial-gradient(400px 220px at 100% 0%, rgba(0,155,248,.35), transparent 60%), var(--navy); color: rgba(255,255,255,.85); opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s; overflow-y: auto; }
.plan-flip.is-open .plan-back { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.plan-flip.is-open { box-shadow: 0 18px 40px rgba(11,20,55,.25); border-color: var(--navy); }
@media (hover: hover) {
  .plan-flip:hover .plan-back { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .plan-flip:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(11,20,55,.25); border-color: var(--navy); }
}
.plan-back-name { font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: #8fb0ff; margin-bottom: var(--s2); }
.plan-back .plan-price { color: #fff; }
.plan-back .plan-price span { color: rgba(255,255,255,.65); }
.plan-back .checks { flex: 1; font-size: .92rem; }
.checks-light li::before { border-color: #7fa3ff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--tint); }

.included { display: grid; gap: var(--s4); background: var(--tint); border-radius: var(--r-xl); padding: var(--s5) var(--s4); }
.checks { list-style: none; padding: 0; margin: 0 0 var(--s3); display: grid; gap: var(--s2); }
.checks li { padding-left: 28px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 16px; height: 9px; border-left: 2.5px solid var(--primary); border-bottom: 2.5px solid var(--primary); transform: rotate(-45deg) scale(.9); }
@media (min-width: 800px) { .included { grid-template-columns: 1fr 1fr; padding: var(--s5); } }

/* ---------- Team ---------- */
/* Dark section: navy with soft colour glows */
.section-dark { position: relative; overflow: hidden; background: radial-gradient(900px 420px at 100% 0%, rgba(0,155,248,.28), transparent 60%), radial-gradient(800px 420px at 0% 100%, rgba(106,76,245,.3), transparent 60%), var(--navy); color: rgba(255,255,255,.82); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .section-lead { color: rgba(255,255,255,.75); }

/* The one big number is the combined total; each discipline gets the same size chip so
   no single discipline outweighs the others. */
.team-intro { display: grid; gap: var(--s4); align-items: end; margin-bottom: var(--s5); }
.team-intro .section-lead { margin-bottom: 0; }
.team-total { display: grid; gap: 4px; justify-items: start; }
.team-total-num { font: 700 clamp(3.5rem, 8vw, 5.5rem)/1 var(--font-display); background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: -.03em; }
.team-total-label { font-size: 1rem; color: rgba(255,255,255,.8); }
@media (min-width: 900px) { .team-intro { grid-template-columns: 1.5fr 1fr; } .team-total { justify-items: end; text-align: right; } }

.team { display: grid; gap: var(--s4); }
.person { position: relative; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-xl); padding: var(--s4); backdrop-filter: blur(6px); }
.person::before { content: ""; position: absolute; left: var(--s4); right: var(--s4); top: 0; height: 3px; border-radius: 0 0 3px 3px; background: var(--gradient); opacity: .9; }
.person.lift:hover { background: rgba(255,255,255,.09); border-color: rgba(143,176,255,.5); box-shadow: 0 18px 40px rgba(0,0,0,.3); }
.person h3 { font-size: 1.15rem; margin-bottom: var(--s2); }
.person p { margin: 0; }
.person-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: var(--r-lg); background: var(--gradient); margin-bottom: var(--s3); box-shadow: 0 8px 20px rgba(63,102,249,.35); }
.person-icon svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.years-chip { display: inline-block; font: 600 .8rem/1 var(--font-body); color: #cfdcff; background: rgba(63,102,249,.25); border: 1px solid rgba(143,176,255,.4); padding: 6px 10px; border-radius: var(--r-full); margin-bottom: var(--s3); }
.role { color: var(--primary); font-weight: 600; font-size: .9rem; }
@media (min-width: 800px) { .team { grid-template-columns: repeat(3, 1fr); } }
.partners { display: flex; gap: var(--s4); align-items: flex-start; margin-top: var(--s4); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.85); border-radius: var(--r-xl); padding: var(--s5); }
.partners h3 { color: #fff; font-size: 1.15rem; }
.partners p { margin: 0; }
.partners-icon { flex: 0 0 auto; display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--gradient); }
@media (max-width: 600px) { .partners { flex-direction: column; } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy); background-image: linear-gradient(135deg, rgba(0,155,248,.25), rgba(106,76,245,.3)); color: rgba(255,255,255,.85); padding: var(--s6) 0; }
.cta-band h2 { color: #fff; }
.cta-inner { display: grid; gap: var(--s5); align-items: center; }
.cta-points { padding-left: 1.1rem; display: grid; gap: var(--s2); }
.cta-points strong { color: #fff; }
.cta-actions { display: flex; flex-wrap: wrap; gap: var(--s3); }
@media (min-width: 900px) { .cta-inner { grid-template-columns: 1fr auto; } .cta-actions { flex-direction: column; } }

/* ---------- Footer ---------- */
.site-footer { background: #070d26; color: rgba(255,255,255,.7); padding: var(--s6) 0 var(--s4); font-size: .9rem; }
.footer-inner { display: grid; gap: var(--s4); }
.footer-brand .brand { margin-bottom: var(--s3); }
.brand-word-lg { font-size: 1.6rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--s4); align-content: start; }
.footer-links a { color: #fff; }
.footer-legal { margin-top: var(--s5); padding-top: var(--s3); border-top: 1px solid rgba(255,255,255,.12); font-size: .8rem; }
@media (min-width: 800px) { .footer-inner { grid-template-columns: 1fr auto; } }

/* ---------- Auth ---------- */
.auth-page { background: var(--tint); }
.auth { min-height: calc(100vh - 64px); display: grid; place-items: center; padding: var(--s5) var(--s3); }
.auth-card { width: 100%; max-width: 440px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: var(--s5) var(--s4); box-shadow: var(--shadow-2); }
.auth-logo { display: block; margin-bottom: var(--s4); }
.auth-card h1 { font-size: 1.8rem; margin-bottom: var(--s2); }
.sso { display: grid; gap: var(--s2); margin: var(--s4) 0 0; }
.divider { display: flex; align-items: center; gap: var(--s3); color: #777; font-size: .85rem; margin: var(--s4) 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-switch { margin: var(--s4) 0 0; text-align: center; font-size: .92rem; }

/* ---------- Forms ---------- */
.field { display: grid; gap: 6px; margin-bottom: var(--s3); }
.field label { font-weight: 600; font-size: .9rem; color: var(--navy); }
input[type=text], input[type=email], input[type=tel], input[type=password], input:not([type]), select, textarea {
  width: 100%; font: 400 1rem var(--font-body); color: var(--charcoal);
  padding: 12px 14px; border: 1.5px solid var(--grey); border-radius: 6px; background: #fff; min-height: 46px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(63,102,249,.2); }
input.input-validation-error, select.input-validation-error { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .85rem; }
.field-error:empty { display: none; }
.hint { color: #6a6a6a; font-size: .82rem; }
.check { display: flex; gap: var(--s2); align-items: center; margin-bottom: var(--s3); font-size: .92rem; }
.check input { width: 18px; height: 18px; accent-color: var(--primary); }
.form-grid { display: grid; gap: 0 var(--s4); }
.form-actions { margin-top: var(--s2); }
@media (min-width: 800px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .alert, .form-grid .form-actions { grid-column: 1 / -1; } }

/* ---------- Prose ---------- */
.prose { max-width: 70ch; }

/* ==========================================================================
   Portal (signed-in area)
   Desktop: left sidebar. Phone: content + bottom tab bar, like a native app.
   ========================================================================== */
body.portal { background: var(--tint); }
.portal-shell { min-height: 100vh; display: flex; flex-direction: column; }
.portal-side { background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: space-between; padding: 10px var(--s3); padding-top: calc(10px + env(safe-area-inset-top)); }
.portal-side .brand { gap: 8px; }
.portal-user { display: flex; align-items: center; gap: var(--s3); font-size: .85rem; }
.portal-user-name { display: none; color: rgba(255,255,255,.75); overflow: hidden; text-overflow: ellipsis; max-width: 160px; white-space: nowrap; }
.portal-user .link-btn { color: #cfd9ff; }
.portal-main { flex: 1; padding: var(--s4) var(--s3) calc(88px + env(safe-area-inset-bottom)); width: 100%; max-width: 1000px; margin: 0 auto; }
.page-head { margin-bottom: var(--s4); }
.page-head h1 { font-size: 1.9rem; margin-bottom: 4px; }

/* Reports: a full-bleed dashboard, not a narrow text page - the SPA inside the iframe handles
   its own internal spacing, so this page gets no outer max-width/padding, just room for the
   mobile bottom nav. See _PortalLayout.cshtml's FullWidth ViewData flag. */
.portal-main--wide { max-width: 1320px; }
.portal-main--full { max-width: none; padding: 0 0 calc(88px + env(safe-area-inset-bottom)); }
.report-frame { display: block; width: 100%; height: calc(100vh - 68px); border: 0; }

/* Reports list for logins with more than one report: each report is a link. */
.report-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); max-width: 720px; }
.report-list a { display: grid; gap: 4px; padding: var(--s3) var(--s4); background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1); text-decoration: none; }
.report-list a:hover, .report-list a:focus-visible { border-color: var(--primary); }
.report-list-name { font: 600 1.1rem var(--font-body); color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.report-list-desc { color: #6a6a6a; font-size: .92rem; }

/* "All reports" bar above an open report. It's 46px tall; the frame below shrinks to match. */
.report-back { display: flex; align-items: center; gap: var(--s3); height: 46px; padding: 0 var(--s3); background: #fff; border-bottom: 1px solid var(--line); font-size: .92rem; white-space: nowrap; overflow-x: auto; }
.report-back a { font-weight: 600; color: var(--primary); text-decoration: none; }
.report-back a:hover { text-decoration: underline; }
.report-back span { color: var(--navy); font-weight: 600; }
.report-frame--back { height: calc(100vh - 68px - 46px); }

@media (min-width: 900px) {
  .portal-main--full { padding: 0; }
  .report-frame { height: 100vh; }
  .report-frame--back { height: calc(100vh - 46px); }
}

.portal-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); background: #fff; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -4px 20px rgba(11,20,55,.08); }
.portal-nav a { display: grid; justify-items: center; gap: 2px; padding: 10px 4px 8px; color: #6a6a6a; font-size: .72rem; font-weight: 500; text-decoration: none; min-height: 56px; }
.portal-nav a.active { color: var(--primary); font-weight: 600; }
.portal-nav svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

@media (min-width: 900px) {
  .portal-shell { flex-direction: row; }
  .portal-side { flex-direction: column; align-items: stretch; justify-content: flex-start; width: 248px; flex-shrink: 0; padding: var(--s4) var(--s3); position: sticky; top: 0; height: 100vh; gap: var(--s5); }
  .portal-nav { position: static; display: grid; grid-auto-flow: row; grid-template-columns: 1fr; background: none; border: 0; box-shadow: none; gap: 2px; padding: 0; }
  .portal-nav a { grid-auto-flow: column; justify-content: start; align-items: center; gap: 12px; font-size: .95rem; color: rgba(255,255,255,.78); padding: 12px 14px; border-radius: var(--r-md); min-height: 0; }
  .portal-nav a:hover { background: rgba(255,255,255,.08); }
  .portal-nav a.active { background: rgba(63,102,249,.35); color: #fff; }
  .portal-user { margin-top: auto; flex-direction: column; align-items: flex-start; gap: var(--s1); }
  .portal-user-name { display: block; max-width: 100%; }
  .portal-main { padding: var(--s5) var(--s5) var(--s6); }
}

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: var(--s4); box-shadow: var(--shadow-1); margin-bottom: var(--s4); }
.card h2 { font: 600 1rem var(--font-body); color: #6a6a6a; text-transform: uppercase; letter-spacing: .06em; margin-bottom: var(--s3); }
.grid-cards { display: grid; gap: var(--s4); }
.grid-cards .card { margin-bottom: 0; }
.card-wide { grid-column: 1 / -1; }
@media (min-width: 760px) { .grid-cards { grid-template-columns: 1fr 1fr; } }
.stat { font: 700 1.7rem/1.2 var(--font-display); color: var(--navy); margin-bottom: var(--s2); display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; }
.status-list { list-style: none; padding: 0; margin: 0 0 var(--s3); display: grid; gap: var(--s2); font-size: .92rem; }
.status-list li { display: flex; justify-content: space-between; align-items: center; gap: var(--s2); }
.checklist { margin: 0; padding-left: 1.2rem; display: grid; gap: var(--s2); }
.checklist li.done { color: var(--ok); text-decoration: line-through; }
.current-plan { display: flex; flex-wrap: wrap; gap: var(--s3); justify-content: space-between; align-items: center; }
.plans-portal { margin-top: 0; }
.note { font-size: .88rem; }

/* Responsive table: turns into stacked cards on phones */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .93rem; }
.table th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: #5a6178; padding: 12px 14px; background: var(--tint); border-bottom: 1px solid var(--line); }
.table th:first-child { border-top-left-radius: var(--r-lg); }
.table th:last-child { border-top-right-radius: var(--r-lg); }
.table td { padding: 16px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; transition: background .15s ease; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr { position: relative; }
.table tbody tr:hover td { background: #f8faff; }
.table tbody tr:hover td:first-child { box-shadow: inset 3px 0 0 var(--primary); }
.table td:first-child { font-weight: 600; color: var(--navy); }
.table .actions { text-align: right; }
@media (min-width: 720px) { .table-wrap { border: 1px solid var(--line); border-radius: var(--r-lg); } }
@media (max-width: 719px) {
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s2) var(--s3); margin-bottom: var(--s3); box-shadow: var(--shadow-1); transition: border-color .15s ease, box-shadow .15s ease; }
  .table tbody tr:hover { border-color: rgba(63,102,249,.45); }
  .table tbody tr:hover td, .table tbody tr:hover td:first-child { background: none; box-shadow: none; }
  .table tbody tr:last-child td { border-bottom: 0; }
  .table td { border: 0; padding: 6px 0; display: flex; justify-content: space-between; gap: var(--s3); }
  .table td::before { content: attr(data-label); color: #6a6a6a; font-size: .8rem; }
  .table .actions { justify-content: flex-end; padding-top: var(--s2); }
  .table .actions::before { content: none; }
}

/* PWA install banner + offline */
.install-banner { position: fixed; left: var(--s3); right: var(--s3); bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 60; background: var(--navy); color: #fff; border-radius: var(--r-lg); padding: var(--s3); display: none; align-items: center; justify-content: space-between; gap: var(--s3); box-shadow: var(--shadow-2); font-size: .9rem; }
.install-banner.show { display: flex; }
.install-banner button.dismiss { background: none; border: 0; color: #cfd9ff; cursor: pointer; font: inherit; }
@media (min-width: 900px) { .install-banner { left: auto; right: var(--s4); bottom: var(--s4); max-width: 380px; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ==========================================================================
   Request a demo
   ========================================================================== */
.demo { background: radial-gradient(1100px 480px at 90% -10%, rgba(0,155,248,.3), transparent 60%), radial-gradient(900px 480px at 0% 110%, rgba(106,76,245,.3), transparent 60%), var(--navy); color: rgba(255,255,255,.85); padding: var(--s6) 0 var(--s7); min-height: calc(100vh - 64px); }
.demo h1 { color: #fff; }
.demo-grid { display: grid; gap: var(--s5); align-items: start; }
.demo-points { list-style: none; padding: 0; margin: var(--s5) 0 0; display: grid; gap: var(--s3); }
.demo-points li { display: grid; gap: 2px; border-left: 2px solid rgba(0,155,248,.7); padding-left: var(--s3); color: rgba(255,255,255,.75); }
.demo-points strong { color: #fff; }
.demo-card { background: #fff; color: var(--charcoal); border-radius: var(--r-xl); padding: var(--s5) var(--s4); box-shadow: var(--shadow-2), 0 24px 60px rgba(0,0,0,.3); }
.demo-card h2 { font-size: 1.6rem; margin-bottom: var(--s1); }
.demo-card textarea { min-height: 110px; resize: vertical; }
@media (min-width: 960px) { .demo-grid { grid-template-columns: 1fr 1.1fr; gap: var(--s6); } .demo { padding: var(--s7) 0; } .demo-pitch { position: sticky; top: 112px; } .demo-card { padding: var(--s5); } }

.consent { border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s3); margin: 0 0 var(--s4); display: grid; gap: var(--s3); }
.consent legend { font-weight: 600; font-size: .9rem; color: var(--navy); padding: 0 6px; }
.consent-option { display: flex; gap: 12px; align-items: flex-start; font-size: .86rem; line-height: 1.5; color: #4a4a4a; cursor: pointer; }
.consent-option input { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 1px; accent-color: var(--primary); }
.consent .hint { margin: 0; }

/* Spam trap: kept off-screen rather than display:none so simple bots still fill it in */
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.demo-done { text-align: center; padding: var(--s4) 0; }
.demo-done-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--gradient); margin-bottom: var(--s3); box-shadow: 0 10px 26px rgba(63,102,249,.35); }
.demo-done p { color: #555; }

/* Portal demo requests list */
.demo-contact { display: grid; gap: 2px; }
.demo-table .badge { margin: 2px 4px 2px 0; }
.demo-message-row td { padding-top: 0; }
.demo-message { display: block; white-space: pre-wrap; background: var(--tint); border-radius: var(--r-md); padding: var(--s2) var(--s3); font-size: .9rem; color: #444; }
.demo-table tbody tr:has(+ .demo-message-row) td { border-bottom: 0; }
.demo-message-row td:first-child { font-weight: 400; color: inherit; }

/* Thank-you page after a demo request */
.demo-thanks { display: grid; place-items: center; }
.demo-thanks .demo-card { width: 100%; max-width: 520px; }
.demo-thanks h1 { color: var(--navy); font-size: 1.9rem; }

/* ==========================================================================
   Connection-based pricing
   ========================================================================== */
.connection-explainer { display: flex; gap: var(--s3); align-items: flex-start; background: var(--info-bg); border: 1px solid rgba(63,102,249,.25); border-radius: var(--r-lg); padding: var(--s3) var(--s4); margin-bottom: var(--s2); }
.connection-explainer p { margin: 0; color: #3a4160; }
.connection-explainer strong { color: var(--navy); }
.connection-explainer-icon { flex: 0 0 auto; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-md); background: var(--gradient); }
.connection-explainer-icon svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.plans-four .plan-flip { min-height: 380px; }
@media (min-width: 800px) { .plans-four { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .plans-four { grid-template-columns: repeat(4, 1fr); } }
.plan-enterprise { background: linear-gradient(180deg, #fff, var(--tint)); }
.plan-price-custom { font-size: 2.2rem; }
.plan-back-copy { flex: 1; font-size: .92rem; color: rgba(255,255,255,.82); }

.enterprise-cta { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; justify-content: space-between; border: 1.5px dashed rgba(63,102,249,.4); border-radius: var(--r-xl); padding: var(--s4); margin-bottom: var(--s5); }
.enterprise-cta p { margin: 0; max-width: 64ch; }
.enterprise-cta strong { color: var(--navy); }
.included .checks strong { color: var(--navy); }

/* Plan detail + sign-up pages (/pricing/{plan}) */
.plan-detail h1 { margin-bottom: var(--s2); }
.plan-detail-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: var(--s2); }
.plan-detail-amount { font: 700 clamp(2.6rem, 5vw, 3.4rem)/1 var(--font-display); color: #fff; }
.plan-detail-amount-custom { font-size: clamp(2rem, 4vw, 2.6rem); }
.plan-detail-per { color: rgba(255,255,255,.65); font-size: 1.05rem; }
.plan-detail-cap { color: rgba(255,255,255,.75); margin-bottom: var(--s4); }
.plan-detail-cap strong { color: #8fb0ff; }
.plan-detail-label { display: block; color: #fff; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 2px; }
.plan-detail-block { border-top: 1px solid rgba(255,255,255,.12); padding-top: var(--s4); margin-top: var(--s4); }
.plan-detail-block h2 { color: #fff; font-size: 1.25rem; margin-bottom: var(--s3); }
.plan-detail .checks { color: rgba(255,255,255,.85); }
.plan-steps { margin: 0; padding-left: 1.3rem; display: grid; gap: var(--s3); color: rgba(255,255,255,.78); }
.plan-steps strong, .plan-notes strong { color: #fff; }
.plan-notes { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s3); color: rgba(255,255,255,.78); }
.plan-switch { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; margin-top: var(--s5); font-size: .9rem; color: rgba(255,255,255,.65); }
.plan-switch a { color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,.25); border-radius: var(--r-full); padding: 6px 14px; }
.plan-switch a:hover { background: rgba(255,255,255,.1); }
.plan-switch a.is-current { background: #fff; color: var(--navy); border-color: #fff; font-weight: 600; }
/* the plan detail column is long, so don't pin it on wide screens */
@media (min-width: 960px) { .plan-page .demo-pitch { position: static; } }

.platform-picks { border: 0; padding: 0; margin: 0 0 var(--s3); }
.platform-picks legend { font-weight: 600; font-size: .9rem; color: var(--navy); margin-bottom: 6px; }
.platform-options { display: flex; flex-wrap: wrap; gap: var(--s2); }
.platform-option { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--grey); border-radius: var(--r-full); padding: 8px 14px; cursor: pointer; font-size: .92rem; min-height: 44px; transition: border-color .15s, background .15s; }
.platform-option input { width: 18px; height: 18px; accent-color: var(--primary); }
.platform-option:has(input:checked) { border-color: var(--primary); background: var(--info-bg); }

/* ==========================================================================
   One-pager download
   ========================================================================== */
.onepager-grid { display: grid; gap: var(--s6); align-items: center; }
.onepager-copy .section-lead { margin-bottom: var(--s4); }
.onepager-copy .checks { margin-bottom: var(--s5); }
@media (min-width: 900px) { .onepager-grid { grid-template-columns: 1.1fr .9fr; } }

/* A tilted preview of the page, with the lower part faded so the PDF itself is the reward */
.onepager-stack { position: relative; display: block; width: min(100%, 380px); aspect-ratio: 520 / 673; margin: 0 auto; text-decoration: none !important; }
.onepager-stack img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: var(--r-md); box-shadow: 0 18px 40px rgba(11,20,55,.22); transition: transform .35s ease; }
.onepager-stack img { transform: rotate(-2deg); }
/* fade the bottom of the stack into the section background (set --onepager-fade per section) */
.onepager-stack { --onepager-fade: var(--tint); }
.onepager-stack::after { content: ""; position: absolute; left: -14%; right: -14%; bottom: -6%; height: 42%; background: linear-gradient(180deg, transparent, var(--onepager-fade) 78%); pointer-events: none; }
.onepager-stack-sm::after { display: none; } /* the form page background is a gradient, so no solid fade */
.onepager-badge { z-index: 1; }
a.onepager-stack:hover img { transform: rotate(-3deg) translateY(-6px); }
.onepager-badge { position: absolute; left: 50%; bottom: 14%; transform: translateX(-50%); background: var(--navy); color: #fff; font: 600 .85rem/1 var(--font-body); padding: 10px 16px; border-radius: var(--r-full); box-shadow: var(--shadow-2); white-space: nowrap; }
.onepager-stack-sm { width: min(100%, 300px); margin: var(--s5) 0 var(--s4) 0; }
@media (min-width: 960px) { .onepager-stack-sm { margin-left: var(--s4); } }
.onepager-next { margin: var(--s4) 0 0; font-size: .92rem; color: #555; }

/* ==========================================================================
   In-house teams ("Not an agency?")
   ========================================================================== */
.inhouse-grid { display: grid; gap: var(--s5); align-items: center; }
.inhouse-copy .hero-cta { margin-bottom: 0; }
.inhouse-points { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s3); }
.inhouse-points li { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: var(--s4); box-shadow: var(--shadow-1); }
.inhouse-points li:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(11,20,55,.12); border-color: rgba(63,102,249,.45); }
.inhouse-points h3 { font-size: 1.05rem; margin: 0 0 6px; color: var(--navy); }
.inhouse-points p { margin: 0; font-size: .95rem; color: #555; }
@media (min-width: 640px) { .inhouse-points { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .inhouse-grid { grid-template-columns: .9fr 1.1fr; gap: var(--s6); } }


/* Small print under the plan cards */
.plans-fineprint { margin: calc(var(--s3) * -1) 0 var(--s4); font-size: .8rem; color: #7a8099; text-align: center; }

/* ==========================================================================
   Privacy policy
   ========================================================================== */
.privacy { max-width: 760px; }
.privacy h1 { margin-bottom: var(--s1); }
.privacy-updated { color: #7a8099; font-size: .92rem; margin-bottom: var(--s4); }
.privacy h2 { margin-top: var(--s6); padding-top: var(--s2); font-size: 1.5rem; scroll-margin-top: 90px; }
.privacy h3 { margin-top: var(--s4); font-size: 1.08rem; color: var(--navy); }
.privacy ul { padding-left: 1.2rem; display: grid; gap: var(--s2); }
.privacy li strong { color: var(--navy); }
.privacy-toc { display: flex; flex-wrap: wrap; gap: var(--s2); margin: var(--s4) 0 0; padding: var(--s3); background: var(--tint); border-radius: var(--r-lg); }
.privacy-toc a { font-size: .9rem; padding: 6px 12px; border-radius: var(--r-full); background: #fff; border: 1px solid var(--line); text-decoration: none; }
.privacy-toc a:hover { border-color: var(--primary); }

/* "Starting at" above plan prices */
.plan-price-from { margin: 0 0 4px; font: 600 .78rem/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.plan-detail-price { flex-wrap: wrap; }
.plan-detail-from { flex-basis: 100%; font: 600 .82rem/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.75); margin-bottom: 4px; }

/* ==========================================================================
   Requests: "Contacted" checkbox and delete
   ========================================================================== */
.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; }
.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger:hover { background: #a11f1f; border-color: #a11f1f; }

.requests-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); }
.requests-head h2 { margin: 0; }
.requests-help { margin: var(--s2) 0 var(--s3); font-size: .9rem; }

.contacted-form { margin: 0; }
.contacted-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 4px; background: none; border: 0; cursor: pointer; font: 600 .8rem var(--font-body); color: var(--ok); }
.contacted-box { display: inline-grid; place-items: center; width: 24px; height: 24px; border: 2px solid #b8bfd3; border-radius: 6px; background: #fff; transition: background .15s, border-color .15s; }
.contacted-box svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.contacted-toggle:hover .contacted-box { border-color: var(--primary); }
.contacted-toggle:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 6px; }
.contacted-toggle[aria-checked="true"] .contacted-box { background: var(--ok); border-color: var(--ok); }
.contacted-toggle[aria-checked="true"] .contacted-box svg { opacity: 1; }
.demo-table tr.is-contacted td { color: #7a8099; }
.demo-table tr.is-contacted .request-name { color: #5a6178; }

.request-delete { position: relative; }
.request-delete summary { list-style: none; cursor: pointer; white-space: nowrap; }
.request-delete summary::-webkit-details-marker { display: none; }
.request-delete[open] summary { background: var(--danger-bg); }
.request-delete-confirm { display: grid; justify-items: start; gap: 6px; margin-top: var(--s2); font-size: .82rem; color: #5a6178; }
@media (min-width: 720px) { .demo-table .badge, .request-when, .contacted-when { white-space: nowrap; } }
.request-name { font-weight: 600; color: var(--navy); }
@media (min-width: 720px) { .demo-table td:first-child { width: 1%; } }
@media (min-width: 720px) { .demo-table td[data-label="Size"] { min-width: 120px; } }
@media (max-width: 719px) {
  /* stacked cards: values sit right of their label and wrap instead of pushing the card wide */
  .demo-table td::before { flex: 0 0 auto; }
  .demo-table td > * { min-width: 0; text-align: right; }
  .demo-table td .demo-contact { justify-items: end; }
  .demo-table .demo-message-row td { display: block; }
  .demo-table .demo-message-row td::before { display: block; margin-bottom: 4px; }
  .demo-table .demo-message { text-align: left; }
  .request-delete-confirm { justify-items: end; }
  .demo-table td[data-label="OK to contact"] { justify-content: flex-end; gap: 6px; }
  .demo-table td[data-label="OK to contact"]::before { margin-right: auto; }
}
