/* The signed-out front door: Practice Calibration and the Verified Match Vault. Dark obsidian and cobalt, from the owner's design (preview-v2).
   Local fonts only (DM Sans and Manrope are declared in styles.css from ./fonts); nothing here loads from another site (the site CSP forbids it).
   Every selector is namespaced (.front, .sf-*), so this file never restyles the signed-in app by accident; the signed-in pages are styled in styles.css and pilot.css
   from the same tokens. The vault and evidence blocks are also drawn inside the signed-in app (a member without a plan; subscriber call pages). */
/* The --sf-* tokens (colours, fonts) are declared once on :root in styles.css, which the signed-in app shares. */
.front { display: none; position: relative; min-height: 100vh; background: var(--sf-bg); color: var(--sf-text); font-family: var(--sf-body); line-height: 1.6; overflow-x: clip; -webkit-font-smoothing: antialiased; }
body.front-mode { background: #090b10; overflow-x: hidden; }
html:has(body.front-mode) { background: #090b10; }
body.front-mode .front { display: block; }
body.front-mode .app-shell { display: none; }
.front *, .front *::before, .front *::after { box-sizing: border-box; }
:where(.front) :is(h1, h2, h3, h4, p, ul, dl, dd) { margin: 0; }
.front a { color: inherit; }
.front [hidden], .sf-vault [hidden] { display: none !important; }
.front :focus-visible { outline: 3px solid var(--sf-bright); outline-offset: 3px; }
.front .sf-page:focus { outline: none; }
.sf-glow { position: fixed; top: -25vh; left: 50%; transform: translateX(-50%); width: 95vw; height: 65vh; background: radial-gradient(circle, rgba(37, 99, 235, 0.16) 0%, rgba(9, 11, 16, 0) 70%); pointer-events: none; z-index: 0; }
.front .construction-banner { position: relative; z-index: 60; margin: 0; border-radius: 0; border-width: 0 0 1px; border-left-width: 5px; }
.sf-page { position: relative; z-index: 1; animation: sf-fade 0.28s ease-out; }
@keyframes sf-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* Header */
.sf-header { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(16px); background: rgba(9, 11, 16, 0.85); border-bottom: 1px solid var(--sf-border); }
.sf-nav { max-width: 1380px; margin: 0 auto; padding: 0.9rem 2rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.sf-brand { display: flex; align-items: center; gap: 0.75rem; font-family: var(--sf-display); font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; color: var(--sf-text); text-decoration: none; }
.sf-brand-mark { width: 30px; height: 30px; border-radius: 7px; background: linear-gradient(135deg, var(--sf-electric), #1e3a8a); box-shadow: 0 0 18px var(--sf-glow); display: grid; place-items: center; font-size: 0.8rem; color: #fff; }
.sf-steps { display: flex; align-items: center; gap: 0.65rem; font-size: 0.82rem; font-weight: 600; color: var(--sf-secondary); }
.sf-step-pill { padding: 0.25rem 0.7rem; border-radius: 99px; border: 1px solid var(--sf-border); background: rgba(255, 255, 255, 0.03); }
.sf-step-pill.is-current { color: var(--sf-bright); background: var(--sf-subtle); border-color: var(--sf-border-cobalt); }
.sf-nav-right { display: flex; align-items: center; gap: 0.85rem; flex-wrap: wrap; }

/* Buttons */
.sf-btn { font-family: var(--sf-body); font-weight: 600; font-size: 0.92rem; line-height: 1.3; padding: 0.65rem 1.25rem; border-radius: 10px; cursor: pointer; transition: all 0.2s ease; border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; text-decoration: none; text-align: center; min-height: 44px; }
.front .sf-btn-primary, .sf-vault .sf-btn-primary { background: var(--sf-cobalt); color: #fff; box-shadow: 0 4px 22px var(--sf-glow); }
.front .sf-btn-primary:hover:not(:disabled), .sf-vault .sf-btn-primary:hover:not(:disabled) { background: var(--sf-cobalt-deep); transform: translateY(-1px); }
.front .sf-btn-ghost, .sf-vault .sf-btn-ghost { background: rgba(255, 255, 255, 0.04); color: var(--sf-text); border-color: var(--sf-border); }
.front .sf-btn-ghost:hover, .sf-vault .sf-btn-ghost:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.2); }
.sf-btn:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }

/* Page 1 */
.sf-stage { max-width: 1380px; margin: 2rem auto 4rem; padding: 0 2rem; display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 2rem; align-items: start; }
.sf-art { position: sticky; top: 5.5rem; align-self: start; border-radius: 22px; overflow: hidden; border: 1px solid rgba(59, 130, 246, 0.32); background-color: #0c1220;
  background-image: linear-gradient(180deg, rgba(9, 11, 16, 0.3) 0%, rgba(9, 11, 16, 0.88) 55%, #0b0e17 100%), url('./hero-cobalt.jpg'), radial-gradient(circle at 25% 25%, rgba(37, 99, 235, 0.8) 0%, transparent 55%), linear-gradient(135deg, #090d16 0%, #172554 50%, #1e3a8a 85%, #0f172a 100%);
  /* The same layers with the 1280px WebP (163 KB, against 374 KB for the JPEG). A browser without image-set() type() ignores this line and keeps the JPEG above. */
  background-image: linear-gradient(180deg, rgba(9, 11, 16, 0.3) 0%, rgba(9, 11, 16, 0.88) 55%, #0b0e17 100%), image-set(url('./hero-cobalt.webp') type('image/webp'), url('./hero-cobalt.jpg') type('image/jpeg')), radial-gradient(circle at 25% 25%, rgba(37, 99, 235, 0.8) 0%, transparent 55%), linear-gradient(135deg, #090d16 0%, #172554 50%, #1e3a8a 85%, #0f172a 100%);
  background-size: cover; background-position: center; padding: 2.75rem; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65); min-width: 0; }
.sf-impasto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: screen; opacity: 0.4; pointer-events: none; }
.sf-art-top { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.sf-step { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--sf-bright); font-weight: 700; }
.sf-art-body { position: relative; z-index: 2; margin-top: 5.5rem; }
.sf-headline { font-family: var(--sf-display); font-size: clamp(2rem, 3.2vw, 2.85rem); font-weight: 800; line-height: 1.12; letter-spacing: -0.03em; margin-bottom: 1rem; }
.sf-headline span { background: linear-gradient(95deg, #93c5fd, #3b82f6); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.sf-lead { color: #cbd5e1; font-size: 1.02rem; margin-bottom: 1.75rem; }
.sf-teasers { display: grid; gap: 0.85rem; border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 1.5rem; }
.sf-teaser { display: flex; gap: 0.85rem; align-items: flex-start; background: rgba(17, 21, 30, 0.72); backdrop-filter: blur(8px); padding: 0.85rem 1rem; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.07); }
.sf-teaser-icon { width: 28px; height: 28px; border-radius: 6px; background: var(--sf-subtle); border: 1px solid rgba(59, 130, 246, 0.35); color: var(--sf-bright); display: grid; place-items: center; font-weight: 800; font-size: 0.8rem; flex-shrink: 0; margin-top: 0.1rem; }
.sf-teaser-amber { color: var(--sf-amber); border-color: rgba(245, 158, 11, 0.4); }
.sf-teaser h2 { font-family: var(--sf-display); font-size: 0.92rem; font-weight: 700; color: var(--sf-text); }
.sf-teaser p { font-size: 0.82rem; color: var(--sf-secondary); }

.sf-calibrator { background: var(--sf-charcoal); border: 1px solid var(--sf-border-cobalt); border-radius: 22px; padding: 2.25rem; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 35px rgba(37, 99, 235, 0.12); min-width: 0; }
.sf-cal-head h2 { font-family: var(--sf-display); font-size: 1.55rem; font-weight: 800; margin: 0.25rem 0 0.4rem; }
.sf-cal-head p { font-size: 0.9rem; color: var(--sf-secondary); margin-bottom: 1.5rem; }
/* The artist profile form (profile-form.js): the markup is the Profile page's, restyled here. Checkboxes stay real inputs (hidden, focus shown on the label). */
.sf-form .form-section { border-top: 1px solid var(--sf-border); padding-top: 1.5rem; margin-top: 1.5rem; }
.sf-form .form-section:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.sf-form .form-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.sf-form .form-head h2, .sf-form .form-head h3 { font-family: var(--sf-display); font-weight: 800; letter-spacing: -0.02em; color: var(--sf-text); margin: 0; }
.sf-form .form-head h2 { font-size: 1.1rem; }
.sf-form .form-head h3 { font-size: 0.95rem; }
.sf-form .form-head span { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sf-bright); white-space: nowrap; }
.sf-form .field-help { font-size: 0.8rem; line-height: 1.55; color: var(--sf-secondary); margin: 0.5rem 0 1rem; }
.sf-form .choices { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.sf-form .choice { position: relative; display: flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0.55rem 0.85rem; border: 1px solid var(--sf-border); border-radius: 6px; background: rgba(255, 255, 255, 0.03); color: var(--sf-secondary); font-size: 0.84rem; font-weight: 500; line-height: 1.3; cursor: pointer; user-select: none; transition: all 0.15s ease; }
.sf-form .choice:hover { border-color: rgba(255, 255, 255, 0.24); color: var(--sf-text); }
.sf-form .choice.checked { background: var(--sf-subtle); border-color: var(--sf-electric); color: #fff; font-weight: 600; box-shadow: 0 0 14px rgba(59, 130, 246, 0.22); }
.sf-form .choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sf-form .choice:focus-within { outline: 3px solid var(--sf-bright); outline-offset: 2px; }
.sf-form .choice-check { color: var(--sf-bright); font-weight: 800; }
.sf-form .medium-detail { margin-top: 1rem; padding: 1rem; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--sf-border); border-radius: 10px; }
.sf-form .medium-detail > h3 { font-family: var(--sf-display); font-size: 0.95rem; color: var(--sf-text); margin: 0 0 0.5rem; }
.sf-form .medium-detail .field-help { margin: 0; }
.sf-form .medium-detail .form-head { margin-bottom: 0.75rem; }
.sf-form .detail-choice-section + .detail-choice-section { margin-top: 1rem; }
.sf-form .detail-choice-section h4 { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sf-bright); margin: 0 0 0.5rem; }
.sf-form .material-empty { padding: 1rem; border: 1px dashed var(--sf-border-cobalt); border-radius: 8px; color: var(--sf-secondary); font-size: 0.82rem; line-height: 1.6; }
.sf-form .text-label { display: flex; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sf-muted); margin: 1.1rem 0 0.5rem; }
.sf-form .text-label span { color: var(--sf-bright); text-transform: none; letter-spacing: 0; font-weight: 500; }
.sf-form input:not([type=checkbox]), .sf-form select { width: 100%; min-height: 44px; padding: 0.7rem 0.85rem; border-radius: 8px; border: 1px solid var(--sf-line-strong); background: var(--sf-field); color: var(--sf-text); font: inherit; font-size: 0.95rem; }
.sf-form select { appearance: auto; color-scheme: dark; }
.sf-form input:disabled { opacity: 0.45; }
.sf-form input::placeholder { color: var(--sf-placeholder); }
.sf-form input:not([type=checkbox]):focus, .sf-form select:focus { outline: none; border-color: var(--sf-bright); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.35); }
.sf-form .check-row { display: flex; align-items: center; gap: 0.6rem; min-height: 44px; margin-top: 0.5rem; font-size: 0.9rem; font-weight: 600; color: var(--sf-text); }
.sf-form .check-row input { width: 20px; height: 20px; min-height: 0; accent-color: var(--sf-electric); flex: none; }
/* The bar that stays in view while the long form scrolls: the meter and Continue. */
.sf-dock { position: sticky; bottom: 0; z-index: 30; margin: 1.5rem -2.25rem -2.25rem; padding: 1rem 2.25rem 1.25rem; background: linear-gradient(180deg, rgba(17, 21, 30, 0.9), var(--sf-charcoal) 28%); border-top: 1px solid var(--sf-border-cobalt); border-radius: 0 0 22px 22px; backdrop-filter: blur(8px); }
.sf-dock .sf-meter { margin: 0 0 0.75rem; padding: 0.9rem 1.25rem; }
.sf-dock .sf-insight { margin-bottom: 0.75rem; }
/* On a wide screen the bar is two columns (the meter, then Continue) with the hint under them, so it stays short. */
@media (min-width: 721px) {
  .sf-dock { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-areas: "meter cta" "hint hint" "note note"; column-gap: 1rem; align-items: center; }
  .sf-dock .sf-meter { grid-area: meter; margin: 0; }
  .sf-dock #sf-continue-box { grid-area: cta; }
  .sf-dock .sf-insight { grid-area: hint; margin: 0.6rem 0 0; }
  .sf-dock .sf-device-note { grid-area: note; margin: 0.4rem 0 0; }
}
.sf-help { font-size: 0.8rem; color: var(--sf-secondary); margin: 0.5rem 0 0; }
.sf-device-note { text-align: center; margin-top: 0.85rem; }
.front .place-results { display: grid; gap: 4px; margin-top: 6px; }
.front .place-results[hidden] { display: none; }
.front .place-option { text-align: left; font: inherit; font-size: 0.85rem; min-height: 44px; border: 1px solid var(--sf-border); border-radius: 6px; background: var(--sf-card); color: var(--sf-text); padding: 0.6rem 0.8rem; cursor: pointer; }
.front .place-option:hover, .front .place-option:focus-visible { background: var(--sf-subtle); border-color: var(--sf-electric); }

.sf-meter { background: linear-gradient(135deg, rgba(37, 99, 235, 0.16), rgba(16, 185, 129, 0.1)); border: 1px solid rgba(59, 130, 246, 0.4); border-radius: 16px; padding: 1.25rem 1.5rem; margin: 1.25rem 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.sf-meter-left { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.sf-meter-count { font-family: var(--sf-display); font-size: 2.4rem; font-weight: 800; line-height: 1; color: #fff; transition: transform 0.2s ease; min-width: 1.2ch; }
.sf-meter-count.bump { transform: scale(1.15); color: var(--sf-emerald); }
.sf-meter-count.is-loading { opacity: 0.55; }
.sf-meter-more { font-weight: 600; color: #cbd5e1; }
.sf-meter { transition: box-shadow 0.25s ease, border-color 0.25s ease; }
.sf-meter.is-updated { border-color: var(--sf-emerald); box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3); }
.sf-meter-copy h3 { font-family: var(--sf-display); font-size: 1rem; font-weight: 700; color: var(--sf-text); }
.sf-meter-copy p { font-size: 0.8rem; color: #cbd5e1; }
.sf-urgent { font-size: 0.75rem; font-weight: 700; color: var(--sf-amber); background: rgba(245, 158, 11, 0.14); border: 1px solid rgba(245, 158, 11, 0.35); padding: 0.35rem 0.7rem; border-radius: 99px; white-space: nowrap; }
.sf-insight { font-size: 0.82rem; color: var(--sf-secondary); background: rgba(255, 255, 255, 0.03); border-left: 3px solid var(--sf-emerald); padding: 0.65rem 0.9rem; border-radius: 0 6px 6px 0; margin-bottom: 1.25rem; }
.sf-insight strong { color: var(--sf-text); }
.sf-continue { width: 100%; padding: 0.95rem; font-size: 1rem; }
.sf-hint { min-height: 1.4em; font-size: 0.8rem; color: var(--sf-amber); margin-top: 0.5rem; text-align: center; }

/* Page 2 */
.sf-results { max-width: 1380px; margin: 2rem auto 5rem; padding: 0 2rem; position: relative; z-index: 1; }
.sf-topbar { display: flex; justify-content: space-between; align-items: center; background: var(--sf-charcoal); border: 1px solid var(--sf-border); border-radius: 16px; padding: 1rem 1.5rem; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem; }
.sf-mini { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--sf-muted); font-weight: 700; margin-bottom: 0.35rem; }
.sf-pills { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.sf-pill { font-size: 0.76rem; padding: 0.25rem 0.65rem; border-radius: 99px; background: var(--sf-subtle); border: 1px solid rgba(59, 130, 246, 0.35); color: #93c5fd; font-weight: 600; }

.sf-vault { position: relative; border-radius: 22px; overflow: hidden; border: 1px solid var(--sf-border-cobalt); background: var(--sf-charcoal); color: var(--sf-text); padding: 1.75rem; display: grid; min-height: 680px; font-family: var(--sf-body); line-height: 1.6; text-align: left; margin: 0 0 24px; }
.sf-vault *, .sf-vault *::before, .sf-vault *::after { box-sizing: border-box; }
:where(.sf-vault) :is(h3, p, ul) { margin: 0; }
.sf-vault.is-bare { min-height: 0; }
.sf-cards { grid-area: 1 / 1; align-self: start; min-width: 0; display: grid; gap: 1.1rem; user-select: none; }
.sf-card { background: var(--sf-card); border: 1px solid var(--sf-border); border-radius: 16px; padding: 1.4rem 1.6rem; }
.sf-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.9rem; gap: 1rem; flex-wrap: wrap; }
.sf-tags { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.sf-tag { font-size: 0.74rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: 5px; background: rgba(255, 255, 255, 0.06); color: var(--sf-secondary); }
.sf-tag-urgent { background: rgba(245, 158, 11, 0.16); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.35); }
.sf-tag-fit { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); font-family: var(--sf-display); }
.sf-pay { font-size: 0.8rem; color: var(--sf-secondary); font-weight: 600; }
/* The title and the passage are neutral bars, blurred: there is nothing to read behind them. */
.sf-blur { display: grid; gap: 0.55rem; filter: blur(6px); opacity: 0.62; pointer-events: none; }
.sf-bar { display: block; height: 0.8rem; border-radius: 99px; background: rgba(148, 163, 184, 0.45); }
.sf-bar-title { height: 1.15rem; width: 72%; background: rgba(226, 232, 240, 0.6); }
.sf-bar-mid { width: 88%; }
.sf-bar-short { width: 46%; }
.sf-card:nth-child(n+3) .sf-blur { filter: blur(11px); opacity: 0.38; }
/* The rest of the list for a member who cannot read calls: a line that can be read, then blurred shapes, all of the same low contrast. In the vault it is the second row, under the gate, not behind it. */
.sf-more, .sf-ghosts { display: grid; gap: 1.1rem; min-width: 0; box-sizing: border-box; }
.sf-more-line { margin: 0; color: var(--sf-secondary); font-size: 0.9rem; font-weight: 700; line-height: 1.5; }
.sf-ghosts .sf-card .sf-blur { filter: blur(11px); opacity: 0.38; }
.sf-vault > .sf-more { grid-area: 2 / 1; padding-top: 1.75rem; }
.sf-tag-ghost { display: block; width: 7rem; height: 1.2rem; border-radius: 5px; background: rgba(255, 255, 255, 0.07); }
.sf-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.sf-gate { grid-area: 1 / 1; position: relative; margin: -1.75rem; background: linear-gradient(180deg, rgba(9, 11, 16, 0.18) 0%, rgba(9, 11, 16, 0.90) 24%, rgba(9, 11, 16, 0.98) 100%); backdrop-filter: blur(5px); display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: 13rem 1.5rem 2.5rem; z-index: 20; min-width: 0; }
.sf-vault.is-bare .sf-gate { margin: 0; background: transparent; backdrop-filter: none; padding: 1rem 0; }
.sf-gate-box { max-width: 920px; width: 100%; text-align: center; }
.sf-eyebrow { display: inline-block; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 800; color: var(--sf-bright); background: var(--sf-subtle); border: 1px solid var(--sf-border-cobalt); padding: 0.35rem 0.9rem; border-radius: 99px; margin-bottom: 0.85rem; }
.sf-gate-title { font-family: var(--sf-display); font-size: clamp(1.65rem, 2.8vw, 2.25rem); font-weight: 800; line-height: 1.2; margin-bottom: 0.5rem; color: var(--sf-text); }
.sf-gate-sub { color: var(--sf-secondary); max-width: 640px; margin: 0 auto 2rem; font-size: 0.96rem; }
.sf-white { color: #fff; }
.sf-amber { color: var(--sf-amber); }
.sf-tiers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; text-align: left; }
.sf-plan { background: var(--sf-elevated); border: 1px solid var(--sf-border); border-radius: 16px; padding: 2rem; display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem; position: relative; min-width: 0; }
.sf-plan.is-featured { border-color: var(--sf-electric); background: linear-gradient(180deg, rgba(37, 99, 235, 0.18) 0%, var(--sf-elevated) 100%); box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 30px rgba(37, 99, 235, 0.2); }
.sf-popular { position: absolute; top: -12px; right: 20px; background: var(--sf-amber); color: #090b10; font-family: var(--sf-display); font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; padding: 0.25rem 0.75rem; border-radius: 99px; }
.sf-plan-name { font-family: var(--sf-display); font-size: 1.25rem; font-weight: 800; }
.sf-plan-price { font-family: var(--sf-display); font-size: 2.5rem; font-weight: 800; margin: 0.5rem 0 0.25rem; line-height: 1.2; }
.sf-plan-price span { font-size: 0.95rem; color: var(--sf-muted); font-weight: 500; }
.sf-plan-annual { margin: 0 0 0.75rem; font-size: 0.9rem; font-weight: 700; color: var(--sf-bright, #93c5fd); }
/* Monthly | Annual on a plan card: two radio buttons drawn as one segmented control (plans-ui.js plansIntervalHtml). */
.sf-interval { display: grid; grid-template-columns: 1fr 1fr; gap: 0.25rem; margin: 0.75rem 0 0.25rem; padding: 0.25rem; border: 1px solid var(--sf-border); border-radius: 12px; background: rgba(255, 255, 255, 0.03); min-width: 0; }
.sf-interval-legend { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.sf-interval-option { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.05rem; min-height: 44px; padding: 0.35rem 0.5rem; border-radius: 9px; cursor: pointer; text-align: center; color: var(--sf-secondary); }
.sf-interval-option input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.sf-interval-label { font-weight: 700; font-size: 0.88rem; color: var(--sf-text); }
.sf-interval-detail { font-size: 0.74rem; }
.sf-interval-option.is-checked { background: var(--sf-cobalt); color: #dbeafe; box-shadow: 0 2px 12px var(--sf-glow); }
.sf-interval-option.is-checked .sf-interval-label { color: #fff; }
.sf-interval-option:focus-within { outline: 3px solid var(--sf-bright); outline-offset: 2px; }
.sf-plan-desc { font-size: 0.86rem; color: var(--sf-secondary); padding-bottom: 1.25rem; border-bottom: 1px solid var(--sf-border); margin-bottom: 1.25rem; }
.sf-features { list-style: none; padding: 0; display: grid; gap: 0.7rem; font-size: 0.88rem; color: #e2e8f0; }
.sf-features li { display: flex; align-items: flex-start; gap: 0.6rem; }
.sf-check { color: var(--sf-bright); font-weight: 800; }
.sf-check-amber { color: var(--sf-amber); font-weight: 800; }
.sf-plan-button { width: 100%; }
.sf-fine { font-size: 0.78rem; color: var(--sf-secondary); max-width: 640px; margin: 1rem auto 0; }
.sf-fine a { color: var(--sf-bright); text-decoration: underline; }
.sf-disclosure { color: var(--sf-muted); }
/* The member's code box and test banner, restyled for the dark gate. */
.sf-gate .plan-code { max-width: 460px; margin: 0 auto 1.5rem; text-align: left; }
.sf-gate .plan-code-label, .sf-gate .plan-code-status, .sf-gate .field-help { color: var(--sf-secondary); }
.sf-gate .plan-code-row { display: flex; gap: 0.5rem; }
.sf-gate .plan-code-row input { flex: 1; min-width: 0; min-height: 44px; padding: 0.6rem 0.8rem; border-radius: 8px; border: 1px solid var(--sf-line-strong); background: var(--sf-field); color: var(--sf-text); font: inherit; }
.sf-gate .outline-button { background: rgba(255, 255, 255, 0.04); color: var(--sf-text); border: 1px solid var(--sf-line-strong); border-radius: 8px; min-height: 44px; padding: 0.6rem 1rem; font: inherit; cursor: pointer; }
.sf-gate .plan-code-status.is-error, .sf-gate .plan-error { color: var(--sf-red-text); }
.sf-gate .plan-test-banner { margin: 0 auto 1.25rem; max-width: 640px; text-align: left; }

/* Verified prospectus passage (subscribers; signed-in call pages and cards): dark, like everything else. Light text on the tinted panel is about 11:1. */
.sf-evidence { margin: 14px 0 0; padding: 12px 14px; border-left: 4px solid var(--sf-electric); background: var(--sf-subtle); border-radius: 0 8px 8px 0; color: var(--sf-soft); font-family: var(--sf-body); font-size: 13px; line-height: 1.6; text-align: left; }
.sf-evidence-title, .sf-evidence summary { font: 800 11px var(--sf-display); letter-spacing: .08em; text-transform: uppercase; color: var(--sf-pale); margin: 0 0 8px; cursor: default; }
.sf-evidence summary { cursor: pointer; margin: 0; padding: 15px 0; }   /* about 44px tall, a touch target */
.sf-evidence-compact { padding-top: 0; padding-bottom: 0; }
.sf-evidence-compact[open] dl { padding-bottom: 12px; }
.sf-evidence[open] summary { margin-bottom: 8px; }
.sf-evidence dl { margin: 0; display: grid; gap: 8px; }
.sf-quote-row dt { font-weight: 800; font-size: 11px; color: var(--sf-bright); }
.sf-evidence dd { margin: 0; font-style: italic; overflow-wrap: anywhere; }
.detail-section.sf-evidence { padding: 18px 22px; }

@media (max-width: 980px) {
  .sf-art { position: relative; top: auto; }
  .sf-stage, .sf-tiers { grid-template-columns: 1fr; }
  .sf-art-body { margin-top: 2rem; }
  .sf-vault { display: block; }
  .sf-gate { margin: 0; background: var(--sf-charcoal); backdrop-filter: none; padding: 1.75rem 0 0; }
  .sf-vault { min-height: 0; }
  .sf-cards { margin-bottom: 1rem; }
}
@media (max-width: 720px) {
  .sf-dock { margin: 1.25rem -1.15rem -1.5rem; padding: 0.6rem 1.15rem 0.75rem; }
  .sf-dock .sf-meter { padding: 0.55rem 0.8rem; margin-bottom: 0.5rem; }
  .sf-dock .sf-meter-count { font-size: 1.8rem; }
  .sf-dock .sf-meter-copy p, .sf-dock .sf-insight, .sf-dock .sf-device-note { display: none; }
  .sf-dock .sf-urgent { display: none; }   /* the closing-soon count is on page 2's gate; the bar stays one short row on a phone */
  .sf-dock .sf-continue { padding: 0.7rem; font-size: 0.95rem; }
  .sf-dock .sf-hint { margin-top: 0.25rem; }
  .sf-steps { display: none; }
  .sf-nav { padding: 0.75rem 1rem; }
  .sf-stage, .sf-results { padding: 0 1rem; margin-top: 1rem; }
  .sf-art, .sf-calibrator { padding: 1.5rem 1.15rem; }
  .sf-vault { padding: 1rem; }
  .sf-card { padding: 1.1rem; }
  .sf-plan { padding: 1.5rem 1.15rem; }
  .sf-meter { padding: 1rem; }
  .sf-topbar { padding: 1rem; }
  .sf-topbar .sf-btn { width: 100%; }
  .sf-nav-right .sf-btn { padding: 0.5rem 0.85rem; font-size: 0.85rem; }
}
@media (prefers-reduced-motion: reduce) { .sf-page { animation: none; } .sf-btn, .sf-form .choice, .sf-meter-count { transition: none; } }
/* Until pilot.js has chosen the first screen (the built page starts with body.booting) nothing flashes by. */
/* If the script never runs (blocked, offline, an error before it can say), the page is revealed anyway after about 6 seconds instead of staying blank. */
body.booting .app-shell, body.booting .front { visibility: hidden; animation: sf-unhide 0s 6s forwards; }
@keyframes sf-unhide { to { visibility: visible; } }
.sf-noscript { margin: 0; padding: 14px 18px; background: #fff4d6; border-bottom: 1px solid #e0b64a; color: #5c4200; font: 14px/1.5 'DM Sans', sans-serif; text-align: center; }

/* "Save your profile": the email step between page 1 and the vault (front-ui.js frontSaveHtml). */
.sf-save { max-width: 560px; margin: 3rem auto 5rem; padding: 2.25rem; background: var(--sf-charcoal); border: 1px solid var(--sf-border-cobalt); border-radius: 22px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 35px rgba(37, 99, 235, 0.12); position: relative; z-index: 1; }
.sf-save h2 { font-family: var(--sf-display); font-size: clamp(1.4rem, 2.4vw, 1.8rem); font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; margin: 0.35rem 0 0.5rem; color: var(--sf-text); }
.sf-save-lead { font-size: 0.9rem; color: var(--sf-secondary); margin-bottom: 1.25rem; }
.sf-save-form { display: grid; gap: 0.6rem; }
.sf-save-form label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sf-muted); }
.sf-save-form input { width: 100%; min-height: 44px; padding: 0.7rem 0.85rem; border-radius: 8px; border: 1px solid var(--sf-line-strong); background: var(--sf-field); color: var(--sf-text); font: inherit; font-size: 1rem; }
.sf-save-form .sf-btn { width: 100%; margin-top: 0.4rem; }
.sf-save .sf-fine { margin: 0.75rem 0 0; max-width: none; }
.sf-save-message { min-height: 1.4em; margin-top: 0.75rem; font-size: 0.88rem; color: var(--sf-secondary); }
.sf-save-message.is-error { color: #fca5a5; }
@media (max-width: 640px) { .sf-save { margin: 1.5rem 1rem 4rem; padding: 1.5rem; } }

/* The open previews above the vault: the top 2 strong matches, readable; the organizer is a blank blurred bar (front-ui.js frontPreviewsHtml). */
.sf-previews { margin: 0 0 1.5rem; }
.sf-previews-title { font-family: var(--sf-display); font-size: 1.15rem; font-weight: 800; color: var(--sf-text); margin: 0 0 0.9rem; }
.sf-preview-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 1.1rem; }
.sf-preview { border-color: var(--sf-border-cobalt); color: var(--sf-text); line-height: 1.55; }
.sf-preview-org { margin: 0 0 0.35rem; }
.sf-redact { display: inline-block; width: 6.5em; height: 0.85em; vertical-align: -0.05em; border-radius: 4px; background: rgba(148, 163, 184, 0.55); filter: blur(3px); }
.sf-redact-org { width: 11rem; height: 0.8rem; }
.sf-redact-title { display: block; width: min(85%, 22rem); height: 1.1rem; margin: 0.15rem 0 0.2rem; }
.sf-preview-title { font-family: var(--sf-display); font-size: 1.12rem; font-weight: 800; line-height: 1.3; margin: 0 0 0.3rem; color: var(--sf-text); }
.sf-preview-meta { font-size: 0.85rem; color: var(--sf-secondary); margin: 0 0 0.75rem; }
.sf-facts { display: grid; gap: 0.35rem; margin: 0 0 0.75rem; }
.sf-fact { display: grid; grid-template-columns: 7.5rem 1fr; gap: 0.75rem; font-size: 0.88rem; }
.sf-fact dt { color: var(--sf-muted); font-weight: 700; }
.sf-fact dd { margin: 0; color: var(--sf-soft); }
.sf-preview-summary, .sf-preview-elig { font-size: 0.9rem; color: var(--sf-soft); margin: 0 0 0.6rem; }
.sf-preview-lock { font-size: 0.8rem; color: var(--sf-bright); margin: 0.6rem 0 0; font-weight: 600; }
/* With the top matches open above, the rest are fully blurred under the paywall. */
.sf-cards.is-locked .sf-card { filter: blur(5px); opacity: 0.7; }
@media (max-width: 640px) { .sf-fact { grid-template-columns: 1fr; gap: 0.1rem; } }
