/* QB Med School member site. Brand: navy + metallic silver, Saira Condensed headings,
   Source Sans 3 for reading, IBM Plex Mono for numbers. Matches the throw reports. */
:root {
  --navy: #15254b; --navy-2: #22397a; --silver: #9ba1a6;
  --silver-bar: linear-gradient(90deg, #7b8387, #e2e3e4 50%, #7b8387);
  --bg: #f2f4f8; --surface: #ffffff; --surface-2: #e8ebf1; --line: #d9deea;
  --ink: #10182b; --ink-2: #3d4a66; --ink-3: #6b7690;
  --accent: #15254b; --accent-ink: #ffffff; --accent-soft: #e6eaf2;
  --good: #1c7651; --good-soft: #ddf1e6; --warn: #9f5714; --warn-soft: #f7ecdf; --bad: #a5392d; --bad-soft: #f8e5e2;
  --display: "Saira Condensed", "Arial Narrow", sans-serif;
  --body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --r: 12px; --r-sm: 8px;
  --shadow: 0 1px 2px rgba(16,24,43,.05), 0 10px 26px -16px rgba(16,24,43,.35);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0b1020; --surface: #121a2c; --surface-2: #1a2338; --line: #27324a;
  --ink: #edf0f5; --ink-2: #b6bfcd; --ink-3: #8a94a6;
  --accent: #c9d2e6; --accent-ink: #0b1020; --accent-soft: #1b2540;
  --good: #5fd29f; --good-soft: #0f2a1f; --warn: #e39a5b; --warn-soft: #2a1d10; --bad: #e48577; --bad-soft: #2c1512;
  --shadow: 0 1px 2px rgba(0,0,0,.5), 0 12px 30px -16px rgba(0,0,0,.8);
  color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: #0b1020; --surface: #121a2c; --surface-2: #1a2338; --line: #27324a;
  --ink: #edf0f5; --ink-2: #b6bfcd; --ink-3: #8a94a6;
  --accent: #c9d2e6; --accent-ink: #0b1020; --accent-soft: #1b2540;
  --good: #5fd29f; --good-soft: #0f2a1f; --warn: #e39a5b; --warn-soft: #2a1d10; --bad: #e48577; --bad-soft: #2c1512;
  color-scheme: dark; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; min-height: 100vh; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; line-height: 1.04; letter-spacing: .01em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); text-transform: uppercase; }
h2 { font-size: 1.7rem; text-transform: uppercase; }
h3 { font-size: 1.25rem; }
p { margin: 0; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-2); }
.small { font-size: .9rem; }
.eyebrow { font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }

/* masthead */
.mast { background: #15254b; color: #fff; padding: calc(env(safe-area-inset-top, 0px) + 12px) 16px 12px; border-bottom: 4px solid transparent; border-image: var(--silver-bar) 1; }
.mast-in { max-width: 1040px; margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.mast a.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; min-width: 0; }
.mast .crest { width: 40px; height: 40px; border-radius: 10px; background: linear-gradient(160deg, #f6f8fb, #cdd6e0); display: grid; place-items: center; flex: none; }
.mast .crest img { width: 32px; height: auto; display: block; }
.mast .bn { font-family: var(--display); font-weight: 700; font-size: 1.35rem; text-transform: uppercase; letter-spacing: .02em; line-height: 1; }
.mast .bn small { display: block; font-family: var(--mono); font-weight: 400; font-size: .64rem; letter-spacing: .16em; color: #b9c0cf; margin-top: 3px; }
.mast nav { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.mast nav a, .mast nav button { color: #dfe4ef; text-decoration: none; font: 600 .95rem var(--body); padding: 8px 12px; border-radius: 999px; background: none; border: 0; cursor: pointer; }
.mast nav a:hover, .mast nav button:hover { background: rgba(255,255,255,.1); color: #fff; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 28px 16px calc(env(safe-area-inset-bottom, 0px) + 64px); display: grid; gap: 24px; }
.narrow { max-width: 460px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); min-width: 0; }
.card > * + * { margin-top: 12px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }

/* forms */
form { display: grid; gap: 14px; }
label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; color: var(--ink-2); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], select, textarea {
  width: 100%; font: 400 16px var(--body); color: var(--ink); background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 11px 13px; min-height: 46px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy-2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--navy-2) 18%, transparent); background: var(--surface); }
input[readonly] { color: var(--ink-2); }
.hint { font-size: .86rem; color: var(--ink-3); font-weight: 400; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row > .grow { flex: 1; min-width: 160px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 1rem var(--body); text-decoration: none;
  padding: 12px 20px; min-height: 46px; border-radius: 999px; border: 1.5px solid var(--accent); background: var(--accent); color: var(--accent-ink);
  cursor: pointer; transition: transform .12s, filter .15s; }
.btn:hover { filter: brightness(1.12); }
.btn:active { transform: scale(.98); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink-3); filter: none; }
.btn.sm { padding: 7px 14px; min-height: 36px; font-size: .9rem; }
.btn.danger { background: transparent; color: var(--bad); border-color: var(--bad); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--ink-2); text-decoration: underline; cursor: pointer; }

.flash { padding: 12px 14px; border-radius: var(--r-sm); font-size: .95rem; }
.flash.ok { background: var(--good-soft); color: var(--good); }
.flash.err { background: var(--bad-soft); color: var(--bad); }
.flash.note { background: var(--accent-soft); color: var(--ink-2); }

.chip { display: inline-flex; align-items: center; gap: 6px; font: 600 .78rem var(--body); padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.chip.good { background: var(--good-soft); color: var(--good); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.bad { background: var(--bad-soft); color: var(--bad); }

/* landing */
.hero { background: #15254b; color: #fff; margin: -28px -16px 0; padding: 44px 16px 52px; }
.hero-in { max-width: 1040px; margin: 0 auto; display: grid; gap: 16px; }
.hero h1 { color: #fff; }
.hero p.lede { color: #dfe4ef; font-size: 1.15rem; max-width: 58ch; }
.hero .btn { background: #fff; color: #15254b; border-color: #fff; }
.hero .btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.hero .eyebrow { color: #b9c0cf; }
.item { display: grid; gap: 8px; align-content: start; }
.item .k { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.item ul { margin: 0; padding-left: 18px; color: var(--ink-2); }
.price { font-family: var(--display); font-weight: 700; font-size: 2.6rem; line-height: 1; }
.price small { font-size: 1rem; color: var(--ink-3); font-family: var(--body); font-weight: 400; margin-left: 6px; }

/* order form */
.bump { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; padding: 16px; border: 2px dashed var(--navy-2); border-radius: var(--r); background: var(--accent-soft); cursor: pointer; color: var(--ink); font-weight: 400; }
.bump input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: #15254b; }
.bump b { font-family: var(--display); font-size: 1.25rem; text-transform: uppercase; letter-spacing: .01em; }
.total { display: flex; justify-content: space-between; align-items: baseline; border-top: 2px solid var(--ink); padding-top: 12px; font-weight: 700; }
.total .mono { font-size: 1.4rem; }

/* dashboard */
.ath { display: grid; gap: 14px; }
.ath-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 10px; }
.app { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: var(--r-sm); background: var(--bg); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.app:hover { border-color: var(--ink-3); }
.app .ic { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; flex: none; color: #fff; }
.app .ic svg { width: 24px; height: 24px; }
.app b { display: block; font-family: var(--display); font-size: 1.2rem; text-transform: uppercase; line-height: 1.05; }
.app span { font-size: .86rem; color: var(--ink-3); }
.ic.clinic { background: #111; color: #FFD60A; }
.ic.vitals { background: #102445; color: #3fd59c; }
.ic.pack { background: #15254b; color: #fff; }

/* tables (coach) */
.tw { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-sm); }
table { width: 100%; border-collapse: collapse; font-size: .94rem; }
th { text-align: left; font-size: .8rem; color: var(--ink-3); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface); }
td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
tr:last-child td { border-bottom: 0; }
td b { color: var(--ink); }
details summary { cursor: pointer; font-weight: 700; }

footer.site { color: var(--ink-3); font-size: .85rem; text-align: center; padding: 8px 16px 40px; }
footer.site a { color: var(--ink-3); }

/* the Pack */
.pack { line-height: 1.6; }
.pack h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 6px 0 10px; }
.pack h2 { margin: 36px 0 12px; padding-top: 18px; border-top: 2px solid var(--line); }
.pack h3 { margin: 22px 0 8px; }
.pack p { margin: 0 0 12px; }
.pack blockquote { margin: 0 0 14px; padding: 12px 16px; border-left: 4px solid var(--navy-2); background: var(--accent-soft); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.pack blockquote ol, .pack blockquote ul { margin: 0; padding-left: 20px; }
.pack table { margin: 0 0 16px; display: block; overflow-x: auto; }
.pack td, .pack th { border: 1px solid var(--line); min-width: 90px; }
.pack td:empty::after { content: "\00a0"; }
.licensed { font-family: var(--mono); font-size: .74rem; color: var(--ink-3); letter-spacing: .04em; }
@media print {
  .mast, .noprint, footer.site { display: none !important; }
  body { background: #fff; color: #000; }
  .card { box-shadow: none; border: 0; padding: 0; }
  .pack h2 { break-before: page; border: 0; }
  .pack table { display: table; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* fixes after the phone check */
.app b { color: var(--ink); }
.app > span:last-child > span { display: block; }
.mast nav a, .mast nav button { white-space: nowrap; }
@media (max-width: 520px) {
  .mast .bn small { display: none; }
  .mast .bn { font-size: 1.15rem; }
  .mast nav a, .mast nav button { padding: 8px 9px; }
}

/* "all sales are final" agreement at checkout */
.ck-policy { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; font-weight: 400; font-size: .92rem; color: var(--ink-2); }
.ck-policy input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: #15254b; }
.ck-policy a { color: var(--ink); font-weight: 600; }

/* Pack: linked contents, jump-back links, workbook download */
.pack h2 { scroll-margin-top: 16px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.pack h2 .toc-back { font: 600 .8rem var(--body); text-transform: none; color: var(--ink-3); text-decoration: none; margin-left: auto; }
.pack h2 .toc-back:hover { color: var(--ink); text-decoration: underline; }
.pack #contents + blockquote a { color: var(--ink); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line); }
.pack #contents + blockquote a:hover { border-bottom-color: var(--ink); }
.pack #contents + blockquote li { padding: 3px 0; }
.pack .wb-note { font-size: .92rem; color: var(--ink-2); background: var(--good-soft); border-radius: var(--r-sm); padding: 8px 12px; }
.pack .wb-note a { color: var(--ink); font-weight: 700; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.wb-card .wb-row { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; }
.wb-card .grow { flex: 1; min-width: 240px; }
.wb-card h3 { margin: 4px 0 6px; }
.wb-card .wb-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.wb-card { scroll-margin-top: 16px; }

/* ===================================================================
   Motion tokens: every transition on the site uses these.
   =================================================================== */
:root {
  --dur-press: 150ms; --dur-hover: 150ms; --dur-move: 220ms; --dur-swap: 180ms;
  --ease-out: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}
.btn { transition: transform var(--dur-press) var(--ease-out), filter var(--dur-hover) ease, border-color var(--dur-hover) ease, background-color var(--dur-hover) ease; }
.btn:active { transform: scale(.96); }
.btn:hover { filter: none; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { filter: brightness(1.12); }
  .btn.ghost:hover { filter: none; border-color: var(--ink-3); }
}
.mast nav a[aria-current="page"] { background: rgba(255,255,255,.14); color: #fff; }

/* ===================================================================
   Coach page
   =================================================================== */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1px; margin: 0;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.stats div { background: var(--surface); padding: 14px 16px; }
.stats dt { font-size: .82rem; color: var(--ink-3); }
.stats dd { margin: 4px 0 0; font-size: 1.7rem; font-weight: 500; line-height: 1; color: var(--ink); }

details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
details.card > summary { display: flex; align-items: center; gap: 14px; }
details.card > summary::after { content: ""; margin-left: auto; flex: none; width: 9px; height: 9px;
  border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3);
  transform: translateY(-2px) rotate(45deg); transition: transform var(--dur-move) var(--ease-in-out); }
details.card[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
details.card > summary > span { display: grid; gap: 2px; }
details.card > summary b { font-family: var(--display); font-size: 1.25rem; font-weight: 700; }
details.card:not([open]) { padding-block: 18px; }
details.card[open] > summary { margin-bottom: 18px; }

.grant-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; align-items: start; }
.grant-form .more, .grant-form .form-end { grid-column: 1 / -1; }
.grant-form .opt { font-weight: 400; color: var(--ink-3); font-size: .85rem; }
.more > summary { display: inline-flex; color: var(--ink-2); font-size: .92rem; font-weight: 600; }
.more > summary::before { content: "+"; width: 1.1em; }
.more[open] > summary::before { content: "−"; }
.more > label { margin-top: 12px; max-width: 420px; }
.form-end { display: flex; justify-content: flex-end; }
@media (max-width: 640px) { .grant-form { grid-template-columns: minmax(0, 1fr); } .form-end .btn { width: 100%; } }

.sec-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.search { display: flex; align-items: center; gap: 8px; flex: 1; max-width: 420px; min-width: 240px; }
.search input { min-height: 40px; padding: 8px 12px; }
.search a { color: var(--ink-2); white-space: nowrap; }

.fam { border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg); }
.fam + .fam { margin-top: 10px; }
.fam-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px;
  padding: 12px 14px; border-bottom: 1px solid var(--line); }
.fam-head .who { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; min-width: 0; }
.fam-head .who b { color: var(--ink); }
.fam-acts { display: flex; gap: 8px; }
.fam-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 14px 24px; padding: 12px 14px; }
@media (max-width: 700px) { .fam-body { grid-template-columns: minmax(0, 1fr); } }
.fam .k { display: block; font-size: .78rem; font-weight: 700; color: var(--ink-3); margin-bottom: 6px; }
ul.plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ath-line { display: grid; grid-template-columns: 1fr auto; gap: 0 10px; }
.ath-line .id { grid-column: 1 / -1; font-size: .72rem; color: var(--ink-3); }
.acts, .ent { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.acts a, .linkbtn { font-size: .9rem; color: var(--ink-2); }
.danger-text { color: var(--bad) !important; }
.ent .meta { font-size: .9rem; color: var(--ink-2); }
.ent.off { opacity: .6; }
.ent form, .acts form, .fam-acts form { display: inline; margin: 0; }
.chip.acc { background: var(--accent-soft); color: var(--ink); }
.btn.quiet-danger { background: transparent; color: var(--bad); border-color: var(--line); }
@media (hover: hover) and (pointer: fine) { .btn.quiet-danger:hover { border-color: var(--bad); filter: none; } }

.empty-state { display: grid; gap: 4px; justify-items: start; padding: 22px 16px; border: 1px dashed var(--line); border-radius: var(--r-sm); }

details.recent .tw { margin-top: 4px; }

/* Invite / reset link with a copy button: the label swaps in place, both stacked in one cell */
.linkbox { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; justify-content: space-between; }
.linkbox > div { display: grid; gap: 2px; min-width: 0; flex: 1; }
.linkbox .url { word-break: break-all; font-size: .85rem; color: var(--ink); }
[data-copy] { display: inline-grid; }
[data-copy] .lbl { grid-area: 1 / 1; transition: opacity var(--dur-swap) var(--ease-out), transform var(--dur-swap) var(--ease-out); }
[data-copy] .done { opacity: 0; transform: translateY(4px); }
[data-copy].copied .lbl:not(.done) { opacity: 0; transform: translateY(-4px); }
[data-copy].copied .done { opacity: 1; transform: none; }

/* Coach page, second pass */
details.card > summary .muted { font-weight: 400; }
.ent { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: baseline; }
.ent .chip { grid-column: 1 / -1; justify-self: start; }
.ent form { justify-self: end; }
.ent + .ent { padding-top: 8px; border-top: 1px solid var(--line); }
.search { max-width: 460px; }
@media (max-width: 640px) {
  .page-head .btn { width: 100%; }
  .search { max-width: none; }
  .fam-head .fam-acts { width: 100%; }
}

/* ===================================================================
   Family home
   =================================================================== */
.h-home { font-size: clamp(2rem, 5vw, 2.8rem); }
.coach-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding: 10px 14px; border-radius: var(--r-sm);
  background: var(--accent-soft); font-size: .92rem; }
.coach-strip .k { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.coach-strip a { color: var(--ink); font-weight: 600; }

.ath-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.ath-access { margin-left: auto; font-size: .86rem; color: var(--ink-3); }
.ath-apps { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 10px; }
@media (max-width: 640px) { .ath-apps { grid-template-columns: minmax(0, 1fr); } }
.app { transition: border-color var(--dur-hover) ease, transform var(--dur-press) var(--ease-out); }
.app:active { transform: scale(.98); }
.app .go { margin-left: auto; width: 20px; height: 20px; color: var(--ink-3); flex: none; }
.app .go svg { width: 100%; height: 100%; display: block; }
.app.primary { background: #15254b; border-color: #15254b; color: #fff; }
.app.primary b { color: #fff; }
.app.primary span span, .app.primary .go { color: #c9d2e6; }
.app.primary .ic.vitals { background: rgba(255,255,255,.12); }
:root[data-theme="dark"] .app.primary { background: #1b2f5e; border-color: #2c4380; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .app.primary { background: #1b2f5e; border-color: #2c4380; } }
@media (hover: hover) and (pointer: fine) {
  .app:hover { border-color: var(--ink-3); }
  .app.primary:hover { border-color: #3a5296; }
}
.ath-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
@media (max-width: 640px) { .ath-cta .btn { width: 100%; } }

.start h2 { margin-top: 4px; }
.add-form { display: grid; grid-template-columns: minmax(0, 1fr) 140px auto; gap: 12px 14px; align-items: end; }
.add-form .hint { grid-column: 1 / -1; margin: 0; }
@media (max-width: 640px) { .add-form { grid-template-columns: minmax(0, 1fr) 120px; } .add-form .btn { grid-column: 1 / -1; } }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 12px; }
.tile { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r); background: var(--surface);
  border: 1px solid var(--line); text-decoration: none; color: var(--ink); box-shadow: var(--shadow);
  transition: border-color var(--dur-hover) ease, transform var(--dur-press) var(--ease-out); }
.tile:active { transform: scale(.98); }
@media (hover: hover) and (pointer: fine) { .tile:hover { border-color: var(--ink-3); } }
.tile .ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; flex: none; color: #fff; }
.tile .ic svg { width: 22px; height: 22px; }
.tile b { display: block; font-weight: 700; }
.tile span span { display: block; font-size: .88rem; color: var(--ink-3); }
.ic.cal { background: #2c4380; color: #fff; }

details.fold:not([open]) { padding-block: 16px; }
details.fold summary b { font-family: var(--body) !important; font-size: 1.02rem !important; }
.steps-list { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--ink-2); }

/* ===================================================================
   Pack page
   =================================================================== */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.toolbar .back { color: var(--ink-2); font-weight: 600; text-decoration: none; padding: 8px 0; }
@media (hover: hover) and (pointer: fine) { .toolbar .back:hover { color: var(--ink); } }
.wb-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 24px; align-items: center; }
.wb-card > * + * { margin-top: 0; }
.wb-copy h3 { margin: 4px 0; }
.wb-card .wb-hint { grid-column: 1 / -1; margin: 0; }
@media (max-width: 720px) {
  .wb-card { grid-template-columns: minmax(0, 1fr); }
  .wb-card .wb-btns { display: grid; }
}

/* Pricing: three plans, the Kit featured */
.plans { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 16px; align-items: stretch; }
.plans .plan { display: flex; flex-direction: column; }
.plans .plan .btn { margin-top: auto; }
.plans .plan.featured { border: 2px solid #15254b; }
:root[data-theme="dark"] .plans .plan.featured { border-color: var(--accent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .plans .plan.featured { border-color: var(--accent); } }
@media (max-width: 860px) { .plans { grid-template-columns: minmax(0, 1fr); } }
form.inline { display: inline; margin: 0; }
.ath-access .linkbtn { font-size: inherit; }
