/* ==========================================================================
   RoleReady — design system
   Single stylesheet, no external fonts or frameworks.
   ========================================================================== */

:root {
  --ink: #101828;
  --ink-2: #344054;
  --muted: #667085;
  --faint: #98a2b3;
  --line: #e4e7ec;
  --line-strong: #d0d5dd;
  --bg: #fafaf9;
  --surface: #ffffff;
  --surface-2: #f5f5f3;

  --brand: #4338ca;
  --brand-deep: #312e81;
  --brand-2: #7c3aed;
  --brand-soft: #eef0ff;
  --brand-soft-2: #f5f3ff;
  --accent: #0f766e;
  --accent-soft: #e6f6f2;
  --amber: #b45309;
  --amber-soft: #fef4e6;
  --danger: #b42318;
  --danger-soft: #fef1f0;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;

  --shadow-xs: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-sm: 0 2px 6px rgba(16, 24, 40, 0.06);
  --shadow-md: 0 16px 40px -18px rgba(16, 24, 40, 0.22);
  --shadow-lg: 0 30px 70px -30px rgba(16, 24, 40, 0.3);

  --container: 1120px;
  --header-h: 70px;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

button {
  font: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.18;
  text-wrap: balance;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

:focus-visible {
  outline: 3px solid rgba(67, 56, 202, 0.45);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 12px;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 249, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(228, 231, 236, 0.9);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex: none;
}

.brand-name span {
  color: var(--brand);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 0.93rem;
  font-weight: 500;
  transition: background 0.16s ease, color 0.16s ease;
}

.site-nav a:hover {
  background: var(--surface-2);
  color: var(--ink);
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-weight: 600;
}

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

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
}

/* --------------------------------------------------------------------------
   Buttons & pills
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(67, 56, 202, 0.75);
}

.btn-primary:hover {
  box-shadow: 0 14px 30px -12px rgba(67, 56, 202, 0.85);
}

.btn-secondary {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--ink);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  background: var(--surface-2);
}

.btn-ghost {
  background: transparent;
  color: var(--brand-deep);
}

.btn-ghost:hover {
  background: var(--brand-soft);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 15px 26px;
  font-size: 1rem;
}

.btn-danger {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: #f3c3be;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.pill svg {
  width: 15px;
  height: 15px;
  color: var(--accent);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 64px;
  background:
    radial-gradient(900px 480px at 12% -10%, rgba(124, 58, 237, 0.1), transparent 60%),
    radial-gradient(760px 420px at 92% 8%, rgba(15, 118, 110, 0.09), transparent 62%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(16, 24, 40, 0.055) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 72%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 72%);
  pointer-events: none;
}

.hero > .container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 56px;
}

.hero-copy {
  max-width: 620px;
}

.hero h1 {
  margin: 20px 0 18px;
  font-size: clamp(2.15rem, 4.6vw, 3.45rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero h1 em {
  font-style: italic;
  color: var(--brand);
}

.hero-lede {
  max-width: 560px;
  color: var(--ink-2);
  font-size: 1.1rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-self: stretch;
}

.paper-stack {
  position: relative;
  width: min(100%, 400px);
  margin: 8px auto;
}

.paper {
  position: relative;
  padding: 34px 32px 30px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.paper::before {
  content: "";
  position: absolute;
  inset: 10px -10px -10px 10px;
  z-index: -1;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffdf7;
}

.paper-name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.paper-role {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.paper-rule {
  height: 1px;
  margin: 18px 0 16px;
  background: var(--line);
}

.paper-line {
  height: 9px;
  margin-bottom: 10px;
  border-radius: 5px;
  background: linear-gradient(90deg, #e8eaf0, #f2f3f6);
}

.paper-line.w80 { width: 80%; }
.paper-line.w64 { width: 64%; }
.paper-line.w92 { width: 92%; }
.paper-line.w48 { width: 48%; }

.paper-section {
  margin-top: 18px;
  margin-bottom: 10px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
}

.score-chip {
  position: absolute;
  right: -14px;
  top: 34px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  animation: float 5s ease-in-out infinite;
}

.score-ring {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: conic-gradient(var(--accent) 0 352deg, var(--accent-soft) 0);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
}

.score-chip p {
  font-size: 0.72rem;
  line-height: 1.3;
  color: var(--muted);
}

.score-chip strong {
  display: block;
  color: var(--ink);
  font-size: 0.82rem;
}

.pdf-chip {
  position: absolute;
  left: -18px;
  bottom: 46px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  color: var(--ink-2);
  font-size: 0.74rem;
  font-weight: 600;
  animation: float 6s ease-in-out infinite 0.8s;
}

.pdf-chip svg {
  width: 16px;
  height: 16px;
  color: var(--brand);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .btn:hover { transform: none; }
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
  padding: 72px 0;
}

.section-tight {
  padding: 52px 0;
}

.section-alt {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 32px;
}

.section-head h2 {
  font-size: clamp(1.55rem, 3vw, 2.1rem);
}

.section-head .lede {
  max-width: 600px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.98rem;
}

.section-head .more {
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

a.card:hover {
  transform: translateY(-3px);
  border-color: #c9cbe8;
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.card h3 {
  font-size: 1.12rem;
  font-family: var(--font-sans);
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.card .card-link {
  margin-top: auto;
  padding-top: 16px;
  color: var(--brand);
  font-size: 0.86rem;
  font-weight: 600;
}

.icon-tile {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  flex: none;
}

.icon-tile svg {
  width: 21px;
  height: 21px;
}

.icon-tile.teal { background: var(--accent-soft); color: var(--accent); }
.icon-tile.amber { background: var(--amber-soft); color: var(--amber); }

.tool-card {
  min-height: 178px;
}

.tool-card .badge-soft {
  position: absolute;
  top: 20px;
  right: 18px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Trust / privacy panel
   -------------------------------------------------------------------------- */

.privacy-panel {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: center;
  margin-top: 40px;
  padding: 26px 30px;
  border: 1px solid #cfe8e2;
  border-radius: var(--radius);
  background: linear-gradient(120deg, #f2fbf8 0%, #f7faf9 100%);
}

.privacy-panel .lock {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid #cfe8e2;
  color: var(--accent);
}

.privacy-panel .lock svg {
  width: 24px;
  height: 24px;
}

.privacy-panel h3 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 650;
}

.privacy-panel p {
  margin-top: 5px;
  color: var(--ink-2);
  font-size: 0.92rem;
}

/* --------------------------------------------------------------------------
   Feature rows
   -------------------------------------------------------------------------- */

.feature {
  padding: 30px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.feature h3 {
  margin-top: 16px;
  font-size: 1.08rem;
  font-family: var(--font-sans);
  font-weight: 650;
}

.feature p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.feature .icon-tile {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Steps
   -------------------------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: inline-block;
  margin-bottom: 14px;
  color: var(--brand);
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
}

.step h3 {
  font-size: 1.02rem;
  font-family: var(--font-sans);
  font-weight: 650;
}

.step p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */

.cta-band {
  position: relative;
  overflow: hidden;
  margin: 12px 0 0;
  padding: 44px 44px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(600px 260px at 85% 0%, rgba(255, 255, 255, 0.18), transparent 65%),
    linear-gradient(125deg, #312e81 0%, #4338ca 55%, #5b21b6 100%);
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: var(--shadow-lg);
}

.cta-band h2 {
  color: #fff;
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
}

.cta-band p {
  max-width: 520px;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.94rem;
}

.cta-band .btn {
  background: #fff;
  color: var(--brand-deep);
  box-shadow: 0 12px 28px -14px rgba(0, 0, 0, 0.45);
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq-list {
  display: grid;
  gap: 10px;
  max-width: 860px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex: none;
  color: var(--brand);
  font-size: 1.2rem;
  font-weight: 500;
  transition: transform 0.18s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item .faq-body {
  padding: 0 22px 20px;
  color: var(--muted);
  font-size: 0.93rem;
}

/* --------------------------------------------------------------------------
   Breadcrumbs
   -------------------------------------------------------------------------- */

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 22px 0 0;
  color: var(--faint);
  font-size: 0.8rem;
}

.breadcrumbs a {
  color: var(--muted);
}

.breadcrumbs .sep {
  color: var(--faint);
}

/* --------------------------------------------------------------------------
   Guide / article cards
   -------------------------------------------------------------------------- */

.guide-card {
  min-height: 100%;
}

.guide-card .chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.chip {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.chip.brand {
  background: var(--brand-soft);
  color: var(--brand-deep);
}

.guide-card h3 {
  font-size: 1.14rem;
}

.guide-card .meta {
  margin-top: auto;
  padding-top: 18px;
  color: var(--faint);
  font-size: 0.78rem;
}

/* --------------------------------------------------------------------------
   Category groups on the guides index
   -------------------------------------------------------------------------- */

.category-block {
  padding-top: 40px;
  margin-top: 40px;
  border-top: 1px solid var(--line);
}

.category-block:first-of-type {
  padding-top: 0;
  margin-top: 0;
  border-top: 0;
}

.category-block .category-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.category-block h2 {
  font-size: 1.35rem;
}

.category-block .category-head p {
  max-width: 620px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   Prose (long-form guide pages)
   -------------------------------------------------------------------------- */

.page-head {
  position: relative;
  padding: 40px 0 34px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.page-head h1 {
  max-width: 800px;
  margin-top: 14px;
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  line-height: 1.14;
}

.page-head .lede {
  max-width: 720px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.04rem;
}

.byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.83rem;
}

.byline .avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-size: 0.78rem;
  font-weight: 700;
}

.byline strong {
  color: var(--ink);
  font-weight: 600;
}

.prose-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 56px;
  padding: 48px 0 24px;
}

.prose {
  min-width: 0;
  max-width: 760px;
  font-size: 1.02rem;
  line-height: 1.78;
  color: var(--ink-2);
}

.prose > p:first-of-type {
  color: var(--ink);
  font-size: 1.08rem;
}

.prose h2 {
  margin: 40px 0 14px;
  font-size: 1.55rem;
}

.prose h3 {
  margin: 28px 0 10px;
  font-size: 1.18rem;
  font-family: var(--font-sans);
  font-weight: 650;
  letter-spacing: -0.01em;
}

.prose p {
  margin: 0 0 16px;
}

.prose ul,
.prose ol {
  margin: 0 0 18px;
  padding-left: 22px;
}

.prose li {
  margin-bottom: 9px;
}

.prose li::marker {
  color: var(--brand);
}

.prose a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(67, 56, 202, 0.35);
}

.prose strong {
  color: var(--ink);
  font-weight: 650;
}

.prose blockquote {
  margin: 26px 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--brand);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-style: italic;
}

.prose .callout {
  margin: 27px 0;
  padding: 20px 24px;
  border: 1px solid #ddd9fb;
  border-radius: 12px;
  background: var(--brand-soft-2);
  font-size: 0.94rem;
  line-height: 1.65;
}

.prose .callout strong {
  color: var(--brand-deep);
}

.prose .callout.teal {
  border-color: #cfe8e2;
  background: #f2fbf8;
}

.prose .callout.teal strong {
  color: var(--accent);
}

.prose .compare-table {
  width: 100%;
  margin: 24px 0 28px;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.prose .compare-table th,
.prose .compare-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.prose .compare-table th {
  background: var(--surface-2);
  color: var(--ink);
  font-weight: 650;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.prose .compare-table tr:last-child td {
  border-bottom: 0;
}

.prose .tool-nudge {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 34px 0;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.prose .tool-nudge p {
  margin: 0;
  font-size: 0.92rem;
}

.prose .tool-nudge strong {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
  font-size: 1rem;
}

.prose .faq-block {
  margin-top: 36px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.prose .faq-block h2 {
  margin-top: 26px;
}

.prose .faq-block .faq-item {
  margin-bottom: 10px;
}

.prose .faq-block .faq-item summary {
  font-size: 0.95rem;
}

.prose .faq-block .faq-body {
  color: var(--muted);
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-self: start;
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.sidebar-card {
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.sidebar-card h3 {
  font-family: var(--font-sans);
  font-size: 0.93rem;
  font-weight: 650;
}

.sidebar-card p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.86rem;
}

.sidebar-card .btn {
  width: 100%;
  margin-top: 14px;
}

.sidebar-links {
  display: grid;
  gap: 4px;
  margin-top: 10px;
}

.sidebar-links a {
  display: block;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.86rem;
  line-height: 1.45;
}

.sidebar-links a:last-child {
  border-bottom: 0;
}

.author-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  margin-top: 40px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.author-card .avatar {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-weight: 700;
  font-size: 0.9rem;
}

.author-card h3 {
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 650;
}

.author-card p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.87rem;
}

.author-card .credential {
  display: block;
  margin-top: 3px;
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Tools workspace
   -------------------------------------------------------------------------- */

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 26px;
  align-items: start;
}

.panel {
  padding: 26px 26px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.panel-head h2,
.panel-head h3 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 650;
}

.panel-head .hint {
  color: var(--muted);
  font-size: 0.78rem;
}

.field {
  margin-bottom: 18px;
}

.field label,
.field .label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 600;
}

.field .help {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.78rem;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="number"],
.field input[type="date"],
.field select,
.field textarea,
.input,
.textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  line-height: 1.5;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field textarea {
  min-height: 90px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.input:focus,
.textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(67, 56, 202, 0.12);
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field-row .field {
  margin-bottom: 18px;
}

.repeat-list {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
}

.repeat-item {
  position: relative;
  padding: 18px 18px 4px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  background: #fcfcfb;
}

.repeat-item .remove {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--danger);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
}

.repeat-item .remove:hover {
  background: var(--danger-soft);
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.toolbar .btn {
  flex: 1 1 auto;
}

.form-note {
  display: flex;
  gap: 9px;
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: #115e59;
  font-size: 0.8rem;
  line-height: 1.5;
}

.form-note svg {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 2px;
}

.preview-shell {
  position: sticky;
  top: calc(var(--header-h) + 20px);
}

.preview-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.preview-tools .pill {
  background: rgba(255, 255, 255, 0.8);
}

.preview-frame {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: #ececea;
  padding: 18px;
  box-shadow: var(--shadow-sm);
  max-height: calc(100vh - 210px);
  overflow-y: auto;
}

.preview-hint {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

/* Resume / letter document */
.doc {
  --doc-accent: #4338ca;
  width: 100%;
  max-width: 700px;
  min-height: 940px;
  margin: 0 auto;
  padding: 54px 52px;
  background: #fff;
  color: #1a1a1a;
  box-shadow: 0 12px 30px -18px rgba(0, 0, 0, 0.35);
  font-family: var(--font-serif);
  font-size: 12.5px;
  line-height: 1.55;
}

.doc .doc-header {
  padding-bottom: 14px;
  border-bottom: 2px solid var(--doc-accent);
  margin-bottom: 20px;
}

.doc .doc-name {
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #111;
}

.doc .doc-title {
  margin-top: 5px;
  color: var(--doc-accent);
  font-family: var(--font-sans);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.doc .doc-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-top: 10px;
  color: #444;
  font-family: var(--font-sans);
  font-size: 9.5px;
}

.doc .doc-contact span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.doc .doc-contact span::before {
  content: "";
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #bbb;
}

.doc .doc-contact span:first-child::before {
  display: none;
}

.doc .doc-section {
  margin-top: 18px;
}

.doc .doc-section h3 {
  margin: 0 0 9px;
  padding-bottom: 3px;
  border-bottom: 1px solid #ddd;
  color: var(--doc-accent);
  font-family: var(--font-sans);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.doc .entry {
  margin-bottom: 12px;
}

.doc .entry-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.doc .entry-title {
  font-weight: 600;
  font-size: 13px;
  color: #111;
}

.doc .entry-sub {
  color: #555;
  font-size: 11px;
}

.doc .entry-date {
  flex: none;
  color: #666;
  font-family: var(--font-sans);
  font-size: 9.5px;
}

.doc .entry ul {
  margin: 5px 0 0;
  padding-left: 16px;
}

.doc .entry li {
  margin-bottom: 3px;
}

.doc .entry li::marker {
  color: var(--doc-accent);
}

.doc .skills-line {
  margin-bottom: 5px;
  font-size: 11.5px;
}

.doc .skills-line strong {
  font-family: var(--font-sans);
  font-size: 9.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #444;
}

.doc .empty-note {
  color: #999;
  font-family: var(--font-sans);
  font-size: 10px;
  font-style: italic;
}

/* Document variants */
.doc.tpl-modern {
  --doc-accent: #0f766e;
}

.doc.tpl-modern .doc-header {
  border-bottom: 0;
}

.doc.tpl-modern .doc-name {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.doc.tpl-modern .doc-section h3 {
  border-bottom: 0;
  padding-left: 9px;
  border-left: 3px solid var(--doc-accent);
}

.doc.tpl-minimal {
  --doc-accent: #111;
  font-family: var(--font-sans);
  font-size: 11.5px;
  line-height: 1.6;
}

.doc.tpl-minimal .doc-header {
  border-bottom: 1px solid #222;
}

.doc.tpl-minimal .doc-name {
  font-family: var(--font-sans);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 23px;
}

.doc.tpl-minimal .doc-section h3 {
  color: #111;
  letter-spacing: 0.1em;
}

/* Cover letter */
.doc .letter-date {
  margin-bottom: 18px;
  color: #555;
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.doc .letter-body p {
  margin-bottom: 12px;
  font-size: 12.5px;
  line-height: 1.65;
}

.doc .letter-signoff {
  margin-top: 26px;
  font-size: 12.5px;
}

/* --------------------------------------------------------------------------
   Tool results
   -------------------------------------------------------------------------- */

.score-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: center;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.score-dial {
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: conic-gradient(var(--brand) calc(var(--score, 0) * 1%), #e6e3fb 0);
  font-family: var(--font-serif);
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--ink);
}

.score-dial span {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: var(--surface);
}

.score-hero h3 {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 650;
}

.score-hero p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.87rem;
}

.check-list {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}

.check-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  font-size: 0.88rem;
}

.check-item .state {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
  flex: none;
}

.check-item.pass .state {
  background: var(--accent-soft);
  color: var(--accent);
}

.check-item.warn .state {
  background: var(--amber-soft);
  color: var(--amber);
}

.check-item.fail .state {
  background: var(--danger-soft);
  color: var(--danger);
}

.check-item strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
}

.check-item p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.82rem;
}

.kw-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.kw {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 0.8rem;
  font-family: var(--font-mono);
}

.kw b {
  color: var(--brand);
  font-size: 0.7rem;
  font-weight: 700;
}

.kw.matched {
  border-color: #bfe7dd;
  background: var(--accent-soft);
  color: #115e59;
}

.meter {
  height: 10px;
  margin-top: 8px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

.meter > span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  transition: width 0.4s ease;
}

.result-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  font-size: 0.86rem;
}

.result-table th,
.result-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: right;
}

.result-table th:first-child,
.result-table td:first-child {
  text-align: left;
}

.result-table th {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.result-table tr.best td {
  background: var(--accent-soft);
  color: #115e59;
  font-weight: 600;
}

.result-table td.best {
  background: var(--accent-soft);
  color: #115e59;
  font-weight: 600;
}

.result-table tr:last-child td {
  border-bottom: 0;
}

.big-number {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--ink);
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.result-box {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.result-box span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.result-box strong {
  display: block;
  margin-top: 3px;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
}

/* Interview bank */
.qbank {
  display: grid;
  gap: 10px;
}

.qbank details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
}

.qbank summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 18px;
  font-weight: 600;
  font-size: 0.93rem;
  cursor: pointer;
  list-style: none;
}

.qbank summary::-webkit-details-marker {
  display: none;
}

.qbank summary::after {
  content: "+";
  color: var(--brand);
  font-size: 1.15rem;
  flex: none;
}

.qbank details[open] summary::after {
  content: "–";
}

.qbank .answer {
  padding: 0 18px 18px;
  color: var(--muted);
  font-size: 0.89rem;
  line-height: 1.65;
}

.qbank .answer strong {
  color: var(--ink);
}

.checkable {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 0;
  font-size: 0.9rem;
  color: var(--ink-2);
  cursor: pointer;
}

.checkable input {
  width: 17px;
  height: 17px;
  margin-top: 4px;
  accent-color: var(--brand);
  flex: none;
}

.checkable.done {
  color: var(--faint);
  text-decoration: line-through;
}

/* --------------------------------------------------------------------------
   Templates gallery
   -------------------------------------------------------------------------- */

.tpl-card {
  padding: 0;
  overflow: hidden;
}

.tpl-thumb {
  padding: 24px 22px;
  background: linear-gradient(150deg, #f0f0ee, #e6e5fb);
  border-bottom: 1px solid var(--line);
}

.tpl-sheet {
  padding: 18px 16px;
  min-height: 220px;
  background: #fff;
  border: 1px solid #dcdce6;
  border-radius: 4px;
  box-shadow: 0 10px 22px -16px rgba(0, 0, 0, 0.35);
  font-family: var(--font-serif);
  font-size: 6px;
  color: #333;
}

.tpl-sheet .t-name {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #111;
}

.tpl-sheet .t-sub {
  margin-top: 2px;
  font-family: var(--font-sans);
  font-size: 5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6b7280;
}

.tpl-sheet .t-rule {
  height: 2px;
  margin: 8px 0 10px;
  background: #4338ca;
}

.tpl-sheet .t-head {
  margin: 9px 0 5px;
  font-family: var(--font-sans);
  font-size: 5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #4338ca;
}

.tpl-sheet .t-line {
  height: 3px;
  margin-bottom: 3px;
  border-radius: 2px;
  background: #e5e7eb;
}

.tpl-sheet .t-line.s { width: 62%; }
.tpl-sheet .t-line.m { width: 84%; }
.tpl-sheet .t-line.l { width: 100%; }

.tpl-sheet.modern {
  font-family: var(--font-sans);
}
.tpl-sheet.modern .t-rule { background: #0f766e; height: 0; margin: 6px 0; }
.tpl-sheet.modern .t-name { font-size: 13px; font-family: var(--font-sans); }
.tpl-sheet.modern .t-head { color: #0f766e; border-left: 2px solid #0f766e; padding-left: 4px; }
.tpl-sheet.minimal .t-rule { background: #111; height: 1px; }
.tpl-sheet.minimal .t-name { font-family: var(--font-sans); text-transform: uppercase; font-size: 11px; letter-spacing: 0.04em; }
.tpl-sheet.minimal .t-head { color: #111; }

.tpl-body {
  padding: 20px 22px 22px;
}

.tpl-body h3 {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 650;
}

.tpl-body p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.86rem;
}

.tpl-body .btn {
  margin-top: 16px;
  width: 100%;
}

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

.site-footer {
  margin-top: 80px;
  padding: 56px 0 32px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 0.7fr));
  gap: 36px;
}

.footer-brand .brand {
  margin-bottom: 12px;
}

.footer-brand p {
  max-width: 330px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

.footer-col h4 {
  margin: 4px 0 12px;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.footer-col ul {
  list-style: none;
  display: grid;
  gap: 8px;
}

.footer-col a {
  color: var(--muted);
  font-size: 0.86rem;
}

.footer-col a:hover {
  color: var(--brand);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.78rem;
}

.footer-bottom .legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-bottom a {
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Utility
   -------------------------------------------------------------------------- */

.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.center { text-align: center; }
.stack-24 { display: grid; gap: 24px; }
.mt-0 { margin-top: 0; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.hidden { display: none !important; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .hero-copy {
    max-width: 640px;
  }
  .hero-visual {
    justify-content: flex-start;
  }
  .paper-stack {
    margin-left: 0;
    max-width: 360px;
  }
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-top {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .prose-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .sidebar {
    position: static;
    order: 2;
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  .preview-shell {
    position: static;
  }
  .preview-frame {
    max-height: none;
  }
}

@media (max-width: 820px) {
  .site-nav {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .header-actions .btn {
    display: none;
  }
  .site-header.nav-open .site-nav {
    display: flex;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 24px 18px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }
  .site-header.nav-open .site-nav a {
    padding: 13px 14px;
    border-radius: 10px;
  }
  .section {
    padding: 56px 0;
  }
  .hero {
    padding: 52px 0 48px;
  }
  .grid-3,
  .grid-2,
  .steps {
    grid-template-columns: 1fr;
  }
  .page-head {
    padding-top: 28px;
  }
  .cta-band {
    padding: 34px 28px;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .privacy-panel {
    grid-template-columns: 1fr;
  }
  .result-grid {
    grid-template-columns: 1fr;
  }
  .preview-frame {
    padding: 10px;
  }
  .doc {
    padding: 34px 30px;
    min-height: 0;
    font-size: 11px;
  }
  .doc .doc-name {
    font-size: 23px;
  }
}

@media (max-width: 560px) {
  .container {
    width: calc(100% - 32px);
  }
  .grid-4,
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .header-inner {
    gap: 12px;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .result-grid {
    grid-template-columns: 1fr;
  }
  .score-hero {
    grid-template-columns: 1fr;
    justify-items: start;
  }
  .paper-stack {
    display: none;
  }
  .hero {
    padding: 44px 0 40px;
  }
  .breadcrumbs {
    font-size: 0.74rem;
  }
  .byline {
    gap: 8px 12px;
  }
}

/* --------------------------------------------------------------------------
   Interview filters + print helpers
   -------------------------------------------------------------------------- */

.kw.active {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.kw.active b {
  color: #fff;
}

.print-only {
  display: none;
}

/* --------------------------------------------------------------------------
   Print — resume / cover letter export (selectable text PDF)
   -------------------------------------------------------------------------- */

@media print {
  @page {
    size: A4;
    margin: 12mm;
  }

  body {
    background: #fff;
  }

  .site-header,
  .site-footer,
  .breadcrumbs,
  .page-head,
  .preview-tools,
  .preview-hint,
  .panel,
  .sidebar,
  .tool-nudge,
  .author-card,
  .cta-band,
  .no-print,
  .skip-link {
    display: none !important;
  }

  .container,
  .workspace,
  .preview-shell,
  .preview-frame {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
    overflow: visible !important;
    position: static !important;
  }

  .doc {
    width: 100% !important;
    max-width: none !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    font-size: 11pt;
  }

  .doc .entry,
  .doc .doc-section {
    break-inside: avoid;
  }

  .print-only {
    display: block !important;
  }

  /* Tool pages: print the output, not the article and FAQ below it. */
  body.tool .section,
  body.tool .section-alt,
  body.tool .form-note,
  body.tool .hero-badges {
    display: none !important;
  }

  .qbank details {
    border: 0;
    border-bottom: 1px solid #ddd;
    border-radius: 0;
    break-inside: avoid;
  }

  .qbank details .answer {
    display: block !important;
  }
}
