/* aptproof.com — one stylesheet, tokens from the brand bible. */
:root {
  --navy: #0E1B2C;
  --navy-700: #1B3350;
  --blue: #2F5A8A;
  --blue-100: #E3EAF3;
  --brass: #C8963E;
  --brass-700: #8A6420;
  --paper: #F7F4EE;
  --fog: #E4E1DA;
  --slate: #55606E;
  --mist: #C9D2DE;
  --white: #FFFFFF;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', Arial, sans-serif;
  --r-s: 6px;
  --r-m: 10px;
  --r-l: 18px;
  --ease: cubic-bezier(.2, 0, 0, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 17px/1.6 var(--sans); color: var(--navy); background: var(--white); text-rendering: optimizeLegibility; }
img, svg { display: block; }
a { color: var(--blue); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--navy-700); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 12px; }
.skip:focus { left: 12px; z-index: 20; background: var(--white); padding: 8px 14px; border-radius: var(--r-s); }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.wrap.narrow > * { max-width: 716px; }
.wrap.narrow > .sec-title { max-width: 22ch; }

/* ---------- Type ---------- */
h1, h2, h3 { margin: 0; color: inherit; }
h1 { font: 600 clamp(42px, 6.2vw, 76px)/1.02 var(--serif); letter-spacing: -0.025em; font-variation-settings: "opsz" 144; text-wrap: balance; }
.sec-title { font: 500 clamp(30px, 3.6vw, 46px)/1.1 var(--serif); letter-spacing: -0.02em; font-variation-settings: "opsz" 120; max-width: 22ch; text-wrap: balance; margin-bottom: 18px; }
.sec-title.sm { font-size: 28px; margin: 48px 0 20px; }
h3 { font: 600 19px/1.35 var(--sans); }
.lead { font-size: 19px; line-height: 1.6; color: var(--slate); max-width: 58ch; margin: 22px 0 0; }
.sec-lead { font-size: 18px; color: var(--slate); max-width: 60ch; margin: 0 0 32px; }
.fine { font-size: 14px; color: var(--slate); margin: 14px 0 0; }

/* ---------- Header ---------- */
.site-head { background: var(--white); border-bottom: 1px solid var(--fog); position: relative; z-index: 5; }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.home-link { display: inline-flex; padding: 6px 0; }
.site-nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.site-nav a:not(.btn) { color: var(--navy); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:not(.btn):hover { border-bottom-color: var(--fog); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--brass); }
.menu-btn { display: none; }

/* ---------- Buttons and forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border: 0; border-radius: var(--r-m); background: var(--blue); color: var(--white); font: 600 16px var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color 120ms var(--ease); }
.btn:hover { background: var(--navy-700); color: var(--white); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-quiet { background: transparent; color: var(--blue); box-shadow: inset 0 0 0 1px var(--fog); }
.btn-quiet:hover { background: var(--blue-100); color: var(--navy); }
.field-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.field-row { display: flex; gap: 10px; flex-wrap: wrap; }
.field-row input { flex: 1 1 260px; min-height: 50px; padding: 0 16px; border: 1px solid #CFCBC2; border-radius: var(--r-m); font: 16px var(--sans); color: var(--navy); background: var(--white); }
.field-row input:focus-visible { outline-offset: 0; border-color: var(--blue); }
.field-row input[aria-invalid="true"] { border-color: #B3261E; }
.opt-in { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--slate); margin-top: 12px; cursor: pointer; }
.opt-in input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--blue); }
.form-note { min-height: 22px; margin: 10px 0 0; font-size: 14px; color: var(--navy-700); }
.form-note.is-error { color: #B3261E; }
.waitlist { max-width: 560px; position: relative; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.on-dark .field-label, .on-dark .opt-in { color: var(--mist); }
.on-dark .field-row input { border-color: transparent; }
.on-dark .form-note { color: var(--mist); }
.on-dark .form-note.is-error { color: #FFB4AB; }
.on-dark .btn { background: var(--brass); color: var(--navy); }
.on-dark .btn:hover { background: #D8A64E; color: var(--navy); }

/* ---------- Sections ---------- */
.band { padding: 96px 0; }
.band-tight { padding: 40px 0 96px; }
.band-paper { background: var(--paper); }
.band-navy { background: var(--navy); color: var(--paper); }
.band-navy .sec-lead { color: var(--mist); }
.page-head { padding: 80px 0 24px; }
.page-head h1 { font-size: clamp(38px, 5vw, 60px); }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 96px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: start; }
.launch-tag { display: inline-block; margin: 0 0 22px; font-size: 14px; font-weight: 600; color: var(--brass-700); }
.join { margin-top: 36px; }
.hero-demo { padding-top: 8px; }

/* ---------- Question card (the one memorable moment) ---------- */
.qcard { background: var(--white); border: 1px solid var(--fog); border-radius: var(--r-l); padding: 28px; box-shadow: 0 1px 2px rgba(14, 27, 44, .05), 0 12px 32px rgba(14, 27, 44, .07); transition: border-color 200ms var(--ease); margin: 32px 0; }
.hero .qcard { margin: 0; }
.qcard.is-right { border-color: var(--brass); }
.qcard-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.qcard-title { font: 600 15px var(--sans); color: var(--slate); }
.qcard-test { font-size: 13px; color: var(--brass-700); font-weight: 600; }
.qcard-q { font-size: 17px; line-height: 1.6; margin: 0 0 18px; }
.opts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.opt { width: 100%; display: flex; gap: 12px; align-items: flex-start; text-align: left; padding: 12px 14px; border: 1px solid var(--fog); border-radius: var(--r-m); background: var(--white); font: 15px/1.45 var(--sans); color: var(--navy); cursor: pointer; transition: border-color 120ms var(--ease), background-color 120ms var(--ease); }
.opt:hover { border-color: #BFC9D6; }
.opt-key { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1px solid #8A93A0; display: grid; place-items: center; font-size: 13px; font-weight: 600; }
.opt[aria-pressed="true"] { border: 2px solid var(--blue); background: var(--blue-100); padding: 11px 13px; }
.opt[aria-pressed="true"] .opt-key { background: var(--blue); border-color: var(--blue); color: var(--white); }
.opt.is-key { border: 2px solid var(--brass); padding: 11px 13px; }
.qcard-result { display: flex; gap: 14px; align-items: flex-start; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--fog); }
.qcard-result[hidden] { display: none; }
.result-text { margin: 0; font-size: 15px; line-height: 1.55; }
.qcard.is-right .result-mark .mark-check { animation: draw-check 600ms var(--ease) both; }
.qcard.is-wrong .result-mark { opacity: .35; }
@keyframes draw-check { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* ---------- Ledger (price comparison) ---------- */
.ledger { width: 100%; border-collapse: collapse; font-size: 16px; background: var(--white); border-radius: var(--r-l); overflow: hidden; }
.ledger th, .ledger td { text-align: left; padding: 18px 22px; border-bottom: 1px solid var(--fog); vertical-align: top; }
.ledger thead th { font-size: 13px; font-weight: 600; color: var(--slate); background: var(--white); }
.ledger tbody th { font-weight: 600; }
.ledger tr.ours th, .ledger tr.ours td { background: #FBF6EC; }
.ledger tr.ours th { box-shadow: inset 4px 0 0 var(--brass); }
.ledger tbody tr:last-child th, .ledger tbody tr:last-child td { border-bottom: 0; }
.ledger sup { font-size: 11px; margin-left: 2px; }
.sources { margin: 16px 0 0; padding-left: 20px; font-size: 13px; color: var(--slate); }

/* ---------- Steps ---------- */
.steps { list-style: none; counter-reset: step; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.steps li { counter-increment: step; border-top: 2px solid var(--navy); padding-top: 20px; }
.steps li::before { content: counter(step); display: block; font: 600 40px/1 var(--serif); color: var(--brass-700); margin-bottom: 14px; }
.steps p { color: var(--slate); margin: 8px 0 0; }

.builder-mock { margin: 56px 0 0; max-width: 760px; border: 1px solid var(--fog); border-radius: var(--r-l); background: var(--white); box-shadow: 0 12px 32px rgba(14, 27, 44, .07); overflow: hidden; }
.bm-head, .bm-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 22px; }
.bm-head { border-bottom: 1px solid var(--fog); }
.bm-title { font-weight: 600; }
.bm-ai { white-space: nowrap; font-size: 12px; font-weight: 600; background: var(--blue-100); color: var(--navy-700); border-radius: 999px; padding: 4px 10px; }
.bm-list { list-style: none; margin: 0; padding: 0; }
.bm-list li { display: grid; grid-template-columns: 1.1fr 1.6fr auto; gap: 16px; padding: 14px 22px; border-bottom: 1px solid var(--fog); font-size: 15px; align-items: baseline; }
.bm-name { font-weight: 600; }
.bm-why { color: var(--slate); font-size: 14px; }
.bm-min { color: var(--slate); font-size: 14px; font-variant-numeric: tabular-nums; }
.bm-foot { font-size: 14px; color: var(--slate); background: var(--paper); }
.bm-btn { white-space: nowrap; background: var(--blue); color: var(--white); border-radius: var(--r-s); padding: 8px 14px; font-weight: 600; font-size: 14px; }

/* ---------- Candidates band ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 64px; align-items: center; }
.promise { list-style: none; margin: 8px 0 28px; padding: 0; display: grid; gap: 18px; max-width: 54ch; }
.promise li { display: flex; gap: 14px; align-items: flex-start; color: var(--mist); }
.promise b { color: var(--paper); font-weight: 600; }
.promise .ico { color: var(--brass); }
.link-light { color: var(--paper); }
.link-light:hover { color: var(--white); }
.ico { width: 20px; height: 20px; flex: none; margin-top: 3px; }

.phone { justify-self: center; width: 300px; padding: 12px; border-radius: 40px; background: #1B2A3F; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.phone-screen { background: var(--white); color: var(--navy); border-radius: 30px; padding: 20px 18px 22px; min-height: 520px; display: flex; flex-direction: column; gap: 10px; }
.ph-top { display: flex; justify-content: space-between; font-size: 12px; color: var(--slate); }
.ph-time { font-variant-numeric: tabular-nums; color: var(--navy); }
.ph-bar { height: 4px; background: var(--blue-100); border-radius: 2px; margin-bottom: 8px; }
.ph-bar span { display: block; width: 100%; height: 4px; background: var(--blue); border-radius: 2px; }
.ph-q { font-size: 15px; line-height: 1.5; font-weight: 600; margin: 4px 0 6px; }
.ph-opt { display: flex; gap: 10px; align-items: center; border: 1px solid var(--fog); border-radius: 8px; padding: 10px 12px; font-size: 14px; }
.ph-opt span { width: 22px; height: 22px; border-radius: 50%; border: 1px solid #8A93A0; display: grid; place-items: center; font-size: 11px; font-weight: 600; }
.ph-opt.sel { border: 2px solid var(--blue); background: var(--blue-100); }
.ph-opt.sel span { background: var(--blue); border-color: var(--blue); color: var(--white); }
.ph-next { margin-top: auto; background: var(--blue); color: var(--white); text-align: center; border-radius: 10px; padding: 12px; font-weight: 600; font-size: 14px; }

/* ---------- Lists with icons ---------- */
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; margin: 32px 0; }
.col-h { margin-bottom: 14px; }
.ticks, .crosses { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticks li, .crosses li { display: flex; gap: 12px; align-items: flex-start; }
.ticks .ico { color: #2E7D4F; }
.crosses .ico { color: var(--slate); }

/* ---------- Roles ---------- */
.role-grid { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 32px; }
.role-grid a { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 0; border-bottom: 1px solid #DDD8CE; color: var(--navy); text-decoration: none; }
.band:not(.band-paper) .role-grid a { border-bottom-color: var(--fog); }
.role-grid a:hover .rg-title { text-decoration: underline; }
.rg-title { font-weight: 500; }
.rg-min { font-size: 14px; color: var(--slate); font-variant-numeric: tabular-nums; white-space: nowrap; }
.more { margin-top: 28px; }
.fam-h { font: 600 15px var(--sans); color: var(--slate); margin: 40px 0 0; }
.fam-h:first-child { margin-top: 0; }
.crumbs { font-size: 14px; color: var(--slate); margin: 0 0 18px; }

.battery { width: 100%; border-collapse: collapse; font-size: 16px; }
.battery th, .battery td { text-align: left; padding: 14px 0; border-bottom: 1px solid var(--fog); vertical-align: top; }
.battery td { padding-left: 24px; color: var(--slate); }
.battery thead th { font-size: 13px; color: var(--slate); font-weight: 600; }
.battery tbody th { font-weight: 600; }
.battery .num { text-align: right; font-variant-numeric: tabular-nums; color: var(--navy); }
.battery tfoot th, .battery tfoot td { border-bottom: 0; border-top: 2px solid var(--navy); font-weight: 600; }

/* ---------- Pricing ---------- */
.plans { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border: 1px solid var(--fog); border-radius: var(--r-l); overflow: hidden; }
.plan { padding: 28px 22px 30px; border-right: 1px solid var(--fog); display: flex; flex-direction: column; gap: 8px; background: var(--white); }
.plan:last-child { border-right: 0; }
.plan-pick { background: #FBF6EC; box-shadow: inset 0 3px 0 var(--brass); }
.plan-top { display: flex; flex-direction: column; gap: 6px; min-height: 52px; }
.plan h2 { font: 600 18px var(--sans); }
.plan-badge { font-size: 12px; font-weight: 600; color: var(--brass-700); }
.plan-price { font: 600 34px/1.1 var(--serif); margin: 6px 0 0; font-variant-numeric: lining-nums; }
.plan-price span { display: block; font: 400 13px/1.4 var(--sans); color: var(--slate); margin-top: 6px; }
.plan-inc { font-weight: 600; font-size: 15px; margin: 10px 0 0; }
.plan-who { font-size: 14px; color: var(--slate); margin: 0 0 10px; min-height: 42px; }
.plan .ticks { font-size: 14px; gap: 8px; }
.plan .ico { width: 18px; height: 18px; margin-top: 2px; }
.faq details { border-bottom: 1px solid #DDD8CE; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 32px 20px 0; font-weight: 600; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 4px; top: 27px; width: 10px; height: 10px; border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(45deg); transition: transform 200ms var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); top: 31px; }
.faq details p { margin: 0 0 20px; color: var(--slate); max-width: 62ch; }

/* ---------- Long-form pages ---------- */
.prose h2 { font: 500 28px/1.2 var(--serif); letter-spacing: -0.01em; margin: 48px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { max-width: 66ch; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose .two-col ul { padding-left: 0; }

/* ---------- Test finder ---------- */
.finder textarea { width: 100%; min-height: 220px; padding: 14px 16px; border: 1px solid #CFCBC2; border-radius: var(--r-m); font: 16px/1.55 var(--sans); color: var(--navy); resize: vertical; }
.finder-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
#finder-out:not(:empty) { margin-top: 40px; }
.result-h { font: 500 26px/1.2 var(--serif); margin: 0 0 6px; }

/* ---------- CTA + footer ---------- */
.cta-band .sec-title { max-width: none; }
.site-foot { border-top: 1px solid var(--fog); padding: 56px 0 28px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.foot-brand p { color: var(--slate); max-width: 30ch; margin: 14px 0 0; }
.foot-h { font: 600 14px var(--sans); color: var(--slate); margin: 0 0 12px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-foot a { color: var(--navy); text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.foot-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--fog); font-size: 13px; color: var(--slate); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan { border-bottom: 1px solid var(--fog); }
  .plan:nth-child(2n) { border-right: 0; }
}
@media (max-width: 900px) {
  .wrap { padding: 0 22px; }
  .menu-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--fog); border-radius: var(--r-m); background: var(--white); font: 600 15px var(--sans); color: var(--navy); cursor: pointer; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 72px; flex-direction: column; align-items: stretch; gap: 0; background: var(--white); border-bottom: 1px solid var(--fog); padding: 8px 22px 20px; }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--fog); }
  .site-nav .btn { margin-top: 16px; }
  .hero { padding: 48px 0 72px; }
  .hero-grid, .split, .two-col { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .band { padding: 72px 0; }
  .bm-list li { grid-template-columns: 1fr auto; }
  .bm-why { grid-column: 1 / -1; grid-row: 2; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .ledger, .ledger tbody, .ledger tr, .ledger th, .ledger td { display: block; }
  .ledger thead { display: none; }
  .ledger tr { border-bottom: 1px solid var(--fog); padding: 8px 0; }
  .ledger th, .ledger td { border: 0; padding: 4px 18px; }
  .ledger tbody th { padding-top: 12px; }
}
@media (max-width: 560px) {
  .plans { grid-template-columns: 1fr; }
  .plan { border-right: 0; }
  .field-row .btn { width: 100%; }
  .phone { width: 260px; }
  .phone-screen { min-height: 460px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
