/* ==========================================================================
   Duple landing page
   Mobile-first. No framework, no build step.
   ========================================================================== */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #0a0f1f;
  --ink-2: #2b3245;
  --muted: #5d6478;
  --faint: #6b7185;
  --line: rgba(13, 22, 48, 0.09);
  --line-2: rgba(13, 22, 48, 0.14);
  --paper: #fbfcff;

  /* Brand blues, sampled from the Duple glass logo */
  --blue-950: #021a7a;
  --blue-900: #0329b8;
  --blue-800: #0038e0;
  --blue-700: #0047ff;
  --blue-600: #0a64ff;
  --blue-500: #1a82ff;
  --blue-400: #3fa2ff;
  --blue-300: #74c4ff;
  --blue-200: #b5defe;
  --blue-100: #e3f1ff;
  --blue-50: #f2f8ff;

  --glass: rgba(255, 255, 255, 0.78);
  --glass-strong: rgba(255, 255, 255, 0.92);
  --shadow-sm: 0 1px 2px rgba(10, 20, 60, 0.06), 0 2px 8px rgba(10, 20, 60, 0.04);
  --shadow: 0 1px 2px rgba(10, 20, 60, 0.05), 0 8px 24px -6px rgba(10, 30, 90, 0.1), 0 24px 48px -16px rgba(10, 30, 90, 0.12);
  --shadow-blue: 0 1px 2px rgba(0, 40, 160, 0.2), 0 12px 32px -8px rgba(0, 71, 255, 0.45), 0 32px 64px -24px rgba(0, 50, 200, 0.5);

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 22px;
  --r-xl: 28px;

  --pad: 20px;
  --max: 1080px;
  --nav-gap: 10px;   /* space between the top of the screen and the header */
  --bar-h: 52px;
  --nav-h: calc(var(--nav-gap) + var(--bar-h));
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 460;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv08", "cv11", "ss03";
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
s { text-decoration-thickness: 1.5px; }
[hidden] { display: none !important; }

:focus { outline: none; }
:focus-visible { outline: 2.5px solid var(--blue-600); outline-offset: 3px; border-radius: 8px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 660;
  transition: top 0.2s;
}
.skip:focus { top: 12px; }

/* Icons */
.i {
  width: 1em; height: 1em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.m { width: 1em; height: 1em; flex: none; color: var(--ink); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--max) + var(--pad) * 2); margin: 0 auto; padding: 0 var(--pad); }
.container--narrow { max-width: calc(760px + var(--pad) * 2); }
.center { display: flex; justify-content: center; }
/* Single-column grids on mobile; minmax(0, 1fr) stops wide children (e.g. scrollers) from stretching the page */
.math__grid, .uses, .plans, .steps, .bento, .faq { grid-template-columns: minmax(0, 1fr); }

.section { position: relative; padding: 88px 0; }
.section--tight { padding: 40px 0 72px; }
.section__head { text-align: center; max-width: 620px; margin: 0 auto 40px; }
.section__head h2 {
  font-size: clamp(2.125rem, 1.4rem + 3.6vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -0.038em;
  font-weight: 720;
  text-wrap: balance;
}
.section__head p {
  margin-top: 16px;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  line-height: 1.55;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* ---------- Background ---------- */
.bg {
  position: fixed; z-index: -1;
  top: -10vh; left: 0; right: 0; bottom: -10vh;
  pointer-events: none;
  overflow: hidden;
  background: var(--paper);
}
.bg__blobs, .bg__grain { position: absolute; top: 0; left: 0; right: 0; bottom: 0; }
.bg__blobs {
  /* Mobile: color hugs the top-right and bottom-left corners so text stays on white */
  background:
    radial-gradient(34% 16% at 88% 6%, rgba(200, 232, 255, 0.95) 0%, rgba(200, 232, 255, 0) 70%),
    radial-gradient(22% 30% at 104% 22%, rgba(0, 46, 214, 0.9) 0%, rgba(0, 46, 214, 0) 70%),
    radial-gradient(80% 36% at 106% 8%, rgb(26, 118, 255) 0%, rgba(40, 132, 255, 0.85) 42%, rgba(90, 170, 255, 0) 74%),
    radial-gradient(34% 14% at 14% 92%, rgba(200, 232, 255, 0.95) 0%, rgba(200, 232, 255, 0) 70%),
    radial-gradient(24% 26% at -6% 80%, rgba(0, 46, 214, 0.9) 0%, rgba(0, 46, 214, 0) 70%),
    radial-gradient(80% 34% at -8% 96%, rgb(26, 118, 255) 0%, rgba(40, 132, 255, 0.85) 42%, rgba(90, 170, 255, 0) 74%);
  will-change: transform;
}
/* Two grain layers: white specks inside the color, blue specks dithering its edges into the white */
.bg__grain {
  opacity: 0.6;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 2.2 -1.15'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}
.bg::after {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  opacity: 0.7;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='1' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 .32 0 0 0 0 1 0 0 0 2.6 -1.45'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  -webkit-mask-image: radial-gradient(95% 44% at 106% 8%, #000 30%, transparent 70%), radial-gradient(95% 44% at -8% 96%, #000 30%, transparent 70%);
  mask-image: radial-gradient(95% 44% at 106% 8%, #000 30%, transparent 70%), radial-gradient(95% 44% at -8% 96%, #000 30%, transparent 70%);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px;
  border-radius: 12px;
  font-size: 0.9375rem; font-weight: 660; letter-spacing: -0.01em; line-height: 1;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s, color 0.2s;
  -webkit-user-select: none; user-select: none;
}
.btn .i { font-size: 1rem; transition: transform 0.2s var(--ease); }
.btn:active { transform: scale(0.98); }
@media (hover: hover) {
  .btn:hover .i { transform: translateX(2px); }
}
.btn--sm { min-height: 36px; padding: 0 14px; border-radius: 10px; font-size: 0.875rem; }
.btn--lg { min-height: 50px; padding: 0 24px; border-radius: 14px; font-size: 1rem; }
.btn--block { width: 100%; }

.btn--dark {
  color: #fff;
  background: linear-gradient(180deg, #23283a 0%, #0a0f1f 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 1px 2px rgba(10, 15, 31, 0.25), 0 6px 16px -6px rgba(10, 15, 31, 0.5);
}
@media (hover: hover) { .btn--dark:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 2px 4px rgba(10, 15, 31, 0.25), 0 10px 24px -8px rgba(10, 15, 31, 0.6); } }

.btn--blue {
  color: #fff;
  background: linear-gradient(180deg, var(--blue-500) 0%, var(--blue-700) 55%, var(--blue-800) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 -2px 6px rgba(0, 20, 120, 0.25), 0 1px 2px rgba(0, 40, 160, 0.3), 0 10px 24px -8px rgba(0, 71, 255, 0.65);
}
@media (hover: hover) { .btn--blue:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 -2px 6px rgba(0, 20, 120, 0.25), 0 2px 4px rgba(0, 40, 160, 0.3), 0 14px 32px -8px rgba(0, 71, 255, 0.75); } }

.btn--white {
  color: var(--blue-900);
  background: #fff;
  box-shadow: inset 0 -1px 0 rgba(0, 40, 160, 0.12), 0 1px 2px rgba(0, 20, 90, 0.2), 0 10px 24px -10px rgba(0, 20, 90, 0.55);
}
/* Log in: frosted white pill with a glossy Duple-blue avatar badge */
.btn--login {
  gap: 9px;
  padding-left: 5px;
  color: var(--ink);
  background: linear-gradient(180deg, #ffffff 0%, #f3f7ff 100%);
  box-shadow:
    inset 0 0 0 1px rgba(13, 22, 48, 0.1),
    inset 0 1px 0 #fff,
    0 1px 2px rgba(10, 20, 60, 0.06),
    0 6px 14px -8px rgba(10, 40, 120, 0.3);
}
.btn--login.btn--sm { padding-right: 14px; }
.btn--login.btn--lg { padding-left: 7px; padding-right: 22px; }
.btn__avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; flex: none;
  border-radius: 50%;
  color: #fff;
  background:
    radial-gradient(120% 80% at 30% 0%, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0) 55%),
    linear-gradient(160deg, var(--blue-400) 0%, var(--blue-700) 55%, var(--blue-900) 100%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.6), inset 0 -1px 2px rgba(0, 20, 120, 0.3), 0 2px 6px -1px rgba(0, 71, 255, 0.5);
  transition: transform 0.25s var(--ease);
}
.btn .btn__avatar .i { font-size: 14px; stroke-width: 2.4; transform: none; }
.btn--lg .btn__avatar { width: 34px; height: 34px; }
.btn--lg .btn__avatar .i { font-size: 17px; }
@media (hover: hover) {
  .btn--login:hover {
    color: var(--blue-900);
    box-shadow:
      inset 0 0 0 1px rgba(10, 100, 255, 0.35),
      inset 0 1px 0 #fff,
      0 0 0 4px rgba(10, 100, 255, 0.08),
      0 8px 18px -8px rgba(10, 60, 200, 0.4);
  }
  .btn--login:hover .btn__avatar { transform: scale(1.06); }
  .btn--login:hover .btn__avatar .i { transform: none; }
}
.btn--outline {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 1px 2px rgba(10, 20, 60, 0.04);
}
@media (hover: hover) { .btn--outline:hover { box-shadow: inset 0 0 0 1px rgba(10, 100, 255, 0.4), 0 4px 12px -4px rgba(10, 100, 255, 0.25); color: var(--blue-900); } }

/* ---------- Cards ---------- */
.card {
  position: relative;
  border-radius: var(--r-lg);
  background: var(--glass);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.9), 0 0 0 1px var(--line), var(--shadow);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .card, .faq details {
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    backdrop-filter: blur(18px) saturate(1.4);
  }
}
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .card { background: var(--glass-strong); }
}

.icon-tile {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; flex: none;
  border-radius: 13px;
  font-size: 20px;
  color: #fff;
  background:
    radial-gradient(120% 80% at 30% 0%, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 55%),
    linear-gradient(160deg, var(--blue-400) 0%, var(--blue-700) 55%, var(--blue-900) 100%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.6), inset 0 -2px 4px rgba(0, 20, 120, 0.3), 0 6px 14px -4px rgba(0, 71, 255, 0.5);
}
.icon-tile--soft {
  color: var(--blue-700);
  background: linear-gradient(180deg, #fff 0%, var(--blue-50) 100%);
  box-shadow: inset 0 0 0 1px rgba(10, 100, 255, 0.14), 0 4px 10px -4px rgba(10, 100, 255, 0.25);
}

.logo-tile {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; flex: none;
  border-radius: 12px;
  font-size: 20px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line), 0 1px 2px rgba(10, 20, 60, 0.06);
}

.tag {
  display: inline-flex; align-items: center;
  padding: 4px 9px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 660; letter-spacing: 0.01em;
  color: var(--blue-800);
  background: var(--blue-100);
  white-space: nowrap;
}
.tag--solid {
  color: #fff;
  background: linear-gradient(180deg, var(--blue-500), var(--blue-700));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 4px 10px -4px rgba(0, 71, 255, 0.6);
}

.checks { display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; font-size: 0.9375rem; line-height: 1.45; color: var(--ink-2); }
.checks .i { margin-top: 3px; font-size: 16px; color: var(--blue-700); stroke-width: 2.5; }

/* ==========================================================================
   Header
   ========================================================================== */
/* The header always floats a little below the top of the screen. Its size and
   position never change: scrolling only fades and scales in the glass island
   behind it (opacity + transform), so the transition stays smooth on any device. */
.nav {
  position: -webkit-sticky; position: sticky; top: 0; z-index: 50;
  height: calc(var(--nav-h) + env(safe-area-inset-top));
  padding-top: calc(var(--nav-gap) + env(safe-area-inset-top));
  pointer-events: none; /* clicks pass through the empty area around the island */
}
.nav__bar, .menu { pointer-events: auto; }
.nav__bar {
  position: relative;
  isolation: isolate;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: calc(100% - 20px);
  max-width: 1080px;
  height: var(--bar-h);
  margin: 0 auto;
  padding: 0 8px 0 14px;
}
.nav__bar::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: -1;
  border-radius: 18px;
  background-color: rgba(255, 255, 255, 0.74);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.75),
    0 0 0 1px rgba(13, 22, 48, 0.08),
    0 2px 6px rgba(10, 30, 90, 0.06),
    0 14px 34px -12px rgba(10, 30, 90, 0.28);
  opacity: 0;
  transform: scale(0.965, 0.9);
  transition: opacity 0.35s ease, transform 0.5s var(--ease);
  pointer-events: none;
}
.nav.is-scrolled .nav__bar::before,
.nav.is-open .nav__bar::before { opacity: 1; transform: none; }
.nav.is-open .nav__bar::before { background-color: rgba(255, 255, 255, 0.97); }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .nav__bar::before {
    -webkit-backdrop-filter: blur(20px) saturate(1.6);
    backdrop-filter: blur(20px) saturate(1.6);
  }
}
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .nav__bar::before { background-color: rgba(255, 255, 255, 0.96); }
}
.nav__logo { display: block; flex: none; border-radius: 10px; }
.nav__logo img { width: 88px; height: 32px; }
.nav__tab { display: none; }
.nav__actions { display: flex; align-items: center; gap: 8px; }
.nav__login { display: none; }
.nav__toggle {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; margin-right: -6px;
  border-radius: 10px;
  font-size: 22px;
}
.nav__toggle .i--close { display: none; }
.nav.is-open .nav__toggle .i--menu { display: none; }
.nav.is-open .nav__toggle .i--close { display: block; }

.menu {
  position: absolute; left: 10px; right: 10px; top: calc(100% + 8px);
  max-height: calc(100vh - var(--nav-h) - 32px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 6px 18px 18px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(13, 22, 48, 0.08), 0 2px 6px rgba(10, 30, 90, 0.06), 0 24px 48px -16px rgba(10, 30, 90, 0.3);
  transform-origin: top center;
  animation: menu-in 0.3s var(--ease);
}
.menu nav a:last-child { border-bottom: 0; }
.menu nav { display: grid; }
.menu nav a {
  display: flex; align-items: center;
  min-height: 52px;
  font-size: 1.125rem; font-weight: 610; letter-spacing: -0.015em;
  border-bottom: 1px solid var(--line);
}
.menu__cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px) scale(0.98); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding: 40px 0 72px; }
.hero__inner { display: flex; flex-direction: column; align-items: center; text-align: center; }

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  max-width: 100%;
  padding: 5px 12px 5px 5px;
  border-radius: 999px;
  font-size: 0.8125rem; font-weight: 560; color: var(--ink);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-sm);
  transition: box-shadow 0.2s;
}
.pill__text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 359px) { .hide-xs { display: none; } }
.pill .i { font-size: 14px; color: var(--muted); transition: transform 0.2s var(--ease); }
@media (hover: hover) { .pill:hover { box-shadow: inset 0 0 0 1px rgba(10, 100, 255, 0.35), var(--shadow-sm); } .pill:hover .i { transform: translateX(2px); } }
.pill__tag {
  padding: 3px 9px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 660;
  color: var(--blue-800); background: var(--blue-100);
}

.hero__title {
  margin-top: 26px;
  font-size: clamp(2.125rem, 0.6rem + 8.4vw, 5.25rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 760;
  text-wrap: balance;
}
.hero__title-main { display: block; }
.hero__title-sub {
  display: block;
  max-width: 22ch;
  margin: 0.32em auto 0;
  font-size: 0.5em;
  line-height: 1.12;
  letter-spacing: -0.035em;
  font-weight: 720;
  color: var(--ink-2);
  text-wrap: balance;
}
.hero__lead {
  margin-top: 20px;
  max-width: 30ch;
  font-size: clamp(1.0625rem, 0.98rem + 0.45vw, 1.25rem);
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: balance;
}

/* Logos only: the sentence above already names them */
.models {
  display: flex; justify-content: center; gap: 10px;
  margin-top: 30px;
}
.models li {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px;
  border-radius: 14px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line), 0 1px 2px rgba(10, 20, 60, 0.05), 0 6px 14px -8px rgba(10, 30, 90, 0.25);
}
.models .m { font-size: 24px; }
.models .models__dark { background: #0d0f14; box-shadow: 0 1px 2px rgba(10, 20, 60, 0.2), 0 6px 14px -8px rgba(10, 30, 90, 0.4); }
.models__dark .m { color: #fff; }
.models li {
  position: relative;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.models .m { transition: transform 0.25s var(--ease); }
/* name label that appears above the logo on hover */
.models li::after {
  content: attr(data-name);
  position: absolute; bottom: calc(100% + 8px); left: 50%;
  padding: 4px 8px;
  border-radius: 7px;
  white-space: nowrap;
  font-size: 0.75rem; font-weight: 660;
  color: #fff;
  background: var(--ink);
  box-shadow: 0 4px 12px -4px rgba(10, 20, 60, 0.4);
  opacity: 0;
  transform: translate(-50%, 4px);
  transition: opacity 0.18s, transform 0.25s var(--ease);
  pointer-events: none;
}
@media (hover: hover) {
  .models li:hover {
    transform: translateY(-4px);
    box-shadow: inset 0 0 0 1px rgba(10, 100, 255, 0.25), 0 2px 4px rgba(10, 20, 60, 0.06), 0 14px 24px -10px rgba(10, 60, 200, 0.4);
  }
  .models li.models__dark:hover { box-shadow: 0 2px 4px rgba(10, 20, 60, 0.2), 0 14px 24px -10px rgba(10, 20, 60, 0.55); }
  .models li:hover .m { transform: scale(1.1); }
  .models li:hover::after { opacity: 1; transform: translate(-50%, 0); }
}
.hero__models {
  margin-top: 16px;
  max-width: 36ch;
  font-size: 0.875rem; line-height: 1.55;
  color: var(--muted);
  text-wrap: balance;
}
.hero__models b { font-weight: 660; color: var(--ink-2); }
.hero__ctas {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px;
  width: 100%; max-width: 420px;
  margin-top: 28px;
}
.hero__ctas .btn { padding: 0 16px; }
.hero__watch .i { font-size: 14px; color: var(--blue-700); }
@media (hover: hover) { .hero__watch:hover .i { transform: none; } }
@media (max-width: 359px) {
  .hero__ctas { grid-template-columns: minmax(0, 1fr); }
  .models { gap: 7px; }
  .models li { width: 40px; height: 40px; border-radius: 12px; }
  .models .m { font-size: 21px; }
}
@media (min-width: 640px) {
  .hero__ctas { display: flex; justify-content: center; width: auto; max-width: none; gap: 12px; margin-top: 34px; }
  .hero__ctas .btn { min-width: 190px; padding: 0 26px; }
}


/* ==========================================================================
   Demo video
   ========================================================================== */
.demo { padding-top: 24px; }
.player { max-width: 1040px; margin: 0 auto; }
.player__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  background: #eef2fa url("/assets/video/duple-demo-poster.jpg") center / cover no-repeat;
  background-image: -webkit-image-set(url("/assets/video/duple-demo-poster.webp") type("image/webp"), url("/assets/video/duple-demo-poster.jpg") type("image/jpeg"));
  background-image: image-set(url("/assets/video/duple-demo-poster.webp") type("image/webp"), url("/assets/video/duple-demo-poster.jpg") type("image/jpeg"));
  box-shadow:
    0 0 0 1px rgba(13, 22, 48, 0.08),
    0 0 0 6px rgba(255, 255, 255, 0.7),
    0 0 0 7px rgba(13, 22, 48, 0.06),
    0 30px 60px -28px rgba(10, 40, 140, 0.45);
}
@supports not (aspect-ratio: 1) { .player__frame { height: 0; padding-top: 62.5%; } }
.player__video {
  position: absolute; top: 0; left: 0;
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  background: transparent;
}

/* play button over the poster: one pill near the bottom, clear of the title in the cover image */
.player__big {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 7%;
  color: var(--ink);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 60%, rgba(235, 242, 255, 0.5) 100%);
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}
.player__big-pill {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 6px 20px 6px 6px;
  border-radius: 999px;
  font-size: 1rem; font-weight: 720;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 0 0 1px var(--line), 0 14px 32px -12px rgba(10, 40, 140, 0.45);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.player__big-pill small { font-size: 0.875rem; font-weight: 610; color: var(--muted); font-variant-numeric: tabular-nums; }
.player__big-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  font-size: 20px;
  color: #fff;
  background: linear-gradient(180deg, var(--blue-500), var(--blue-800));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 6px 14px -4px rgba(0, 71, 255, 0.7);
}
.player__big-ic .i { margin-left: 2px; }
@media (hover: hover) {
  .player__big:hover .player__big-pill { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(10, 100, 255, 0.3), 0 18px 36px -12px rgba(10, 40, 140, 0.55); }
}
.player__big:active .player__big-pill { transform: scale(0.97); }
.player.is-started .player__big { opacity: 0; visibility: hidden; }

/* light controls once the video has started: two small glass buttons and a thin progress line */
.player__bar {
  position: absolute; left: 12px; right: 12px; bottom: 14px;
  display: flex; align-items: center; justify-content: space-between;
  pointer-events: none;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.player.is-started .player__bar { opacity: 1; visibility: visible; }
@media (hover: hover) {
  .player.is-started:not(.is-paused):not(:hover):not(:focus-within) .player__bar { opacity: 0; }
}
.player__btn {
  pointer-events: auto;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: none;
  min-width: 38px; height: 38px; padding: 0 12px;
  border-radius: 999px;
  font-size: 0.8125rem; font-weight: 660;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 0 0 1px rgba(13, 22, 48, 0.08), 0 6px 16px -8px rgba(10, 30, 90, 0.45);
  transition: background-color 0.2s, transform 0.2s var(--ease);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .player__btn { -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
}
.player__btn:active { transform: scale(0.95); }
.player__btn .i { font-size: 16px; }
.player__btn--sound .i { color: var(--blue-700); }
@media (hover: hover) { .player__btn:hover { background: #fff; } }
.player__btn .ic-play, .player.is-paused .player__btn .ic-pause { display: none; }
.player.is-paused .player__btn .ic-play { display: block; }
.player__btn .ic-on, .player.has-sound .player__btn .ic-off { display: none; }
.player.has-sound .player__btn .ic-on { display: block; }
.player__progress {
  position: absolute; left: -12px; right: -12px; bottom: -14px;
  height: 3px;
  background: rgba(13, 22, 48, 0.06);
}
.player__progress span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--blue-500), var(--blue-700)); transform-origin: left center; transform: scaleX(0); }

.demo__cta { display: flex; justify-content: center; margin-top: 28px; }
.demo__cta .btn { width: 100%; max-width: 360px; }

@media (max-width: 639px) {
  .player__frame { border-radius: 14px; }
  .player__big { padding-bottom: 5%; }
  .player__big-pill { gap: 9px; padding: 4px 14px 4px 4px; font-size: 0.875rem; }
  .player__big-pill small { font-size: 0.8125rem; }
  .player__big-ic { width: 36px; height: 36px; font-size: 15px; }
  .player__bar { left: 8px; right: 8px; bottom: 10px; }
  .player__progress { left: -8px; right: -8px; bottom: -10px; }
  .player__btn { min-width: 30px; height: 30px; padding: 0 8px; }
  .player__btn .i { font-size: 14px; }
  .player__btn--sound [data-sound-label] { display: none; }
}
@media (min-width: 640px) { .demo__cta .btn { width: auto; } }

/* ==========================================================================
   Do the math
   ========================================================================== */
.math__grid { display: grid; gap: 0; max-width: 1020px; margin: 0 auto; }

/* Left: a receipt with a torn edge. The wrapper carries the shadow, since the mask would clip a box-shadow. */
.receipt-wrap { filter: drop-shadow(0 1px 1px rgba(10, 20, 60, 0.08)) drop-shadow(0 14px 22px rgba(10, 30, 90, 0.1)); }
.receipt {
  position: relative;
  padding: 24px 20px 34px;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  background: #fff;
  -webkit-mask: radial-gradient(circle 7px at 50% 100%, transparent 6.5px, #000 7px) 50% 100% / 18px 14px repeat-x, linear-gradient(#000, #000) top / 100% calc(100% - 7px) no-repeat;
  mask: radial-gradient(circle 7px at 50% 100%, transparent 6.5px, #000 7px) 50% 100% / 18px 14px repeat-x, linear-gradient(#000, #000) top / 100% calc(100% - 7px) no-repeat;
}
.receipt__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.receipt__label { font-size: 0.6875rem; font-weight: 660; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.receipt__count {
  flex: none; white-space: nowrap;
  padding: 3px 8px; border-radius: 6px;
  font-family: var(--mono); font-size: 0.6875rem; color: #b42318;
  background: #fef0ee;
}
.receipt__rows { margin-top: 14px; }
.receipt__rows li {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.logo-tile--dark { background: #0d0f14; box-shadow: none; }
.logo-tile--dark .m { color: #fff; }
.receipt__name { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.receipt__name strong { font-size: 0.9875rem; font-weight: 660; letter-spacing: -0.01em; }
.receipt__name small { font-size: 0.8125rem; color: var(--muted); }
.receipt__price { font-family: var(--mono); font-size: 0.9375rem; font-weight: 560; font-variant-numeric: tabular-nums; }
.receipt__cons { display: grid; gap: 8px; margin-top: 16px; }
.receipt__cons li { display: flex; align-items: center; gap: 8px; font-size: 0.8125rem; color: #9a2a1d; }
.receipt__cons .i { font-size: 14px; color: #d92d20; }
.receipt__total {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
  margin-top: 18px; padding-top: 18px;
  border-top: 1.5px dashed var(--line-2);
}
.receipt__total > span:first-child { display: flex; flex-direction: column; }
.receipt__total strong { font-size: 0.9375rem; font-weight: 660; }
.receipt__total small { font-size: 0.8125rem; color: var(--muted); }
.receipt__sum s {
  position: relative;
  display: inline-block;
  font-size: 2.5rem; font-weight: 720; letter-spacing: -0.04em; line-height: 1;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.receipt__sum s::after {
  content: "";
  position: absolute; left: -4px; right: -4px; top: 52%;
  height: 3px; border-radius: 3px;
  background: #e5484d;
  transform: rotate(-8deg) scaleX(1);
  transform-origin: left center;
  transition: transform 0.7s var(--ease) 0.35s;
}

.math__or {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  padding: 14px 0;
}
.math__or span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  font-size: 0.875rem; font-weight: 660; color: var(--ink-2);
  background: #fff;
  box-shadow: 0 0 0 6px rgba(251, 252, 255, 0.9), 0 0 0 7px var(--line), var(--shadow-sm);
}

/* Right: Duple glass card */
.dcard {
  position: relative;
  overflow: hidden;
  margin-top: 0;
  padding: 24px 20px 22px;
  border-radius: var(--r-xl);
  color: #fff;
  background:
    radial-gradient(90% 60% at 100% 0%, rgba(116, 196, 255, 0.55) 0%, rgba(116, 196, 255, 0) 60%),
    radial-gradient(80% 60% at 0% 100%, rgba(63, 162, 255, 0.45) 0%, rgba(63, 162, 255, 0) 60%),
    linear-gradient(155deg, #1a82ff 0%, #0047ff 40%, #0329b8 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.18), var(--shadow-blue);
}
.dcard__shine {
  position: absolute; left: -10%; right: -10%; top: -40%;
  height: 70%;
  border-radius: 0 0 50% 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0));
  pointer-events: none;
}
.dcard > *:not(.dcard__shine) { position: relative; }
.dcard__top { display: flex; align-items: center; gap: 12px; }
.dcard__icon { width: 44px; height: 44px; filter: drop-shadow(0 4px 10px rgba(0, 20, 120, 0.45)); }
.dcard__name { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.dcard__name strong { font-size: 1.0625rem; font-weight: 720; letter-spacing: -0.015em; }
.dcard__name small { font-size: 0.8125rem; color: rgba(255, 255, 255, 0.75); }

.stack { display: none; }
.stack span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; margin-left: -7px;
  border-radius: 50%;
  font-size: 15px;
  background: #fff;
  box-shadow: 0 0 0 2px var(--blue-700);
}
.stack span:first-child { margin-left: 0; }

.dcard__price { display: flex; align-items: baseline; gap: 8px; margin-top: 22px; }
.dcard__amount {
  font-size: clamp(3.25rem, 2.6rem + 3vw, 4.25rem);
  font-weight: 760; letter-spacing: -0.05em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.dcard__per { font-size: 1rem; color: rgba(255, 255, 255, 0.78); }
.dcard__save {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 12px; padding: 6px 11px;
  border-radius: 999px;
  font-size: 0.875rem; font-weight: 660;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}
.dcard__save .i { font-size: 15px; }

.bars {
  display: grid; gap: 10px;
  margin-top: 22px; padding: 14px;
  border-radius: 14px;
  background: rgba(2, 20, 110, 0.28);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.bars__row {
  display: grid; grid-template-columns: 74px 1fr 52px; align-items: center; gap: 10px;
  font-size: 0.8125rem; color: rgba(255, 255, 255, 0.85);
}
.bars__row > span:last-child { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.bars__track { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.bars__fill { display: block; height: 100%; border-radius: inherit; transform-origin: left; transition: transform 1.1s var(--ease) 0.3s; }
.bars__fill--them { width: 100%; background: linear-gradient(90deg, #ff9a8a, #ff5b4f); }
.bars__fill--us { width: 9.1%; background: #fff; box-shadow: 0 0 12px rgba(255, 255, 255, 0.8); }

.dcard__list { display: grid; gap: 10px; margin: 22px 0 24px; }
.dcard__list li { display: flex; gap: 10px; font-size: 0.9375rem; line-height: 1.45; color: rgba(255, 255, 255, 0.95); }
.dcard__list .i {
  margin-top: 2px; padding: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  stroke-width: 3;
  color: var(--blue-800);
  background: #fff;
}

.fineprint {
  max-width: 560px;
  margin: 36px auto 0;
  text-align: center;
  font-size: 0.8125rem; line-height: 1.6;
  color: var(--muted);
}
.fineprint a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }

/* ==========================================================================
   Use cases
   ========================================================================== */
.uses { display: grid; gap: 16px; }
.use { display: flex; flex-direction: column; padding: 24px; }
.use h3 { margin-top: 20px; font-size: 1.3125rem; font-weight: 720; letter-spacing: -0.025em; }
.use > p { margin-top: 8px; font-size: 0.9875rem; line-height: 1.55; color: var(--ink-2); }
.use .checks { margin: 20px 0 24px; flex: 1; }

/* ==========================================================================
   Pricing
   ========================================================================== */
.hl {
  position: relative;
  display: inline-block;
  padding: 0 0.14em;
  margin: 0 -0.02em;
  border-radius: 0.18em;
  color: var(--blue-900);
  background: linear-gradient(180deg, rgba(181, 222, 254, 0.75), rgba(116, 196, 255, 0.55));
  box-shadow: inset 0 0 0 1.5px rgba(10, 100, 255, 0.3);
}
.hl::before {
  content: "";
  position: absolute; top: -4px; right: -4px; bottom: -4px; left: -4px;
  border: 1.5px dashed rgba(10, 100, 255, 0.35);
  border-radius: 0.24em;
}

/* ---------- Offer ----------
   A quiet white card; the code itself is the one bold element, set on the
   same glossy blue glass as the Duple logo. */
.offer {
  position: relative;
  overflow: hidden;
  display: grid; gap: 22px;
  max-width: 760px;
  margin: 0 auto 40px;
  padding: 24px 22px;
  border-radius: var(--r-xl);
  background: #fff;
  box-shadow: 0 0 0 1px var(--line), var(--shadow);
}
.offer__title {
  font-size: clamp(1.75rem, 1.35rem + 1.7vw, 2.25rem);
  font-weight: 760; letter-spacing: -0.035em; line-height: 1.05;
}
.offer__text { margin-top: 10px; max-width: 34ch; font-size: 1rem; line-height: 1.55; color: var(--ink-2); }
.offer__clock {
  display: inline-block;
  min-width: 3.4em;
  padding: 0 6px;
  border-radius: 7px;
  text-align: center;
  font-weight: 720; color: var(--blue-900);
  font-variant-numeric: tabular-nums;
  background: var(--blue-50);
  box-shadow: inset 0 0 0 1px rgba(10, 100, 255, 0.16);
  transition: color 0.3s, background-color 0.3s;
}
.offer.is-urgent .offer__clock { color: #b42318; background: #fef3f2; box-shadow: inset 0 0 0 1px rgba(217, 45, 32, 0.2); }

.key {
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  width: 100%;
  padding: 20px 28px 16px;
  border-radius: 20px;
  color: #fff;
  background:
    radial-gradient(120% 90% at 50% 120%, rgba(116, 196, 255, 0.55) 0%, rgba(116, 196, 255, 0) 60%),
    linear-gradient(170deg, #2a8dff 0%, #0a5cff 42%, #0035d4 100%);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.7),
    inset 0 -3px 10px rgba(0, 20, 120, 0.35),
    0 1px 2px rgba(0, 40, 160, 0.3),
    0 16px 32px -14px rgba(0, 71, 255, 0.6);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.key__shine {
  position: absolute; top: 3px; left: 8px; right: 8px;
  height: 48%;
  border-radius: 17px 17px 60% 60% / 17px 17px 26px 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.08) 100%);
  pointer-events: none;
}
.key__code {
  position: relative;
  font-size: 2.5rem; font-weight: 800; letter-spacing: 0.02em; line-height: 1;
  text-shadow: 0 1px 1px rgba(0, 20, 100, 0.35), 0 2px 12px rgba(0, 30, 140, 0.25);
}
.key__hint {
  position: relative;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.8125rem; font-weight: 660;
  color: rgba(255, 255, 255, 0.86);
}
.key__hint .i { font-size: 14px; }
.key__icon-done { display: none; }
.key.is-copied .key__icon-copy { display: none; }
.key.is-copied .key__icon-done { display: block; stroke-width: 2.8; }
.key:active { transform: scale(0.98); }
.key:focus-visible { outline: 2.5px solid var(--blue-600); outline-offset: 3px; border-radius: 20px; }
@media (hover: hover) {
  .key:hover {
    transform: translateY(-1px);
    box-shadow:
      inset 0 1px 1px rgba(255, 255, 255, 0.75),
      inset 0 -3px 10px rgba(0, 20, 120, 0.35),
      0 2px 4px rgba(0, 40, 160, 0.3),
      0 20px 40px -14px rgba(0, 71, 255, 0.7);
  }
}

/* Promo on/off: everything tagged .promo-off only shows once the offer has ended */
.promo-off { display: none !important; }
.offer-expired .promo-on { display: none !important; }
.offer-expired .promo-off { display: inline !important; }
.offer-expired .offer { display: none; }

/* Plan cards. Left-aligned, information grouped under small labels, with
   layered panels inside. Starter+ is the filled, larger card. */
.plans { display: grid; gap: 16px; max-width: 1060px; margin: 0 auto; padding-top: 12px; }
.pc {
  --pc-ink: var(--ink);
  --pc-ink-2: var(--ink-2);
  --pc-muted: var(--muted);
  --pc-panel: #f1f5ff;
  --pc-panel-line: rgba(10, 100, 255, 0.1);
  --pc-ic-bg: #e6eeff;
  --pc-ic: var(--blue-700);
  position: relative;
  display: flex; flex-direction: column;
  padding: 24px 20px 20px;
  border-radius: 22px;
  color: var(--pc-ink);
  background: #fff;
  box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(10, 20, 60, 0.04), 0 12px 32px -18px rgba(10, 30, 90, 0.25);
}
.pc--starter {
  --pc-ink: #fff;
  --pc-ink-2: rgba(255, 255, 255, 0.92);
  --pc-muted: rgba(255, 255, 255, 0.74);
  --pc-panel: rgba(255, 255, 255, 0.14);
  --pc-panel-line: rgba(255, 255, 255, 0.16);
  --pc-ic-bg: rgba(255, 255, 255, 0.18);
  --pc-ic: #fff;
  background:
    radial-gradient(90% 50% at 50% 0%, rgba(140, 200, 255, 0.45) 0%, rgba(140, 200, 255, 0) 70%),
    linear-gradient(180deg, #3f8dff 0%, #1663ff 38%, #0b48e6 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 1px 2px rgba(0, 40, 160, 0.25), 0 28px 56px -22px rgba(0, 71, 255, 0.7);
}
.pc__popular {
  position: absolute; top: 0; left: 50%;
  transform: translate(-50%, -50%);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  font-size: 0.625rem; font-weight: 760; letter-spacing: 0.1em; text-transform: uppercase;
  color: #fff;
  background: #0a3bc7;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9);
}

.pc__name { font-size: 1.125rem; font-weight: 720; letter-spacing: -0.015em; }
.pc__tagline { margin-top: 2px; font-size: 0.875rem; color: var(--pc-muted); }
.pc__price { display: flex; align-items: baseline; gap: 6px; margin-top: 14px; }
.pc__price > span { font-size: 2.75rem; font-weight: 760; letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.pc__price small { font-size: 0.875rem; color: var(--pc-muted); }
.pc__was { margin-top: 8px; font-size: 0.8125rem; color: var(--pc-muted); }
.pc__was s { margin-right: 4px; }

.pc__ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; flex: none;
  border-radius: 7px;
  font-size: 13px;
  color: var(--pc-ic);
  background: var(--pc-ic-bg);
}
.pc__ic .i { stroke-width: 2.2; }
.pc__ic--lg { width: 30px; height: 30px; border-radius: 9px; font-size: 16px; }

.pc__highlight {
  display: flex; align-items: center; gap: 10px;
  margin-top: 14px; padding: 10px 12px;
  border-radius: 14px;
  font-size: 0.9375rem; font-weight: 660; line-height: 1.3;
  background: var(--pc-panel);
  box-shadow: inset 0 0 0 1px var(--pc-panel-line);
}
.pc__highlight .pc__ic {
  color: #fff;
  background: linear-gradient(160deg, var(--blue-400), var(--blue-700) 60%, var(--blue-900));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.pc__group { margin-top: 16px; }
.pc__label { font-size: 0.6875rem; font-weight: 660; letter-spacing: 0.12em; text-transform: uppercase; color: var(--pc-muted); }
.pc__group ul { display: grid; gap: 8px; margin-top: 8px; }
.pc__group li { display: flex; align-items: center; gap: 10px; font-size: 0.9375rem; color: var(--pc-ink-2); }
/* credits: the number people compare between plans, set in bold without a box */
.pc__credits strong { font-weight: 760; color: var(--pc-ink); }

.pc__panel {
  margin-top: 20px; padding: 12px;
  border-radius: 14px;
  background: var(--pc-panel);
  box-shadow: inset 0 0 0 1px var(--pc-panel-line);
}
.pc__panel-title { display: flex; align-items: center; gap: 8px; font-size: 0.875rem; font-weight: 660; }
.pc__panel-title .i { font-size: 15px; color: var(--pc-ic); }
.pc__chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.pc__chips .lt { width: 26px; height: 26px; border-radius: 8px; font-size: 15px; }
.pc__panel-text { margin-top: 8px; font-size: 0.75rem; line-height: 1.5; color: var(--pc-muted); }

.lt {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line), 0 1px 2px rgba(10, 20, 60, 0.06);
}
.lt--dark { background: #0d0f14; box-shadow: none; }
.lt--dark .m { color: #fff; }

/* the Halloween offer, as a dark "bonus" card inside each plan */
.pc__bonus {
  margin-top: 10px; padding: 12px 14px;
  border-radius: 14px;
  color: #fff;
  background:
    radial-gradient(80% 90% at 100% 0%, rgba(26, 130, 255, 0.45) 0%, rgba(26, 130, 255, 0) 60%),
    linear-gradient(160deg, #13204d 0%, #0b1433 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 196, 120, 0.55), 0 10px 24px -14px rgba(5, 10, 40, 0.7);
}
.pc__bonus-tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.625rem; font-weight: 760; letter-spacing: 0.1em; text-transform: uppercase;
  color: #ffd9a3;
  background: rgba(255, 196, 120, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 196, 120, 0.35);
}
.pc__bonus-title { margin-top: 8px; font-size: 0.9375rem; font-weight: 720; }
.pc__bonus-text { margin-top: 4px; font-size: 0.8125rem; line-height: 1.45; color: rgba(255, 255, 255, 0.72); }
.pc__bonus-text b { color: #fff; font-variant-numeric: tabular-nums; }

/* panel, offer and button stay together at the bottom of each card */
.pc__bottom { margin-top: auto; padding-top: 18px; }
.pc__foot { padding-top: 14px; }

/* Plan buttons: solid, glossy and tall, with an arrow chip that slides on hover */
.pc__cta {
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 56px; padding: 0 7px 0 22px;
  border-radius: 16px;
  font-size: 1rem; font-weight: 720; letter-spacing: -0.01em;
  color: #fff;
  background: linear-gradient(180deg, #2f86ff 0%, #0a5cff 50%, #0040e0 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -2px 0 rgba(0, 20, 120, 0.25),
    0 1px 2px rgba(0, 40, 160, 0.35),
    0 10px 22px -8px rgba(0, 71, 255, 0.65);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), filter 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.pc__cta::before {
  /* glass highlight across the top half */
  content: "";
  position: absolute; top: 1px; left: 6px; right: 6px;
  height: 46%;
  border-radius: 14px 14px 40% 40% / 14px 14px 12px 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0));
  pointer-events: none;
}
.pc__cta-ic {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; flex: none;
  border-radius: 12px;
  font-size: 18px;
  color: var(--blue-700);
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 20, 90, 0.3), 0 4px 10px -4px rgba(0, 20, 90, 0.4);
  transition: transform 0.25s var(--ease);
}
.pc__cta-ic .i { stroke-width: 2.4; transform: rotate(45deg); }
.pc--starter .pc__cta {
  color: var(--blue-900);
  background: linear-gradient(180deg, #ffffff 0%, #eef4ff 100%);
  box-shadow:
    inset 0 -2px 0 rgba(0, 40, 160, 0.12),
    0 1px 2px rgba(0, 20, 90, 0.25),
    0 14px 28px -10px rgba(0, 20, 90, 0.6);
}
.pc--starter .pc__cta::before { display: none; }
.pc--starter .pc__cta-ic {
  color: #fff;
  background: linear-gradient(180deg, var(--blue-500), var(--blue-800));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 4px 10px -4px rgba(0, 71, 255, 0.7);
}
.pc__cta:active { transform: translateY(1px) scale(0.99); filter: brightness(0.97); }
@media (hover: hover) {
  .pc__cta:hover {
    transform: translateY(-2px);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.5),
      inset 0 -2px 0 rgba(0, 20, 120, 0.25),
      0 2px 4px rgba(0, 40, 160, 0.35),
      0 16px 30px -10px rgba(0, 71, 255, 0.75);
  }
  .pc--starter .pc__cta:hover {
    box-shadow:
      inset 0 -2px 0 rgba(0, 40, 160, 0.12),
      0 0 0 4px rgba(255, 255, 255, 0.25),
      0 18px 32px -10px rgba(0, 20, 90, 0.65);
  }
  .pc__cta:hover .pc__cta-ic { transform: translateX(3px); }
}

.secure {
  display: flex; align-items: flex-start; justify-content: center; gap: 10px;
  max-width: 620px;
  margin: 32px auto 0;
  font-size: 0.8125rem; line-height: 1.6; color: var(--muted);
  text-align: left;
}
.secure strong { color: var(--ink-2); font-weight: 660; }
.secure .i { margin-top: 3px; font-size: 15px; color: var(--blue-700); }

.trust {
  display: grid; gap: 12px;
  max-width: 760px;
  margin: 24px auto 0;
  padding: 18px 20px;
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 0 0 1px var(--line);
}
.trust li { display: flex; align-items: center; gap: 10px; font-size: 0.9375rem; color: var(--ink-2); }
.trust strong { color: var(--ink); font-weight: 720; }
.trust .i { font-size: 18px; color: var(--blue-700); }

/* ==========================================================================
   Steps
   ========================================================================== */
.steps { position: relative; display: grid; gap: 14px; max-width: 1000px; margin: 0 auto 36px; counter-reset: step; }
.steps::before {
  /* the connecting line (vertical on mobile) */
  content: "";
  position: absolute; top: 30px; bottom: 30px; left: 39px;
  width: 2px;
  background: linear-gradient(180deg, var(--blue-300), var(--blue-600));
  opacity: 0.45;
}
.step {
  position: relative;
  display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; align-items: start;
  padding: 18px 20px 18px 18px;
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.9), 0 0 0 1px var(--line), var(--shadow);
}
.step .icon-tile { grid-row: 1 / span 2; }
.step__num {
  position: absolute; top: 14px; right: 16px;
  font-family: var(--mono); font-size: 0.75rem; font-weight: 660; color: var(--blue-700);
}
.step__num::before { content: "0"; }
.step h3 { font-size: 1.0625rem; font-weight: 720; letter-spacing: -0.015em; padding-right: 28px; }
.step p { margin-top: 4px; font-size: 0.9375rem; line-height: 1.5; color: var(--muted); }

/* ==========================================================================
   Features
   ========================================================================== */
/* ---------- Features bento ---------- */
.bento { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; max-width: 1080px; margin: 0 auto; }
.tile {
  position: relative;
  display: flex; flex-direction: column;
  padding: 22px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(10, 20, 60, 0.04), 0 14px 32px -20px rgba(10, 30, 90, 0.3);
}
.tile h3 { margin-top: 16px; font-size: 1.125rem; font-weight: 720; letter-spacing: -0.02em; line-height: 1.25; }
.tile p { margin-top: 6px; font-size: 0.9375rem; line-height: 1.55; color: var(--muted); }
.tile__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; flex: none;
  border-radius: 12px;
  font-size: 19px;
  color: var(--blue-700);
  background: linear-gradient(180deg, #fff 0%, var(--blue-50) 100%);
  box-shadow: inset 0 0 0 1px rgba(10, 100, 255, 0.14), 0 4px 10px -4px rgba(10, 100, 255, 0.25);
}
.tile__icon--solid {
  color: #fff;
  background:
    radial-gradient(120% 80% at 30% 0%, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 55%),
    linear-gradient(160deg, var(--blue-400) 0%, var(--blue-700) 55%, var(--blue-900) 100%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.6), inset 0 -2px 4px rgba(0, 20, 120, 0.3), 0 6px 14px -4px rgba(0, 71, 255, 0.5);
}

/* Auto router tile */
.tile--router {
  gap: 24px;
  padding: 24px 22px 22px;
  background:
    radial-gradient(70% 60% at 100% 0%, rgba(116, 196, 255, 0.22) 0%, rgba(116, 196, 255, 0) 70%),
    linear-gradient(180deg, #f5f9ff 0%, #ffffff 60%);
  box-shadow: 0 0 0 1px rgba(10, 100, 255, 0.16), 0 1px 2px rgba(10, 20, 60, 0.04), 0 20px 44px -24px rgba(0, 60, 220, 0.45);
}
.tile--router h3 { font-size: clamp(1.375rem, 1.15rem + 1vw, 1.75rem); letter-spacing: -0.03em; line-height: 1.15; }
.tile--router .tile__copy p { font-size: 1rem; color: var(--ink-2); }
.tile__points { display: grid; gap: 8px; margin-top: 16px; }
.tile__points li { display: flex; align-items: center; gap: 8px; font-size: 0.9375rem; font-weight: 560; color: var(--ink); }
.tile__points .i { font-size: 16px; color: var(--blue-700); stroke-width: 2.6; }

.router {
  padding: 14px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line), 0 10px 28px -16px rgba(10, 30, 90, 0.35);
}
.router__prompt {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f4f7fd;
  box-shadow: inset 0 0 0 1px var(--line);
}
.router__you {
  flex: none;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.6875rem; font-weight: 720;
  color: #fff;
  background: var(--ink);
}
.router__prompt p { margin: 0; font-size: 0.9375rem; font-weight: 560; line-height: 1.45; color: var(--ink); min-height: 1.45em; }
.router__caret {
  display: inline-block;
  width: 2px; height: 1.05em;
  margin-left: 2px;
  vertical-align: -0.15em;
  background: var(--blue-600);
  animation: caret 1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

.router__status { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 12px 2px; min-height: 28px; }
@media (max-width: 639px) {
  .router__line { display: none; }
  /* small feature cards: icon beside the text to save scrolling */
  .tile--small { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; padding: 18px; }
  .tile--small .tile__icon { grid-row: 1 / span 2; }
  .tile--small h3 { margin-top: 0; }
}
.router__chip {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  padding: 5px 10px 5px 8px;
  border-radius: 999px;
  font-size: 0.75rem; font-weight: 720;
  color: var(--blue-800);
  background: var(--blue-100);
}
.router__chip .i { font-size: 14px; stroke-width: 2.2; }
.router.is-thinking .router__chip .i { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.router__line { flex: 1; height: 1.5px; min-width: 12px; background: linear-gradient(90deg, var(--blue-300), rgba(116, 196, 255, 0)); }
.router__result {
  flex: 0 1 auto; min-width: 0;
  font-size: 0.8125rem; color: var(--muted);
  transition: opacity 0.25s;
}
.router__result b { font-weight: 720; color: var(--ink); }
.router.is-thinking .router__result { opacity: 0; }

.router__models { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.router__models li {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; padding: 0 6px;
  border-radius: 11px;
  font-size: 0.8125rem; font-weight: 610;
  color: var(--muted);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: color 0.3s, background-color 0.3s, box-shadow 0.3s, transform 0.3s var(--ease), opacity 0.3s;
}
.router__models .m { font-size: 16px; }
.router.is-thinking .router__models li { opacity: 0.55; }
.router__models li.is-picked {
  color: var(--blue-900);
  background: var(--blue-50);
  box-shadow: inset 0 0 0 1.5px var(--blue-600), 0 6px 14px -6px rgba(10, 100, 255, 0.5);
  transform: translateY(-1px);
  opacity: 1 !important;
}
/* three columns are too narrow for "Perplexity" and "DeepSeek" on phones */
@media (max-width: 479px) {
  .router__models { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Switch tile */
.switcher {
  display: flex; gap: 4px;
  margin-top: 18px; padding: 4px;
  border-radius: 14px;
  background: rgba(13, 22, 48, 0.04);
  box-shadow: inset 0 0 0 1px var(--line);
  flex-wrap: wrap;
}
.switcher button {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  min-height: 36px; padding: 0 12px;
  border-radius: 10px;
  font-size: 0.8125rem; font-weight: 660; color: var(--ink-2);
  transition: background-color 0.2s, box-shadow 0.2s, color 0.2s;
}
.switcher .m { font-size: 15px; }
.switcher .is-on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(10, 20, 60, 0.12), 0 0 0 1px var(--line); }
@media (hover: hover) { .switcher button:not(.is-on):hover { background: rgba(255, 255, 255, 0.6); } }

.answer {
  margin-top: 10px; padding: 12px 14px;
  border-radius: 14px;
  background: #f6f8fd;
  box-shadow: inset 0 0 0 1px var(--line);
}
.answer__head { display: flex; align-items: center; gap: 7px; margin: 0; font-size: 0.8125rem; color: var(--muted); }
.answer__head .m { font-size: 15px; }
.answer__head b { font-weight: 720; color: var(--ink); }
.answer__dots { display: inline-flex; gap: 3px; margin-left: 2px; }
.answer__dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--blue-500); animation: dot 1.2s infinite ease-in-out; }
.answer__dots i:nth-child(2) { animation-delay: 0.15s; }
.answer__dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot { 0%, 80%, 100% { opacity: 0.25; transform: none; } 40% { opacity: 1; transform: translateY(-2px); } }
.answer__line { display: block; height: 8px; margin-top: 10px; border-radius: 99px; background: linear-gradient(90deg, #e3eaf8, #eef2fb); }
.answer__line--short { width: 62%; margin-top: 7px; }

/* Projects tile */
.shot {
  margin: 18px 0 0;
  overflow: hidden;
  border-radius: 12px;
  background: #f4f7fd;
  box-shadow: 0 0 0 1px var(--line), 0 12px 28px -18px rgba(10, 30, 90, 0.45);
}
.shot img { display: block; width: 100%; height: auto; aspect-ratio: 960 / 679; }

.tile--small h3 { margin-top: 14px; font-size: 1rem; }
.tile--small p { font-size: 0.875rem; }

.bento__cta { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 32px; text-align: center; }
.bento__cta .btn { width: 100%; max-width: 360px; }
.bento__cta p { font-size: 0.875rem; color: var(--muted); }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { display: grid; gap: 10px; }
.faq details {
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm);
  transition: box-shadow 0.2s;
}
/* .is-open flips the moment you tap, so the card style and icon don't wait for the animation */
.faq details { transition: box-shadow 0.3s, background-color 0.3s; }
.faq details[open]:not(.is-closing), .faq details.is-open { box-shadow: inset 0 0 0 1px rgba(10, 100, 255, 0.25), var(--shadow); background: #fff; }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 60px; padding: 16px 20px;
  font-size: 1rem; font-weight: 660; letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
  border-radius: var(--r);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i {
  flex: none;
  box-sizing: content-box;
  padding: 6px;
  border-radius: 50%;
  font-size: 16px;
  color: var(--blue-700);
  background: var(--blue-50);
  transition: transform 0.35s var(--ease), background-color 0.3s, color 0.3s;
}
.faq summary { -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none; }
@media (hover: hover) { .faq summary:hover .i { background: var(--blue-100); } }
.faq details[open]:not(.is-closing) summary .i, .faq details.is-open summary .i { transform: rotate(45deg); color: #fff; background: var(--blue-600); }
.faq__body { overflow: hidden; }
.faq details p { padding: 0 20px 20px; font-size: 0.9375rem; line-height: 1.6; color: var(--ink-2); }

/* ==========================================================================
   Final CTA
   ========================================================================== */
.cta {
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column; align-items: center;
  padding: 48px 24px;
  border-radius: var(--r-xl);
  text-align: center;
  color: #fff;
  background:
    radial-gradient(70% 70% at 100% 0%, rgba(116, 196, 255, 0.6) 0%, rgba(116, 196, 255, 0) 60%),
    radial-gradient(60% 70% at 0% 100%, rgba(63, 162, 255, 0.5) 0%, rgba(63, 162, 255, 0) 60%),
    linear-gradient(160deg, #1a82ff 0%, #0047ff 45%, #0329b8 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), var(--shadow-blue);
}
.cta__shine {
  position: absolute; left: -10%; right: -10%; top: -55%;
  height: 90%;
  border-radius: 0 0 50% 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0));
  pointer-events: none;
}
.cta > *:not(.cta__shine):not(.cta__orbit) { position: relative; }

/* AI logos floating around the text */
.cta__orbit { position: absolute; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none; }
.cta__logo {
  position: absolute;
  display: flex; align-items: center; justify-content: center;
  width: var(--s, 40px); height: var(--s, 40px);
  border-radius: 30%;
  font-size: calc(var(--s, 40px) * 0.5);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: inset 0 1px 0 #fff, inset 0 -2px 4px rgba(0, 30, 120, 0.1), 0 2px 4px rgba(0, 20, 90, 0.18), 0 14px 28px -10px rgba(0, 15, 80, 0.55);
  transform: rotate(var(--r, 0deg));
  animation: bob 6s ease-in-out infinite;
  animation-delay: var(--dl, 0s);
}
.cta__logo--dark { background: #0d0f14; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 2px 4px rgba(0, 20, 90, 0.25), 0 14px 28px -10px rgba(0, 15, 80, 0.6); }
.cta__logo--dark .m { color: #fff; }
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50% { transform: translateY(-7px) rotate(var(--r, 0deg)); }
}
/* phones and tablets: four tiles in the corners, clear of the text */
.cta__logo--1 { --s: 40px; --r: -8deg; top: 18px; left: 18px; }
.cta__logo--4 { --s: 40px; --r: 8deg; top: 18px; right: 18px; --dl: -1.5s; }
.cta__logo--2 { --s: 36px; --r: 6deg; bottom: 18px; left: 18px; --dl: -3s; }
.cta__logo--6 { --s: 36px; --r: -6deg; bottom: 18px; right: 18px; --dl: -4.5s; }
.cta__logo--3, .cta__logo--5 { display: none; }
/* phones: Gemini and Perplexity sit beside the heading, where the lines are shortest */
@media (max-width: 639px) {
  .cta__logo--3, .cta__logo--5 { display: flex; }
  .cta__logo--3 { --s: 32px; --r: 7deg; top: 180px; left: 14px; --dl: -2s; }
  .cta__logo--5 { --s: 32px; --r: -7deg; top: 180px; right: 14px; --dl: -5s; }
}
@media (max-width: 359px) {
  .cta__logo--3 { --s: 28px; top: 184px; left: 10px; }
  .cta__logo--5 { --s: 28px; top: 184px; right: 10px; }
}
.cta__icon { width: 72px; height: 72px; filter: drop-shadow(0 10px 20px rgba(0, 20, 120, 0.5)); }
.cta h2 {
  margin-top: 22px;
  font-size: clamp(2rem, 1.3rem + 3.4vw, 3.25rem);
  line-height: 1.04; letter-spacing: -0.04em; font-weight: 760;
  text-wrap: balance;
}
.cta p { margin: 14px 0 28px; max-width: 40ch; font-size: 1.0625rem; color: rgba(255, 255, 255, 0.85); text-wrap: balance; }

/* ==========================================================================
   Footer
   ========================================================================== */
/* Frosted footer: blurs the page background behind it, and its top edge fades in
   so there's no hard line where it starts */
.footer {
  position: relative;
  isolation: isolate;
  padding: 64px 0 calc(28px + env(safe-area-inset-bottom));
}
.footer::before {
  content: "";
  position: absolute; top: -40px; left: 0; right: 0; bottom: 0; z-index: -1;
  background: rgba(251, 252, 255, 0.55);
  -webkit-backdrop-filter: blur(28px) saturate(1.5);
  backdrop-filter: blur(28px) saturate(1.5);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.55) 45%, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.55) 45%, #000 100%);
}
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .footer::before { background: rgba(251, 252, 255, 0.85); }
}
.footer__top { display: grid; gap: 36px; }
.footer__brand { max-width: 320px; }
.footer__logo { display: inline-block; border-radius: 10px; }
.footer__logo img { width: 96px; height: 35px; }
.footer__tagline { margin-top: 14px; font-size: 0.9375rem; line-height: 1.55; color: var(--ink-2); }
.footer__mail {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 16px; min-height: 40px; padding: 0 14px 0 12px;
  border-radius: 12px;
  font-size: 0.875rem; font-weight: 610; color: var(--ink);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 1px 2px rgba(10, 20, 60, 0.04);
  transition: box-shadow 0.2s, color 0.2s;
}
.footer__mail .i, .footer__secure .i { font-size: 16px; color: var(--blue-700); }
@media (hover: hover) { .footer__mail:hover { color: var(--blue-900); box-shadow: inset 0 0 0 1px rgba(10, 100, 255, 0.35), 0 4px 12px -6px rgba(10, 60, 200, 0.35); } }

.footer__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
.footer__head { font-size: 0.8125rem; font-weight: 720; letter-spacing: -0.005em; color: var(--ink); }
.footer__col ul { display: grid; gap: 2px; margin-top: 10px; }
.footer__col a {
  display: inline-flex; align-items: center;
  min-height: 34px;
  font-size: 0.9375rem; color: var(--muted);
  transition: color 0.2s;
}
@media (hover: hover) { .footer__col a:hover { color: var(--blue-700); } }

.footer__bottom {
  display: flex; flex-direction: column; gap: 10px;
  margin-top: 44px;
  font-size: 0.8125rem; line-height: 1.5; color: var(--faint);
}
.footer__secure { display: inline-flex; align-items: center; gap: 6px; }

/* Hero entrance: CSS only, so the headline never waits on JS */
.rise { animation: rise 0.8s var(--ease) both; animation-delay: calc(var(--d, 0) * 60ms); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   >= 400px
   ========================================================================== */
@media (min-width: 400px) {
}

/* ==========================================================================
   >= 640px (large phones landscape, small tablets)
   ========================================================================== */
@media (min-width: 640px) {
  :root { --pad: 28px; }
  .section { padding: 104px 0; }
  .hero { padding: 64px 0 96px; }
  .hero__lead { max-width: 34ch; }
  .nav__login { display: inline-flex; }

  .receipt { padding: 28px 28px 38px; }
  .receipt__label { font-size: 0.75rem; }
  .dcard { padding: 28px; }
  .stack { display: flex; }

  .uses { grid-template-columns: 1fr 1fr; }
  .uses .use:last-child { grid-column: 1 / -1; }
  .trust { grid-template-columns: repeat(3, auto); justify-content: space-around; }
  .offer { grid-template-columns: 1fr 240px; align-items: center; gap: 36px; padding: 30px 30px 30px 36px; }
  .secure { justify-content: center; text-align: center; }
  .cta { padding: 64px 32px; }
  .cta__logo--1 { --s: 54px; top: 20%; left: 6%; }
  .cta__logo--2 { --s: 48px; top: 60%; left: 4%; bottom: auto; }
  .cta__logo--4 { --s: 52px; top: 18%; right: 6%; }
  .cta__logo--6 { --s: 46px; top: 62%; right: 4%; bottom: auto; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile--router, .tile--switch, .tile--projects { grid-column: 1 / -1; }
  .tile--small:last-child { grid-column: 1 / -1; }
  .footer__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__bottom { flex-direction: row; align-items: center; justify-content: space-between; gap: 20px; }
}

/* ==========================================================================
   >= 900px (tablet landscape, desktop)
   ========================================================================== */
@media (min-width: 900px) {
  :root { --nav-gap: 14px; --bar-h: 56px; }
  .nav__bar { width: calc(100% - 32px); padding: 0 10px 0 18px; }
  .nav__bar::before { border-radius: 20px; }
  /* Links sit in their own floating pill at the top of the page; once the island
     appears, the pill's background fades out so the links blend into it. */
  .nav__tab {
    position: absolute; left: 50%; top: 50%;
    isolation: isolate;
    display: flex; align-items: center; gap: 2px;
    height: 44px; padding: 0 5px;
    transform: translate(-50%, -50%);
  }
  .nav__tab::before {
    content: "";
    position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: -1;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.88);
    box-shadow: 0 0 0 1px var(--line), 0 2px 4px rgba(10, 30, 90, 0.04), 0 10px 26px -12px rgba(10, 30, 90, 0.22);
    transition: opacity 0.35s ease;
  }
  .nav.is-scrolled .nav__tab::before { opacity: 0; }
  .nav__tab a {
    padding: 8px 14px; border-radius: 999px;
    font-size: 0.875rem; font-weight: 560; color: var(--ink-2);
    transition: background-color 0.2s, color 0.2s;
  }
  .nav__tab a:hover { color: var(--ink); background: rgba(10, 100, 255, 0.07); }
  .nav__toggle, .menu { display: none !important; }

  .bg__blobs {
    /* Desktop: matches the reference composition. Left blob low, right blob high. */
    background:
      radial-gradient(14% 22% at 13% 64%, rgba(206, 236, 255, 0.95) 0%, rgba(206, 236, 255, 0) 70%),
      radial-gradient(12% 34% at 1% 46%, rgba(0, 40, 200, 0.85) 0%, rgba(0, 40, 200, 0) 70%),
      radial-gradient(22% 22% at 20% 100%, rgba(0, 52, 220, 0.85) 0%, rgba(0, 52, 220, 0) 70%),
      radial-gradient(40% 62% at -2% 74%, rgb(26, 118, 255) 0%, rgba(44, 136, 255, 0.88) 44%, rgba(90, 170, 255, 0) 74%),
      radial-gradient(14% 22% at 88% 10%, rgba(206, 236, 255, 0.9) 0%, rgba(206, 236, 255, 0) 70%),
      radial-gradient(12% 34% at 100% 38%, rgba(0, 40, 200, 0.85) 0%, rgba(0, 40, 200, 0) 70%),
      radial-gradient(18% 24% at 74% -2%, rgba(0, 52, 220, 0.75) 0%, rgba(0, 52, 220, 0) 70%),
      radial-gradient(40% 62% at 102% 16%, rgb(26, 118, 255) 0%, rgba(44, 136, 255, 0.88) 44%, rgba(90, 170, 255, 0) 74%);
    animation: drift 26s ease-in-out infinite alternate;
  }
  .bg::after {
    -webkit-mask-image: radial-gradient(48% 74% at -2% 74%, #000 35%, transparent 72%), radial-gradient(48% 74% at 102% 16%, #000 35%, transparent 72%);
    mask-image: radial-gradient(48% 74% at -2% 74%, #000 35%, transparent 72%), radial-gradient(48% 74% at 102% 16%, #000 35%, transparent 72%);
  }

  .hero { padding: 96px 0 128px; min-height: calc(100vh - var(--nav-h)); display: flex; align-items: center; }
  .hero__title { margin-top: 30px; }
  .hero__lead { max-width: 44ch; }
  .models { gap: 12px; margin-top: 40px; }
  .models li { width: 52px; height: 52px; border-radius: 15px; }
  .models .m { font-size: 27px; }
  .hero__models { font-size: 0.9375rem; max-width: 52ch; }

  .section { padding: 128px 0; }
  .section__head { margin-bottom: 56px; }
  .pricing .section__head { max-width: 760px; }

  .math__grid { grid-template-columns: 1fr 72px 1fr; align-items: center; }
  .receipt { padding: 32px 32px 40px; }
  .math__or { padding: 0; }
  .dcard { padding: 32px; }

  .uses { grid-template-columns: repeat(3, 1fr); }
  .uses .use:last-child { grid-column: auto; }
  .use { padding: 28px; }

  .footer__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 48px; align-items: start; }
  .footer__cols { justify-self: end; width: 100%; max-width: 560px; }
  /* Starter+ is wider and taller than its neighbours */
  .plans { grid-template-columns: 1fr 1.14fr 1fr; align-items: center; gap: 18px; padding-top: 20px; }
  .pc { padding: 26px 22px 22px; }
  .pc--starter { padding: 54px 30px 46px; z-index: 1; }
  .pc--starter .pc__name { font-size: 1.5rem; }
  .pc--starter .pc__tagline { font-size: 0.9375rem; }
  .pc--starter .pc__price { margin-top: 18px; }
  .pc--starter .pc__price > span { font-size: 3.5rem; }
  .pc--starter .pc__group { margin-top: 22px; }
  .pc--starter .pc__group ul { gap: 11px; }
  .pc--starter .pc__group li { font-size: 1rem; }
  .pc--starter .pc__panel { padding: 14px; }
  .pc--starter .pc__chips .lt { width: 32px; height: 32px; font-size: 18px; }
  .pc--starter .pc__bonus { padding: 14px 16px; }
  .pc--starter .pc__cta { min-height: 60px; font-size: 1.0625rem; }

  /* desktop: all six scattered around the text */
  .cta__logo--3, .cta__logo--5 { display: flex; }
  .cta__logo--1 { --s: 66px; --r: -9deg; top: 18%; left: 11%; }
  .cta__logo--2 { --s: 56px; --r: 7deg; top: 50%; left: 4.5%; bottom: auto; --dl: -2s; }
  .cta__logo--3 { --s: 48px; --r: -5deg; top: 74%; left: 18%; --dl: -4s; }
  .cta__logo--4 { --s: 62px; --r: 9deg; top: 16%; right: 11%; --dl: -1s; }
  .cta__logo--5 { --s: 54px; --r: -7deg; top: 48%; right: 4.5%; --dl: -3s; }
  .cta__logo--6 { --s: 48px; --r: 5deg; top: 73%; right: 18%; bottom: auto; --dl: -5s; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .steps::before {
    top: 50px; bottom: auto; left: 12%; right: 12%;
    width: auto; height: 2px;
    background: linear-gradient(90deg, var(--blue-300), var(--blue-600));
  }
  .step { display: flex; flex-direction: column; padding: 24px; }
  .step .icon-tile { margin-bottom: 20px; }
  .step__num { top: 22px; right: 22px; font-size: 0.8125rem; }

  .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
  .tile { padding: 26px; }
  .tile--router { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 40px; padding: 34px; }
  .tile--router .tile__copy { flex: 1 1 0; min-width: 0; }
  .tile--router .router { flex: 1.1 1 0; min-width: 0; padding: 16px; }
  .tile--switch, .tile--projects { grid-column: span 3; }
  .tile--small, .tile--small:last-child { grid-column: span 2; }
  .bento__cta { margin-top: 40px; }
  .bento__cta .btn { width: auto; }
}

@media (min-width: 900px) and (max-width: 1099px) {
  .nav__tab a { padding: 8px 10px; }
  .nav__login { display: none; }
}

@media (min-width: 1200px) {
  .hero__title { letter-spacing: -0.048em; }
}

@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(1.5%, -2%, 0) scale(1.04); }
}

/* ---------- Motion & print preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .bg, .nav, .skip { display: none; }
}
