/* =========================================================
   Shared stylesheet — publication (advertorial/about) +
   offer (masterclass/legal) design families.
   Tailwind CDN handles utility layout; this file carries the
   custom component shapes, color tokens and fluid type that
   utilities alone can't express cleanly.
   ========================================================= */

:root {
  --pub-navy: #0f2a4a;
  --pub-navy-dark: #0a1d34;
  --pub-ink: #16191c;
  --pub-muted: #545c66;
  --pub-line: #e3e6ea;
  --pub-tint: #f6f7f9;
  --pub-green: #157347;
  --pub-green-dark: #0f5c38;
  --pub-amber-tint: #fdf3d9;
  --pub-amber-line: #e6c977;

  --offer-ink: #0b1220;
  --offer-muted: #495066;
  --offer-blue: #175cd3;
  --offer-blue-dark: #0f3fa0;
  --offer-line: #e1e6f2;
  --offer-tint: #f4f7ff;
  --offer-lime: #beea3d;
  --offer-lime-dark: #9fd41f;
  --offer-panel-dark: #141838;
}

* {
  box-sizing: border-box;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--pub-ink);
  -webkit-font-smoothing: antialiased;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid #ffb020;
  outline-offset: 2px;
  border-radius: 2px;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #111;
  color: #fff;
  padding: .75rem 1.25rem;
  z-index: 999;
  border-radius: 0 0 .5rem 0;
}
.skip-link:focus {
  left: 0;
}

/* ============ PUBLICATION FAMILY ============ */

.pub-header {
  background: var(--pub-navy);
  color: #fff;
}
.pub-header__title {
  font-size: clamp(1.35rem, 3.2vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}
.pub-header__tag {
  color: #c7d3e0;
  font-size: clamp(.75rem, 1.6vw, .9rem);
}

.pub-nav {
  background: var(--pub-tint);
  border-bottom: 1px solid var(--pub-line);
}
.pub-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1.25rem;
}
.pub-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--pub-navy);
  border-bottom: 2px solid transparent;
  transition: border-color .15s ease, color .15s ease;
}
.pub-nav__link:hover,
.pub-nav__link:focus-visible {
  border-color: var(--pub-green);
  color: var(--pub-green-dark);
}

.pub-ribbon {
  background: var(--pub-tint);
  border-bottom: 1px solid var(--pub-line);
  color: var(--pub-muted);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .72rem;
  font-weight: 700;
  text-align: center;
  padding: .55rem 1rem;
}

.kicker {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .74rem;
  font-weight: 700;
  color: var(--pub-green-dark);
}
.kicker--offer {
  color: var(--offer-blue);
}

.byline-row {
  color: var(--pub-muted);
  font-size: .85rem;
  border-bottom: 1px solid var(--pub-line);
}

.h1-hero {
  font-size: clamp(1.7rem, 4.6vw + .4rem, 3rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--pub-ink);
}

.dek {
  font-size: clamp(1.05rem, 1.4vw + .7rem, 1.3rem);
  line-height: 1.55;
  color: var(--pub-muted);
}

.prose-article p {
  font-size: clamp(1rem, .3vw + .95rem, 1.1rem);
  line-height: 1.75;
  color: #262b31;
}
.prose-article h2 {
  font-size: clamp(1.35rem, 1.6vw + 1rem, 1.85rem);
  font-weight: 800;
  color: var(--pub-ink);
  letter-spacing: -0.01em;
}
.prose-article h3 {
  font-size: clamp(1.1rem, 1vw + .9rem, 1.35rem);
  font-weight: 700;
  color: var(--pub-ink);
}

figure.media-figure figcaption {
  font-size: .85rem;
  color: var(--pub-muted);
  padding-top: .5rem;
}

.key-box {
  background: var(--pub-amber-tint);
  border: 1px solid var(--pub-amber-line);
  border-left-width: 6px;
  border-radius: .75rem;
}
.key-box__list {
  list-style: none;
}
.key-box__list li {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
}
.key-box__list li::before {
  content: "✓";
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  background: var(--pub-green);
  color: #fff;
  font-size: .8rem;
  font-weight: 800;
}

/* ---------- Stat band (shared shape, both pages) ---------- */
.stat-band {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--pub-line);
  border: 1px solid var(--pub-line);
  border-radius: 1rem;
  overflow: hidden;
}
.stat-band--offer {
  background: var(--offer-line);
  border-color: var(--offer-line);
}
@media (min-width: 640px) {
  .stat-band {
    grid-template-columns: repeat(4, 1fr);
  }
}
.stat-band__item {
  background: #fff;
  padding: 1.3rem 1rem;
  text-align: center;
}
.stat-band__figure {
  font-size: clamp(1.5rem, 2.6vw + .6rem, 2.4rem);
  font-weight: 800;
  color: var(--pub-green-dark);
  line-height: 1.1;
}
.stat-band--offer .stat-band__figure {
  color: var(--offer-blue-dark);
}
.stat-band__label {
  font-size: .82rem;
  color: var(--pub-muted);
  margin-top: .4rem;
  line-height: 1.35;
}
.stat-band__note {
  grid-column: 1 / -1;
  background: var(--pub-tint);
  font-size: .78rem;
  color: var(--pub-muted);
  padding: .65rem 1rem;
  text-align: left;
}
.stat-band--offer .stat-band__note {
  background: var(--offer-tint);
}

/* ---------- Two column split (advertorial AI-leverage + rates) ---------- */
.split {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  align-items: stretch;
}
@media (min-width: 860px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
}
.split__panel {
  border: 1px solid var(--pub-line);
  border-radius: 1rem;
  padding: 1.5rem;
  background: #fff;
}

.promo-box {
  background: var(--pub-green);
  color: #fff;
  border-radius: 1.1rem;
  padding: 2rem 1.5rem;
  text-align: center;
}
.promo-box p {
  color: #eafff2;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 48px;
  padding: .75rem 1.6rem;
  border-radius: .7rem;
  font-weight: 700;
  font-size: .98rem;
  text-align: center;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
  cursor: pointer;
  border: none;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn--pub-primary {
  background: #fff;
  color: var(--pub-green-dark);
}
.btn--pub-primary:hover {
  background: #eafff2;
}
.btn--pub-outline {
  background: transparent;
  border: 2px solid var(--pub-navy);
  color: var(--pub-navy);
}
.btn--pub-outline:hover {
  background: var(--pub-navy);
  color: #fff;
}
.btn--offer-primary {
  background: var(--offer-lime);
  color: #10240b;
}
.btn--offer-primary:hover {
  background: var(--offer-lime-dark);
}
.btn--offer-outline {
  background: transparent;
  border: 2px solid var(--offer-blue);
  color: var(--offer-blue);
}
.btn--offer-outline:hover {
  background: var(--offer-blue);
  color: #fff;
}
.btn--block {
  width: 100%;
}

/* ---------- Disclaimer + Footer (both families) ---------- */
.site-disclaimer {
  display: block;
  background: #fff7e0;
  border: 1px solid #f0dfa0;
  border-radius: .85rem;
  padding: 1.1rem 1.25rem;
  font-size: .88rem;
  line-height: 1.6;
  color: #52400c;
}
.site-disclaimer a {
  text-decoration: underline;
  font-weight: 700;
}

.site-footer {
  background: #10131f;
  color: #cfd4e2;
  font-size: .9rem;
}
.site-footer__company {
  white-space: pre-line;
  line-height: 1.7;
  color: #e6e9f2;
}
.site-footer__company a {
  color: #9fc4ff;
  text-decoration: underline;
}
.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  list-style: none;
}
@media (min-width: 640px) {
  .site-footer__links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: .5rem 1.5rem;
  }
}
.site-footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: #cfd4e2;
}
.site-footer__links a:hover,
.site-footer__links a:focus-visible {
  color: #fff;
}

/* ============ OFFER FAMILY ============ */

.offer-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--offer-line);
}
.offer-header__brand {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--offer-ink);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.offer-header__brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: .55rem;
  background: linear-gradient(135deg, var(--offer-blue), var(--offer-lime));
  flex: none;
}
.offer-nav__link {
  font-weight: 600;
  font-size: .92rem;
  color: var(--offer-muted);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color .15s ease;
}
.offer-nav__link:hover,
.offer-nav__link:focus-visible {
  color: var(--offer-blue);
}

.nav-toggle {
  width: 44px;
  height: 44px;
  border-radius: .6rem;
  border: 1px solid var(--offer-line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--offer-ink);
  position: relative;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle__bars::before {
  content: "";
  position: absolute;
  top: -6px;
}
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  top: 6px;
}

.mobile-menu {
  display: none;
  border-bottom: 1px solid var(--offer-line);
  background: #fff;
}
.mobile-menu.is-open {
  display: block;
}
.mobile-menu__link {
  display: flex;
  align-items: center;
  min-height: 48px;
  font-weight: 600;
  color: var(--offer-ink);
  border-bottom: 1px solid var(--offer-line);
}

.hero-offer {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #eaf2ff 0%, #f2fbe9 100%);
}
.blob {
  position: absolute;
  border-radius: 999px;
  filter: blur(10px);
  opacity: .55;
  z-index: 0;
  pointer-events: none;
}
.blob--a {
  width: 22rem;
  height: 22rem;
  background: radial-gradient(circle at 30% 30%, #bcd8ff, transparent 70%);
  top: -6rem;
  right: -6rem;
}
.blob--b {
  width: 18rem;
  height: 18rem;
  background: radial-gradient(circle at 60% 40%, #d8f5b0, transparent 70%);
  bottom: -7rem;
  left: -5rem;
}
.hero-offer > * {
  position: relative;
  z-index: 1;
}

.h1-offer {
  font-size: clamp(1.85rem, 4.4vw + .4rem, 3.1rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--offer-ink);
}
.dek-offer {
  font-size: clamp(1.02rem, 1.2vw + .7rem, 1.22rem);
  line-height: 1.6;
  color: var(--offer-muted);
}

.check-list {
  list-style: none;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
}
.check-list li::before {
  content: "";
  flex: none;
  width: 1.35rem;
  height: 1.35rem;
  margin-top: .1rem;
  border-radius: 999px;
  background: var(--offer-lime);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3 8.5 6.3 12 13 4' stroke='%2310240b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 60%;
}

.media-frame {
  position: relative;
  width: 100%;
  border-radius: 1rem;
  overflow: hidden;
  background: #dfe6f2;
}
.media-frame img,
.media-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-title-offer {
  font-size: clamp(1.4rem, 1.7vw + 1rem, 2rem);
  font-weight: 800;
  color: var(--offer-ink);
  letter-spacing: -0.01em;
}

.panel-dark {
  background: var(--offer-panel-dark);
  color: #eef0fb;
  border-radius: 1.25rem;
}
.panel-dark .section-title-offer {
  color: #fff;
}
.panel-dark p {
  color: #c7ccea;
}
.perk-callout {
  background: rgba(190,234,61,.12);
  border: 1px solid rgba(190,234,61,.4);
  border-radius: .85rem;
  color: #eaffbc;
}

.arith-card {
  background: #fff;
  border: 1px solid var(--offer-line);
  border-radius: 1.1rem;
  box-shadow: 0 10px 30px -18px rgba(15,23,42,.25);
}
.arith-card__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .7rem 0;
  border-bottom: 1px solid var(--offer-line);
  font-size: .95rem;
}
.arith-card__row:last-child {
  border-bottom: none;
}
.arith-card__row strong {
  color: var(--offer-ink);
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--offer-line);
  border-radius: 1rem;
}
.data-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: .92rem;
}
.data-table th,
.data-table td {
  text-align: left;
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--offer-line);
  vertical-align: top;
}
.data-table thead th {
  background: var(--offer-tint);
  font-weight: 700;
  color: var(--offer-ink);
}
.data-table tbody tr:last-child td {
  border-bottom: none;
}

/* ---------- Pricing tabs ---------- */
.price-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}
.price-tab {
  min-height: 48px;
  padding: .6rem 1.3rem;
  border-radius: 999px;
  border: 2px solid var(--offer-line);
  background: #fff;
  font-weight: 700;
  color: var(--offer-muted);
  transition: all .15s ease;
}
.price-tab.is-active {
  border-color: var(--offer-blue);
  background: var(--offer-blue);
  color: #fff;
}
.price-panel {
  display: none;
  border: 1px solid var(--offer-line);
  border-radius: 1.25rem;
  padding: 1.75rem;
  background: #fff;
}
.price-panel.is-active {
  display: block;
}
.price-panel--highlight {
  border: 2px solid var(--offer-blue);
  box-shadow: 0 18px 40px -22px rgba(23,92,211,.45);
}
.price-panel__badge {
  display: inline-block;
  background: var(--offer-lime);
  color: #10240b;
  font-size: .74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .3rem .7rem;
  border-radius: 999px;
}
.price-panel__price {
  font-size: clamp(1.9rem, 3vw + .8rem, 2.6rem);
  font-weight: 800;
  color: var(--offer-ink);
}

.addon-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .addon-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.addon-card {
  border: 1px solid var(--offer-line);
  border-radius: 1rem;
  padding: 1.3rem;
  background: #fff;
}
.addon-card__price {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--offer-blue-dark);
}

.perk-stack {
  display: grid;
  gap: .75rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .perk-stack {
    grid-template-columns: 1fr 1fr;
  }
}
.perk-item {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  background: var(--offer-tint);
  border-radius: .85rem;
  padding: .9rem 1rem;
  font-size: .93rem;
}

.limits-list {
  list-style: none;
  display: grid;
  gap: .75rem;
}
.limits-list li {
  display: flex;
  gap: .65rem;
  align-items: flex-start;
  padding: .85rem 1rem;
  background: #fff5f0;
  border: 1px solid #f3d9c8;
  border-radius: .85rem;
  font-size: .93rem;
  color: #5c3a21;
}

/* ---------- FAQ accordion ---------- */
.faq {
  border: 1px solid var(--offer-line);
  border-radius: 1rem;
  overflow: hidden;
  background: #fff;
}
.faq-item + .faq-item {
  border-top: 1px solid var(--offer-line);
}
.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 56px;
  padding: 1rem 1.25rem;
  font-weight: 700;
  text-align: left;
  background: #fff;
  color: var(--offer-ink);
}
.faq-icon {
  flex: none;
  font-size: 1.3rem;
  line-height: 1;
  transition: transform .2s ease;
  color: var(--offer-blue);
}
.faq-trigger[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}
.faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
}
.faq-panel__inner {
  padding: 0 1.25rem 1.15rem;
  color: var(--offer-muted);
  font-size: .95rem;
  line-height: 1.6;
}

/* ---------- Lead form ---------- */
.lead-form {
  display: grid;
  gap: 1rem;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.form-field label {
  font-weight: 600;
  font-size: .9rem;
  color: var(--offer-ink);
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 48px;
  font-size: 1rem;
  padding: .65rem .85rem;
  border-radius: .65rem;
  border: 1.5px solid var(--offer-line);
  background: #fff;
  color: var(--offer-ink);
}
.form-field textarea {
  min-height: 110px;
  resize: vertical;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--offer-blue);
}
.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea {
  border-color: #d92d20;
}
.form-error {
  color: #d92d20;
  font-size: .82rem;
  display: none;
}
.form-field.has-error .form-error {
  display: block;
}
.consent-row {
  display: flex;
  gap: .65rem;
  align-items: flex-start;
  font-size: .88rem;
  color: var(--offer-muted);
}
.consent-row input {
  width: 20px;
  height: 20px;
  margin-top: .15rem;
  flex: none;
}
.honeypot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-success {
  display: none;
  background: #ecfdf3;
  border: 1px solid #a6e9c4;
  color: #0f5c38;
  border-radius: .85rem;
  padding: 1.1rem 1.25rem;
  font-weight: 600;
}
.form-success.is-visible {
  display: block;
}
.lead-form.is-submitted {
  display: none;
}

/* ---------- Legal pages ---------- */
.legal-shell h2 {
  font-size: clamp(1.2rem, 1.3vw + 1rem, 1.5rem);
  font-weight: 800;
  color: var(--offer-ink);
}
.legal-shell p, .legal-shell li {
  color: #333a4d;
  line-height: 1.7;
}
.legal-shell ul {
  list-style: disc;
  padding-left: 1.4rem;
  display: grid;
  gap: .4rem;
}
