/* =========================================================================
   Shared stylesheet — dark "publication" theme (advertorial + about) and
   light "offer" theme (masterclass + legal pages). Pico.css (classless) is
   loaded first via CDN; everything below layers on top of it.
   ========================================================================= */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; overflow-x: hidden; }
img, video { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; }
button, input, textarea, select { font-family: inherit; }

/* Neutralise Pico's classless defaults (card-styled <article>, container
   max-widths, its own light/dark palette) so our own theme tokens fully
   control the page at every breakpoint. */
main, article, section, header, footer, nav, aside {
  background: none;
  box-shadow: none;
  max-width: none;
}
body > header, body > main, body > footer, main > article, main > aside {
  padding: 0;
  margin: 0;
  border: none;
  width: 100%;
}

/* ---------- theme tokens ---------- */
body.theme-dark {
  --bg: #0a0d13;
  --bg-elevated: #141a26;
  --bg-elevated-2: #1b2233;
  --text: #eef1f7;
  --text-muted: #9aa2b4;
  --accent: #4d7bff;
  --accent-strong: #2f5bff;
  --accent-contrast: #0a0d13;
  --border: #262e42;
  --success-bg: #132314;
  background: var(--bg);
  color: var(--text);
}

body.theme-light {
  --bg: #ffffff;
  --bg-elevated: #f4f6fb;
  --bg-elevated-2: #eaeef7;
  --text: #12151f;
  --text-muted: #545b6d;
  --accent: #2554ea;
  --accent-strong: #1739b0;
  --accent-contrast: #ffffff;
  --border: #e2e6f0;
  --success-bg: #eefaf0;
  background: var(--bg);
  color: var(--text);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 768px) {
  .wrap { padding: 0 32px; }
}

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.01em; font-weight: 800; overflow-wrap: break-word; }
h1 { font-size: clamp(1.9rem, 5.4vw + 0.5rem, 3.4rem); margin: 0 0 .5em; }
h2 { font-size: clamp(1.5rem, 3.2vw + 0.5rem, 2.3rem); margin: 0 0 .55em; }
h3 { font-size: clamp(1.15rem, 1.6vw + 0.6rem, 1.5rem); margin: 0 0 .5em; }
p { margin: 0 0 1em; }
.theme-dark p, .theme-dark li, .theme-dark td, .theme-dark dd { color: var(--text-muted); }
.theme-dark h1, .theme-dark h2, .theme-dark h3, .theme-dark h4, .theme-dark strong { color: var(--text); }
.theme-light p, .theme-light li, .theme-light td, .theme-light dd { color: var(--text-muted); }
.theme-light h1, .theme-light h2, .theme-light h3, .theme-light h4, .theme-light strong { color: var(--text); }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .6em;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 48px;
  padding: .85em 1.6em;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  line-height: 1.2;
}
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.btn-primary {
  background: var(--accent);
  color: var(--accent-contrast);
  box-shadow: 0 8px 24px -8px color-mix(in srgb, var(--accent) 70%, transparent);
}
.theme-dark .btn-primary { color: #071022; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -8px color-mix(in srgb, var(--accent) 80%, transparent); }
.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8em; }

/* ---------- header ---------- */
.site-header {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: relative;
  z-index: 30;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .5em; font-weight: 800; font-size: 1.05rem; color: var(--text); }
.brand__mark { font-size: 1.2em; }
.nav-toggle-input { position: absolute; opacity: 0; pointer-events: none; }
.nav-toggle-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 10px;
  border: 1px solid var(--border); cursor: pointer; font-size: 1.2rem;
  background: var(--bg-elevated); color: var(--text);
}
.site-nav {
  display: none;
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  padding: 12px 20px 20px;
  flex-direction: column;
  gap: 4px;
}
.nav-toggle-input:checked ~ .site-nav { display: flex; }
.site-nav a {
  color: var(--text); padding: 12px 4px; font-weight: 600; min-height: 44px;
  display: flex; align-items: center; border-bottom: 1px solid var(--border);
}
.site-nav a:last-child { border-bottom: none; }
.site-nav .btn { margin-top: 8px; }
@media (min-width: 768px) {
  .nav-toggle-btn { display: none; }
  .site-nav {
    display: flex !important; position: static; flex-direction: row; align-items: center;
    background: none; border: none; padding: 0; gap: 1.6em; width: auto;
  }
  .site-nav a { border-bottom: none; padding: 4px 0; min-height: auto; }
  .site-nav .btn { margin-top: 0; }
}

/* ---------- disclosure ribbon ---------- */
.disclosure-ribbon {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 10px 16px;
  font-size: .85rem;
  color: var(--text-muted);
}
.disclosure-ribbon strong { color: var(--text); }

/* ---------- hero ---------- */
.hero { padding: 44px 0 36px; text-align: center; }
.hero h1 { max-width: 920px; margin-left: auto; margin-right: auto; }
.hero h1 .accent-word { color: var(--accent); }
.hero__subhead { max-width: 680px; margin: 0 auto 1.4em; font-size: 1.1rem; color: var(--text-muted); }
.badge-row { display: flex; flex-wrap: wrap; gap: .6em; justify-content: center; margin-bottom: 1.6em; }
.badge {
  display: inline-flex; align-items: center; gap: .45em;
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: 999px; padding: .5em 1em; font-size: .85rem; font-weight: 600;
  color: var(--text);
}

/* ---------- card grid (2x2 rhythm borrowed from primary reference) ---------- */
.card-grid {
  display: grid; grid-template-columns: 1fr; gap: 18px;
  margin: 28px 0;
}
@media (min-width: 640px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .card-grid--3 { grid-template-columns: repeat(3, 1fr); }
}
.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px;
}
.card h3 { margin-bottom: .35em; }
.card .card__eyebrow { color: var(--text-muted); font-size: .9rem; margin-bottom: .8em; }
.card .btn { width: 100%; margin-top: .6em; }

/* ---------- media frames ---------- */
.media-frame {
  border-radius: 18px; overflow: hidden; border: 1px solid var(--border);
  background: var(--bg-elevated);
  margin: 28px 0;
}
.media-frame--video { aspect-ratio: 16 / 9; }
.media-frame--video video { width: 100%; height: 100%; object-fit: cover; }
.media-frame img { width: 100%; height: auto; }
.media-caption { padding: 12px 18px; font-size: .85rem; color: var(--text-muted); border-top: 1px solid var(--border); margin: 0; }

/* ---------- split (two-column) ---------- */
.split {
  display: grid; grid-template-columns: 1fr; gap: 20px;
  margin: 32px 0;
}
@media (min-width: 768px) {
  .split { grid-template-columns: 1fr 1fr; align-items: stretch; }
}
.split > .card { margin: 0; }

/* ---------- pullquote ---------- */
.pullquote {
  border-left: 4px solid var(--accent);
  background: var(--bg-elevated);
  border-radius: 0 16px 16px 0;
  padding: 22px 24px;
  margin: 28px 0;
  font-size: 1.15rem;
  font-weight: 600;
}
.pullquote .pullquote__figure { color: var(--accent); font-size: 1.5rem; font-weight: 800; display: block; margin-bottom: .2em; }
.pullquote small { display: block; font-weight: 500; font-size: .82rem; color: var(--text-muted); margin-top: .6em; }

/* ---------- qa blocks ---------- */
.qa-block { margin: 34px 0; padding-top: 28px; border-top: 1px solid var(--border); }
.qa-block:first-of-type { border-top: none; }
.qa-block__q { display: flex; gap: .6em; font-size: 1.2rem; font-weight: 800; margin-bottom: .5em; color: var(--text); }
.qa-block__q .qmark {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); color: var(--accent-contrast);
  display: flex; align-items: center; justify-content: center; font-size: .95rem; font-weight: 800;
}

/* ---------- takeaway box ---------- */
.takeaway {
  background: var(--bg-elevated-2);
  border: 1px dashed var(--accent);
  border-radius: 16px;
  padding: 22px 24px;
  margin: 26px 0;
}
.takeaway__label { font-weight: 800; color: var(--accent); font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .5em; display: block; }
.takeaway ul { margin: .4em 0 0; padding-left: 1.2em; }
.takeaway li { margin-bottom: .35em; }

/* ---------- cta band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  border-radius: 20px;
  padding: 34px 26px;
  text-align: center;
  margin: 34px 0;
  color: #fff;
}
.cta-band h2, .cta-band p { color: #fff; }
.cta-band .btn-primary { background: #fff; color: var(--accent-strong); box-shadow: none; }
.cta-band .btn-primary:hover { background: #f1f4ff; }

/* ---------- closing summary ---------- */
.closing-summary {
  background: var(--bg-elevated);
  border-radius: 18px;
  padding: 28px 26px;
  margin: 34px 0;
}
.closing-summary ol { padding-left: 1.3em; margin: .6em 0 0; }
.closing-summary li { margin-bottom: .5em; }

/* ---------- disclaimer + footer ---------- */
.site-disclaimer {
  display: block;
  max-width: 1180px;
  margin: 48px auto 0;
  padding: 0 20px;
}
@media (min-width: 768px) { .site-disclaimer { padding: 0 32px; } }
.site-disclaimer .disclaimer-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  font-size: .92rem;
  color: var(--text-muted);
}
.site-disclaimer a { color: var(--accent); font-weight: 700; }

.site-footer {
  margin-top: 30px;
  border-top: 1px solid var(--border);
  padding: 30px 0 40px;
}
.site-footer__company {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.7;
  white-space: pre-line;
  margin-bottom: 18px;
}
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}
.site-footer__links a {
  color: var(--text);
  font-weight: 600;
  font-size: .9rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.site-footer__links a:hover { color: var(--accent); }

/* ---------- sticky cta ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  box-shadow: 0 -8px 24px -12px rgba(0,0,0,.35);
}
.sticky-cta__text { font-size: .82rem; font-weight: 600; color: var(--text); flex: 1; min-width: 0; }
.sticky-cta .btn { flex: none; }
.sticky-cta__close {
  position: absolute; top: -14px; right: 10px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--border); color: var(--text); border: none;
  display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: .85rem;
}
.sticky-cta-input { position: absolute; opacity: 0; pointer-events: none; }
.sticky-cta-input:checked ~ .sticky-cta { display: none; }
body.has-sticky-cta { padding-bottom: 78px; }
@media (min-width: 1024px) { .sticky-cta { display: none; } body.has-sticky-cta { padding-bottom: 0; } }

/* =========================================================================
   Offer-page specific components (light theme, Ditto-style rhythm)
   ========================================================================= */

.offer-hero { padding: 40px 0 20px; }
.offer-hero__grid { display: grid; grid-template-columns: 1fr; gap: 30px; align-items: center; }
@media (min-width: 900px) {
  .offer-hero__grid { grid-template-columns: 1.1fr 1fr; gap: 40px; }
}
.offer-hero h1 { text-align: left; margin-left: 0; }
.offer-hero__subhead { font-size: 1.15rem; color: var(--text-muted); max-width: 540px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.trust-badge {
  display: flex; align-items: center; gap: .5em;
  border: 1px solid var(--border); border-radius: 12px; padding: .6em 1em;
  font-size: .82rem; font-weight: 700; background: var(--bg-elevated);
}
.offer-hero__panel {
  background: linear-gradient(160deg, #ffe27a, #ffcf4d);
  border-radius: 24px;
  padding: 18px;
  position: relative;
}
body.theme-light .offer-hero__panel { background: linear-gradient(160deg, #fff2c2, #ffdf8e); }
.offer-hero__panel .media-frame { margin: 0; border: none; background: transparent; border-radius: 16px; }
.offer-hero__panel-label {
  font-weight: 800; color: #573b00; margin-bottom: 10px; font-size: 1rem;
}

.section { padding: 46px 0; }
.section--tint { background: var(--bg-elevated); }
.section-head { max-width: 640px; margin: 0 auto 30px; text-align: center; }
.section-head--left { margin-left: 0; text-align: left; }

.deliverable-grid {
  display: grid; grid-template-columns: 1fr; gap: 18px;
}
@media (min-width: 700px) { .deliverable-grid { grid-template-columns: 1fr 1fr; } }
.deliverable-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: 16px; padding: 24px;
}
.deliverable-card .btn { margin-top: .8em; width: 100%; }
.deliverable-card .btn + .btn { margin-top: .6em; }

.steps { counter-reset: step; margin-top: 10px; }
.step {
  display: grid; grid-template-columns: 1fr; gap: 18px;
  padding: 26px 0; border-top: 1px solid var(--border);
}
.step:first-child { border-top: none; }
@media (min-width: 800px) {
  .step { grid-template-columns: 1fr 1fr; align-items: center; }
  .step--rev .step__media { order: 2; }
}
.step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 800; margin-bottom: 12px;
}
.step__media .media-frame { margin: 0; }

.rate-table-wrap { overflow-x: auto; margin: 22px 0; border: 1px solid var(--border); border-radius: 14px; }
table.rate-table { width: 100%; border-collapse: collapse; min-width: 480px; }
table.rate-table th, table.rate-table td {
  padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); font-size: .95rem;
}
table.rate-table th { background: var(--bg-elevated); font-weight: 800; }
table.rate-table tr:last-child td { border-bottom: none; }
table.rate-table td.num, table.rate-table th.num { text-align: right; font-weight: 700; }

.stat-band {
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 20px;
  padding: 30px 26px; text-align: center; margin: 30px 0;
}
.stat-band__figure { font-size: clamp(2rem, 4vw + 1rem, 3rem); font-weight: 800; color: var(--accent); display: block; }
.stat-band__label { color: var(--text-muted); font-size: .95rem; }

/* pricing tabs */
.tabs { margin: 26px 0; }
.tab-input { position: absolute; opacity: 0; pointer-events: none; }
.tab-list { display: flex; gap: 10px; margin-bottom: 22px; flex-wrap: wrap; }
.tab-label {
  flex: 1 1 200px; text-align: center; padding: 14px 16px; border-radius: 14px;
  border: 2px solid var(--border); font-weight: 700; cursor: pointer; min-height: 44px;
  display: flex; align-items: center; justify-content: center; gap: .4em;
  background: var(--bg-elevated); color: var(--text);
  transition: border-color .15s ease, background .15s ease;
}
.tab-label .price { color: var(--accent); }
.tab-panel { display: none; }
#tab-tier-1:checked ~ .tab-list label[for="tab-tier-1"],
#tab-tier-2:checked ~ .tab-list label[for="tab-tier-2"] {
  border-color: var(--accent); background: var(--bg);
}
#tab-tier-1:checked ~ .tab-panels #panel-tier-1 { display: block; }
#tab-tier-2:checked ~ .tab-panels #panel-tier-2 { display: block; }

.pricing-card {
  border: 1px solid var(--border); border-radius: 20px; padding: 30px 26px;
  background: var(--bg);
}
.pricing-card--highlight {
  border: 2px solid var(--accent);
  background: var(--bg-elevated);
  position: relative;
}
.pricing-card__flag {
  position: absolute; top: -14px; left: 24px;
  background: var(--accent); color: #fff; font-size: .75rem; font-weight: 800;
  padding: 5px 12px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em;
}
.pricing-card__price { font-size: 2.2rem; font-weight: 800; color: var(--accent); margin: 6px 0 2px; }
.pricing-card__hours { color: var(--text-muted); font-size: .88rem; margin-bottom: 18px; }
.pricing-card ul { padding-left: 1.2em; margin: 0 0 22px; }
.pricing-card li { margin-bottom: .5em; }

.addon-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 22px 0; }
@media (min-width: 700px) { .addon-grid { grid-template-columns: repeat(3, 1fr); } }
.addon-card {
  border: 1px solid var(--border); border-radius: 16px; padding: 20px;
  background: var(--bg-elevated);
}
.addon-card__price { font-weight: 800; color: var(--accent); font-size: 1.3rem; margin: 4px 0 8px; }

.perks-list {
  list-style: none; margin: 22px 0; padding: 0;
  display: grid; grid-template-columns: 1fr; gap: 12px;
}
@media (min-width: 700px) { .perks-list { grid-template-columns: 1fr 1fr; } }
.perks-list li {
  display: flex; gap: .7em; align-items: flex-start;
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px;
}
.perks-list .check { flex: none; color: var(--accent); font-weight: 800; }

.limits-block {
  border: 1px solid var(--border); border-radius: 18px; padding: 26px;
  background: var(--bg-elevated);
}
.limits-block ul { padding-left: 1.2em; margin: .6em 0 0; }
.limits-block li { margin-bottom: .5em; }

/* FAQ accordion (accent borrow: LMT) */
.faq-list { margin: 20px 0; }
.faq-item {
  border: 1px solid var(--border); border-radius: 12px; margin-bottom: 12px; overflow: hidden;
  background: var(--bg);
}
.faq-item summary {
  padding: 16px 20px; font-weight: 700; cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; min-height: 44px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--accent); font-weight: 800; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { padding: 0 20px 18px; margin: 0; }

/* lead form */
.lead-form { display: grid; grid-template-columns: 1fr; gap: 16px; max-width: 640px; margin: 0 auto; }
@media (min-width: 640px) {
  .lead-form { grid-template-columns: 1fr 1fr; }
  .lead-form .field--full { grid-column: 1 / -1; }
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 700; font-size: .9rem; }
.field input, .field textarea {
  border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px;
  font-size: 1rem; background: var(--bg); color: var(--text); min-height: 48px;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus, .consent-row input:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 1px;
}
.consent-row { display: flex; gap: .7em; align-items: flex-start; font-size: .88rem; color: var(--text-muted); grid-column: 1 / -1; }
.consent-row input { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.lead-form .btn-submit { grid-column: 1 / -1; }
.form-note {
  grid-column: 1 / -1; background: var(--success-bg); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px 18px; font-size: .9rem;
}
.form-note strong { display: block; margin-bottom: 4px; }

/* comparison / "why this vs a job" table reuse rate-table styles */

/* ---------- generic article (legal pages) ---------- */
.legal-article { padding: 40px 0 10px; }
.legal-article h1 { text-align: left; margin-left: 0; max-width: none; }
.legal-article h2 { margin-top: 1.4em; }
.legal-article ul { padding-left: 1.3em; }
.legal-article li { margin-bottom: .4em; }

/* utility */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.text-muted { color: var(--text-muted); }
