/* Structural Engineering Tools — site stylesheet.
   One file for every site page. Colours, type and spacing are the tokens
   below; they match the module pages. Base unit: 4px. */

:root {
  --paper: #e9edef;
  --sheet: #ffffff;
  --ink: #111a20;
  --ink2: #3d4a53;
  --ink3: #59666f;
  --ink4: #8a99a3;
  --rule: #ccd6dc;
  --rule2: #e6ecef;
  --blue: #14456b;
  --blue-700: #0b2c47;
  --blue-bg: #e9f0f6;
  --pass: #1f6b3a;
  --pass-bg: #e6f2ea;
  --wood: #f0dfbe;
  --quiet-bg: #f3f5f6;

  /* plans: one blue, darker for each plan */
  --plan-free: #6f7f89;
  --plan-basic-bg: #dbe7f1;
  --plan-basic-line: #8fb0cb;
  --plan-pro: #2a6aa0;
  --plan-expert: #0b2c47;

  --r: 6px;
  --wrap: 1200px;
  --font: "Helvetica Neue", Helvetica, Inter, "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 24px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1 0 auto; }
img, svg { max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, figure { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
sub { font-size: .72em; line-height: 0; vertical-align: -.25em; }
b, strong { font-weight: 600; }
.num { font-variant-numeric: lining-nums tabular-nums; }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-700); text-decoration: underline; text-underline-offset: 3px; }
/* links inside running text are underlined, so they never rely on colour alone */
.prose a, .legal a, .field label a, .form-alt a, .pc-alt a, .notice a { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
main:focus { outline: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.vh {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: absolute; left: 16px; top: -48px; z-index: 10;
  background: var(--blue); color: #fff; padding: 8px 16px; border-radius: var(--r);
}
.skip:focus { top: 8px; color: #fff; }

.eyebrow {
  font-size: 13px; line-height: 16px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--blue);
}
.label {
  font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink3);
}
.arrow::after { content: " →"; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 24px;
  border-radius: var(--r); font-size: 16px; font-weight: 500; border: 1px solid transparent;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--blue); color: #fff; font-weight: 600; }
.btn-primary:hover { background: var(--blue-700); color: #fff; }
.btn-secondary { background: var(--sheet); border-color: var(--rule); color: var(--ink); }
.btn-secondary:hover { border-color: var(--blue); color: var(--ink); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }

/* ---------- masthead ---------- */
.masthead { background: var(--sheet); border-bottom: 1px solid var(--rule); }
.masthead-in { min-height: 72px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 32px; }
.brand {
  display: flex; align-items: center; gap: 12px; padding: 12px 0; color: var(--ink);
  font-size: 17px; line-height: 24px; font-weight: 600; letter-spacing: -.01em;
}
.brand:hover { color: var(--ink); text-decoration: none; }
.sections { display: flex; gap: 24px; font-size: 15px; font-weight: 500; }
.sections a { color: var(--ink); padding: 12px 0; }
.sections a[aria-current] { box-shadow: inset 0 -2px 0 var(--blue); }
.masthead-end {
  margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px;
  font-size: 14px; line-height: 20px;
}
.masthead-end > a:not(.btn) { color: var(--ink3); padding: 10px 0; }
.masthead-end > a[aria-current]:not(.btn) { color: var(--ink); }
.langs { display: flex; gap: 12px; }
.langs a { color: var(--ink3); padding: 10px 0; }
.langs a[aria-current] { color: var(--ink); font-weight: 700; box-shadow: inset 0 -2px 0 var(--blue); }

/* ---------- breadcrumb ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 14px; line-height: 20px; color: var(--ink3); }
.crumbs li + li::before { content: "›"; margin: 0 8px; color: var(--ink4); }
.crumbs a { color: var(--ink3); }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }

/* ---------- hero ---------- */
.hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; padding-top: 80px; padding-bottom: 96px; }
.hero-text { flex: 1 1 520px; min-width: 0; padding-top: 16px; }
.hero .eyebrow { margin-bottom: 24px; }
.display { font-size: 52px; line-height: 56px; font-weight: 600; letter-spacing: -.02em; max-width: 13ch; margin-bottom: 24px; }
.lead { font-size: 20px; line-height: 32px; color: var(--ink2); max-width: 34em; margin-bottom: 40px; }
.actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 40px; }
.facts {
  display: flex; flex-wrap: wrap; gap: 8px 32px; padding-top: 24px; border-top: 1px solid var(--rule);
  font-size: 14px; line-height: 20px; color: var(--ink2);
}
.facts li { display: flex; align-items: center; gap: 8px; }

/* ---------- sample calculation card (the module's result style) ---------- */
.sample {
  flex: 1 1 400px; min-width: 0; max-width: 540px; background: var(--sheet);
  border: 1px solid var(--rule); border-radius: var(--r);
  box-shadow: 0 1px 2px rgba(17,26,32,.06), 0 8px 24px rgba(17,26,32,.06);
  font-variant-numeric: lining-nums tabular-nums;
}
.sample-head { padding: 20px 24px 16px; border-bottom: 1px solid var(--rule2); }
.sample-head .label { margin-bottom: 4px; }
.sample-title { font-size: 20px; line-height: 28px; font-weight: 600; margin-bottom: 12px; }
.codechip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; line-height: 16px; }
.codechip .v { font-weight: 600; color: var(--blue); background: var(--blue-bg); border-radius: 4px; padding: 4px 8px; }
.sample-in { padding: 16px 24px; display: flex; gap: 24px; align-items: center; border-bottom: 1px solid var(--rule2); }
.sample-in svg { flex-shrink: 0; }
.kv { flex: 1; min-width: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; font-size: 14px; line-height: 20px; }
.kv dt { color: var(--ink3); }
.kv dd { margin: 0; text-align: right; }
.sample-verdict { padding: 16px 24px 0; }
.vcard { background: var(--pass-bg); border-radius: var(--r); padding: 16px; }
.v-top { display: flex; align-items: center; gap: 12px; }
.v-word { font-weight: 700; color: var(--pass); }
.v-eta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 8px 0; font-size: 13px; color: var(--ink2); }
.v-eta .big { font-size: 32px; line-height: 40px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.v-eta .pct { margin-left: auto; }
.meter { position: relative; height: 8px; background: var(--sheet); border: 1px solid var(--rule); border-radius: 4px; }
.meter > i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--blue); border-radius: 3px; }
.meter > b { position: absolute; top: -4px; bottom: -4px; right: -1px; width: 2px; background: var(--ink); }
.meter-ax { display: flex; justify-content: space-between; margin-top: 2px; font-size: 11px; line-height: 16px; color: var(--ink3); }
.v-eq { display: flex; justify-content: space-between; gap: 16px; margin-top: 8px; font-size: 13px; line-height: 20px; color: var(--ink2); }
.ref { font-size: 12px; color: var(--blue); white-space: nowrap; }
.trail { padding: 12px 24px 8px; }
.trow {
  display: grid; grid-template-columns: minmax(0,1fr) auto 48px 88px; column-gap: 12px; align-items: baseline;
  padding: 8px 0; border-top: 1px solid var(--rule2); font-size: 14px; line-height: 20px;
}
.trow.head { border-top: 0; font-size: 12px; line-height: 16px; color: var(--ink3); }
.trow .f { display: block; font-size: 12px; line-height: 16px; color: var(--ink3); }
.trow .v { text-align: right; font-weight: 700; }
.trow .u { font-size: 12px; color: var(--ink3); }
.trow.chk .name { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.trow.chk .v { font-weight: 400; }
.trow.chk .v .s { color: var(--ink3); }
.trow.chk .u { color: var(--pass); font-weight: 600; }
.trail .more { padding-top: 8px; margin-top: 4px; border-top: 1px solid var(--rule2); font-size: 13px; line-height: 20px; color: var(--ink3); }
.sample-foot {
  padding: 12px 24px 16px; border-top: 1px solid var(--rule2); display: flex; flex-wrap: wrap;
  justify-content: space-between; align-items: center; gap: 8px 16px; font-size: 12px; line-height: 16px; color: var(--ink3);
}
.sample-foot a { font-size: 14px; line-height: 20px; font-weight: 600; }

/* ---------- white bands and section heads ---------- */
.band { background: var(--sheet); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section { padding-top: 80px; padding-bottom: 80px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 48px; margin-bottom: 40px; }
.h2 { font-size: 32px; line-height: 40px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 8px; }
.section-head p { color: var(--ink2); max-width: 40em; }
.statuskey { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 13px; line-height: 20px; color: var(--ink2); }
.statuskey li { display: flex; align-items: center; gap: 8px; }

/* ---------- where to start ---------- */
.paths { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: 24px; }
.path { display: flex; flex-direction: column; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r); padding: 32px; }
.path-top { display: flex; gap: 24px; align-items: flex-start; margin-bottom: 24px; }
.path-icon {
  flex-shrink: 0; width: 96px; height: 96px; display: flex; align-items: center; justify-content: center;
  background: var(--blue-bg); border-radius: 4px;
}
.path h3 { font-size: 24px; line-height: 32px; font-weight: 600; margin-bottom: 8px; }
.path h3 a { color: var(--ink); }
.path-top p { color: var(--ink2); }
.path .label { margin-bottom: 8px; }
.path-note { font-size: 14px; line-height: 20px; color: var(--ink2); margin-bottom: 32px; }
.path-open {
  margin-top: auto; padding-top: 24px; border-top: 1px solid var(--rule2);
  display: flex; justify-content: space-between; align-items: center; font-weight: 600;
}
.tasks { display: grid; grid-template-columns: 96px minmax(0,1fr); gap: 16px 24px; align-items: start; margin-bottom: 32px; }
.tasks dt { padding-top: 8px; font-weight: 600; }
.tasks dt.soon { color: var(--ink3); }
.tasks dd { margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.tasks .chips { margin-bottom: 0; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px;
  border: 1px solid var(--rule); border-radius: var(--r); color: var(--ink); font-size: 15px; background: var(--sheet);
}
a.chip:hover { border-color: var(--blue); color: var(--ink); text-decoration: none; }
.chip.soon { border-style: dashed; color: var(--ink3); }
.dot { width: 12px; height: 12px; flex-shrink: 0; }

/* ---------- how a result is built ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.step { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r); padding: 32px; }
.step svg { display: block; margin-bottom: 24px; }
.step-n { font-size: 13px; line-height: 16px; font-weight: 700; letter-spacing: .08em; color: var(--ink3); margin-bottom: 8px; }
.step h3 { font-size: 20px; line-height: 28px; font-weight: 600; margin-bottom: 8px; }
.step p { color: var(--ink2); }

/* ---------- plans ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 24px; }
.plan {
  display: flex; flex-direction: column; background: var(--sheet); border: 1px solid var(--rule);
  border-top: 4px solid var(--plan-line, var(--plan-free)); border-radius: var(--r); padding: 24px;
}
.plan.free { --plan-line: var(--plan-free); }
.plan.basic { --plan-line: var(--plan-basic-line); }
.plan.pro { --plan-line: var(--plan-pro); }
.plan.expert { --plan-line: var(--plan-expert); }
.plan-price { margin-top: 16px; font-size: 24px; line-height: 32px; font-weight: 600; }
.plan-price small { font-size: 14px; font-weight: 400; color: var(--ink3); }
.plan-year { min-height: 40px; margin-top: 4px; font-size: 14px; line-height: 20px; color: #1f4f78; }
.plan-access { margin: 4px 0 16px; font-size: 14px; line-height: 20px; color: var(--ink3); }
.plan-list { display: grid; gap: 8px; padding-top: 16px; margin-bottom: 24px; border-top: 1px solid var(--rule2); font-size: 14px; line-height: 20px; color: var(--ink2); }
.plan-list li { display: flex; gap: 8px; }
.plan-list svg { flex-shrink: 0; margin-top: 2px; }
.plan-list b { color: var(--ink); }
.plan-year b { display: block; }
.note-demo { margin-bottom: 24px; padding: 12px; background: var(--quiet-bg); border-radius: 4px; }
.note-demo p { font-size: 12px; line-height: 16px; color: var(--ink3); margin-bottom: 8px; }
.note-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px;
  border: 1px solid var(--rule); border-radius: var(--r); background: var(--sheet); font-size: 14px; white-space: nowrap;
}
.note-btn svg { flex-shrink: 0; }
.note-btn .badge, .tags .badge { align-self: center; }
.plan-go { margin-top: auto; font-size: 15px; font-weight: 600; }
.plans-note { margin-top: 16px; font-size: 13px; color: var(--ink3); }

/* plan badge: always shows the plan's name */
.badge {
  align-self: flex-start; display: inline-flex; align-items: center; height: 24px; padding: 0 10px;
  border: 1px solid; border-radius: 12px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.badge.sm { height: 18px; padding: 0 6px; font-size: 10px; border-radius: 9px; }
.badge.free { background: var(--sheet); border-color: var(--plan-free); color: var(--ink2); }
.badge.basic { background: var(--plan-basic-bg); border-color: var(--plan-basic-line); color: var(--blue); }
.badge.pro { background: var(--plan-pro); border-color: var(--plan-pro); color: #fff; }
.badge.expert { background: var(--plan-expert); border-color: var(--plan-expert); color: #fff; }

/* ---------- about band ---------- */
.about { padding-top: 64px; padding-bottom: 64px; }
.about h2 { font-size: 24px; line-height: 32px; font-weight: 600; margin-bottom: 8px; }
.about p { color: var(--ink2); max-width: 36em; }

/* ---------- inner pages ---------- */
.page-head { padding-top: 32px; padding-bottom: 40px; }
.page-head .crumbs { margin-bottom: 24px; }
.page-head h1 { font-size: 40px; line-height: 48px; font-weight: 600; letter-spacing: -.015em; margin-bottom: 8px; }
.page-head p { font-size: 18px; line-height: 28px; color: var(--ink2); max-width: 40em; }
.page-body { padding-bottom: 96px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 16px; }
/* every tile of a list the same size: equal rows, and the link fills its cell */
.tiles { grid-auto-rows: 1fr; }
.tiles > li { display: flex; min-width: 0; }
.tiles > li > .tile { flex: 1; min-width: 0; }
.tile {
  display: flex; flex-direction: column; gap: 8px; min-height: 120px; padding: 20px 24px;
  background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r); color: var(--ink);
}
a.tile:hover { border-color: var(--blue); color: var(--ink); text-decoration: none; }
a.tile:hover .tile-title { text-decoration: underline; text-underline-offset: 3px; }
.tile.soon { border-style: dashed; background: transparent; }
.tile-title { font-size: 18px; line-height: 24px; font-weight: 600; color: var(--blue); }
.tile.soon .tile-title { color: var(--ink2); }
.tile p { font-size: 14px; line-height: 20px; color: var(--ink2); }
.tile .meta { margin-top: auto; display: flex; align-items: center; gap: 8px; font-size: 13px; line-height: 20px; color: var(--ink3); }
.modlist { display: grid; gap: 0; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r); }
.modlist li { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px 24px; align-items: center; padding: 20px 24px; }
.modlist li + li { border-top: 1px solid var(--rule2); }
.modlist h2, .modlist h3 { font-size: 18px; line-height: 24px; font-weight: 600; }
.modlist p { font-size: 14px; line-height: 20px; color: var(--ink2); margin-top: 4px; }
.modlist .tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; justify-content: flex-end; }
.empty { padding: 24px; background: var(--sheet); border: 1px dashed var(--rule); border-radius: var(--r); color: var(--ink2); }
.prose { max-width: 40em; }
.prose p + p { margin-top: 16px; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: #c9d3d9; }
.footer-in { padding-top: 64px; padding-bottom: 40px; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 32px 24px; margin-bottom: 48px; }
.footer .name { font-weight: 600; color: #fff; margin-bottom: 16px; }
.footer .tag { font-size: 14px; }
.footer h2 { font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8fa1ad; margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; font-size: 14px; line-height: 28px; }
.footer a { color: #e6ecef; }
.footer a:hover { color: #fff; }
.footer :focus-visible { outline-color: #fff; }
.disclaimer { padding-top: 24px; border-top: 1px solid #2c3a43; font-size: 13px; line-height: 20px; color: #a9b7c0; max-width: 60em; }
.copyright { margin-top: 16px; font-size: 13px; line-height: 20px; color: #8fa1ad; }

/* ---------- phones ---------- */
@media (max-width: 640px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .hero { padding-top: 40px; padding-bottom: 56px; gap: 32px; }
  .display { font-size: 36px; line-height: 40px; }
  .lead { font-size: 18px; line-height: 28px; }
  .section { padding-top: 56px; padding-bottom: 56px; }
  .path { padding: 24px; }
  .path-top { flex-direction: column; gap: 16px; }
  .path-icon { width: 72px; height: 72px; }
  .tasks { grid-template-columns: 1fr; gap: 4px; }
  .tasks dd { margin-bottom: 12px; }
  .sample-in { flex-direction: column; align-items: stretch; }
  .sample-in svg { align-self: center; }
  .trow { grid-template-columns: minmax(0,1fr) auto 44px; }
  .trow .ref, .trow .head-ref { grid-column: 1 / -1; }
  .trow.head .head-ref { display: none; }
  .page-head h1 { font-size: 32px; line-height: 40px; }
  .modlist li { grid-template-columns: 1fr; }
  .modlist .tags { justify-content: flex-start; }
  .masthead-end { margin-left: 0; width: 100%; padding-bottom: 8px; }
}

@media print {
  .masthead, .footer, .skip { display: none; }
  body { background: #fff; }
}

/* =====================================================================
   Plan pages, sign-up, sign-in, account (added 2026-10)
   ===================================================================== */
.btn-xl { min-height: 52px; padding: 0 28px; font-size: 17px; justify-content: center; }
.btn-danger { background: #a12a1f; color: #fff; font-weight: 600; }
.btn-danger:hover { background: #7e2018; color: #fff; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--blue); cursor: pointer; }
.linklike:hover { text-decoration: underline; text-underline-offset: 3px; }
.muted { color: var(--ink3); }
.h3 { font-size: 20px; line-height: 28px; font-weight: 600; margin: 12px 0 8px; }
.section-lead { color: var(--ink2); max-width: 40em; margin-bottom: 32px; }
.card { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r); padding: 24px; }

/* ---------- plan page hero ---------- */
.plan-head { padding-bottom: 0; }
/* desktop: text left, price card right; phone: headline, then the card, then the text,
   so the price and the button are seen first */
.plan-hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); grid-template-areas: "head card" "body card";
  column-gap: 64px; align-items: start; padding-top: 32px; padding-bottom: 80px;
}
.plan-hero-head { grid-area: head; }
.plan-hero-body { grid-area: body; }
.plan-hero .price-card { grid-area: card; }
.plan-eyebrow { margin-bottom: 20px; }
.plan-hero .display { max-width: 16ch; }
.assure { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; line-height: 20px; color: var(--ink2); }
.assure li { display: flex; align-items: center; gap: 8px; }
.assure.small { flex-direction: column; gap: 6px; font-size: 13px; padding-top: 16px; border-top: 1px solid var(--rule2); }

.price-card {
  min-width: 0; background: var(--sheet); border: 1px solid var(--rule);
  border-top: 4px solid var(--plan-line, var(--plan-basic-line)); border-radius: var(--r); padding: 28px;
  box-shadow: 0 1px 2px rgba(17,26,32,.06), 0 8px 24px rgba(17,26,32,.06);
}
.price-card.basic { --plan-line: var(--plan-basic-line); }
.price-card.pro { --plan-line: var(--plan-pro); }
.price-card.expert { --plan-line: var(--plan-expert); }
.pc-form { display: flex; flex-direction: column; gap: 16px; }
.pc-big { font-size: 40px; line-height: 48px; font-weight: 600; letter-spacing: -.01em; }
.pc-big small { font-size: 16px; font-weight: 400; color: var(--ink3); letter-spacing: 0; }
.pc-sub { font-size: 14px; line-height: 20px; color: var(--ink2); }
.pc-sub s { color: var(--ink3); }
.pc-alt { font-size: 14px; color: var(--ink3); text-align: center; }
.pc-soon-h { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.price-card .pc-sub + .btn { margin-top: 16px; }

/* segmented switch (two radios) */
.seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--rule); border-radius: var(--r); padding: 4px; margin: 0; background: var(--quiet-bg); }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg label {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 8px; min-height: 44px; padding: 4px 8px;
  border-radius: 4px; font-size: 15px; font-weight: 500; color: var(--ink2); cursor: pointer; text-align: center;
}
.seg input:checked + label { background: var(--sheet); color: var(--ink); box-shadow: 0 1px 2px rgba(17,26,32,.12); font-weight: 600; }
.seg input:focus-visible + label { outline: 2px solid var(--blue); outline-offset: 2px; }
.seg-tag { display: inline-block; padding: 1px 8px; border-radius: 10px; background: var(--pass-bg); color: var(--pass); font-size: 12px; line-height: 18px; font-weight: 600; }

/* ---------- gains + note preview ---------- */
.gains-wrap { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.gains-text { flex: 1 1 440px; min-width: 0; }
.gains { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 24px 32px; margin-top: 24px; }
.gains h3, .tools h3, .howto h3 { font-size: 17px; line-height: 24px; font-weight: 600; margin-bottom: 4px; }
.gains p, .tools p, .howto p { font-size: 15px; line-height: 22px; color: var(--ink2); }
.note-preview { flex: 0 1 420px; min-width: 0; }
.np-sheet {
  background: #fff; border: 1px solid var(--rule); border-radius: 2px; padding: 20px 22px; aspect-ratio: 210 / 260; overflow: hidden;
  box-shadow: 0 2px 4px rgba(17,26,32,.06), 0 16px 40px rgba(17,26,32,.12); font-size: 9.5px; line-height: 13px; color: var(--ink);
  transform: rotate(-1deg);
}
.np-top { display: flex; justify-content: space-between; color: var(--ink3); border-bottom: 1px solid var(--rule); padding-bottom: 6px; margin-bottom: 10px; font-size: 8px; }
.np-title { font-size: 14px; line-height: 18px; font-weight: 600; }
.np-code { color: var(--blue); font-weight: 600; margin-bottom: 8px; }
.np-block, .np-trail { width: 100%; border-collapse: collapse; margin-bottom: 10px; }
.np-block th, .np-block td { border: 1px solid var(--rule); padding: 3px 5px; text-align: left; font-weight: 400; }
.np-block th { color: var(--ink3); width: 18%; }
.np-h { font-size: 8px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink3); margin-bottom: 4px; }
.np-verdict { display: flex; align-items: center; gap: 6px; background: var(--pass-bg); border-radius: 3px; padding: 5px 8px; margin-bottom: 8px; }
.np-verdict b { color: var(--pass); }
.np-eta { margin-left: auto; font-weight: 600; }
.np-trail td { border-top: 1px solid var(--rule2); padding: 3px 4px; vertical-align: top; }
.np-trail i { color: var(--ink3); font-style: normal; font-size: 8px; }
.np-trail .r { text-align: right; white-space: nowrap; }
.np-trail td:last-child { color: var(--blue); white-space: nowrap; font-size: 8px; }
.np-chk td { border-top: 1px solid var(--ink4); }

/* ---------- tools, steps, compare, faq, final ---------- */
.tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.tools li { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r); padding: 24px; }
.howto { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 24px; counter-reset: none; }
.howto li { position: relative; padding-left: 52px; }
.howto-n {
  position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--blue); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.cmp-scroll { position: relative; overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--r); background: var(--sheet); }
.cmp { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; line-height: 22px; }
.cmp th, .cmp td { padding: 14px 16px; border-bottom: 1px solid var(--rule2); text-align: center; }
.cmp tbody th { text-align: left; font-weight: 400; color: var(--ink2); }
.cmp thead th { vertical-align: bottom; }
.cmp .cur { background: var(--blue-bg); }
.cmp-this { display: block; margin-top: 6px; font-size: 12px; font-weight: 600; color: var(--blue); }
.cmp-no { color: var(--ink4); }
.cmp td svg { vertical-align: middle; }
.cmp-links td { border-bottom: 0; font-size: 14px; }
.faq-wrap .h2 { margin-bottom: 24px; }
.faq { max-width: 52em; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 40px 18px 0; font-weight: 600; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 8px; top: 14px; font-size: 22px; font-weight: 400; color: var(--blue); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 18px; color: var(--ink2); max-width: 46em; }
.final-cta {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px 48px;
  padding-top: 64px; padding-bottom: 80px;
}
.final-cta p { color: var(--ink2); }
.final-act { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }

/* ---------- forms and flows ---------- */
.flow { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
.flow.single { grid-template-columns: minmax(0, 520px); }
.flow-main { display: flex; flex-direction: column; gap: 16px; max-width: 560px; }
.flow-side { position: sticky; top: 24px; }
.stepper { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; color: var(--ink3); }
.stepper li { display: flex; align-items: center; gap: 8px; }
.stepper .sn {
  width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--rule); background: var(--sheet);
  display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600;
}
.stepper [aria-current] { color: var(--ink); font-weight: 600; }
.stepper [aria-current] .sn { background: var(--blue); border-color: var(--blue); color: #fff; }
.stepper .done .sn { background: var(--pass-bg); border-color: var(--pass); color: var(--pass); }
.form { display: flex; flex-direction: column; gap: 18px; }
.form h2 { font-size: 22px; line-height: 28px; font-weight: 600; }
.form h2:focus { outline: none; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 500; }
.field .opt { font-weight: 400; color: var(--ink3); }
.field input, .field select {
  min-height: 44px; padding: 8px 12px; border: 1px solid #8a99a3; border-radius: var(--r);
  font: inherit; color: var(--ink); background: var(--sheet);
}
.field input:focus-visible, .field select:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.field [aria-invalid="true"] { border-color: #a12a1f; box-shadow: 0 0 0 1px #a12a1f; }
.hint { font-size: 13px; line-height: 18px; color: var(--ink3); }
.field.check { flex-direction: row; align-items: flex-start; gap: 10px; }
.field.check input { width: 20px; height: 20px; min-height: 0; margin-top: 2px; flex-shrink: 0; accent-color: var(--blue); }
.field.check label { font-weight: 400; }
.code-input { font-size: 24px !important; letter-spacing: 8px; font-family: Menlo, Consolas, monospace !important; max-width: 220px; }
.err { color: #a12a1f; font-weight: 500; min-height: 0; }
.err:empty { display: none; }
.form-alt { font-size: 14px; color: var(--ink3); }
.notice { padding: 12px 16px; border-radius: var(--r); background: var(--blue-bg); color: var(--ink2); }
.notice:empty { display: none; }
.notice.warn { background: #faf1de; color: #8a5b12; }
.notice.ok { background: var(--pass-bg); color: var(--pass); font-weight: 500; }
.choice { position: relative; border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.choice legend { font-weight: 500; margin-bottom: 8px; padding: 0; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice label {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 8px 16px;
  border: 1px solid var(--rule); border-radius: var(--r); cursor: pointer; background: var(--sheet);
}
.choice input:checked + label { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); background: var(--blue-bg); }
.choice input:focus-visible + label { outline: 2px solid var(--blue); outline-offset: 2px; }
.choice .badge { align-self: center; }
.choice-price { color: var(--ink2); }
.sum-plan { margin: 12px 0 8px; }
.sum-price { font-size: 28px; line-height: 36px; }
.sum-price small { font-size: 14px; font-weight: 400; color: var(--ink3); }
.sum-sub { font-size: 14px; color: var(--ink2); margin-bottom: 16px; }
.flow-side .plan-list { border-top: 0; padding-top: 0; }
.flow-side .plan-list li::before { content: "✓"; color: var(--blue); font-weight: 700; margin-right: 2px; }
.turnstile:empty { display: none; }
.pay-summary { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px; border: 1px solid var(--blue); border-radius: var(--r); background: var(--blue-bg); }
.pay-line { display: flex; align-items: center; gap: 10px; font-size: 17px; }
.pay-today { color: var(--ink2); }
.pay-terms { margin-top: 4px; font-size: 14px; line-height: 20px; color: var(--ink3); }
.pay-summary .linklike { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- account ---------- */
.account { display: flex; flex-direction: column; gap: 24px; }
.acc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 24px; }
.acc-grid .card { display: flex; flex-direction: column; gap: 12px; }
.acc-plan { display: flex; align-items: center; gap: 12px; }
.acc-acts { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; margin-top: 4px; }
.acc-kv dd { text-align: left; }
.danger { max-width: 560px; }
.danger summary { cursor: pointer; color: #a12a1f; font-weight: 500; padding: 8px 0; }
.danger p { color: var(--ink2); margin: 8px 0 16px; }
.danger form { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.lock-card { max-width: 640px; }

/* ---------- legal text ---------- */
.legal { max-width: 46em; }
.legal h2 { font-size: 26px; line-height: 32px; font-weight: 600; margin: 48px 0 12px; scroll-margin-top: 16px; }
.legal h3 { font-size: 17px; line-height: 24px; font-weight: 600; margin: 24px 0 6px; }
.legal p, .legal li { color: var(--ink2); }
.legal ul { padding-left: 20px; display: grid; gap: 8px; }
.legal p + p { margin-top: 12px; }
.legal .notice { margin-bottom: 24px; }
.toc ol { padding-left: 20px; }

@media (max-width: 860px) {
  .plan-hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "card" "body"; row-gap: 24px; }
  .plan-hero .price-card { max-width: 480px; }
  .flow { grid-template-columns: minmax(0, 1fr); }
  .flow-side { position: static; order: -1; }
}
@media (max-width: 640px) {
  .plan-hero { padding-top: 16px; padding-bottom: 48px; }
  .pc-big { font-size: 34px; line-height: 40px; }
  .price-card { padding: 20px; }
  .note-preview { display: none; }
}

/* account in use on another computer (pages/in-use.njk) */
.in-use p { margin: 0 0 12px; }
.in-use-acts { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 16px; }
.in-use .small { font-size: 14px; }

/* site bar, signed in: "Basir's account" in the colour of the plan (worker/index.js) */
.btn[data-signed-in] { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; line-height: 38px; }
.btn.acct-free { border-color: var(--blue); color: var(--blue); }
.btn.acct-basic { background: #dbe7f1; border-color: #8fb0cb; color: #14456b; }
.btn.acct-basic:hover { border-color: #14456b; color: #14456b; }
.btn.acct-pro { background: #2a6aa0; border-color: #2a6aa0; color: #fff; }
.btn.acct-pro:hover { background: #1f5684; border-color: #1f5684; color: #fff; }
.btn.acct-expert { background: #0b2c47; border-color: #0b2c47; color: #fff; }
.btn.acct-expert:hover { background: #14456b; border-color: #14456b; color: #fff; }
.acc-admin { margin: 16px 0 0; font-size: 14px; }

/* figures of categories and modules (src/icons/): line drawings in the tile's colour,
   brand blue when available, grey when coming soon (BRAND.md, icon style) */
.tile-fig { display: flex; align-items: center; justify-content: center; width: 88px; height: 88px; border-radius: 4px; background: var(--blue-bg); color: var(--blue); margin-bottom: 4px; }
.tile.soon .tile-fig { background: #f1f4f6; color: #59666f; }
.tile-fig .fig { width: 76px; height: 76px; }
.modlist li.has-fig { grid-template-columns: auto minmax(0,1fr) auto; }
.mod-fig { display: flex; align-items: center; justify-content: center; width: 76px; height: 76px; border-radius: 4px; background: var(--blue-bg); color: var(--blue); }
.mod-fig .fig { width: 66px; height: 66px; }
@media (max-width: 640px) {
  .modlist li.has-fig { grid-template-columns: auto minmax(0,1fr); }
  .modlist li.has-fig .tags { grid-column: 2; }
}

/* tiles with a figure: the drawing on the left, the text on its right (as on the home page) */
.tile-text { display: flex; flex-direction: column; gap: 8px; min-width: 0; flex: 1; }
.tile-sum { font-size: 14px; line-height: 20px; color: var(--ink2); }
.tile.has-fig { flex-direction: row; align-items: center; gap: 20px; }
.tile.has-fig .tile-fig { margin-bottom: 0; flex-shrink: 0; }
.tile.has-fig .meta { margin-top: 4px; }

/* norm pages (/xx/norms/…) */
.norm-facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 0; }
.norm-facts dt { color: var(--ink3); font-size: 14px; }
.norm-facts dd { margin: 0; }
.modlist .clauses { font-variant-numeric: tabular-nums; }
.modlist .clauses .label { margin-right: 6px; }

/* "Online today" on the home page; the category introduction */
.live-now { margin-top: 12px; font-size: 15px; line-height: 22px; color: var(--ink2); }
.live-now a { font-weight: 600; }
.cat-intro { max-width: 46em; margin-top: 12px; color: var(--ink2); }
.cat-intro a { font-weight: 600; }

/* "About this check" on the presentation page of a paid module: the same
   folded page text as on module pages (copied from module-extra.css; keep the
   two in step) (scripts/module-text.js). Deliberately quiet: small type, the page's grey a
   shade darker, no white sheet, so it never competes with the calculator. */
.set-about { margin: 24px 0 0; color: var(--ink3, #59666f); font-size: 12px; line-height: 18px; }
.set-about > summary {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; cursor: pointer; list-style: none;
  padding: 8px 12px; border-radius: 4px; background: #dfe5e8; color: var(--ink3, #59666f);
}
.set-about > summary::-webkit-details-marker { display: none; }
.set-about > summary::before { content: "▸"; font-size: 10px; color: var(--ink4, #8a99a3); }
.set-about[open] > summary::before { content: "▾"; }
.set-about > summary:hover { color: var(--ink2, #3d4a53); }
.set-about > summary:focus-visible { outline: 2px solid var(--blue, #14456b); outline-offset: 2px; }
.set-about h2 { display: inline; font-size: 12px; line-height: 18px; font-weight: 600; margin: 0; }
.set-about .set-sum-hint { font-size: 12px; font-weight: 400; }
.set-about-in { background: #dfe5e8; border-radius: 0 0 4px 4px; margin-top: -4px; padding: 8px 12px 12px 26px; }
.set-about h3 { font-size: 12px; line-height: 18px; font-weight: 600; color: var(--ink2, #3d4a53); margin: 14px 0 4px; }
.set-about h4 { font-size: 12px; line-height: 18px; font-weight: 600; margin: 10px 0 2px; }
.set-about p, .set-about ul { margin: 0 0 8px; max-width: 110ch; }
.set-about ul { padding-left: 16px; }
.set-about li { margin: 0 0 3px; }
.set-about b, .set-about strong { font-weight: 600; }
.set-about a { color: var(--ink2, #3d4a53); text-decoration: underline; }
.set-about .set-lead { font-size: 12px; color: var(--ink2, #3d4a53); }
.set-about .set-dates { margin: 12px 0 0; }
.set-ex-wrap { overflow-x: auto; margin: 0 0 8px; }
.set-ex { width: 100%; max-width: 900px; border-collapse: collapse; margin: 0 0 10px; font-size: 12px; line-height: 16px; }
.set-ex caption { text-align: left; font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; padding: 0 0 4px; }
.set-ex th, .set-ex td { text-align: left; vertical-align: top; padding: 3px 6px; border-top: 1px solid #ccd6dc; font-weight: 400; }
.set-ex thead th { border-top: 0; font-size: 11px; }
.set-ex tbody th { width: 52%; }
.set-ex td.r { white-space: nowrap; }
.set-ex .f { display: block; font-size: 11px; }
.set-ex td { font-variant-numeric: tabular-nums; }
.set-ex tr.chk th, .set-ex tr.chk td { font-weight: 600; }
@media (max-width: 640px) {
  .set-ex tbody th { width: auto; }
}

@media print { .set-about { display: none !important; } }
