/* AI RIF SEO & Landing Architecture — matches editorial dark/gold theme */
:root {
  --bg: #121110;
  --surface: #1c1a17;
  --surface-2: #24211d;
  --line: #3a352d;
  --cream: #f2ebdd;
  --muted: #b8ae9c;
  --gold: #c9a45c;
  --gold-soft: rgba(201, 164, 92, 0.14);
  --ink: #121110;
  --display: "Unbounded", "Helvetica Neue", Arial, sans-serif;
  --body: "Onest", "Helvetica Neue", Arial, sans-serif;
  --max: 1180px;
  --gut: max(20px, env(safe-area-inset-left, 0px));
  --gutR: max(20px, env(safe-area-inset-right, 0px));
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
img { max-width: 100%; display: block; }
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gut);
  padding-right: var(--gutR);
}

/* Header */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(18, 17, 16, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-block: 14px;
}
.mark {
  font-family: var(--display); font-weight: 600; letter-spacing: 0.28em;
  color: var(--gold); text-decoration: none; font-size: 14px; white-space: nowrap;
}
.nav { display: flex; gap: 22px; font-size: 14px; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--muted); transition: color .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--cream); }
.top-right { display: flex; align-items: center; gap: 10px; }
@media (max-width: 860px) { .nav { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 2px;
  font: 500 15px/1.2 var(--body); text-decoration: none; letter-spacing: 0.01em;
  border: 1px solid var(--gold); cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--cream); border-color: var(--cream); }
.btn-ghost { background: rgba(18, 17, 16, 0.5); color: var(--cream); }
.btn-ghost:hover { background: var(--gold); color: var(--ink); }
.top .btn { padding: 9px 15px; font-size: 13px; }

/* Breadcrumbs */
.crumbs {
  padding-block: 16px 0;
  font-size: 13px; color: var(--muted);
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
}
.crumbs a { text-decoration: none; border-bottom: 1px solid transparent; }
.crumbs a:hover { color: var(--cream); border-bottom-color: var(--gold); }
.crumbs span.sep { opacity: .45; }

/* Typography */
.eyebrow {
  font-family: var(--display); font-size: 12px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gold); margin: 0;
}
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
h1 {
  font-family: var(--display); font-size: clamp(28px, 4.1vw, 54px);
  line-height: 1.1; letter-spacing: -0.01em;
}
h1 em { font-style: normal; color: var(--gold); }
h2 {
  font-family: var(--display); font-size: clamp(22px, 2.8vw, 36px);
  line-height: 1.16; letter-spacing: -0.01em;
}
h3 { font-family: var(--body); font-size: 20px; font-weight: 500; line-height: 1.3; }
p { margin: 0; }
.lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); max-width: 42em; }
.sec { padding-block: clamp(48px, 7vw, 88px); border-top: 1px solid var(--line); }
.head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 36px; }

/* Hero */
.seo-hero { padding-block: clamp(32px, 5vw, 68px) clamp(48px, 7vw, 84px); border-top: none; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(28px, 4vw, 56px); align-items: center;
}
.hero-copy { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; font-size: 13px; color: var(--cream);
  background: var(--surface); border: 1px solid var(--line);
}
.badge svg { width: 15px; height: 15px; color: var(--gold); flex-shrink: 0; }
.tripwire-box {
  background: var(--surface); border: 1px solid var(--gold);
  padding: 16px 20px; display: flex; flex-direction: column; gap: 6px;
}
.tripwire-box strong { color: var(--gold); font-size: 14px; font-family: var(--display); letter-spacing: 0.04em; text-transform: uppercase; }
.tripwire-box span { font-size: 15px; color: var(--cream); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-media {
  position: relative; aspect-ratio: 16 / 10; background: var(--surface);
  border: 1px solid var(--line); overflow: hidden; cursor: pointer;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.hero-media:hover img { transform: scale(1.03); }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18,17,16,0) 35%, rgba(18,17,16,0.78) 100%);
}
.hero-media-cap {
  position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 13px; color: var(--cream);
}
.play-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border: 1px solid var(--cream); border-radius: 999px;
  background: rgba(18, 17, 16, 0.55); backdrop-filter: blur(6px);
  font-size: 13px; white-space: nowrap;
}
.play-pill svg { width: 14px; height: 14px; fill: var(--cream); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* Cards / Grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 920px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--line); padding: 26px 24px;
  display: flex; flex-direction: column; gap: 12px; min-width: 0;
  text-decoration: none; transition: border-color .2s, transform .2s;
}
a.card:hover { border-color: var(--gold); transform: translateY(-2px); }
.card p { color: var(--muted); font-size: 15px; }
.card-price {
  font-family: var(--display); font-size: 20px; color: var(--gold); margin-top: 4px;
}
.card-meta { font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; margin-top: auto; }
.card-tag { font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gold); }

/* Comparison Table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 600px; }
th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--display); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); background: var(--surface-2); }
tr:last-child td { border-bottom: 0; }
td.hi { color: var(--cream); font-weight: 500; }
td.dim { color: var(--muted); }

/* Video Cases */
.case-card {
  background: var(--surface); border: 1px solid var(--line); overflow: hidden;
  display: flex; flex-direction: column; cursor: pointer;
}
.case-thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.case-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.case-card:hover .case-thumb img { transform: scale(1.04); }
.case-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 54px; height: 54px; border-radius: 50%;
  border: 1px solid var(--cream); background: rgba(18, 17, 16, 0.5);
  display: grid; place-items: center;
}
.case-play svg { width: 18px; height: 18px; margin-left: 3px; fill: var(--cream); }
.case-body { padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.case-body span { font-size: 13px; color: var(--gold); }
.case-body p { font-size: 14px; color: var(--muted); }

/* Quiz Box */
.quiz-sec { background: var(--surface); border-top: 1px solid var(--gold); border-bottom: 1px solid var(--line); }
.quiz-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
@media (max-width: 860px) { .quiz-grid { grid-template-columns: 1fr; } }
.quiz-box {
  background: var(--bg); border: 1px solid var(--line); padding: 28px 24px;
  display: flex; flex-direction: column; gap: 18px;
}
.q-step-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--gold); font-family: var(--display); }
.q-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 520px) { .q-opts { grid-template-columns: 1fr; } }
.q-opt {
  text-align: left; padding: 12px 14px; background: var(--surface);
  border: 1px solid var(--line); color: var(--cream); font: 400 14px/1.35 var(--body);
  cursor: pointer; transition: border-color .2s, background .2s;
}
.q-opt:hover { border-color: var(--gold); }
.q-opt.active { border-color: var(--gold); background: var(--gold-soft); color: var(--cream); }
.q-field { display: flex; flex-direction: column; gap: 6px; }
.q-field label { font-size: 13px; color: var(--muted); }
.q-field input, .q-field select, .q-field textarea {
  width: 100%; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line);
  color: var(--cream); font: 400 16px/1.4 var(--body); border-radius: 2px;
}
.q-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.q-status { font-size: 14px; color: var(--gold); min-height: 20px; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 20px 0;
  font-size: 18px; font-weight: 500; display: flex; justify-content: space-between; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--gold); font-size: 22px; line-height: 1; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { padding-bottom: 20px; color: var(--muted); font-size: 15px; max-width: 56em; }

/* Contact Strip */
.people-mini { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 24px; }
@media (max-width: 600px) { .people-mini { grid-template-columns: 1fr; } }
.person-card {
  display: flex; align-items: center; gap: 16px;
  padding: 16px; border: 1px solid var(--line); background: var(--bg);
}
.person-card img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.person-card .p-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.person-card .p-links { display: flex; gap: 12px; font-size: 14px; color: var(--gold); flex-wrap: wrap; }
.person-card .p-links a { text-decoration: none; border-bottom: 1px solid rgba(201,164,92,0.4); }

/* Footer Hub */
.seo-footer { padding-block: 56px 36px; border-top: 1px solid var(--line); background: #0d0c0b; font-size: 14px; color: var(--muted); }
.footer-cols { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 28px; margin-bottom: 36px; }
@media (max-width: 860px) { .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .footer-cols { grid-template-columns: 1fr; } }
.footer-col h4 { margin: 0 0 12px; font-family: var(--display); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); font-weight: 500; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-col a { text-decoration: none; color: var(--muted); }
.footer-col a:hover { color: var(--cream); }
.footer-bottom { padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; }

/* Modal Video Player */
.player { position: fixed; inset: 0; z-index: 50; background: rgba(10, 9, 8, 0.92); display: grid; place-items: center; padding: 20px; }
.player-box { width: min(1100px, 100%); aspect-ratio: 16 / 9; max-height: 86vh; background: #000; }
.player-box.v { width: auto; height: min(86vh, 840px); aspect-ratio: 9 / 16; max-width: 100%; }
.player-box iframe { width: 100%; height: 100%; border: 0; display: block; }
.player-close { position: absolute; top: 18px; right: 18px; background: var(--bg); border: 1px solid var(--cream); color: var(--cream); font: 500 14px/1 var(--body); padding: 10px 14px; cursor: pointer; }

/* Editorial Blog */
.article-wrap { max-width: 820px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--gold); margin-bottom: 12px; }
.article-body { display: flex; flex-direction: column; gap: 20px; font-size: 17px; line-height: 1.72; color: var(--cream); }
.article-body h2 { font-size: clamp(20px, 2.3vw, 28px); margin-top: 18px; color: var(--cream); }
.article-body h3 { font-size: 19px; margin-top: 10px; color: var(--gold); }
.article-body p { color: #dfd7c6; }
.article-body ul, .article-body ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; color: #dfd7c6; }
.article-callout { background: var(--surface); border-left: 3px solid var(--gold); padding: 18px 22px; font-size: 15px; color: var(--cream); }

