/* ============================================================
   Finmerce Landing Page Stylesheet
   Design System: Liquid Glass & Paper Data
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #f0f2f5;
  --surface:   #ffffff;
  --surface-2: #f7f8f9;
  --surface-3: #eef1f4;
  --ink:       #0f1115;
  --ink-2:     #5b606b;
  --ink-3:     #969ba5;
  --line:      #e4e7ea;
  --line-2:    #edf0f2;

  --green:     #1f7a4d;
  --green-ink: #176038;
  --green-bg:  #eaf4ee;
  --red:       #c0473a;
  --red-bg:    #faecea;
  --amber:     #b07d1e;
  --amber-bg:  #f7efdc;
  --blue:      #3a5db0;
  --blue-ink:  #2f4c90;
  --blue-bg:   #e8edf8;

  /* Marketplace colors */
  --p-wb:      #6a4d8f;
  --p-wb-bg:   #f0ebf6;
  --p-ozon:    #2f6fb0;
  --p-ozon-bg: #e8f0f8;
  --p-ya:      #a07410;
  --p-ya-bg:   #f7efda;

  --r-s: 8px;
  --r-m: 12px;
  --r-l: 18px;
  --r-xl: 24px;
  --r-island: 28px;
  --r-island-s: 18px;

  --shadow-s: 0 1px 3px rgba(15,17,21,.04), 0 1px 2px rgba(15,17,21,.02);
  --shadow-m: 0 4px 20px rgba(15,17,21,.06), 0 1px 4px rgba(15,17,21,.03);
  --shadow-l: 0 12px 36px rgba(15,17,21,.08), 0 4px 12px rgba(15,17,21,.04);
  --shadow-pop: 0 20px 60px rgba(15,17,21,.16), 0 4px 16px rgba(15,17,21,.08);

  /* Liquid Glass */
  --glass:        rgba(255,255,255,.68);
  --glass-strong: rgba(255,255,255,.86);
  --glass-2:      rgba(255,255,255,.45);
  --glass-border: rgba(255,255,255,.76);
  --glass-blur:   saturate(180%) blur(22px);
  --glass-shadow: 0 16px 48px rgba(15,17,21,.10), 0 4px 12px rgba(15,17,21,.04);
  --glass-inset:  inset 0 1px 0 rgba(255,255,255,.90), inset 0 0 0 1px rgba(255,255,255,.24);

  --chip:         #0f1115;
  --chip-ink:     #ffffff;
  --chip-hover:   #23262d;
  --glass-active: rgba(255,255,255,.85);

  --sans: 'Golos Text', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

html[data-theme="dark"] {
  --bg:        #0a0c10;
  --surface:   #141820;
  --surface-2: #1c222c;
  --surface-3: #242c38;
  --ink:       #f2f4f8;
  --ink-2:     #a0a8b6;
  --ink-3:     #687282;
  --line:      #262e3b;
  --line-2:    #1c222c;

  --green:     #4eb583;
  --green-ink: #6ee7ad;
  --green-bg:  rgba(31,122,77,.22);
  --red:       #e67e6f;
  --red-bg:    rgba(192,71,58,.22);
  --amber:     #d9a646;
  --amber-bg:  rgba(176,125,30,.22);
  --blue:      #688ee6;
  --blue-ink:  #8faef6;
  --blue-bg:   rgba(58,93,176,.22);

  --p-wb:      #aa8cd4;
  --p-wb-bg:   rgba(106,77,143,.25);
  --p-ozon:    #63a0e6;
  --p-ozon-bg: rgba(47,111,176,.25);
  --p-ya:      #d4aa48;
  --p-ya-bg:   rgba(160,116,16,.25);

  --shadow-s: 0 1px 3px rgba(0,0,0,.3);
  --shadow-m: 0 4px 20px rgba(0,0,0,.4);
  --shadow-l: 0 12px 36px rgba(0,0,0,.5);
  --shadow-pop: 0 20px 60px rgba(0,0,0,.65);

  --glass:        rgba(20,24,32,.72);
  --glass-strong: rgba(26,32,44,.88);
  --glass-2:      rgba(20,24,32,.50);
  --glass-border: rgba(255,255,255,.12);
  --glass-shadow: 0 16px 48px rgba(0,0,0,.45);
  --glass-inset:  inset 0 1px 0 rgba(255,255,255,.16), inset 0 0 0 1px rgba(255,255,255,.05);

  --chip:         #f2f4f8;
  --chip-ink:     #0c0e13;
  --chip-hover:   #ffffff;
  --glass-active: rgba(255,255,255,.14);
}

html {
  height: 100%;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  font-family: var(--sans);
  background: transparent;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 15px;
  line-height: 1.5;
  min-height: 100%;
  overflow-x: hidden;
  position: relative;
}

.num {
  font-family: var(--mono);
  font-feature-settings: "tnum" 1;
  letter-spacing: -0.01em;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--green) 58%, transparent);
  outline-offset: 3px;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- Ambient Background Gradient Spots ---------- */
.ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-spot-1 {
  position: absolute;
  top: -10%;
  left: 15%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(31,122,77,0.14) 0%, rgba(31,122,77,0) 70%);
  filter: blur(60px);
}

.ambient-spot-2 {
  position: absolute;
  top: 15%;
  right: -5%;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47,111,176,0.13) 0%, rgba(47,111,176,0) 70%);
  filter: blur(70px);
}

.ambient-spot-3 {
  position: absolute;
  top: 55%;
  left: -10%;
  width: 650px;
  height: 650px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(106,77,143,0.10) 0%, rgba(106,77,143,0) 70%);
  filter: blur(65px);
}

.ambient-spot-4 {
  position: absolute;
  bottom: 5%;
  right: 10%;
  width: 750px;
  height: 750px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(176,125,30,0.11) 0%, rgba(176,125,30,0) 70%);
  filter: blur(75px);
}

/* ---------- Layout Containers ---------- */
.landing-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-sm {
  max-width: 900px;
}

/* ---------- Sticky Liquid Glass Header ---------- */
.header-outer {
  position: sticky;
  top: 16px;
  z-index: 120;
  padding: 0 24px;
  margin-bottom: 24px;
}

.landing-nav {
  max-width: 1220px;
  margin: 0 auto;
  height: 64px;
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-island-s);
  box-shadow: var(--glass-shadow), var(--glass-inset);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 0 20px;
  transition: all .2s cubic-bezier(.2,.8,.2,1);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
  padding: 8px 14px;
  border-radius: var(--r-s);
  transition: color .14s, background .14s;
}

.nav-link:hover {
  color: var(--ink);
  background: rgba(255,255,255,.45);
}

html[data-theme="dark"] .nav-link:hover {
  background: rgba(255,255,255,.08);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-burger {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  place-items: center;
  color: var(--ink-2);
  background: var(--surface);
  border: 1px solid var(--line);
  flex: none;
}

.nav-burger:hover {
  color: var(--ink);
  background: var(--surface-2);
}

.nav-sheet-scrim {
  display: none;
}

/* ---------- Buttons & Badges ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 10px;
  transition: all .16s cubic-bezier(.2,.8,.2,1);
  white-space: nowrap;
}

.btn.primary {
  background: var(--chip);
  color: var(--chip-ink);
  box-shadow: 0 4px 14px rgba(15,17,21,.12);
}

.btn.primary:hover {
  background: var(--chip-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(15,17,21,.18);
}

.btn.ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-s);
}

.btn.ghost:hover {
  background: var(--surface-2);
  border-color: #ced2d6;
  transform: translateY(-1px);
}

.btn.glass {
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  color: var(--ink);
  box-shadow: var(--shadow-s);
}

.btn.glass:hover {
  background: var(--glass-strong);
  transform: translateY(-1px);
}

.btn.lg {
  padding: 14px 26px;
  font-size: 15.5px;
  border-radius: 12px;
}

.theme-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--ink-2);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: all .14s;
}

.theme-toggle-btn:hover {
  color: var(--ink);
  background: var(--surface-2);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  letter-spacing: .02em;
}

.badge.green { background: var(--green-bg); color: var(--green-ink); }
.badge.amber { background: var(--amber-bg); color: var(--amber); }
.badge.blue  { background: var(--blue-bg);  color: var(--blue-ink); }
.badge.glass {
  background: var(--glass-strong);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  color: var(--ink);
  box-shadow: var(--shadow-s);
}

/* ---------- Hero Section ---------- */
.hero {
  padding: 40px 0 60px;
  text-align: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--glass-strong);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  box-shadow: var(--shadow-s);
  margin-bottom: 24px;
}

.hero-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

.hero-title {
  font-size: 54px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: var(--ink);
  max-width: 960px;
  margin: 0 auto 20px;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--green) 0%, var(--blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 18.5px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 760px;
  margin: 0 auto 36px;
  font-weight: 400;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.hero-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  font-size: 13px;
  color: var(--ink-3);
  font-weight: 500;
  flex-wrap: wrap;
}

.hero-cta-note,
.cta-note {
  color: var(--ink-3);
  font-size: 12.5px;
  line-height: 1.45;
}

.hero-cta-note {
  margin-top: -18px;
  text-align: center;
}

.hero-badge-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-badge-item svg {
  color: var(--green);
}

/* ---------- Hero Interactive Mockup ---------- */
.mockup-outer {
  margin-top: 50px;
  position: relative;
}

.mockup-outer::before {
  content: "";
  position: absolute;
  inset: -20px;
  background: radial-gradient(ellipse at center, rgba(31,122,77,0.18) 0%, rgba(58,93,176,0.12) 50%, transparent 75%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}

.mockup-card {
  position: relative;
  z-index: 1;
  background: var(--glass-strong);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-island);
  box-shadow: var(--glass-shadow), var(--glass-inset);
  padding: 28px;
  text-align: left;
}

.mockup-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 14px;
}

.mockup-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mockup-brand-title {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.mockup-brand-sub {
  font-size: 11.5px;
  color: var(--ink-3);
}

.mockup-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mockup-seg {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  gap: 3px;
}

.mockup-seg button {
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--ink-2);
  transition: all .14s;
}

.mockup-seg button.active {
  background: var(--chip);
  color: var(--chip-ink);
  box-shadow: var(--shadow-s);
}

.mockup-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.mockup-kpi-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  padding: 24px;
  box-shadow: var(--shadow-s);
}

.mockup-kpi-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
  color: var(--ink-3);
  margin-bottom: 8px;
}

.mockup-kpi-val {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 12px;
}

.mockup-kpi-sub {
  font-size: 12.5px;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 6px;
}

.mockup-waterfall-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  padding: 22px 24px;
  box-shadow: var(--shadow-s);
}

.mockup-wf-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-top: 1px solid var(--line-2);
  font-size: 13.5px;
}

.mockup-wf-row:first-child { border-top: none; }
.mockup-wf-row.total {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 6px;
  font-weight: 700;
  color: var(--green);
  font-size: 15px;
}

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

.mockup-plat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  padding: 16px;
  box-shadow: var(--shadow-s);
  text-align: left;
  width: 100%;
  cursor: pointer;
  transition: opacity .14s, border-color .14s, box-shadow .14s;
}

.mockup-plat-card.is-muted {
  opacity: .42;
}

.mockup-plat-card.is-active {
  border-color: var(--ink);
  box-shadow: var(--shadow-m);
}

.mockup-plat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.mockup-plat-share {
  font-size: 13px;
  font-weight: 700;
}

.mockup-plat-val {
  font-size: 18px;
  font-weight: 700;
}

.mockup-plat-caption {
  font-size: 11.5px;
  margin-top: 4px;
}

.mockup-kpi-payout {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

/* ---------- Marketplaces Bar ---------- */
.mp-bar {
  padding: 30px 0 50px;
  text-align: center;
}

.mp-bar-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .09em;
  font-weight: 700;
  color: var(--ink-3);
  margin-bottom: 22px;
}

.mp-logos-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.mp-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-s);
  font-weight: 600;
  font-size: 14px;
}

/* ---------- Section Commons ---------- */
.section {
  padding: 80px 0;
}

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 54px;
}

.section-eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 12px;
}

.section-title {
  font-size: 38px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 16px;
}

.section-lead {
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--ink-2);
}

/* ---------- Pain vs Solution Section ---------- */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.pain-col {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  padding: 32px;
  box-shadow: var(--shadow-m);
}

.pain-col.solution {
  background: var(--glass-strong);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.pain-col-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.pain-col-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.pain-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pain-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.pain-item-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex: none;
  margin-top: 2px;
}

.pain-item-icon.neg { background: var(--red-bg); color: var(--red); }
.pain-item-icon.pos { background: var(--green-bg); color: var(--green); }

.pain-item-title {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
}

.pain-item-desc {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.45;
}

/* ---------- Interactive Features Tabs ---------- */
.features-tabs-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.feature-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  box-shadow: var(--shadow-s);
  transition: all .16s;
}

.feature-tab-btn:hover {
  color: var(--ink);
  background: var(--surface-2);
}

.feature-tab-btn.active {
  background: var(--chip);
  color: var(--chip-ink);
  border-color: var(--chip);
  box-shadow: var(--shadow-m);
}

.feature-display {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-island);
  padding: 36px;
  box-shadow: var(--shadow-l);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 36px;
  align-items: center;
}

.feature-info-eyebrow {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 10px;
}

.feature-info-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  line-height: 1.25;
}

.feature-info-desc {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.6;
  margin-bottom: 24px;
}

.feature-checklist {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
}

.feature-check-item svg {
  color: var(--green);
  flex: none;
}

.feature-preview-box {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  padding: 24px;
  box-shadow: inset var(--shadow-s);
}

/* ---------- Agency Workflow ---------- */
.agency-section {
  background: var(--surface-2);
}

.agency-shell {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
  padding: 52px;
  border: 1px solid var(--glass-border);
  border-radius: var(--r-island);
  background: var(--glass-strong);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow), var(--glass-inset);
}

.agency-copy .section-eyebrow,
.agency-copy .section-title,
.agency-copy .section-lead {
  text-align: left;
}

.agency-copy .section-title {
  font-size: 34px;
}

.agency-copy .section-lead {
  margin-bottom: 28px;
}

.agency-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.agency-step {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 14px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  box-shadow: var(--shadow-s);
}

.agency-step-number {
  color: var(--green);
  font-weight: 700;
  font-size: 13px;
  padding-top: 2px;
}

.agency-step-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.agency-step-desc {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.45;
}

/* ---------- ROI & Profit Calculator ---------- */
.calc-card {
  background: var(--glass-strong);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-island);
  padding: 40px;
  box-shadow: var(--glass-shadow);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}

.calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.calc-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.calc-label {
  font-size: 14.5px;
  font-weight: 600;
}

.calc-value-pill {
  font-size: 16px;
  font-weight: 700;
  padding: 4px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--green);
}

.calc-range {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--line);
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.calc-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--chip);
  cursor: pointer;
  box-shadow: var(--shadow-s);
  border: 2px solid #ffffff;
}

.calc-results-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  padding: 30px;
  box-shadow: var(--shadow-m);
}

.calc-res-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 24px;
}

.calc-res-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.calc-res-title {
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 500;
}

.calc-res-num {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.calc-res-num.green { color: var(--green); }
.calc-res-num.blue  { color: var(--blue); }

.calc-total-banner {
  padding: 16px 20px;
  background: var(--green-bg);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.calc-total-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--green-ink);
}

.calc-total-val {
  font-size: 22px;
  font-weight: 700;
  color: var(--green);
}

/* ---------- Pricing Section ---------- */
.pricing-period-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

.pricing-switch-btn {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-3);
  padding: 6px 12px;
  border-radius: 8px;
  transition: all .14s;
}

.pricing-switch-btn.active {
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow-s);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 36px 30px;
  box-shadow: var(--shadow-m);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform .16s, box-shadow .16s;
}

@media (hover: hover) {
  .pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-l);
  }
}

.pricing-card.featured {
  background: var(--glass-strong);
  backdrop-filter: var(--glass-blur);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-pop);
}

html[data-theme="dark"] .pricing-card.featured {
  border-color: var(--chip);
}

.pricing-badge-popular {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--chip);
  color: var(--chip-ink);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 4px 14px;
  border-radius: 999px;
}

.pricing-tier {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.pricing-desc {
  font-size: 13.5px;
  color: var(--ink-2);
  margin-bottom: 24px;
  min-height: 40px;
}

.pricing-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.pricing-amount {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.pricing-period {
  font-size: 13.5px;
  color: var(--ink-3);
}

.pricing-features-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
  flex: 1;
}

.pricing-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
}

.pricing-feature-item svg {
  color: var(--green);
  flex: none;
  margin-top: 2px;
}

/* ---------- Security Section ---------- */
.security-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.security-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  padding: 28px;
  box-shadow: var(--shadow-s);
}

.security-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--blue-bg);
  color: var(--blue-ink);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.security-title {
  font-size: 16.5px;
  font-weight: 700;
  margin-bottom: 8px;
}

.security-desc {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.5;
}

/* ---------- FAQ Section ---------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 840px;
  margin: 0 auto;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  overflow: hidden;
  box-shadow: var(--shadow-s);
  transition: border-color .14s;
}

.faq-item:hover {
  border-color: #ced2d6;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-answer {
  padding: 0 24px 22px;
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.6;
  border-top: 1px solid var(--line-2);
  padding-top: 16px;
}

/* ---------- CTA Banner ---------- */
.cta-box {
  background: var(--glass-strong);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-island);
  padding: 60px 40px;
  text-align: center;
  box-shadow: var(--glass-shadow);
  max-width: 980px;
  margin: 40px auto 0;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: "";
  position: absolute;
  top: -50%;
  left: 30%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(31,122,77,0.2) 0%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
}

.cta-title {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

.cta-lead {
  font-size: 17px;
  color: var(--ink-2);
  max-width: 600px;
  margin: 0 auto 32px;
}

/* ---------- Footer ---------- */
.landing-footer {
  margin-top: 80px;
  border-top: 1px solid var(--line);
  padding: 40px 0 50px;
  background: var(--surface-2);
  font-size: 13.5px;
  color: var(--ink-3);
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a:hover {
  color: var(--ink);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Lead Modal & Forms ---------- */
.modal-scrim {
  position: fixed;
  inset: 0;
  background: rgba(15,17,21,.5);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
  animation: fadeIn .2s ease;
}

.modal-card {
  width: 100%;
  max-width: 480px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 32px;
  box-shadow: var(--shadow-pop);
  position: relative;
  animation: popIn .24s cubic-bezier(.2,.8,.2,1);
}

.modal-handle {
  display: none;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--ink-3);
}

.modal-close:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.lead-fld {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.lead-lab {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
}

.lead-input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color .14s, box-shadow .14s;
}

.lead-input:focus {
  border-color: var(--ink-3);
  box-shadow: 0 0 0 3px rgba(31,122,77,0.12);
}

.lead-mp-select {
  display: flex;
  gap: 8px;
}

.lead-mp-btn {
  flex: 1;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 600;
  background: var(--surface);
  color: var(--ink-2);
  transition: all .12s;
}

.lead-mp-btn.active {
  background: var(--chip);
  color: var(--chip-ink);
  border-color: var(--chip);
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: scale(.95) translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes sheetUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes sheetIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }

body.nav-sheet-open,
body.lead-modal-open {
  overflow: hidden;
}

/* ---------- Tablet: stack desktop grids, keep type close to PC ---------- */
@media (max-width: 1023px) {
  .hero-title { font-size: 40px; }
  .mockup-hero-grid { grid-template-columns: 1fr; }
  .pain-grid { grid-template-columns: 1fr; }
  .feature-display { grid-template-columns: 1fr; }
  .agency-shell { grid-template-columns: 1fr; gap: 32px; }
  .calc-card { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .security-grid { grid-template-columns: 1fr; }

  .nav-links,
  .nav-login-desktop,
  .nav-cta-desktop { display: none; }

  .nav-burger { display: grid; }

  .header-outer {
    top: max(10px, env(safe-area-inset-top));
    padding: 0 16px;
  }

  .landing-nav {
    height: 56px;
    padding: 0 12px 0 14px;
  }

  .nav-sheet-scrim {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    z-index: 110;
    padding: calc(72px + env(safe-area-inset-top)) 16px 20px;
    background: rgba(15, 17, 21, .4);
    backdrop-filter: blur(8px);
    animation: fadeIn .2s ease;
  }

  .nav-sheet {
    background: var(--glass-strong);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--r-island-s);
    box-shadow: var(--glass-shadow), var(--glass-inset);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    animation: sheetIn .32s cubic-bezier(.2,.8,.2,1);
  }

  .nav-sheet-link {
    font-size: 16px;
    font-weight: 600;
    padding: 14px 14px;
    min-height: 44px;
    border-radius: var(--r-s);
    color: var(--ink);
  }

  .nav-sheet-link:hover,
  .nav-sheet-link:active {
    background: var(--glass-active);
  }

  .nav-sheet-login,
  .nav-sheet-cta {
    width: 100%;
    justify-content: center;
    margin-top: 6px;
    min-height: 44px;
  }
}

@media (max-width: 767px) {
  .container { padding: 0 16px; }

  .hero {
    padding: 16px 0 32px;
  }

  .hero-title {
    font-size: 27px;
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin-bottom: 14px;
  }

  .hero-lead {
    font-size: 15px;
    margin-bottom: 24px;
  }

  .hero-cta {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .hero-badges {
    gap: 12px 16px;
    font-size: 12.5px;
  }

  .mockup-outer { margin-top: 28px; }

  .mockup-card {
    padding: 16px;
    border-radius: var(--r-l);
  }

  .mockup-top {
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 14px;
    margin-bottom: 16px;
    gap: 12px;
  }

  .mockup-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .mockup-seg {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
  }

  .mockup-seg button {
    flex: 1;
    min-height: 36px;
    padding: 6px 10px;
  }

  .mockup-kpi-box,
  .mockup-waterfall-box {
    padding: 16px;
  }

  .mockup-kpi-val {
    font-size: 30px;
  }

  .mockup-kpi-sub {
    flex-wrap: wrap;
  }

  .mockup-plats-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .mockup-plat-card {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    column-gap: 12px;
    padding: 12px 14px;
    align-items: center;
  }

  .mockup-plat-head {
    margin-bottom: 0;
    grid-column: 1;
    grid-row: 1;
  }

  .mockup-plat-caption {
    grid-column: 1;
    grid-row: 2;
    margin-top: 2px;
  }

  .mockup-plat-val {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
    font-size: 15px;
    text-align: right;
  }

  .section { padding: 48px 0; }

  .section-head { margin-bottom: 32px; }

  .section-title { font-size: 24px; }

  .section-lead { font-size: 15px; }

  .pain-col { padding: 20px; }

  .features-tabs-nav {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 8px;
    margin: 0 -16px 24px;
    padding: 0 16px 4px;
  }

  .feature-tab-btn {
    flex: none;
    scroll-snap-align: start;
    white-space: nowrap;
    min-height: 44px;
    padding: 10px 16px;
  }

  .feature-display {
    padding: 20px;
    border-radius: var(--r-l);
    gap: 20px;
  }

  .feature-info-title { font-size: 22px; }

  .feature-preview-box { padding: 14px; overflow-x: auto; }

  .agency-shell { padding: 24px 20px; border-radius: var(--r-l); gap: 24px; }
  .agency-copy .section-title { font-size: 24px; }

  .calc-card {
    padding: 20px;
    border-radius: var(--r-l);
    gap: 24px;
  }

  .calc-range::-webkit-slider-thumb {
    width: 24px;
    height: 24px;
  }

  .calc-results-box { padding: 20px; }

  .calc-res-grid { grid-template-columns: 1fr; }

  .calc-res-num { font-size: 22px; }

  .calc-total-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .pricing-card { padding: 24px 20px; }

  .pricing-card.featured { order: -1; }

  .pricing-amount { font-size: 32px; }

  .pricing-desc { min-height: 0; }

  .security-card { padding: 20px; }

  .faq-question {
    min-height: 52px;
    padding: 16px 18px;
    font-size: 15px;
    text-align: left;
  }

  .faq-answer { padding: 0 18px 18px; padding-top: 14px; font-size: 14px; }

  .cta-title { font-size: 24px; }

  .cta-box { padding: 32px 18px; margin-top: 16px; }

  .cta-box .btn { width: 100%; }

  .landing-footer {
    margin-top: 40px;
    padding: 28px 0 calc(32px + env(safe-area-inset-bottom));
  }

  .footer-top,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .modal-scrim {
    display: flex;
    align-items: flex-end;
    padding: 0;
    background: rgba(15, 17, 21, .45);
  }

  .modal-card {
    max-width: none;
    border-radius: 24px 24px 0 0;
    padding: 12px 20px calc(24px + env(safe-area-inset-bottom));
    animation: sheetUp .32s cubic-bezier(.2,.8,.2,1);
  }

  .modal-handle {
    display: block;
    width: 36px;
    height: 4px;
    border-radius: 999px;
    background: var(--line);
    margin: 4px auto 16px;
  }

  .modal-close {
    top: 14px;
    right: 14px;
  }

  .lead-mp-select {
    flex-wrap: wrap;
  }

  .lead-mp-btn {
    min-height: 40px;
  }

  .ambient-spot-1,
  .ambient-spot-2,
  .ambient-spot-3,
  .ambient-spot-4 {
    width: 320px;
    height: 320px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nav-sheet,
  .nav-sheet-scrim,
  .modal-scrim,
  .modal-card {
    animation: none;
  }
  .btn.primary:hover,
  .btn.ghost:hover,
  .btn.glass:hover {
    transform: none;
  }
}
