/* Cura Genomix: styles shared by every page. Colours are tokens (light first, then dark). */

/* Palette: logo navy for structure and actions, a clinical teal for confirmations and links on dark,
   the logo orange kept for the single most important number on a page. Cool grey page, white surfaces. */
:root {
  /* light, airy pages; blue for actions and links, logo navy for headings and the footer, logo orange for small highlights */
  --bg: #FAF8F4; --surface: #FFFFFF; --surface-2: #F8F9FB;
  --ink: #1A1D2E; --ink-2: #3D4258; --muted: #6B7080;
  --line: #E6EAF2; --line-strong: #D3D8E2;
  --accent: #1F5BD8; --accent-ink: #FFFFFF; --accent-soft: #EAF0FD; --accent-2: #1849B0;
  --navy: #1E2550; --orange: #F39A2B;
  --teal: #0C6E68; --teal-soft: #E3F2F0;
  --brand-2: #C9541C; /* logo orange, darkened for text contrast */
  --gold: #8F6B22; --gold-ink: #7A5A1B;
  --good: #0E7C6F; --good-soft: #E6F6F4; --warn: #8A5700; --warn-soft: #FBF0DC; --bad: #C4271B; --bad-soft: #FCEBE9;
  --next-ink: #6B4F12; --next-soft: #F5EDDB; --plan-ink: #4F5670; --plan-soft: #ECEFF4;
  --desk: #E9EEF9; --paper: #FFFFFF; --paper-ink: #12141F; --paper-line: #CDD2DC; --paper-muted: #575B6B;
  --footer-bg: #FFFFFF; --footer-ink: #1E2550; --footer-muted: #6B7080;
  --logo: url("../img/logo-mark.png");
  --shadow: 0 1px 3px rgba(26, 29, 46, .05), 0 6px 20px rgba(26, 29, 46, .05);
  --shadow-lg: 0 2px 4px rgba(26, 29, 46, .05), 0 22px 48px rgba(26, 29, 46, .10);
  --f-display: "Nunito Sans", "Avenir Next", Avenir, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-ui: "Nunito Sans", "Avenir Next", Avenir, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 6px;
  --hd-h: 72px;
  color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink); font-family: var(--f-ui); font-size: 16px; line-height: 1.55;
}
body > main { flex: 1 0 auto; }
img, svg { max-width: 100%; }
a { color: var(--accent); }
h1, h2, h3 { text-wrap: balance; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.container {
  width: 100%; max-width: var(--container, 1200px); margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 20; background: var(--surface); color: var(--ink); padding: 10px 14px; border-radius: 8px; box-shadow: var(--shadow); }
.skip-link:focus { left: 16px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ----------
   One white row: logo, menu, then the tools (Ask, Help, Demo, account). Below 1100px the menu moves to a second row. */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; flex-wrap: wrap; align-items: center; gap: 0 22px; padding-block: 0; position: relative; }
.brand { order: 0; display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; height: var(--hd-h); min-width: 0; }
.brand-mark { width: 38px; height: 38px; flex: none; background: var(--logo) center / contain no-repeat; }
.site-header .brand-mark { width: 36px; height: 36px; }
.brand-name { font-weight: 600; font-size: 19px; letter-spacing: -.01em; white-space: nowrap; }
.hd-tools { order: 2; margin-left: auto; display: flex; align-items: center; gap: 8px; height: var(--hd-h); }
.hd-ask { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--accent); display: grid; place-items: center; cursor: pointer; padding: 0; }
.hd-ask svg { width: 24px; height: 24px; }
.hd-ask:hover, .hd-ask:focus-visible { border-color: var(--accent); outline: none; }
.hd-pill { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 14.5px; font-weight: 500; text-decoration: none; cursor: pointer; white-space: nowrap; }
.hd-pill svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.hd-pill:hover, .hd-pill:focus-visible { border-color: var(--accent); outline: none; }
.hd-user { padding: 0 12px 0 6px; background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.hd-user svg { color: currentColor; }
.hd-user:hover, .hd-user:focus-visible { border-color: var(--accent); filter: brightness(1.08); }
.hd-user .am-txt b { font-weight: 600; font-size: 14px; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; text-transform: none; letter-spacing: 0; }
.hd-user .am-av { width: 30px; height: 30px; font-size: 14px; }
.hd-user .am-caret { border-top-color: currentColor; margin-left: 2px; }
/* menu */
.site-nav { order: 1; flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 0 20px; font-size: 15px; height: var(--hd-h); overflow-x: auto; scrollbar-width: none; }
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a { color: var(--ink-2); text-decoration: none; padding-block: 22px 20px; white-space: nowrap; border-bottom: 2px solid transparent; font-weight: 500; }
.site-nav a:hover { color: var(--accent); }
.site-nav a[aria-current="page"] { color: var(--accent); font-weight: 600; border-bottom-color: var(--accent); }
.hd-bal { margin-left: auto; font-size: 14px; color: var(--muted); white-space: nowrap; padding-left: 16px; }
.hd-bal b { color: var(--accent); font-size: 15px; }
.site-nav .hd-bal a { border: 0; padding: 0; color: var(--accent); text-decoration: underline; text-underline-offset: 2px; font-weight: 500; }
.header-cta { display: none; }
@media (max-width: 1100px) {
  .site-nav { order: 9; flex-basis: 100%; height: 46px; border-top: 1px solid var(--line); }
  .site-nav a { padding-block: 12px 11px; }
}
@media (max-width: 1440px) { .hd-help span { display: none; } .hd-help { padding: 0; width: 40px; justify-content: center; } }
@media (max-width: 640px) {
  :root { --hd-h: 60px; }
  .brand-name { font-size: 17px; }
  .site-header .brand-mark { width: 32px; height: 32px; }
  .hd-tools { gap: 6px; }
  .hd-help { display: none; }
  .hd-demo span { display: none; } .hd-demo { padding: 0; width: 40px; justify-content: center; }
  .hd-user .am-txt, .hd-user > span:not(.am-av) { display: none; } .hd-user { padding: 0 8px 0 5px; }
  .site-nav { gap: 0 18px; font-size: 14.5px; }
  .hd-bal { display: none; }
}
@media (max-width: 380px) { .brand-name { font-size: 16px; } .hd-tools { gap: 4px; } }

/* Ask / search box */
dialog.ask-dlg { width: min(640px, calc(100vw - 24px)); max-height: min(560px, calc(100vh - 80px)); margin: 72px auto auto; padding: 0; border: 0; border-radius: 10px; background: var(--surface); color: var(--ink); box-shadow: 0 24px 60px rgba(0, 0, 0, .28); overflow: hidden; }
dialog.ask-dlg[open] { display: flex; flex-direction: column; }
dialog.ask-dlg::backdrop { background: rgba(20, 16, 30, .45); }
.ask-top { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--accent); }
.ask-top svg { width: 30px; height: 30px; flex: none; }
.ask-top input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; color: var(--ink); font: inherit; font-size: 17px; padding: 8px 4px; }
.ask-x { border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--muted); border-radius: 6px; font-size: 12px; padding: 3px 7px; cursor: pointer; }
.ask-list { list-style: none; margin: 0; padding: 6px; overflow-y: auto; }
.ask-list a { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.ask-list b { font-weight: 600; font-size: 15px; }
.ask-list small { color: var(--muted); font-size: 13px; }
.ask-list [aria-selected="true"] a { background: var(--accent-soft); }
.ask-list a.topic b { color: var(--accent); }
.ask-list .none { padding: 14px 12px; color: var(--muted); font-size: 14px; }
.ask-hint { margin: 0; padding: 9px 16px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); background: var(--surface-2); }


/* ---------- buttons, chips, labels ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap;
  border-radius: 8px; padding: 8px 14px; font-size: 14px; font-weight: 500; cursor: pointer; text-decoration: none;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
}
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn-md { min-height: 44px; padding: 0 18px; border-radius: 10px; font-size: 15px; }
.btn-lg { min-height: 52px; padding: 0 24px; border-radius: 10px; font-size: 17px; }
.btn.primary.btn-md, .btn.primary.btn-lg { font-weight: 600; }
.btn.small { padding: 5px 10px; font-size: 13px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.kicker { font-size: 13px; font-weight: 500; color: var(--muted); }
.eyebrow { font-size: 14.5px; font-weight: 500; color: var(--teal); }
.chip { font-size: 12.5px; padding: 2px 9px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink); }
.chip.good { background: var(--good-soft); border-color: transparent; color: var(--good); }
.chip.warn { background: var(--warn-soft); border-color: transparent; color: var(--warn); }
.chip.accent { background: var(--accent-soft); border-color: transparent; color: var(--accent); font-weight: 500; }

/* ---------- home: hero ----------
   The memorable thing on the page is the worksheet: a real calculation, formula to final number. */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: 56px; padding-block: 72px 64px; }
.hero-copy { min-width: 0; display: grid; gap: 22px; align-content: center; }
.hero h1 { margin: 0; font-weight: 600; font-size: clamp(34px, 4.6vw, 52px); line-height: 1.08; letter-spacing: -0.025em; max-width: 15em; }
.lead { margin: 0; font-size: 18.5px; line-height: 1.6; color: var(--ink-2); max-width: 36em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.small-print { margin: 0; font-size: 14px; color: var(--muted); }
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 4px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--ink-2); }
.hero-trust li { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--teal); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.hero-visual { min-width: 0; }
.hero-card { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lg); overflow: hidden; display: grid; }
.ws-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--line); background: var(--surface-2); font-size: 13.5px; color: var(--muted); }
.ws-head b { color: var(--ink); font-weight: 600; }
.ws-body { padding: 18px 20px 20px; display: grid; gap: 14px; }
.ws-formula { font-family: var(--f-mono); font-size: 15px; color: var(--ink); padding: 12px 14px; border-radius: 8px; background: var(--accent-soft); overflow-x: auto; white-space: nowrap; }
.ws-rows { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; font-size: 14.5px; }
.ws-rows dt { color: var(--ink-2); }
.ws-rows dd { margin: 0; font-family: var(--f-mono); font-size: 14px; text-align: right; color: var(--ink); }
.ws-rows dt small { display: block; color: var(--muted); font-size: 12.5px; }
.ws-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px dashed var(--line-strong); }
.ws-total > span:first-child { font-size: 14.5px; color: var(--ink-2); }
.hero-num { font-weight: 600; font-size: clamp(46px, 6vw, 60px); line-height: 1; color: var(--brand-2); font-variant-numeric: lining-nums tabular-nums; letter-spacing: -0.02em; }
.hero-num small { font-size: 16px; font-weight: 500; color: var(--ink-2); letter-spacing: 0; margin-left: 6px; }
.file-card { display: flex; align-items: center; gap: 14px; border-top: 1px solid var(--line); padding: 14px 20px; background: var(--surface-2); }
.file-sheet { width: 40px; height: 52px; flex: none; background: var(--paper); border: 1px solid var(--paper-line); border-radius: 3px; padding: 6px 5px; display: flex; flex-direction: column; gap: 3px; }
.file-sheet span { display: block; height: 3px; border-radius: 2px; background: var(--paper-line); }
.file-sheet span:first-child { height: 4px; width: 70%; background: var(--accent); }
.file-sheet span:nth-child(3) { width: 85%; } .file-sheet span:nth-child(4) { width: 92%; } .file-sheet span:nth-child(5) { width: 60%; } .file-sheet span:nth-child(6) { width: 80%; }
.file-name { font-weight: 600; font-size: 14.5px; overflow-wrap: anywhere; }
.file-meta { font-size: 13px; color: var(--muted); }
@media (max-width: 960px) { .hero { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-block: 44px 40px; } }

/* ---------- home: sections ---------- */
.section { padding-block: 72px; }
.section-tight { padding-top: 16px; }
.band { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { display: grid; gap: 10px; max-width: 680px; margin-bottom: 32px; }
.section-head h2, .section h2 { margin: 0; font-weight: 600; font-size: clamp(26px, 3vw, 34px); line-height: 1.15; letter-spacing: -0.02em; }
.section-head p { margin: 0; color: var(--ink-2); font-size: 17px; line-height: 1.6; }

.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(420px, 100%), 1fr)); gap: 18px; }
.tool-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 24px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.tool-card.is-live { border-color: var(--line); }
.tool-card.is-live:hover { border-color: var(--accent); }
.tool-card h3 { margin: 0; font-size: 18.5px; font-weight: 600; letter-spacing: -0.01em; }
.tool-card p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.tool-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tool-icon { width: 42px; height: 42px; border-radius: 10px; background: var(--surface-2); color: var(--muted); display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); }
.tool-card.is-live .tool-icon { background: var(--accent); color: #fff; border-color: var(--accent); }
.tool-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tool-link { margin-top: auto; padding-top: 6px; font-weight: 600; font-size: 15px; text-decoration: none; }
.tool-link::after { content: ""; position: absolute; inset: 0; border-radius: 10px; }
.tool-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.tool-note { font-size: 13.5px; color: var(--muted); }
.status { font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 6px; white-space: nowrap; }
.status.live { background: var(--teal-soft); color: var(--teal); }
.status.next { background: var(--next-soft); color: var(--next-ink); }
.status.planned { background: var(--plan-soft); color: var(--plan-ink); }
.tool-grid.later { grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); }
.tool-grid.later .tool-card { background: transparent; border-style: dashed; padding: 18px 20px; }
.tool-grid.later .tool-card h3 { font-size: 16px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 32px; counter-reset: st; }
.steps li { display: grid; gap: 10px; align-content: start; padding-top: 18px; border-top: 2px solid var(--accent); }
.step-num { font-weight: 600; font-size: 15px; color: var(--accent); }
.steps h3 { margin: 0; font-size: 18.5px; font-weight: 600; }
.steps p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.6; }

.points { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 28px 32px; }
.point { display: flex; gap: 12px; align-items: flex-start; }
.point svg { flex: none; width: 22px; height: 22px; margin-top: 2px; fill: none; stroke: var(--teal); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.point h3 { margin: 0 0 4px; font-size: 16.5px; font-weight: 600; }
.point p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.6; }

.faq { display: grid; gap: 0; max-width: 820px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 0 4px; }
.faq summary { cursor: pointer; font-weight: 600; padding-block: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 22px; line-height: 1; color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq details[open] summary { padding-bottom: 8px; }
.faq details p { margin: 0 0 18px; color: var(--ink-2); line-height: 1.6; max-width: 70ch; }

.notice { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.notice svg { flex: none; width: 22px; height: 22px; fill: var(--accent); margin-top: 1px; }
.notice b { color: var(--ink); }

/* ---------- legal and info pages ---------- */
.prose { max-width: 760px; padding-block: 48px 72px; }
.prose h1 { margin: 0 0 6px; font-weight: 600; font-size: clamp(30px, 4vw, 40px); line-height: 1.15; letter-spacing: -0.02em; }
.prose .updated { margin: 0 0 28px; color: var(--muted); font-size: 14px; }
.prose h2 { margin: 36px 0 10px; font-weight: 600; font-size: 21px; line-height: 1.3; letter-spacing: -0.01em; }
.prose h3 { margin: 22px 0 6px; font-size: 17px; font-weight: 600; color: var(--ink); }
.prose p, .prose li { line-height: 1.65; }
.prose .toc { margin: 0 0 28px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); columns: 2 220px; font-size: 14.5px; }
.prose .toc a { text-decoration: none; } .prose .toc a:hover { text-decoration: underline; }
.prose .summary { padding: 16px 20px; border-radius: 10px; background: var(--accent-soft); color: var(--ink); margin: 0 0 24px; }
.prose p, .prose li { color: var(--ink-2); }
.prose p { margin: 0 0 12px; }
.prose ul { margin: 0 0 12px; padding-left: 22px; display: grid; gap: 6px; }
.prose strong { color: var(--ink); }
.contact-list { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: 10px 24px; margin: 0 0 12px; }
.contact-list dt { color: var(--muted); }
.contact-list dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
@media (max-width: 520px) { .contact-list { grid-template-columns: minmax(0, 1fr); gap: 2px; } .contact-list dd { margin-bottom: 10px; } }
.callout { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin: 16px 0; color: var(--ink-2); }

/* ---------- footer ---------- */
.site-footer { background: var(--footer-bg); color: var(--footer-ink); margin-top: 0; }
.site-footer .container { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(5, minmax(0, 1fr)); gap: 32px 28px; padding-block: 52px 28px; }
.footer-about { display: grid; gap: 12px; align-content: start; max-width: 380px; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; }
.footer-brand::before { content: ""; width: 32px; height: 32px; flex: none; background: url("../img/logo-mark.png") center / contain no-repeat; }
.footer-about p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--footer-muted); }
.footer-col { display: grid; gap: 9px; align-content: start; font-size: 14px; }
.footer-col h2 { margin: 0 0 4px; font-size: 14px; font-weight: 600; color: var(--footer-ink); }
.footer-col small { color: var(--footer-muted); opacity: .75; font-size: 12px; }
.footer-col a { color: var(--footer-muted); text-decoration: none; }
.footer-col a:hover { color: var(--accent); text-decoration: underline; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 14px; }
.footer-links a { color: var(--footer-ink); }
.footer-legal { grid-column: 1 / -1; display: grid; gap: 8px; padding-top: 22px; border-top: 1px solid #E6EAF2; font-size: 12.5px; line-height: 1.6; color: var(--footer-muted); }
.footer-legal p { margin: 0; max-width: 110ch; }
.copyright { margin: 0; font-size: 13px; color: var(--footer-muted); }
@media (max-width: 1100px) { .site-footer .container { grid-template-columns: repeat(3, minmax(0, 1fr)); } .footer-about { grid-column: 1 / -1; } }
@media (max-width: 640px) { .site-footer .container { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .site-footer .container { grid-template-columns: minmax(0, 1fr); } }

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

/* account area in the header (paid searches) */
.acct { display: flex; align-items: center; gap: 6px 12px; font-size: 14px; }
.acct-left b { color: var(--accent); font-size: 16px; }
.acct-who { color: var(--muted); max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct .linkbtn { background: none; border: 0; padding: 3px 0; font-size: 14px; color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }


/* sign-in window */
dialog.signin { width: min(440px, calc(100vw - 32px)); border: 1px solid var(--line); border-radius: 10px; padding: 24px; background: var(--surface); color: var(--ink); box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
dialog.signin::backdrop { background: rgba(16, 18, 26, .55); }
dialog.signin h2 { margin: 0 0 6px; font-family: var(--f-display); font-size: 22px; }
dialog.signin > div, dialog.signin form:not(.si-close) { display: grid; gap: 10px; }
dialog.signin p { margin: 8px 0; }
dialog.signin .field { display: grid; gap: 5px; }
dialog.signin input { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 10px; font: inherit; background: var(--surface); color: var(--ink); }
dialog.signin .row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
dialog.signin .linkbtn { background: none; border: 0; padding: 3px 0; color: var(--accent); cursor: pointer; text-decoration: underline; font: inherit; font-size: 14px; }
.si-close { position: absolute; top: 14px; right: 16px; }
dialog.signin { position: fixed; }
.si-google { min-height: 44px; display: flex; justify-content: center; margin: 12px 0 4px; }
.si-or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.si-or::before, .si-or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.si-why { color: var(--ink-2); }
dialog.signin .act-status { min-height: 1.2em; color: var(--accent); font-size: 14px; }
dialog.signin .hint { font-size: 12.5px; color: var(--muted); }

.has-acct .header-cta { display: none; }

/* pages that need an account: the content waits behind a sign-in card */
.cg-gated main { display: none !important; }
.wall { padding-block: 48px 72px; }
.wall-card { max-width: 620px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 32px; box-shadow: 0 4px 18px rgba(0, 0, 0, .06); text-align: center; }
.wall-card .brand-mark { display: inline-block; width: 56px; height: 56px; }
.wall-card h1 { font-family: var(--f-display); font-size: 30px; margin: 10px 0 8px; }
.wall-card ul { text-align: left; display: inline-grid; gap: 6px; margin: 8px 0 16px; padding-left: 20px; color: var(--ink-2); }
.acct .acct-who { color: var(--muted); text-decoration: none; }
.acct .acct-who:hover { text-decoration: underline; }
dialog.signin select { width: 100%; min-height: 44px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 10px; font: inherit; background: var(--surface); color: var(--ink); }
#siProfile { display: grid; gap: 12px; }
#siProfile[hidden] { display: none; }
dialog.signin [hidden] { display: none !important; }

/* account menu in the header */
.am { position: relative; }
.am-bal { padding: 10px 16px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.am-bal b { color: var(--accent); font-size: 16px; }
.am-txt { display: grid; line-height: 1.2; }
.am-txt b { font-weight: 600; font-size: 14.5px; text-transform: uppercase; letter-spacing: .02em; max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.am-txt small { color: var(--muted); font-size: 12.5px; }
.am-av { width: 40px; height: 40px; border-radius: 50%; background: #5DBB7E; color: #fff; display: grid; place-items: center; font-size: 19px; font-weight: 600; flex: 0 0 auto; }
.am-av.big { width: 52px; height: 52px; font-size: 24px; }
.am-caret { width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid var(--muted); }
.am-menu { position: absolute; right: 0; top: calc(100% + 10px); width: 300px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 16px 40px rgba(0, 0, 0, .16); z-index: 50; overflow: hidden; }
.am-menu[hidden] { display: none; }
.am-head { display: flex; align-items: center; gap: 12px; padding: 16px; border-bottom: 1px solid var(--line); }
.am-head b, .am-item b { display: block; font-weight: 600; color: var(--ink); }
.am-head small, .am-item small { display: block; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.am-item { display: flex; align-items: center; gap: 14px; width: 100%; padding: 11px 16px; border: 0; border-bottom: 1px solid var(--line); background: none; text-decoration: none; text-align: left; font: inherit; cursor: pointer; }
.am-item:last-child { border-bottom: 0; }
.am-item:hover, .am-item:focus-visible { background: var(--surface-2); outline: none; }
.am-ic { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; }
.am-ic svg { width: 20px; height: 20px; fill: #fff; }
.am-ic.c1 { background: #4A8FE7; } .am-ic.c2 { background: #232C5C; } .am-ic.c3 { background: #2EB8E6; } .am-ic.c4 { background: #C2441F; } .am-ic.c5 { background: #2FB36A; } .am-ic.c6 { background: #4B3FB5; }
.site-header .container { position: relative; }
@media (max-width: 640px) { .am { position: static; } .am-menu { left: 16px; right: 16px; width: auto; top: calc(var(--hd-top) - 6px); } }

/* demo video of this page, and the first-visit suggestion */
dialog.demo-dlg { width: min(900px, calc(100vw - 24px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 10px; background: var(--surface); color: var(--ink); box-shadow: 0 24px 60px rgba(0,0,0,.3); overflow: auto; }
dialog.demo-dlg::backdrop { background: rgba(16, 18, 26, .6); }
.dd-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 14px 16px 10px; }
.dd-top h2 { margin: 0; font-family: var(--f-display); font-size: 20px; }
.dd-top p { margin: 2px 0 0; font-size: 13.5px; color: var(--muted); }
.dd-x { border: 0; background: var(--surface-2); width: 36px; height: 36px; border-radius: 50%; font-size: 15px; cursor: pointer; color: var(--ink); flex: none; }
dialog.demo-dlg video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.dd-steps { list-style: none; margin: 0; padding: 10px 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 4px; max-height: 190px; overflow: auto; }
.dd-steps button { display: flex; gap: 8px; width: 100%; text-align: left; border: 0; background: none; padding: 6px 8px; border-radius: 8px; font: inherit; font-size: 13px; line-height: 1.35; color: var(--ink-2); cursor: pointer; }
.dd-steps button span { flex: none; font-variant-numeric: tabular-nums; color: var(--muted); }
.dd-steps button:hover, .dd-steps button.on { background: var(--surface-2); color: var(--ink); }
.dd-steps button.on span { color: var(--accent); font-weight: 600; }
.dd-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 16px 14px; border-top: 1px solid var(--line); }
.dd-foot a { font-size: 14px; font-weight: 500; }
.demo-hint { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: min(380px, calc(100vw - 24px)); display: flex; gap: 12px; align-items: flex-start; padding: 12px 36px 12px 12px; border-radius: 10px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 14px 40px rgba(0,0,0,.18); transform: translateY(16px); opacity: 0; transition: transform .25s ease, opacity .25s ease; }
.demo-hint.on { transform: none; opacity: 1; }
.demo-hint.away { opacity: 0; visibility: hidden; pointer-events: none; }
.dh-thumb { position: relative; flex: none; width: 112px; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: 8px; overflow: hidden; cursor: pointer; background: #000; }
.dh-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .85; }
.dh-play { position: absolute; inset: 0; margin: auto; width: 32px; height: 32px; border-radius: 50%; background: rgba(31, 43, 94, .92); }
.dh-play::after { content: ""; position: absolute; left: 12px; top: 9px; border-left: 11px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.dh-txt { display: grid; gap: 3px; min-width: 0; font-size: 13px; color: var(--muted); }
.dh-txt b { font-size: 14px; color: var(--ink); }
.dh-act { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.dh-x { position: absolute; right: 8px; top: 8px; border: 0; background: none; font-size: 14px; cursor: pointer; color: var(--muted); width: 26px; height: 26px; border-radius: 50%; }
.dh-x:hover { background: var(--surface-2); }
@media (max-width: 520px) { .demo-hint { right: 10px; left: 10px; bottom: 10px; width: auto; padding: 10px 34px 10px 10px; gap: 10px; } .dh-thumb { width: 76px; } .dh-txt b { font-size: 13.5px; } .dh-txt { font-size: 12.5px; } }
@media (prefers-reduced-motion: reduce) { .demo-hint { transition: none; } }
.si-terms, .si-learn, .buy-agree { font-size: 13px; line-height: 1.45; color: var(--ink-2); margin: 4px 0 6px; }
.si-terms a, .si-learn a, .buy-agree a { font-weight: 500; }

button.hd-user[data-acct="in"] { padding: 0 14px 0 10px; }
@media (max-width: 640px) { button.hd-user[data-acct="in"] { padding: 0; width: 40px; justify-content: center; } }

/* ---------- terms screen (js/gate.js) ---------- */
html.gate-on, html.gate-on body { overflow: hidden; }
.gate { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; overflow-y: auto; background: rgba(13, 18, 40, .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.gate-card { width: min(600px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--surface); color: var(--ink); border-radius: 10px; padding: 28px 30px 24px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); display: grid; gap: 12px; }
.gate-top { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; color: var(--ink-2); }
.gate-logo { width: 30px; height: 30px; background: var(--logo) center / contain no-repeat; }
.gate-card h2 { margin: 6px 0 0; font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.gate-card > p { margin: 0; color: var(--ink-2); line-height: 1.55; }
.gate-points { margin: 4px 0; padding: 14px 18px 14px 34px; display: grid; gap: 8px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.gate-points b { color: var(--ink); font-weight: 600; }
.gate-check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.45; cursor: pointer; }
.gate-check input { width: 19px; height: 19px; margin: 1px 0 0; flex: none; accent-color: var(--accent); }
.gate-act { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.gate-act .btn.primary { flex: 1 1 220px; }
.gate-msg { margin: 0; font-size: 14px; color: var(--bad); }
.gate-msg:empty { display: none; }
.gate-bar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 900; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 14px 18px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(0, 0, 0, .18); max-width: 1100px; margin: 0 auto; }
.gate-bar p { margin: 0; flex: 1 1 320px; font-size: 14px; color: var(--ink-2); }
@media (max-width: 520px) { .gate-card { padding: 22px 18px 18px; } .gate-card h2 { font-size: 22px; } .gate-points { padding-left: 28px; font-size: 14px; } }
.ai-note { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 14px; padding: 11px 14px; border-radius: 10px; background: var(--accent-soft); color: var(--ink-2); font-size: 13.5px; line-height: 1.5; }
.ai-note svg { flex: none; width: 18px; height: 18px; fill: var(--accent); margin-top: 1px; }
.ai-note b { color: var(--ink); }
.sv-note { max-width: 210mm; margin: 0 auto 14px; }
@media print { .ai-note, .gate, .gate-bar, .demo-hint, .demo-dlg, .ask-dlg, .am-menu, .mega, .pdf-tip, dialog, .toast { display: none !important; } }
@media (max-width: 1440px) { .site-nav .hd-bal { display: none; } }
.si-terms, .si-learn, .buy-agree { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
dialog.signin .si-terms input, .si-terms input, .si-learn input, .buy-agree input { width: 18px !important; height: 18px; min-height: 0 !important; padding: 0; margin: 2px 0 0; flex: none; accent-color: var(--accent); }

/* ---------- Medical Writing menu (built by header.js; sits under the header, full width) ---------- */
.site-nav a[data-mega] { display: inline-flex; align-items: center; gap: 6px; }
.site-nav a[data-mega]::after { content: ""; width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
.site-nav a[data-mega][aria-expanded="true"]::after { transform: translateY(1px) rotate(-135deg); }
.site-nav a[data-mega][aria-expanded="true"] { color: var(--accent); }
.mega { position: absolute; left: 0; right: 0; top: 100%; z-index: 45; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px rgba(19, 26, 51, .10); max-height: calc(100vh - var(--hd-h) - 20px); overflow-y: auto; }
.mega-in, .site-header .mega-in { display: grid; align-items: start; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.1fr); gap: 28px; padding-block: 26px 28px; }
.mega h2 { margin: 0 0 10px; font-size: 13px; font-weight: 600; color: var(--muted); }
.mega-col { display: grid; gap: 4px; align-content: start; }
.mega-col a { display: grid; gap: 1px; padding: 9px 10px; margin: 0 -10px; border-radius: 9px; text-decoration: none; color: var(--ink); }
.mega-col a:hover, .mega-col a:focus-visible { background: var(--surface-2); outline: none; }
.mega-col a b { font-weight: 600; font-size: 15px; }
.mega-col a small { color: var(--muted); font-size: 13px; }
.mega-col .soon-item { padding: 6px 0; font-size: 14.5px; color: var(--ink-2); display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px dashed var(--line); }
.mega-col .soon-item:last-child { border-bottom: 0; }
.mega-cta { background: var(--accent); color: #fff; border-radius: 10px; padding: 20px; display: grid; gap: 8px; align-content: start; }
.mega-cta b { font-size: 17px; font-weight: 600; }
.mega-cta p { margin: 0; font-size: 14px; color: rgba(255, 255, 255, .82); line-height: 1.5; }
.mega-cta .btn { justify-self: start; margin-top: 6px; background: #fff; color: var(--accent); border-color: #fff; }
@media (max-width: 960px) { .mega-in, .site-header .mega-in { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; } }
@media (max-width: 560px) { .mega-in, .site-header .mega-in { grid-template-columns: minmax(0, 1fr); padding-block: 16px 20px; } .mega-cta { order: -1; padding: 16px; } }

/* ---------- breadcrumb on tool pages ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13.5px; color: var(--muted); margin: 0 0 8px; }
.crumbs a { color: var(--muted); text-decoration: none; } .crumbs a:hover { color: var(--accent); text-decoration: underline; }
.crumbs span[aria-hidden] { opacity: .6; }

/* ---------- home: new sections ---------- */
.hero-points { list-style: none; margin: 2px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 22px; font-size: 14.5px; color: var(--ink-2); }
.hero-points li { display: flex; gap: 8px; align-items: flex-start; line-height: 1.45; }
.hero-points svg { flex: none; width: 16px; height: 16px; margin-top: 2px; fill: none; stroke: var(--teal); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 560px) { .hero-points { grid-template-columns: minmax(0, 1fr); } }
.strip { border-block: 1px solid var(--line); background: var(--surface); }
.strip .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 32px; padding-block: 18px; font-size: 14.5px; color: var(--ink-2); }
.strip b { color: var(--muted); font-weight: 500; margin-right: 10px; }
.strip span.sep { color: var(--line-strong); margin: 0 8px; }
.strip .container > span { display: inline-flex; flex-wrap: wrap; align-items: baseline; row-gap: 4px; white-space: nowrap; }
.proof { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); overflow: hidden; }
.proof div { padding: 22px 20px; display: grid; gap: 4px; align-content: start; border-left: 1px solid var(--line); }
.proof div:first-child { border-left: 0; }
.proof b { font-size: 34px; font-weight: 600; letter-spacing: -0.02em; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.proof span { font-size: 14px; color: var(--ink-2); line-height: 1.4; }
@media (max-width: 860px) { .proof { grid-template-columns: repeat(2, minmax(0, 1fr)); } .proof div { border-left: 0; border-top: 1px solid var(--line); } .proof div:nth-child(-n+2) { border-top: 0; } .proof div:nth-child(even) { border-left: 1px solid var(--line); } .proof div:last-child { grid-column: 1 / -1; border-left: 0; } }
.divisions { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 18px; }
.division { position: relative; border-radius: 10px; padding: 26px; display: grid; gap: 10px; align-content: start; border: 1px solid var(--line); background: var(--surface); }
.division.main { background: var(--accent); border-color: var(--accent); color: #fff; }
.division.main p, .division.main li { color: rgba(255, 255, 255, .85); }
.division.soon { border-style: dashed; background: transparent; }
.division h3 { margin: 0; font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
.division p { margin: 0; color: var(--ink-2); line-height: 1.6; font-size: 15px; }
.division ul { margin: 2px 0 0; padding-left: 18px; display: grid; gap: 4px; font-size: 14.5px; color: var(--ink-2); }
.division .pill { justify-self: start; font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 6px; background: var(--teal-soft); color: var(--teal); }
.division.main .pill { background: rgba(255, 255, 255, .16); color: #fff; }
.division.soon .pill { background: var(--plan-soft); color: var(--plan-ink); }
.division a.more { margin-top: auto; padding-top: 6px; font-weight: 600; font-size: 15px; color: inherit; }
.division.main a.more { color: #fff; }
@media (max-width: 960px) { .divisions { grid-template-columns: minmax(0, 1fr); } }
.stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; counter-reset: stg; }
.stages > li { padding: 20px 18px 6px 0; border-top: 2px solid var(--accent); display: grid; gap: 8px; align-content: start; }
.stages > li + li { padding-left: 18px; border-left: 1px solid var(--line); }
.stages h3 { margin: 0; font-size: 17px; font-weight: 600; }
.stages h3 small { display: block; font-size: 12.5px; font-weight: 600; color: var(--accent); margin-bottom: 4px; }
.stages ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 14px; color: var(--ink-2); }
.stages ul li { display: flex; gap: 8px; align-items: baseline; line-height: 1.4; }
.dot { flex: none; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--line-strong); transform: translateY(-1px); }
.dot.on { background: var(--good); border-color: var(--good); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 18px 0 0; font-size: 13.5px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
@media (max-width: 1000px) { .stages { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; } .stages > li + li { padding-left: 0; border-left: 0; } .stages > li { padding-bottom: 18px; } }
@media (max-width: 520px) { .stages { grid-template-columns: minmax(0, 1fr); } }
.samples { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.sample { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.sample img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.sample figcaption { padding: 18px 20px 20px; display: grid; gap: 10px; }
.sample h3 { margin: 0; font-size: 17px; font-weight: 600; }
.spec { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 5px 14px; font-size: 14px; }
.spec dt { color: var(--muted); } .spec dd { margin: 0; color: var(--ink); }
.sample .tool-link { position: static; }
@media (max-width: 960px) { .samples { grid-template-columns: minmax(0, 1fr); max-width: 560px; } }
.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.compare { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.compare th, .compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.5; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare thead th { font-size: 13.5px; color: var(--muted); font-weight: 600; background: var(--surface-2); }
.compare tbody th { font-weight: 600; color: var(--ink); width: 18%; }
.compare td:last-child { color: var(--ink); font-weight: 500; }
.compare td:nth-child(2) { color: var(--muted); }
.compare thead th:last-child { color: var(--accent); }
.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.pillars h3 { margin: 0 0 6px; font-size: 17px; font-weight: 600; padding-top: 14px; border-top: 2px solid var(--teal); }
.pillars p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.6; }
@media (max-width: 960px) { .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .pillars { grid-template-columns: minmax(0, 1fr); } }
.integrity { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 32px; align-items: start; margin-top: 44px; padding: 28px; border-radius: 10px; background: var(--accent-soft); }
.integrity h3 { margin: 0 0 8px; font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.integrity p { margin: 0; color: var(--ink-2); line-height: 1.6; }
.integrity ol { margin: 0; padding-left: 20px; display: grid; gap: 10px; color: var(--ink-2); line-height: 1.55; }
.integrity ol b { color: var(--ink); }
@media (max-width: 860px) { .integrity { grid-template-columns: minmax(0, 1fr); padding: 22px; } }
.packs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 14px; padding-top: 12px; }
.pack { position: relative; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 20px; display: grid; gap: 6px; align-content: start; }
.pack.pop { border: 2px solid var(--accent); padding: 19px; }
.pack h3 { margin: 0; font-size: 15.5px; font-weight: 600; color: var(--ink-2); }
.pack .price { font-size: 30px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.pack .per { font-size: 13.5px; color: var(--muted); }
.pack p { margin: 4px 0 0; font-size: 14px; color: var(--ink-2); }
.pack .tag-pop { position: absolute; top: -11px; left: 18px; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: var(--accent); color: var(--accent-ink); }
@media (max-width: 960px) { .packs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .packs { grid-template-columns: minmax(0, 1fr); } }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.split > div { border-radius: 10px; padding: 28px; display: grid; gap: 10px; align-content: start; border: 1px solid var(--line); background: var(--surface); }
.split h2 { font-size: 24px !important; }
.split p { margin: 0; color: var(--ink-2); line-height: 1.6; }
.split .btn { justify-self: start; margin-top: 6px; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }
.cta-final { text-align: center; display: grid; justify-items: center; gap: 14px; padding-block: 72px; }
.cta-final h2 { margin: 0; font-size: clamp(28px, 3.4vw, 40px) !important; letter-spacing: -0.02em; }
.cta-final p { margin: 0; color: var(--ink-2); font-size: 17px; }

/* ---------- page heads (services, divisions, examples) ---------- */
.page-head { padding-block: 56px 32px; display: grid; gap: 14px; max-width: 820px; }
.page-head h1 { margin: 0; font-size: clamp(32px, 4.2vw, 46px); font-weight: 600; line-height: 1.1; letter-spacing: -0.025em; }
.page-head .lead { font-size: 18.5px; }
.badge-soon { justify-self: start; font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 6px; background: var(--plan-soft); color: var(--plan-ink); }
.stage-nav { position: sticky; top: var(--hd-h); z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.stage-nav .container { display: flex; gap: 4px 22px; overflow-x: auto; scrollbar-width: none; font-size: 14.5px; }
.stage-nav a { padding: 12px 0; color: var(--ink-2); text-decoration: none; white-space: nowrap; font-weight: 500; }
.stage-nav a:hover { color: var(--accent); }
@media (max-width: 1100px) { .stage-nav { top: calc(var(--hd-h) + 46px); } }
.stage-sec { padding-block: 44px 8px; scroll-margin-top: calc(var(--hd-h) + 60px); }
.stage-sec > header { display: grid; gap: 6px; margin-bottom: 20px; max-width: 700px; }
.stage-sec h2 { margin: 0; font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.stage-sec > header p { margin: 0; color: var(--ink-2); }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 16px; }
.svc { position: relative; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.svc dl { flex: 1; align-content: start; }
.svc-links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: auto; }
.svc-links .tool-link { margin-top: 0; }
.svc.planned { background: transparent; border-style: dashed; }
.svc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.svc-top .status { flex-shrink: 0; margin-top: 1px; }
.svc h3 { margin: 0; font-size: 17.5px; font-weight: 600; }
.svc dl { margin: 2px 0 0; display: grid; gap: 6px; font-size: 14.5px; line-height: 1.5; }
.svc dt { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.svc dd { margin: 0 0 4px; color: var(--ink-2); }
.svc .tool-link { position: static; }
.svc .tool-link::after { display: none; }
.svc .notify-link { align-self: flex-start; margin-top: auto; font-size: 14px; font-weight: 500; }
.status.planned2 { background: var(--plan-soft); color: var(--plan-ink); }
.status.inside { background: var(--accent-soft); color: var(--accent); }

/* ---------- coming-soon pages ---------- */
.soon-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: start; padding-bottom: 72px; }
.soon-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.soon-list li { display: grid; gap: 4px; padding-left: 18px; border-left: 2px solid var(--accent); }
.soon-list b { font-size: 16.5px; } .soon-list span { color: var(--ink-2); line-height: 1.55; font-size: 15px; }
.form-card { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 26px; display: grid; gap: 12px; box-shadow: var(--shadow); }
.form-card h2 { margin: 0; font-size: 20px; font-weight: 600; }
.form-card > p { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }
.fld { display: grid; gap: 5px; }
.fld label { font-size: 14px; font-weight: 500; }
.fld label small { color: var(--muted); font-weight: 400; }
.fld input, .fld select, .fld textarea { width: 100%; min-height: 46px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; font-size: 15px; }
.fld textarea { min-height: 140px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.fld-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
@media (max-width: 520px) { .fld-row { grid-template-columns: minmax(0, 1fr); } }
.form-ok { margin: 0; padding: 12px 14px; border-radius: 10px; background: var(--good-soft); color: var(--good); font-weight: 500; }
.form-err { margin: 0; color: var(--bad); font-size: 14px; }
.form-ok:empty, .form-err:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.note-box { margin-top: 8px; padding: 14px 16px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); font-size: 14px; line-height: 1.55; }
@media (max-width: 900px) { .soon-grid { grid-template-columns: minmax(0, 1fr); } }

/* contact page */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 40px; align-items: start; padding-bottom: 72px; }
.contact-side { display: grid; gap: 22px; }
.contact-side h2 { margin: 0 0 6px; font-size: 18px; font-weight: 600; }
.contact-side p { margin: 0; color: var(--ink-2); line-height: 1.55; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- literature finder ---------- */
.lit-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 32px; align-items: start; }
.lit-side h2 { margin: 0 0 10px; font-size: 18px; font-weight: 600; }
.lit-side ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--ink-2); line-height: 1.55; font-size: 15px; }
.lit-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.lit-steps li { display: flex; gap: 8px; align-items: center; color: var(--ink-2); }
.lit-steps li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--accent); }
.lit-steps li.is-done::before { background: var(--good); border-color: var(--good); }
.lit-steps li.is-error::before { background: var(--bad); border-color: var(--bad); }
.lit-out { padding-block: 32px 72px; }
.lit-head { position: sticky; top: var(--hd-h); z-index: 5; display: grid; gap: 12px; padding: 16px 0; background: var(--bg); border-bottom: 1px solid var(--line); }
.lit-head p { margin: 0; color: var(--ink-2); }
.lit-tools { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.lit-tools select, .lit-tools input[type=search] { min-height: 40px; border: 1px solid var(--line-strong); border-radius: 9px; padding: 0 10px; background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; }
.lit-list { margin: 16px 0 0; padding-left: 26px; display: grid; gap: 14px; }
.lit-list li { padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.lit-ref { font-size: 15px; line-height: 1.5; color: var(--ink); }
.lit-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin-top: 6px; font-size: 13px; color: var(--muted); }
.lit-meta .chip { font-size: 12px; }
.lit-list details summary { cursor: pointer; font-size: 13.5px; color: var(--accent); margin-top: 6px; }
.lit-list details p { margin: 8px 0 0; font-size: 14px; color: var(--ink-2); line-height: 1.55; }
@media (max-width: 900px) { .lit-grid { grid-template-columns: minmax(0, 1fr); } .lit-head { position: static; } }

/* ---------- sample outputs page ---------- */
.ex-list { display: grid; gap: 40px; }
.ex-row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 36px; align-items: center; }
.ex-row:nth-of-type(even) img { order: 2; }
.ex-row img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; border-radius: 10px; border: 1px solid var(--line); box-shadow: var(--shadow-lg); background: var(--surface-2); }
.ex-copy { display: grid; gap: 14px; }
.ex-copy h2 { margin: 0; font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.ex-copy p { margin: 0; color: var(--ink-2); line-height: 1.6; }
@media (max-width: 900px) { .ex-row { grid-template-columns: minmax(0, 1fr); gap: 18px; } .ex-row:nth-of-type(even) img { order: 0; } }
.container.page-head { max-width: var(--container, 1200px); }
.container.page-head > * { max-width: 820px; }
.lit-grid { padding-bottom: 72px; }
.lit-out:not([hidden]) + * { margin-top: 0; }
.mega { border-top: 1px solid var(--line); }
@media (max-width: 560px) { .mega-col + .mega-col h2, .mega-cta + .mega-col h2 { margin-top: 6px; } }
.ex-row img, .sample img { height: auto; }

/* ---------- home: quick-start panel (replaces the example worksheet) ---------- */
.quick { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lg); padding: 22px; display: grid; gap: 8px; }
.quick h2 { margin: 0 0 6px; font-size: 17px; font-weight: 600; color: var(--ink); }
.qa-tile { display: flex; align-items: center; gap: 14px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); background: var(--surface); transition: border-color .15s, background .15s, transform .15s; }
.qa-tile:hover, .qa-tile:focus-visible { border-color: var(--accent); background: var(--accent-soft); outline: none; transform: translateX(2px); }
.qa-ic { flex: none; width: 42px; height: 42px; border-radius: 11px; background: var(--accent); display: grid; place-items: center; }
.qa-ic svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.qa-txt { display: grid; gap: 1px; min-width: 0; flex: 1; }
.qa-txt b { font-size: 15.5px; font-weight: 600; }
.qa-txt b em { font-style: normal; font-size: 11.5px; font-weight: 600; padding: 2px 7px; border-radius: 6px; background: var(--teal-soft); color: var(--teal); margin-left: 6px; vertical-align: 2px; }
.qa-txt small { font-size: 13.5px; color: var(--muted); }
.qa-go { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.qa-tile:hover .qa-go { stroke: var(--accent); }
.quick-foot { margin: 6px 0 0; font-size: 13.5px; color: var(--muted); text-align: center; }

/* ---------- home: centered hero (no side panel) ---------- */
.hero.hero-center { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; padding-block: 88px 72px; }
.hero-center .hero-copy { max-width: 820px; justify-items: center; }
.hero-center h1 { max-width: 16em; font-size: clamp(36px, 5.4vw, 60px); }
.hero-center .lead { max-width: 40em; }
.hero-center .cta-row, .hero-center .hero-trust { justify-content: center; }
@media (max-width: 640px) { .hero.hero-center { padding-block: 48px 40px; } }
.lit-lab { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); font-weight: 500; }
.lit-hint { margin: 0; font-size: 13.5px; color: var(--muted); }
.lit-hint:empty { display: none; }
.lit-meta .linkbtn { font-size: 13px; }
.lit-meta .linkbtn { border: 0; background: none; padding: 0; font: inherit; font-size: 13px; color: var(--accent); cursor: pointer; font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
.lit-list.plain { list-style: none; padding-left: 0; }

.lit-few { display: block; margin-top: 6px; color: var(--warn); font-size: 14px; }

/* literature finder: locked list */
.lit-open { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 99px; background: var(--good-soft); color: var(--good); font-size: 12.5px; font-weight: 600; }
.lit-lock { position: relative; margin-top: 14px; }
.lit-ghost { list-style: none; margin: 0; padding: 0 0 0 26px; display: grid; gap: 14px; }
.lit-list.plain + .lit-lock .lit-ghost { padding-left: 0; }
.lit-ghost li { padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); display: grid; gap: 8px; }
.lit-ghost span { display: block; height: 10px; border-radius: 6px; background: var(--line); }
.lit-ghost span:nth-child(1) { width: 92%; } .lit-ghost span:nth-child(2) { width: 78%; } .lit-ghost span:nth-child(3) { width: 40%; }
.lit-ghost { -webkit-mask-image: linear-gradient(to bottom, #000 0, transparent 85%); mask-image: linear-gradient(to bottom, #000 0, transparent 85%); }
.lit-lock-card { position: relative; z-index: 1; max-width: 560px; margin: -120px auto 0; padding: 26px 28px; text-align: center; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; box-shadow: var(--shadow-lg); }
.lit-lock-card h2 { margin: 4px 0 12px; font-size: 21px; }
.lit-lock-more { margin: 0; color: var(--accent-2); font-weight: 600; }
.lit-lock-card .ticks { list-style: none; margin: 0 auto 18px; padding: 0; text-align: left; display: inline-grid; gap: 7px; font-size: 14.5px; color: var(--ink-2); }
.lit-lock-card .ticks li { padding-left: 24px; position: relative; }
.lit-lock-card .ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--good); font-weight: 700; }
.lit-lock-price { margin: 10px 0 0; font-size: 14px; color: var(--ink-2); }
.lit-lock-small { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); }
.lit-lock.pulse .lit-lock-card { animation: litPulse 1.2s ease 2; }
@keyframes litPulse { 0%, 100% { box-shadow: var(--shadow-lg); } 50% { box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow-lg); } }
.btn.locked { opacity: .62; }
.btn.locked::before { content: "🔒 "; font-size: 12px; }
@media (max-width: 640px) { .lit-lock-card { margin-top: -80px; padding: 20px 16px; } }

/* ==================== Design v2: the same look as the owner dashboard ====================
   Nunito Sans · blue for actions · navy headings · orange for small highlights · white cards with soft shadows */
body { font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
h1, h2, h3, h4 { font-family: var(--f-display); color: var(--navy); letter-spacing: -.01em; }
h1 { font-weight: 800; }
h2 { font-weight: 800; }
h3 { font-weight: 700; }
::selection { background: #CFE0FC; }

/* header: white bar, quiet links, blue line under the open page */
.site-header { background: #fff; border-bottom: 1px solid #ECEFF5; box-shadow: none; }
.brand-name { color: var(--navy); font-weight: 800; letter-spacing: -.01em; }
.site-nav a { color: #5A6075; font-weight: 600; font-size: 15px; }
.site-nav a:hover { color: var(--accent); }
.site-nav a[aria-current="page"] { color: var(--accent); font-weight: 700; border-bottom-color: var(--accent); }
.hd-ask { border: 0; border-radius: 99px; background: #F2F6FD; color: var(--accent); }
.hd-ask:hover, .hd-ask:focus-visible { background: #E6EEFC; }
.hd-pill { border: 0; border-radius: 99px; background: #F2F6FD; color: #3D4258; font-weight: 600; }
.hd-pill:hover, .hd-pill:focus-visible { background: #E6EEFC; color: var(--accent); }
.hd-user { background: transparent; color: var(--accent); padding: 0 12px 0 4px; border: 0; }
.hd-user:hover, .hd-user:focus-visible { background: #F2F6FD; filter: none; }
.hd-user .am-av { background: var(--navy); color: #fff; }
.hd-demo { background: var(--accent); color: #fff; }
.hd-demo svg { color: #fff; }
.hd-demo svg rect { fill: rgba(255, 255, 255, .22); }
.hd-demo:hover, .hd-demo:focus-visible { background: var(--accent-2); color: #fff; }

/* buttons: 4px corners like the admin Sign in button */
.btn { border-radius: 4px; font-weight: 700; border-color: var(--line-strong); color: #33374A; transition: background .15s, border-color .15s, color .15s, box-shadow .15s; }
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 6px 16px rgba(31, 91, 216, .22); }
.btn.primary:hover { background: var(--accent-2); border-color: var(--accent-2); color: #fff; }
.btn-md, .btn-lg { border-radius: 4px; }
.btn-lg { min-height: 52px; }
.btn:focus-visible { outline: 3px solid rgba(31, 91, 216, .35); outline-offset: 2px; }

/* fields: light grey box, blue focus ring (same as the admin password box) */
main input[type="text"], main input[type="email"], main input[type="search"], main input[type="number"], main input[type="tel"], main input[type="url"], main input[type="date"], main input[type="password"], main select, main textarea,
dialog input[type="text"], dialog input[type="email"], dialog input[type="tel"], dialog select, dialog textarea {
  border: 1px solid #D3D8E2; border-radius: 4px; background-color: #F8F9FB; color: var(--ink); transition: border-color .15s, box-shadow .15s, background-color .15s; }
main input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):hover, main select:hover, main textarea:hover { border-color: #BCC3D2; }
main input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):focus, main select:focus, main textarea:focus,
dialog input:focus, dialog select:focus, dialog textarea:focus { outline: none; background-color: #fff; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(31, 91, 216, .15); }
main input::placeholder, main textarea::placeholder { color: #8D93A5; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); }

/* small highlights in the logo orange */
.eyebrow, .kicker { color: var(--brand-2); font-weight: 800; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; }
.chip { border-radius: 99px; font-weight: 600; }
.chip.accent { background: var(--accent-soft); border-color: transparent; color: var(--accent); }

/* footer */

/* dialogs */
dialog { border-radius: 10px; }

/* ==================== Student dashboard layout (tool pages: body.app) ====================
   White header across the top, a white tool menu on the left (thin outline icons, blue line on the open tool),
   the page itself on the right, the footer across the bottom. Same layout as the owner dashboard. */
body.app { --side-w: 248px; display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; align-items: start;
  background: linear-gradient(90deg, #fff 0 var(--side-w), var(--bg) var(--side-w)); }
body.app > .site-header { grid-column: 1 / -1; grid-row: 1; position: sticky; top: 0; z-index: 40; }
body.app > .app-side { grid-column: 1; grid-row: 2; }
body.app > main { grid-column: 2; grid-row: 2; width: 100%; min-width: 0; }
body.app > .site-footer { grid-column: 1 / -1; grid-row: 3; }
body.app > :not(.site-header):not(.app-side):not(main):not(.site-footer) { grid-column: 1 / -1; }
body.app .site-header .container { max-width: none; padding-left: 0; padding-right: 32px; }
body.app .site-header .brand { width: var(--side-w); flex: none; padding-left: 32px; }
body.app .site-nav { display: none; }
body.app .hd-tools { flex: 1; margin-left: 0; }
/* the Ask button becomes a search bar, like the admin header */
body.app .hd-ask { width: auto; flex: 0 1 440px; margin-right: auto; justify-content: flex-start; gap: 10px; padding: 0 18px 0 12px; border-radius: 99px; background: #F2F6FD; color: var(--accent); }
body.app .hd-ask::after { content: "Search tools, help and demos"; font-size: 14px; font-weight: 400; color: #8D93A5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.app .hd-ask svg { width: 22px; height: 22px; flex: none; }

.app-side { position: sticky; top: var(--hd-h); height: calc(100vh - var(--hd-h)); overflow-y: auto; display: flex; flex-direction: column; padding: 28px 0 20px; background: #fff; box-shadow: 1px 0 0 #F0F2F7; scrollbar-width: thin; }
.as-nav { display: grid; gap: 2px; }
.as-sec { margin: 14px 24px 6px 40px; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #9AA0B3; }
.app-side a, .as-btn { position: relative; display: flex; align-items: center; gap: 16px; padding: 10px 20px 10px 40px; border: 0; background: none; font: inherit; font-size: 14.5px; font-weight: 500; color: #6B7080; text-decoration: none; cursor: pointer; text-align: left; width: 100%; }
.app-side svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.app-side a:hover, .as-btn:hover { color: var(--accent); }
.app-side a[aria-current="page"] { color: var(--accent); font-weight: 700; }
.app-side a[aria-current="page"]::after { content: ""; position: absolute; right: 0; top: 4px; bottom: 4px; width: 2px; border-radius: 2px; background: var(--accent); }
.app-side a:focus-visible, .as-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }
.as-foot { margin-top: auto; padding-top: 16px; display: grid; gap: 2px; }
.as-btn[data-state="out"]:hover { color: #C62828; }
.as-btn[disabled] { opacity: .6; cursor: wait; }

@media (max-width: 1100px) { body.app { --side-w: 220px; } .app-side a, .as-btn { padding-left: 28px; gap: 12px; } .as-sec { margin-left: 28px; } body.app .site-header .brand { padding-left: 24px; } }
@media (max-width: 860px) {
  body.app { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr) auto; background: var(--bg); }
  body.app > .app-side { grid-column: 1; grid-row: 2; }
  body.app > main { grid-column: 1; grid-row: 3; }
  body.app > .site-footer { grid-row: 4; }
  body.app .site-header .container { padding: 0 16px; }
  body.app .site-header .brand { width: auto; padding-left: 0; }
  body.app .hd-ask { flex: 0 0 40px; width: 40px; padding: 0; justify-content: center; margin-right: 0; margin-left: auto; }
  body.app .hd-ask::after { display: none; }
  .app-side { position: static; height: auto; flex-direction: row; padding: 0; overflow-x: auto; overflow-y: hidden; box-shadow: 0 1px 0 #ECEFF5; scrollbar-width: none; }
  .app-side::-webkit-scrollbar { display: none; }
  .as-nav, .as-foot { display: flex; gap: 0; margin: 0; padding: 0; }
  .as-sec { display: none; }
  .app-side a, .as-btn { width: auto; white-space: nowrap; padding: 13px 14px; gap: 8px; font-size: 14px; }
  .app-side svg { width: 18px; height: 18px; }
  .app-side a[aria-current="page"]::after { left: 10px; right: 10px; top: auto; bottom: 0; width: auto; height: 2px; }
}
body.app .hd-ask { display: inline-flex; align-items: center; height: 42px; }
.app-side a, .as-btn { padding: 10px 14px 10px 28px; gap: 14px; white-space: nowrap; }
.as-sec { margin-left: 28px; }
@media (max-width: 1100px) { .app-side a, .as-btn { padding-left: 20px; gap: 12px; font-size: 14px; } .as-sec { margin-left: 20px; } }
@media (max-width: 860px) { .app-side a, .as-btn { padding: 13px 14px; gap: 8px; } }

/* ==================== line drawings (same style as the admin sign-in scene) ==================== */
.hero-band { position: relative; height: clamp(170px, 22vw, 300px); overflow: hidden; background: linear-gradient(180deg, var(--bg) 0%, #EEF3FD 100%); margin-top: -8px; }
.hero-scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-center { padding-bottom: 28px; }
.page-head.has-art { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); align-items: center; gap: 24px 48px; }
.ph-copy { min-width: 0; }
.ph-art { display: block; width: 100%; height: auto; max-height: 300px; }
.nf-art { max-width: 340px; margin: 8px 0 4px; }
.nf-art .ph-art { max-height: 240px; }
@media (max-width: 900px) {
  .page-head.has-art { grid-template-columns: minmax(0, 1fr); }
  .page-head.has-art .ph-art { max-width: 360px; max-height: 220px; order: -1; }
}
@media (max-width: 600px) { .hero-band { height: 150px; } }
.hero-band { height: clamp(150px, 27.5vw, 420px); }
.page-head.has-art h1 { margin-bottom: 14px; }
/* the sign-in card that stands in for a page's content sits where the page would be */
body.app > .wall { grid-column: 2; grid-row: 2; }
@media (max-width: 860px) { body.app > .wall { grid-column: 1; grid-row: 3; } }
/* coming-soon pages: wider text column beside the drawing */
main.container .page-head.has-art { grid-template-columns: minmax(0, 1.5fr) minmax(0, 320px); }

/* ==================== light footer (all pages) ==================== */
.site-footer { background: #fff; color: var(--ink-2); border-top: 1px solid #E6EAF2; }
.footer-brand { color: var(--navy); font-weight: 800; font-size: 19px; }
.footer-col h2 { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); margin-bottom: 6px; }
.footer-col a { color: #5A6075; font-size: 14.5px; }
.footer-col small { color: #9AA0B3; opacity: 1; }
.footer-about p, .footer-legal, .copyright { color: #6B7080; }

/* student pages: the footer sits beside the menu (in the page column), so it never runs under the menu */
body.app > .site-footer { grid-column: 2; grid-row: 3; border-top: 1px solid #ECEFF5; }
body.app .site-footer .container { max-width: none; padding-inline: 40px; }
@media (max-width: 860px) { body.app > .site-footer { grid-column: 1; grid-row: 4; } body.app .site-footer .container { padding-inline: 16px; } }

/* student menu: fits the screen without its own scroll bar */
.app-side { padding: 18px 0 14px; }
.app-side a, .as-btn { padding-top: 8px; padding-bottom: 8px; font-size: 14px; }
.as-sec { margin-top: 10px; margin-bottom: 4px; }
.as-foot { padding-top: 8px; }
@media (max-height: 820px) and (min-width: 861px) { .app-side a, .as-btn { padding-top: 6px; padding-bottom: 6px; } .app-side svg { width: 18px; height: 18px; } }
@media (max-height: 700px) and (min-width: 861px) { .as-sec { display: none; } .app-side a, .as-btn { padding-top: 4.5px; padding-bottom: 4.5px; font-size: 13.5px; } }

/* ==================== Professional text scale (all pages) ====================
   Titles navy and bold · body text soft dark grey · lead text a little larger and lighter · small print grey */
main { color: var(--ink-2); }
main p, main li { line-height: 1.65; }
.hero h1, .hero-center h1 { font-weight: 800; font-size: clamp(34px, 4.2vw, 54px); line-height: 1.08; letter-spacing: -0.025em; color: var(--navy); }
.page-head h1, .ai-intro h1, .prose h1 { font-weight: 800; font-size: clamp(28px, 3.2vw, 42px); line-height: 1.12; letter-spacing: -0.02em; color: var(--navy); }
.section-head h2, .section h2, .band h2 { font-weight: 800; font-size: clamp(25px, 2.5vw, 34px); line-height: 1.18; letter-spacing: -0.015em; color: var(--navy); }
main h3 { font-size: 19px; font-weight: 700; line-height: 1.3; color: var(--navy); }
.lead, .page-head .lead, .hero .lead { font-size: 18px; line-height: 1.65; color: #5A6075; }
.section-head p { font-size: 17px; color: #5A6075; }
.small-print, main small { color: #6B7080; }
.section-head { gap: 12px; }
.section-head .eyebrow { margin-bottom: -2px; }

/* ==================== live clock in the header (like the owner dashboard) ==================== */
.hd-clock { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 99px; background: #F2F6FD; font-size: 13.5px; color: #4A4F63; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hd-clock svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; opacity: .75; flex: none; }
.hd-clock-d { color: #8A90A2; }
.hd-clock-d::after { content: "·"; margin-left: 8px; color: #C5CAD6; }
.hd-clock-t { font-weight: 700; min-width: 8.6ch; }
/* public pages have the main menu in the header too: show the clock only where there is room */
body:not(.app) .hd-clock-d { display: none; }
@media (max-width: 1600px) { body:not(.app) .hd-clock { display: none; } }
@media (max-width: 1180px) { body.app .hd-clock-d { display: none; } }
@media (max-width: 860px) { body.app .hd-clock { display: none; } }

/* ==================== Home: split hero with an example result card ==================== */
.hero.hero-split { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; padding-block: 72px 48px; }
.hero-split .hero-copy { gap: 22px; }
.hero-split h1 { max-width: 13em; }
.hero-split .lead { max-width: 34em; }
.hero-split .hero-trust { flex-direction: column; gap: 8px; }
.hero-preview { position: relative; padding: 24px 20px 28px; }
.hp-card { margin: 0; background: #fff; border-radius: 10px; padding: 22px 24px 20px; box-shadow: 0 2px 4px rgba(26, 29, 46, .04), 0 24px 56px rgba(26, 29, 46, .12); display: grid; gap: 18px; }
.hp-top { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid #EEF1F6; }
.hp-ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); flex: none; }
.hp-ic svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; }
.hp-title { display: grid; gap: 1px; font-weight: 800; color: var(--navy); font-size: 15.5px; flex: 1; min-width: 0; }
.hp-title small { font-weight: 600; font-size: 12px; color: #8A90A2; }
.hp-tag { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border: 1.5px solid #0E9384; border-radius: 4px; color: #0E9384; font-size: 11.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.hp-tag svg, .hp-steps svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.hp-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hp-kpis div { display: grid; gap: 2px; padding: 0 14px; border-left: 1px solid #EEF1F6; }
.hp-kpis div:first-child { padding-left: 0; border-left: 0; }
.hp-kpis b { font-size: 30px; font-weight: 800; color: var(--navy); letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.hp-kpis div:first-child b { color: var(--accent); }
.hp-kpis span { font-size: 12.5px; color: #6B7080; }
.hp-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.hp-steps li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.45; color: #5A6075; }
.hp-steps li svg { width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: var(--accent); color: #fff; stroke-width: 3.4; margin-top: 1px; }
.hp-steps b { color: var(--ink); font-weight: 700; }
.hp-prog { display: grid; gap: 6px; font-size: 12px; font-weight: 700; color: var(--accent); }
.hp-prog i { display: block; height: 7px; border-radius: 99px; background: #DCE7FB; overflow: hidden; }
.hp-prog s { display: block; height: 100%; width: 100%; background: var(--accent); border-radius: 99px; text-decoration: none; }
.hp-chip { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; background: #fff; border-radius: 8px; font-size: 13px; color: #4A4F63; box-shadow: 0 10px 28px rgba(26, 29, 46, .12); white-space: nowrap; }
.hp-chip b { color: var(--brand-2); font-weight: 800; }
.hp-chip-a { top: 0; right: 0; }
.hp-chip-b { bottom: 0; left: -8px; }
.hp-dot { width: 8px; height: 8px; border-radius: 50%; background: #0E9384; box-shadow: 0 0 0 3px #D5F0EC; }
@media (max-width: 960px) {
  .hero.hero-split { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-block: 44px 28px; }
  .hero-preview { max-width: 520px; }
}
@media (max-width: 520px) { .hp-card { padding: 18px 16px; } .hp-kpis b { font-size: 24px; } .hp-kpis div { padding: 0 8px; } .hp-chip { display: none; } .hero-preview { padding: 0; } }
.hero-band { height: clamp(140px, 18vw, 260px); }

/* ==================== light cards instead of solid blue blocks ==================== */
.division { background: #fff; border: 1px solid #E6EAF2; box-shadow: var(--shadow); }
.division.main { background: #fff; border: 1px solid #E6EAF2; border-top: 4px solid var(--accent); color: var(--ink-2); }
.division.main p, .division.main li { color: #5A6075; }
.division.main .pill { background: #E6F6F4; color: #0E7C6F; }
.division.main a.more { color: var(--accent); }
.division.soon { background: #fff; border-style: solid; box-shadow: none; }
.division h3 { color: var(--navy); font-weight: 800; }
.division a.more { color: var(--accent); text-decoration: none; }
.division a.more:hover { text-decoration: underline; }
.mega-cta { background: var(--accent-soft); color: var(--navy); }
.mega-cta b { color: var(--navy); font-weight: 800; }
.mega-cta p { color: #5A6075; }
.mega-cta .btn { background: var(--accent); color: #fff; border-color: var(--accent); }
.tool-card.is-live .tool-icon { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.qa-ic { background: var(--accent-soft); }
.qa-ic svg { stroke: var(--accent); }

/* closing call to action: a soft blue panel */
section[aria-labelledby="final-title"] { background: linear-gradient(180deg, #fff 0%, #EEF3FD 100%); }
/* sidebar rows: compact enough that the whole menu fits a laptop screen */
.app-side a, .as-btn { line-height: 20px; padding-top: 8px; padding-bottom: 8px; }
.as-sec { margin-top: 12px; margin-bottom: 4px; line-height: 16px; }
@media (max-height: 860px) and (min-width: 861px) { .app-side { padding-top: 12px; } .app-side a, .as-btn { padding-top: 6px; padding-bottom: 6px; } .as-sec { margin-top: 8px; } }
@media (max-height: 790px) and (min-width: 861px) { .as-sec { display: none; } .app-side a, .as-btn { padding-top: 4px; padding-bottom: 4px; font-size: 13.5px; } .app-side svg { width: 17px; height: 17px; } }
/* home in the dashboard layout: comfortable side margins and a headline sized for the narrower area */
body.app main .container { padding-inline: clamp(16px, 3.2vw, 48px); }
body.app .hero-split h1 { font-size: clamp(32px, 3.4vw, 48px); max-width: 14em; }
body.app .hero.hero-split { gap: 40px; padding-block: 56px 40px; }
body.app .hp-chip-a { right: 4px; }
body.app .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1360px) { body.app .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { body.app .steps { grid-template-columns: minmax(0, 1fr); } }

/* ==================== sidebar: Medical Writing opens its services underneath ==================== */
.as-grp { position: relative; display: flex; align-items: center; gap: 14px; width: 100%; padding: 8px 14px 8px 28px; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 600; line-height: 20px; color: #4A4F63; cursor: pointer; text-align: left; white-space: nowrap; }
.as-grp:hover { color: var(--accent); }
.as-grp:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }
.as-grp svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.as-grp .as-chev { width: 16px; height: 16px; margin-left: auto; stroke-width: 2; color: #9AA0B3; transition: transform .2s; }
.as-grp[aria-expanded="true"] .as-chev { transform: rotate(90deg); color: var(--accent); }
.as-group.has-cur .as-grp, .as-grp[aria-expanded="true"] { color: var(--navy); }
.as-sub { position: relative; display: grid; gap: 0; margin: 2px 0 4px; }
.as-sub::before { content: ""; position: absolute; left: 37px; top: 4px; bottom: 4px; width: 1px; background: #E3E8F3; }
.app-side .as-sub a { padding: 6px 14px 6px 50px; font-size: 13.5px; gap: 12px; }
.app-side .as-sub svg { width: 17px; height: 17px; }
.app-side .as-sub a[aria-current="page"] { background: var(--accent-soft); }
.as-soon { margin-left: auto; padding: 1px 7px; border-radius: 99px; background: #F1F3F8; color: #8A90A2; font-size: 10.5px; font-weight: 700; font-style: normal; letter-spacing: .04em; text-transform: uppercase; }
.as-line { display: block; height: 1px; margin: 8px 28px; background: #EEF1F6; }
.as-sec { display: none; }
@media (max-height: 860px) and (min-width: 861px) { .as-grp { padding-top: 6px; padding-bottom: 6px; } .app-side .as-sub a { padding-top: 4px; padding-bottom: 4px; } .as-line { margin: 5px 28px; } }
@media (max-height: 790px) and (min-width: 861px) { .as-grp { padding-top: 4px; padding-bottom: 4px; font-size: 13.5px; } .app-side .as-sub a { padding-top: 3px; padding-bottom: 3px; font-size: 13px; } }
@media (max-width: 1100px) and (min-width: 861px) { .as-grp { padding-left: 20px; gap: 12px; } .as-sub::before { left: 29px; } .app-side .as-sub a { padding-left: 42px; } .as-line { margin-inline: 20px; } }
/* phones: one scrolling row; the group's services are shown in the row directly */
@media (max-width: 860px) {
  .as-group { display: contents; }
  .as-grp, .as-line, .as-sub::before, .as-soon, .as-gift { display: none; }
  .app-side .as-sub, .app-side .as-sub[hidden] { display: contents !important; }
  .app-side .as-sub a { padding: 13px 14px; font-size: 14px; gap: 8px; }
  .app-side .as-sub a[aria-current="page"] { background: none; }
}

/* ==================== Home: refined example card and drawing band ==================== */
.hero-preview { padding: 28px 24px 30px; }
.hp-card { border: 1px solid #E9EDF5; border-radius: 12px; padding: 22px 24px; gap: 18px; box-shadow: 0 1px 2px rgba(26, 29, 46, .04), 0 18px 48px rgba(26, 29, 46, .10); }
.hp-top { padding-bottom: 16px; }
.hp-ic { border-radius: 10px; }
.hp-title { font-size: 16px; }
.hp-kpis { background: #F8FAFE; border: 1px solid #EEF1F7; border-radius: 10px; padding: 14px 0; }
.hp-kpis div { padding: 0 16px; text-align: left; }
.hp-kpis div:first-child { padding-left: 16px; }
.hp-kpis b { font-size: clamp(22px, 2.1vw, 28px); white-space: nowrap; }
.hp-kpis span { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8A90A2; white-space: nowrap; }
.hp-steps { gap: 10px; }
.hp-steps li { font-size: 14px; align-items: center; }
.hp-steps li svg { margin-top: 0; }
.hp-file { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid #EEF1F6; }
.hp-doc { width: 36px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 6px; background: #2B579A; color: #fff; font-weight: 800; font-size: 16px; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .12); }
.hp-fname { display: grid; gap: 1px; flex: 1; min-width: 0; font-size: 14px; font-weight: 700; color: var(--navy); }
.hp-fname small { font-size: 12px; font-weight: 500; color: #8A90A2; }
.hp-ready { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 99px; background: #E6F6F4; color: #0E7C6F; font-size: 12px; font-weight: 800; }
.hp-ready::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #0E9384; }
.hp-chip { border: 1px solid #EEF1F7; font-weight: 600; }
.hp-chip-a { top: 4px; right: 8px; }
.hp-chip-b { bottom: 4px; left: 4px; }
body.app .hp-chip-a { right: 8px; }
/* the drawing band fades softly at both sides and sits on a fine line */
.hero-band { background: linear-gradient(180deg, var(--bg) 0%, #EEF3FD 100%); border-bottom: 1px solid #E6EAF2; }
.hero-scene { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%); }
.hero.hero-split { padding-top: 64px; }
@media (max-width: 520px) { .hp-kpis div, .hp-kpis div:first-child { padding: 0 10px; } .hp-steps li { font-size: 13.5px; } }
.app-side a, .as-btn, .as-grp { padding-right: 22px; }
.hero-band + section { padding-top: 64px; }

/* ==================== Home: line drawing of the sample size assistant (replaces the example card) ==================== */
.hero-illus { padding: 0; display: grid; place-items: center; }
.hero-art { display: block; width: 100%; max-width: 580px; height: auto; }
@media (max-width: 960px) { .hero-illus { justify-items: start; } .hero-art { max-width: 460px; } }
@media (max-width: 960px) { .hero-band { display: none; } .hero-band + section { padding-top: 40px; } }

/* ==================== Fonts: Fraunces for the big titles, Plus Jakarta Sans for everything else ==================== */
:root { --f-ui: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --f-display: var(--f-ui);
  --f-title: "Fraunces", "Source Serif 4", Georgia, "Times New Roman", serif; }
body { font-feature-settings: normal; font-optical-sizing: auto; }
main h1, .wall-card h1, .hero h1, .hero-center h1, .page-head h1, .ai-intro h1, .prose h1, .top h1, .demo-intro h1, .buy h1, .my-head h1, .acc h1,
.section-head h2, .section h2, .band h2, #institutions h2 {
  font-family: var(--f-title); font-weight: 600; letter-spacing: -0.015em; font-optical-sizing: auto; font-variation-settings: "SOFT" 30, "WONK" 0; }
.hero h1, .hero-center h1, body.app .hero-split h1 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.08; }
main h3, .division h3 { font-family: var(--f-ui); font-weight: 650; letter-spacing: -0.005em; }
.eyebrow, .kicker { font-family: var(--f-ui); }
.brand-name, .footer-brand { font-family: var(--f-ui); font-weight: 750; letter-spacing: -0.015em; }
body main h1, body .wall-card h1, body .hero h1, body .page-head h1, body .ai-intro h1, body .prose h1, body .top h1, body .demo-intro h1, body .buy h1, body .my-head h1, body .acc h1,
body .section-head h2, body .section h2, body .band h2, body #institutions h2 { font-family: var(--f-title); font-weight: 600; }

/* ==================== Home: explainer video in a window frame ==================== */
.video-frame { margin: 0; max-width: 1080px; background: #fff; border: 2px solid var(--navy); border-radius: 10px; overflow: hidden; box-shadow: 0 2px 4px rgba(26, 29, 46, .04), 0 24px 56px rgba(26, 29, 46, .12); }
.vf-bar { display: flex; align-items: center; gap: 14px; height: 40px; padding: 0 16px; background: #EAF1FD; border-bottom: 2px solid var(--navy); }
.vf-dots { display: flex; gap: 6px; }
.vf-dots i { width: 9px; height: 9px; border-radius: 50%; background: #A8C5F2; }
.vf-dots i:first-child { background: var(--orange); }
.vf-url { flex: 0 1 360px; height: 22px; padding: 0 12px; border-radius: 99px; background: #fff; font-size: 12.5px; line-height: 22px; color: #6B7080; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.video-frame video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #F7F9FD; }
.video-frame figcaption { padding: 10px 16px; font-size: 13px; color: #6B7080; border-top: 1px solid #E6EAF2; }

/* ==================== Home: the drawing plays as part of the page (js/hero-anim.js) ==================== */
.hero-anim { padding: 0; display: grid; justify-items: center; gap: 6px; }
.ha-svg { display: block; width: 100%; max-width: 600px; height: auto; overflow: visible; transition: opacity .2s; }
#heroAnim .part, #heroAnim .person, #ha-tick, #ha-chip, #ha-mag { transform-box: fill-box; transform-origin: center; }
.ha-cap { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; min-height: 34px; font-size: 14px; }
.ha-cap.in .ha-k, .ha-cap.in .ha-t { animation: haIn .45s ease-out both; }
@keyframes haIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.ha-k { padding: 3px 9px; border-radius: 99px; background: #FDEBDD; color: var(--brand-2); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.ha-k[hidden] { display: none; }
.ha-t { font-weight: 700; color: var(--navy); }
.ha-dots { display: inline-flex; gap: 5px; margin-left: 4px; }
.ha-dots i { width: 18px; height: 4px; border-radius: 4px; background: #DCE6FB; transition: background .3s; }
.ha-dots i.on { background: var(--accent); }
@media (max-width: 960px) { .hero-anim { justify-items: start; } .ha-svg { max-width: 480px; } .ha-cap { justify-content: flex-start; } }

/* ==================== Account menu: same look as the owner dashboard ==================== */
.site-header .hd-user.am-btn { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 10px 0 4px; border: 0; border-radius: 99px; background: none; color: var(--accent); font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; filter: none; }
.site-header .hd-user.am-btn:hover, .site-header .hd-user.am-btn[aria-expanded="true"] { background: #F2F6FD; }
.site-header .hd-user.am-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.am-btn .am-av { width: 36px; height: 36px; font-size: 15px; box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #C9D9F5; }
.am-av { border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; object-fit: cover; display: grid; place-items: center; }
.am-av.big { width: 48px; height: 48px; font-size: 20px; }
.am-btn .am-txt { display: inline; font-size: 14.5px; font-weight: 600; color: var(--accent); white-space: nowrap; }
.am-btn .am-txt b { display: inline; font-weight: 700; font-size: inherit; text-transform: none; letter-spacing: 0; max-width: 120px; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
.am-chev { width: 16px; height: 16px; fill: none; stroke: #8D93A5; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.am-btn[aria-expanded="true"] .am-chev { transform: rotate(180deg); }
.am-menu { width: 270px; border: 0; border-radius: 8px; padding: 0; overflow: hidden; box-shadow: 0 2px 4px rgba(26, 29, 46, .06), 0 14px 36px rgba(26, 29, 46, .16); }
.am-head { gap: 12px; padding: 16px 16px 14px; border-bottom: 1px solid #EEF1F6; }
.am-head b { font-weight: 700; color: var(--navy); }
.am-head small { font-size: 12.5px; color: #8A90A2; max-width: 180px; }
.am-bal { padding: 10px 16px; border-bottom: 1px solid #EEF1F6; font-size: 13.5px; color: #6B7080; background: #FAFBFE; }
.am-bal b { color: var(--accent); font-size: 15px; }
.am-list { display: grid; padding: 6px; }
.am-menu .am-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 0; border-radius: 4px; background: none; font: inherit; font-size: 14.5px; color: #3D4258; text-decoration: none; }
.am-menu .am-item svg { width: 19px; height: 19px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.am-menu .am-item:hover, .am-menu .am-item:focus-visible { background: #F2F6FD; color: var(--accent); outline: none; }
.am-menu .am-item.am-out:hover, .am-menu .am-item.am-out:focus-visible { background: #FDEEEF; color: #C4271B; }
.am-sep { display: block; height: 1px; margin: 4px 6px; background: #EEF1F6; }
@media (max-width: 640px) { .am-btn .am-txt { display: none; } .site-header .hd-user.am-btn { padding: 0 6px 0 2px; } }
body:not(.app) .am-btn .am-txt { display: none; } body:not(.app) .site-header .hd-user.am-btn { padding: 0 6px 0 2px; }
body:not(.app) .hd-clock { display: none; }
.site-nav .hd-bal { display: none; } /* shown in the account menu instead */

/* ==================== tools that run in the browser: one search opens them for 24 hours ==================== */
.tp-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin: 18px 0 22px; padding: 22px 26px; background: #fff; border: 1px solid #C9D9F5; border-left: 4px solid var(--accent); border-radius: 10px; box-shadow: var(--shadow); }
.tp-card h2 { margin: 0 0 6px; font-family: var(--f-ui) !important; font-size: 19px !important; font-weight: 700 !important; color: var(--navy); }
.tp-card p { margin: 0; color: #4A4F63; font-size: 15px; max-width: 64ch; }
.tp-txt { flex: 1 1 360px; min-width: 0; }
.tp-act { display: grid; gap: 10px; justify-items: start; }
.tp-agree { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #4A4F63; }
.tp-msg { margin-top: 8px !important; font-weight: 600; }
.tp-msg.bad { color: var(--bad) !important; }
.tp-card.tp-open { padding: 12px 18px; border-left-color: #0E9384; border-color: #CDEBE6; background: #F2FBF9; box-shadow: none; justify-content: flex-start; gap: 12px; }
.tp-card.tp-open p { font-size: 14px; }
.tp-ic { width: 26px; height: 26px; border-radius: 50%; background: #0E9384; display: grid; place-items: center; flex: none; }
.tp-ic svg { width: 15px; height: 15px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
body.tp-locked #main > *:not(#tpCard):not(.top):not(.ai-intro):not(header) { opacity: .45; filter: blur(1.5px); pointer-events: none; user-select: none; }

/* ==================== Reading comfort (all pages): text justified like Word's Ctrl+J, even spacing ==================== */
main p, main li, main dd, main blockquote, main .sec-lead, main .ans-simple, main .ans-why, main .src-cite, main summary, .site-footer p, .site-footer li, dialog p, .wall-card p, .gate p, .gate li {
  text-align: justify; text-justify: inter-word; hyphens: auto; -webkit-hyphens: auto; }
main nav li, main nav p, main .crumbs, main .btn, main button, main label, main th, main td, main .tag, main .ans-fig, main .quota, main .hd-clock, main .seg label, main .opt-n, main .plan-price, main .co-row, main .sum-row, main .acc-big, main .pay-modes,
main .tbl-wrap *, main .kv dt, .site-footer nav *, .footer-legal .copyright { text-align: left; hyphens: manual; }
main .page-head p, main .ai-intro p, main .lead { max-width: 72ch; }

/* footer: payment methods and security (text badges; no third-party logos) */
.footer-trust { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 32px; padding-top: 22px; border-top: 1px solid #E6EAF2; }
.ft-col h2 { margin: 0 0 10px; font-size: 14px; font-weight: 600; color: var(--footer-ink); }
.ft-pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ft-pills li, .ft-pills a { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--footer-ink); }
.ft-pills li { padding: 6px 10px; border: 1px solid #DCE2EE; border-radius: 6px; background: #fff; }
.ft-pills a { text-decoration: none; }
.ft-pills a:hover { color: var(--accent); text-decoration: underline; }
.ft-pills svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; color: #4A5578; }
.ft-pills li.ft-good { border-color: #BFE3CC; background: #F1FAF4; color: #1D7547; }
.ft-pills li.ft-good svg { color: #1D7547; }
.ft-note { margin: 10px 0 0; font-size: 12.5px; color: var(--footer-muted); }
@media (max-width: 760px) { .footer-trust { grid-template-columns: 1fr; } }
@media print { .footer-trust { display: none; } }
.as-gift { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 600; letter-spacing: .02em; padding: 2px 8px; border-radius: 999px; background: #E9F6EE; color: #1D7547; white-space: nowrap; }
.ex-stage { margin: 18px 0 -14px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.stages ul li a { color: inherit; text-decoration: none; }
.stages ul li a:hover { color: var(--accent); text-decoration: underline; }

/* ==================== Home page: three divisions ==================== */
:root { --mw: #1F5BD8; --mw-soft: #EAF0FD; --pv: #0C6E68; --pv-soft: #E3F2F0; --gn: #6A3FB5; --gn-soft: #F1ECFA; }
/* narrow boxes read better left-aligned: no gaps between words, no broken words */
.hero .lead, .section-head p, .cta-final p, .pack p, .proj p, .sample dd, .dv p, .dv li, .facts li, .steps p, .pillars p, .sample p, .sample dd, .fx li, .stages li, .xp-panel p, .hero-divs li, .hero-trust li, .split p { text-align: left; hyphens: manual; -webkit-hyphens: manual; }
.hero .eyebrow { display: inline-block; margin-bottom: 10px; }
.hero-divs { list-style: none; margin: 22px 0 6px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-divs li { flex: 0 0 auto; max-width: 100%; }
@media (max-width: 560px) { .hero-divs li { flex: 1 1 100%; } }
.hero-divs a { display: flex; align-items: center; gap: 10px; padding: 7px 12px 7px 7px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); text-decoration: none; font-size: 12.5px; line-height: 1.25; box-shadow: var(--shadow); transition: border-color .15s, transform .15s; }
.hero-divs a:hover, .hero-divs a:focus-visible { transform: translateY(-1px); outline: none; }
.hero-divs a span { display: grid; color: var(--muted); }
.hero-divs a b { color: var(--navy); font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.hero-divs svg, .dv-ic svg, .xp-tabs svg, .fx h4 svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.hero-divs svg { width: 26px; height: 26px; padding: 5px; border-radius: 7px; }
.hd-mw svg { color: var(--mw); background: var(--mw-soft); } .hd-pv svg { color: var(--pv); background: var(--pv-soft); } .hd-gn svg { color: var(--gn); background: var(--gn-soft); }
.hd-mw:hover { border-color: var(--mw); } .hd-pv:hover { border-color: var(--pv); } .hd-gn:hover { border-color: var(--gn); }
/* facts strip */
.facts { padding-top: 8px; padding-bottom: 8px; }
.facts ul { list-style: none; margin: 0; padding: 18px 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts li { display: grid; gap: 4px; padding: 4px 22px; align-content: start; }
.facts li + li { border-left: 1px solid var(--line); }
.facts b { font-size: 26px; font-weight: 800; color: var(--navy); letter-spacing: -0.01em; line-height: 1.1; }
.facts span { font-size: 14px; color: var(--muted); line-height: 1.45; }
@media (max-width: 900px) { .facts ul { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 16px; } .facts li:nth-child(3) { border-left: 0; } }
@media (max-width: 480px) { .facts ul { grid-template-columns: minmax(0, 1fr); } .facts li + li { border-left: 0; border-top: 1px solid var(--line); padding-top: 14px; } .facts li { padding: 0 4px; } }
/* division cards: equal height, same layout, button at the bottom */
.dvs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.dv { --c: var(--mw); --cs: var(--mw-soft); display: flex; flex-direction: column; gap: 12px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--c); border-radius: 12px; box-shadow: var(--shadow); }
.dv-pv { --c: var(--pv); --cs: var(--pv-soft); } .dv-gn { --c: var(--gn); --cs: var(--gn-soft); }
.dv-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dv-ic { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--cs); color: var(--c); }
.dv-ic svg { width: 24px; height: 24px; }
.dv-meta { font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: var(--cs); color: var(--c); white-space: nowrap; }
.dv h3 { margin: 4px 0 0; font-size: 21px; color: var(--navy); }
.dv p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.dv-tools { list-style: none; margin: 2px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.dv-tools li { display: flex; gap: 9px; align-items: baseline; font-size: 14.5px; line-height: 1.4; }
.dv-tools li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c); flex: none; transform: translateY(-2px); }
.dv-tools a { color: var(--ink); text-decoration: none; }
.dv-tools a:hover { color: var(--c); text-decoration: underline; }
.dv-cta { margin-top: auto; align-self: flex-start; border-color: var(--c); color: var(--c); }
.dv-cta:hover { background: var(--c); color: #fff; }
.dv .dv-tools { margin-bottom: 8px; }
@media (max-width: 1100px) { .dvs { grid-template-columns: minmax(0, 1fr); max-width: 640px; } }
/* division tabs in the services band */
.xp-tabs { display: none; }
.xp-on .xp-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.xp-tabs button { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 99px; background: var(--surface); color: var(--ink-2); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.xp-tabs svg { width: 18px; height: 18px; }
.xp-tabs button[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.xp-tabs button:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 2px; }
.xp-panel + .xp-panel { margin-top: 30px; }
.xp-on .xp-panel + .xp-panel { margin-top: 0; }
.xp-h { margin: 0 0 12px; font-size: 18px; color: var(--navy); }
.xp-on .xp-h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.stages.stages-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stages.stages-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
#xp-pv .stages > li { border-top-color: var(--pv); } #xp-pv .stages h3 small { color: var(--pv); }
#xp-gn .stages > li { border-top-color: var(--gn); } #xp-gn .stages h3 small { color: var(--gn); }
@media (max-width: 1000px) { .stages.stages-3, .stages.stages-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .stages.stages-3, .stages.stages-4 { grid-template-columns: minmax(0, 1fr); } }
/* samples: which division */
.smp-div { justify-self: start; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 99px; }
.smp-mw { background: var(--mw-soft); color: var(--mw); } .smp-pv { background: var(--pv-soft); color: var(--pv); } .smp-gn { background: var(--gn-soft); color: var(--gn); }
/* pricing: fixed-price tools by division */
.price-sub { margin: 26px 0 12px; font-size: 17px; color: var(--navy); display: grid; gap: 3px; }
.price-sub small { font-size: 13.5px; font-weight: 400; color: var(--muted); }
.fixed { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 16px; }
.fx { --c: var(--mw); border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 16px 18px; }
.fx-pv { --c: var(--pv); } .fx-gn { --c: var(--gn); }
.fx h4 { margin: 0 0 8px; display: flex; align-items: center; gap: 8px; font-size: 15.5px; color: var(--c); }
.fx h4 svg { width: 20px; height: 20px; }
.fx ul { list-style: none; margin: 0; padding: 0; display: grid; }
.fx li a { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 14px; }
.fx li a:hover span { color: var(--c); text-decoration: underline; }
.fx li b { text-align: right; white-space: nowrap; color: var(--navy); }
.fx li small { grid-column: 1 / -1; color: var(--muted); font-size: 12.5px; }
@media (max-width: 1100px) { .fixed { grid-template-columns: minmax(0, 1fr); max-width: 640px; } }
/* printing: the page prints as it reads, without the fixed header or the menu */
@media print {
  .site-header, .app-side, .hero-band, .hero-preview, .xp-tabs, .site-footer .footer-trust { display: none !important; }
  body.app { display: block !important; }
  body.app main, body.app .site-footer { margin-left: 0 !important; padding-left: 0 !important; }
  .xp-panel { display: block !important; } .xp-on .xp-h { position: static; width: auto; height: auto; clip: auto; }
  .dv, .sample, .fx, .pack { break-inside: avoid; box-shadow: none; }
}

.pay-gst { margin: 6px 0 0; font-weight: 600; color: var(--ink-2); }
.pay-gst:empty { display: none; }

/* approximate US dollar amount shown to visitors outside India */
.usd{font-size:.82em;font-weight:400;color:var(--muted);white-space:nowrap}

/* students outside India: US$ prices without GST (html.cur-usd is set by header.js) */
[data-usd-note]{display:none}
.cur-usd [data-usd-note]{display:block}
.cur-usd [data-gst-note],.cur-usd .gst-row{display:none}
.cur-switch{display:flex;align-items:center;justify-content:center;gap:6px;flex-wrap:wrap;margin:14px auto;padding:0 16px;font-size:.85rem;color:var(--muted)}
.cur-switch button{font:inherit;border:1px solid rgba(35,44,92,.18);background:#fff;color:var(--ink-2);border-radius:999px;padding:4px 12px;cursor:pointer}
.cur-switch button[aria-pressed="true"]{background:var(--ink);color:#fff;border-color:var(--ink)}
.cur-switch button:focus-visible{outline:2px solid #1F5BD8;outline-offset:2px}
footer .cur-switch{color:var(--footer-muted,#9aa0b4)}

/* maintenance notice (MAINTENANCE = on) */
.maint-bar{background:#FFF4D6;color:#5C4400;border-bottom:1px solid #EBCF7A;text-align:center;padding:9px 16px;font-size:.92rem;font-weight:500}
.footer-col a[href^="mailto:"] { overflow-wrap: anywhere; }

/* "Install app": the small pop-up with the steps for an iPhone or iPad (see header.js), and the profile-menu item */
.install-dlg { width: min(360px, calc(100vw - 32px)); padding: 22px 22px 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); box-shadow: 0 24px 60px rgba(20, 26, 60, .25); }
.install-dlg::backdrop { background: rgba(20, 26, 60, .45); }
.install-dlg h2 { margin: 0 0 12px; font-size: 19px; color: var(--navy); }
.install-dlg ol { margin: 0 0 18px; padding-left: 22px; display: grid; gap: 8px; font-size: 15.5px; line-height: 1.5; }
.install-dlg .btn { width: 100%; justify-content: center; }
.am-install[hidden] { display: none !important; }
.am-install { width: 100%; text-align: left; cursor: pointer; }

/* ==================== footer, version 5: a rounded navy brand card on the left; links, safety, notice and payment methods on the right ==================== */
.site-footer { background: #F5F7FC; }
.site-footer .container { display: block; padding-block: 40px 40px; }
.footer-top { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: 36px 48px; align-items: stretch; }
.footer-brandcol { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: 44px 36px 36px; border-radius: 22px; background: #121B45; color: #C9D1EA; box-shadow: 0 18px 40px rgba(18, 27, 69, .18); }
.footer-logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
.footer-logo img { width: 44px; height: 44px; display: block; padding: 6px; border-radius: 12px; background: #fff; }
.site-footer .footer-tag { margin: 0; max-width: 34ch; font-size: 14.5px; line-height: 1.65; color: #C9D1EA; text-align: left; hyphens: manual; }
.site-footer .footer-mail { margin: 6px 0 0; font-size: 15.5px; line-height: 1.5; text-align: left; overflow-wrap: anywhere; }
.footer-mail span { display: block; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 8px; }
.footer-mail a { display: inline-flex; align-items: center; gap: 9px; color: #8FB4FF; text-decoration: none; font-weight: 600; }
.footer-mail a svg { flex: none; }
.footer-mail a:hover { color: #fff; text-decoration: underline; }
.footer-social { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .28); color: #fff; transition: color .15s, border-color .15s, background .15s; }
.footer-social a:hover { background: #fff; color: #121B45; border-color: #fff; }
.footer-social a:focus-visible, .footer-logo:focus-visible, .footer-mail a:focus-visible { outline: 2px solid #8FB4FF; outline-offset: 3px; }
.site-footer .footer-brandcol .copyright { margin: auto 0 0; padding-top: 28px; font-size: 13.5px; color: #AEB8D8; text-align: left; }
.footer-rightcol { min-width: 0; padding-top: 18px; }
.footer-links-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 30px; align-content: start; }
.site-footer .footer-trust { display: block; margin-top: 32px; padding-top: 26px; border-top: 1px solid #E1E6F1; }
.site-footer .footer-trust .ft-col { display: block; }
.site-footer .footer-trust .ft-col h2 { margin: 0 0 16px; font-size: 15.5px; font-weight: 700; color: var(--navy); }
.site-footer .footer-trust .ft-note { margin: 16px 0 0; font-size: 13.5px; }
.ft-safe { gap: 14px 30px; }
.ft-pills.ft-safe li, .ft-pills.ft-safe li.ft-good { padding: 0; border: 0; background: none; gap: 12px; font-size: 14.5px; font-weight: 700; color: var(--navy); }
.ft-pills.ft-safe a { color: inherit; font-size: inherit; font-weight: inherit; gap: 14px; }
.ft-pills.ft-safe svg { box-sizing: content-box; width: 20px; height: 20px; padding: 10px; border-radius: 50%; border: 1px solid #DCE2EE; background: #fff; color: var(--accent); stroke-width: 1.8; }
.ft-pills.ft-safe li.ft-good svg { color: var(--accent); }
.site-footer .footer-legal { margin-top: 14px; padding-top: 0; border-top: 0; }
.site-footer .footer-legal p { max-width: none; font-size: 13.5px; }
.footer-bar { display: block; margin-top: 26px; padding-top: 24px; border-top: 1px solid #E1E6F1; }
.ft-pay { justify-content: flex-start; gap: 10px; }
.ft-pay li { padding: 8px 14px; font-size: 13.5px; border-radius: 8px; }
@media (max-width: 1080px) {
  .footer-top { grid-template-columns: minmax(0, 1fr); }
  .footer-brandcol { padding: 32px 28px 26px; }
  .site-footer .footer-tag { max-width: 62ch; }
  .footer-rightcol { padding-top: 0; }
}
@media (max-width: 600px) { .footer-links-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .site-footer .container { padding-block: 24px 28px; } .footer-brandcol { border-radius: 18px; padding: 28px 22px 22px; } }
/* footer, version 5, sized as in the approved template: larger type and more room, payment methods centred.
   Sizes follow the width of the footer itself (cqw = 1% of it), so they are right beside the left menu and on pages without it. */
.site-footer .container { container-type: inline-size; }
.site-footer .container { padding-block: 34px 34px; }
.footer-top { grid-template-columns: minmax(380px, 30%) minmax(0, 1fr); gap: 36px clamp(36px, 3.84cqw, 60px); }
.footer-brandcol { gap: clamp(16px, 1.56cqw, 24px); padding: clamp(36px, 3.84cqw, 60px) clamp(32px, 3cqw, 48px) clamp(30px, 3cqw, 46px); border-radius: 24px; }
.footer-logo { gap: 14px; font-size: clamp(20px, 1.68cqw, 26px); }
.footer-logo img { width: clamp(46px, 3.72cqw, 58px); height: clamp(46px, 3.72cqw, 58px); padding: 7px; border-radius: 14px; }
.site-footer .footer-tag { max-width: 36ch; font-size: clamp(15px, 1.2cqw, 18px); line-height: 1.7; }
.site-footer .footer-mail { margin-top: 8px; font-size: clamp(16px, 1.26cqw, 19px); overflow-wrap: normal; }
.footer-mail a { white-space: nowrap; }
.footer-mail span { font-size: clamp(12.5px, 0.96cqw, 15px); letter-spacing: .14em; margin-bottom: 12px; }
.footer-mail a svg { width: 20px; height: 20px; }
.footer-social { gap: clamp(8px, .8cqw, 15px); margin-top: 8px; flex-wrap: nowrap; }
.footer-social a { width: clamp(40px, 3.12cqw, 48px); height: clamp(40px, 3.12cqw, 48px); }
.site-footer .footer-brandcol .copyright { font-size: clamp(13.5px, 1.08cqw, 17px); padding-top: 36px; hyphens: manual; }
.footer-rightcol { padding-top: clamp(18px, 2.16cqw, 34px); }
.site-footer .footer-col h2 { font-size: clamp(12.5px, 0.96cqw, 15px); letter-spacing: .14em; margin-bottom: clamp(14px, 1.32cqw, 22px); }
.site-footer .footer-col { gap: clamp(11px, 1.2cqw, 20px); }
.site-footer .footer-col a { font-size: clamp(15.5px, 1.25cqw, 19.5px); line-height: 1.3; }
.site-footer .footer-trust { margin-top: clamp(30px, 3.12cqw, 50px); padding-top: clamp(26px, 2.52cqw, 40px); }
.site-footer .footer-trust .ft-col h2 { font-size: clamp(16px, 1.22cqw, 19px); margin-bottom: clamp(16px, 1.44cqw, 24px); }
.ft-safe { display: grid; grid-template-columns: repeat(4, minmax(0, auto)); justify-content: space-between; gap: 16px 24px; }
.ft-pills.ft-safe li, .ft-pills.ft-safe li.ft-good { gap: 14px; font-size: clamp(14.5px, 1.13cqw, 17.5px); line-height: 1.35; text-align: left; hyphens: manual; }
.ft-pills.ft-safe svg { width: clamp(20px, 1.5cqw, 24px); height: clamp(20px, 1.5cqw, 24px); padding: clamp(12px, 1.02cqw, 16px); box-shadow: 0 2px 6px rgba(18, 27, 69, .05); }
.site-footer .footer-trust .ft-note { margin-top: clamp(16px, 1.56cqw, 26px); font-size: clamp(14px, 1.08cqw, 16.5px); }
.site-footer .footer-legal { margin-top: clamp(12px, 1.2cqw, 20px); }
.site-footer .footer-legal p { font-size: clamp(14px, 1.1cqw, 17px); line-height: 1.7; }
.footer-bar { margin-top: clamp(24px, 2.4cqw, 38px); padding-top: clamp(22px, 1.92cqw, 30px); }
.ft-pay { justify-content: center; gap: 12px; }
.ft-pay li { padding: clamp(9px, 0.78cqw, 12px) clamp(14px, 1.2cqw, 18px); font-size: clamp(14px, 1.13cqw, 17.5px); border-radius: 9px; gap: 9px; }
.ft-pay li svg { width: 18px; height: 18px; }
@media (max-width: 1080px) { .footer-top { grid-template-columns: minmax(0, 1fr); } .ft-safe { grid-template-columns: repeat(2, minmax(0, 1fr)); justify-content: start; } }
@media (max-width: 600px) { .ft-safe { grid-template-columns: minmax(0, 1fr); } .ft-pay { justify-content: flex-start; } .footer-social { gap: 8px; } .footer-social a { width: 38px; height: 38px; } }
@media (max-width: 1500px) { body.app .ft-safe { grid-template-columns: repeat(2, minmax(0, 1fr)); justify-content: start; } }
@media (max-width: 600px) { body.app .ft-safe { grid-template-columns: minmax(0, 1fr); } }
/* student pages: the page column is narrower (the menu takes 248px), so the card goes above the links sooner */
@media (max-width: 1360px) { body.app .footer-top { grid-template-columns: minmax(0, 1fr); } body.app .site-footer .footer-tag { max-width: 62ch; } body.app .footer-rightcol { padding-top: 0; } body.app .footer-brandcol { padding: 32px 28px 26px; } }
@media print { .footer-social, .footer-bar { display: none; } }

/* left menu: nothing sticks out sideways, and the "Install app" item */
@media (min-width: 861px) {
  .app-side { overflow-x: hidden; }
  .as-nav, .as-foot, .as-sub { grid-template-columns: minmax(0, 1fr); }      /* rows are as wide as the menu, never wider */
  .app-side .as-sub a { white-space: normal; line-height: 1.3; }             /* a long tool name goes onto a second line instead of being cut */
  .app-side .as-sub a > span { overflow: visible; text-overflow: clip; }
  .app-side a > span, .as-btn > span, .as-grp > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .as-gift { flex: none; }
}
@media (min-width: 861px) { .app-side .as-invite { gap: 10px; padding-right: 8px; } .app-side .as-invite .as-gift { font-size: 10.5px; padding: 2px 7px; margin-left: auto; } }
/* narrower menu (220px): the tag goes under "Invite a friend", and the division names keep their full width */
@media (min-width: 861px) and (max-width: 1100px) {
  .app-side .as-invite { flex-wrap: wrap; row-gap: 3px; }
  .app-side .as-invite .as-gift { margin-left: 32px; }
  .app-side .as-invite > span { flex: 1 1 calc(100% - 40px); }
  .as-grp { gap: 10px; padding-left: 20px; padding-right: 8px; }
  .app-side .as-sub a { padding-left: 42px; padding-right: 8px; gap: 10px; }
  .as-sub::before { left: 29px; }
}
.as-install { width: 100%; text-align: left; cursor: pointer; }
.as-install[hidden] { display: none; }
@media (max-width: 860px) { .as-install { width: auto; } }
@media (max-width: 400px) { .site-footer .footer-brandcol .copyright { font-size: 12.5px; } }

/* ---------- Journal skin (v2026-11-16): the look of the home and Pricing pages on every public page ----------
   Warm paper background, warm hairlines, serif headings in a lighter weight, orange small labels, a navy rule above lists.
   Colours and type only: no sizes of boxes, no layout, nothing on the admin page or the document previews. */
body:not(.adm):not(.sv) { --line: #E3DDD1; --line-strong: #D0C8B9; --surface-2: #F6F3EC; }
body:not(.adm):not(.sv) main h1 { font-weight: 500; letter-spacing: -.012em; color: var(--navy); }
body:not(.adm):not(.sv):not(.app) main h2 { font-family: var(--f-title); font-weight: 500; letter-spacing: -.012em; color: var(--navy); }
body:not(.adm):not(.sv) .section-head h2, body:not(.adm):not(.sv) .section h2, body:not(.adm):not(.sv) .band h2 { font-weight: 500; }
body:not(.adm):not(.sv) .step-num { color: #DF5228; font-weight: 800; font-size: 12px; letter-spacing: .15em; text-transform: uppercase; }
body:not(.adm):not(.sv) .eyebrow, body:not(.adm):not(.sv) .kicker { color: #DF5228; letter-spacing: .15em; font-size: 12px; }
body:not(.adm):not(.sv) .faq { border-top: 3px solid var(--navy); }
body:not(.adm):not(.sv) .faq details { border-bottom-color: #DED7CA; }
body:not(.adm):not(.sv) .faq summary { font-family: var(--f-title); font-weight: 500; color: var(--navy); }
body:not(.adm):not(.sv):not(.app) .stage-sec > h2, body:not(.adm):not(.sv):not(.app) .prose h2 { padding-bottom: 0; }
body:not(.adm):not(.sv):not(.app) .svc-grid { border-top: 3px solid var(--navy); padding-top: 22px; }
body:not(.adm):not(.sv) .stage-nav { border-bottom-color: #DED7CA; }
body:not(.adm):not(.sv) .hero-band { background: linear-gradient(180deg, var(--bg) 0%, #F3EEE6 100%); border-bottom-color: #DED7CA; }
body:not(.adm):not(.sv) .prose .summary { background: #F3EEE6; }
/* footer in the warm colours of the pages (the navy brand card stays navy) */
.site-footer, body.app > .site-footer { background: #F3EEE6; border-top: 1px solid #DED7CA; }
.site-footer .footer-trust, .site-footer .footer-bar { border-top-color: #DED7CA; }
.ft-pills.ft-safe svg { border-color: #D8D0C1; }
/* home page: the closing navy box sits on the page colour (an old white-to-blue band used to show behind it) */
main.jr section.jr-final { background: none; }
/* GST details for invoices (buy page, My account) */
.gst-box { margin-top: 14px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.acc-card .gst-box { margin-top: 0; }
.gst-line { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin: 0; font-size: 15px; text-align: left; }
.gst-line span { min-width: 0; overflow-wrap: anywhere; }
.gst-line small { display: block; font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.gst-line .linkbtn { flex: none; font-weight: 700; white-space: nowrap; }
dialog.gst-dlg textarea { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--line-strong, var(--line)); border-radius: 8px; background: var(--surface); color: var(--ink); resize: vertical; }
dialog.gst-dlg h2 { padding-right: 58px; }
dialog.gst-dlg #gstMore { display: grid; gap: 10px; }
dialog.gst-dlg #gstMore[hidden] { display: none; }
dialog.gst-dlg input[readonly], dialog.gst-dlg textarea[readonly] { background: var(--surface-2, #F6F3EC); color: var(--ink-2, var(--ink)); }
dialog.gst-dlg .gst-from { margin: 4px 0 -2px; font-weight: 700; color: var(--ink); }
dialog.gst-dlg #gstNo { text-transform: uppercase; letter-spacing: .04em; }
dialog.gst-dlg .row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
@media (max-width: 420px) { .gst-line { flex-direction: column; align-items: flex-start; gap: 8px; } }

/* ==================== Cards and side panels: narrow boxes ==================== */
/* justified text leaves wide, uneven gaps in a narrow box, so text inside cards and side panels is left-aligned */
main .svc dd, main .svc p, main .tl-side li, main .tl-side p, main .jcard dd, main .jcard p, main .chapters li, main .tool-card p, main .sample p, main .division p, main .proj p { text-align: left; hyphens: manual; -webkit-hyphens: manual; }
/* the link at the foot of a service card looks the same whether the service is live or planned */
.svc .notify-link { font-size: 15px; font-weight: 600; text-decoration: none; padding-top: 6px; }
.svc .notify-link:hover { text-decoration: underline; text-underline-offset: 3px; }
/* a long status label drops under the title instead of squeezing it into a narrow column */
.svc-top { flex-wrap: wrap; }
.svc-top h3 { flex: 1 1 11ch; min-width: 0; }
