/* ================================================================
   Advertorial — Consumer Warning v2
   Chrome: Classic News style (topbar, sitehead, nav, offerbar, footer)
   Colour: Indigo (#4f46e5) — distinct from Classic News blue & Case Study green
   Alert accent: Amber (#d97706) — used for the warning ribbon only
   Typography: Serif body + subhead; sans for all UI chrome
   Container: 1080px wide chrome; .prose 680px for article readability
   ================================================================ */

/* ─── Tokens ─────────────────────────────────────────────────── */
:root{
  --bg:         #ffffff;
  --ink:        #111111;
  --muted:      #5b5b5b;
  --border:     #e5e5e5;
  --paper:      #fafafa;
  --link:       #4338ca;
  --link-hover: #3730a3;

  /* Primary CTA — indigo */
  --cta:        #4f46e5;
  --cta-hover:  #4338ca;

  /* CTA box tint */
  --cta-bg:     #eef2ff;
  --cta-border: #c7d2fe;

  /* Alert accent — amber (ribbon only) */
  --alert:      #d97706;
  --alert-bg:   rgba(245,158,11,.10);
  --alert-border: rgba(245,158,11,.32);

  --max:        1080px;
  --prose:      680px;
  --radius:     14px;
  --serif: ui-serif, Georgia, "Times New Roman", Times, serif;
  --sans:  ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --mono:  ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Courier New", monospace;
}

/* ─── Reset ──────────────────────────────────────────────────── */
*{ box-sizing: border-box }
html, body{ height: 100% }
body{
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18.5px;
  line-height: 1.80;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-bottom: 76px;
}
a{ color: var(--link); text-decoration: none }
a:hover{ color: var(--link-hover); text-decoration: underline }
img{ max-width: 100%; display: block }

/* Wide container for chrome */
.container{
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}
/* Readable prose column */
.prose{
  max-width: var(--prose);
  margin-inline: auto;
}

/* ─── Topbar — Classic News ──────────────────────────────────── */
.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  background: #111;
  color: #fff;
  border-bottom: 1px solid #222;
}
.topbar-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
}
.badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 12px;
}
.badge-dot{
  width: 8px; height: 8px;
  border-radius: 99px;
  background: #ffcc00;
  display: inline-block;
  flex-shrink: 0;
}
.topbar-right{
  font-size: 12px;
  color: #cfcfcf;
  white-space: nowrap;
  font-family: var(--sans);
}
.topbar-right a{ color: #cfcfcf; text-decoration: underline; text-underline-offset: 2px }
.topbar-right a:hover{ color: #fff }
@media (max-width: 600px) { .topbar-detail { display: none } }

/* ─── Site header — Classic News ─────────────────────────────── */
.sitehead{
  border-bottom: 1px solid var(--border);
  background: #fff;
}
.sitehead-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  flex-wrap: nowrap;
}
@media (max-width: 600px) { .sitehead-inner { justify-content: center } }
.brand{
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-shrink: 0;
}
@media (max-width: 600px) { .brand { flex-direction: column; align-items: center; gap: 2px } }
.brand-mark{
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.brand-icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 999px;
  background: rgba(0,0,0,.06);
  color: var(--cta);
  flex-shrink: 0;
}
.brand-tag{
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

/* ─── Nav — Classic News + CTA pill ─────────────────────────── */
.nav{
  display: flex;
  gap: 4px;
  align-items: center;
  font-family: var(--sans);
  flex-shrink: 0;
  flex-wrap: nowrap;
}
.nav a{
  font-size: 13px;
  color: #222;
  padding: 6px 9px;
  border-radius: 10px;
  text-decoration: none;
  white-space: nowrap;
}
.nav a:hover{
  background: var(--paper);
  color: #111;
  text-decoration: none;
}
.nav a.nav-cta{
  background: var(--cta);
  color: #fff !important;
  padding: 7px 15px;
  border-radius: 999px;
  font-weight: 750;
  margin-left: 6px;
}
.nav a.nav-cta:hover{
  background: var(--cta-hover);
}
@media (max-width: 600px){
  .nav{ display: none }
}

/* ─── Page layout ────────────────────────────────────────────── */
.main{ padding: 26px 0 0; }

.breadcrumb{
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 14px;
  font-family: var(--sans);
}
.breadcrumb span{ color: #aaa }

/* ─── Alert ribbon ───────────────────────────────────────────── */
.alert-ribbon{
  margin: 0 0 20px;
  border: 1px solid var(--alert-border);
  background: var(--alert-bg);
  border-radius: var(--radius);
  padding: 12px 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.alert-badge{
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(245,158,11,.18);
  border: 1px solid var(--alert-border);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: #7a4b00;
  white-space: nowrap;
  flex-shrink: 0;
}
.alert-badge svg{ width: 14px; height: 14px; flex-shrink: 0 }
.alert-text{
  font-family: var(--sans);
  font-size: 14px;
  color: #1f2937;
  line-height: 1.55;
}
.alert-text strong{ font-weight: 800 }

/* ─── Article headline ───────────────────────────────────────── */
h1{
  font-family: var(--serif);
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.10;
  font-size: clamp(30px, 3.8vw, 46px);
  margin: 8px 0 12px;
}
.subhead{
  font-family: var(--serif);
  font-weight: 400;
  color: #2a2a2a;
  font-size: 20px;
  line-height: 1.60;
  margin: 0 0 14px;
}

/* ─── Meta chips ─────────────────────────────────────────────── */
.meta{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
.meta strong{ color: #222; font-weight: 650 }
.chip{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  background: var(--paper);
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 12px;
}
.chip .pin{
  color: var(--cta);
  display: inline-flex;
  align-items: center;
  width: 14px; height: 14px;
}
.chip .pin svg{ display: block }

/* ─── Hero image ─────────────────────────────────────────────── */
.hero{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
  margin-bottom: 22px;
}
.hero img{ width: 100%; height: auto; display: block }
.caption{
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
}

/* ─── Section text ───────────────────────────────────────────── */
hr.sep{
  border: 0;
  border-top: 1px solid var(--border);
  margin: 26px 0;
}
h2{
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -.01em;
  font-size: 26px;
  line-height: 1.20;
  margin: 24px 0 10px;
}
p{ margin: 0 0 18px; font-family: var(--serif) }

/* ─── Callout — amber tint ───────────────────────────────────── */
.callout{
  border: 1px solid var(--alert-border);
  background: var(--alert-bg);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 18px 0;
  font-family: var(--sans);
  font-size: 14.5px;
  color: #1f2937;
  line-height: 1.6;
}
.callout strong{ font-weight: 800 }
.callout p{ margin: 0; font-family: var(--sans); font-size: 14.5px }

/* ─── Numbered steps grid ────────────────────────────────────── */
.steps{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0 22px;
}
@media (max-width: 600px){ .steps{ grid-template-columns: 1fr } }

.step{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  background: #fff;
}
.step .n{
  display: inline-flex;
  width: 32px; height: 32px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-weight: 900;
  font-size: 14px;
  color: #7a4b00;
  background: rgba(245,158,11,.18);
  border: 1px solid var(--alert-border);
  flex-shrink: 0;
}
.step.step-good .n{
  color: #14532d;
  background: rgba(22,163,74,.12);
  border-color: rgba(22,163,74,.28);
}
.step .t{
  margin-top: 10px;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 15px;
  color: #111;
  line-height: 1.3;
}
.step p{
  margin: 8px 0 0;
  font-family: var(--sans);
  font-size: 14.5px;
  color: #333;
  line-height: 1.6;
}

/* ─── Checklist ──────────────────────────────────────────────── */
.checklist{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  background: #fff;
  margin: 14px 0;
}
.checklist ul{
  margin: 0;
  padding-left: 20px;
  font-family: var(--sans);
  font-size: 15px;
  color: #222;
  line-height: 1.7;
}
.checklist li{ margin: 6px 0 }
.checklist li::marker{ color: var(--cta) }

/* ─── Before / After ────────────────────────────────────────── */
.ba{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0;
}
@media (max-width: 560px){ .ba{ grid-template-columns: 1fr } }
.ba .panel{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}
.ba .panel img{ width: 100%; height: auto; display: block }
.ba .panel .head{
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .10em;
  color: #444;
}

/* ─── CTA box — indigo tint ──────────────────────────────────── */
.cta-box{
  border: 1px solid var(--cta-border);
  background: var(--cta-bg);
  border-radius: calc(var(--radius) + 2px);
  padding: 16px 18px;
  margin: 22px 0;
}
.cta-box h3{
  margin: 0 0 8px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #3730a3;
}
.cta-row{
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.cta-row > div{
  font-family: var(--sans);
  font-size: 14.5px;
  color: #333;
  line-height: 1.5;
}
.cta-row strong{ color: #111; font-size: 15px }

/* ─── Button — pill, indigo ──────────────────────────────────── */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--cta);
  color: #fff !important;
  font-family: var(--sans);
  font-weight: 750;
  font-size: 14px;
  letter-spacing: .01em;
  text-decoration: none !important;
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .12s ease, transform .08s ease;
}
.btn:hover{ background: var(--cta-hover); color: #fff !important }
.btn:active{ transform: translateY(1px) }
.btn.secondary{
  background: transparent;
  color: var(--cta) !important;
  border: 1px solid var(--cta-border);
}
.btn.secondary:hover{ background: var(--cta-bg) }

/* ─── Inline link ────────────────────────────────────────────── */
.inline-link{
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.inline-link:hover{ opacity: .80 }

/* ─── Offer bar — Classic News style ────────────────────────── */
.offerbar{
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,.96);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 70;
  transition: transform .22s ease;
  padding: 10px 0;
}
.offerbar.hide{ transform: translateY(100%) }
.offerbar-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.offerbar-txt{
  font-family: var(--sans);
  font-size: 13px;
  color: #333;
  line-height: 1.25;
}
.offerbar-txt strong{ color: #111 }

/* ─── Footer ─────────────────────────────────────────────────── */
.footer{
  border-top: 1px solid var(--border);
  padding: 22px 0 34px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 12px;
}
.footer .cols{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
}
.footer a{ color: var(--muted); text-decoration: underline; text-underline-offset: 2px }
.footer a:hover{ color: #111 }

/* ─── Utility ────────────────────────────────────────────────── */
.small{
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  font-family: var(--sans);
}

/* ─── Modal prelander (hard-coded in HTML) ───────────────────── */
.modal-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(10,12,14,.55);
  display: none;
  z-index: 80;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.modal-backdrop.open{ display: flex }
.modal{
  width: min(520px, 100%);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,.20);
  padding: 24px 22px 20px;
  font-family: var(--sans);
}
.modal-top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.modal-brand{
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -.01em;
}
.modal-brand .brand-icon{ color: var(--cta) }
.modal h3{
  margin: 10px 0 6px;
  font-family: var(--sans);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: #111;
}
.modal p{
  margin: 0 0 14px;
  font-family: var(--sans);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.progress{
  height: 10px;
  background: rgba(79,70,229,.10);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(79,70,229,.18);
}
.bar{
  width: 0%;
  height: 100%;
  background: var(--cta);
  border-radius: 999px;
  transition: width .08s linear;
}
.modal-steps{
  margin-top: 12px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 14px;
  color: #222;
}
.modal-actions{
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
}

/* ─── Availability page (availability.html) ─────────────────── */
.av-wrap{
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.av-card{
  width: min(520px, 100%);
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--bg);
  padding: 24px 22px 20px;
  box-shadow: 0 8px 30px rgba(0,0,0,.07);
  font-family: var(--sans);
}
