/* Self-hosted (not a Google Fonts CDN link) — both are variable fonts, one
   file covers the whole weight range via a font-weight range below. */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('/fonts/fraunces-variable.woff2') format('woff2-variations'),
       url('/fonts/fraunces-variable.woff2') format('woff2');
}
@font-face {
  font-family: 'Karla';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/fonts/karla-variable.woff2') format('woff2-variations'),
       url('/fonts/karla-variable.woff2') format('woff2');
}

/* ============================================================
   Rust & Plum — approved 2026-08-16 (see Vantage Design/vantage-colors.css
   for the original light-mode source; dark variant designed here to match).

   Mapping notes, since this replaces a blue-violet system with a two-hue
   warm one and the existing CSS assumes a specific role split:
   - --accent = rust (medium) — the primary brand color: borders, outlines,
     the featured pricing card's fill.
   - --accent-2 = plum — paired with --accent wherever the existing CSS
     already builds a two-color gradient (h1's emphasized word, via
     h1 span's background-clip:text). This means that word now renders as
     a rust-to-plum gradient rather than the flat rust-deep shown in the
     fast HTML mockups — a tasteful, on-brand consequence of reusing the
     existing gradient pattern rather than fighting it, but flag it for
     review since it wasn't literally what was mocked up.
   - --accent-dark / --accent-2-dark = rust-deep / a deeper plum — fill
     colors behind white text (buttons, badge-tier). Same reasoning as the
     comment already here previously: these stay fixed across both themes
     since the text on top of them never needs to change either.
   - --success maps to plum too (it's what colors the "Vantage" comparison
     heading, .compare-col.good h2 { color: var(--success) }) — this also
     reaches every OTHER --success usage sitewide (e.g. the accept-suggestion
     button), which extends past what was specifically reviewed. Flagged for
     the same reason.
   - --danger = the new, more serious negative red approved for the
     comparison table's ✕ icons — reaches other --danger uses too.
   - --warning is left untouched (amber) — deliberately kept a separate
     semantic color from the brand accent so warnings still read as alerts.
   ============================================================ */
:root {
  --bg: #1c1512;
  --bg-glow: #1c1512;
  --panel: #2a201b;
  --panel-2: #2a201b;
  --border: #47362e;
  --text: #f3e8db;
  --muted: #b8a89c;
  --accent: #d97a52;
  --accent-2: #c589a3;
  --accent-dark: #7e3720;
  --accent-2-dark: #4a2635;
  --on-accent: #fdf6ec;
  --success-bright: #6b3a4f;
  --success: #c589a3;
  --danger: #e2604e;
  --warning: #ffb020;
  --error-bg: #2a1518;
  --error-border: #4a2226;
  /* Darkened from #3a2820 — --danger text against that only measured
     4.00:1 (below the 4.5:1 minimum for normal-weight text this size). */
  --bad-bg: #2e1b15;
  --bad-border: #5c4030;
  --good-bg: #24301f;
  --good-border: #45592f;
  --warn-bg: #2a2010;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --bg: #f6ece0;
    --bg-glow: #f6ece0;
    --panel: #fff9f2;
    --panel-2: #fff9f2;
    --border: #ecdfc9;
    --text: #33272a;
    --muted: #54464a;
    --accent: #a8492f;
    --accent-2: #6b3a4f;
    --success: #6b3a4f;
    --danger: #9c2b1f;
    --warning: #a15f00;
    --error-bg: #fdecec;
    --error-border: #f3c7c6;
    --bad-bg: #ecd6c4;
    --bad-border: #ddc0a8;
    --good-bg: #d9e2c5;
    --good-border: #c3d0a8;
    --warn-bg: #fff6e0;
  }
}

:root[data-theme="light"] {
  --bg: #f6ece0;
  --bg-glow: #f6ece0;
  --panel: #fff9f2;
  --panel-2: #fff9f2;
  --border: #ecdfc9;
  --text: #33272a;
  --muted: #54464a;
  --accent: #a8492f;
  --accent-2: #6b3a4f;
  --success: #6b3a4f;
  --danger: #9c2b1f;
  --warning: #a15f00;
  --error-bg: #fdecec;
  --error-border: #f3c7c6;
  --bad-bg: #ecd6c4;
  --bad-border: #ddc0a8;
  --good-bg: #d9e2c5;
  --good-border: #c3d0a8;
  --warn-bg: #fff6e0;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Karla', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: radial-gradient(1200px 600px at 50% -10%, var(--bg-glow) 0%, var(--bg) 60%);
  color: var(--text);
  min-height: 100vh;
}

.site-brand {
  position: fixed;
  top: 16px;
  left: 16px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--text);
  z-index: 100;
}

.theme-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.theme-toggle:hover { border-color: var(--accent); }

.theme-toggle .icon-moon { display: none; }

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .theme-toggle .icon-sun { display: none; }
  :root:not([data-theme]) .theme-toggle .icon-moon { display: inline; }
}

:root[data-theme="light"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: inline; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: inline; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 48px 20px 80px;
}

header.hero {
  text-align: center;
  margin-bottom: 40px;
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent-2-dark));
  color: var(--on-accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}

h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 40px;
  line-height: 1.15;
  margin: 0 0 14px;
  font-weight: 600;
}

h1 span {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subtitle {
  color: var(--muted);
  font-size: 17px;
  max-width: 560px;
  margin: 0 auto;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 24px;
  /* Two-layer shadow — a tight one for edge definition, a big soft one for
     the actual lift off the page. Fixed dark warm tint rather than a
     theme-token: shadows read as depth regardless of page theme, and this
     stays visible against both the light and dark backgrounds. */
  box-shadow: 0 3px 10px rgba(20, 14, 10, 0.12), 0 24px 48px -20px rgba(20, 14, 10, 0.35);
}

/* The two cards holding the actual finished resume/cover letter — set apart
   from every other plain .card on the page (pricing, the tool form itself)
   with a colored top edge, since this is the product being delivered. */
.result-card {
  border-top: 4px solid var(--accent);
}

.highlight-danger { color: var(--danger); }

.pricing-intro {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 16px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 10px;
  margin-bottom: 12px;
}

@media (max-width: 640px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

.pricing-card {
  text-align: center;
  padding: 36px 28px;
  margin-bottom: 0;
}

.pricing-card-featured {
  position: relative;
  /* --accent-dark, not --accent — --accent is lighter in dark theme (it
     needs to read against the dark page background elsewhere), which drops
     --on-accent text on this card to ~2.85:1. --accent-dark is fixed across
     both themes and is what .badge/.buy/.badge-tier already use for the
     same text/background pairing. */
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--on-accent);
  box-shadow: 0 4px 14px rgba(168, 73, 47, 0.3), 0 36px 64px -14px rgba(168, 73, 47, 0.7);
}

.pricing-card-featured .tier-name,
.pricing-card-featured .price-desc {
  color: var(--on-accent);
  opacity: 0.85;
}

.pricing-card-featured .price { color: var(--on-accent); }
.pricing-card-featured .price span { color: var(--on-accent); opacity: 0.85; }
.pricing-card-featured .features li { color: var(--on-accent); }
.pricing-card-featured .features li::before { color: var(--on-accent); }

.badge-tier {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent-2-dark));
  color: var(--on-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.tier-name {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2px;
}

.price {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 48px;
  font-weight: 600;
  margin: 8px 0 4px;
}

.price span {
  font-size: 16px;
  color: var(--muted);
  font-weight: 500;
}

.price-desc {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 24px;
}

.features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  text-align: left;
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
}

.features li {
  padding: 8px 0;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--text);
}

.features li::before {
  content: "✓";
  color: var(--success);
  font-weight: 700;
}

button.buy {
  width: 100%;
  max-width: 320px;
  padding: 15px 24px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent-2-dark));
  color: white;
  cursor: pointer;
  transition: transform 0.1s ease, opacity 0.15s ease;
}

button.buy:hover { opacity: 0.92; }
button.buy:active { transform: scale(0.98); }
button.buy:disabled { opacity: 0.5; cursor: not-allowed; }

.fineprint {
  color: var(--muted);
  font-size: 12px;
  margin-top: 14px;
  text-align: center;
}

.promo-field {
  max-width: 320px;
  margin: 4px auto 0;
  text-align: center;
}

.promo-field label {
  text-align: center;
}

.promo-field input {
  width: 100%;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  text-align: center;
  letter-spacing: 0.03em;
}

.promo-field input:focus {
  border-color: var(--accent);
}

.promo-feedback {
  display: block;
  min-height: 1.4em;
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}

.promo-feedback.valid { color: var(--success); }
.promo-feedback.invalid { color: var(--danger); }

.how-it-works {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.step {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
}

.step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-dark);
  color: var(--on-accent);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
}

.step h2 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.ai-disclosure {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
  max-width: 560px;
  margin: 20px auto 0;
}

@media (max-width: 640px) {
  .how-it-works { grid-template-columns: 1fr; }
  h1 { font-size: 30px; }
}

/* ---- Tool page ---- */

.tool-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 800px) {
  .tool-grid { grid-template-columns: 1fr; }
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 4px;
}

@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.section-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-top: 6px;
}

.checkbox-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  color: var(--text);
}

.checkbox-pill input[type="checkbox"] {
  cursor: pointer;
}

input[type="text"],
input[type="email"],
input[type="tel"] {
  width: 100%;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  padding: 11px 14px;
  font-size: 14px;
  font-family: inherit;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus {
  border-color: var(--accent);
}

select {
  width: 100%;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  padding: 11px 14px;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
}

select:focus { border-color: var(--accent); }

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Deliberately NOT styled like a plain field label (unlike before) — this is
   the actual deliverable's title, not a form caption, so it gets real
   visual weight: larger, bold, and in the accent color. */
.result-heading {
  display: block;
  font-size: 21px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 8px;
}

/* Interview questions are full sentences, not short field labels — the
   small-caps treatment above (built for "JOB DESCRIPTION"-style labels)
   makes long text hard to read, so questions get their own readable style. */
.question-label {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--text);
  text-transform: none;
  letter-spacing: normal;
  line-height: 1.5;
  margin-bottom: 10px;
}

textarea {
  width: 100%;
  min-height: 220px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  padding: 14px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
}

/* Field validation state for the required fields marked with .required-mark
   below — clears as soon as the user fills the field back in. */
input.field-error,
textarea.field-error,
select.field-error {
  border-color: var(--danger);
  box-shadow: 0 0 0 1px var(--danger);
}

.required-mark {
  color: var(--danger);
  margin-left: 2px;
}

/* Small inline note used to flag that a button spends one build from the
   pass — sits right under the button so the cost is visible before clicking. */
.credit-note {
  display: block;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}

/* Click-to-arm confirmation, same pattern as .reset-btn-armed. Fixed color,
   not var(--danger) — dark theme's --danger (#e2604e) is too light for this
   button's white text (measured 3.49:1). This is light theme's --danger
   value, reused as a fixed shade since it comfortably passes (7.56:1)
   against white regardless of which theme is active. */
.buy.confirm-armed {
  background: #9c2b1f;
}

/* No custom placeholder color existed before — inputs fell back to the
   browser's own (usually quite light) default, part of what read as "too
   light" throughout the tool. --muted here is already darkened above;
   slight opacity keeps placeholders visibly distinct from real typed text. */
input::placeholder, textarea::placeholder {
  color: var(--muted);
  opacity: 0.85;
}

/* Visible keyboard-focus ring on every interactive element (WCAG 2.4.7).
   :focus-visible only fires for keyboard/assistive-tech focus, not mouse clicks,
   so it doesn't add a ring around every button tap. */
a:focus-visible,
button:focus-visible,
textarea:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

textarea:focus {
  border-color: var(--accent);
}

/* Resume/cover-letter/preview content always renders on a plain white page
   with dark text, regardless of app theme — every style prints identically
   white/black (see @media print below), so the on-screen preview shows that
   real result instead of the app's own dark/light UI panel color. */
.result-box {
  background: #fff;
  color: #111;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  white-space: pre-wrap;
  font-size: 13.5px;
  line-height: 1.6;
  max-height: 480px;
  overflow-y: auto;
}

/* Compact peek shown while picking a style, before generating anything —
   same .style-* classes as the real result boxes, just shorter/smaller so
   it reads as a preview, not the real output. */
.style-preview {
  max-height: 220px;
  font-size: 12px;
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.result-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.copy-btn,
.print-btn,
.download-btn,
.docx-btn,
.reset-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
}

.copy-btn:hover, .print-btn:hover, .download-btn:hover, .docx-btn:hover { color: var(--text); border-color: var(--accent); }
.docx-btn:disabled { opacity: 0.6; cursor: default; }

.reset-btn:hover { color: var(--danger); border-color: var(--danger); }
.reset-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.reset-btn:disabled:hover { color: var(--muted); border-color: var(--border); }

/* Fixed color, not var(--danger) — same dark-theme contrast issue as
   .buy.confirm-armed above (see its comment). */
.reset-btn-armed {
  color: var(--on-accent);
  background: #9c2b1f;
  border-color: #9c2b1f;
}

/* Resume/cover-letter boxes are directly editable — a slightly stronger
   focus ring than the site-wide default makes that discoverable/obvious. */
.result-box[contenteditable]:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---- Resume style variants ----
   Classic Professional and ATS Max-Safe get a distinct visual treatment.
   Modern Minimalist intentionally has none — it previously used a colored
   left border, but that risked reading as "your resume has color on it,"
   which no style actually does. Along with the 3 audience-specific styles
   (career-changer/entry-level/re-entry, differentiated by content structure
   server-side, not look), it renders with the plain .result-box appearance
   above — no class needed. All variants stay single-column with no layout
   tricks, since that's what keeps every style ATS-safe. */
.style-classic-professional {
  font-family: Georgia, 'Times New Roman', serif;
}

.style-ats-max-safe {
  font-family: Arial, Helvetica, sans-serif;
  border-color: #999;
}

/* ---- Print / Save-as-PDF ----
   Print buttons toggle a body class, then call window.print(); the browser
   print dialog's own "Save as PDF" destination covers PDF export too, so
   this needs no server-side PDF generation. visibility:hidden + a visible
   override on just the target box (pulled out of flow via position) is the
   standard "print just this element" technique — reliable across browsers
   without needing a separate printable-only DOM copy. */
@media print {
  body.printing-resume *, body.printing-letter * {
    visibility: hidden;
  }

  body.printing-resume #resumeOut,
  body.printing-resume #resumeOut *,
  body.printing-letter #letterOut,
  body.printing-letter #letterOut * {
    visibility: visible;
  }

  body.printing-resume #resumeOut,
  body.printing-letter #letterOut {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    max-height: none;
    overflow: visible;
    border: none;
    background: #fff;
    color: #000;
    padding: 0.5in;
    font-size: 12pt;
  }
}

.status-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--muted);
}

.status-pill.active {
  color: var(--success);
  border-color: var(--success);
}

.upgrade-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  margin: 14px 0;
  font-size: 14px;
  color: var(--muted);
}

.upgrade-banner.urgent {
  background: var(--warn-bg);
  border-color: var(--warning);
  color: var(--text);
}

.upgrade-btn {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: 999px;
  border: none;
  /* --accent-dark/--accent-2-dark, not --accent/--accent-2 — same
     dark-theme contrast issue as .returning-banner-link above. */
  background: linear-gradient(90deg, var(--accent-dark), var(--accent-2-dark));
  color: var(--on-accent);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}

.upgrade-btn:hover { opacity: 0.92; }
.upgrade-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.returning-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  background: var(--good-bg);
  border: 1px solid var(--good-border);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--text);
}

.returning-banner-link {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: 999px;
  border: none;
  /* --accent-dark/--accent-2-dark, not --accent/--accent-2 — the latter is
     lighter in dark theme (needs to read against the dark page background
     elsewhere), which drops --on-accent text to ~2.6-2.85:1 here. The fixed
     dark pair is what .badge/.buy/.badge-tier already use for this exact
     text/background combination. */
  background: linear-gradient(90deg, var(--accent-dark), var(--accent-2-dark));
  color: var(--on-accent);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}

.returning-banner-link:hover { opacity: 0.92; }

.feedback-prompt {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  margin-top: 4px;
  font-size: 14px;
  color: var(--text);
  text-align: center;
}

.feedback-prompt-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.feedback-prompt-link {
  padding: 8px 16px;
  border-radius: 999px;
  /* --accent-dark/--accent-2-dark, not --accent/--accent-2 — same
     dark-theme contrast issue as .returning-banner-link above (measured
     2.85:1/2.62:1 there before the same fix). */
  background: linear-gradient(90deg, var(--accent-dark), var(--accent-2-dark));
  color: var(--on-accent);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}

.feedback-prompt-link:hover { opacity: 0.92; }

.feedback-prompt-dismiss {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
  white-space: nowrap;
}

.feedback-prompt-dismiss:hover { color: var(--text); }

.edit-clock {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 90;
  display: flex;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  font-size: 13px;
}

.edit-clock-full { display: flex; align-items: center; gap: 10px; }

.edit-clock-label { color: var(--muted); white-space: nowrap; }

.edit-clock-time {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  min-width: 2.5em;
}

.edit-clock.edit-clock-urgent { border-color: var(--warning); }
.edit-clock.edit-clock-urgent .edit-clock-time { color: var(--warning); }

.edit-clock.edit-clock-expired { border-color: var(--danger); }
.edit-clock.edit-clock-expired .edit-clock-time { color: var(--danger); }

.edit-clock-hide {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11px;
  cursor: pointer;
  white-space: nowrap;
}

.edit-clock-hide:hover { color: var(--text); border-color: var(--accent); }

/* Collapsed state ("Hide") swaps the full clock for a small reopen pill —
   the clock should never disappear without a trace. */
.edit-clock-reopen {
  display: none;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  padding: 0;
}

.edit-clock-reopen:hover { color: var(--accent); }

.edit-clock.edit-clock-collapsed .edit-clock-full { display: none; }
.edit-clock.edit-clock-collapsed .edit-clock-reopen { display: inline-block; }

@media (max-width: 480px) {
  .edit-clock:not(.edit-clock-collapsed) { bottom: 12px; right: 12px; left: 12px; justify-content: space-between; }
  .edit-clock.edit-clock-collapsed { bottom: 12px; right: 12px; }
}

.edit-window-notice {
  display: none;
  background: var(--warn-bg);
  border: 1px solid var(--warning);
  color: var(--text);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 13.5px;
}

.new-resume-bar {
  text-align: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.new-resume-btn {
  /* --accent-dark, not --accent — same fixed shade the .buy buttons use,
     since --accent itself is too light against --on-accent text in dark
     theme (measured contrast ~2.85:1, below even the large-text minimum). */
  background: var(--accent-dark);
  border: 1px solid var(--accent-dark);
  color: var(--on-accent);
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.new-resume-btn:hover { opacity: 0.9; }

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}

.modal-box {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-box h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.modal-box p {
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

/* 3 columns groups each row as one document's actions (txt / docx / print)
   rather than interleaving resume and cover-letter buttons across rows. */
.modal-save-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

@media (max-width: 480px) {
  .modal-save-grid { grid-template-columns: 1fr; }
}

.modal-save-grid .download-btn,
.modal-save-grid .docx-btn,
.modal-save-grid .print-btn {
  width: 100%;
  padding: 8px 10px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.modal-cancel {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
}

.modal-cancel:hover { color: var(--text); border-color: var(--accent); }

/* Fixed color, not var(--danger) — same dark-theme contrast issue as
   .buy.confirm-armed above (see its comment). */
.modal-confirm {
  background: #9c2b1f;
  border: none;
  color: var(--on-accent);
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.modal-confirm:hover { opacity: 0.9; }

.file-upload-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.file-upload-btn {
  display: inline-block;
  cursor: pointer;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  text-transform: none;
  letter-spacing: normal;
  margin-bottom: 0;
}

.file-upload-btn:hover { border-color: var(--accent); }

.file-upload-status {
  font-size: 12.5px;
  color: var(--muted);
}

.file-upload-status.error { color: var(--danger); }

/* Hidden by default — JS only adds 'speech-supported' to <body> when the
   browser has SpeechRecognition (Chrome/Edge), so unsupported browsers
   (Safari, Firefox) never see a button that wouldn't work. */
.mic-row {
  display: none;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

body.speech-supported .mic-row { display: flex; }

.mic-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
}

.mic-btn:hover { border-color: var(--accent); }

.mic-btn.listening {
  border-color: var(--danger);
  color: var(--danger);
  animation: mic-pulse 1.4s ease-in-out infinite;
}

@keyframes mic-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.mic-status { font-size: 12.5px; color: var(--muted); }

.mic-secondary-btn {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 12px;
  color: var(--muted);
}

.mic-secondary-btn:hover { color: var(--text); border-color: var(--accent); }
.mic-secondary-btn:disabled { opacity: 0.5; cursor: default; }
.mic-secondary-btn:disabled:hover { color: var(--muted); border-color: var(--border); }

.mic-hint {
  font-size: 12px;
  color: var(--muted);
  margin: 4px 0 0;
}

.error-box {
  background: var(--error-bg);
  border: 1px solid var(--error-border);
  color: var(--danger);
  border-radius: 10px;
  padding: 14px;
  font-size: 14px;
  margin-bottom: 16px;
}

.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin-right: 8px;
  vertical-align: -2px;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Industry polish suggestions ---- */

.suggestion-card {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 12px;
  text-align: left;
}

/* <del>/<ins> are used for suggestion-before/after so screen readers announce
   them as a removal/insertion, not just styled text — they're inline by
   default, so display:block restores the original stacked layout. */
.suggestion-before {
  display: block;
  font-size: 13px;
  color: var(--danger);
  text-decoration: line-through;
  opacity: 0.8;
  margin-bottom: 4px;
}

.suggestion-after {
  display: block;
  font-size: 14px;
  color: var(--success);
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 8px;
}

.suggestion-reason {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 12px;
  line-height: 1.5;
}

.suggestion-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.suggestion-also-letter {
  font-size: 12px;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 10px;
  margin-bottom: 10px;
}

/* Cover-letter alternate-version toggle — appears once a second version
   exists, replacing the "Try a Different Version" button (see
   renderLetterVersionArea in tool.js). */
.version-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.version-toggle-btn {
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--text);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 14px;
  cursor: pointer;
}

.version-toggle-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

/* Marks the just-accepted phrase in place in the resume/cover-letter box
   itself, not just in the suggestion card below — cleared on the next
   accept or on Revert (see setFormattedContent), so only the most recent
   change is ever highlighted at once. */
.suggestion-highlight {
  background: var(--good-bg);
  color: inherit;
  border-radius: 3px;
  padding: 0 2px;
}

.btn-accept,
.btn-dismiss,
.btn-revert {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
}

.btn-accept {
  background: var(--success-bright);
  border-color: var(--success-bright);
  /* Was #0f1115 (near-black) — measured 2.11:1 against --success-bright,
     a dark plum. --on-accent (light) is what the rest of the site already
     uses for text on dark accent-family fills. */
  color: var(--on-accent);
}

.btn-accept:hover { opacity: 0.9; }
.btn-dismiss:hover, .btn-revert:hover { border-color: var(--muted); }

.suggestion-card.applied {
  border-color: var(--success);
  opacity: 0.75;
}

.suggestion-card.dismissed {
  opacity: 0.5;
}

/* ---- Legal doc pages ---- */

.legal-doc {
  text-align: left;
  line-height: 1.7;
  font-size: 15px;
  color: var(--text);
}

.legal-doc h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 19px;
  margin: 28px 0 10px;
  color: var(--text);
}

.legal-doc h2:first-of-type {
  margin-top: 8px;
}

.legal-doc p {
  color: var(--muted);
  margin: 0 0 12px;
}

.legal-doc ul {
  color: var(--muted);
  margin: 0 0 12px;
  padding-left: 22px;
}

.legal-doc li {
  margin-bottom: 6px;
}

.legal-doc a {
  color: var(--accent);
}

.legal-doc code {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 13px;
}

/* ---- Footer ---- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0 40px;
  margin-top: 20px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-logo {
  width: 67px;
  height: 67px;
  display: block;
  flex-shrink: 0;
}

.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-credit {
  color: var(--muted);
  text-decoration: none;
}

.footer-credit:hover {
  color: var(--text);
  text-decoration: underline;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 18px;
}

.footer-links a:first-child { margin-left: 0; }

.footer-links a:hover {
  color: var(--text);
}

.legal-note {
  color: var(--muted);
  font-size: 12px;
  margin-top: 10px;
  margin-bottom: 32px;
  text-align: center;
}

.legal-note a {
  color: var(--muted);
  text-decoration: underline;
}

/* ---- "How we're different" comparison ---- */

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 640px) {
  .compare-grid { grid-template-columns: 1fr; }
}

.compare-col {
  border-radius: 14px;
  padding: 22px;
  border: 1px solid var(--border);
  box-shadow: 0 3px 10px rgba(20, 14, 10, 0.12), 0 28px 54px -18px rgba(20, 14, 10, 0.35);
}

.compare-col.bad {
  background: var(--bad-bg);
  border-color: var(--bad-border);
}

.compare-col.good {
  background: var(--good-bg);
  border-color: var(--good-border);
}

.compare-col h2 {
  font-family: 'Fraunces', Georgia, serif;
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0;
}

.compare-col.bad h2 { color: var(--danger); }
.compare-col.good h2 { color: var(--success); }

.compare-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13.5px;
  color: var(--text);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.compare-item:last-child { border-bottom: none; }

.compare-item .icon {
  flex-shrink: 0;
  font-weight: 700;
}

.compare-col.bad .icon { color: var(--danger); }
.compare-col.good .icon { color: var(--success); }

.anchor-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 999px;
  padding: 8px 16px;
  text-decoration: none;
  margin-top: 18px;
}

.anchor-cta:hover { border-color: var(--accent); }

/* ---- "See it for yourself" examples ---- */

.examples-section {
  margin-bottom: 24px;
}

.examples-eyebrow {
  text-align: center;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.examples-heading {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 26px;
  font-weight: 600;
  text-align: center;
  margin: 0 0 8px;
  text-wrap: balance;
}

.examples-sub {
  text-align: center;
  color: var(--muted);
  font-size: 14.5px;
  max-width: 480px;
  margin: 0 auto 28px;
}

.examples-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 780px) {
  .examples-grid { grid-template-columns: 1fr; }
}

.example-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 3px 10px rgba(20, 14, 10, 0.1), 0 20px 40px -18px rgba(20, 14, 10, 0.3);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.example-role {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.example-raw {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
  font-style: italic;
  padding-bottom: 2px;
}

.example-raw .example-label {
  display: inline;
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-right: 5px;
}

.example-row {
  border-radius: 10px;
  padding: 12px 13px;
  font-size: 13.5px;
  line-height: 1.5;
  border: 1px solid;
}

.example-row .example-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.example-row.ai {
  background: var(--bad-bg);
  border-color: var(--bad-border);
  color: var(--text);
}
.example-row.ai .example-label { color: var(--danger); }

.example-row.vantage {
  background: var(--good-bg);
  border-color: var(--good-border);
  color: var(--text);
}
.example-row.vantage .example-label { color: var(--success); }

@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation: none;
    border-top-color: rgba(255, 255, 255, 0.7);
  }
}

/* ---- "Before you send this" instructions on the results page ----
   Deliberately louder than the standard .card: this is the one thing on the
   results page we most need the user to actually read and act on, so it gets
   its own warning-amber treatment instead of blending in with the results. */

.info-box {
  background: var(--warn-bg);
  border: 2px solid var(--warning);
  border-left-width: 6px;
  border-radius: 10px;
  padding: 20px 22px;
  margin-bottom: 24px;
  text-align: left;
  box-shadow: 0 0 0 1px rgba(255, 176, 32, 0.12), 0 6px 24px rgba(255, 176, 32, 0.1);
}

/* A bordered badge, not just colored caption text — this is the one line on
   the page most likely to get skipped, so it needs to actually stop the eye
   rather than read as another small label. Text/background is the same
   --text/--panel pairing used site-wide (guaranteed readable in both
   themes) rather than a solid --warning fill — that combination measured
   under 3:1 contrast in both themes and was genuinely hard to read. */
.info-box .eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  background: var(--panel);
  border: 1.5px solid var(--warning);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.info-box h2 {
  margin: 0 0 14px;
  font-size: 19px;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-box ol {
  margin: 0;
  padding-left: 22px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
}

.info-box li { margin-bottom: 10px; }
.info-box li:last-child { margin-bottom: 0; }
.info-box li strong { color: var(--warning); }
