/* RiverMeadow Premium Enablement, tiers-only variant.
   Tokens come from the RiverMeadow corporate Brand Kit (Archivo, #0a76fd / #66aaff / #68d7b6, radius 8/16/24). */
:root {
  --primary: #0a76fd;
  --primary-d: #0862dc;
  --primary-dd: #0757cc;
  --secondary: #66aaff;
  --accent: #68d7b6;
  --accent-d: #1f9d86;
  --cyan: #17a9b5;
  --ink: #0b2545;
  --body: #33445c;
  --muted: #587091;
  --surface: #f6fafd;
  --tint: #eef6ff;
  --tint-teal: #eefaf6;
  --border: #dde7f5;
  --white: #fff;
  --danger: #b3261e;
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 24px;
  --shadow: 0 12px 36px rgba(10, 38, 84, .09);
  --shadow-sm: 0 4px 14px rgba(10, 38, 84, .07);
  --grad: linear-gradient(112deg, #0757cc 0%, #0862dc 30%, #0a76fd 62%, #17a9b5 100%);
  --font: Archivo, "Helvetica Neue", Arial, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.5;
  color: var(--body); background: var(--white); -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
img { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font); color: var(--ink); font-weight: 800; line-height: 1.14; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--primary-d); }
.wrap { width: min(1160px, 100% - 48px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: var(--ink); padding: 10px 14px; border-radius: var(--r-sm); z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid rgba(10, 118, 253, .45); outline-offset: 3px; border-radius: 6px; }

.eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--primary-d); margin-bottom: 14px; }
.eyebrow-on-dark { color: #fff; opacity: .95; }
.kicker { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 700 16px/1 var(--font); padding: 15px 24px; border-radius: 14px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-primary { background: var(--primary-d); color: #fff; box-shadow: 0 8px 20px rgba(8, 98, 220, .28); }
.btn-primary:hover:not([disabled]) { background: var(--primary-dd); box-shadow: 0 12px 26px rgba(8, 98, 220, .34); }
.btn-outline { background: #fff; color: var(--primary-d); border-color: var(--primary-d); }
.btn-outline:hover:not([disabled]) { background: var(--tint); }
.btn-ghost { background: transparent; color: var(--muted); border-color: transparent; padding-inline: 14px; }
.btn-ghost:hover:not([disabled]) { color: var(--ink); background: var(--surface); }
.btn-light { background: #fff; color: var(--primary-dd); box-shadow: 0 10px 26px rgba(4, 30, 80, .25); }
.btn-light:hover { box-shadow: 0 14px 32px rgba(4, 30, 80, .32); }
.btn-lg { padding: 18px 28px; font-size: 17px; }
.btn-sm { padding: 11px 18px; font-size: 14.5px; border-radius: 12px; }
.link-on-dark { color: #fff; font-weight: 600; text-underline-offset: 4px; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid var(--border); }
.nav-in { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 30px; width: auto; display: block; }
.nav-tag { margin-left: auto; font-size: 13.5px; font-weight: 600; color: var(--muted); letter-spacing: .01em; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; background: var(--grad); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .16) 1.6px, transparent 1.8px);
  background-size: 30px 30px;
  -webkit-mask-image: linear-gradient(100deg, transparent 35%, #000 100%); mask-image: linear-gradient(100deg, transparent 35%, #000 100%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.3fr .9fr; gap: 56px; align-items: center; padding: 76px 0 92px; }
.hero h1 { color: #fff; font-size: clamp(36px, 5.2vw, 58px); font-weight: 800; line-height: 1.06; letter-spacing: -.02em; }
.hero .lede { margin-top: 22px; font-size: 20px; line-height: 1.5; max-width: 34em; }
.hero-cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 20px 28px; align-items: center; }
.hero-meta { margin-top: 18px; font-size: 14.5px; opacity: .95; }

.glance { background: #fff; color: var(--body); border-radius: var(--r-lg); padding: 28px; box-shadow: 0 24px 60px rgba(3, 25, 70, .35); }
.glance h2 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--primary-d); font-weight: 700; margin-bottom: 18px; }
.glance ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.glance li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; }
.glance .n { width: 34px; height: 34px; border-radius: 50%; background: var(--primary-d); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.glance li:last-child .n { background: var(--accent-d); }
.glance strong { display: block; color: var(--ink); font-size: 16.5px; line-height: 1.25; }
.glance span.d { display: block; font-size: 14px; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.glance-foot { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14.5px; color: var(--ink); }
.ck { width: 20px; height: 20px; flex: none; stroke: var(--accent-d); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Sections ---------- */
.sec { padding: 88px 0; }
.sec-alt { background: var(--surface); }
.sec h2 { font-size: clamp(28px, 3.6vw, 40px); }
.sec-sub { margin-top: 14px; font-size: 18px; max-width: 42em; color: var(--body); }

.who-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: start; }
.who p.big { font-size: 19px; line-height: 1.55; margin-top: 18px; }
.who p.big + p.big { margin-top: 14px; }
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.points li { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); padding: 18px 20px; box-shadow: var(--shadow-sm); }
.points strong { display: block; color: var(--ink); font-size: 17px; }
.points span { display: block; font-size: 15px; color: var(--muted); margin-top: 2px; }
.points .ck { margin-top: 2px; width: 24px; height: 24px; }
.next-up { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }
.next-up p { font-weight: 600; color: var(--ink); }

/* ---------- Program sizes (tiers-only showcase) ---------- */
.sizes { padding: 88px 0 96px; background: linear-gradient(180deg, var(--surface) 0%, #fff 100%); }
.sizes-head { max-width: 720px; margin: 0 auto 8px; text-align: center; }
.sizes-head h2 { font-size: clamp(28px, 3.6vw, 42px); }
.sizes-head p { margin-top: 12px; font-size: 18px; }
.sizes .wrap > .eyebrow { text-align: center; }

.rail { position: relative; display: flex; justify-content: space-between; margin: 44px 0 8px; padding: 0 4px; }
.rail-track { position: absolute; left: 16px; right: 16px; top: 7px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--primary-dd), var(--primary), var(--cyan), var(--accent-d)); }
.rail-pt { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.rail-dot { width: 15px; height: 15px; border-radius: 50%; background: #fff; border: 3px solid var(--primary-d); flex: none; }
.rail-label { font-size: 12px; font-weight: 700; color: var(--muted); text-align: center; max-width: 110px; line-height: 1.3; }

.tiers { margin-top: 40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tier { position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); padding: 26px 24px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s; }
.tier:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tier-ico { width: 34px; height: 26px; margin-bottom: 14px; }
.tier-ico svg { width: 100%; height: 100%; display: block; }
.tier h3 { font-size: 26px; }
.tier .estate { margin-top: 6px; font-weight: 700; color: var(--primary-d); font-size: 16px; }
.tier dl { margin: 18px 0 0; display: grid; gap: 12px; }
.tier dt { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tier dd { margin: 2px 0 0; font-size: 17px; font-weight: 700; color: var(--ink); }
.tier[data-tier="Starter"] { border-top: 4px solid var(--primary-dd); }
.tier[data-tier="Starter"] .tier-ico { color: var(--primary-dd); }
.tier[data-tier="Starter"] .estate { color: var(--primary-dd); }
.tier[data-tier="Small"] { border-top: 4px solid var(--primary-d); }
.tier[data-tier="Small"] .tier-ico { color: var(--primary-d); }
.tier[data-tier="Medium"] { border-top: 4px solid var(--primary); }
.tier[data-tier="Medium"] .tier-ico { color: var(--primary); }
.tier[data-tier="Large"] { border-top: 4px solid var(--cyan); }
.tier[data-tier="Large"] .tier-ico { color: var(--cyan); }
.tier[data-tier="Large"] .estate { color: var(--cyan); }

.custom-banner { margin-top: 22px; border-radius: var(--r-lg); background: var(--grad); color: #fff; padding: 24px 28px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.custom-banner .ck { stroke: #fff; flex: none; }
.custom-banner p { margin: 0; font-size: 16.5px; max-width: 48em; line-height: 1.45; }
.custom-banner strong { font-weight: 800; }

.mini-label { margin-top: 34px; }
.mini-steps { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.mini-steps li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 14px 16px; font-weight: 700; color: var(--ink); font-size: 15.5px; display: flex; gap: 10px; align-items: center; }
.mini-steps li:last-child { background: var(--tint-teal); border-color: #cdeee3; }
.mini-steps .ck { width: 18px; height: 18px; }

.price-line { margin-top: 18px; font-size: 20px; font-weight: 700; color: var(--ink); display: flex; gap: 10px; align-items: center; }
.price-line .ck { width: 22px; height: 22px; }
.tier-note { margin-top: 18px; display: grid; gap: 8px; }
.tier-note p.small { font-size: 15.5px; color: var(--body); max-width: 54em; }

/* ---------- Lead capture (ask) ---------- */
.ask { margin-top: 44px; border-radius: var(--r-lg); border: 2px solid var(--primary-d); padding: 34px; background: #fff; box-shadow: var(--shadow); }
.ask h3 { font-size: clamp(26px, 3.2vw, 34px); }
.ask .sub { margin-top: 14px; font-size: 17.5px; max-width: 38em; }
.ask .share { margin-top: 16px; }
.lead-form { margin-top: 8px; }
.field { display: grid; gap: 7px; margin-top: 18px; }
.field label { font-weight: 600; font-size: 14.5px; color: var(--ink); }
.field .opt { color: var(--muted); font-weight: 500; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="date"] {
  font: 500 16.5px/1.2 var(--font); color: var(--ink); background: #fff; border: 2px solid var(--border); border-radius: 12px; padding: 14px 16px; width: 100%; max-width: 100%; transition: border-color .18s, box-shadow .18s;
}
.field input:hover { border-color: var(--secondary); }
.field input:focus { outline: none; border-color: var(--primary-d); box-shadow: 0 0 0 4px rgba(10, 118, 253, .16); }
.field input[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(179, 38, 30, .1); }
.field .err { color: var(--danger); font-size: 13.5px; font-weight: 600; min-height: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.inline-field { max-width: 380px; }
.note { margin-top: 14px; padding: 12px 16px; border-radius: 12px; background: var(--tint); color: var(--ink); font-size: 15px; border-left: 4px solid var(--primary); }
.note.teal { background: var(--tint-teal); border-left-color: var(--accent-d); }
.cta-stack { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: stretch; }
.cta-opt { display: flex; flex-direction: column; gap: 10px; }
.cta-opt .btn { width: 100%; }
.cta-opt p { font-size: 14.5px; color: var(--muted); line-height: 1.45; }
.form-status { margin-top: 18px; min-height: 22px; font-size: 15.5px; font-weight: 600; }
.form-status.err { color: var(--danger); }
.form-status.ok { color: #0f6f5c; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.done { margin-top: 24px; border-radius: var(--r-md); padding: 24px 26px; background: var(--tint-teal); border: 1px solid #b9e8d9; display: grid; gap: 12px; }
.done h4 { font-size: 22px; display: flex; align-items: center; gap: 10px; }
.done .btn { justify-self: start; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .5); border-top-color: #fff; animation: spin .8s linear infinite; }
.btn-outline .spin { border-color: rgba(8, 98, 220, .3); border-top-color: var(--primary-d); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Program details ---------- */
.steps { margin-top: 40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { background: #fff; border: 1px solid var(--border); border-top: 4px solid var(--primary); border-radius: var(--r-md); padding: 24px 22px 26px; box-shadow: var(--shadow-sm); }
.step:last-child { border-top-color: var(--accent-d); background: var(--tint-teal); }
.step .n { font-size: 13px; font-weight: 800; letter-spacing: .12em; color: var(--primary-d); }
.step:last-child .n { color: var(--accent-d); }
.step h3 { font-size: 21px; margin: 10px 0 10px; }
.step p { font-size: 15.5px; line-height: 1.5; }
.callout { margin-top: 26px; padding: 20px 24px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--border); border-left: 5px solid var(--primary); font-size: 16px; }
.callout strong { color: var(--ink); }

.hc { margin-top: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.hc-box { border-radius: var(--r-md); padding: 26px 28px; border: 1px solid var(--border); background: #fff; }
.hc-box.in { background: var(--tint-teal); border-color: #b9e8d9; }
.hc-box h3 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; }
.hc-box.in h3 { color: var(--accent-d); }
.hc-box.out h3 { color: var(--muted); }
.hc-box ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.hc-box li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.hc-box li .dash { width: 14px; height: 2.5px; background: var(--muted); border-radius: 2px; flex: none; margin-top: 11px; margin-inline: 3px; }
.fineprint { margin-top: 22px; font-size: 14.5px; color: var(--muted); max-width: 62em; line-height: 1.55; }

.faq { max-width: 860px; margin-top: 32px; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 700; font-size: 17.5px; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; color: var(--primary-d); font-weight: 500; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details[open] { box-shadow: var(--shadow-sm); border-color: var(--secondary); }
.faq .ans { padding: 0 0 22px; font-size: 16.5px; line-height: 1.6; }

.final { background: var(--grad); color: #fff; padding: 76px 0; text-align: center; }
.final h2 { color: #fff; font-size: clamp(30px, 4vw, 44px); }
.final p { margin: 16px auto 0; max-width: 34em; font-size: 19px; }
.final .btn { margin-top: 28px; }

.foot { background: var(--ink); color: #c7d5ea; padding: 40px 0 96px; font-size: 14.5px; }
.foot .wrap { display: grid; gap: 10px; }
.foot strong { color: #fff; font-size: 16px; }
.foot a { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding: 56px 0 64px; }
  .who-grid { grid-template-columns: 1fr; gap: 32px; }
  .steps, .tiers { grid-template-columns: repeat(2, 1fr); }
  .mini-steps { grid-template-columns: repeat(2, 1fr); }
  .hc { grid-template-columns: 1fr; }
  .nav-tag { display: none; }
  .nav-in .btn { margin-left: auto; }
}
@media (max-width: 720px) {
  .wrap { width: min(1160px, 100% - 32px); }
  .sec, .sizes { padding: 60px 0; }
  .tiles.cols-2 { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .cta-stack { grid-template-columns: 1fr; }
  .ask { padding: 26px 20px; }
  .steps, .tiers { grid-template-columns: 1fr; }
  .rail-label { display: none; }
  .rail { margin-bottom: 24px; }
  .brand img { height: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
