/* =========================================================
   SafestSource | site.css (CLEAN)
   - Dedupe of appended patches
   - Fix top menu: prevent "Contact" wrapping to a 2nd line on desktop
   - Keep responsive behavior (nav links hide on <=520px)
   ========================================================= */

:root{
  --blue: #0B5ED7;
  --green: #2E8B57;
  --navy: #0A2540;
  --soft: #F2F4F7;
  --slate: #667085;

  --success: #12B76A;
  --warn: #F79009;
  --danger: #D92D20;

  --shadow-strong: 0 18px 60px rgba(0,0,0,.45);
  --shadow-soft: 0 14px 40px rgba(0,0,0,.16);
  --radius: 22px;
  --radius2: 16px;
  --max: 1160px;

  --hfont: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --bfont: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

html[data-theme="dark"]{
  --page-bg:
    radial-gradient(900px 520px at 18% 12%, rgba(11,94,215,.20), transparent 55%),
    radial-gradient(900px 520px at 82% 18%, rgba(46,139,87,.18), transparent 52%),
    radial-gradient(900px 520px at 55% 88%, rgba(11,94,215,.14), transparent 54%),
    linear-gradient(180deg, #061526 0%, #071A2C 62%, #061526 100%);
  --text: rgba(242,244,247,.98);
  --muted: rgba(242,244,247,.76);
  --muted2: rgba(242,244,247,.62);
  --line: rgba(242,244,247,.14);
  --nav-bg: rgba(10,37,64,.68);
  --panel: rgba(242,244,247,.05);
  --panel2: rgba(242,244,247,.08);
  --field: rgba(10,37,64,.28);
  --chip-bg: rgba(242,244,247,.04);
  --chip-border: rgba(242,244,247,.16);
  --hero-overlay: linear-gradient(180deg, rgba(7,26,44,.05) 0%, rgba(7,26,44,.74) 72%, rgba(7,26,44,.90) 100%);
  --card-bg: rgba(242,244,247,.05);
  --card-border: rgba(242,244,247,.16);
  --btn-ghost-bg: rgba(242,244,247,.03);
  --btn-ghost-border: rgba(242,244,247,.16);
  --icon-bg: linear-gradient(135deg, rgba(11,94,215,.18), rgba(46,139,87,.12));
  --icon-border: rgba(11,94,215,.22);
  --shadow: var(--shadow-strong);
  --shadow2: var(--shadow-soft);

  /* Solid section colors to avoid “cuts” */
  --section-solid: #061526;
  --section-band:  #071A2C;
}

html[data-theme="light"]{
  --page-bg:
    radial-gradient(900px 520px at 18% 12%, rgba(11,94,215,.10), transparent 60%),
    radial-gradient(900px 520px at 82% 18%, rgba(46,139,87,.08), transparent 58%),
    linear-gradient(180deg, #FFFFFF 0%, var(--soft) 62%, #FFFFFF 100%);
  --text: #0B1220;
  --muted: rgba(10,37,64,.78);
  --muted2: rgba(102,112,133,.92);
  --line: rgba(10,37,64,.12);
  --nav-bg: rgba(255,255,255,.78);
  --panel: rgba(255,255,255,.88);
  --panel2: rgba(255,255,255,.92);
  --field: rgba(242,244,247,.92);
  --chip-bg: rgba(242,244,247,.90);
  --chip-border: rgba(10,37,64,.12);
  --hero-overlay: linear-gradient(180deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,.35) 40%, rgba(242,244,247,.90) 100%);
  --card-bg: rgba(255,255,255,.92);
  --card-border: rgba(10,37,64,.12);
  --btn-ghost-bg: rgba(255,255,255,.80);
  --btn-ghost-border: rgba(10,37,64,.12);
  --icon-bg: linear-gradient(135deg, rgba(11,94,215,.14), rgba(46,139,87,.10));
  --icon-border: rgba(11,94,215,.20);
  --shadow: 0 18px 60px rgba(10,37,64,.14);
  --shadow2: 0 14px 40px rgba(10,37,64,.10);

  /* Solid section colors to avoid “cuts” */
  --section-solid: #FFFFFF;
  --section-band:  #F2F4F7;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: var(--bfont);
  color: var(--text);
  background: var(--page-bg);
  overflow-x:hidden;
}
a{ color:inherit; text-decoration:none; }
.container{ max-width: var(--max); margin:0 auto; padding: 0 20px; }

.skip{
  position:absolute; left:-9999px; top:0;
  background: var(--soft); color: var(--navy);
  padding: 10px 12px; border-radius: 10px;
}
.skip:focus{ left: 14px; top: 14px; z-index: 999; }

/* =========================================================
   NAV (FIX)
   ========================================================= */

.nav{
  position: sticky; top:0; z-index:50;
  backdrop-filter: blur(14px);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--line);
}

.nav-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  padding: 14px 0;
}

.brand{
  display:flex; align-items:center; gap:12px;
  flex: 0 0 auto;
  min-width: 230px; /* was 260; frees space so Contact doesn't wrap */
}
.brand img{
  width: 40px; height: 40px; border-radius: 12px;
  background: rgba(255,255,255,.0);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
  object-fit: contain;
}
.brand .name{ display:flex; flex-direction:column; line-height:1.1; }
.brand .name strong{
  font-family: var(--hfont);
  font-weight:800;
  letter-spacing:.2px;
}
.brand .name span{ font-size:12px; color: var(--muted2); }

.nav-links{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 14px;                 /* was 18 */
  font-size: 14px;
  color: var(--muted2);
  flex: 1 1 auto;            /* can shrink */
  min-width: 0;              /* critical for flex shrink */
  white-space: nowrap;       /* prevents "Contact" dropping */
}
.nav-links a{ padding: 8px 10px; border-radius: 10px; }
.nav-links a:hover{ background: rgba(11,94,215,.08); color: var(--text); }

.nav-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap: 12px;
  flex: 0 0 auto;
  white-space: nowrap;
}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  font-weight: 650;
  cursor:pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease, box-shadow .12s ease;
  white-space:nowrap;
  font-family: var(--bfont);
}
.btn:hover{ transform: translateY(-1px); border-color: rgba(11,94,215,.35); }
.btn.primary{
  border: 1px solid rgba(11,94,215,.55);
  background: linear-gradient(135deg, rgba(11,94,215,.98), rgba(11,94,215,.76));
  color: #FFFFFF;
  box-shadow: 0 18px 50px rgba(11,94,215,.22);
}
.btn.primary:hover{ box-shadow: 0 20px 58px rgba(11,94,215,.28); }
.btn.secondary{
  border: 1px solid rgba(46,139,87,.45);
  background: linear-gradient(135deg, rgba(46,139,87,.20), rgba(46,139,87,.10));
}
.btn.ghost{
  background: var(--btn-ghost-bg);
  border-color: var(--btn-ghost-border);
}

.theme-toggle{
  display:inline-flex; align-items:center; gap:10px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  cursor:pointer;
  user-select:none;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
  font-size: 13px;
  color: var(--muted2);
}
.theme-toggle:hover{ transform: translateY(-1px); border-color: rgba(11,94,215,.35); }
.toggle-dot{
  width: 32px; height: 18px; border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--chip-bg);
  position: relative;
  display:inline-block;
}
.toggle-knob{
  position:absolute; top: 2px; left: 2px;
  width: 14px; height: 14px; border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--green));
  transition: left .14s ease;
  box-shadow: 0 6px 14px rgba(0,0,0,.20);
}
html[data-theme="dark"] .toggle-knob{ left: 2px; }
html[data-theme="light"] .toggle-knob{ left: 16px; }

@media (max-width: 1120px){
  .brand{ min-width: 210px; }
  .nav-links{ gap: 10px; font-size: 13.5px; }
  .nav-links a{ padding: 8px 8px; }
  .btn{ padding: 11px 14px; }
}

@media (max-width: 520px){
  .nav-links{ display:none; }
  .brand{ min-width: auto; }
}

/* =========================================================
   HERO (above-the-fold, statbar visible)
   ========================================================= */

.hero{ padding: 34px 0 16px; background: transparent !important; }

.hero-grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 26px;
  align-items: center;
}

.kicker{
  display:inline-flex; align-items:center; gap:10px;
  padding: 8px 12px;
  border-radius: 999px;
  border:1px solid var(--line);
  background: var(--panel);
  color: var(--muted2);
  font-size: 13px;
}
.dot{
  width:9px; height:9px; border-radius:99px;
  background: linear-gradient(135deg, var(--blue), var(--green));
  box-shadow: 0 0 0 6px rgba(11,94,215,.14);
}

h1{
  margin: 16px 0 10px;
  font-family: var(--hfont);
  font-size: clamp(34px, 3.6vw, 54px);
  letter-spacing: -0.02em;
  line-height: 1.04;
  font-weight: 800;
}

.subhead{
  color: var(--muted);
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.55;
  margin: 12px 0 18px;
  max-width: 60ch;
}

.hero-cta{
  display:flex; flex-wrap:wrap; gap: 12px;
  align-items:center;
  margin: 18px 0 14px;
}

.tagline{
  display:flex; flex-wrap:wrap; gap:10px;
  align-items:center;
  color: var(--muted2);
  font-size: 13px;
  margin-top: 10px;
}
.tag{
  display:inline-flex; align-items:center; gap:8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--chip-border);
  background: var(--chip-bg);
  color: var(--muted2);
}
.tag svg{ width: 16px; height:16px; fill:none; stroke: currentColor; stroke-width:2; opacity:.9; }

.hero-card{
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  box-shadow: var(--shadow);
  overflow:hidden;
  position:relative;
  height: clamp(520px, 68vh, 720px);
  padding-bottom: 92px; /* reserve for statbar */
}
.hero-card .img{
  width:100%;
  height:100%;
  object-fit: cover;
  object-position: 50% 22%;
  display:block;
  opacity:.98;
  filter: saturate(1.02) contrast(1.02);
}
.hero-card .overlay{
  position:absolute; inset:0;
  background: var(--hero-overlay);
  z-index: 1;
}
.hero-card .statbar{
  position:absolute; left: 16px; right: 16px; bottom: 16px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  z-index: 3;
}
.stat{
  border: 1px solid var(--line);
  background: rgba(10,37,64,.18);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 12px 12px;
  color: #fff;
}
html[data-theme="light"] .stat{
  background: rgba(255,255,255,.75);
  color: var(--navy);
}
.stat strong{ display:block; font-size: 14px; font-weight:700; }
.stat span{ display:block; font-size: 12px; opacity:.9; margin-top: 4px; }

@media (max-height: 820px){
  .hero-card{
    height: clamp(480px, 62vh, 660px);
    padding-bottom: 88px;
  }
}

/* =========================================================
   SECTIONS (solid background)
   ========================================================= */

section{
  position: relative;
  isolation: isolate;
  background: var(--section-solid);
  padding: 56px 0;
  border-top: none !important;
  border-bottom: none !important;
}

.lightband{
  background: var(--section-band) !important;
  border: none !important;
}

.section-title{
  font-size: 12.5px;
  letter-spacing:.14em;
  text-transform: uppercase;
  color: var(--muted2);
  margin: 0 0 10px;
  font-weight: 700;
}

h2{
  margin: 0 0 10px;
  font-family: var(--hfont);
  font-size: clamp(26px, 2.1vw, 34px);
  letter-spacing:-0.015em;
  font-weight: 800;
}

.lead{
  color: var(--muted);
  max-width: 78ch;
  line-height:1.65;
  margin: 0 0 22px;
}

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

.card{
  border-radius: var(--radius2);
  border:1px solid var(--card-border);
  background: var(--card-bg);
  padding: 18px;
  box-shadow: var(--shadow2);
}
.card h3{
  margin: 10px 0 8px;
  font-family: var(--hfont);
  font-size: 16px;
  letter-spacing:-0.01em;
  font-weight: 800;
}
.card p{
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

.icon{
  width: 44px; height: 44px; border-radius: 14px;
  display:grid; place-items:center;
  background: var(--icon-bg);
  border: 1px solid var(--icon-border);
}
.icon svg{ width: 22px; height:22px; fill:none; stroke: currentColor; stroke-width: 2; opacity:.92; }

.split{
  display:grid; grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

.panel{
  border-radius: var(--radius);
  border:1px solid var(--card-border);
  background: var(--card-bg);
  padding: 18px;
  box-shadow: var(--shadow2);
}

ul.clean{
  margin: 0; padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}
ul.clean li{ margin: 8px 0; }

.pillrow{ display:flex; flex-wrap:wrap; gap:10px; margin-top: 14px; }
.pill{
  padding: 8px 10px;
  border-radius: 999px;
  border:1px solid var(--chip-border);
  background: var(--chip-bg);
  color: var(--muted2);
  font-size: 13px;
}
.pillrow a.pill{
  display:inline-flex;
  align-items:center;
  text-decoration:none;
}
.pillrow a.pill:hover{
  border-color: rgba(11,94,215,.35);
  color: var(--text);
}

.callout{
  border-radius: var(--radius);
  border: 1px solid rgba(11,94,215,.28);
  background: var(--card-bg);
  padding: 20px;
  box-shadow: var(--shadow);
}
.callout-head{
  display:flex; align-items:center; justify-content:space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.badge{
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted2);
  border: 1px solid var(--chip-border);
  background: var(--chip-bg);
}

/* Steps */
.steps{ display:grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.step{
  border-radius: 18px;
  border:1px solid var(--card-border);
  background: var(--card-bg);
  padding: 16px;
  position:relative;
  overflow:hidden;
  box-shadow: var(--shadow2);
}
.step:before{
  content:"";
  position:absolute; inset:-40px -40px auto auto;
  width: 120px; height:120px;
  background: radial-gradient(circle at 30% 30%, rgba(46,139,87,.18), transparent 62%);
  transform: rotate(18deg);
}
.step .num{
  font-family: var(--hfont);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 18px;
  color: var(--navy);
}
html[data-theme="dark"] .step .num{ color: rgba(242,244,247,.92); }
.step h3{
  margin: 10px 0 8px;
  font-family: var(--hfont);
  font-size: 15px;
  font-weight: 800;
}
.step p{ margin:0; color: var(--muted); font-size: 13.5px; line-height:1.6; }

/* FAQ */
.faq{ display:grid; grid-template-columns: 1fr 1fr; gap: 12px; }
details{
  border-radius: 16px;
  border:1px solid var(--card-border);
  background: var(--card-bg);
  padding: 14px 16px;
  box-shadow: var(--shadow2);
}
summary{
  cursor:pointer;
  list-style:none;
  font-weight: 750;
  letter-spacing:-0.01em;
  font-family: var(--hfont);
}
summary::-webkit-details-marker{ display:none; }
details p{ color: var(--muted); margin: 10px 0 0; line-height:1.6; font-size: 14px; }

/* Contact form */
.contact{ display:grid; grid-template-columns: 1fr .95fr; gap: 16px; align-items: start; }
form{ display:grid; gap: 12px; }
label{ font-size: 13px; color: var(--muted2); }
input, select, textarea{
  width:100%;
  padding: 12px 12px;
  border-radius: 14px;
  border:1px solid var(--line);
  background: var(--field);
  color: var(--text);
  outline:none;
  font-family: inherit;
}
input::placeholder, textarea::placeholder{ color: rgba(102,112,133,.75); }
html[data-theme="dark"] input::placeholder, html[data-theme="dark"] textarea::placeholder{ color: rgba(242,244,247,.48); }
textarea{ min-height: 120px; resize: vertical; }
.form-row{ display:grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.note{ font-size: 12.5px; color: var(--muted2); line-height: 1.6; margin-top: 8px; }
.mini{ font-size: 12.5px; color: var(--muted); line-height:1.6; }

/* =========================================================
   PRICING (Packages section)
   ========================================================= */

.pricing-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.pricing-title{ margin:0 0 10px; }
.pricing-lead{ margin:0; }

.pricing-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
  align-items: stretch;
}

.plan{
  border-radius: 26px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  padding: 22px;
  box-shadow: var(--shadow2);
  display:flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.plan:hover{
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.plan.featured{
  border-color: rgba(46,139,87,.35);
  box-shadow: var(--shadow);
  transform: translateY(-6px);
}

.plan-top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap: 12px;
  margin-bottom: 14px;
}
.plan-name{
  font-family: var(--hfont);
  font-weight: 900;
  font-size: 20px;
  letter-spacing:-0.015em;
}
.plan-sub{
  margin-top:6px;
  font-size: 13px;
  color: var(--muted2);
}
.plan-badge{
  display:inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted2);
  border: 1px solid var(--chip-border);
  background: var(--chip-bg);
  white-space:nowrap;
}
.plan-badge.green{
  border-color: rgba(46,139,87,.35);
  background: rgba(46,139,87,.12);
}

.plan-desc{
  margin: 10px 0 18px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.plan-fit{
  background: var(--panel);
  border:1px solid var(--line);
  padding:14px;
  border-radius: 18px;
  margin-bottom: 16px;
}
.fit-title{
  font-family: var(--hfont);
  font-weight: 800;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--muted2);
}
.fit-text{
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
}

.plan-block.plus{
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.block-title{
  font-family: var(--hfont);
  font-weight: 800;
  margin-bottom: 12px;
  font-size: 14px;
}

.plan-list{
  padding-left:18px;
  margin:0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}
.plan-list li{ margin-bottom:8px; }

.plan-actions{
  margin-top:auto;
  padding-top:18px;
}

.pricing-foot{
  margin-top: 16px;
  display:flex;
  justify-content:flex-end;
}
.pricing-note{
  max-width: 72ch;
  color: var(--muted2);
  font-size: 13px;
  line-height: 1.6;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 16px;
  padding: 12px 14px;
}

/* =========================================================
   FOOTER (solid background)
   ========================================================= */

footer{
  padding: 22px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted2);
  font-size: 13px;
  background: var(--section-solid) !important;
}
.foot{
  display:flex; justify-content:space-between; gap: 14px;
  flex-wrap: wrap;
  align-items:center;
}
.foot a{ color: var(--muted2); }
.foot a:hover{ color: var(--text); }

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }
  .grid-3{ grid-template-columns: 1fr; }
  .split{ grid-template-columns: 1fr; }
  .steps{ grid-template-columns: 1fr 1fr; }
  .faq{ grid-template-columns: 1fr; }
  .contact{ grid-template-columns: 1fr; }
  .pricing-grid{ grid-template-columns: 1fr; }
  .plan.featured{ transform:none; }
}

@media (max-width: 520px){
  .form-row{ grid-template-columns: 1fr; }
  .steps{ grid-template-columns: 1fr; }
}


/* =========================================================
   PACKAGES – Visual polish (accents + stronger lift on select)
   ========================================================= */

.plan{
  position: relative;
  cursor: pointer;
  will-change: transform;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

/* Accent bar */
.plan::after{
  content:"";
  position:absolute;
  left: 14px; right: 14px; top: 14px;
  height: 6px;
  border-radius: 999px;
  opacity: .9;
  pointer-events:none;
}

.plan.plan-essential::after{
  background: linear-gradient(90deg, rgba(11,94,215,.95), rgba(11,94,215,.20));
}
.plan.plan-advanced::after{
  background: linear-gradient(90deg, rgba(46,139,87,.95), rgba(46,139,87,.22));
}
.plan.plan-shield::after{
  background: linear-gradient(90deg, rgba(11,94,215,.85), rgba(46,139,87,.55));
}

/* Subtle tint per card (keeps your current text as-is) */
html[data-theme="dark"] .plan.plan-essential{
  background: linear-gradient(180deg, rgba(11,94,215,.10) 0%, rgba(242,244,247,.05) 24%);
}
html[data-theme="dark"] .plan.plan-advanced{
  background: linear-gradient(180deg, rgba(46,139,87,.10) 0%, rgba(242,244,247,.05) 24%);
}
html[data-theme="dark"] .plan.plan-shield{
  background: linear-gradient(180deg, rgba(11,94,215,.08) 0%, rgba(242,244,247,.05) 24%);
}

html[data-theme="light"] .plan.plan-essential{
  background: linear-gradient(180deg, rgba(11,94,215,.08) 0%, rgba(255,255,255,.92) 26%);
}
html[data-theme="light"] .plan.plan-advanced{
  background: linear-gradient(180deg, rgba(46,139,87,.08) 0%, rgba(255,255,255,.92) 26%);
}
html[data-theme="light"] .plan.plan-shield{
  background: linear-gradient(180deg, rgba(11,94,215,.06) 0%, rgba(255,255,255,.92) 26%);
}

/* Stronger lift: hover / focus / selected */
.plan:hover,
.plan:focus-within,
.plan.is-selected{
  transform: translateY(-12px) scale(1.012);
  box-shadow: var(--shadow);
  border-color: rgba(11,94,215,.35);
}

/* Keep featured emphasized but not “stuck” too high */
.plan.featured{
  border-color: rgba(46,139,87,.35);
}

/* Selected ring (clean on both themes) */
.plan.is-selected{
  outline: 3px solid rgba(11,94,215,.18);
  outline-offset: 3px;
}

/* Badge polish */
.plan-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(242,244,247,.06);
  color: var(--muted2);
  font-size: 12.5px;
  font-weight: 750;
  white-space: nowrap;
}
html[data-theme="light"] .plan-badge{
  background: rgba(255,255,255,.85);
}

/* Button alignment: full-width CTA inside each card */
.plan-actions .btn{
  width: 100%;
  justify-content: center;
}

/* Slightly more spacing at top since accent bar exists */
.plan-top{ margin-top: 6px; }

/* Mobile: reduce lift so it doesn't feel jumpy */
@media (max-width: 980px){
  .plan:hover,
  .plan:focus-within,
  .plan.is-selected{
    transform: translateY(-6px) scale(1.006);
  }
}


/* =========================================================
   VIDEO SECTION
   ========================================================= */

.video-section .lead{
  max-width: 900px;
}

.video-points{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin: 10px 0 20px;
}

.video-pill{
  display:inline-flex;
  align-items:center;
  padding: 10px 14px;
  border-radius: 999px;
  border:1px solid var(--chip-border);
  background: var(--chip-bg);
  color: var(--text);
  font-weight: 700;
  line-height: 1.35;
}

.video-frame{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 22px;
  border:1px solid var(--card-border);
  background: #000;
  box-shadow: var(--shadow2);
}

.video-frame iframe{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
  display:block;
}

@media (max-width: 640px){
  .video-pill{
    width: 100%;
    justify-content: flex-start;
  }
}


/* =========================================================
   HERO ALERT
   ========================================================= */
.hero-alert{
  margin: 0 0 14px;
  color: var(--text);
  font-weight: 800;
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.35;
  max-width: 44ch;
}
.video-sublead{
  margin: -6px 0 16px;
  color: var(--muted2);
  max-width: 78ch;
  line-height: 1.65;
}

/* =========================================================
   RISK / SCENARIOS / WARNING THEMES
   ========================================================= */
.risk-grid,
.scenario-grid,
.warning-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 16px;
  margin-top: 20px;
}

.risk-card,
.scenario-card,
.warning-card{
  border-radius: var(--radius2);
  border:1px solid var(--card-border);
  background: var(--card-bg);
  padding: 20px;
  box-shadow: var(--shadow2);
}

.risk-kpi{
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display:grid;
  place-items:center;
  font-family: var(--hfont);
  font-weight: 900;
  background: linear-gradient(135deg, rgba(11,94,215,.18), rgba(46,139,87,.14));
  border: 1px solid var(--icon-border);
  margin-bottom: 12px;
}

.risk-card h3,
.scenario-card h3,
.warning-card h3{
  margin: 0 0 10px;
  font-family: var(--hfont);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.01em;
}

.risk-card p,
.scenario-card p,
.warning-card p{
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

.exposure-calculator{
  margin-top: 20px;
  border-radius: var(--radius);
  border:1px solid rgba(11,94,215,.24);
  background: var(--card-bg);
  padding: 22px;
  box-shadow: var(--shadow);
}

.calc-copy h3{
  margin: 0 0 8px;
  font-family: var(--hfont);
  font-weight: 800;
}
.calc-copy p{
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.calc-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
  margin-top: 18px;
}

.calc-item{
  border-radius: 18px;
  border:1px solid var(--line);
  background: var(--panel);
  padding: 16px;
}

.calc-item strong{
  display:block;
  margin-bottom: 8px;
  font-family: var(--hfont);
  font-weight: 800;
}

.calc-item span{
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

.calc-cta{
  margin-top: 18px;
}

.scenario-badge{
  display:inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  border:1px solid var(--chip-border);
  background: var(--chip-bg);
  color: var(--muted2);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 12px;
}

.warning-callout{
  margin-top: 18px;
  border-radius: 18px;
  border:1px solid rgba(46,139,87,.28);
  background: var(--panel);
  padding: 16px 18px;
  color: var(--text);
  line-height: 1.6;
}

@media (max-width: 980px){
  .risk-grid,
  .scenario-grid,
  .warning-grid,
  .calc-grid{
    grid-template-columns: 1fr;
  }
}
