:root {
  --ink: #121916;
  --ink-2: #29332d;
  --paper: #f3eee2;
  --paper-2: #e9e2d2;
  --cream: #fffdf7;
  --line: #d5cdbd;
  --muted: #5d655f;
  --muted-2: #737a73;
  --coral: #df5b3f;
  --coral-dark: #b9432c;
  --lime: #d5f26b;
  --lime-2: #e9f9ae;
  --green: #087443;
  --green-soft: #e4f4ea;
  --amber: #9a5b08;
  --amber-soft: #fff3d7;
  --red: #b42318;
  --red-soft: #fde8e5;
  --blue: #2458c5;
  --shadow: 0 18px 50px rgba(33, 38, 34, 0.12);
  --radius: 18px;
  --max: 1160px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--blue);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--ink);
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  z-index: 100;
  background: var(--ink);
  color: var(--cream);
  padding: 10px 16px;
  border-radius: 8px;
}

.skip-link:focus {
  left: 10px;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.narrow {
  max-width: 760px;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(243, 238, 226, 0.94);
  border-bottom: 1px solid rgba(18, 25, 22, 0.1);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 70px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.08rem;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--ink);
  color: var(--lime);
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 1.15rem;
  letter-spacing: -0.08em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

/* Optional user-supplied logo. Set logoUrl in data/site.json. */
.brand-mark--image {
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}

.brand-mark--image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand small {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.2;
}

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

.site-nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 650;
  font-size: 0.94rem;
  padding: 9px 11px;
  border-radius: 8px;
}

.site-nav a:hover {
  background: rgba(18, 25, 22, 0.06);
}

.nav-cta {
  background: var(--ink);
  color: var(--cream) !important;
  padding: 10px 15px !important;
  margin-left: 6px;
}

.nav-cta:hover {
  background: var(--coral) !important;
  color: var(--cream) !important;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--cream);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Shared */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--coral);
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.45em;
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.6rem, 4.8vw, 4.4rem);
}

h2 {
  font-size: clamp(1.8rem, 3.7vw, 3rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
}

p {
  margin: 0 0 1.1em;
}

.lede {
  font-size: clamp(1.08rem, 1.8vw, 1.28rem);
  color: var(--ink-2);
  max-width: 700px;
}

.section {
  padding: 72px 0;
}

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

.section--ink {
  background: var(--ink);
  color: var(--cream);
}

.section--ink .eyebrow,
.section--ink .lede {
  color: rgba(255, 253, 247, 0.7);
}

.section--ink a {
  color: var(--lime);
}

.section--cream {
  background: var(--cream);
}

.section-head {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 34px;
}

.section-head p {
  color: var(--muted);
  margin-bottom: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--ink);
  color: var(--cream);
  font-weight: 750;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  color: var(--cream);
  background: var(--coral);
  transform: translateY(-1px);
}

.btn--lime {
  background: var(--lime);
  color: var(--ink);
}

.btn--lime:hover {
  background: var(--cream);
  color: var(--ink);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn--ghost:hover {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--ink);
}

.btn--small {
  min-height: 40px;
  padding: 8px 13px;
  font-size: 0.9rem;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.text-link {
  font-weight: 750;
  text-decoration-thickness: 2px;
}

/* Hero */
.hero {
  padding: 54px 0 62px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 84% 8%, rgba(213, 242, 107, 0.58), transparent 28%),
    radial-gradient(circle at 6% 70%, rgba(223, 91, 63, 0.11), transparent 25%);
  pointer-events: none;
}

.hero .container {
  position: relative;
}

.hero-top {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(290px, 0.55fr);
  gap: 46px;
  align-items: center;
  margin-bottom: 32px;
}

.hero h1 {
  max-width: 800px;
  margin-bottom: 18px;
}

.hero h1 em {
  font-style: normal;
  color: var(--coral);
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.09em;
}

.hero-side {
  border-left: 1px solid var(--line);
  padding-left: 25px;
  padding-bottom: 5px;
}

.hero-side p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.98rem;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--cream);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.76rem;
  font-weight: 750;
  line-height: 1.3;
}

.pill--lime {
  background: var(--lime-2);
  border-color: #c9e16d;
}

.pill--dark {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

/* Tool */
.tool-shell {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
  scroll-margin-top: 90px;
}

.tool-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: #fbf8ef;
}

.tool-head h2 {
  font-family: inherit;
  font-size: 1rem;
  letter-spacing: -0.01em;
  margin: 0;
}

.tool-head p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.tool-body {
  padding: 22px;
}

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

.field-block {
  min-width: 0;
}

.field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-weight: 800;
  font-size: 0.9rem;
}

.field-label span {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.78rem;
}

.dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 148px;
  padding: 20px;
  border: 2px dashed #bfb5a3;
  border-radius: 13px;
  background: #fcf9f1;
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.dropzone:hover,
.dropzone.is-dragover {
  border-color: var(--coral);
  background: #fff7f1;
}

.dropzone.is-loaded {
  border-style: solid;
  border-color: var(--green);
  background: var(--green-soft);
}

.dropzone input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.dropzone-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--ink);
  color: var(--lime);
  margin-bottom: 9px;
  font-weight: 800;
  font-size: 1.1rem;
}

.dropzone strong {
  display: block;
  font-size: 0.94rem;
}

.dropzone small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
}

.file-name {
  margin-top: 9px;
  font-size: 0.8rem;
  font-weight: 750;
  color: var(--green);
  overflow-wrap: anywhere;
}

.textarea-wrap {
  position: relative;
}

textarea {
  width: 100%;
  min-height: 148px;
  resize: vertical;
  padding: 14px;
  border: 1px solid #c8bfaf;
  border-radius: 12px;
  background: #fffefb;
  color: var(--ink);
  line-height: 1.55;
  font-size: 0.9rem;
}

textarea:focus {
  border-color: var(--ink);
  outline: 2px solid var(--ink);
  outline-offset: 1px;
}

textarea::placeholder {
  color: #8a9089;
}

.field-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.mini-btn {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-2);
  border-radius: 7px;
  padding: 5px 9px;
  font-size: 0.75rem;
  font-weight: 700;
}

.mini-btn:hover {
  background: var(--paper);
  border-color: var(--ink);
}

.form-message {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.form-message.is-error {
  color: var(--red);
  font-weight: 700;
}

.tool-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.tool-actions .btn {
  min-width: 190px;
}

.privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
  max-width: 390px;
  margin: 0;
}

.privacy-note strong {
  color: var(--ink);
}

.status {
  display: none;
  margin-top: 14px;
  padding: 10px 13px;
  border-radius: 9px;
  background: var(--paper);
  color: var(--ink-2);
  font-size: 0.86rem;
}

.status.is-visible {
  display: block;
}

.status.is-error {
  background: var(--red-soft);
  color: var(--red);
}

.status.is-working {
  background: var(--amber-soft);
  color: var(--amber);
}

/* Results */
.results {
  display: none;
  margin-top: 26px;
  scroll-margin-top: 90px;
}

.results.is-visible {
  display: block;
}

.results-top {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 26px;
  align-items: center;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbf8ef;
}

.score-ring {
  --score: 0;
  --ring: var(--coral);
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto;
  border-radius: 50%;
  background: conic-gradient(var(--ring) calc(var(--score) * 1%), #ddd5c6 0);
  display: grid;
  place-items: center;
}

.score-ring::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: #fbf8ef;
}

.score-ring__inner {
  position: relative;
  text-align: center;
}

.score-ring__number {
  display: block;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 2.6rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.score-ring__label {
  display: block;
  font-size: 0.67rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 800;
  margin-top: 5px;
}

.results-summary h2 {
  font-family: inherit;
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  letter-spacing: -0.03em;
  margin-bottom: 7px;
}

.results-summary p {
  margin-bottom: 12px;
  color: var(--muted);
}

.grade-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.grade {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
}

.grade--strong {
  background: var(--green-soft);
  color: var(--green);
}

.grade--good {
  background: var(--lime-2);
  color: #44520b;
}

.grade--work {
  background: var(--amber-soft);
  color: var(--amber);
}

.grade--risk {
  background: var(--red-soft);
  color: var(--red);
}

.confidence-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.confidence-line strong {
  color: var(--ink);
  font-weight: 800;
}

.confidence-line a {
  margin-left: auto;
  font-size: 0.76rem;
  font-weight: 800;
  text-decoration-thickness: 1px;
}

.confidence-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--amber);
}

.confidence-dot--high {
  background: var(--green);
}

.confidence-dot--moderate {
  background: var(--amber);
}

.confidence-dot--low {
  background: var(--red);
}

.confidence-card {
  margin-top: 18px;
}

.confidence-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 14px;
}

.result-card.confidence-card h3 {
  justify-content: flex-start;
  margin-bottom: 6px;
}

.result-card h3 .confidence-level {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--amber);
  background: var(--amber-soft);
}

.result-card h3 .confidence-level--high {
  color: var(--green);
  background: var(--green-soft);
}

.result-card h3 .confidence-level--moderate {
  color: var(--amber);
  background: var(--amber-soft);
}

.result-card h3 .confidence-level--low {
  color: var(--red);
  background: var(--red-soft);
}

.confidence-card-head p {
  margin: 0;
  max-width: 68ch;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.confidence-range-box {
  flex: 0 0 auto;
  min-width: 132px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  text-align: right;
}

.confidence-range-box span,
.confidence-range-box small {
  display: block;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.confidence-range-box strong {
  display: block;
  margin: 1px 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 1.35rem;
  line-height: 1.15;
}

.confidence-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.confidence-list li {
  position: relative;
  padding-left: 16px;
  color: var(--ink-2);
  font-size: 0.82rem;
  line-height: 1.5;
}

.confidence-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
}

.confidence-tip {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.confidence-note {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid #e7e0d3;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.confidence-note strong {
  color: var(--ink-2);
}

.results-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 18px;
  margin-top: 18px;
  align-items: start;
}

.result-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 20px;
}

.result-card--keywords {
  margin-top: 18px;
}

.keyword-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 30px;
}

.result-card h3 {
  font-family: inherit;
  font-size: 1rem;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.result-card h3 span {
  font-family: system-ui, sans-serif;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 700;
}

.issue-list,
.keyword-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.issue-list li {
  padding: 12px 0;
  border-top: 1px solid #e7e0d3;
}

.issue-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.issue-title {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 3px;
  font-weight: 800;
  font-size: 0.92rem;
  line-height: 1.35;
}

.severity {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--amber);
}

.severity--high {
  background: var(--red);
}

.severity--low {
  background: var(--blue);
}

.issue-detail {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.issue-next {
  margin-top: 16px;
  padding: 13px 14px;
  border-radius: 10px;
  background: var(--paper);
  border: 1px solid #e2dbcd;
}

.issue-next strong {
  display: block;
  font-size: 0.82rem;
  margin-bottom: 3px;
}

.issue-next p {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.issue-next a {
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration-thickness: 1px;
}

.keyword-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid #e7e0d3;
  font-size: 0.84rem;
}

.keyword-list li:last-child {
  border-bottom: 0;
}

.keyword-list code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.8rem;
  background: var(--paper);
  padding: 2px 6px;
  border-radius: 5px;
  overflow-wrap: anywhere;
}

.keyword-status {
  flex: 0 0 auto;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.keyword-status--in {
  color: var(--green);
}

.keyword-status--out {
  color: var(--red);
}

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

.metric {
  padding: 10px 11px;
  border-radius: 9px;
  background: var(--paper);
}

.metric b {
  display: block;
  font-size: 1.14rem;
  letter-spacing: -0.03em;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 800;
  margin-top: 2px;
}

.ats-readout {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--cream);
  overflow: hidden;
}

.ats-readout summary {
  padding: 15px 20px;
  cursor: pointer;
  font-weight: 800;
  font-size: 0.9rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

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

.ats-readout summary::after {
  content: "+";
  font-size: 1.1rem;
  line-height: 1;
}

.ats-readout[open] summary::after {
  content: "-";
}

.ats-readout pre {
  margin: 0;
  padding: 0 20px 20px;
  max-height: 300px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--ink-2);
  border-top: 1px solid #e7e0d3;
  padding-top: 16px;
}

.report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 16px;
}

.disclaimer {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

/* Cards and content */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.content-card {
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--cream);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.content-card:hover {
  color: var(--ink);
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(33, 38, 34, 0.09);
}

.content-card .eyebrow {
  margin-bottom: 12px;
  font-size: 0.68rem;
}

.content-card h3 {
  font-family: inherit;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.content-card p {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 16px;
}

.content-card .more {
  margin-top: auto;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--coral-dark);
}

.prose {
  max-width: 760px;
}

.prose h2 {
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  margin-top: 1.55em;
}

.prose h3 {
  font-size: 1.25rem;
  margin-top: 1.4em;
}

.prose ul,
.prose ol {
  padding-left: 1.3em;
  margin: 0 0 1.2em;
}

.prose li {
  margin-bottom: 0.5em;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2em 0 1.6em;
  font-size: 0.9rem;
}

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

.prose th {
  background: var(--paper-2);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.prose caption {
  caption-side: top;
  text-align: left;
  color: var(--muted);
  font-size: 0.8rem;
  padding-bottom: 6px;
}

.prose--legal {
  font-size: 1rem;
  line-height: 1.65;
}

.prose--legal p,
.prose--legal li {
  max-width: 76ch;
}

.prose--legal h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
  margin-top: 1.7em;
}

.prose--legal h3 {
  font-size: 1.08rem;
}

.prose--legal .legal-summary {
  margin: 1.2em 0 1.4em;
  padding: 16px 18px;
  border-left: 4px solid var(--coral);
  background: var(--cream);
  border-radius: 0 10px 10px 0;
}

.prose--legal .legal-summary p {
  margin-bottom: 0;
}

.prose--legal .legal-toc {
  margin: 1.4em 0 1.2em;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--cream);
}

.prose--legal .legal-toc .eyebrow {
  margin-bottom: 8px;
}

.prose--legal .legal-toc ul {
  columns: 2;
  column-gap: 28px;
  margin: 0;
  padding-left: 1.1em;
}

.prose--legal .legal-toc li {
  break-inside: avoid;
  margin-bottom: 0.35em;
  max-width: none;
}

.prose--legal .legal-meta {
  color: var(--muted);
  font-size: 0.84rem;
}

.prose--legal table {
  font-size: 0.85rem;
}

@media (max-width: 760px) {
  .prose--legal {
    font-size: 1rem;
  }

  .prose--legal .legal-toc ul {
    columns: 1;
  }
}

.callout {
  margin: 1.4em 0;
  padding: 17px 19px;
  border-left: 4px solid var(--coral);
  background: var(--cream);
  border-radius: 0 10px 10px 0;
}

.callout p:last-child {
  margin-bottom: 0;
}

.callout--lime {
  border-left-color: #92b51b;
  background: var(--lime-2);
}

.callout--red {
  border-left-color: var(--red);
  background: var(--red-soft);
}

/* Role keyword pages */
.keyword-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 22px;
}

.keyword-group {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--cream);
}

.keyword-group h3 {
  margin: 0 0 9px;
  font-family: inherit;
  font-size: 0.76rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

.keyword-group ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.keyword-group li {
  margin: 0;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--lime-2);
  color: var(--ink-2);
  font-size: 0.76rem;
  font-weight: 650;
  line-height: 1.35;
}

.role-caution {
  padding: 11px 14px;
  border-left: 3px solid var(--amber);
  border-radius: 0 8px 8px 0;
  background: var(--paper);
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.example-block {
  margin: 14px 0 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--cream);
}

.example-block p:last-child {
  margin: 0;
}

.role-link-list {
  padding-left: 1.2em;
}

.role-link-list li {
  margin-bottom: 9px;
}

.page-hero {
  padding: 58px 0 36px;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-size: clamp(2.25rem, 5vw, 4rem);
  max-width: 900px;
}

.page-hero .lede {
  margin-bottom: 0;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 0.78rem;
}

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

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.78rem;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 48px;
  padding: 44px 0 70px;
}

.article-aside {
  align-self: start;
  position: sticky;
  top: 94px;
}

.aside-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--cream);
  font-size: 0.85rem;
}

.aside-card h3 {
  font-family: inherit;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.aside-card p:last-child {
  margin-bottom: 0;
}

.aside-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.aside-links li {
  border-top: 1px solid #e7e0d3;
  padding: 7px 0;
}

.aside-links li:first-child {
  border-top: 0;
  padding-top: 0;
}

.aside-links a {
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.faq-list {
  display: grid;
  gap: 9px;
}

.faq-list details {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 0 16px;
}

.faq-list summary {
  cursor: pointer;
  padding: 15px 0;
  font-weight: 800;
  font-size: 0.92rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

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

.faq-list summary::after {
  content: "+";
  color: var(--coral-dark);
}

.faq-list details[open] summary::after {
  content: "-";
}

.faq-list details p {
  margin: 0 0 15px;
  color: var(--muted);
  font-size: 0.88rem;
}

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

.step {
  position: relative;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--cream);
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 1.7rem;
  color: var(--coral);
  margin-bottom: 8px;
}

.step h3 {
  font-family: inherit;
  font-size: 1rem;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.compare-table td:first-child {
  font-weight: 750;
}

.stat-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.stat-band div {
  padding: 20px;
  background: var(--cream);
}

.stat-band b {
  display: block;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 1.7rem;
  line-height: 1;
  letter-spacing: -0.04em;
}

.stat-band span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.4;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(255, 253, 247, 0.72);
  padding: 46px 0 24px;
  font-size: 0.87rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 0.8fr;
  gap: 30px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 253, 247, 0.16);
}

.site-footer .brand {
  color: var(--cream);
  margin-bottom: 12px;
}

.site-footer .brand small {
  color: rgba(255, 253, 247, 0.55);
}

.site-footer p {
  max-width: 320px;
  margin-bottom: 0;
}

.footer-col h3 {
  font-family: inherit;
  font-size: 0.74rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 11px;
}

.footer-col a {
  display: block;
  color: rgba(255, 253, 247, 0.72);
  text-decoration: none;
  margin-bottom: 6px;
}

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

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
  font-size: 0.76rem;
  color: rgba(255, 253, 247, 0.55);
}

.footer-bottom p {
  margin: 0;
}

/* Ads (only rendered when explicitly enabled) */
.ad-slot {
  margin: 34px 0;
  min-height: 90px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.75rem;
  text-align: center;
}

/* 404 */
.not-found {
  min-height: 65vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 60px 0;
}

.not-found h1 {
  font-size: clamp(3rem, 9vw, 7rem);
  color: var(--coral);
}

/* Responsive */
@media (max-width: 980px) {
  .hero-top,
  .section-head {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-side {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 20px 0 0;
  }

  .card-grid,
  .keyword-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .article-aside {
    position: static;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .footer-grid .footer-col:last-child {
    grid-column: 2 / 4;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .container {
    width: min(var(--max), calc(100% - 28px));
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 70px;
    right: 14px;
    left: 14px;
    padding: 10px;
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 11px 12px;
  }

  .nav-cta {
    margin: 5px 0 0;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding: 34px 0 42px;
  }

  .hero h1 {
    font-size: clamp(2.45rem, 11vw, 3.4rem);
  }

  .section {
    padding: 52px 0;
  }

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

  .tool-body {
    padding: 14px;
  }

  .tool-head {
    padding: 14px 16px;
  }

  .tool-grid,
  .results-grid,
  .card-grid,
  .keyword-groups,
  .steps,
  .stat-band {
    grid-template-columns: 1fr;
  }

  .keyword-list {
    grid-template-columns: 1fr;
  }

  .results-top {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 20px;
  }

  .results-summary p {
    margin-left: auto;
    margin-right: auto;
  }

  .grade-row {
    justify-content: center;
  }

  .confidence-line {
    justify-content: center;
  }

  .confidence-line a {
    margin-left: 0;
    flex-basis: 100%;
  }

  .confidence-card-head {
    flex-direction: column;
    gap: 10px;
  }

  .confidence-range-box {
    width: 100%;
    text-align: left;
  }

  .confidence-list {
    grid-template-columns: 1fr;
  }

  .tool-actions .btn {
    width: 100%;
    min-width: 0;
  }

  .privacy-note {
    max-width: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }

  .footer-grid .footer-col:last-child {
    grid-column: auto;
  }

  .article-layout {
    padding-top: 30px;
  }

  .page-hero {
    padding-top: 38px;
  }

  .score-ring {
    width: 145px;
    height: 145px;
  }
}

@media (max-width: 480px) {
  .brand span:last-child small {
    display: none;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .tool-head {
    align-items: flex-start;
  }

  .tool-head .pill {
    display: none;
  }

  .tool-actions {
    align-items: stretch;
  }

  .trust-row .pill {
    font-size: 0.7rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid > div:first-child,
  .footer-grid .footer-col:last-child {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
