/*
 * Perform Data Track public site.
 * Loaded only by layouts/index (public pages and the sign-in screens), after Tailwind's app.css.
 * Light only: white and warm off-white grounds, brand red for the one primary action and the
 * closing block, navy for secondary actions and labels. Grade colours and the rosette seal are
 * the exam-world details.
 */

:root {
  --bg: #FFFFFF;
  --ink: #1D1A1B;
  --muted: #5C5658;
  --line: #E9E6E3;
  --tint: #F7F6F4;          /* alternate section ground: warm off-white */
  --tile-red: #FBEFEF;
  --tile-navy: #F0F2F8;
  --card: #FFFFFF;
  --primary: #D7000F;       /* the one primary action, and the closing block */
  --primary-hover: #B0000C;
  --navy: #324681;
  --paper: #FBF8F1;
  --paper-line: #D9E3F2;
  --g-pass: #2E7D5B; --g-merit: #2F56C5; --g-dist: #7A3DB0; --g-hons: #B07A12;   /* grade colours */
  --shadow: 0 1px 2px rgba(29, 26, 27, .06), 0 18px 40px -18px rgba(29, 26, 27, .28);
  --display: "Figtree", "Avenir Next", "Segoe UI", sans-serif;
  --body: "Lato", "Helvetica Neue", Arial, sans-serif;
  --hand: "Caveat", "Bradley Hand", cursive;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font: 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); text-wrap: balance; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.tab { font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

/* buttons: one primary, one secondary, normal case */
.btn-p, .btn-o {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 16px/1 var(--display); text-decoration: none;
  padding: 16px 28px; border-radius: 6px; white-space: nowrap;
  transition: box-shadow .4s cubic-bezier(.2, .8, .2, 1), background-color .2s ease;
}
.btn-p { background: var(--primary); color: #FFFFFF; }
.btn-p:hover { background: var(--primary-hover); box-shadow: 0 8px 20px -8px var(--primary); }
.btn-o { color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); background: transparent; }
.btn-o:hover { box-shadow: inset 0 0 0 2px var(--navy), 0 8px 20px -10px var(--navy); }
.btn-sm { padding: 11px 18px; font-size: 15px; }

/* nav */
header.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; }
header.nav .wrap { display: flex; align-items: center; gap: 28px; height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 19px var(--display); letter-spacing: -.02em; }
.brand svg { width: 32px; height: 32px; flex: none; }
.brand .r { color: var(--primary); }
.brand .n { color: var(--navy); }
nav.links { display: flex; gap: 22px; }
nav.links a { text-decoration: none; font: 600 16px var(--display); }
nav.links a:hover { color: var(--navy); }
.nav-r { margin-left: auto; display: flex; gap: 14px; align-items: center; }
.nav-r .signin { text-decoration: none; font: 600 16px var(--display); }
nav.links a[aria-current="page"] { color: var(--navy); box-shadow: inset 0 -2px 0 var(--primary); }
.mnav { display: none; position: relative; }
.mnav summary { list-style: none; cursor: pointer; width: 44px; height: 44px; border-radius: 8px; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line); }
.mnav summary::-webkit-details-marker { display: none; }
.mnav .panel { position: absolute; right: 0; top: 54px; width: min(280px, calc(100vw - 32px)); background: var(--card); border-radius: 14px; box-shadow: var(--shadow), 0 0 0 1px var(--line); padding: 8px; display: grid; }
.mnav .panel a { padding: 12px 14px; border-radius: 8px; text-decoration: none; font: 600 16px var(--display); }
.mnav .panel a:hover, .mnav .panel a[aria-current="page"] { background: var(--tint); }
@media (max-width: 980px) { nav.links { display: none; } .mnav { display: block; } }
@media (max-width: 520px) { .nav-r .signin, .nav-r .btn-p { display: none; } }

/* hero */
.hero { text-align: center; padding-block: clamp(48px, 7vw, 88px) 0; }
.hero h1 { font-weight: 800; font-size: clamp(2.1rem, 5.6vw, 4.2rem); line-height: 1.04; letter-spacing: -.035em; max-width: 16ch; margin-inline: auto; }
.hero .sub { margin: 24px auto 0; font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 46ch; }
.hero .ctas { margin-top: 32px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.price-note { margin-top: 14px; font-size: 14px; color: var(--muted); }
.price-note b { color: var(--ink); }
.proof { margin-top: 40px; display: flex; gap: 36px; justify-content: center; align-items: center; flex-wrap: wrap; }
.proof span { font-size: 14px; color: var(--muted); }
.proof img { height: 40px; width: auto; display: block; filter: grayscale(1) contrast(1.2); mix-blend-mode: multiply; opacity: .7; transition: opacity .2s; }
.proof a:hover img { opacity: 1; }

/* showpiece: cropped sessions screen, marking on a tablet, and the certificate it produces */
.showpiece { position: relative; max-width: 1080px; margin: clamp(48px, 6vw, 72px) auto 0; padding-bottom: 150px; text-align: left; }
.crop { position: relative; overflow: hidden; border-radius: 16px; box-shadow: var(--shadow), 0 0 0 1px var(--line); background: #F3F4F6; }
.crop .app { position: absolute; top: 0; left: 0; transform-origin: 0 0; }
.crop.main { width: 86%; }
.tablet { position: absolute; right: 0; bottom: 0; width: 44%; padding: 14px; border-radius: 26px; background: #1E2030; box-shadow: 0 30px 60px -24px rgba(30, 32, 48, .6); }
.tablet .crop { border-radius: 10px; box-shadow: none; }
.tablet::after { content: ""; position: absolute; left: 50%; top: 5px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: #3A3D52; }
.cert { position: absolute; left: -14px; bottom: 0; width: 21%; min-width: 200px; aspect-ratio: 1 / 1.33; background: #FFFFFF; border-radius: 6px; box-shadow: 0 24px 50px -20px rgba(29, 26, 27, .45), 0 0 0 1px var(--line); padding: 7% 7% 6%; display: grid; align-content: space-between; text-align: center; transform: rotate(-4deg); z-index: 3; }
.cert::before { content: ""; position: absolute; inset: 7px; border: 1px solid var(--line); border-radius: 3px; pointer-events: none; }
.cert .cap { font: 700 8.5px var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.cert .nm { font: 800 17px var(--display); letter-spacing: -.02em; margin-top: 4px; }
.cert .tx { font-size: 10px; line-height: 1.45; color: var(--muted); }
.cert .tx b { color: var(--ink); }
.cert .seal { width: 54px; height: 54px; margin: 2px auto 0; display: block; }
.cert .ft { display: flex; justify-content: space-between; gap: 10px; font-size: 8.5px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 6px; text-align: left; }
.cert .ft b { display: block; color: var(--ink); font-size: 9px; white-space: nowrap; }
.sample { position: absolute; right: 0; top: -26px; font: 700 10.5px var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 760px) {
  .showpiece { padding-bottom: 0; display: grid; gap: 16px; }
  .crop.main { width: 100%; }
  .tablet { position: relative; width: 82%; justify-self: end; margin-top: -60px; }
  .cert { left: 0; bottom: 6px; width: 38%; min-width: 0; padding: 6%; }
  .cert .tx { font-size: 8.5px; } .cert .nm { font-size: 13px; } .cert .seal { width: 38px; height: 38px; }
}

/* pillars */
.pillars { background: var(--tint); padding-block: clamp(64px, 9vw, 112px); }
.pillars-grid { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 56px; }
.toc { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 100px); align-self: start; display: grid; gap: 4px; }
.toc p { font: 800 13px var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.toc a { text-decoration: none; font: 600 16px var(--display); color: var(--muted); padding: 8px 0 8px 16px; border-left: 3px solid var(--line); transition: color .2s, border-color .2s; }
.toc a.on { color: var(--ink); border-left-color: var(--primary); }
@media (max-width: 900px) { .pillars-grid { grid-template-columns: minmax(0, 1fr); } .toc { display: none; } }
.pillar + .pillar { margin-top: clamp(64px, 8vw, 104px); }
.plabel { display: inline-block; font: 800 13px var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--navy); }
.pillar h2 { margin-top: 10px; font-size: clamp(1.8rem, 3.4vw, 2.7rem); font-weight: 800; line-height: 1.08; max-width: 20ch; }
.pillar .lead { margin-top: 14px; color: var(--muted); max-width: 56ch; }
.bento { margin-top: 32px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.tile { border-radius: 18px; padding: 26px; display: grid; gap: 14px; align-content: start; min-width: 0; overflow: hidden; }
.tile.red { background: var(--tile-red); } .tile.navy { background: var(--tile-navy); } .tile.rose, .tile.plain { background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.tile .tag { justify-self: start; font: 800 11.5px var(--display); letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); }
.tile .tag.after { color: var(--navy); }
.paper { position: relative; background-color: var(--paper); background-image: linear-gradient(90deg, transparent 38px, rgba(215, 0, 15, .35) 38px, rgba(215, 0, 15, .35) 39px, transparent 39px), repeating-linear-gradient(transparent 0 27px, var(--paper-line) 27px 28px); border-radius: 4px; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 10px 24px -14px rgba(0,0,0,.3); padding: 12px 16px 14px 52px; font-size: 12px; line-height: 28px; transform: rotate(-1.2deg); }
.paper .ttl { font: 800 11px/28px var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.paper .f { display: flex; gap: 8px; color: var(--muted); }
.paper .f i { font: 700 19px/28px var(--hand); color: #1F3A8A; font-style: normal; }
.paper .stamp { position: absolute; right: 12px; top: 12px; transform: rotate(-10deg); font: 900 12px var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--primary); border: 2px solid var(--primary); border-radius: 6px; padding: 4px 8px; opacity: .8; }
.grade { display: inline-flex; align-items: center; gap: 7px; }
.grade::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--gc); }
.s4 { grid-column: span 4; } .s3 { grid-column: span 3; } .s2 { grid-column: span 2; } .s6 { grid-column: span 6; }
@media (max-width: 760px) { .s4, .s3, .s2 { grid-column: span 6; } }
.tile h3 { font-size: 20px; font-weight: 700; }
.tile p { color: var(--muted); font-size: 15.5px; }
.tile .big { font: 900 clamp(3rem, 6vw, 4.6rem)/.95 var(--display); letter-spacing: -.04em; }
.tile .big small { font-size: .35em; font-weight: 700; color: var(--muted); letter-spacing: 0; }

/* mini UI inside tiles */
.mini { background: var(--card); border-radius: 12px; box-shadow: var(--shadow); font-size: 13px; overflow: hidden; }
.mini .mh { padding: 11px 14px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 8px; font-weight: 700; }
.mini .mh span { color: var(--muted); font-weight: 400; }
.mini .row { display: flex; justify-content: space-between; gap: 8px; padding: 9px 14px; border-bottom: 1px solid var(--line); align-items: center; }
.mini .row:last-child { border-bottom: 0; }
.chip { font-size: 11.5px; padding: 2px 9px; border-radius: 999px; background: var(--tile-navy); color: var(--navy); white-space: nowrap; font-weight: 700; }
.crit { display: grid; gap: 9px; padding: 14px; }
.crit div { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr) 3rem; gap: 12px; align-items: center; font-size: 13px; }
.crit .bar { height: 7px; border-radius: 7px; background: var(--line); overflow: hidden; }
.crit .bar i { display: block; height: 100%; background: var(--navy); border-radius: 7px; }
.crit .v { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.crit .v small { color: var(--muted); font-weight: 400; }
@media (max-width: 480px) { .crit div { grid-template-columns: minmax(0, 1fr) 3rem; } .crit .bar { grid-column: 1 / -1; grid-row: 2; } }
.mtotal { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 14px; border-top: 1px solid var(--line); }
.mtotal b { font: 900 30px var(--display); }
.mtotal > span { font-weight: 700; color: var(--g-merit); }
.bandlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14.5px; }
.bandlist li { --gc: var(--muted); display: flex; justify-content: space-between; gap: 10px; padding-bottom: 8px; border-bottom: 1px dashed color-mix(in srgb, var(--ink) 18%, transparent); }
.bandlist li:last-child { border-bottom: 0; }
.bandlist b { font-variant-numeric: tabular-nums; }
.states { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.state { display: inline-flex; gap: 8px; align-items: center; font: 800 12px var(--display); letter-spacing: .08em; text-transform: uppercase; padding: 8px 14px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow); }
.state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; }
.state.e::before { background: #3B82F6; } .state.m::before { background: #F59E0B; } .state.v::before { background: #22C55E; }
.states .arrow { color: var(--muted); }
.stack { position: relative; height: 200px; width: 280px; max-width: 100%; margin-inline: auto; }
.stack .pg { position: absolute; width: 130px; aspect-ratio: 1 / 1.3; background: var(--card); border-radius: 8px; box-shadow: var(--shadow); padding: 9% 7%; display: grid; align-content: start; gap: 7px; justify-items: center; }
.stack .pg i { display: block; height: 4px; border-radius: 4px; background: var(--line); width: 80%; }
.stack .pg i.d { background: var(--ink); width: 62%; height: 7px; }
.stack .pg i.r { background: var(--primary); width: 36%; }
.stack .pg:nth-child(1) { left: 0; top: 22px; transform: rotate(-5deg); }
.stack .pg:nth-child(2) { left: 75px; top: 4px; }
.stack .pg:nth-child(3) { left: 150px; top: 22px; transform: rotate(5deg); }
.zip { display: flex; justify-content: space-between; gap: 8px; background: var(--card); border-radius: 10px; padding: 10px 14px; box-shadow: var(--shadow); font-size: 13.5px; }
.zip span { color: var(--muted); }
.sheet2 { background: var(--card); border-radius: 10px; box-shadow: var(--shadow); padding: 14px; display: grid; gap: 10px; font-size: 12.5px; }
.sheet2 div { display: grid; gap: 6px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.sheet2 div:last-child { border-bottom: 0; padding-bottom: 0; }
.sheet2 b { font-size: 13px; }
.sheet2 i { display: block; height: 4px; border-radius: 4px; background: var(--line); }
.timeline { list-style: none; margin: 0; padding: 14px; display: grid; }
.timeline li { display: grid; grid-template-columns: 2.8rem 14px minmax(0, 1fr); gap: 10px; font-size: 13px; padding-bottom: 14px; position: relative; }
.timeline li:not(:last-child)::after { content: ""; position: absolute; left: calc(2.8rem + 10px + 4px); top: 16px; bottom: 0; width: 2px; background: var(--line); }
.timeline .y { font-weight: 900; font-family: var(--display); color: var(--muted); }
.timeline .d { width: 10px; height: 10px; border-radius: 50%; background: var(--card); border: 2px solid var(--navy); margin-top: 5px; position: relative; z-index: 1; }
.timeline li.now .d { background: var(--primary); border-color: var(--primary); }
.timeline b { display: block; }
.timeline span { color: var(--muted); }
.gs { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); font-size: 12px; }
.gs div { padding: 8px 10px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs div:nth-child(4n) { border-right: 0; }
.gs .h { font-weight: 700; background: var(--tint); }
.gs .r { text-align: right; font-variant-numeric: tabular-nums; }

.center-head { text-align: center; max-width: 720px; margin-inline: auto; }
.center-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 800; line-height: 1.08; }
.center-head p { margin-top: 14px; color: var(--muted); }

/* people */
.people { padding-block: clamp(64px, 9vw, 112px); }
.people-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 860px) { .people-grid { grid-template-columns: minmax(0, 1fr); } }
.photo { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 5; max-width: 100%; background: var(--tint); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; filter: contrast(1.35) brightness(.96); }
.photo figcaption { position: absolute; left: 16px; bottom: 16px; right: 16px; background: rgba(255,255,255,.94); border-radius: 12px; padding: 12px 14px; font-size: 14px; display: flex; gap: 10px; align-items: center; }
.photo figcaption .grade { font-weight: 700; }
.people h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); font-weight: 800; line-height: 1.08; }
.people .lead { margin-top: 14px; color: var(--muted); max-width: 52ch; }
.role-list { margin-top: 28px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.role-row { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.role-row h3 { font-size: 18px; font-weight: 800; }
.role-row p { color: var(--muted); font-size: 15.5px; }
@media (max-width: 480px) { .role-row { grid-template-columns: minmax(0, 1fr); gap: 4px; } }

/* pricing */
.pricing { background: var(--tint); padding-block: clamp(64px, 9vw, 112px); }
.price-grid { margin-top: 44px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 16px; align-items: start; }
@media (max-width: 900px) { .price-grid { grid-template-columns: minmax(0, 1fr); } }
.pcard { background: var(--card); border-radius: 18px; padding: 32px; box-shadow: var(--shadow); display: grid; gap: 16px; min-width: 0; }
.pcard .lbl { font: 800 13px var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--navy); }
.pcard .amt { font: 900 56px/1 var(--display); letter-spacing: -.04em; }
.pcard .amt small { font: 400 16px var(--body); color: var(--muted); letter-spacing: 0; margin-left: 6px; }
.pcard ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 15.5px; }
.pcard li { display: flex; gap: 10px; }
.pcard li::before { content: "✓"; color: var(--primary); font-weight: 900; }
.finder label { font: 700 16px var(--display); }
.finder .row { margin-top: 10px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.finder input[type="number"] { width: 9rem; height: 50px; border-radius: 4px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: 700 18px var(--body); padding: 0 14px; }
.finder input[type="range"] { flex: 1 1 200px; min-width: 0; accent-color: var(--primary); }
.finder .out { margin-top: 10px; color: var(--muted); font-size: 15.5px; min-height: 1.6em; }
.finder .out strong { color: var(--ink); }
.table-scroll { overflow-x: auto; }
.bands { width: 100%; border-collapse: collapse; font-size: 15.5px; font-variant-numeric: tabular-nums; }
.bands th { text-align: left; font: 800 12px var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 0 10px 10px 12px; border-bottom: 2px solid var(--line); }
.bands td { padding: 13px 10px 13px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.bands .r { text-align: right; }
.bands tr { transition: background .2s; }
.bands tr.on td { background: var(--tile-navy); font-weight: 700; }
.bands tr.on td:first-child { border-radius: 8px 0 0 8px; box-shadow: inset 3px 0 0 var(--primary); }
.bands tr.on td:last-child { border-radius: 0 8px 8px 0; }
.fine { font-size: 13.5px; color: var(--muted); }

/* faq */
.faq { padding-block: clamp(64px, 9vw, 112px); }
.faq-list { max-width: 820px; margin: 40px auto 0; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; font: 700 18px var(--display); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .pm { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--tile-red); color: var(--primary); display: grid; place-items: center; font-weight: 900; transition: transform .25s; }
.faq-list details[open] summary .pm { transform: rotate(45deg); }
.faq-list details p { color: var(--muted); padding: 0 50px 22px 0; }
.edges { max-width: 820px; margin: 28px auto 0; border-radius: 18px; background: var(--tile-navy); padding: 26px 28px; display: grid; gap: 8px; }
.edges b { font: 800 13px var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--navy); }
.edges p { color: var(--ink); }

/* closing: the one full-width brand-red block */
.closing { background: var(--primary); color: #FFFFFF; text-align: center; padding-block: clamp(72px, 10vw, 120px); }
.closing h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); font-weight: 800; line-height: 1.05; letter-spacing: -.035em; max-width: 18ch; margin-inline: auto; }
.closing p { margin: 18px auto 0; color: rgba(255,255,255,.88); max-width: 48ch; }
.closing .ctas { margin-top: 32px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.closing .btn-p { background: #FFFFFF; color: var(--primary); }
.closing .btn-p:hover { background: #FFF1F1; box-shadow: 0 10px 24px -10px rgba(0,0,0,.4); }
.closing .btn-o { color: #FFFFFF; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.8); }
.closing .btn-o:hover { box-shadow: inset 0 0 0 2px #FFFFFF; }
:focus-visible { outline-color: var(--navy); }
.closing :focus-visible { outline-color: #FFFFFF; }

footer.site-foot { border-top: 1px solid var(--line); padding-block: 36px; }
footer.site-foot .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
footer.site-foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer.site-foot a { text-decoration: none; }
footer.site-foot a:hover { color: var(--ink); }

/* ---------- recreated app screens (always the app's own light look) ---------- */
.app { text-align: left; }
.app { width: 1200px; transform-origin: 0 0; background: #F3F4F6; color: #111827; font: 14px/1.45 var(--sans); padding-bottom: 28px; }
.app-head { background: linear-gradient(90deg, #A6000A, #324681); padding-bottom: 96px; }
.ah-in { max-width: 1120px; margin: 0 auto; padding: 22px 32px; display: flex; justify-content: space-between; align-items: center; color: #FFFFFF; }
.ah-in b { font-size: 25px; }
.ah-r { display: flex; gap: 18px; align-items: center; }
.bell { width: 20px; height: 20px; border: 2px solid #FFFFFF; border-radius: 8px 8px 3px 3px; opacity: .9; }
.av { width: 32px; height: 32px; border-radius: 50%; background: #D7000F; color: #FFFFFF; display: grid; place-items: center; font-size: 14px; box-shadow: 0 0 0 2px rgba(255,255,255,.3); }
.av.lg { width: 48px; height: 48px; font-size: 18px; box-shadow: none; }
.app-body { max-width: 1120px; margin: -96px auto 0; padding: 0 32px; }
.app-body.cols { display: grid; grid-template-columns: 2fr 1fr; gap: 28px; align-items: start; }
.col-main { display: grid; gap: 24px; }
.card { background: #FFFFFF; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06); overflow: hidden; }
.card.pad { padding: 20px 24px 8px; }
.welcome { display: flex; align-items: center; gap: 18px; padding: 24px; }
.welcome div { display: grid; flex: 1; }
.welcome small { color: #4B5563; font-size: 13px; font-weight: 500; }
.welcome strong { font-size: 24px; }
.btn { display: inline-block; background: #D7000F; color: #FFFFFF; border-radius: 6px; padding: 7px 12px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.btn.ghost { background: #FFFFFF; color: #111827; box-shadow: inset 0 0 0 1px #D1D5DB; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); background: #F9FAFB; border-top: 1px solid #E5E7EB; }
.stats div { padding: 18px; text-align: center; color: #4B5563; font-weight: 500; font-size: 13px; border-left: 1px solid #E5E7EB; }
.stats div:first-child { border-left: 0; }
.stats b { color: #111827; }
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: #E5E7EB; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.quick div { background: #FFFFFF; padding: 24px; }
.quick h4 { margin: 30px 0 0; font-size: 17px; font-weight: 500; }
.ic { display: inline-block; width: 48px; height: 48px; border-radius: 8px; }
.ic.sky { background: #E0F2FE; } .ic.purple { background: #F3E8FF; } .ic.rose { background: #FFE4E6; } .ic.teal { background: #CCFBF1; }
.activity { padding: 20px 22px; }
.activity h4 { margin: 0 0 8px; font-size: 15px; }
.act { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: start; padding: 12px 0; border-top: 1px solid #F3F4F6; font-size: 13px; }
.act p { margin: 0; color: #4B5563; grid-column: 2; }
.act .new { background: #FEE2E2; color: #A6000A; font-size: 11px; font-weight: 600; border-radius: 999px; padding: 1px 8px; grid-column: 1; }
.act small { color: #9CA3AF; grid-column: 3; }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 14px; }
.card-top h3 { font-size: 16px; margin: 0; }
.card-top small { color: #6B7280; font-size: 13px; }
.search { display: flex; gap: 8px; align-items: center; }
.search > span:not(.btn) { border-radius: 6px; box-shadow: inset 0 0 0 1px #D1D5DB; padding: 7px 12px; color: #9CA3AF; font-size: 13px; min-width: 280px; }
.search.wide { margin-bottom: 6px; }
.search.wide span { min-width: 360px; }
.t { width: 100%; border-collapse: collapse; font-size: 13px; }
.t th { text-align: left; font-weight: 600; color: #111827; padding: 12px 10px; border-bottom: 1px solid #D1D5DB; text-transform: none; letter-spacing: 0; font-size: 13px; white-space: nowrap; }
.t td { padding: 12px 10px; border-bottom: 1px solid #E5E7EB; color: #374151; white-space: nowrap; }
.t th:first-child, .t td:first-child { padding-left: 0; }
.t td:first-child::before { display: none; }
.t .ra { text-align: right; padding-right: 0; }
.t .lnk { color: #D7000F; font-weight: 600; }
.t .mono { font-variant-numeric: tabular-nums; }
.st { font-size: 11.5px; font-weight: 600; border-radius: 6px; padding: 2px 8px; }
.st.edit { background: #EFF6FF; color: #1D4ED8; } .st.mark { background: #FEF3C7; color: #92400E; } .st.view { background: #DCFCE7; color: #166534; }
.menu-wrap { position: relative; }
.dots { color: #6B7280; font-size: 20px; padding: 0 8px; }
.menu { position: absolute; right: 0; top: 30px; width: 200px; background: #FFFFFF; border-radius: 6px; box-shadow: 0 10px 15px -3px rgba(0,0,0,.12), 0 0 0 1px rgba(0,0,0,.05); padding: 4px 0; z-index: 2; display: grid; }
.menu span { padding: 8px 16px; font-size: 13px; color: #374151; }
.menu span:last-child { background: #F3F4F6; }
.dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0 0 8px; }
.dl div { border-top: 1px solid #F3F4F6; padding: 14px 0; }
.dl dt { font-size: 13px; font-weight: 500; }
.dl dd { margin: 4px 0 0; font-weight: 700; color: #374151; }
.marks th { font-size: 11.5px; padding: 10px 6px; }
.marks td { padding: 8px 6px; }
.marks .in { display: inline-block; width: 40px; border-radius: 5px; box-shadow: inset 0 0 0 1px #D1D5DB; padding: 4px 6px; text-align: center; color: #111827; font-variant-numeric: tabular-nums; }
.marks .in.empty { color: #9CA3AF; }
.marks .sel { display: inline-block; border-radius: 5px; box-shadow: inset 0 0 0 1px #D1D5DB; padding: 4px 22px 4px 8px; position: relative; }
.marks .sel::after { content: "▾"; position: absolute; right: 7px; color: #6B7280; }
.marks .act-cell { display: flex; gap: 10px; justify-content: flex-end; align-items: center; }
.marks .act-cell span:first-child { color: #6B7280; }
.marks tr.focus td { background: #FFF7F7; }



/* ---------- inner pages ---------- */
.page-head { text-align: center; padding-block: clamp(56px, 8vw, 96px) clamp(32px, 4vw, 56px); }
.page-head h1 { font-weight: 800; font-size: clamp(2.1rem, 5vw, 3.6rem); line-height: 1.05; letter-spacing: -.035em; max-width: 18ch; margin: 12px auto 0; }
.page-head p { margin: 18px auto 0; max-width: 54ch; color: var(--muted); font-size: clamp(1.05rem, 1.5vw, 1.2rem); }
.page-head .updated { font-size: 14px; margin-top: 12px; }

.about { padding-bottom: clamp(64px, 9vw, 112px); }
.about-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .about-grid { grid-template-columns: minmax(0, 1fr); } }
.about .photo { position: sticky; top: 100px; }
@media (max-width: 860px) { .about .photo { position: relative; top: 0; max-height: 520px; } }
.prose { display: grid; gap: 18px; color: var(--muted); max-width: 62ch; }
.prose h2 { color: var(--ink); font-size: 22px; font-weight: 800; margin-top: 18px; }
.prose h2:first-child { margin-top: 0; }
.prose strong { color: var(--ink); }

.notes { margin-top: 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.notes div { background: var(--card); border-radius: 18px; padding: 26px; box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 8px; align-content: start; }
.notes h3 { font-size: 18px; font-weight: 800; }
.notes p { color: var(--muted); font-size: 15.5px; }
@media (max-width: 860px) { .notes { grid-template-columns: minmax(0, 1fr); } }

/* contact */
.contact { padding-block: clamp(48px, 7vw, 88px) clamp(64px, 9vw, 112px); }
.contact-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.contact h1 { font-weight: 800; font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.05; letter-spacing: -.035em; margin-top: 12px; }
.contact .lead { margin-top: 16px; color: var(--muted); max-width: 46ch; }
.next { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); counter-reset: step; }
.next li { counter-increment: step; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.next li::before { content: counter(step); width: 32px; height: 32px; border-radius: 50%; background: var(--tile-navy); color: var(--navy); display: grid; place-items: center; font: 800 15px var(--display); }
.next b { display: block; font-family: var(--display); }
.next span { color: var(--muted); font-size: 15.5px; }
.direct { margin-top: 24px; font-size: 15px; color: var(--muted); }
.direct a { color: var(--navy); font-weight: 700; }
.form-card { background: var(--card); border-radius: 18px; box-shadow: var(--shadow), 0 0 0 1px var(--line); padding: clamp(24px, 4vw, 40px); }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
@media (max-width: 520px) { .fields { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 8px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font: 700 15px var(--display); }
.field label .opt { font-weight: 500; color: var(--muted); }
.field input, .field textarea { width: 100%; border-radius: 6px; border: 1px solid #D6D1CE; background: var(--bg); padding: 12px 14px; font: 16px/1.5 var(--body); color: var(--ink); box-shadow: none; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(50, 70, 129, .18); }
.field input::placeholder, .field textarea::placeholder { color: #9A9391; }
.field.has-error input, .field.has-error textarea { border-color: var(--primary); }
.form-errors { background: var(--tile-red); border-radius: 10px; padding: 14px 18px; color: #8A0009; margin-bottom: 20px; font-size: 15px; }
.form-errors ul { margin: 6px 0 0; padding-left: 18px; }
.form-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 26px; flex-wrap: wrap; }
.form-foot small { color: var(--muted); font-size: 14px; max-width: 34ch; }
.form-foot button { border: 0; cursor: pointer; }

/* thank you */
.thanks { text-align: center; padding-block: clamp(72px, 10vw, 128px); }
.thanks h1 { font-weight: 800; font-size: clamp(2rem, 4.6vw, 3.2rem); line-height: 1.06; letter-spacing: -.03em; max-width: 18ch; margin-inline: auto; }
.thanks p { margin: 18px auto 0; max-width: 48ch; color: var(--muted); }
.thanks .ctas { margin-top: 32px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* privacy and terms: restyle the existing markup without rewriting it */
.legal { max-width: 760px; margin-inline: auto; padding-bottom: clamp(64px, 9vw, 112px); color: var(--muted); }
.legal h2 { font: 800 22px/1.25 var(--display); color: var(--ink); letter-spacing: -.015em; }
.legal section { padding-top: 32px; border-top: 1px solid var(--line); }
.legal a { color: var(--navy); font-weight: 700; }
.legal strong { color: var(--ink); }

/* sign-in screens keep their own Tailwind layout; just stop the sticky nav covering them */
.auth-page { min-height: 60vh; }

/* homepage pricing teaser (full bands are on /pricing) */
.price-teaser { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.price-teaser h2 { margin-top: 10px; font-size: clamp(1.8rem, 3.4vw, 2.7rem); font-weight: 800; line-height: 1.08; }
.price-teaser p { margin-top: 14px; color: var(--muted); max-width: 52ch; }
.price-teaser .pcard { gap: 18px; }
.price-teaser .figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.price-teaser .figs div { display: grid; gap: 6px; }
.price-teaser .figs b { font: 900 clamp(2rem, 4vw, 2.8rem)/1 var(--display); letter-spacing: -.03em; }
.price-teaser .fine { margin: 0; }
.price-teaser .btn-o { justify-self: start; }
@media (max-width: 860px) { .price-teaser { grid-template-columns: minmax(0, 1fr); } }

/* contact form honeypot: off-screen for people, still present for bots */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
