:root {
  --ground: #F3EFE5;
  --paper: #FBF9F4;
  --white: #FFFFFF;
  --card: #FBF8F2;
  --ink: #15201A;
  --text2: #3B463F;
  --muted: #4A544D;
  --line: #D9D2C1;
  --line2: #E4DDCD;
  --line3: #F0EBDF;
  --rule: #D9D2C1;
  --rule-strong: #C9BCA8;
  --line-strong: #C9BCA8;
  --accent: #1E4A37;
  --accent-deep: #0F2C20;
  --dark: #13241C;
  --brass: #9A6B22;
  --brass-soft: rgba(154, 107, 34, 0.12);
  --mint: #CFE3D3;
  --on-dark: #C9D0C9;
  --field: #FFFFFF;
  --ok: #15402F;
  --ok-bg: #E1EDE3;
  --warn: #7A5316;
  --warn-bg: #F6EBD6;
  --bad: #9B2C1F;
  --bad-bg: #f9e9e7;
  --shadow: 0 1px 2px rgba(21, 32, 26, 0.04), 0 8px 28px rgba(21, 32, 26, 0.07);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "Hanken Grotesk", "Helvetica Neue", Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 4px; }
a:hover { color: var(--accent-deep); }
h1, h2, h3 { font-family: "Instrument Serif", Georgia, "Times New Roman", serif; font-weight: 400; line-height: 1.1; letter-spacing: -0.02em; }
h1 { font-size: clamp(36px, 4vw, 52px); margin: 0 0 12px; }
h2 { font-size: clamp(28px, 3vw, 40px); margin: 0 0 10px; }
h3 { font-size: 24px; margin: 0 0 8px; }
p { margin: 0 0 14px; }
.lede { color: var(--muted); margin: 0 0 30px; }
.eyebrow {
  font-family: "IBM Plex Mono", Menlo, Consolas, monospace;
  font-size: 13px; letter-spacing: .08em; color: var(--muted);
  text-transform: uppercase; margin-bottom: 14px; display: block;
}
.serif { font-family: "Instrument Serif", Georgia, serif; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.mono { font-variant-numeric: tabular-nums; letter-spacing: 0.08em; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 28px 20px 96px; }
.wrap-wide { max-width: 1120px; margin: 0 auto; padding: 28px 20px 96px; }
/* Two-column field layout so wide wizard screens use the canvas deliberately */
.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.5rem; }
@media (max-width: 760px) { .fgrid { grid-template-columns: 1fr; } }

/* Wizard chrome */
.wizard-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0; }
.wizard-top .step { font-family: "IBM Plex Mono", Menlo, Consolas, monospace; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* "Email me a link to come back" — on every step, because the moment somebody decides to
   leave is not a moment the page gets to choose. It reads as a link, and is a button because
   that is what it does; the underline is the only thing borrowed from a link. */
.resume-open { background: none; border: 0; padding: 0; font: inherit; font-size: 13px; color: var(--accent); text-decoration: underline; cursor: pointer; }
.resume-open:hover { color: var(--accent2, var(--accent)); }
.resume-card { margin: 0 0 2rem; }
.resume-title { margin: 0 0 .35rem; font-weight: 600; }
.resume-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .75rem; align-items: end; margin-top: .9rem; }
.resume-row .notice { margin-top: .9rem; }
.resume-card .notice { margin-top: .9rem; }
@media (max-width: 620px) { .resume-row { grid-template-columns: 1fr; } .wizard-top { flex-wrap: wrap; } }

/* A field only a bot fills. Hidden from people by taking it off the page rather than by
   display:none, which some bots skip over; out of the tab order and out of the
   accessibility tree so nobody arrives at it by keyboard or screen reader. */
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.bar { height: 4px; background: var(--line2); border-radius: 999px; margin: 0 0 2.2rem; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--accent); transition: width .25s ease; }

/* Form elements */
.field { display: flex; flex-direction: column; gap: .3rem; }
.field .lab { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.field .req { color: var(--bad); margin-left: .2rem; }
.field .hint { font-size: 13px; color: var(--muted); }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="url"], input[type="tel"], input[type="date"], select, textarea {
  width: 100%; font-family: inherit; font-size: 16px; color: var(--ink);
  background: var(--field); border: 1.5px solid var(--line); border-radius: 12px;
  padding: .65rem .8rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(30,74,55,.18); }
input::placeholder, textarea::placeholder { color: var(--line); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M1 4h10L6 9z' fill='%234A544D'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .85rem center; padding-right: 2.2rem; }
textarea { min-height: 120px; resize: vertical; }
input[type="file"] { font-size: 14px; }
label input[type="radio"], label input[type="checkbox"] { margin-right: .5rem; }

button.primary {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1;
  min-height: 44px; padding: 0 22px;
  border-radius: 999px; border: 0; cursor: pointer;
  background: var(--accent); color: var(--paper);
}
button.primary:hover { background: var(--accent-deep); }
button.secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1;
  min-height: 44px; padding: 0 22px;
  border-radius: 999px; border: 1px solid var(--line); cursor: pointer;
  background: transparent; color: var(--ink);
}
button.secondary:hover { background: var(--paper); border-color: var(--line2); }
button.ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: inherit; font-size: 15px; font-weight: 600;
  min-height: 36px; padding: .45rem .9rem;
  border-radius: 999px; border: 0; cursor: pointer;
  background: transparent; color: var(--muted);
}
button.ghost:hover { color: var(--ink); }
button.small { padding: .35rem .7rem; font-size: 13px; min-height: 30px; }
button.danger { background: var(--bad); color: #fff; border-color: var(--bad); }
button.danger:hover { background: #7f2620; }
button:disabled { opacity: .55; cursor: not-allowed; }

.choice {
  display: block; position: relative; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem 1rem 3rem;
  background: var(--paper); transition: border-color .15s ease, box-shadow .15s ease;
}
.choice:hover { border-color: var(--line-strong); }
.choice input { position: absolute; left: 1.1rem; top: 1.15rem; }
.choice .t { display: block; font-weight: 600; font-size: 16px; color: var(--ink); }
.choice .d { display: block; font-size: 14px; color: var(--muted); margin-top: .3rem; }
.choice.on { border-color: var(--accent); background: var(--ok-bg); box-shadow: 0 0 0 1px var(--accent); }

.drop {
  border: 2px dashed var(--line); border-radius: 14px; padding: 1.5rem 1.1rem;
  background: var(--paper); text-align: center; transition: border-color .15s ease, background .15s ease;
}
.drop.dragover { border-color: var(--accent); background: var(--ok-bg); }
.drop .file-btn { font-size: 14px; font-weight: 600; color: var(--accent); cursor: pointer; }
.drop .file-btn:hover { color: var(--accent-deep); }
.drop .picked { font-size: 14px; color: var(--ink); margin-top: .5rem; }
.drop .none { font-size: 14px; color: var(--muted); }
.drop .rm { font-size: 13px; color: var(--bad); cursor: pointer; margin-left: .5rem; }

/* Card and panel */
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 18px;
  padding: 1.25rem; box-shadow: 0 1px 2px rgba(21, 32, 26, 0.04);
}
.card + .card { margin-top: 1rem; }
.panel-title {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  margin-bottom: 1rem; flex-wrap: wrap;
}
.panel-title h3 { font-family: "Instrument Serif", Georgia, serif; font-size: 22px; margin: 0; }
.panel-title .spacer { flex: 1; }

/* Status pills */
.pill {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: 13px; font-weight: 600; padding: .25rem .55rem;
  border-radius: 999px; border: 1px solid transparent;
}
.pill.ok { background: var(--ok-bg); color: var(--ok); border-color: #c9dfd0; }
.pill.warn { background: var(--warn-bg); color: var(--warn); border-color: #e8d8ac; }
.pill.bad { background: var(--bad-bg); color: var(--bad); border-color: #e6c3bf; }
.pill.brass { background: #f6eeda; color: var(--brass); border-color: #e5d3a8; }

/* Badges for dashboard */
.badge {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: 13px; font-weight: 600; letter-spacing: .03em;
  padding: .25rem .6rem; border-radius: 999px;
  background: var(--line3); color: var(--text2);
  border: 1px solid transparent; white-space: nowrap;
}
.badge-gold { background: #f6eeda; color: var(--brass); border-color: #e5d3a8; }
.badge-ok { background: var(--ok-bg); color: var(--ok); border-color: #c9dfd0; }
.badge-lg { font-size: 14px; padding: .35rem .75rem; }
.badge-sm { font-size: 12px; padding: .2rem .5rem; }

.badge-payment { font-weight: 500; }

/* What ticking a claim costs, said on the line that offers it: "+2 questions, 1 photo". Small
   and quiet, because it is a fact about the claim rather than a warning about it. */
.effort {
  font-size: 12px; font-weight: 600; letter-spacing: .01em;
  color: var(--muted); background: var(--line3);
  border-radius: 999px; padding: .15rem .5rem; white-space: nowrap;
}

/* Alerts and notices */
.note { font-size: 14px; color: var(--muted); margin: 0 0 1rem; }
.notice { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1.05rem; font-size: 15px; color: var(--text2); }
.notice.ok { background: var(--ok-bg); border-color: #c9dfd0; color: var(--ok); }
.notice.bad { background: var(--bad-bg); border-color: #e6c3bf; color: var(--bad); }
.err { color: var(--bad); font-size: 15px; margin-top: .5rem; }
.err[hidden] { display: none; }

/* Summary tables and lists */
.summary { border-top: 1px solid var(--line); }
.row { display: flex; gap: 18px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.row .k { width: 170px; flex: none; color: var(--muted); font-size: 15px; }
.row .v { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.row .v em { font-style: normal; color: var(--muted); }

/* Navigation */
.nav { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; padding-top: .5rem; margin-top: 1.5rem; border-top: 1px solid var(--line); }
.nav .spacer { flex: 1; }

/* App cards */
.app-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 1.25rem;
  margin-bottom: 1rem; display: flex; flex-direction: column; gap: .75rem;
}
.app-card .app-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.app-card .app-title { font-family: "Instrument Serif", Georgia, serif; font-size: 22px; margin: 0; }
.app-card .app-meta { font-size: 14px; color: var(--muted); }
.app-card .app-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .25rem; }

/* Membership / cert panels */
.membership-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 1.25rem;
  display: flex; flex-direction: column; gap: .5rem;
}
.membership-card .mem-name { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.membership-card .mem-price { font-family: "Instrument Serif", Georgia, serif; font-size: 42px; line-height: 1; }
.membership-card .mem-detail { font-size: 15px; color: var(--text2); }

/* Seal downloads dashboard */
.seal-downloads { display: grid; gap: .75rem; }
.seal-download-group { display: grid; gap: .35rem; }
.seal-download-heading { margin: 0; font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.seal-download-note { margin: 0; max-width: 46ch; font-size: 14px; color: var(--text2); }
.seal-download-list { display: grid; gap: .4rem; }
.seal-download-row { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.seal-download-label { min-width: 4.5rem; font-size: 14px; color: var(--muted); }

/* Certificate PDF preview panel */
.cert-preview { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 1.25rem; }

/* Dashboard tables */
table.list { width: 100%; border-collapse: collapse; font-size: 15px; }
table.list th { text-align: left; font-weight: 600; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 8px 10px; border-bottom: 2px solid var(--line-strong); }
table.list td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.list th, table.list td { overflow-wrap: anywhere; }

/* Empty / skeleton */
.empty { text-align: center; padding: 3rem 1.5rem; border: 1px dashed var(--line); border-radius: 18px; background: var(--paper); color: var(--muted); }
.skeleton {
  background: linear-gradient(90deg, var(--line3) 25%, var(--paper) 50%, var(--line3) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.3s infinite linear;
  border-radius: 7px;
  min-height: 1rem;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Pricing */
.price { display: flex; align-items: baseline; gap: .25rem; }
.price strong { font-family: "Instrument Serif", Georgia, serif; font-size: 52px; font-weight: 400; line-height: 1; letter-spacing: -0.02em; }
.price .per { font-size: 18px; color: var(--muted); }
.includes { list-style: none; margin: 1rem 0 0; padding: 0; }
.includes li { display: flex; gap: .5rem; align-items: flex-start; font-size: 14px; color: var(--text2); padding: .35rem 0; }
.includes li::before { content: "✓"; color: var(--accent); font-weight: 700; }

/* Admin-specific overrides (if this file is ever loaded on admin, keep it usable) */
.admin-shell { display: grid; grid-template-columns: 220px 1fr; gap: 28px; max-width: 100%; }
.admin-shell > * { min-width: 0; }
.admin-shell > #content { overflow-x: auto; }
@media (max-width: 860px) { .admin-shell { grid-template-columns: 1fr; } }

/* Mobile overflow guards */
.wrap, .wrap-wide { max-width: 100%; padding-inline: clamp(16px, 5.5vw, 80px); }
@media (max-width: 760px) { .fgrid { grid-template-columns: 1fr; } }

/* A price on sale, the way a shop writes one: the normal price struck through,
   the sale price beside it, and a word saying which is which. The `font:inherit`
   lines undo the page's "every span inside a price" rules, so the sale price is
   exactly the size of the price it replaced, and nothing at all changes when
   there is no sale — the renderer emits a plain figure then. */
.was{text-decoration:line-through;text-decoration-thickness:2px;opacity:.5}
.now{font:inherit;color:inherit;opacity:1}
.saleTag{display:inline-block;font-family:var(--sans);font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:#fff;background:var(--brass);padding:2px 7px;border-radius:999px;vertical-align:middle;margin-left:6px;opacity:1}
.price .was,.price .now,.mem-price .was,.mem-price .now{font:inherit;color:inherit;margin:0}
.price .saleTag,.mem-price .saleTag{font-family:var(--sans);font-size:11px;font-weight:600;color:#fff;margin-left:6px}
.price .was,.mem-price .was{opacity:.5}