/* AdaptBridge PRN platform · one stylesheet for the site and both apps
   Follows AdaptBridge Brand Guide v005: Atkinson Hyperlegible (400, 700), IBM Plex Mono for
   citations and codes, Regulatory Authority palette, Gold Accent (6B), Status colors (6C).
   CHANGELOG  v001 | 2026-11-16 | Initial build. */

@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/atkinson-hyperlegible-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }

:root {
  /* Regulatory Authority */
  --navy: #1C3557; --amber: #D4782A; --blue: #2E6DA4; --fog: #EEF2F7; --black: #1A1A2E; --white: #FFFFFF;
  /* App header and canvas (guide 14.2) */
  --hdr-top: #0F3A55; --hdr-bottom: #0B2D44; --hdr-sub: #CFE4EE; --ink-deep: #0B1E2D;
  --panel-border: #C3D8E3; --text-2: #17657A; --text-3: #35596B;
  /* Gold Accent (6B) */
  --gold-a: #EBC47A; --gold-b: #C9923F; --gold-c: #A97626; --gold-label: #1B1206; --gold-text: #7A4E0C;
  --stripe-a: #B9893F; --stripe-b: #E9C57D;
  --cream-a: #FCF3E0; --cream-b: #F6E5C2; --cream-border: #C9984B; --cream-text: #2B1D0A;
  /* Status (6C) */
  --teal: #1ABC9C; --teal-dark: #0E7C66; --green: #15795A; --red: #E74C3C;
  /* Shape, space, motion */
  --r-sm: 6px; --r-md: 12px; --r-lg: 18px; --r-pill: 999px;
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s6: 48px; --s8: 64px;
  --fast: 120ms; --base: 200ms;
  --shadow-1: 0 1px 2px rgba(15, 47, 64, .12); --shadow-2: 0 6px 20px rgba(15, 47, 64, .14);
  --font: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; color: var(--black); background: var(--fog); }
img, svg { max-width: 100%; }
svg:not([width]) { width: 1.25em; height: 1.25em; flex: none; }   /* inline icons follow the text size unless a rule below says otherwise */
h1 svg, h2 svg, h3 svg, h4 svg, summary svg { vertical-align: -0.18em; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; margin: 0 0 var(--s2); color: var(--navy); }
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.45rem, 3vw, 1.75rem); }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }
p { margin: 0 0 var(--s2); }
a { color: var(--blue); text-underline-offset: 2px; }
a:hover { color: var(--navy); }
strong, b { font-weight: 700; }
code, .mono { font-family: var(--mono); font-size: .875em; }
ul, ol { margin: 0 0 var(--s2); padding-left: 1.3rem; }
hr { border: 0; border-top: 1px solid var(--panel-border); margin: var(--s3) 0; }
:focus-visible { outline: 3px solid var(--teal-dark); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--white); color: var(--navy); padding: .75rem 1rem; z-index: 1000; font-weight: 700; }
.skip:focus { left: 8px; top: 8px; }
.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.muted { color: var(--text-3); }
.small { font-size: .875rem; }
.center { text-align: center; }
.stack > * + * { margin-top: var(--s2); }
.row { display: flex; gap: var(--s2); align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grow { flex: 1 1 auto; min-width: 0; }
.grid { display: grid; gap: var(--s2); }
@media (min-width: 720px) { .grid.c2 { grid-template-columns: repeat(2, 1fr); } .grid.c3 { grid-template-columns: repeat(3, 1fr); } .grid.c4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 720px) and (max-width: 1023px) { .grid.c4 { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: .6rem 1.1rem; border-radius: var(--r-md); border: 1px solid transparent; font: 700 .9375rem/1 var(--font); text-decoration: none; cursor: pointer; transition: transform var(--fast), box-shadow var(--fast), background var(--fast); }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-1); }
.btn:active { transform: translateY(0); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-cta { background: var(--amber); color: var(--black); border-color: #B5631F; }           /* Rule Black on amber: 5.30:1 */
.btn-cta:hover { background: #DE8537; color: var(--black); }
.btn-navy { background: linear-gradient(var(--navy), #162B47); color: var(--white); }
.btn-navy:hover { color: var(--white); }
.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { color: var(--white); background: #275E8E; }
.btn-ghost { background: var(--white); color: var(--navy); border-color: var(--panel-border); }
.btn-gold { background: linear-gradient(var(--gold-a), var(--gold-b) 60%, var(--gold-c)); color: var(--gold-label); border-color: var(--gold-c); }
.btn-gold:hover { color: var(--gold-label); }
.btn-teal { background: var(--teal); color: var(--ink-deep); }
.btn-teal:hover { color: var(--ink-deep); }
.btn-quiet { background: transparent; color: var(--blue); min-height: 36px; padding: .35rem .6rem; }
.btn-danger { background: var(--white); color: var(--black); border-color: var(--red); box-shadow: inset 4px 0 0 var(--red); }
.btn-sm { min-height: 36px; padding: .4rem .75rem; font-size: .875rem; border-radius: var(--r-sm); }
.btn-lg { min-height: 52px; padding: .85rem 1.5rem; font-size: 1.0625rem; }
.btn-block { width: 100%; }

/* ---------- Cards, chips, badges ---------- */
.card { background: linear-gradient(#fff, #FAFCFD); border: 1px solid var(--panel-border); border-radius: var(--r-md); padding: var(--s3); box-shadow: var(--shadow-1); }
.card.flat { box-shadow: none; }
.card.tight { padding: var(--s2); }
.card.cream { background: linear-gradient(var(--cream-a), var(--cream-b)); border: 2px solid var(--cream-border); color: var(--cream-text); }
.card.cream h2, .card.cream h3, .card.cream h4 { color: var(--cream-text); }
.card.navy { background: linear-gradient(var(--hdr-top), var(--hdr-bottom)); color: var(--white); border-color: var(--hdr-bottom); }
.card.navy h2, .card.navy h3, .card.navy h4 { color: var(--white); }
.card.navy a { color: var(--stripe-b); }
.card > :last-child { margin-bottom: 0; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); margin-bottom: var(--s2); }
.card-h h2, .card-h h3 { margin: 0; font-size: 1.125rem; }
.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .65rem; border-radius: var(--r-pill); background: var(--fog); border: 1px solid var(--panel-border); color: var(--navy); font-size: .8125rem; font-weight: 700; white-space: nowrap; }
.chip.amber { background: var(--cream-a); border-color: var(--cream-border); color: var(--gold-text); }
.chip.green { background: #E6F4EE; border-color: #9CCDB9; color: var(--green); }
.chip.teal { background: #DDF6F0; border-color: #8FD9C8; color: var(--ink-deep); }
.chip.navy { background: var(--navy); border-color: var(--navy); color: var(--white); }
.chip.red { background: var(--white); border-color: var(--red); color: var(--black); box-shadow: inset 3px 0 0 var(--red); }
.chip svg { width: 14px; height: 14px; }
.dot { display: inline-block; min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--r-pill); background: var(--amber); color: var(--black); font-size: .75rem; font-weight: 700; line-height: 20px; text-align: center; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: var(--white); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1rem; flex: none; object-fit: cover; }
.avatar.lg { width: 84px; height: 84px; font-size: 1.75rem; }
.avatar.sm { width: 32px; height: 32px; font-size: .8125rem; }
.notice { border-left: 4px solid var(--blue); background: var(--white); padding: .75rem 1rem; border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: .9375rem; }
.notice.amber { border-left-color: var(--amber); background: var(--cream-a); color: var(--cream-text); }
.notice.red { border-left-color: var(--red); }
.notice.green { border-left-color: var(--green); }
.notice > :last-child { margin-bottom: 0; }
.empty { text-align: center; padding: var(--s4) var(--s2); color: var(--text-3); }
.empty svg { width: 40px; height: 40px; color: var(--panel-border); margin-bottom: var(--s1); }
.empty h3 { font-size: 1.125rem; }

/* ---------- Forms ---------- */
label, .label { display: block; font-weight: 700; font-size: .875rem; margin-bottom: .3rem; color: var(--black); }
.hint { display: block; font-size: .875rem; color: var(--text-3); font-weight: 400; margin-top: .25rem; }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="url"], input[type="number"], input[type="date"], input[type="time"], input[type="datetime-local"], input[type="search"], select, textarea {
  width: 100%; min-height: 44px; padding: .55rem .75rem; border: 1px solid #8FA9B8; border-radius: var(--r-sm); background: var(--white); color: var(--black); font: 400 1rem/1.4 var(--font); }
textarea { min-height: 96px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--teal-dark); outline-offset: 1px; border-color: var(--teal-dark); }
input[type="checkbox"], input[type="radio"] { width: 20px; height: 20px; accent-color: var(--teal-dark); flex: none; }
.field { margin-bottom: var(--s2); }
.field-err { color: var(--black); font-size: .875rem; font-weight: 700; margin-top: .3rem; padding-left: .6rem; border-left: 3px solid var(--red); }
.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; font-size: 1rem; cursor: pointer; }
.check input { margin-top: .2rem; }
fieldset { border: 1px solid var(--panel-border); border-radius: var(--r-md); padding: var(--s2); margin: 0 0 var(--s2); }
legend { font-weight: 700; padding: 0 .4rem; font-size: .9375rem; }
/* A profile field with its "Private" checkbox beside it */
.pfield { display: grid; grid-template-columns: 1fr auto; gap: .25rem var(--s2); align-items: start; padding: var(--s2) 0; border-bottom: 1px solid #E1EBF0; }
.pfield .private { display: flex; align-items: center; gap: .4rem; font-size: .8125rem; font-weight: 700; padding: .35rem .6rem; border: 1px solid var(--panel-border); border-radius: var(--r-pill); background: var(--fog); margin: 1.55rem 0 0; cursor: pointer; white-space: nowrap; }
.pfield .private:has(input:checked) { background: var(--navy); color: var(--white); border-color: var(--navy); }
.pfield .private input { width: 16px; height: 16px; }
@media (max-width: 560px) { .pfield { grid-template-columns: 1fr; } .pfield .private { margin-top: 0; justify-self: start; } }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--panel-border); border-radius: var(--r-md); background: var(--white); }
table { border-collapse: collapse; width: 100%; font-size: .9375rem; }
th, td { text-align: left; padding: .6rem .75rem; border-bottom: 1px solid #E1EBF0; vertical-align: top; }
th { background: var(--fog); font-size: .8125rem; color: var(--navy); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Progress ---------- */
.bar { height: 10px; background: #DCE7EE; border-radius: var(--r-pill); overflow: hidden; }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--teal-dark), var(--teal)); border-radius: var(--r-pill); transition: width var(--base); }
.bar.gold > i { background: linear-gradient(90deg, var(--gold-c), var(--gold-a)); }
.bar.navy > i { background: var(--navy); }
.ring { position: relative; width: 132px; height: 132px; flex: none; }
.ring svg { transform: rotate(-90deg); width: 100%; height: 100%; }
.ring circle { fill: none; stroke-width: 12; }
.ring .track { stroke: #DCE7EE; }
.ring .fill { stroke: var(--teal-dark); stroke-linecap: round; transition: stroke-dashoffset 600ms ease; }
.ring b { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 1.9rem; line-height: 1; color: var(--navy); }
.ring b small { font-size: .75rem; font-weight: 400; color: var(--text-3); margin-top: .2rem; }
.stat { background: var(--white); border: 1px solid var(--panel-border); border-radius: var(--r-md); padding: var(--s2); }
.stat b { display: block; font-size: 1.75rem; line-height: 1.1; color: var(--navy); }
.stat span { font-size: .8125rem; color: var(--text-3); }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: var(--s1); }
.badge { text-align: center; padding: .75rem .4rem; border-radius: var(--r-md); border: 1px solid var(--panel-border); background: var(--white); font-size: .75rem; font-weight: 700; line-height: 1.25; color: var(--navy); }
.badge .medal { width: 44px; height: 44px; margin: 0 auto .4rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: linear-gradient(var(--gold-a), var(--gold-c)); color: var(--gold-label); border: 2px solid var(--gold-c); }
.badge .medal svg { width: 22px; height: 22px; }
.badge.locked { color: var(--text-3); background: var(--fog); }
.badge.locked .medal { background: #DCE7EE; border-color: #C3D8E3; color: #6E8A99; }
.quest { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.quest li { display: flex; gap: .75rem; align-items: center; padding: .6rem .75rem; border: 1px solid var(--panel-border); border-radius: var(--r-sm); background: var(--white); }
.quest li.done { background: #E6F4EE; border-color: #9CCDB9; }
.quest .tick { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #8FA9B8; flex: none; display: flex; align-items: center; justify-content: center; color: var(--white); }
.quest li.done .tick { background: var(--green); border-color: var(--green); }
.quest .tick svg { width: 14px; height: 14px; }
.quest a, .quest button { margin-left: auto; }

/* ---------- Dialogs, drawer, toasts ---------- */
.overlay { position: fixed; inset: 0; background: rgba(11, 30, 45, .6); z-index: 90; display: flex; align-items: flex-end; justify-content: center; }
@media (min-width: 720px) { .overlay { align-items: center; padding: var(--s3); } }
.dialog { background: linear-gradient(#fff, #F7FAFC); width: min(100%, 560px); max-height: 92dvh; overflow: auto; border-radius: var(--r-lg) var(--r-lg) 0 0; padding: var(--s3); box-shadow: var(--shadow-2); }
@media (min-width: 720px) { .dialog { border-radius: var(--r-md); } }
.dialog.wide { width: min(100%, 760px); }
.dialog h2 { font-size: 1.375rem; }
.dialog-actions { display: flex; gap: var(--s1); justify-content: flex-end; flex-wrap: wrap; margin-top: var(--s3); }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(100%, 420px); background: var(--white); z-index: 95; box-shadow: var(--shadow-2); display: flex; flex-direction: column; transform: translateX(100%); transition: transform var(--base); visibility: hidden; }
.drawer.open { transform: none; visibility: visible; }
.drawer-h { display: flex; align-items: center; justify-content: space-between; padding: var(--s2) var(--s3); background: linear-gradient(var(--hdr-top), var(--hdr-bottom)); color: var(--white); }
.drawer-h h2 { color: var(--white); margin: 0; font-size: 1.125rem; }
.drawer-b { padding: var(--s3); overflow: auto; flex: 1; font-size: 1rem; }
.icon-btn { background: transparent; border: 0; color: inherit; width: 44px; height: 44px; border-radius: var(--r-sm); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.icon-btn:hover { background: rgba(127, 127, 127, .18); }
.icon-btn svg { width: 22px; height: 22px; }
.toasts { position: fixed; left: var(--s2); right: var(--s2); bottom: 84px; z-index: 120; display: grid; gap: var(--s1); justify-items: center; pointer-events: none; }
@media (min-width: 900px) { .toasts { left: auto; right: var(--s3); bottom: var(--s3); justify-items: end; } }
.toast { pointer-events: auto; background: var(--ink-deep); color: var(--white); padding: .75rem 1rem; border-radius: var(--r-md); box-shadow: var(--shadow-2); max-width: 420px; font-size: .9375rem; border-left: 4px solid var(--teal); animation: rise var(--base) ease-out; }
.toast.err { border-left-color: var(--red); }
.toast.gold { border-left-color: var(--gold-a); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Help: small, quiet, always there ---------- */
.help-fab { position: fixed; right: var(--s2); bottom: 84px; z-index: 60; background: var(--white); color: var(--navy); border: 1px solid var(--panel-border); border-radius: var(--r-pill); min-height: 44px; padding: 0 .9rem 0 .7rem; display: inline-flex; align-items: center; gap: .4rem; font: 700 .875rem/1 var(--font); box-shadow: var(--shadow-1); cursor: pointer; opacity: .92; }
.help-fab:hover { opacity: 1; box-shadow: var(--shadow-2); }
.help-fab svg { width: 20px; height: 20px; color: var(--blue); }
@media (min-width: 900px) { .help-fab { bottom: var(--s3); right: var(--s3); } }
.site .help-fab { bottom: var(--s2); }
.help-list { list-style: none; padding: 0; margin: 0 0 var(--s3); }
.help-list details { border-bottom: 1px solid #E1EBF0; padding: .6rem 0; }
.help-list summary { font-weight: 700; cursor: pointer; }
.help-list p { margin: .5rem 0 0; color: var(--text-3); }

/* ---------- Public site ---------- */
.site-top { background: var(--navy); color: var(--white); position: sticky; top: 0; z-index: 50; }
.site-nav { display: flex; align-items: center; gap: var(--s2); min-height: 64px; }
.site-nav .logo img { height: 34px; display: block; }
.site-links { display: none; gap: .25rem; align-items: center; margin-left: auto; }
.site-links a { color: var(--white); text-decoration: none; font-weight: 700; font-size: .9375rem; padding: .6rem .7rem; border-radius: var(--r-sm); }
.site-links a:hover, .site-links a[aria-current="page"] { background: rgba(255, 255, 255, .14); }
.site-links a.praxiom { background: var(--stripe-b); color: var(--gold-label); margin-left: .5rem; }
.site-links .btn-cta { color: var(--black); padding: .6rem 1rem; margin-left: .25rem; }
.site-links .btn-cta:hover { background: #DE8537; }
.menu-btn { margin-left: auto; color: var(--white); }
@media (min-width: 1000px) { .site-links { display: flex; } .menu-btn { display: none; } }
.site-links.open { display: flex; flex-direction: column; align-items: stretch; position: absolute; left: 0; right: 0; top: 100%; background: var(--navy); padding: var(--s2); box-shadow: var(--shadow-2); }
.site-links.open a { padding: .85rem 1rem; }
.crumbs { font-size: .8125rem; color: var(--text-3); padding: .6rem 0; }
.crumbs a { color: var(--text-3); }
.crumbs span[aria-hidden] { margin: 0 .35rem; }
.hero { background: linear-gradient(160deg, var(--navy), #14263F); color: var(--fog); padding: var(--s8) 0; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -120px; top: -40px; width: 520px; height: 520px; background: linear-gradient(135deg, transparent 49.5%, rgba(212, 120, 42, .16) 50%); pointer-events: none; }
.hero h1 { color: var(--white); max-width: 18ch; }
.hero .lede { font-size: 1.25rem; max-width: 56ch; color: var(--fog); }
.hero .eyebrow { color: var(--stripe-b); }
.hero .btn-ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .5); }
.hero-grid { display: grid; gap: var(--s4); align-items: center; position: relative; z-index: 1; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.15fr .85fr; } }
.eyebrow { font: 400 .8125rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--gold-text); margin-bottom: var(--s2); display: block; }
.section { padding: var(--s8) 0; }
.section.white { background: var(--white); }
.section.tight { padding: var(--s6) 0; }
.section-h { max-width: 62ch; margin-bottom: var(--s4); }
.lede { font-size: 1.1875rem; color: var(--text-3); }
.feature h3 { font-size: 1.1875rem; display: flex; gap: .6rem; align-items: center; }
.feature svg { width: 26px; height: 26px; color: var(--amber); flex: none; }
.steps-3 { counter-reset: s; display: grid; gap: var(--s2); }
@media (min-width: 800px) { .steps-3 { grid-template-columns: repeat(3, 1fr); } }
.steps-3 > li { list-style: none; counter-increment: s; background: var(--white); border: 1px solid var(--panel-border); border-radius: var(--r-md); padding: var(--s3); position: relative; }
.steps-3 > li::before { content: counter(s); font: 400 .875rem var(--mono); background: var(--navy); color: var(--white); width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: var(--s1); }
.price-card { display: flex; flex-direction: column; }
.price-card .price { font-size: 2rem; font-weight: 700; color: var(--navy); line-height: 1.1; margin: .25rem 0 .5rem; }
.price-card .price small { font-size: .875rem; font-weight: 400; color: var(--text-3); }
.price-card ul { list-style: none; padding: 0; margin: 0 0 var(--s3); flex: 1; }
.price-card li { padding-left: 1.6rem; position: relative; margin-bottom: .45rem; font-size: 1rem; }
.price-card li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 8px; border-left: 3px solid var(--green); border-bottom: 3px solid var(--green); transform: rotate(-45deg); }
.price-card li.no { color: var(--text-3); }
.price-card li.no::before { width: 12px; height: 0; border-left: 0; border-bottom: 3px solid #9DB3C0; transform: none; top: .75em; }
.price-card.featured { border: 2px solid var(--amber); box-shadow: var(--shadow-2); }
.faq details { background: var(--white); border: 1px solid var(--panel-border); border-radius: var(--r-md); padding: var(--s2) var(--s3); margin-bottom: var(--s1); }
.faq summary { font-weight: 700; cursor: pointer; font-size: 1.0625rem; color: var(--navy); }
.faq details[open] summary { margin-bottom: var(--s1); }
.faq details > :last-child { margin-bottom: 0; }
.prose { max-width: 72ch; }
.prose h2 { margin-top: var(--s4); }
.prose h3 { margin-top: var(--s3); font-size: 1.1875rem; }
.cta-band { background: linear-gradient(var(--hdr-top), var(--hdr-bottom)); color: var(--white); padding: var(--s6) 0; text-align: center; border-top: 4px solid var(--stripe-a); }
.cta-band h2 { color: var(--white); }
.cta-band p { color: var(--hdr-sub); max-width: 60ch; margin-inline: auto; }
.site-foot { background: var(--navy); color: var(--fog); padding: var(--s6) 0 var(--s3); font-size: .9375rem; }
.site-foot a { color: var(--fog); }
.site-foot h4 { color: var(--white); font-size: .875rem; margin-bottom: var(--s1); }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin-bottom: .35rem; }
.foot-grid { display: grid; gap: var(--s4); }
@media (min-width: 800px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.foot-legal { border-top: 1px solid rgba(255, 255, 255, .2); margin-top: var(--s4); padding-top: var(--s2); display: flex; gap: var(--s2); justify-content: space-between; flex-wrap: wrap; font-size: .8125rem; }
.foot-legal a.praxiom { background: var(--stripe-b); color: var(--gold-label); padding: .25rem .6rem; border-radius: var(--r-sm); font-weight: 700; text-decoration: none; }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 500ms ease, transform 500ms ease; }
.reveal.in { opacity: 1; transform: none; }
/* Auth pages */
.auth { min-height: calc(100dvh - 64px); display: grid; place-items: start center; padding: var(--s4) 1rem var(--s8); }
.auth .card { width: min(100%, 480px); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--panel-border); border-radius: var(--r-md); overflow: hidden; margin-bottom: var(--s3); }
.seg button { background: var(--white); border: 0; min-height: 48px; font: 700 .9375rem var(--font); color: var(--navy); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--navy); color: var(--white); }
/* Guide directory */
.guide-card { display: flex; flex-direction: column; gap: .5rem; }
.guide-card h3 { margin: 0; font-size: 1.1875rem; }
.guide-card .who { display: flex; gap: .75rem; align-items: center; }
.guide-card .tags { display: flex; gap: .35rem; flex-wrap: wrap; }
.guide-card .btn { margin-top: auto; align-self: flex-start; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; font-size: 1rem; margin: 0; }
.kv dt { font-weight: 700; color: var(--navy); }
.kv dd { margin: 0; overflow-wrap: anywhere; }

/* ---------- Apps ---------- */
body.app { background: linear-gradient(#E4EFF5, #F1F7FA 40%, #E8F1F6); min-height: 100dvh; }
.app-top { position: sticky; top: 0; z-index: 50; background: linear-gradient(var(--hdr-top), var(--hdr-bottom)); color: var(--white); border-top: 4px solid transparent; border-image: linear-gradient(90deg, var(--stripe-a), var(--stripe-b), var(--stripe-a)) 1; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); }
.app-top .inner { display: flex; align-items: center; gap: var(--s2); min-height: 56px; padding: 0 var(--s2); }
.app-top .logo img { height: 28px; display: block; }
.app-top .crumbs { color: var(--hdr-sub); padding: 0; display: none; }
.app-top .crumbs a { color: var(--hdr-sub); }
.app-top .praxiom { background: var(--stripe-b); color: var(--gold-label); font-size: .8125rem; font-weight: 700; padding: .35rem .6rem; border-radius: var(--r-sm); text-decoration: none; white-space: nowrap; display: none; }
.app-top .who { display: flex; align-items: center; gap: .5rem; background: transparent; border: 0; color: var(--white); cursor: pointer; font: 700 .875rem var(--font); padding: .25rem; border-radius: var(--r-sm); }
.app-top .pill { display: inline-flex; align-items: center; gap: .3rem; background: rgba(255, 255, 255, .12); border-radius: var(--r-pill); padding: .25rem .6rem; font-size: .8125rem; font-weight: 700; color: var(--white); text-decoration: none; white-space: nowrap; }
.app-top .pill svg { width: 15px; height: 15px; color: var(--stripe-b); }
@media (min-width: 900px) { .app-top .crumbs, .app-top .praxiom { display: block; } }
@media (max-width: 520px) { .app-top .who .name, .app-top .pill.level { display: none; } }
.app-body { display: grid; grid-template-columns: 1fr; }
.side { display: none; }
.app-main { padding: var(--s3) var(--s2) 120px; min-width: 0; font-size: 1.25rem; line-height: 1.5; }  /* guide 14.5: app body text is 20px */
.app-main .wrap { width: min(100%, 1080px); }
.app-main h1 { font-size: clamp(1.5rem, 3vw, 1.9rem); margin-bottom: var(--s1); }
.app-main h2 { font-size: 1.25rem; }
.app-main .lede { font-size: 1.125rem; margin-bottom: var(--s3); }
.app-main .card { font-size: 1.0625rem; }
.demo-bar { background: var(--cream-a); color: var(--cream-text); border-bottom: 2px solid var(--cream-border); font-size: .875rem; padding: .4rem var(--s2); display: flex; gap: var(--s1); align-items: center; justify-content: center; flex-wrap: wrap; }
.demo-bar select { width: auto; min-height: 32px; padding: .2rem .5rem; font-size: .875rem; }
.trial-bar { background: var(--navy); color: var(--white); font-size: .9375rem; padding: .5rem var(--s2); display: flex; gap: var(--s2); align-items: center; justify-content: center; flex-wrap: wrap; }
.trial-bar .btn { min-height: 34px; padding: .3rem .8rem; }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; background: var(--ink-deep); display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid #244B66; }
.tabbar a, .tabbar button { background: transparent; border: 0; color: #A0C3D2; text-decoration: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 60px; font: 700 .6875rem var(--font); cursor: pointer; position: relative; }
.tabbar svg { width: 22px; height: 22px; }
.tabbar [aria-current="page"] { color: var(--white); box-shadow: inset 0 3px 0 var(--teal); }
.tabbar .dot { position: absolute; top: 6px; left: 50%; margin-left: 6px; min-width: 16px; height: 16px; line-height: 16px; font-size: .625rem; padding: 0 4px; }
@media (min-width: 900px) {
  .app-body { grid-template-columns: 236px 1fr; }
  .side { display: block; position: sticky; top: 60px; align-self: start; height: calc(100dvh - 60px); overflow: auto; padding: var(--s2) var(--s1) var(--s3) var(--s2); }
  .tabbar { display: none; }
  .app-main { padding: var(--s3) var(--s3) var(--s8); }
}
.side a { display: flex; align-items: center; gap: .7rem; padding: .65rem .8rem; margin-bottom: 2px; border-radius: var(--r-sm); color: var(--navy); text-decoration: none; font-weight: 700; font-size: .9375rem; }
.side a svg { width: 20px; height: 20px; color: var(--text-2); flex: none; }
.side a:hover { background: rgba(28, 53, 87, .08); }
.side a[aria-current="page"] { background: var(--navy); color: var(--white); }
.side a[aria-current="page"] svg { color: var(--stripe-b); }
.side a .dot { margin-left: auto; }
.side .group { font: 400 .6875rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); padding: var(--s2) .8rem .3rem; }
.sheet-nav a { display: flex; align-items: center; gap: .8rem; padding: .9rem .25rem; border-bottom: 1px solid #E1EBF0; color: var(--navy); font-weight: 700; text-decoration: none; }
.sheet-nav svg { width: 22px; height: 22px; color: var(--text-2); }
/* Next up (cream highlight card) */
.nextup { display: grid; gap: var(--s2); align-items: center; }
@media (min-width: 720px) { .nextup { grid-template-columns: 1fr auto; } }
.nextup .k { font: 400 .75rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--gold-text); }
.nextup h2 { font-size: 1.25rem; margin: .2rem 0 .3rem; color: var(--cream-text); }
/* Messages */
.msg-layout { display: grid; gap: var(--s2); }
@media (min-width: 900px) { .msg-layout { grid-template-columns: 300px 1fr; align-items: start; } }
.thread-list { list-style: none; margin: 0; padding: 0; }
.thread-list a { display: flex; gap: .7rem; align-items: center; padding: .7rem; border-radius: var(--r-sm); text-decoration: none; color: var(--black); border: 1px solid transparent; }
.thread-list a:hover { background: var(--fog); }
.thread-list a[aria-current="true"] { background: var(--white); border-color: var(--panel-border); box-shadow: inset 4px 0 0 var(--teal-dark); }
.thread-list .t { font-weight: 700; font-size: .9375rem; display: block; }
.thread-list .p { font-size: .8125rem; color: var(--text-3); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
.chat { display: flex; flex-direction: column; height: min(70dvh, 640px); }
.chat-log { flex: 1; overflow: auto; padding: var(--s2); display: flex; flex-direction: column; gap: .5rem; background: var(--fog); border-radius: var(--r-sm); }
.bubble { max-width: min(78%, 560px); padding: .55rem .8rem; border-radius: var(--r-md); background: var(--white); border: 1px solid var(--panel-border); font-size: 1.0625rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble.me { align-self: flex-end; background: var(--navy); color: var(--white); border-color: var(--navy); }
.bubble time { display: block; font-size: .6875rem; opacity: .75; margin-top: .2rem; }
.day-sep { align-self: center; font-size: .75rem; color: var(--text-3); margin: .4rem 0; }
.chat-form { display: flex; gap: var(--s1); margin-top: var(--s1); align-items: flex-end; }
.chat-form textarea { min-height: 48px; max-height: 160px; }
/* Files */
.file-row { display: flex; gap: var(--s2); align-items: center; padding: .7rem 0; border-bottom: 1px solid #E1EBF0; }
.file-row:last-child { border-bottom: 0; }
.file-ico { width: 40px; height: 48px; border-radius: 4px; background: var(--fog); border: 1px solid var(--panel-border); display: flex; align-items: flex-end; justify-content: center; font: 400 .625rem var(--mono); color: var(--navy); padding-bottom: 5px; flex: none; text-transform: uppercase; }
.drop { border: 2px dashed #8FA9B8; border-radius: var(--r-md); padding: var(--s3); text-align: center; background: var(--white); }
.drop.over { border-color: var(--teal-dark); background: #DDF6F0; }
/* Calendar */
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .4rem; }
.slot { min-height: 44px; border: 1px solid var(--panel-border); background: var(--white); border-radius: var(--r-sm); font: 700 .9375rem var(--font); color: var(--navy); cursor: pointer; }
.slot:hover { border-color: var(--teal-dark); }
.slot[aria-pressed="true"] { background: var(--teal); color: var(--ink-deep); border-color: var(--teal-dark); }
.day-tabs { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .4rem; margin-bottom: var(--s1); }
.day-tabs button { flex: none; min-width: 72px; min-height: 56px; border: 1px solid var(--panel-border); background: var(--white); border-radius: var(--r-sm); font: 700 .8125rem var(--font); color: var(--navy); cursor: pointer; }
.day-tabs button small { display: block; font-weight: 400; color: var(--text-3); }
.day-tabs button[aria-pressed="true"] { background: var(--navy); color: var(--white); }
.day-tabs button[aria-pressed="true"] small { color: var(--hdr-sub); }
.day-tabs button[disabled] { opacity: .45; cursor: not-allowed; }
.booking { display: grid; grid-template-columns: 64px 1fr; gap: var(--s2); padding: var(--s2) 0; border-bottom: 1px solid #E1EBF0; }
.booking:last-child { border-bottom: 0; }
.booking .date { text-align: center; background: var(--navy); color: var(--white); border-radius: var(--r-sm); padding: .4rem 0; align-self: start; }
.booking .date b { display: block; font-size: 1.375rem; line-height: 1; }
.booking .date span { font-size: .6875rem; text-transform: uppercase; letter-spacing: .06em; }
.booking h3 { font-size: 1.0625rem; margin: 0 0 .15rem; }
/* Roadmap frame */
.roadmap-frame { width: 100%; height: calc(100dvh - 190px); min-height: 520px; border: 1px solid var(--panel-border); border-radius: var(--r-md); background: var(--white); }
/* Charts */
.chart { width: 100%; height: auto; display: block; }
.chart text { font-family: var(--font); font-size: 12px; fill: var(--text-3); }
.heat td { text-align: center; font-variant-numeric: tabular-nums; font-size: .875rem; }
.tabs { display: flex; gap: .35rem; flex-wrap: wrap; margin-bottom: var(--s2); }
.tabs button, .tabs a { min-height: 40px; padding: .4rem .9rem; border-radius: var(--r-pill); border: 1px solid var(--panel-border); background: var(--white); color: var(--navy); font: 700 .875rem var(--font); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
.tabs [aria-pressed="true"], .tabs [aria-current="page"] { background: var(--teal); color: var(--ink-deep); border-color: var(--teal-dark); }
/* Layout details */
.card-h h2, .card-h h3 { display: flex; align-items: center; gap: .45rem; }
.card-h svg { color: var(--text-2); }
.card.navy .card-h svg, .card.cream .card-h svg { color: inherit; }
.site-links a { white-space: nowrap; }
@media (min-width: 1000px) and (max-width: 1200px) { .site-links a { padding: .5rem .4rem; font-size: .8125rem; } .site-nav .logo img { height: 26px; width: auto; } .site-links .btn-cta { padding: .5rem .7rem; } }
.app-top .crumbs { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 0 1 auto; }
.app-top .who .name { max-width: 16ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-row { flex-wrap: wrap; }
.pfield .private svg { width: 14px; height: 14px; }
svg.chart { width: 100%; height: auto; display: block; }
/* Messages on a phone: the list or the conversation, one at a time */
@media (max-width: 899px) { .msg-layout.has-thread .thread-pane, .msg-layout.no-thread .chat-pane { display: none; } }
@media (min-width: 900px) { .back-link { display: none; } }
@media (max-width: 960px) { #profile-grid, #earn-grid { grid-template-columns: 1fr !important; } #profile-grid aside, #earn-side { position: static !important; } }
a.stat { color: inherit; transition: box-shadow var(--fast), transform var(--fast); }
a.stat:hover { box-shadow: var(--shadow-1); transform: translateY(-1px); }
.chart .mark:hover path { opacity: .82; }
table.heat td { min-width: 64px; }
details.card > summary { cursor: pointer; }
.kpi-grid { display: grid; gap: var(--s2); grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.todo { list-style: none; margin: 0; padding: 0; }
.todo li { display: flex; gap: var(--s2); align-items: center; flex-wrap: wrap; padding: .7rem 0; border-bottom: 1px solid #E1EBF0; }
.todo li:last-child { border-bottom: 0; }
.legend { display: flex; gap: var(--s2); flex-wrap: wrap; font-size: .8125rem; color: var(--text-3); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: .35rem; vertical-align: -1px; }

/* Placeholder finder: add ?ph=1 to any page */
.ph-on [data-ph] { outline: 2px dashed #C2185B; outline-offset: 2px; position: relative; }
.ph-on [data-ph]::after { content: attr(data-ph); position: absolute; left: 0; top: -1.35em; background: #C2185B; color: #fff; font: 400 10px/1.3 var(--mono); padding: 1px 4px; border-radius: 3px; white-space: nowrap; z-index: 5; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 200; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; }
  .reveal { opacity: 1; transform: none; }
}
@media print {
  .site-top, .site-foot, .app-top, .side, .tabbar, .help-fab, .toasts, .demo-bar, .trial-bar, .no-print { display: none !important; }
  body, body.app { background: #fff; }
  .app-main { padding: 0; font-size: 12pt; }
  .card { box-shadow: none; break-inside: avoid; }
  /* Trial accounts: nothing prints. */
  body.no-print-plan .app-main { display: none !important; }
  body.no-print-plan::after { content: "Printing is part of full access."; display: block; padding: 2rem; font: 14pt sans-serif; }
}
