/* =========================================================
   Sales-Led Marketing — site stylesheet
   Editorial, high-contrast, confident. Built to match the
   manifesto's voice: plain English, sharp opinions.
   ========================================================= */

:root {
  --ink:        #0F1010;
  --ink-soft:   #2A2A2A;
  --paper:      #FFFFFF;
  --paper-2:    #F5F5F5;
  --rule:       #E5E5E5;
  --muted:      #5C5C5C;
  --accent:     #0F766E;        /* deep teal — blue/green trial palette */
  --accent-ink: #0A5654;        /* darker teal for hover states */
  --good:       #1F6B3A;
  --warn:       #B97A00;
  --max-w:      1180px;
  --read-w:     720px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: var(--accent); }

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 .4em;
  line-height: 1.1;
}

h1 { font-size: clamp(2.2rem, 5vw, 4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1em; }

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.2rem;
}

.muted   { color: var(--muted); }
.serif   { font-family: 'Fraunces', Georgia, serif; }
.mono    { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace; }

/* ======================== Layout ======================== */

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.read {
  max-width: var(--read-w);
  margin: 0 auto;
}

section {
  padding: 80px 0;
  border-bottom: 1px solid var(--rule);
}

section.tight   { padding: 56px 0; }
section.flush   { border-bottom: 0; }
section.dark    { background: var(--ink); color: var(--paper); border-color: #2a2a2a; }
section.dark h1, section.dark h2, section.dark h3 { color: var(--paper); }
section.dark .muted { color: #A6A29A; }
section.dark .eyebrow { color: #FFB29C; }
section.cream   { background: var(--paper-2); }

/* ======================== Header ======================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: saturate(140%) blur(6px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
}
.brand img {
  display: block;
  height: 44px;
  width: auto;
}
@media (max-width: 760px) {
  .brand img { height: 36px; }
}
@media (max-width: 480px) {
  .brand img { height: 32px; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.nav-links a {
  text-decoration: none;
  font-size: .92rem;
  color: var(--ink-soft);
  font-weight: 500;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a.active { color: var(--accent); }

@media (max-width: 760px) {
  .nav-links a:not(.btn) { display: none; }
  .nav-links a.btn { display: inline-flex; }
}

/* ======================== Buttons ======================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  transition: all .15s ease;
  cursor: pointer;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); }

.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }

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

/* ======================== Hero ======================== */

.hero {
  padding: 96px 0 80px;
}
.hero h1 {
  max-width: 14ch;
}
.hero .lede {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 1.2rem 0 2rem;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero-meta {
  display: flex;
  gap: 24px;
  font-size: .85rem;
  color: var(--muted);
  flex-wrap: wrap;
}

/* Video placeholder card — honest pre-launch state */
.video-slot {
  margin-top: 56px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 6px;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 32px;
  position: relative;
  overflow: hidden;
}
.video-slot::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(214,57,30,.18), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255,255,255,.05), transparent 50%);
}
.video-slot > * { position: relative; }
.video-slot .play {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.video-slot .play svg { width: 22px; height: 22px; fill: #fff; margin-left: 3px; }
.video-slot .label {
  font-family: 'Fraunces', serif;
  font-size: 1.15rem;
  margin-bottom: 6px;
}
.video-slot .sub {
  font-size: .85rem;
  color: #A6A29A;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* Real video embed inside a slot — fills the aspect-ratio container,
   removes the dark placeholder backdrop and decorative gradient. */
.video-slot.embed { padding: 0; }
.video-slot.embed::before { display: none; }
.video-slot iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: inherit;
}

/* ======================== Cards & grids ======================== */

.grid {
  display: grid;
  gap: 24px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 880px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 28px;
}
.card h3 { margin-top: 0; }
.card .num {
  font-family: 'Fraunces', serif;
  font-size: 2.4rem;
  color: var(--accent);
  display: block;
  line-height: 1;
  margin-bottom: 12px;
}

/* Section header pattern */
.section-head {
  margin-bottom: 48px;
  max-width: 720px;
}

/* Two-column text block */
.two-col {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 880px) {
  .two-col { grid-template-columns: 1fr; gap: 24px; }
}

/* Big stat callouts */
.stat {
  font-family: 'Fraunces', serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.03em;
}
.stat-label {
  font-size: .85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-top: 8px;
}

/* Lists with markers */
.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}
.checklist li {
  padding-left: 28px;
  position: relative;
  margin-bottom: 14px;
}
.checklist li::before {
  content: '';
  position: absolute;
  left: 0; top: .55em;
  width: 14px; height: 14px;
  background: var(--accent);
  border-radius: 50%;
}

.crosslist {
  list-style: none;
  padding: 0;
  margin: 0;
}
.crosslist li {
  padding-left: 28px;
  position: relative;
  margin-bottom: 14px;
  color: var(--accent);
}
.crosslist li::before {
  content: '×';
  position: absolute;
  left: 4px; top: -.05em;
  font-weight: 700;
  font-size: 1.2em;
  color: var(--accent);
}

/* Numbered steps */
.steps { counter-reset: step; }
.step {
  counter-increment: step;
  padding: 28px 0;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  align-items: start;
}
.step:last-child { border-bottom: 1px solid var(--rule); }
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: 'Fraunces', serif;
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
}
.step h3 { margin-top: 0; }
@media (max-width: 600px) {
  .step { grid-template-columns: 1fr; gap: 12px; }
  .step::before { font-size: 1.8rem; }
}

/* Tables */
table.compare {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}
table.compare th, table.compare td {
  text-align: left;
  padding: 16px 14px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
  font-size: .95rem;
}
table.compare th {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  color: var(--ink);
  background: var(--paper-2);
}
table.compare tr td:first-child {
  font-weight: 600;
  font-family: 'Fraunces', serif;
  width: 24%;
}

/* Badges */
.badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 3px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  color: var(--ink-soft);
}
.badge.coming { color: var(--warn); border-color: #E5D6A0; background: #FBF6E4; }
.badge.live   { color: var(--good); border-color: #BFD9C8; background: #E8F2EC; }
.badge.alert  { color: #fff;        border-color: var(--accent); background: var(--accent); }

/* Pull-quote */
.pull {
  font-family: 'Fraunces', serif;
  font-size: 1.6rem;
  line-height: 1.3;
  border-left: 4px solid var(--accent);
  padding: 8px 0 8px 24px;
  margin: 32px 0;
  color: var(--ink);
}

/* Three-stage revenue motion — Build / Feed / Close */
.service-stages {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 40px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.service-stage {
  padding: 32px 28px;
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
}
.service-stage:last-child { border-right: 0; }
.service-stage .stage-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: .75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  display: block;
}
.service-stage h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}
.service-stage .stage-tagline {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--muted);
  margin: 0 0 20px;
  line-height: 1.35;
}
.service-stage .stage-price {
  font-family: 'JetBrains Mono', monospace;
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 20px;
  display: block;
}
.service-stage p { margin-bottom: 16px; color: var(--ink-soft); }
.service-stage .stage-link {
  margin-top: auto;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.service-stage .stage-link:hover { text-decoration: underline; }
@media (max-width: 1024px) {
  .service-stages { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 880px) {
  .service-stages { grid-template-columns: 1fr; }
  .service-stage {
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }
  .service-stage:last-child { border-bottom: 0; }
}

/* Service-tier pricing card — used on pricing.html */
.pricing-tiers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 32px 0 16px;
}
@media (max-width: 1024px) { .pricing-tiers { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .pricing-tiers { grid-template-columns: 1fr; } }
.pricing-tier {
  border: 1px solid var(--rule);
  border-top: 4px solid var(--accent);
  padding: 28px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
}
.pricing-tier .tier-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
  display: block;
}
.pricing-tier h3 { font-size: 1.4rem; margin-bottom: 14px; }
.pricing-tier .tier-price {
  font-family: 'Fraunces', serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--ink);
  margin: 4px 0 4px;
  line-height: 1.1;
}
.pricing-tier .tier-price-unit {
  font-size: .85rem;
  color: var(--muted);
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  margin-left: 4px;
}
.pricing-tier .tier-summary {
  color: var(--muted);
  font-size: .95rem;
  margin-bottom: 18px;
  min-height: 3em;
}
.pricing-tier .tier-link {
  margin-top: auto;
  font-weight: 600;
  color: var(--accent);
}

/* Testimonial pull-quote — attributed, used as proof inline with claims */
.testimonial {
  font-family: 'Fraunces', serif;
  border-left: 4px solid var(--accent);
  padding: 12px 0 12px 24px;
  margin: 36px 0;
  max-width: 720px;
}
.testimonial p {
  font-size: 1.35rem;
  line-height: 1.35;
  margin: 0 0 14px;
  color: var(--ink);
}
.testimonial cite {
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
}
.testimonial cite .role {
  display: block;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--muted);
  margin-top: 2px;
  font-size: .82rem;
}
section.dark .testimonial p { color: var(--paper); }
section.dark .testimonial cite,
section.dark .testimonial cite .role { color: #A6A29A; }
section.dark .testimonial { border-left-color: #FFB29C; }

/* Grid of testimonial cards — for the about page */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 32px;
}
.testimonial-grid .testimonial {
  margin: 0;
  background: var(--paper);
  padding: 24px;
  border: 1px solid var(--rule);
  border-left: 4px solid var(--accent);
}
.testimonial-grid .testimonial p { font-size: 1.1rem; line-height: 1.4; }

/* FAQ-style accordions (CSS only) */
details.faq {
  border-top: 1px solid var(--rule);
  padding: 20px 0;
}
details.faq:last-of-type { border-bottom: 1px solid var(--rule); }
details.faq summary {
  cursor: pointer;
  font-family: 'Fraunces', serif;
  font-size: 1.2rem;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: '+';
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 1.6rem;
  color: var(--accent);
  line-height: 1;
}
details.faq[open] summary::after { content: '–'; }
details.faq .answer {
  margin-top: 14px;
  color: var(--ink-soft);
  max-width: 60ch;
}

/* Pre-launch banner */
.banner {
  background: #FBF6E4;
  border: 1px solid #E5D6A0;
  border-radius: 6px;
  padding: 18px 22px;
  margin: 0 0 32px;
  font-size: .95rem;
  color: #6B5A20;
}
.banner strong { color: #4F3F00; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: #A6A29A;
  padding: 56px 0 32px;
  font-size: .9rem;
}
.site-footer a { color: var(--paper); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
.footer-brand {
  margin-bottom: 16px;
}
.footer-brand img {
  display: block;
  height: 56px;
  width: auto;
}
.footer-grid h4 {
  color: var(--paper);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 16px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid #2a2a2a;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: .82rem;
}

/* ======================== Field notes ======================== */

/* Tag chips (used in post cards + post hero) */
.tag {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  color: var(--ink-soft);
  text-decoration: none;
  margin-right: 6px;
}
.tag.accent { color: var(--accent); border-color: #F0C7BD; background: #FBEEEA; }

/* Post card on the field-notes index */
.post-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding: 32px 0;
  border-top: 1px solid var(--rule);
  text-decoration: none;
  color: var(--ink);
}
.post-card:last-of-type { border-bottom: 1px solid var(--rule); }
.post-card:hover h3 { color: var(--accent); }

.post-card .meta {
  font-size: .82rem;
  color: var(--muted);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.post-card h3 {
  font-size: 1.55rem;
  margin: 6px 0 8px;
  transition: color .15s ease;
}
.post-card .excerpt {
  font-size: 1.02rem;
  color: var(--ink-soft);
  margin: 0;
  max-width: 70ch;
}
.post-card.stub h3 { color: var(--muted); font-style: italic; }
.post-card.stub:hover h3 { color: var(--muted); }

/* Featured post on the index */
.post-featured {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  padding: 0;
  margin-bottom: 24px;
  text-decoration: none;
  color: var(--ink);
  align-items: start;
}
@media (max-width: 880px) {
  .post-featured { grid-template-columns: 1fr; gap: 24px; }
}
.post-featured .video-slot { margin-top: 0; aspect-ratio: 16 / 10; }
.post-featured h2 {
  font-size: 2.1rem;
  margin: 12px 0 14px;
  transition: color .15s ease;
}
.post-featured:hover h2 { color: var(--accent); }
.post-featured .excerpt {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 50ch;
}

/* ============== Article body (single post page) ============== */
.article {
  max-width: 720px;
  margin: 0 auto;
}
.article .post-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: 14px;
}
.article h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  margin-bottom: 32px;
}
.article .lede {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.35rem;
  line-height: 1.45;
  color: var(--ink-soft);
  margin: 0 0 36px;
  font-style: italic;
}
.article p {
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 0 1.3em;
}
.article p strong { color: var(--ink); }
.article h2 {
  font-size: 1.55rem;
  margin: 48px 0 16px;
}
.article h3 {
  font-size: 1.2rem;
  margin: 32px 0 10px;
}
.article ul, .article ol {
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--ink-soft);
  padding-left: 22px;
  margin: 0 0 1.3em;
}
.article li { margin-bottom: 8px; }
.article hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 48px 0;
}
.article blockquote {
  font-family: 'Fraunces', serif;
  font-size: 1.35rem;
  line-height: 1.4;
  color: var(--ink);
  border-left: 4px solid var(--accent);
  padding: 4px 0 4px 24px;
  margin: 32px 0;
  font-style: normal;
}
.article a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* "Connects to" callout box at the end of a post */
.connects {
  background: var(--paper-2);
  border-left: 4px solid var(--accent);
  padding: 24px 28px;
  margin: 48px 0 0;
  border-radius: 0 4px 4px 0;
}
.connects .label {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.connects h4 {
  font-family: 'Fraunces', serif;
  margin: 0 0 8px;
  font-size: 1.15rem;
}
.connects p {
  font-size: .98rem;
  margin: 0 0 10px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.connects a { font-weight: 500; }

/* "More field notes" footer on a post page */
.more-posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}
@media (max-width: 880px) { .more-posts { grid-template-columns: 1fr; } }
.more-posts a {
  text-decoration: none;
  color: var(--ink);
  display: block;
}
.more-posts .meta { font-size: .78rem; color: var(--muted); margin-bottom: 6px; }
.more-posts h4 {
  font-family: 'Fraunces', serif;
  font-size: 1.05rem;
  line-height: 1.3;
  font-weight: 600;
  margin: 0;
  transition: color .15s ease;
}
.more-posts a:hover h4 { color: var(--accent); }

/* ======================== Diagnostic tool ======================== */

.diag {
  max-width: 760px;
  margin: 0 auto;
}
.diag .progress {
  height: 4px;
  background: var(--rule);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 32px;
}
.diag .progress-fill {
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width .4s ease;
}
.diag .qcard {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 36px;
}
.diag .qnum {
  font-size: .8rem;
  color: var(--muted);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.diag .qtext {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  line-height: 1.25;
  margin-bottom: 28px;
}
.diag .answers {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}
.diag .answer-btn {
  text-align: left;
  padding: 14px 18px;
  border: 1.5px solid var(--rule);
  background: var(--paper);
  border-radius: 5px;
  font: inherit;
  cursor: pointer;
  transition: all .15s;
  color: var(--ink);
}
.diag .answer-btn:hover {
  border-color: var(--ink);
  background: #fff;
}
.diag .answer-btn.selected {
  border-color: var(--accent);
  background: #fff;
  box-shadow: inset 4px 0 0 var(--accent);
}
.diag .controls {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
}
.diag .btn-back {
  background: none;
  border: 1.5px solid var(--rule);
  color: var(--ink-soft);
}
.diag .btn-back:hover { background: var(--paper-2); border-color: var(--ink); }

/* Result screen */
.result {
  text-align: center;
  padding: 24px 0;
}
.result .grade {
  font-family: 'Fraunces', serif;
  font-size: clamp(6rem, 18vw, 10rem);
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
  margin: 16px 0;
}
.result .score {
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  color: var(--muted);
}
.result .verdict {
  font-family: 'Fraunces', serif;
  font-size: 1.6rem;
  margin: 24px auto;
  max-width: 28ch;
  line-height: 1.3;
}
.result .breakdown {
  text-align: left;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  padding: 24px;
  border-radius: 6px;
  margin: 32px 0;
}
.result .breakdown h4 { margin-top: 0; }

/* ============================================================
   Consent banner — EU/EEA/UK visitors only, Consent Mode v2
   ============================================================ */

.consent-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 460px;
  margin-left: auto;
  z-index: 9999;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  padding: 22px 24px;
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.35s ease-out, transform 0.35s ease-out;
}
.consent-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.consent-banner h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.1rem;
  margin: 0 0 8px;
  line-height: 1.25;
}
.consent-banner p {
  margin: 0 0 16px;
  color: var(--ink-soft);
  font-size: 0.88rem;
}
.consent-banner p a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.consent-banner .consent-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.consent-banner .consent-btn {
  flex: 1 1 auto;
  min-width: 130px;
  padding: 10px 14px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: 4px;
  cursor: pointer;
  border: 1.5px solid var(--ink);
  transition: background-color 0.15s ease, color 0.15s ease;
  text-align: center;
  line-height: 1;
}
.consent-banner .consent-btn.accept {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.consent-banner .consent-btn.accept:hover {
  background: var(--accent-ink);
  border-color: var(--accent-ink);
}
.consent-banner .consent-btn.reject {
  background: transparent;
  color: var(--ink);
}
.consent-banner .consent-btn.reject:hover {
  background: var(--ink);
  color: var(--paper);
}

@media (max-width: 540px) {
  .consent-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 18px 18px;
  }
  .consent-banner .consent-btn { min-width: 0; }
}
