/* ===== SubsMax — static landing styles (derived from brand.css) ===== */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --ink:       #121A2F;
  --ink-soft:  #49546E;
  --ink-faint: #8A93A8;
  --line:      #E4EAF3;
  --line-soft: #EFF3F9;
  --surface:   #FFFFFF;
  --bg-cool:   #EEF3FB;

  --cyan:   #14BEE6;
  --blue:   #2C6BF0;
  --indigo: #5A3CC4;
  --grad:        linear-gradient(135deg, #16C2E8 0%, #2C6BF0 48%, #5A3CC4 100%);
  --grad-soft:   linear-gradient(135deg, #E7F8FD 0%, #EAF1FE 50%, #F0ECFC 100%);
  --grad-text:   linear-gradient(100deg, #16C2E8 0%, #3A78F2 50%, #6A4CD6 100%);

  --shadow-sm: 0 1px 2px rgba(18,26,47,.06), 0 2px 6px rgba(18,26,47,.05);
  --shadow-md: 0 8px 24px rgba(18,26,47,.10), 0 2px 6px rgba(18,26,47,.06);
  --shadow-lg: 0 24px 60px rgba(28,44,90,.18), 0 6px 18px rgba(18,26,47,.08);
  --shadow-brand: 0 14px 34px rgba(44,107,240,.34);
}

* { box-sizing: border-box; }

html, body { margin: 0; background: #fff; }

body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; }

/* Full-bleed page: section backgrounds span the whole viewport, content is
   centered inside each section via inner max-widths. */
.sm-page { width: 100%; margin: 0; background: #fff; overflow-x: hidden; }
.sm-hero-wrap { height: auto; }

h1, h2, h3, p { margin: 0; }

/* ---------- shared atoms ---------- */
.sm-grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sm-wordmark {
  display: flex; align-items: center; gap: 11px;
  font-weight: 800; font-size: 22px; letter-spacing: -.02em; color: var(--ink);
}
.sm-wordmark img { width: 34px; height: 34px; display: block; }
.sm-wordmark b { font-weight: 800; }

/* nav */
.sm-nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.sm-nav-links { display: flex; align-items: center; gap: 30px; }
.sm-nav-links a {
  font-size: 15px; font-weight: 600; color: var(--ink-soft);
  text-decoration: none; transition: color .15s; white-space: nowrap;
}
.sm-nav-links a:hover { color: var(--ink); }
.sm-nav-actions { display: flex; align-items: center; gap: 12px; }

/* buttons */
.sm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: inherit; font-weight: 700; font-size: 16px; line-height: 1;
  border: 0; cursor: pointer; white-space: nowrap; text-decoration: none;
  border-radius: 999px; padding: 16px 26px; transition: transform .15s, box-shadow .15s, background .15s;
}
.sm-btn:active { transform: translateY(1px); }
.sm-btn-primary { background: var(--grad); color: #fff; box-shadow: var(--shadow-brand); }
.sm-btn-primary:hover { box-shadow: 0 18px 40px rgba(44,107,240,.44); }
.sm-btn-ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.sm-btn-ghost:hover { box-shadow: inset 0 0 0 1.5px #C9D6EC; }
.sm-btn-dark { background: rgba(255,255,255,.10); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.22); }
.sm-btn-dark:hover { background: rgba(255,255,255,.16); }
.sm-btn-sm { padding: 11px 18px; font-size: 14px; }

/* eyebrow pill */
.sm-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 14px; font-weight: 700; letter-spacing: .01em;
  padding: 8px 15px 8px 12px; border-radius: 999px; white-space: nowrap;
  background: var(--bg-cool); color: var(--blue);
  box-shadow: inset 0 0 0 1px rgba(44,107,240,.14);
}
.sm-eyebrow .sm-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }

/* floating sticker */
.sm-sticker {
  position: absolute; display: inline-flex; align-items: center; gap: 9px;
  font-size: 15px; font-weight: 700; color: var(--ink);
  padding: 11px 17px; border-radius: 16px; background: #fff;
  box-shadow: var(--shadow-md); white-space: nowrap;
}
.sm-sticker .sm-ico {
  width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; flex: 0 0 auto;
}

/* animated dashed flow lines */
@keyframes smDash { to { stroke-dashoffset: -24; } }

/* ============================================================= HERO */
.hero { background: #fff; min-height: 820px; position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: var(--grad-soft); opacity: .7; }
.hero-nav { position: relative; padding: clamp(20px, 4vw, 34px) clamp(20px, 5vw, 64px) 0; }
.hero-center { position: relative; text-align: center; padding: clamp(48px, 7vw, 70px) clamp(20px, 5vw, 64px) 0; }
.hero-h1 { margin: 26px auto 0; max-width: 880px; font-size: clamp(34px, 7vw, 70px); line-height: 1.04; font-weight: 800; letter-spacing: -.035em; }
.hero-sub { margin: 26px auto 0; max-width: 560px; font-size: clamp(16px, 2.2vw, 19px); line-height: 1.5; font-weight: 500; color: var(--ink-soft); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 34px; }
.hero-trust { display: flex; gap: 9px; justify-content: center; align-items: center; margin-top: 22px; font-size: 14px; font-weight: 600; color: var(--ink-faint); text-align: center; }
.hero-chart { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; }
/* round wave nodes overlaid on the (horizontally stretched) chart; `bottom` = 190 − cy
   of the original SVG point, since the chart is 190px tall, bottom-anchored, unscaled vertically */
.hero-dot { position: absolute; width: 8px; height: 8px; border-radius: 50%; transform: translate(-50%, 50%); pointer-events: none; }
.hero-endnode { position: absolute; right: max(46px, calc(50% - 698px)); bottom: 158px; display: flex; align-items: center; gap: 12px; }
.hero-endcard { background: #fff; border-radius: 14px; padding: 9px 15px; box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 9px; }
.hero-endcard .ec-ico { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; background: var(--bg-cool); color: var(--blue); }
.hero-leafcard { position: absolute; left: max(76px, calc(50% - 668px)); bottom: 60px; display: flex; align-items: center; gap: 11px; background: #fff; border-radius: 14px; padding: 9px 16px 9px 11px; box-shadow: var(--shadow-md); }
.hero-leafcard .lf-ico { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--bg-cool); color: var(--blue); }

/* ============================================================= SECTION HEAD */
.section { padding: clamp(64px, 8vw, 104px) clamp(20px, 5vw, 64px); }
.sec-white { background: #fff; }
.sec-cool { background: var(--bg-cool); }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto; }
.sec-eyebrow { font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.sec-title { margin-top: 14px; font-size: clamp(30px, 5vw, 46px); line-height: 1.05; font-weight: 800; letter-spacing: -.03em; }
.sec-sub { margin: 16px auto 0; max-width: 560px; font-size: clamp(16px, 2.2vw, 18px); line-height: 1.5; font-weight: 500; color: var(--ink-soft); }
.sec-cta { display: flex; justify-content: center; margin-top: 48px; }

/* ============================================================= STEPS */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 56px auto 0; max-width: 1152px; }
.step-card { position: relative; background: #fff; border-radius: 22px; padding: 24px; box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); }
.step-top { display: flex; align-items: center; gap: 11px; margin-bottom: 18px; }
.step-num { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--grad); color: #fff; font-size: 17px; font-weight: 800; box-shadow: var(--shadow-brand); }
.step-tag { font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }
.step-mock { height: 112px; display: flex; align-items: center; padding: 14px; border-radius: 14px; background: var(--bg-cool); margin-bottom: 18px; }
.step-card h3 { font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.step-card p { margin-top: 8px; font-size: 14.5px; line-height: 1.5; font-weight: 500; color: var(--ink-soft); }

/* mock: link */
.mk { width: 100%; }
.mk-url { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 11px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.mk-url .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); flex: 0 0 auto; }
.mk-url span { font-size: 13px; font-weight: 600; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-tabs { display: flex; gap: 6px; margin-top: 8px; }
.mk-tab { font-size: 11.5px; font-weight: 700; padding: 5px 9px; border-radius: 7px; }
.mk-tab.on { background: #fff; color: var(--blue); box-shadow: var(--shadow-sm); }
.mk-tab.off { color: var(--ink-faint); box-shadow: inset 0 0 0 1px var(--line); }

/* mock: launch */
.mk-launch { width: 100%; }
.mk-launch .btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 0; border-radius: 11px; background: var(--grad); color: #fff; font-size: 13.5px; font-weight: 700; box-shadow: var(--shadow-brand); }
.mk-bar { margin-top: 12px; height: 7px; border-radius: 5px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.mk-bar > i { display: block; width: 68%; height: 100%; border-radius: 5px; background: var(--grad); }
.mk-launch .cap { margin-top: 7px; font-size: 11.5px; font-weight: 600; color: var(--ink-faint); }

/* mock: result */
.mk-result { display: flex; align-items: flex-end; justify-content: space-between; width: 100%; }
.mk-bars { display: flex; align-items: flex-end; gap: 6px; height: 56px; }
.mk-bars span { width: 9px; border-radius: 4px; background: var(--grad); }
.mk-result .big { font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); text-align: right; }
.mk-result .small { font-size: 11.5px; font-weight: 600; color: #1F9D57; text-align: right; }

/* ============================================================= COMPARE */
.cmp-stickers { max-width: 920px; margin: 38px auto 0; display: flex; justify-content: space-between; align-items: center; padding: 0 2px; }
.cmp-pill { display: inline-flex; align-items: center; gap: 9px; padding: 10px 17px; border-radius: 16px; background: #fff; box-shadow: var(--shadow-md); font-size: 15px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.cmp-table { max-width: 920px; margin: 12px auto 0; background: #fff; border-radius: 24px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line), 0 18px 44px -24px rgba(28, 44, 90, .20), 0 4px 12px -6px rgba(18, 26, 47, .06); }
.cmp-hrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.cmp-h-left { padding: 18px 28px; font-size: 12.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); border-bottom: 1px solid var(--line); }
.cmp-h-right { display: flex; align-items: center; gap: 9px; padding: 15px 28px; border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); }
.cmp-h-right img { width: 24px; height: 24px; }
.cmp-h-right span { font-size: 15px; font-weight: 800; letter-spacing: .02em; white-space: nowrap; }
.cmp-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.cmp-row.alt { background: #F7F9FC; }
.cmp-cell { display: flex; align-items: center; gap: 12px; padding: 20px 28px; min-width: 0; }
.cmp-cell.right { border-left: 1px solid var(--line); }
.cmp-x { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #FBEDF0; color: #C2425A; flex: 0 0 auto; }
.cmp-c { width: 23px; height: 23px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; flex: 0 0 auto; }
.cmp-pain { font-size: 15.5px; font-weight: 600; color: var(--ink-soft); min-width: 0; overflow-wrap: anywhere; }
.cmp-fix { font-size: 15.5px; font-weight: 700; color: var(--ink); min-width: 0; overflow-wrap: anywhere; }

/* ============================================================= FAQ */
.faq-list { max-width: 820px; margin: 52px auto 0; }
.faq-item { background: #fff; border-radius: 18px; margin-bottom: 10px; box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); overflow: hidden; }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; background: none; border: 0; cursor: pointer; font-family: inherit; text-align: left; }
.faq-q span.q { font-size: 16.5px; font-weight: 700; color: var(--ink); }
.faq-toggle { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-cool); color: var(--blue); flex: 0 0 auto; transition: all .18s; }
.faq-item.open .faq-toggle { background: var(--grad); color: #fff; }
.faq-a { padding: 0 24px 20px; font-size: 15.5px; line-height: 1.65; font-weight: 500; color: var(--ink-soft); display: none; }
.faq-item.open .faq-a { display: block; }
.faq-toggle .i-minus { display: none; }
.faq-item.open .faq-toggle .i-plus { display: none; }
.faq-item.open .faq-toggle .i-minus { display: block; }

/* ============================================================= FINAL CTA */
.cta { position: relative; overflow: hidden; background: var(--grad-soft); padding: clamp(72px, 10vw, 120px) clamp(20px, 5vw, 64px); }
.cta-glow1 { position: absolute; top: -100px; right: 80px; width: 440px; height: 440px; border-radius: 50%; background: radial-gradient(circle, rgba(22,194,232,.22), transparent 68%); filter: blur(16px); pointer-events: none; }
.cta-glow2 { position: absolute; bottom: -120px; left: 40px; width: 400px; height: 400px; border-radius: 50%; background: radial-gradient(circle, rgba(90,60,196,.18), transparent 68%); filter: blur(16px); pointer-events: none; }
.cta-inner { position: relative; text-align: center; max-width: 720px; margin: 0 auto; }
.cta-title { font-size: clamp(32px, 6vw, 54px); line-height: 1.05; font-weight: 800; letter-spacing: -.035em; color: var(--ink); }
.cta-sub { margin: 22px auto 0; max-width: 520px; font-size: clamp(16px, 2.2vw, 18px); line-height: 1.55; font-weight: 500; color: var(--ink-soft); }
.cta-btns { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 36px; }
.cta-marks { display: flex; flex-wrap: wrap; gap: 14px 24px; justify-content: center; margin-top: 26px; font-size: 14px; font-weight: 700; color: var(--ink-faint); }
.cta-marks span { display: inline-flex; align-items: center; gap: 7px; }

/* ============================================================= FOOTER */
.footer { background: #fff; padding: 64px clamp(20px, 5vw, 64px) 40px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 40px; max-width: 1120px; margin: 0 auto; padding-bottom: 48px; }
.footer .lead-text { margin-top: 16px; font-size: 14.5px; font-weight: 500; color: var(--ink-soft); line-height: 1.6; max-width: 240px; }
.footer-col-title { font-size: 12.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 16px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 14.5px; font-weight: 600; color: var(--ink-soft); text-decoration: none; transition: color .14s; }
.footer-col a:hover { color: var(--ink); }
.footer-col a.tg { color: var(--blue); }
.footer-pay { display: flex; gap: 9px; margin-bottom: 20px; }
.footer-pay span { display: inline-flex; align-items: center; justify-content: center; padding: 6px 11px; border-radius: 9px; font-size: 13px; font-weight: 800; letter-spacing: .06em; color: #fff; }
.footer-legal { display: flex; flex-direction: column; gap: 7px; }
.footer-legal span { font-size: 12.5px; font-weight: 600; color: var(--ink-faint); }
.footer-bottom { max-width: 1120px; margin: 0 auto; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.footer-bottom span { font-size: 13.5px; font-weight: 600; color: var(--ink-faint); }

@media (prefers-reduced-motion: no-preference) {
  .sm-flow { animation: smDash 1.4s linear infinite; }
}

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

/* Ultrawide — one measured step up so the composition fills big monitors
   instead of drowning in side gutters (fonts/containers otherwise cap out
   ~1280px). Decorations track the centered column via calc(50% - K). */
@media (min-width: 1600px) {
  /* taller hero so the enlarged headline keeps the CTA + trust line clear of the growth wave */
  .hero      { min-height: 925px; }
  .hero-h1   { font-size: 80px; }
  .hero-sub  { font-size: 20px; max-width: 600px; }
  .sec-title { font-size: 52px; }
  .steps     { max-width: 1280px; }
  .cmp-stickers,
  .cmp-table { max-width: 1040px; }
  .faq-list  { max-width: 900px; }
}

/* Tablet & below — the hero's floating decorations are pinned to fixed 1280
   coordinates, so below that width we drop them and let the chart sit inline. */
@media (max-width: 1100px) {
  .hero { min-height: 0; }
  .hero-center { padding-bottom: clamp(40px, 6vw, 64px); }
  /* hide only the 4 top stickers (they overlap the heading); keep the two
     bottom cards that sit on the growth wave */
  .sm-sticker { display: none; }
  .hero-chart { position: static; display: block; width: 100%; margin-top: 18px; }
  /* chart is now in normal flow at the bottom of the hero, so the two cards
     (anchored by `bottom`) still land on the wave — keep their vertical values,
     only pull horizontal offsets in a bit so nothing overflows on small screens */
  .hero-endnode { right: clamp(10px, 3vw, 46px); }
  .hero-leafcard { left: clamp(10px, 3vw, 76px); }
}

/* Nav: hide the inline link list once it no longer fits */
@media (max-width: 920px) {
  .sm-nav-links { display: none; }
}

/* Footer: 2 columns on tablet */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* Steps stack into a single column */
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; max-width: 440px; }
}

/* Phones */
@media (max-width: 600px) {
  .sm-wordmark { font-size: 20px; }
  .sm-wordmark img { width: 30px; height: 30px; }

  /* comparison: tighter cells so two columns still read on small screens */
  .cmp-stickers { margin-top: 28px; }
  .cmp-pill { font-size: 13px; padding: 8px 13px; }
  .cmp-h-left,
  .cmp-h-right { padding: 13px 14px; }
  .cmp-h-right span { font-size: 13px; }
  .cmp-cell { padding: 15px 13px; gap: 9px; }
  .cmp-pain,
  .cmp-fix { font-size: 13.5px; }

  /* footer: single column */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-bottom: 36px; }
  .footer-bottom { flex-direction: column; gap: 8px; align-items: flex-start; }
}

/* Compact nav buttons on small phones */
@media (max-width: 480px) {
  .sm-nav-actions .sm-btn-ghost { display: none; }
  .sm-nav-actions .sm-btn { padding: 9px 14px; font-size: 13px; }
}

/* Extra-small screens (down to 320px) */
@media (max-width: 360px) {
  .hero-h1 { font-size: 30px; }
  .hero-cta .sm-btn,
  .cta-btns .sm-btn { width: 100%; }
  .section { padding-left: 16px; padding-right: 16px; }
  .cmp-cell { padding: 13px 10px; }
  .cmp-pain,
  .cmp-fix { font-size: 12.5px; }
}
