/* ==========================================================================
   Pedyk Media — styles
   Palette: harbour navy + Lee blue on cool white.
   ========================================================================== */

:root {
  --paper: #F7F8FB;
  --white: #FFFFFF;
  --ink: #0D1A3A;
  --ink-2: #16244A;
  --ink-3: #081129;
  --slate: #566079;
  --slate-2: #8790A6;
  --line: #E2E6EF;
  --line-2: #EEF1F6;
  --blue: #2440F0;
  --blue-dark: #1A31C9;
  --blue-soft: #EDF0FF;

  --blue-light: #8FA2FF;

  --success: #12A37F;
  --error: #D3264B;

  --font: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --container: 1200px;
  --gutter: 24px;
  --header-h: 72px;

  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 10px;

  --shadow-float: 0 1px 1px rgba(13, 26, 58, .04), 0 8px 24px -6px rgba(13, 26, 58, .12), 0 32px 64px -24px rgba(13, 26, 58, .22);
  --shadow-soft: 0 1px 2px rgba(13, 26, 58, .05), 0 6px 18px -8px rgba(13, 26, 58, .10);

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.4, .64, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

h1, h2, h3 { font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 4.6vw + 1rem, 4.6rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.0; }
h2 { font-size: clamp(2rem, 2.6vw + 1rem, 3.15rem); letter-spacing: -0.035em; line-height: 1.05; }
h3 { font-size: 1.25rem; letter-spacing: -0.015em; line-height: 1.25; }
p { text-wrap: pretty; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 200;
  background: var(--ink); color: #fff;
  padding: 10px 16px; border-radius: 999px;
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  --btn-h: 46px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--btn-h);
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600; font-size: 1rem; letter-spacing: -0.01em;
  text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s, transform .15s var(--ease-out);
}
.btn:active { transform: scale(.97); }
.btn-sm { --btn-h: 38px; padding: 0 16px; font-size: .9375rem; }
.btn-lg { --btn-h: 54px; padding: 0 28px; font-size: 1.0625rem; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--blue); color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 6px 16px -6px rgba(36, 64, 240, .55);
}
.btn-primary:hover { background: var(--blue-dark); }

.btn-ghost {
  background: rgba(255,255,255,.75); color: var(--ink);
  border-color: rgba(13, 26, 58, .14);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: #fff; border-color: rgba(13, 26, 58, .28); }

.btn-text {
  background: none; color: var(--slate); padding: 0 8px;
}
.btn-text:hover { color: var(--ink); }

.text-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--blue); font-weight: 600; text-decoration: none;
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 1px;
}
.text-link:hover { color: var(--blue-dark); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  transition: background-color .3s, box-shadow .3s, backdrop-filter .3s;
}
.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(247, 248, 251, .78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 rgba(13, 26, 58, .08);
}
.header-inner {
  height: 100%;
  display: flex; align-items: center; gap: 24px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
}
.brand-mark { width: 32px; height: 32px; }
.brand-name { font-weight: 800; font-size: 1.125rem; letter-spacing: -0.03em; }

.main-nav { margin-left: auto; }
.nav-list { display: flex; gap: 4px; }
.nav-list a {
  display: block; padding: 8px 14px; border-radius: 999px;
  text-decoration: none; font-weight: 500; font-size: .9688rem; color: var(--ink);
  transition: background-color .2s;
}
.nav-list a:hover { background: rgba(13, 26, 58, .06); }
.nav-mobile-only { display: none; }

.header-actions { display: flex; align-items: center; gap: 16px; }
.header-phone {
  text-decoration: none; font-weight: 600; font-size: .9375rem;
  font-variant-numeric: tabular-nums;
}
.header-phone:hover { color: var(--blue); }

.nav-toggle {
  display: none;
  width: 42px; height: 42px; border-radius: 999px;
  border: 1px solid rgba(13, 26, 58, .14); background: rgba(255,255,255,.7);
  position: relative; cursor: pointer;
}
.nav-toggle span {
  position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px;
  background: var(--ink);
  transition: transform .3s var(--ease-out), top .3s var(--ease-out);
}
.nav-toggle span:first-child { top: 16px; }
.nav-toggle span:last-child { top: 23px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 19.5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 19.5px; transform: rotate(-45deg); }

/* ---------- Hero background ---------- */
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(42% 55% at 76% 42%, rgba(36, 64, 240, .13), transparent 70%),
    radial-gradient(30% 40% at 12% 8%, rgba(36, 64, 240, .06), transparent 70%);
}
.hero-bg::before {
  /* fine grid that fades out from the centre */
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(13, 26, 58, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 26, 58, .055) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(70% 70% at 60% 35%, #000 20%, transparent 75%);
          mask-image: radial-gradient(70% 70% at 60% 35%, #000 20%, transparent 75%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 1px;
  background: var(--line);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 72px) 0 112px;
  overflow: hidden;
  isolation: isolate;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: var(--shadow-soft);
  font-size: .9063rem; font-weight: 600;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  margin-bottom: 26px;
}
.pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(18, 163, 127, .5);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(18, 163, 127, .45); }
  70%, 100% { box-shadow: 0 0 0 10px rgba(18, 163, 127, 0); }
}
.hero h1 { max-width: 15ch; font-size: clamp(2.6rem, 4.2vw + 1rem, 4.4rem); }
.hero-lede {
  margin-top: 24px;
  font-size: clamp(1.125rem, .5vw + 1rem, 1.3rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 34em;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-assurances {
  display: grid; gap: 10px;
  margin-top: 30px;
  font-size: .9688rem; color: var(--ink-2);
}
.hero-assurances li { display: flex; align-items: center; gap: 10px; }
.hero-assurances svg {
  width: 20px; height: 20px; flex-shrink: 0;
  fill: none; stroke: var(--blue); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
  background: #fff; border-radius: 50%;
  padding: 2px;
  box-shadow: var(--shadow-soft);
}

/* Hero demo */
.hero-demo {
  position: relative;
  height: 540px;
  perspective: 1600px;
}
.browser {
  position: absolute; top: 20px; left: 0; right: 40px;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow-float);
  overflow: hidden;
  animation: rise .9s var(--ease-out) both;
}
.browser-bar {
  display: flex; align-items: center; gap: 7px;
  height: 40px; padding: 0 14px;
  background: #F3F5F9;
  border-bottom: 1px solid var(--line-2);
}
.browser-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: #DCE0E9; }
.browser-bar .url {
  margin: 0 auto;
  padding: 3px 14px;
  border-radius: 8px;
  background: #fff;
  font-size: .75rem; color: var(--slate);
  transform: translateX(-16px);
}
.mock-site { padding: 18px 22px 22px; }
.mock-nav { display: flex; align-items: center; gap: 14px; }
.mock-logo { width: 26px; height: 26px; border-radius: 8px; background: #0E7C86; }
.mock-links { display: flex; gap: 10px; margin-left: auto; }
.mock-links i { display: block; width: 34px; height: 6px; border-radius: 4px; background: var(--line); }
.mock-btn {
  font-size: .6875rem; font-weight: 700; color: #fff;
  background: #0E7C86; border-radius: 999px; padding: 5px 11px;
}
.mock-hero {
  margin-top: 18px;
  padding: 24px 22px;
  border-radius: 14px;
  background: linear-gradient(135deg, #E9F8F6, #F4F6FF);
}
.mock-title {
  font-size: 1.375rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.12;
  max-width: 15ch;
  animation: fade-in .6s .35s var(--ease-out) both;
}
.mock-sub { margin-top: 8px; font-size: .75rem; color: var(--slate); animation: fade-in .6s .45s var(--ease-out) both; }
.mock-cta-row { display: flex; gap: 8px; margin-top: 14px; animation: fade-in .6s .55s var(--ease-out) both; }
.mock-cta {
  font-size: .6875rem; font-weight: 700;
  padding: 7px 13px; border-radius: 999px;
  background: #0E7C86; color: #fff;
}
.mock-cta-alt { background: #fff; color: #0E7C86; box-shadow: inset 0 0 0 1px #BFE6E2; }
.mock-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.mock-tiles span { height: 64px; border-radius: 10px; background: #F3F5F9; }
.mock-tiles span:nth-child(2) { background: #EAF6F5; }
.mock-tiles span:nth-child(3) { background: #EEF1F6; }
.demo-tag {
  position: absolute; right: 12px; bottom: 12px;
  font-size: .6875rem; font-weight: 600; color: var(--slate);
  background: rgba(255,255,255,.9); border: 1px solid var(--line);
  padding: 3px 9px; border-radius: 999px;
}

.stat-card {
  position: absolute; left: -28px; bottom: 36px;
  width: 260px;
  padding: 16px 18px 14px;
  border-radius: 18px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-float);
  animation: rise .8s .9s var(--ease-out) both;
}
.stat-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .8125rem; font-weight: 600; }
.stat-up {
  white-space: nowrap;
  font-size: .6875rem; color: var(--success);
  background: #E3F6F0; padding: 3px 8px; border-radius: 999px;
}
.spark { width: 100%; height: 64px; margin-top: 10px; overflow: visible; }
.spark-line { stroke-dasharray: 260; stroke-dashoffset: 260; animation: draw 1.4s 1.2s var(--ease-out) forwards; }
.spark-area { opacity: 0; animation: fade-in .8s 1.9s ease forwards; }

.phone {
  position: absolute; right: 0; bottom: 0;
  width: 220px; height: 330px;
  border-radius: 38px;
  background: linear-gradient(160deg, #1B2A55, var(--ink));
  padding: 12px;
  box-shadow: var(--shadow-float), inset 0 0 0 1.5px rgba(255,255,255,.08);
  animation: rise-phone 1s 1.4s var(--ease-out) both;
}
.phone::before {
  content: ""; position: absolute; inset: 12px;
  border-radius: 28px;
  background:
    radial-gradient(80% 60% at 30% 20%, rgba(91, 116, 255, .5), transparent 70%),
    radial-gradient(70% 60% at 80% 90%, rgba(36, 64, 240, .35), transparent 70%),
    #20305F;
}
.phone-notch {
  position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 74px; height: 20px; border-radius: 999px; background: #050A1A; z-index: 2;
}
.toast {
  position: absolute; left: 20px; right: 20px; top: 56px; z-index: 2;
  display: flex; gap: 10px; align-items: flex-start;
  padding: 11px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 10px 24px -8px rgba(0,0,0,.35);
  animation: toast-in .7s 2.1s var(--ease-spring) both;
}
.toast-2 { top: 146px; animation-delay: 2.9s; }
.toast-icon {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 8px;
  background: var(--blue); display: grid; place-items: center;
}
.toast-icon svg { width: 16px; height: 16px; }
.toast-icon-green { background: var(--success); }
.toast-body { display: grid; gap: 2px; font-size: .6875rem; line-height: 1.35; color: var(--slate); }
.toast-body strong { font-size: .75rem; color: var(--ink); }

@keyframes rise { from { opacity: 0; transform: translateY(28px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes rise-phone { from { opacity: 0; transform: translateY(60px) rotate(4deg); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(-14px) scale(.92); } to { opacity: 1; transform: none; } }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 9vw, 136px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(44px, 5vw, 64px); }
.section-lede {
  margin-top: 18px;
  font-size: clamp(1.0625rem, .4vw + 1rem, 1.25rem);
  color: var(--slate);
  max-width: 40em;
}
.section-lede a { color: var(--blue); font-weight: 600; text-decoration: none; }
.section-lede a:hover { text-decoration: underline; }

/* Problem */
.problem { background: var(--white); border-block: 1px solid var(--line-2); }
.problem-head { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: end; margin-bottom: 64px; }
.problem-head .section-lede { margin-top: 0; }
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.problem-item { border-top: 1px solid var(--line); padding-top: 28px; }
.problem-figure { height: 76px; display: flex; align-items: center; margin-bottom: 18px; }
.big-num {
  font-size: 4rem; font-weight: 800; letter-spacing: -0.05em; line-height: 1;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}
.search-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px 12px 16px;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow-soft), inset 0 0 0 1px var(--line);
  font-size: 1rem; color: var(--ink);
}
.search-pill svg { width: 18px; height: 18px; fill: none; stroke: var(--slate); stroke-width: 2; stroke-linecap: round; }
.search-pill::after {
  content: ""; width: 1.5px; height: 18px; background: var(--blue);
  animation: caret 1.1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }
.cta-pill {
  display: inline-flex; padding: 12px 22px; border-radius: 999px;
  background: var(--blue); color: #fff; font-weight: 600;
  box-shadow: 0 8px 20px -8px rgba(36, 64, 240, .6);
}
.problem-item h3 { margin-bottom: 10px; }
.problem-item p { color: var(--slate); }

/* Services bento */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}
.tile {
  position: relative;
  grid-column: span 3;
  padding: 30px 28px;
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line-2);
  overflow: hidden;
}
.tile h3 { margin-bottom: 10px; }
.tile p { color: var(--slate); font-size: 1rem; }

.tile-feature {
  grid-column: span 8; grid-row: span 2;
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
  padding: 40px;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-soft), inset 0 0 0 1px var(--line-2);
}
.tile-feature h3 { font-size: clamp(1.5rem, 1vw + 1.1rem, 1.9rem); letter-spacing: -0.03em; }
.tile-feature .checks { margin: 22px 0 26px; }

.checks { display: grid; gap: 10px; }
.checks li {
  position: relative; padding-left: 28px; font-size: .9688rem; color: var(--ink-2);
}
.checks li::before {
  content: ""; position: absolute; left: 0; top: .3em;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='%232440F0' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.layout-visual {
  position: relative;
  border-radius: 20px;
  background: linear-gradient(160deg, #EEF1FF 0%, #F5F7FB 100%);
  min-height: 320px;
}
.lv-desktop, .lv-phone {
  position: absolute; background: #fff;
  box-shadow: var(--shadow-float);
  display: flex; flex-direction: column; gap: 8px;
}
.lv-desktop { left: 8%; top: 12%; width: 72%; height: 64%; border-radius: 12px; padding: 0 14px 14px; }
.lv-phone { right: 7%; bottom: 8%; width: 30%; height: 62%; border-radius: 18px; padding: 16px 10px; }
.lv-desktop i, .lv-phone i { display: block; border-radius: 4px; background: var(--line); }
.lv-bar { height: 14px; margin: 0 -14px 6px; border-radius: 12px 12px 0 0 !important; background: #F3F5F9 !important; }
.lv-h { height: 12px; width: 70%; background: var(--ink) !important; opacity: .85; }
.lv-p { height: 6px; width: 90%; }
.lv-p.short { width: 60%; }
.lv-btn { height: 14px; width: 38%; border-radius: 999px !important; background: var(--blue) !important; margin-top: 4px; }
.lv-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: auto; }
.lv-cols i { height: 36px; background: #F3F5F9; }
.lv-img { flex: 1; background: linear-gradient(135deg, #DDE3FF, #EEF1FF) !important; border-radius: 8px !important; }
.lv-phone .lv-btn { width: 60%; }

.tile-seo {
  grid-column: span 4; grid-row: span 2;
  background: var(--ink); color: #fff;
  box-shadow: none;
  border-radius: var(--r-xl);
  padding: 40px 32px;
  display: flex; flex-direction: column;
}
.tile-seo p { color: rgba(255,255,255,.72); }
.serp { margin-top: auto; padding-top: 28px; display: grid; gap: 10px; }
.serp-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 14px;
  background: rgba(255,255,255,.06);
  font-size: .9375rem; color: rgba(255,255,255,.55);
}
.serp-row.is-you {
  background: #fff; color: var(--ink); font-weight: 600;
  box-shadow: 0 12px 30px -10px rgba(36, 64, 240, .6);
}
.serp-pos {
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: .75rem; font-weight: 700;
  background: rgba(255,255,255,.12);
}
.is-you .serp-pos { background: var(--blue); color: #fff; }
.serp-stars { margin-left: auto; color: #F5A400; font-size: .8125rem; letter-spacing: 1px; }

.tile-care { background: var(--blue-soft); box-shadow: none; }
.swatches { display: flex; gap: 6px; margin-top: 20px; }
.swatches i { width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(13,26,58,.06); }
.swatches i:nth-child(1) { background: var(--ink); }
.swatches i:nth-child(2) { background: var(--blue); }
.swatches i:nth-child(3) { background: var(--blue-light); }
.swatches i:nth-child(4) { background: var(--line); }

/* Industries tabs */
.industries { background: var(--white); border-block: 1px solid var(--line-2); }
.tab-list {
  display: inline-flex; flex-wrap: wrap; gap: 4px;
  padding: 5px;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
  margin-bottom: 40px;
}
.tab-list [role="tab"] {
  border: 0; background: none; cursor: pointer;
  padding: 10px 18px; border-radius: 999px;
  font-weight: 600; font-size: .9375rem; color: var(--slate);
  transition: background-color .25s, color .25s, box-shadow .25s;
}
.tab-list [role="tab"]:hover { color: var(--ink); }
.tab-list [role="tab"][aria-selected="true"] {
  background: #fff; color: var(--ink);
  box-shadow: var(--shadow-soft), inset 0 0 0 1px var(--line-2);
}
.tab-panel {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  align-items: start;
  animation: panel-in .45s var(--ease-out);
}
.tab-panel[hidden] { display: none; }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.panel-copy h3 { font-size: clamp(1.6rem, 1.4vw + 1rem, 2.2rem); letter-spacing: -0.035em; line-height: 1.1; }
.panel-copy p { margin-top: 16px; color: var(--slate); font-size: 1.125rem; max-width: 30em; }
.panel-points { display: grid; }
.panel-points li { padding: 20px 0; border-top: 1px solid var(--line); color: var(--slate); }
.panel-points li:last-child { border-bottom: 1px solid var(--line); }
.panel-points strong { color: var(--ink); font-weight: 650; }

/* Process */
.steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  position: relative;
  counter-reset: none;
}
.steps::before {
  content: ""; position: absolute; top: 22px; left: 22px; right: 22px; height: 2px;
  background: var(--line);
}
.step { position: relative; }
.step-num {
  position: relative;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; color: var(--blue);
  font-weight: 800; font-size: 1.0625rem;
  box-shadow: var(--shadow-soft), inset 0 0 0 1.5px rgba(36, 64, 240, .25);
  margin-bottom: 24px;
}
.step:first-child .step-num { background: var(--blue); color: #fff; box-shadow: 0 8px 20px -6px rgba(36,64,240,.55); }
.step h3 { margin-bottom: 10px; }
.step p { color: var(--slate); font-size: 1rem; }

/* Why */
.why { background: var(--white); border-block: 1px solid var(--line-2); }
.why-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 80px; align-items: start; }
.why-statement { position: sticky; top: calc(var(--header-h) + 40px); }
.why-statement p { margin: 20px 0 32px; font-size: 1.1875rem; color: var(--slate); max-width: 30em; }
.why-list { display: grid; }
.why-list > div { padding: 26px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 220px 1fr; gap: 24px; }
.why-list > div:last-child { border-bottom: 1px solid var(--line); }
.why-list dt { font-weight: 700; font-size: 1.125rem; letter-spacing: -0.015em; }
.why-list dd { color: var(--slate); }

/* Packages */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan {
  position: relative;
  display: flex; flex-direction: column;
  padding: 36px 32px 32px;
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
}
.plan h3 { font-size: 1.625rem; letter-spacing: -0.03em; }
.plan-for { margin: 10px 0 26px; color: var(--slate); font-size: 1rem; min-height: 3.2em; }
.plan .checks { margin-bottom: 32px; }
.plan .btn { margin-top: auto; }
.plan-featured {
  background: var(--ink); color: #fff;
  box-shadow: var(--shadow-float);
}
.plan-featured .plan-for { color: rgba(255,255,255,.7); }
.plan-featured .checks li { color: rgba(255,255,255,.9); }
.plan-featured .checks li::before { background-color: rgba(255,255,255,.12); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='%238FA2FF' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.plan-badge {
  position: absolute; top: 20px; right: 20px;
  font-size: .8125rem; font-weight: 600;
  padding: 4px 12px; border-radius: 999px;
  background: var(--blue);
  color: #fff;
}

/* FAQ */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0;
  font-weight: 650; font-size: 1.125rem; letter-spacing: -0.015em;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; flex-shrink: 0;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 4v12M4 10h12' stroke='%230D1A3A' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .35s var(--ease-out), background-color .2s;
}
.faq-list details[open] summary::after { transform: rotate(45deg); background-color: var(--blue-soft); }
.faq-list summary:hover::after { background-color: var(--blue-soft); }
.faq-list details p { padding: 0 56px 26px 0; color: var(--slate); }
.faq-list details[open] p { animation: panel-in .35s var(--ease-out); }

/* ---------- Contact ---------- */
.contact {
  position: relative;
  padding: clamp(88px, 10vw, 144px) 0;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.contact::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(45% 60% at 100% 0%, rgba(36, 64, 240, .35), transparent 70%),
    radial-gradient(40% 55% at 0% 100%, rgba(36, 64, 240, .18), transparent 70%);
}
.contact-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: start;
}
.contact-copy h2 { max-width: 16ch; }
.contact-lede { margin-top: 20px; font-size: 1.1875rem; color: rgba(255,255,255,.72); max-width: 30em; }
.contact-methods { display: grid; gap: 14px; margin-top: 40px; }
.contact-methods li { display: flex; align-items: center; gap: 16px; }
.cm-icon {
  width: 46px; height: 46px; border-radius: 14px; flex-shrink: 0;
  display: grid; place-items: center;
  background: rgba(255,255,255,.08);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1);
}
.cm-icon svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.contact-methods li > span:last-child { display: grid; font-weight: 600; font-size: 1.0625rem; }
.cm-label { font-size: .8125rem; font-weight: 500; color: rgba(255,255,255,.55); }
.contact-methods a { text-decoration: none; }
.contact-methods a:hover { color: var(--blue-light); }
.contact-note { margin-top: 32px; color: rgba(255,255,255,.55); font-size: .9375rem; }

/* Form card */
.form-card {
  background: #fff; color: var(--ink);
  border-radius: var(--r-xl);
  padding: clamp(24px, 3.5vw, 44px);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.5);
}
.lead-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.lead-form legend {
  padding: 0; margin-bottom: 6px;
  font-size: clamp(1.375rem, 1vw + 1rem, 1.75rem); font-weight: 700; letter-spacing: -0.03em;
}
.step-hint { color: var(--slate); margin-bottom: 22px; font-size: .9688rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-progress { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.form-progress-bar { flex: 1; height: 4px; border-radius: 4px; background: var(--line-2); overflow: hidden; }
.form-progress-bar span {
  display: block; height: 100%; width: 33.33%;
  border-radius: 4px;
  background: var(--blue);
  transition: width .5s var(--ease-out);
}
.form-progress-label { font-size: .8125rem; color: var(--slate); white-space: nowrap; font-variant-numeric: tabular-nums; }

.form-step { display: none; }
.form-step.is-active { display: block; animation: step-in .45s var(--ease-out); }
.form-step.is-back { animation-name: step-in-back; }
@keyframes step-in { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@keyframes step-in-back { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
  font-weight: 600; font-size: .9688rem;
  transition: background-color .2s, box-shadow .2s, color .2s, transform .15s var(--ease-out);
  user-select: none;
}
.chip:hover span { box-shadow: inset 0 0 0 1px #C9CFDD; }
.chip input:checked + span {
  background: var(--blue-soft); color: var(--blue);
  box-shadow: inset 0 0 0 1.5px var(--blue);
}
.chip input:checked + span::before {
  content: ""; width: 14px; height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4.5 10.5l3.5 3.5 7.5-8' fill='none' stroke='%232440F0' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.chip input:active + span { transform: scale(.96); }
.chip input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; margin-top: 18px; }
.field { display: grid; gap: 7px; align-content: start; }
.field-full { grid-column: 1 / -1; }
.field label, .field .label { font-size: .9063rem; font-weight: 600; }
.optional { font-weight: 400; color: var(--slate-2); margin-left: 4px; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 0;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 1rem;
  transition: box-shadow .2s, background-color .2s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 116px; line-height: 1.5; }
.field select {
  padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 8l5 5 5-5' fill='none' stroke='%23566079' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px;
}
.field input::placeholder, .field textarea::placeholder { color: var(--slate-2); }
.field input:hover, .field select:hover, .field textarea:hover { box-shadow: inset 0 0 0 1px #C9CFDD; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--blue), 0 0 0 4px rgba(36, 64, 240, .12);
}
.field .is-invalid, .field .is-invalid:focus { box-shadow: inset 0 0 0 1.5px var(--error), 0 0 0 4px rgba(211, 38, 75, .1); }
.field-error { font-size: .8438rem; color: var(--error); font-weight: 500; min-height: 0; }
.field-error:empty { display: none; }
.form-step > .field-error { margin-top: 12px; }

.segmented {
  display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px;
  border-radius: 14px; background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
}
.segmented label { position: relative; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.segmented span {
  display: block; padding: 9px 16px; border-radius: 10px;
  font-weight: 600; font-size: .9375rem; color: var(--slate);
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.segmented input:checked + span { background: #fff; color: var(--ink); box-shadow: var(--shadow-soft), inset 0 0 0 1px var(--line-2); }
.segmented input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 1px; }

.consent { display: flex; gap: 12px; align-items: flex-start; font-weight: 400 !important; font-size: .9063rem !important; color: var(--slate); cursor: pointer; line-height: 1.5; }
.consent input {
  flex-shrink: 0; width: 20px; height: 20px; margin: 1px 0 0;
  accent-color: var(--blue); cursor: pointer;
}
.consent a { color: var(--blue); font-weight: 600; }

.form-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 30px; }
.form-nav [data-next]:only-child, .form-nav > :only-child { margin-left: auto; }
.form-status { margin-top: 14px; font-size: .9375rem; color: var(--error); }
.form-status:empty { display: none; }

[data-submit] .spinner {
  display: none; width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff;
  animation: spin .8s linear infinite;
}
[data-submit].is-loading .spinner { display: block; }
[data-submit].is-loading { pointer-events: none; opacity: .85; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-success { text-align: center; padding: 28px 8px 12px; }
.form-success:focus { outline: none; }
.form-success h3 { font-size: 1.75rem; letter-spacing: -0.03em; margin: 20px 0 12px; }
.form-success p { color: var(--slate); max-width: 28em; margin-inline: auto; }
.form-success a { color: var(--blue); font-weight: 600; }
.success-check { width: 72px; height: 72px; margin: 0 auto; }
.success-check svg { width: 100%; height: 100%; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.success-check circle { stroke: var(--success); stroke-dasharray: 152; stroke-dashoffset: 152; animation: draw .7s var(--ease-out) forwards; }
.success-check path { stroke: var(--success); stroke-dasharray: 36; stroke-dashoffset: 36; animation: draw .45s .55s var(--ease-out) forwards; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-3); color: rgba(255,255,255,.66); padding: 72px 0 28px; font-size: .9688rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.brand-light { color: #fff; }
.footer-brand p { margin-top: 16px; max-width: 26em; }
.footer-title { font-size: .9375rem; font-weight: 700; color: #fff; letter-spacing: -0.01em; margin-bottom: 16px; }
.site-footer ul { display: grid; gap: 10px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-base {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 56px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .875rem;
}

/* ---------- Mobile action bar ---------- */
.mobile-bar {
  display: none;
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 90;
  gap: 8px; padding: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: var(--shadow-float);
  transition: transform .4s var(--ease-out), opacity .3s;
}
.mobile-bar .btn { height: 48px; }
.mobile-bar .btn-ghost { flex: 0 0 auto; padding: 0 22px; }
.mobile-bar .btn-primary { flex: 1; }
.mobile-bar.is-hidden { transform: translateY(140%); opacity: 0; pointer-events: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .header-phone { display: none; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 64px; }
  .hero h1 { max-width: 14ch; }
  .hero-demo { max-width: 620px; width: 100%; margin-inline: auto; }
  .tile-feature { grid-column: span 12; grid-row: auto; }
  .tile-seo { grid-column: span 12; grid-row: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
  .tile-seo h3, .tile-seo p { grid-column: 1; }
  .tile-seo .serp { grid-column: 2; grid-row: 1 / span 2; padding-top: 0; }
  .tile { grid-column: span 6; }
  .why-grid, .faq-grid { gap: 56px; }
  .why-list > div { grid-template-columns: 1fr; gap: 6px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    background: var(--paper);
    box-shadow: 0 1px 0 rgba(13, 26, 58, .08), 0 24px 40px -20px rgba(13, 26, 58, .25);
    padding: 8px var(--gutter) 20px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: transform .3s var(--ease-out), opacity .25s, visibility 0s .3s;
  }
  .site-header.is-open { background: var(--paper); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .site-header.is-open .main-nav { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list a { padding: 16px 4px; border-radius: 0; font-size: 1.1875rem; font-weight: 600; border-bottom: 1px solid var(--line); }
  .nav-list a:hover { background: none; color: var(--blue); }
  .nav-mobile-only { display: block; }
  .nav-mobile-only a { color: var(--blue); border-bottom: 0; }
  .nav-toggle { display: block; }
  .header-actions { margin-left: auto; gap: 10px; }

  .problem-head { grid-template-columns: 1fr; gap: 18px; margin-bottom: 48px; }
  .problem-grid { grid-template-columns: 1fr; gap: 36px; }
  .tab-panel { grid-template-columns: 1fr; gap: 28px; }
  .steps { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
  .steps::before { display: none; }
  .why-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; }
  .why-statement { position: static; }
  .plans { grid-template-columns: 1fr; max-width: 560px; }
  .plan-for { min-height: 0; }
  .contact-grid { gap: 48px; }
}

@media (max-width: 760px) {
  .mobile-bar { display: flex; }
  body { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .header-actions .btn-primary { display: none; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .hero { padding: calc(var(--header-h) + 40px) 0 72px; }
  .hero-kicker { font-size: .8125rem; margin-bottom: 20px; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn, .plan .btn, .form-nav .btn-lg { width: 100%; white-space: normal; text-align: center; height: auto; min-height: var(--btn-h); padding-block: 12px; line-height: 1.25; }
  .hero-demo { height: 420px; }
  .browser { right: 28px; }
  .mock-site { padding: 14px; }
  .mock-hero { padding: 16px 14px; }
  .mock-title { font-size: 1.0625rem; }
  .mock-tiles span { height: 40px; }
  .stat-card { left: -6px; bottom: 18px; width: 200px; padding: 12px 14px 10px; }
  .stat-up { display: none; }
  .spark { height: 44px; }
  .phone { width: 170px; height: 252px; border-radius: 30px; padding: 9px; }
  .phone::before { inset: 9px; border-radius: 22px; }
  .phone-notch { top: 16px; width: 56px; height: 16px; }
  .toast { left: 14px; right: 14px; top: 44px; padding: 9px 10px; gap: 8px; border-radius: 13px; }
  .toast-2 { top: 128px; }
  .toast-icon { width: 24px; height: 24px; }
  .toast-body { font-size: .625rem; }
  .toast-body strong { font-size: .6875rem; }

  .tile { grid-column: span 12; padding: 26px 22px; }
  .tile-feature { grid-template-columns: 1fr; padding: 28px 22px; gap: 24px; }
  .layout-visual { min-height: 240px; }
  .tile-seo { display: flex; padding: 28px 22px; }
  .tile-seo .serp { padding-top: 24px; }
  .tab-list { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; border-radius: 999px; margin-inline: calc(var(--gutter) * -1); border-radius: 0; padding: 5px var(--gutter); background: none; box-shadow: none; }
  .tab-list::-webkit-scrollbar { display: none; }
  .tab-list [role="tab"] { flex-shrink: 0; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { display: grid; grid-template-columns: 46px 1fr; gap: 0 18px; padding-bottom: 32px; }
  .step::before { content: ""; position: absolute; left: 22px; top: 52px; bottom: 6px; width: 2px; background: var(--line); }
  .step:last-child::before { display: none; }
  .step-num { grid-row: span 2; margin-bottom: 0; }
  .step h3 { margin-top: 10px; }
  .plan { padding: 30px 22px 24px; }
  .faq-list summary { font-size: 1.0625rem; padding: 20px 0; }
  .faq-list details p { padding-right: 0; }
  .field-grid { grid-template-columns: 1fr; }
  .form-card { border-radius: var(--r-lg); margin-inline: -4px; }
  .form-nav .btn-lg { flex: 1; }
  .form-nav [data-back] { flex: 0 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* ---------- Legal pages ---------- */
.legal { padding: calc(var(--header-h) + 64px) 0 96px; }
.legal .container { max-width: calc(720px + var(--gutter) * 2); }
.legal h1 { font-size: clamp(2.4rem, 3vw + 1rem, 3.4rem); }
.legal .updated { margin-top: 12px; color: var(--slate); }
.legal h2 { font-size: 1.5rem; letter-spacing: -0.02em; margin: 48px 0 12px; }
.legal p, .legal li { color: var(--ink-2); }
.legal p + p { margin-top: 14px; }
.legal ul { list-style: disc; padding-left: 1.25em; display: grid; gap: 8px; margin-top: 12px; }
.legal a { color: var(--blue); font-weight: 600; }
.legal-header { background: rgba(247, 248, 251, .78); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 1px 0 rgba(13, 26, 58, .08); }
.legal-header .header-actions { margin-left: auto; }
