
/* COM-DEFECT-11: skip-to-content link */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 9999;
  background: var(--plum, #4B2E83); color: #fff; font-weight: 700;
  padding: 0.8rem 1.4rem; border-radius: 0 0 8px 0; text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ============ PACTLYST — styles ============ */
:root {
  --plum: #4B2E83;
  --plum-deep: #3A2266;
  --ink: #221D3A;
  --ink-soft: #5A5478;
  --mint: #35D0A0;
  --mint-soft: #CFF2DF;
  --coral: #FF6B5E;
  --coral-soft: #FBD8D4;
  --lavender: #B7A6E8;
  --lavender-soft: #E2D6F9;
  --plum-soft: #E0CFF9;
  --app-bg: #F3EEFB;
  --ivory: #FBF6EC;
  --ivory-deep: #F5EDDD;
  --white: #FFFFFF;
  --line: #EAE3D4;
  --radius: 1.25rem;
  --shadow: 0 18px 45px rgba(75, 46, 131, 0.14);
  --font-head: "Quicksand", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: 0.6rem; }
img, svg { display: block; }
a { color: inherit; }

.wrap { width: min(1120px, 92%); margin: 0 auto; }
.wrap-narrow { width: min(760px, 92%); }
.section { padding: 5.5rem 0; }
.eyebrow {
  font-family: var(--font-head); font-weight: 700; font-size: 0.82rem;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--plum); margin-bottom: 0.7rem;
}
.section-sub { color: var(--ink-soft); font-size: 1.1rem; max-width: 40rem; margin-bottom: 2.5rem; }
.pro-pill {
  display: inline-block; vertical-align: middle;
  background: var(--plum); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 0.72rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.25rem 0.75rem; border-radius: 999px; margin-left: 0.6rem;
}
.free-pill {
  display: inline-block; vertical-align: middle;
  background: var(--mint); color: var(--ink);
  font-family: var(--font-head); font-weight: 700; font-size: 0.72rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.25rem 0.75rem; border-radius: 999px; margin-left: 0.6rem;
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  padding: 0.85rem 1.7rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; text-decoration: none; transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--plum-deep); color: #fff; box-shadow: 0 10px 24px rgba(58, 34, 102, 0.35); }
.btn-primary:hover { background: #2C1A52; transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--plum); border-color: var(--plum); }
.btn-outline:hover { background: var(--lavender-soft); transform: translateY(-2px); }
.btn-ghost { background: var(--lavender-soft); color: var(--plum); padding: 0.55rem 1.3rem; font-size: 0.9rem; }
.btn-sm { padding: 0.65rem 1.35rem; font-size: 0.92rem; }
.btn-block { width: 100%; margin-top: 0.75rem; }

/* ============ Nav ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(243, 238, 251, 0.92); backdrop-filter: blur(10px);
  transition: box-shadow 0.25s ease;
}
.nav.scrolled { box-shadow: 0 4px 20px rgba(75, 46, 131, 0.12); }
.nav-inner { width: min(1120px, 94%); margin: 0 auto; display: flex; align-items: center; gap: 1.5rem; padding: 0.85rem 0; }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; margin-right: auto; min-height: 44px; } /* COM-DEFECT-47: 44px minimum touch target */
.brand-mark { width: 40px; height: 35px; }
.brand-img { width: 40px; height: 40px; border-radius: 11px; object-fit: cover; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; color: var(--ink); }
.nav-links { display: flex; gap: 1.6rem; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: 0.95rem; color: var(--ink-soft); transition: color 0.15s; padding: 0.65rem 0.35rem; display: inline-block; } /* COM-DEFECT-15: 44px tap target */
.nav-links a:hover { color: var(--plum); }

/* Mobile menu toggle */
.menu-toggle {
  display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  width: 2.75rem; height: 2.75rem; background: none; border: none; cursor: pointer;
  padding: 0.5rem; border-radius: 0.75rem;
}
.menu-toggle span {
  display: block; width: 1.4rem; height: 2.5px; border-radius: 2px; background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.mobile-menu {
  display: none; max-height: 0; overflow: hidden; visibility: hidden;
  transition: max-height 0.3s ease, visibility 0.3s;
  width: min(1120px, 94%); margin: 0 auto;
} /* COM-DEFECT-25: visibility hidden removes from tab order when closed */
.mobile-menu a:not(.btn) {
  display: block; padding: 0.85rem 0.25rem; text-decoration: none;
  font-weight: 700; font-family: var(--font-head); font-size: 1.05rem; color: var(--ink);
  border-top: 1px solid var(--line);
}
.mobile-menu .btn { margin: 1rem 0 1.25rem; }
.nav.nav-open .mobile-menu { max-height: 26rem; visibility: visible; }

/* ============ Hero ============ */
.hero { padding: 3.5rem 0 5rem; overflow: hidden; background: var(--app-bg); }
.hero-inner { width: min(1120px, 92%); margin: 0 auto; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3rem; align-items: center; }
.pill {
  display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: 0.85rem;
  padding: 0.45rem 1.1rem; border-radius: 999px; margin-bottom: 1.2rem;
}
.pill-coming { background: #E9E0F8; color: var(--plum); border: 1.5px solid var(--plum); }
.hero h1 { font-size: clamp(2.6rem, 5.5vw, 4rem); margin-bottom: 1rem; }
.hero-sub { font-size: 1.18rem; color: var(--ink-soft); margin-bottom: 1.8rem; max-width: 32rem; }
.see-how { display: inline-block; margin-top: 1.1rem; font-weight: 600; color: var(--plum); text-decoration: none; }
.see-how:hover { text-decoration: underline; }

/* Waitlist form */
.waitlist-form { display: flex; gap: 0.6rem; max-width: 26rem; flex-wrap: wrap; }
.waitlist-form input {
  flex: 1; min-width: 12rem; padding: 0.85rem 1.2rem; border-radius: 999px;
  border: 2px solid var(--line); background: #fff; font-size: 1rem; font-family: var(--font-body);
}
.waitlist-form input:focus { outline: none; border-color: var(--plum); box-shadow: 0 0 0 3px rgba(75, 46, 131, 0.25); } /* COM-DEFECT-14: visible focus */
.form-note { width: 100%; font-size: 0.92rem; font-weight: 600; min-height: 1.4em; }
/* COM-DEFECT-28: darken ok/err text to pass WCAG 1.4.3 (4.5:1 on white) */
.form-note.ok { color: #0B6B4F; } /* 6.50:1 on white */
.form-note.err { color: #C93A2E; } /* 5.09:1 on white; --coral untouched for other uses */
.spam-note { width: 100%; font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.35rem; }
.trust-row { width: 100%; font-size: 0.85rem; color: var(--ink-soft); margin: 0.15rem 0 0; }
.cta-card .trust-row { color: rgba(255,255,255,0.75); }
.founder-note { font-style: italic; }
.cta-card .founder-note { margin: -0.9rem 0 1.6rem; font-size: 0.98rem; }
.cta-card .spam-note { color: rgba(255,255,255,0.75); }
.waitlist-form.done input, .waitlist-form.done button { display: none; }

/* Hero visual */
.hero-visual { position: relative; display: flex; justify-content: center; padding: 1rem 0; }
.phone-wrap { position: relative; }
.float-card {
  position: absolute; display: flex; align-items: center; gap: 0.7rem; z-index: 3;
  background: #fff; border-radius: 1rem; padding: 0.75rem 1rem; box-shadow: var(--shadow);
  font-size: 0.82rem; max-width: 13rem;
  --fx: 0px; --fy: 0px;
  transform: translate(var(--fx), var(--fy));
  animation: float 5s ease-in-out infinite;
}
.float-card div { display: flex; flex-direction: column; }
.float-card strong { font-family: var(--font-head); }
.float-card-top { top: -9%; right: -4%; }
.float-card-bottom { bottom: -9%; left: -4%; animation-delay: 2.5s; }
.flag-dot { width: 0.9rem; height: 0.9rem; border-radius: 50%; flex-shrink: 0; }
.flag-dot-coral { background: var(--coral); }
.flag-dot-mint { background: var(--mint); }
@keyframes float { 0%, 100% { transform: translate(var(--fx), var(--fy)); } 50% { transform: translate(var(--fx), calc(var(--fy) - 12px)); } }

/* ============ Phone mockups ============ */
.phone {
  width: 300px; max-width: 82vw; border-radius: 3rem; padding: 0.75rem;
  background: #14121f; box-shadow: var(--shadow); position: relative;
}
.phone-screen {
  background: var(--app-bg); border-radius: 2.4rem; overflow: hidden;
  height: 600px; display: flex; flex-direction: column;
  font-size: 0.8rem; position: relative;
}
.phone-hero { transform: rotate(-3deg); }
.statusbar { display: flex; justify-content: space-between; padding: 0.9rem 1.3rem 0.4rem; font-weight: 700; font-size: 0.78rem; }
.statusbar-icons { letter-spacing: 0.1em; }
.greeting { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; padding: 0.4rem 1.2rem 0; }
.greeting-sub { color: var(--ink-soft); padding: 0 1.2rem; font-size: 0.75rem; margin-bottom: 0.7rem; }
.banner-card {
  margin: 0 1rem 0.8rem; background: linear-gradient(135deg, var(--lavender-soft), #FBEEDB);
  border-radius: 1.1rem; padding: 1rem;
}
.banner-card p { font-family: var(--font-head); font-weight: 700; font-size: 1rem; line-height: 1.3; margin-bottom: 0.6rem; }
.mini-row {
  display: flex; align-items: center; gap: 0.7rem; margin: 0 1rem 0.6rem;
  border: 1.5px solid var(--line); border-radius: 1rem; padding: 0.65rem 0.8rem; background: #fff;
}
.mini-row div { display: flex; flex-direction: column; flex: 1; line-height: 1.35; }
.mini-row strong { font-family: var(--font-head); font-size: 0.85rem; }
.mini-row span:not(.chev) { font-size: 0.72rem; color: var(--ink-soft); }
.mini-row .mint-text { color: #146B4B; font-weight: 600; } /* COM-DEFECT-61: #146B4B on white = 6.49:1 >= 4.5 (was #1E9E72 @ 3.39:1); .mini-row bg is #fff; text darkened only */
.mini-icon { width: 2.1rem; height: 2.1rem; border-radius: 0.7rem; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.mini-icon-coral { background: var(--coral-soft); }
.mini-icon-mint { background: var(--mint-soft); }
.chev { color: #B9B3CE; font-size: 1.2rem; font-weight: 700; }
.phone-nav {
  margin-top: auto; display: flex; justify-content: space-around;
  border-top: 1px solid var(--line); padding: 0.7rem 0.4rem 1rem; font-size: 0.62rem; color: var(--ink-soft);
  background: #fff;
}
.phone-nav .active { color: var(--plum); font-weight: 700; }

/* Current Home-screen mockup (matches the app) */
.mock-brandrow { display: flex; align-items: center; gap: 0.5rem; padding: 0.4rem 1.2rem 0; }
.mock-brandrow img { width: 1.6rem; height: 1.6rem; border-radius: 0.45rem; border: 1.5px solid rgba(75,46,131,0.16); background: #fff; }
.mock-brandrow strong { font-family: var(--font-head); font-size: 0.95rem; }
.mock-gear { margin-left: auto; color: var(--plum-deep); font-size: 1rem; }
.mock-badge { display: inline-block; margin: 0.55rem 1.2rem 0; background: var(--lavender-soft); color: var(--plum-deep); border-radius: 999px; padding: 0.28rem 0.7rem; font-size: 0.66rem; font-weight: 600; }
.mock-headline { font-family: var(--font-head); font-weight: 700; font-size: 1.28rem; line-height: 1.25; padding: 0.5rem 1.2rem 0; }
.mock-accent { color: #146B4B; } /* COM-DEFECT-64: #146B4B on #F3EEFB (phone-screen bg) = 5.7:1 >= 3:1 large-text (was #1FA97A @ 2.63:1); text darkened only; both usages (index.html:130,:549) sit on --app-bg #F3EEFB */
.mock-sub { color: var(--ink-soft); font-size: 0.7rem; padding: 0.35rem 1.2rem 0; line-height: 1.45; }
.mock-privacy { display: flex; align-items: center; gap: 0.4rem; padding: 0.5rem 1.2rem 0; font-size: 0.66rem; color: var(--ink-soft); }
.mock-capture { margin: 0.7rem 1rem 0; background: #fff; border: 1.5px solid var(--line); border-radius: 1.1rem; padding: 0.7rem; }
.mock-capture-row { display: flex; gap: 0.6rem; margin-bottom: 0.6rem; }
.mock-capbtn { flex: 1; text-align: center; border-radius: 0.8rem; padding: 0.55rem 0.3rem; font-size: 0.66rem; font-weight: 700; }
.mock-capbtn-lav { background: var(--lavender-soft); color: var(--plum-deep); }
.mock-capbtn-mint { background: var(--mint-soft); color: #146B4B; } /* COM-DEFECT-60: #146B4B on #CFF2DF = 5.39:1 >= 4.5 (was #0F9D6C @ 2.87:1); text darkened only, tint untouched */
.mock-capbtn-full { display: block; margin-bottom: 0.5rem; }
.mock-cta { display: block; text-align: center; background: linear-gradient(135deg, #3A2266, #4B2E83); color: #fff; border-radius: 0.8rem; padding: 0.6rem; font-weight: 700; font-size: 0.74rem; }
.mock-deal { display: flex; gap: 0.6rem; align-items: center; margin: 0.7rem 1rem 0; background: #FBEEDB; border-radius: 1rem; padding: 0.65rem 0.8rem; }
.mock-deal-icon { width: 2rem; height: 2rem; border-radius: 0.7rem; background: #D97300; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 0.95rem; flex-shrink: 0; }
.mock-deal div { display: flex; flex-direction: column; flex: 1; line-height: 1.35; }
.mock-deal strong { font-family: var(--font-head); font-size: 0.8rem; }
.mock-deal span { font-size: 0.66rem; color: var(--ink-soft); }

/* Score rings */
.ring { flex-shrink: 0; }
.ring-sm { width: 3rem; height: 3rem; }
.ring-lg { width: 8.5rem; height: 8.5rem; margin: 0 auto; }
.ring-bg { fill: none; stroke: var(--ivory-deep); stroke-width: 10; }
.ring-fg {
  fill: none; stroke: var(--mint); stroke-width: 10; stroke-linecap: round;
  transform: rotate(-90deg); transform-origin: center;
  stroke-dasharray: 339.29; stroke-dashoffset: 339.29; transition: stroke-dashoffset 1.4s ease;
}
.ring-text { font-family: var(--font-head); font-weight: 700; font-size: 2rem; fill: var(--ink); }
.ring-text-lg { font-family: var(--font-head); font-weight: 700; font-size: 2.1rem; fill: var(--ink); }
.ring-label { font-family: var(--font-head); font-size: 0.72rem; font-weight: 600; fill: var(--ink-soft); }
.ring-sub { font-size: 0.62rem; fill: var(--ink-soft); }

/* Screen titles */
.screen-title { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; padding: 0.4rem 1.2rem 0; }
.screen-sub { color: var(--ink-soft); padding: 0 1.2rem; font-size: 0.74rem; margin-bottom: 0.8rem; }
.score-wrap { text-align: center; margin-bottom: 0.6rem; }
.score-note { font-size: 0.74rem; color: var(--ink-soft); padding: 0.5rem 2rem 0; }

/* Add screen */
.dropzone {
  margin: 0 1rem; border: 2px dashed var(--line); border-radius: 1.1rem;
  padding: 1.2rem 1rem; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 0.35rem;
  background: #FFFDF8;
}
.drop-icon { width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--lavender-soft); color: var(--plum); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.dropzone strong { font-family: var(--font-head); font-size: 0.88rem; }
.drop-types { font-size: 0.7rem; color: var(--ink-soft); margin-bottom: 0.4rem; }
.or { text-align: center; color: var(--ink-soft); font-size: 0.75rem; margin: 0.7rem 0 0.4rem; }
.cat-label { font-family: var(--font-head); font-weight: 700; font-size: 0.88rem; padding: 0 1.2rem; margin-bottom: 0.4rem; }
.cat-row {
  display: flex; align-items: center; gap: 0.7rem; margin: 0 1rem 0.45rem;
  border: 1.5px solid var(--line); border-radius: 0.9rem; padding: 0.55rem 0.8rem; background: #fff;
  font-weight: 600; font-size: 0.82rem;
}
.cat-row .chev { margin-left: auto; }
.cat-icon { width: 1.9rem; height: 1.9rem; border-radius: 0.6rem; display: flex; align-items: center; justify-content: center; font-size: 0.95rem; flex-shrink: 0; }
.cat-icon-mint { background: var(--mint-soft); }
.cat-icon-coral { background: var(--coral-soft); }
.cat-icon-lavender { background: var(--lavender-soft); }
.cat-icon-plum { background: #ECE5F7; }

/* Review screen */
.review-block { margin: 0 1rem 0.7rem; }
.review-head { font-family: var(--font-head); font-weight: 700; font-size: 0.9rem; display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.35rem; }
.review-icon { width: 1.4rem; height: 1.4rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 0.75rem; color: #fff; flex-shrink: 0; font-style: normal; }
.review-icon-mint { background: #146B4B; } /* COM-DEFECT-63: white glyph on #146B4B = 6.49:1 >= 3:1 (was var(--mint) @ 1.97:1); --mint untouched globally; tile darkened only, glyph stays white */
.review-icon-coral { background: #A52F27; } /* COM-DEFECT-62: white glyph on #A52F27 = 6.92:1 >= 3:1 (was var(--coral) @ 2.79:1); --coral untouched globally; tile darkened only, glyph stays white */
.review-icon-good { background: #1E9E72; }
.review-block ul { list-style: disc; padding-left: 2.1rem; font-size: 0.74rem; color: var(--ink-soft); line-height: 1.55; }
.review-block .btn-block { margin: 0.6rem 0 0; }

/* New analysis mockup (matches the app: lavender bg, bold cards, red risk, plum market check) */
.mock-verdict {
  margin: 0 1rem 0.7rem; border-radius: 1rem; padding: 0.7rem 0.85rem;
  background: linear-gradient(135deg, #3A2266, #5B3BA8); color: #fff;
  display: flex; align-items: center; gap: 0.65rem;
}
.mock-verdict-icon { width: 2.1rem; height: 2.1rem; border-radius: 50%; background: rgba(255,255,255,0.18); display: flex; align-items: center; justify-content: center; font-size: 1.05rem; flex-shrink: 0; }
.mock-verdict div { line-height: 1.35; }
.mock-verdict strong { font-family: var(--font-head); font-size: 0.88rem; display: block; }
.mock-verdict span { font-size: 0.66rem; opacity: 0.85; }
.mock-grouplabel { font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--plum); padding: 0 1.2rem; margin-bottom: 0.3rem; }
.mock-contents { margin: 0 1rem 0.6rem; background: #fff; border-radius: 1rem; padding: 0.15rem 0.8rem; }
.mock-tocrow { display: flex; align-items: center; gap: 0.6rem; padding: 0.45rem 0; border-bottom: 1px solid rgba(75,46,131,0.08); }
.mock-tocrow:last-child { border-bottom: none; }
.mock-tocicon { width: 1.65rem; height: 1.65rem; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 0.78rem; flex-shrink: 0; }
.mock-tocrow > div, .mock-secrow > div { flex: 1; line-height: 1.3; min-width: 0; }
.mock-tocrow strong, .mock-secrow strong { font-size: 0.74rem; display: block; color: var(--ink); }
.mock-tocrow span, .mock-secrow span { font-size: 0.62rem; color: var(--ink-soft); }
.mock-pill { display: inline-block; font-size: 0.58rem; font-weight: 700; border-radius: 999px; padding: 0.14rem 0.5rem; margin-top: 0.15rem; }
.mock-pill-plum { background: var(--plum-soft); color: var(--plum-deep); }
.mock-pill-red { background: var(--coral-soft); color: #A52F27; } /* COM-DEFECT-57: #A52F27 on #FBD8D4 = 5.23:1 >= 4.5 (was #C0392B @ 4.11:1); text darkened only, tint untouched */
.mock-pill-mint { background: var(--mint-soft); color: #146B4B; } /* COM-DEFECT-58: #146B4B on #CFF2DF = 5.39:1 >= 4.5 (was #0F7A55 @ 4.43:1); text darkened only, tint untouched */
.mock-pill-amber { background: #F8DFB0; color: #221D3A; border: 1px solid #F59E0B; }
.mock-secrow { display: flex; align-items: center; gap: 0.6rem; margin: 0 1rem 0.45rem; background: #fff; border-radius: 1rem; padding: 0.55rem 0.8rem; }
.mock-count { background: var(--lavender-soft); color: var(--plum-deep); border-radius: 999px; font-size: 0.58rem; padding: 0.08rem 0.42rem; font-weight: 700; margin-left: 0.3rem; }
.mock-flagcard { margin: 0 1rem 0.45rem; background: var(--coral-soft); border-radius: 1rem; padding: 0.65rem 0.8rem; }
.mock-flaghead { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.25rem; }
.mock-flaghead strong { font-size: 0.74rem; color: var(--ink); }
.mock-flagcard p { font-size: 0.64rem; color: var(--ink-soft); line-height: 1.45; }

/* Vault screen */
.searchbar {
  margin: 0 1rem 0.6rem; background: #F4F0E6; border-radius: 0.9rem;
  padding: 0.55rem 0.9rem; color: var(--ink-soft); font-size: 0.78rem;
}
.chips { display: flex; gap: 0.4rem; padding: 0 1rem; margin-bottom: 0.7rem; flex-wrap: wrap; }
.chip { font-size: 0.68rem; font-weight: 600; padding: 0.28rem 0.75rem; border-radius: 999px; background: #F4F0E6; color: var(--ink-soft); }
.chip-active { background: var(--plum); color: #fff; }
.vault-row {
  display: flex; align-items: center; gap: 0.65rem; margin: 0 1rem 0.55rem;
  border: 1.5px solid var(--line); border-radius: 1rem; padding: 0.6rem 0.75rem; background: #fff;
}
.vault-row div { flex: 1; line-height: 1.4; min-width: 0; }
.vault-row strong { font-family: var(--font-head); font-size: 0.82rem; display: block; }
.vault-row span span, .vault-row div > span { font-size: 0.66rem; color: var(--ink-soft); display: block; }
.vault-icon { width: 2rem; height: 2rem; border-radius: 0.65rem; background: var(--ivory-deep); display: flex; align-items: center; justify-content: center; font-size: 0.95rem; flex-shrink: 0; }
.status { font-size: 0.6rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: 999px; border: 1.5px solid; flex-shrink: 0; }
.status-active { color: #146B4B; border-color: var(--mint); background: var(--mint-soft); } /* COM-DEFECT-60a: #146B4B on #CFF2DF = 5.39:1 >= 4.5 (was #1E9E72 @ 2.81:1); text darkened only, tint untouched */
.status-review { color: #A52F27; border-color: var(--coral); background: var(--coral-soft); } /* COM-DEFECT-60c: #A52F27 on #FBD8D4 = 5.23:1 >= 4.5 (was var(--coral) #FF6B5E @ 2.11:1); text darkened only, tint untouched */
.status-soon { color: #A85C00; border-color: #D97300; background: #FBEEDB; }
.vault-note {
  margin: 0.4rem 1rem 0.7rem; background: var(--lavender-soft); border-radius: 1rem;
  padding: 0.8rem 1rem; font-size: 0.72rem; color: var(--ink-soft); line-height: 1.5;
}
.vault-note strong { color: var(--ink); }

/* Autopilot screen */
.auto-row {
  display: flex; gap: 0.65rem; margin: 0 1rem 0.6rem;
  border: 1.5px solid var(--line); border-radius: 1rem; padding: 0.7rem 0.85rem; background: #fff;
}
.auto-row div { flex: 1; line-height: 1.45; min-width: 0; }
.auto-row strong { font-family: var(--font-head); font-size: 0.85rem; display: block; }
.auto-row div > span { font-size: 0.68rem; color: var(--ink-soft); display: block; }
.auto-dot { width: 0.85rem; height: 0.85rem; border-radius: 50%; margin-top: 0.25rem; flex-shrink: 0; }
.auto-dot-coral { background: var(--coral); }
.auto-dot-plum { background: var(--plum); }
.auto-dot-mint { background: var(--mint); }

/* ============ Pillars ============ */
.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.pillar-card {
  background: #fff; border-radius: var(--radius); padding: 2rem 1.7rem;
  box-shadow: 0 8px 28px rgba(75, 46, 131, 0.08); border: 1px solid var(--line);
}
.pillar-icon {
  width: 3rem; height: 3rem; border-radius: 1rem; display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 1.1rem;
  background: var(--lavender-soft); color: var(--plum);
}
.pillar-icon-mint { background: var(--mint-soft); color: #146B4B; } /* COM-DEFECT-60d: icon glyph on mint-soft; #146B4B (was #0F9D6C) matches the 4.5:1 text pairing */
.pillar-icon-coral { background: var(--coral-soft); color: #A52F27; } /* COM-DEFECT-60e: icon glyph on coral-soft; #A52F27 (was var(--coral)) matches the 4.5:1 text pairing */
.pillar-card h2, .pillar-card h3 { margin-bottom: 0.6rem; font-size: 1.25rem; }
.pillar-card p { color: var(--ink-soft); font-size: 0.98rem; }
.lang-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.8rem; }
.lang-chip {
  display: inline-block; padding: 0.45rem 1.05rem; border-radius: 999px;
  background: var(--mint-soft); color: var(--ink); font-weight: 600; font-size: 0.95rem;
  border: 1px solid rgba(15, 157, 108, 0.28);
}
.lang-note { margin-top: 1.3rem; color: var(--ink-soft); font-size: 0.92rem; }

/* ============ Screens / tabs ============ */
.screens { background: #fff; }

/* ============ DEAL TRACKER ============ */
.deals { background: linear-gradient(180deg, var(--ivory) 0%, var(--lavender-soft) 100%); }
.deals-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; margin-bottom: 2.5rem; }
.deals-grid { margin-top: 1rem; }
@media (max-width: 860px) {
  .deals-panel { grid-template-columns: 1fr; gap: 2rem; }
}
.tabs {
  display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 2.5rem;
  border-bottom: 2px solid var(--line); padding-bottom: 1rem;
}
.tab {
  font-family: var(--font-head); font-weight: 700; font-size: 0.95rem;
  padding: 0.75rem 1.2rem; border-radius: 999px; border: 2px solid transparent; min-height: 44px; /* COM-DEFECT-15 */
  background: transparent; color: var(--ink-soft); cursor: pointer; transition: all 0.18s ease;
}
.tab:hover { color: var(--plum); background: var(--lavender-soft); }
.tab.active { background: var(--plum); color: #fff; box-shadow: 0 8px 20px rgba(75, 46, 131, 0.28); }
.tab-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; animation: panelIn 0.35s ease; }
.tab-panel[hidden] { display: none; }
@keyframes panelIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.panel-copy h3 { font-size: 1.7rem; margin-bottom: 0.8rem; }
.panel-copy p { color: var(--ink-soft); margin-bottom: 1.2rem; }
.check-list { list-style: none; }
.check-list li { padding-left: 1.9rem; position: relative; margin-bottom: 0.6rem; font-weight: 500; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0.05rem;
  width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--mint-soft); color: #146B4B; /* COM-DEFECT-60b: #146B4B on #CFF2DF = 5.39:1 >= 4.5 (was #1E9E72 @ 2.81:1); glyph darkened only, tint untouched */
  font-size: 0.75rem; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.panel-visual { display: flex; justify-content: center; }

/* ============ Why ============ */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.why-card { border-radius: var(--radius); padding: 2rem 1.7rem; border: 2px solid; }
.why-card h3 { margin-bottom: 0.6rem; font-size: 1.25rem; }
.why-card p { font-size: 0.98rem; }
.why-card-mint { background: var(--mint-soft); border-color: var(--mint); }
.why-card-mint h3 { color: #157A54; }
.why-card-coral { background: var(--coral-soft); border-color: var(--coral); }
.why-card-coral h3 { color: #C2432F; }
.why-card-lavender { background: var(--lavender-soft); border-color: var(--lavender); }
.why-card-lavender h3 { color: var(--plum); }

/* ============ Pricing ============ */
.pricing { background: #fff; }
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.4rem; align-items: stretch; }
.price-card {
  border: 2px solid var(--line); border-radius: var(--radius); padding: 2.1rem 1.8rem;
  background: var(--ivory); display: flex; flex-direction: column; position: relative;
}
.price-card h3 { font-size: 1.4rem; margin-bottom: 0.4rem; }
.price { margin-bottom: 0.2rem; }
.price-amount { font-family: var(--font-head); font-weight: 700; font-size: 2.6rem; color: var(--plum); }
.price-per { color: var(--ink-soft); font-size: 0.95rem; }
.price-annual { color: var(--plum); font-weight: 700; font-size: 0.95rem; margin-top: -0.6rem; }
.price-note { color: var(--ink-soft); font-size: 0.85rem; margin-top: 0.8rem; }
.price-blurb { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 1.2rem; }
.price-upsell { font-size: 0.82rem; color: var(--ink-soft); margin: -0.9rem 0 1.2rem; }
.price-features { list-style: none; margin-bottom: 1.6rem; flex: 1; }
.price-features li { padding-left: 1.7rem; position: relative; margin-bottom: 0.55rem; font-size: 0.95rem; }
.price-features li::before {
  content: "✓"; position: absolute; left: 0; color: var(--mint); font-weight: 700;
}
.price-card-featured { background: #fff; border-color: var(--plum); box-shadow: var(--shadow); transform: scale(1.03); }
.price-tier-lead { font-size: 0.85rem; font-weight: 700; color: var(--ink-soft); margin: 0.5rem 0 0.4rem; }
.popular-tag {
  position: absolute; top: -0.95rem; left: 50%; transform: translateX(-50%);
  background: var(--plum); color: #fff; font-family: var(--font-head); font-weight: 700;
  font-size: 0.78rem; padding: 0.3rem 1.1rem; border-radius: 999px; white-space: nowrap;
}

/* ============ FAQ ============ */
.accordion { border-top: 2px solid var(--line); }
.accordion-item { border-bottom: 2px solid var(--line); }
.accordion-btn {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  font-family: var(--font-head); font-weight: 700; font-size: 1.08rem; color: var(--ink);
  padding: 1.3rem 2.5rem 1.3rem 0; position: relative;
}
.accordion-btn::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 1.6rem; color: var(--plum); font-weight: 500; transition: transform 0.2s ease;
}
.accordion-item.open .accordion-btn::after { transform: translateY(-50%) rotate(45deg); }
.accordion-panel { max-height: 0; overflow: hidden; visibility: hidden; transition: max-height 0.3s ease, visibility 0.3s; } /* COM-DEFECT-26 */
.accordion-item.open .accordion-panel { visibility: visible; }
.accordion-panel p { padding: 0 0 1.4rem; color: var(--ink-soft); }

/* ============ CTA ============ */
.section.cta { background: var(--app-bg); }
.cta-card {
  background: linear-gradient(135deg, var(--plum) 0%, #5E3AA3 60%, #6E44B8 100%);
  border-radius: 2rem; padding: 3.5rem 3rem; text-align: center; color: #fff; box-shadow: var(--shadow);
}
.cta-card h2 { color: #fff; margin-bottom: 0.6rem; }
.cta-card p { color: #E4D9F7; margin-bottom: 1.8rem; font-size: 1.08rem; }
.cta-card .waitlist-form { margin: 0 auto; justify-content: center; }
.cta-card .waitlist-form input { border-color: transparent; }
.cta-card .form-note.ok { color: #7CE8C0; }

/* ============ Footer ============ */
.footer { border-top: 2px solid var(--line); padding: 2.8rem 0; }
.footer-inner { display: flex; align-items: flex-start; gap: 2.5rem; flex-wrap: wrap; }
.footer-brand { display: flex; gap: 0.8rem; align-items: center; margin-right: auto; }
.footer-name { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; }
.footer-tag { color: var(--ink-soft); font-size: 0.88rem; }
.footer-links { display: flex; gap: 1.4rem; flex-wrap: wrap; }
/* COM-DEFECT-30: footer link touch targets (WCAG 2.5.8). COM-DEFECT-47: true minimum is 44px,
   enforced via min-height on inline-flex links — measured after change, not estimated from padding. */
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-weight: 600; font-size: 0.92rem; color: var(--ink-soft); padding: 0.55rem 0; }
.footer-links a:hover { color: var(--plum); }
.footer-meta { text-align: right; font-size: 0.88rem; color: var(--ink-soft); }
.footer-meta a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--plum); text-decoration: none; } /* COM-DEFECT-47: 44px minimum */

/* ============ Reveal on scroll ============ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .float-card { animation: none; }
}

/* ============ Responsive ============ */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-copy { text-align: center; }
  .hero-sub { margin: 0 auto 1.8rem; }
  .waitlist-form { margin: 0 auto; justify-content: center; }
  .pillar-grid, .why-grid { grid-template-columns: 1fr; }
  .tab-panel { grid-template-columns: 1fr; gap: 2rem; }
  .panel-copy { order: -1; text-align: center; }
  .check-list { display: inline-block; text-align: left; }
  .price-grid { grid-template-columns: 1fr; max-width: 26rem; margin: 0 auto; }
  .price-card-featured { transform: none; }
  .float-card-top { top: -9%; right: -2%; }
  .float-card-bottom { bottom: -9%; left: -2%; }
}
@media (max-width: 700px) {
  .nav-links { display: none; }
  .menu-toggle { display: flex; margin-left: auto; }
  .nav-inner { gap: 0.75rem; }
  .nav-actions .btn,
  .nav-inner > .btn { display: none; }
  .mobile-menu { display: block; }
  .section { padding: 3.8rem 0; }
  .cta-card { padding: 2.5rem 1.4rem; }
  .waitlist-form { flex-direction: column; }
  .waitlist-form .btn { width: 100%; }
  .footer-inner { flex-direction: column; gap: 1.4rem; }
  .footer-meta { text-align: left; }
  .phone-screen { height: 580px; }
  .hero { padding: 2.5rem 0 4rem; }
  .hero-visual { padding: 1.5rem 0 0.5rem; }
}
@media (max-width: 420px) {
  .brand-name { font-size: 1.25rem; }
  .phone { width: 262px; border-radius: 2.6rem; }
  .phone-screen { height: 540px; border-radius: 2.1rem; }
  .float-card { font-size: 0.74rem; max-width: 11rem; padding: 0.65rem 0.85rem; gap: 0.55rem; }
  .float-card-top { top: -11%; right: -1%; }
  .float-card-bottom { bottom: -11%; left: -1%; }
  .tabs { gap: 0.45rem; }
  .tab { font-size: 0.86rem; padding: 0.55rem 1rem; }
  .price-amount { font-size: 2.2rem; }
}

/* ============ TRUST BAR ============ */
.trust-bar { border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); background: var(--white); padding: 1.1rem 0; }
.trust-bar-inner { display: flex; justify-content: center; align-items: center; gap: 1.2rem; flex-wrap: wrap; text-align: center; }
.trust-item { font-weight: 600; font-size: 0.95rem; color: var(--ink); }
.trust-item a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.trust-dot { color: var(--mint); font-size: 1.1rem; }

/* ============ FEATURE STRIP ============ */
.strip { background: var(--white); border-bottom: 2px solid var(--line); }
.strip-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; padding: 1.3rem 0 0.9rem; }
.strip-item { display: flex; gap: 0.8rem; align-items: flex-start; }
.strip-icon { font-size: 1.55rem; line-height: 1.25; flex: none; }
.strip-title { font-family: var(--font-head); font-weight: 700; color: var(--ink); margin: 0 0 0.15rem; font-size: 1rem; line-height: 1.4; }
.strip-sub { margin: 0; color: var(--ink-soft); font-size: 0.92rem; line-height: 1.5; }
.strip-note { width: min(1120px, 92%); margin: 0 auto; padding: 0 0 1.1rem; font-size: 0.82rem; color: var(--ink-soft); text-align: center; }
@media (max-width: 700px) {
  .strip-inner { grid-template-columns: 1fr; gap: 1rem; padding: 1.1rem 0 0.8rem; }
}

/* ============ WHO IT'S FOR ============ */
.paths { background: var(--white); border-bottom: 2px solid var(--line); }
.paths-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; padding: 2rem 0; }
.paths-inner .pillar-card { margin: 0; }
@media (max-width: 700px) {
  .paths-inner { grid-template-columns: 1fr; padding: 1.5rem 0; }
}

/* ============ SCORE HOW ============ */
.score-how { background: var(--white); border: 1.5px solid var(--line); border-radius: 1rem; padding: 1.2rem 1.3rem; margin: 0.6rem 0 1.1rem; }
.score-how h3 { font-family: var(--font-head); font-size: 1.05rem; margin: 0 0 0.6rem; }
.score-how-list { list-style: none; padding: 0; margin: 0 0 0.8rem; }
.score-how-list li { font-size: 0.94rem; color: var(--ink-soft); line-height: 1.55; margin-bottom: 0.55rem; padding-left: 1.1rem; position: relative; }
.score-how-list li::before { content: "•"; color: var(--mint); font-weight: 700; position: absolute; left: 0.15rem; }
.score-how-list strong { color: var(--ink); }

/* ============ SCORE METHOD NOTE ============ */
.score-method { font-size: 0.82rem; color: var(--ink-soft); margin-top: 0.5rem; line-height: 1.5; }

/* ============ LEGAL PAGES ============ */
.legal { padding: 3rem 0 5rem; }
.legal-inner { width: min(760px, 92%); margin: 0 auto; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 0.4rem; }
.legal .updated { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 2rem; }
.legal h2 { font-size: 1.3rem; margin: 2rem 0 0.6rem; }
.legal p, .legal li { color: var(--ink-soft); font-size: 1rem; }
.legal p { margin-bottom: 0.9rem; }
.legal ul { padding-left: 1.4rem; margin-bottom: 0.9rem; }
.legal li { margin-bottom: 0.4rem; }
.legal a { color: var(--plum); font-weight: 600; }
.legal .lede { font-size: 1.08rem; color: var(--ink); }
.footer-legal { width: 100%; margin-top: 0.4rem; }
.footer-social { width: 100%; margin-top: 0.4rem; }
/* COM-DEFECT-30: footer social link touch targets (WCAG 2.5.8). COM-DEFECT-47: true minimum is
   44px enforced via min-height/min-width — measured after change, not estimated from padding. */
.footer-social a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; gap: 0.45rem; padding: 0.55rem 0; }
.footer-social svg { width: 1rem; height: 1rem; fill: currentColor; }
@media (max-width: 640px) {
  .trust-bar-inner { gap: 0.7rem; }
  .trust-item { font-size: 0.85rem; }
}

/* ============ Interactive demo ============ */
.demo { background: linear-gradient(180deg, var(--app-bg) 0%, var(--lavender-soft) 100%); }
.demo-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; margin-bottom: 1.4rem; }
.demo-doc {
  display: flex; align-items: center; gap: 0.8rem; text-align: left;
  background: var(--white); border: 2px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1.1rem; cursor: pointer; font-family: var(--font-body);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.demo-doc:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.demo-doc.is-active { border-color: var(--plum); box-shadow: var(--shadow); }
.demo-doc-icon { font-size: 1.7rem; line-height: 1; }
.demo-doc-text { display: flex; flex-direction: column; gap: 0.1rem; }
.demo-doc-text strong { font-family: var(--font-head); font-size: 1.02rem; color: var(--ink); }
.demo-doc-text span span { font-size: 0.85rem; color: var(--ink-soft); }
.demo-stage {
  display: grid; grid-template-columns: 1fr 1.25fr; gap: 1.2rem; align-items: stretch;
  background: var(--white); border-radius: calc(var(--radius) + 0.4rem);
  padding: 1.6rem; box-shadow: var(--shadow); border: 1px solid var(--line);
}
.demo-docview { display: flex; flex-direction: column; gap: 1rem; }
.demo-docview-label {
  font-family: var(--font-head); font-weight: 700; font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-soft);
}
.demo-excerpt {
  margin: 0; padding: 1rem 1.1rem; font-size: 0.92rem; color: var(--ink-soft);
  background: var(--ivory); border-left: 4px solid var(--lavender);
  border-radius: 0 0.8rem 0.8rem 0; line-height: 1.65; flex: 1;
}
.demo-excerpt strong { color: var(--ink); }
.demo-docview .btn { align-self: flex-start; }
.demo-output {
  background: var(--ivory); border-radius: var(--radius); padding: 1.4rem;
  min-height: 22rem; display: flex; flex-direction: column; justify-content: center;
}
.demo-idle { text-align: center; color: var(--ink-soft); padding: 2rem 1rem; }
.demo-idle strong { color: var(--plum); }
/* scan animation */
.demo-progress { height: 8px; background: var(--ivory-deep); border-radius: 999px; overflow: hidden; margin-bottom: 1.2rem; }
.demo-progress span {
  display: block; height: 100%; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, var(--mint), var(--lavender));
  transition: width 0.6s ease;
}
.demo-steps { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.demo-steps li { display: flex; align-items: center; gap: 0.7rem; color: var(--ink-soft); font-size: 0.95rem; opacity: 0.85; transition: opacity 0.3s; } /* COM-DEFECT-59: idle opacity 0.45->0.85; blended #5A5478 over #FBF6EC (ivory) = 4.62:1 >= 4.5 (was 2.03:1). Idle/doing/done machine intact: doing still pops via full opacity + bold + ink color. */
.demo-steps li.doing { opacity: 1; color: var(--ink); font-weight: 600; }
.demo-steps li.done { opacity: 1; }
.demo-spinner {
  width: 1.05rem; height: 1.05rem; border-radius: 50%; flex-shrink: 0;
  border: 2.5px solid var(--ivory-deep); border-top-color: var(--plum);
  animation: demo-spin 0.8s linear infinite;
}
.demo-steps li.done .demo-spinner { animation: none; border-color: var(--mint); background: var(--mint); position: relative; }
@keyframes demo-spin { to { transform: rotate(360deg); } }
/* results */
.demo-results { animation: demo-rise 0.5s ease both; }
@keyframes demo-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.demo-results-head { display: flex; align-items: center; gap: 1.1rem; margin-bottom: 1rem; }
.demo-results-head .ring { width: 5.2rem; height: 5.2rem; }
.demo-verdict { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; color: var(--ink); margin-bottom: 0.35rem; }
.demo-sample-badge {
  display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--plum); background: var(--lavender-soft); border-radius: 999px; padding: 0.28rem 0.75rem;
}
.demo-flag-src { display: block; font-size: 0.78rem; color: var(--ink-soft); margin: 0.15rem 0 0.25rem; }
.demo-error { text-align: center; padding: 2rem 1rem; }
.demo-error p { color: var(--ink-soft); margin: 0 0 1rem; }
.demo-error .demo-error-title { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; color: var(--ink); margin-bottom: 0.5rem; }
.demo-plain { font-size: 0.98rem; margin-bottom: 1.1rem; }
.demo-plain strong { font-family: var(--font-head); }
.demo-flags { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; margin-bottom: 1.1rem; }
.demo-flag-card { border-radius: 0.9rem; padding: 0.95rem 1.05rem; }
.demo-flag-card h3 { font-size: 0.9rem; margin-bottom: 0.5rem; } /* COM-DEFECT-48: rendered as h3 (was h4 under an h2 section) */
.demo-flag-card ul { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; font-size: 0.88rem; }
.demo-flag-card li strong { display: block; font-size: 0.9rem; }
.demo-flag-red { background: var(--coral-soft); }
.demo-flag-red h3 { color: #A52F27; } /* COM-DEFECT-39: #A52F27 on #FBD8D4 = 5.23:1 >= 4.5 (was #C24338 @ 3.82:1); COM-DEFECT-48: h4 -> h3 */
.demo-flag-green { background: var(--mint-soft); }
.demo-flag-green h3 { color: #146B4B; } /* COM-DEFECT-39: #146B4B on #CFF2DF = 5.39:1 >= 4.5 (was #1D8A62 @ 3.58:1); COM-DEFECT-48: h4 -> h3 */
.demo-next { margin-bottom: 1.2rem; }
.demo-next h3 { font-size: 0.95rem; margin-bottom: 0.5rem; } /* COM-DEFECT-48: h4 -> h3 */
.demo-next ol { margin-left: 1.2rem; font-size: 0.9rem; color: var(--ink-soft); display: flex; flex-direction: column; gap: 0.35rem; }
.demo-note { margin-top: 1.6rem; color: var(--ink-soft); }
.demo-note a { color: var(--plum); font-weight: 700; }
@media (max-width: 860px) {
  .demo-picker { grid-template-columns: 1fr; }
  .demo-stage { grid-template-columns: 1fr; }
  .demo-flags { grid-template-columns: 1fr; }
  .demo-output { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .demo-results { animation: none; }
  .demo-spinner { animation: none; } /* COM-DEFECT-44: was a slowed 2s spin; reduced-motion means no spin */
  .tab-panel { animation: none; } /* COM-DEFECT-44: panelIn animation off */
  .accordion-panel { transition: none; } /* COM-DEFECT-44: accordion expand off */
  .mobile-menu { transition: none; } /* COM-DEFECT-44: mobile menu transition off */
  .ring-fg { transition: none; } /* COM-DEFECT-53: score dial / demo results ring sweep must not animate — the number count-up is already off under reduced motion */
}

/* ============ ROOF: everything under one roof ============ */
.roof { background: linear-gradient(180deg, var(--lavender-soft) 0%, var(--ivory) 100%); }
.roof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.8rem; }
.roof-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  box-shadow: 0 8px 24px rgba(75, 46, 131, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.roof-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.roof-icon { display: block; font-size: 1.6rem; line-height: 1; margin-bottom: 0.65rem; }
.roof-toggle {
  display: block; width: 100%; margin: 0 0 0.45rem; padding: 0;
  background: none; border: 0; font: inherit; color: inherit; text-align: left;
  pointer-events: none; /* desktop: purely presentational */
}
.roof-pain { font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: 1.02rem; margin: 0; line-height: 1.4; }
.roof-new {
  display: inline-block; vertical-align: 0.12em; white-space: nowrap;
  font-family: var(--font-body); font-size: 0.65rem; font-weight: 800;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--plum-deep); background: var(--mint-soft);
  border: 1px solid var(--mint); border-radius: 999px;
  padding: 0.12rem 0.5rem; margin-left: 0.35rem;
}
.roof-chev { display: none; }
.roof-answer { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.55; margin: 0; }
.roof-cta { text-align: center; margin-top: 2rem; font-family: var(--font-head); font-size: 1.15rem; font-weight: 600; color: var(--ink); }
.roof-cta a { color: var(--plum); font-weight: 700; }
@media (max-width: 860px) {
  .roof-grid { grid-template-columns: 1fr; gap: 0.7rem; }
  .roof-card { padding: 1rem 1.1rem; }
  .roof-icon { display: none; }
  /* COM-DEFECT-29: 44px touch target on mobile toggle (was ~23px) */
  .roof-toggle {
    display: flex; align-items: center; justify-content: space-between;
    gap: 0.75rem; margin: 0; pointer-events: auto; cursor: pointer;
    padding: 0.6rem 0; min-height: 44px;
  }
  .roof-chev {
    display: inline-block; flex: none;
    font-size: 1.35rem; line-height: 1; color: var(--plum);
    transition: transform 0.2s ease;
  }
  .roof-card.open .roof-chev { transform: rotate(90deg); }
  .roof-answer { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
  .roof-card.open .roof-answer { margin-top: 0.55rem; }
}
@media (prefers-reduced-motion: reduce) {
  .roof-answer { transition: none; }
  .roof-chev { transition: none; }
}
@media (prefers-reduced-motion: reduce) {
  .roof-card { transition: none; }
  .roof-card:hover { transform: none; }
}

/* ============ PACTLYST SCORE SECTION ============ */
.score { background: var(--ivory); }
.score-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2.5rem; align-items: start; }
.score-factor { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.4rem; }
.score-tile {
  width: 3rem; height: 3rem; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 1.35rem; flex-shrink: 0;
}
.score-tile-mint { background: var(--mint-soft); color: #146B4B; } /* COM-DEFECT-58: same failing pairing as mock-pill-mint; #146B4B on #CFF2DF = 5.39:1 >= 4.5 */
.score-tile-coral { background: var(--coral-soft); color: #A52F27; } /* COM-DEFECT-57: same failing pairing as mock-pill-red; #A52F27 on #FBD8D4 = 5.23:1 >= 4.5 */
.score-tile-amber { background: #F8DFB0; color: #D97706; }
.score-factor h3 { font-family: var(--font-head); font-size: 1.05rem; margin: 0 0 0.25rem; }
.score-factor p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; line-height: 1.55; }
.score-legend { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.8rem 0 1rem; }
.score-legend .mock-pill { margin-top: 0; font-size: 0.68rem; padding: 0.28rem 0.8rem; }
.score-note { font-size: 0.9rem; color: var(--ink-soft); margin: 0; }
.score-sample {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem 1.6rem; text-align: center; box-shadow: 0 8px 28px rgba(75, 46, 131, 0.08);
}
.score-sample-badge {
  display: inline-block; font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--plum-deep); background: var(--plum-soft);
  border-radius: 999px; padding: 0.3rem 0.9rem; margin-bottom: 1.2rem;
}
.score-sample-title { font-family: var(--font-head); font-weight: 700; margin: 1rem 0 0.9rem; }
.score-sample-findings {
  list-style: none; padding: 0; margin: 0 0 1rem; text-align: left;
  display: flex; flex-direction: column; gap: 0.7rem;
}
.score-sample-findings li {
  display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.9rem;
  background: var(--ivory); border: 1px solid var(--line); border-radius: 0.9rem;
  padding: 0.65rem 0.8rem; line-height: 1.45;
}
.score-sample-findings .mock-pill { margin-top: 0.1rem; white-space: nowrap; flex-shrink: 0; }
.score-sample-cite { font-size: 0.82rem; color: var(--ink-soft); margin: 0; }
@media (max-width: 860px) {
  .score-grid { grid-template-columns: 1fr; }
}

/* Demo score label */
.demo-ring-wrap { display: flex; flex-direction: column; align-items: center; }
.demo-score-label { font-family: var(--font-head); font-size: 0.72rem; font-weight: 700; color: var(--ink-soft); margin: 0.35rem 0 0; letter-spacing: 0.06em; text-transform: uppercase; }

/* ============ SCORE DEMO (conversion section, below hero) ============ */
.score-demo { background: var(--white); }
.sd-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; margin: 1.75rem 0 1.25rem; }
.sd-btn {
  display: flex; align-items: center; gap: 0.6rem; text-align: left;
  background: var(--app-bg); border: 2px solid var(--line); border-radius: var(--radius);
  padding: 0.7rem 0.8rem; cursor: pointer; font-family: var(--font-body); min-height: 44px; /* COM-DEFECT-15 */
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}
.sd-btn:hover { transform: translateY(-2px); }
.sd-btn.is-active { border-color: var(--plum); box-shadow: var(--shadow); background: var(--white); }
.sd-btn:focus-visible { outline: 3px solid #4B2E83; outline-offset: 2px; } /* COM-DEFECT-34: was var(--lavender) @1.91:1 on --app-bg; #4B2E83 @9.14:1 >= 3:1 */
.sd-dot { width: 0.85rem; height: 0.85rem; border-radius: 50%; flex-shrink: 0; }
.sd-dot-mint { background: var(--mint); }
.sd-dot-amber { background: #E5A13D; }
.sd-dot-red { background: var(--coral); }
.sd-btn-text { display: flex; flex-direction: column; line-height: 1.25; }
.sd-btn-text strong { font-family: var(--font-head); font-size: 0.95rem; color: var(--ink); }
.sd-btn-text span { font-size: 0.8rem; color: var(--ink-soft); }
.sd-stage {
  background: var(--app-bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 1.25rem; align-items: center;
}
.sd-clause {
  margin: 0; padding: 0.9rem 1rem; background: var(--white); border-left: 4px solid var(--lavender);
  border-radius: 0.5rem; font-size: 0.95rem; line-height: 1.6; color: var(--ink);
}
.sd-clause strong { color: var(--plum-deep); }
.sd-result { text-align: center; }
.sd-verdict { font-family: var(--font-head); font-weight: 700; font-size: 1rem; color: var(--ink); margin: 0.5rem 0 0; min-height: 1.5em; }
.sd-verdict small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 0.82rem; color: var(--ink-soft); margin-top: 0.25rem; }
.sd-note { text-align: center; font-size: 0.88rem; color: var(--ink-soft); margin-top: 1.25rem; }
.sd-note a { color: var(--plum); font-weight: 600; }
@media (max-width: 640px) {
  .sd-picker { grid-template-columns: 1fr; }
  .sd-stage { grid-template-columns: 1fr; }
  .sd-result { order: -1; }
}

/* ============ WAITLIST GATE ============ */
.wl-gate {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 1.25rem;
  background: rgba(43, 26, 82, 0.55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: opacity 0.45s ease;
}
.wl-gate[hidden] { display: none; }
html.wl-in .wl-gate { display: none !important; }
/* COM-DEFECT-23: fade-out transition before the gate goes hidden */
.wl-gate.wl-lift { opacity: 0; pointer-events: none; }
body.wl-locked { overflow: hidden; }
.wl-gate-card {
  width: 100%; max-width: 26rem;
  background: #fff; border-radius: 1.5rem;
  padding: 2.25rem 2rem 1.75rem;
  text-align: center;
  box-shadow: 0 30px 80px rgba(43, 26, 82, 0.45);
  border-top: 6px solid var(--mint);
}
.wl-gate-logo { width: 56px; height: 56px; border-radius: 14px; margin-bottom: 1rem; }
.wl-gate-card h2, .wl-gate-card #wl-gate-title { font-size: 1.9rem; margin: 0 0 0.5rem; color: var(--plum-deep); }
.wl-gate-sub { color: var(--ink-soft); font-size: 1rem; margin: 0 0 1.4rem; line-height: 1.5; }
.wl-gate-card .waitlist-form { display: flex; flex-direction: column; gap: 0.7rem; }
.wl-gate-card .waitlist-form input {
  width: 100%; padding: 0.9rem 1.2rem; border-radius: 999px;
  border: 2px solid var(--line); font-size: 1rem; font-family: inherit;
}
.wl-gate-card .waitlist-form input:focus { outline: none; border-color: var(--plum); box-shadow: 0 0 0 3px rgba(75, 46, 131, 0.25); } /* COM-DEFECT-14: visible focus */
.wl-gate-fine { font-size: 0.8rem; color: var(--ink-soft); margin: 1.1rem 0 0; }
.wl-gate-fine a { color: var(--plum); font-weight: 600; }
/* Post-gate confirmation line in the hero */
.wl-done {
  display: none; align-items: center; gap: 0.5rem;
  background: var(--mint-soft); color: #0B6B4F;
  font-weight: 600; font-size: 0.95rem;
  padding: 0.7rem 1.2rem; border-radius: 999px; margin: 0.4rem 0 0;
}
html.wl-in .wl-done { display: inline-flex; } /* COM-DEFECT-4: only show after joining */
.wl-done span { font-weight: 700; }
/* COM-DEFECT-35: no gate fade for reduced-motion — the lift is instant */
@media (prefers-reduced-motion: reduce) {
  .wl-gate { transition: none; }
}

/* COM-DEFECT-14: consistent keyboard focus */
a:focus-visible, button:focus-visible { outline: 3px solid #4B2E83; outline-offset: 2px; border-radius: 4px; } /* COM-DEFECT-27: 3:1 contrast */

/* COM-DEFECT-16: no-JS disclosure */
.noscript-note { text-align: center; padding: 1rem; background: #FFF8E1; color: #5d4a00; font-weight: 600; }
