/* ─────────── TOKENS ─────────── */
:root {
  --bg:        #020617;   /* slate-950 */
  --surface:  #0f172a;   /* slate-900 */
  --surface-2:#1e293b;   /* slate-800 */
  --line:     rgba(255,255,255,0.10);
  --line-soft:rgba(255,255,255,0.05);
  --text:     #ffffff;
  --muted:    #94a3b8;   /* slate-400 */
  --accent:   #3b82f6;   /* blue-500 */
  --accent-2: #2563eb;   /* blue-600 */
  --success-bg:rgba(20,83,45,0.30);
  --success-bd:rgba(22,101,52,0.50);
  --success-fg:#4ade80;
  --shadow-sm: 0 4px 6px -4px rgba(59,130,246,.2), 0 10px 15px -3px rgba(59,130,246,.2);
  --shadow-card: 0 25px 50px -12px rgba(0,0,0,.5);

  --font-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-sans:    "Inter", system-ui, sans-serif;

  --page-x: clamp(20px, 5vw, 80px);
  --radius: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; margin: 0; }
button { font: inherit; cursor: pointer; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ─────────── BUTTONS / SHARED ─────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 500;
  border-radius: 8px;
  padding: 10px 20px;
  border: 1px solid transparent;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--accent-2); }
.btn--ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line);
}
.btn--ghost:hover { background: #131c30; }
.btn--pill { border-radius: 9999px; padding: 8px 22px; }
.btn--lg { padding: 14px 32px; font-size: 16px; border-radius: 8px; }

.eyebrow {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-transform: uppercase;
  margin: 0;
}
.eyebrow--sm { font-size: 13px; letter-spacing: 0.12em; }
.eyebrow--badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  padding: 6px 14px;
  border-radius: 9999px;
  /* Dark mode: border only */
  background: transparent;
  border: 1px solid rgba(255,255,255,0.14);
  color: var(--accent);
  box-shadow: 0 1px 0 rgba(255,255,255,0.10) inset;
  position: relative;
  overflow: hidden;
}
.eyebrow--badge::before { display: none; }
.eyebrow__icon {
  width: 14px; height: 14px;
  display: inline-block;
  background: var(--accent);
  -webkit-mask: url("assets/icon-sparkle.svg") center / contain no-repeat;
          mask: url("assets/icon-sparkle.svg") center / contain no-repeat;
}
.footer__credit-icon {
  width: 18px; height: 18px;
  display: inline-block;
  background: var(--accent);
  -webkit-mask: url("assets/icon-wand.svg") center / contain no-repeat;
          mask: url("assets/icon-wand.svg") center / contain no-repeat;
}

/* ─────────── NAV ─────────── */
.nav-wrap {
  position: fixed;
  inset: 24px 32px auto 32px;
  z-index: 50;
  pointer-events: none;
}
.nav {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 18px 14px 22px;
  /* ── Liquid glass ──
   * 1. Near-invisible tinted bg — content bleeds through
   * 2. High-saturation blur — colors refract vividly
   * 3. Specular rim — top highlight + hairline border
   * 4. Inner glow — simulates glass thickness
   */
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 9999px;
  backdrop-filter: blur(28px) saturate(150%) brightness(1.0);
  -webkit-backdrop-filter: blur(28px) saturate(150%) brightness(1.0);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.18) inset,
    0 -1px 0 rgba(0,0,0,0.12) inset,
    0 8px 32px -8px rgba(0,0,0,0.32),
    0 2px 8px -2px rgba(0,0,0,0.18);
  position: relative;
  transition: background .2s ease, box-shadow .2s ease, border-color .2s ease;
}

/* Top-edge specular highlight */
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.10) 0%,
    rgba(255,255,255,0.00) 55%
  );
  pointer-events: none;
}

.nav-wrap--scrolled .nav {
  background: rgba(255,255,255,0.11);
  border-color: rgba(255,255,255,0.20);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.22) inset,
    0 -1px 0 rgba(0,0,0,0.12) inset,
    0 16px 48px -12px rgba(0,0,0,0.38),
    0 4px 12px -4px rgba(0,0,0,0.20);
}

.nav-wrap--scrolled .nav {
  background: rgba(8,12,26,0.72);
  border-color: rgba(255,255,255,0.12);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.14) inset,
    0 -1px 0 rgba(0,0,0,0.20) inset,
    0 16px 48px -12px rgba(0,0,0,0.55),
    0 4px 12px -4px rgba(0,0,0,0.30);
}

.brand { display: inline-flex; align-items: center; gap: 8px; }
.brand__mark {
  display: inline-block;
  width: 21px; height: 21px;
  background: var(--accent);
  -webkit-mask: url("assets/icon-logo-nav.svg") center / contain no-repeat;
          mask: url("assets/icon-logo-nav.svg") center / contain no-repeat;
  flex-shrink: 0;
}
.brand__mark--lg {
  -webkit-mask-image: url("assets/icon-logo.svg");
          mask-image: url("assets/icon-logo.svg");
}
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--text);
}
.brand--lg .brand__mark--lg { width: 26px; height: 26px; }
.brand--lg .brand__name--lg { font-size: 28px; }

.nav__links {
  display: flex;
  gap: 28px;
}
.nav__links a {
  color: var(--muted);
  font-weight: 500;
  font-size: 15px;
  transition: color .15s ease;
}
.nav__links a:hover { color: var(--text); }

.nav__cta {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav__signin {
  color: var(--muted);
  font-weight: 500;
  font-size: 15px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  padding: 0;
}
.nav__signin:hover { color: var(--text); }

.nav__burger {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  width: 36px; height: 36px;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
}
.nav__burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

@media (max-width: 980px) {
  .nav-wrap { inset: 16px 16px auto 16px; }
  .nav { padding: 10px 10px 10px 18px; border-radius: 18px; flex-wrap: wrap; }
  .nav__links {
    order: 3;
    flex-basis: 100%;
    flex-direction: column;
    gap: 4px;
    padding: 8px 4px 4px;
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
  }
  .nav__links--open { max-height: 320px; }
  .nav__links a { padding: 10px 8px; font-size: 16px; display: block; }
  .nav__burger { display: flex; }
  .nav__cta .nav__signin { display: none; }
}
@media (max-width: 480px) {
  .nav__cta .btn--pill { padding: 8px 14px; font-size: 14px; }
}

/* ─────────── HERO ─────────── */
.hero {
  position: relative;
  padding: clamp(160px, 21vh, 240px) var(--page-x) clamp(40px, 5vh, 60px);
  background: var(--bg);
  overflow: hidden;
  isolation: isolate;
}
.hero__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% -10%, #2563EB 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.hero__inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  position: relative;
  z-index: 2;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 6.4vw, 64px);
  line-height: 1.25;       /* 80px @ 64px per Figma */
  letter-spacing: -0.04em; /* -2.56px @ 64px per Figma */
  margin: 0;
  text-wrap: balance;
  position: relative;
  z-index: 3;
  /* Keeps title legible when floating cards drift behind it */
  text-shadow: 0 2px 24px rgba(2,6,23,0.55);
}

.hero__sub {
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.6;
  color: var(--muted);
  max-width: 640px;
  margin: 0;
  text-wrap: pretty;
}

/* Gradient sub-line of the headline — adapts per theme so it stays
 * legible against both dark and light backgrounds. */
.hero__title-gradient {
  background: linear-gradient(90deg, #2563eb, #60a5fa);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: none; /* override the parent title's dark-mode text-shadow */
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

.social-proof {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
  margin-top: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.avatar-stack { display: inline-flex; }
.avatar-stack img {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  object-fit: cover;
  background: var(--surface-2);
}
.avatar-stack img + img { margin-left: -10px; }

/* ─────────── FLOATING DOC CARDS ─────────── */
.floating {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.doc-card {
  --x: 0; --y: 0; --rot: 0deg;
  position: absolute;
  left: calc(var(--page-x) + var(--x));
  top: calc(180px + var(--y));
  width: 170px;
  border-radius: 16px;
  /* Dark mode: border only, no bg fill */
  background: transparent;
  border: 1px solid rgba(255,255,255,0.12);
  padding: 12px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.10) inset,
    0 20px 40px -12px rgba(0,0,0,0.40);
  transform: rotate(var(--rot));
  will-change: transform;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: absolute;
  overflow: hidden;
}
/* No shimmer in dark mode */
.doc-card::before { display: none; }
.doc-card > * { position: relative; z-index: 1; }
.doc-card.right {
  left: auto;
  right: calc(var(--page-x) + var(--x));
}

.doc-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
}
.doc-card__head--split { justify-content: space-between; }
.doc-card__icon-wrap { display: inline-flex; align-items: center; gap: 8px; }
.doc-card__icon {
  display: inline-block;
  width: 14px; height: 14px;
  background: var(--accent);
  -webkit-mask: var(--icon) center / contain no-repeat;
          mask: var(--icon) center / contain no-repeat;
  flex-shrink: 0;
}
.doc-card__icon img { display: none; }

/* Map each doc-card icon to its asset */
.doc-card--certificate .doc-card__icon { --icon: url("assets/icon-certificate.svg"); }
.doc-card--invoice     .doc-card__icon { --icon: url("assets/icon-invoice.svg"); }
.doc-card--contract    .doc-card__icon { --icon: url("assets/icon-contract.svg"); }
.doc-card--report      .doc-card__icon { --icon: url("assets/icon-report.svg"); }
.doc-card--form        .doc-card__icon { --icon: url("assets/icon-form.svg"); }
.doc-card--idcard      .doc-card__icon { --icon: url("assets/icon-idcard.svg"); }
.doc-card--agreement   .doc-card__icon { --icon: url("assets/icon-agreement.svg"); }
.doc-card--spreadsheet .doc-card__icon {
  --icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10.667 10.667' fill='black'><path d='M 8 10.667 L 8 6 L 10.667 6 L 10.667 10.667 L 8 10.667 L 8 10.667 M 4 10.667 L 4 0 L 6.667 0 L 6.667 10.667 L 4 10.667 L 4 10.667 M 0 10.667 L 0 3.333 L 2.667 3.333 L 2.667 10.667 L 0 10.667 L 0 10.667' fill-rule='nonzero'/></svg>");
}
.doc-card__title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.doc-card__body { padding-top: 2px; }
.doc-card__body--cert {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.cert-badge {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 2px solid var(--accent);
  display: grid;
  place-items: center;
}
.cert-badge__diamond {
  width: 12px; height: 12px;
  background: var(--accent);
  transform: rotate(45deg);
}

.bar { height: 6px; background: var(--surface-2); border-radius: 4px; }
.bar--dark { background: var(--surface); }
.bar--sm   { width: 50%; }
.bar--md   { width: 75%; }
.bar--40   { width: 40px; }
.bar--48   { width: 48px; }
.bar--24   { width: 24px; }
.bar--32   { width: 32px; }
.bar--64   { width: 64px; }
.bar--full { width: 100%; }
.bar--two-thirds { width: 66%; }

.tag {
  display: inline-flex;
  align-items: center;
  font-size: 9px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 4px;
  background: var(--success-bg);
  color: var(--success-fg);
  border: 1px solid var(--success-bd);
}
.tag--pill { border-radius: 9999px; font-size: 11px; padding: 4px 10px; }
.meta { color: var(--muted); font-size: 9px; }

.doc-card__body--rows { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; justify-content: space-between; gap: 8px; }

.doc-card__body--bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  height: 36px;
}
.mini-bar {
  flex: 1;
  background: var(--surface-2);
  border-radius: 2px 2px 0 0;
}
.mini-bar--accent { background: var(--accent); }

.doc-card__body--id { display: flex; align-items: center; gap: 8px; }
.avatar-placeholder {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--surface-2);
  flex: 0 0 24px;
}
.id-lines { flex: 1; display: flex; flex-direction: column; gap: 6px; }

.doc-card__body--grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.doc-card__body--grid span {
  height: 10px;
  border-radius: 2px;
  background: var(--surface-2);
}

.doc-card__body--dotrows { display: flex; flex-direction: column; gap: 6px; }
.dotrow { display: flex; align-items: center; gap: 8px; }
.dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(59,130,246,0.5);
  flex-shrink: 0;
}

.doc-card__body--inputs { display: flex; flex-direction: column; gap: 8px; }
.input-stub {
  height: 16px;
  border-radius: 4px;
  background: rgba(15,23,42,0.5);
  border: 1px solid rgba(255,255,255,0.1);
}
.input-stub--short { width: 75%; }

.doc-card__body--center {
  display: flex;
  justify-content: center;
  padding-top: 4px;
}

/* Hide floating cards on small screens (they crowd the headline) */
@media (max-width: 1100px) {
  .floating { display: none; }
}

/* ─────────── SCROLL REVEAL ─────────── */
.sr {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity   0.72s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--sr-delay, 0ms);
}
.sr.sr--scale {
  transform: translateY(20px) scale(0.97);
}
.sr.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .sr { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ─────────── FIGMA BROWSER FRAME ─────────── */
.figma-browser {
  width: 100%;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18), 0 0 0 1px rgba(0,0,0,0.06);
}
.figma-browser__toolbar {
  height: 31.5px;
  background: #fff;
  border-bottom: 0.5px solid rgb(237,239,245);
  display: flex;
  align-items: center;
  padding: 0 15px;
  gap: 0;
  position: relative;
}
.figma-browser__lights {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}
.figma-browser__dot {
  width: 6.8px;
  height: 6.8px;
  border-radius: 50%;
  background: #000;
  display: block;
}
.figma-browser__dividers {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: 18px;
  flex-shrink: 0;
}
.figma-browser__divider {
  width: 0.85px;
  height: 10px;
  background: #000;
  opacity: 0.15;
}
.figma-browser__urlwrap {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(0,0,0,0.4);
}
.figma-browser__urlbar {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(167,175,205,0.20);
  border-radius: 4px;
  padding: 2px 10px;
  height: 17px;
  width: 368px;
  font-family: 'Mulish', -apple-system, sans-serif;
  font-weight: 700;
  font-size: 9.4px;
  color: #000;
  overflow: hidden;
  white-space: nowrap;
}
.figma-browser__lock {
  width: 5px;
  height: 7.5px;
  flex-shrink: 0;
  opacity: 0.7;
}
.figma-browser__content {
  width: 100%;
  line-height: 0;
}
.figma-browser__content img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0 0 8px 8px;
}

/* keep the outer showcase frame glow but no extra bg */
.showcase__frame:has(.figma-browser),
.showcase__frame--figma {
  background: transparent;
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.35), 0 0 0 1px rgba(0,0,0,0.06);
}

/* ── Browser chrome follows the site theme toggle ──
   Site default is dark (no [data-theme]) → dark chrome.
   [data-theme="light"] on <html> → revert to the bundle's
   built-in light chrome (var fallbacks). */
.showcase__frame--figma {
  --bw-chrome: rgb(30, 35, 48);     /* chrome surface */
  --bw-fg: rgb(203, 213, 225);      /* icons + text */
  --bw-divider: rgb(51, 63, 84);    /* tab/address divider */
  --bw-urlbar: rgb(120, 132, 168);  /* url pill */
  box-shadow: 0 32px 80px rgba(0,0,0,0.55), 0 0 0 1px rgba(148,163,184,0.12);
}
/* invert the placeholder content to read as a dark document */
.showcase__frame--figma .fig-asset-6c0776333f9662c0 {
  filter: invert(0.92) hue-rotate(180deg);
}
[data-theme="light"] .showcase__frame--figma {
  --bw-chrome: initial;
  --bw-fg: initial;
  --bw-divider: initial;
  --bw-urlbar: initial;
  box-shadow: 0 32px 80px rgba(0,0,0,0.35), 0 0 0 1px rgba(0,0,0,0.06);
}
[data-theme="light"] .showcase__frame--figma .fig-asset-6c0776333f9662c0 {
  filter: none;
}
.showcase__frame--figma::before,
.showcase__frame--figma::after {
  display: none;
}
/* Scale Figma component to fill container */
#figma-preview-root {
  width: 100%;
  overflow: hidden;
  position: relative;
}
#figma-preview-root > div {
  transform-origin: top left;
  /* JS will set the scale dynamically */
}
/* The paragraph is rebuilt as many small <span class="reveal-word">
   elements. Each word is painted with a moving gradient — left
   half white, right half grey — and `--reveal` slides 0% → 100%
   as the global scroll "fill pointer" walks across it.
   Spaces between words remain plain text nodes so the line
   wrapping is identical to a normal <p>. */
.reveal-text {
  color: rgba(255,255,255,0.25);  /* base grey, always visible */
}
.reveal-word {
  --reveal: 0%;
  background-image: linear-gradient(
    to right,
    #ffffff 0%,
    #ffffff var(--reveal),
    rgba(255,255,255,0.25) var(--reveal),
    rgba(255,255,255,0.25) 100%
  );
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
}
@property --reveal {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 0%;
}
/* ─────────── MISSION ─────────── */

.mission {
  text-align: center;
  padding: clamp(60px, 8vw, 100px) var(--page-x);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.mission__copy {
  margin: 0;
  max-width: 900px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.25;       /* 40px @ 32px per Figma */
  letter-spacing: -0.02em; /* -0.64px @ 32px per Figma */
  text-wrap: balance;
}
.bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: clamp(40px, 6vw, 80px) var(--page-x);
  background: var(--bg);
}
.bento .card--tall {
  grid-row: span 2;
}
@media (max-width: 880px) {
  .bento { grid-template-columns: 1fr; }
  .bento .card--tall { grid-row: auto; }
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 3.2vw, 40px);
  overflow: hidden;
  isolation: isolate;
}
.card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 12px 0 14px;
  color: #fff;
}
.card__title--md { font-size: clamp(20px, 2vw, 24px); }
.card__body {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  max-width: 46ch;
}

.card--feature .eyebrow--sm { color: var(--accent); }

.blob {
  position: absolute;
  width: 220px; height: 220px;
  border-radius: 50%;
  filter: blur(2px);
  z-index: -1;
}
.blob--right {
  background: rgba(59,130,246,0.10);
  right: -40px; bottom: -40px;
}
.blob--left {
  background: rgba(96,165,250,0.06);
  left: -60px; bottom: -40px;
}

/* Chart */
.card__art {
  margin-top: auto;
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 40px 24px 20px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 230px;
  margin-top: 28px;
}
.chart {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  gap: 14px;
  width: 100%;
  max-width: 420px;
  height: 130px;
}
.chart__bar {
  height: var(--h);
  background: var(--surface-2);
  border-radius: 4px 4px 0 0;
  position: relative;
}
.chart__bar--hi {
  background: var(--accent);
}
.chart__pill {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  color: var(--bg);
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

/* ─────────── PRICING ─────────── */
.pricing {
  position: relative;
  background: var(--bg);
  padding: clamp(80px, 10vw, 120px) var(--page-x);
  border-top: 1px solid var(--line);
  overflow: hidden;
}

/* Ambient glows — give the glass something colorful to refract */
.pricing::before,
.pricing::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.pricing::before {
  width: 600px; height: 400px;
  top: 10%; left: -8%;
  background: rgba(59,130,246,0.18);
  filter: blur(90px);
}
.pricing::after {
  width: 500px; height: 350px;
  top: 20%; right: -6%;
  background: rgba(99,102,241,0.14);
  filter: blur(80px);
}
.pricing__inner {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

/* Header */
.pricing__header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.pricing__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0;
  color: var(--text);
  text-wrap: balance;
}
.pricing__sub {
  margin: 0;
  color: var(--muted);
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.6;
}

/* Toggle */
.pricing__toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border-radius: 9999px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.pricing__period {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 22px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
  white-space: nowrap;
}
.pricing__period--active {
  background: var(--surface-2);
  color: var(--text);
}
.pricing__save-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 9999px;
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent);
  border: 1px solid rgba(59, 130, 246, 0.28);
  letter-spacing: 0.02em;
}

/* Grid — padding-top makes room for the "Most Popular" badge */
.pricing__grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
  padding-top: 20px;
  margin-top: -20px;
}
@media (max-width: 640px) {
  .pricing__grid { grid-template-columns: 1fr; padding-top: 28px; }
}

/* Card base */
.pricing-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.pricing-card::before { display: none; }
.pricing-card > * { position: static; z-index: auto; }

/* Pro highlight */
.pricing-card--pro {
  border-color: rgba(59,130,246,0.50);
  background: linear-gradient(150deg, rgba(59,130,246,0.07) 0%, var(--surface) 52%);
  box-shadow:
    0 0 0 1px rgba(59,130,246,0.14) inset,
    0 32px 64px -24px rgba(59,130,246,0.22),
    var(--shadow-card);
}

/* Badge */
.pricing-card__popular {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 9999px;
  background: var(--accent);
  color: #fff;
  white-space: nowrap;
  box-shadow: 0 4px 18px -4px rgba(59, 130, 246, 0.55);
}

/* Card head */
.pricing-card__head { display: flex; flex-direction: column; gap: 0; }
.pricing-card__name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.pricing-card__price {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin: 8px 0 4px;
}
.pricing-card__dollar {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--text);
  align-self: flex-start;
  padding-top: 10px;
}
.pricing-card__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 58px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--text);
  transition: opacity .18s ease;
}
.pricing-card__mo {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  margin-left: 2px;
  align-self: flex-end;
  margin-bottom: 8px;
}
.pricing-card__billed-note {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--muted);
  min-height: 18px;
}
.pricing-card__tagline {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}

/* Block CTA */
.btn--block { width: 100%; }

/* Feature list */
.pricing-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.pricing-card__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.4;
}
.pricing-card__list li::before {
  content: '';
  display: block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 6.5-6.5' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 6.5-6.5' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}
.pricing-card--pro .pricing-card__list li {
  color: rgba(255, 255, 255, 0.78);
}

/* Footnote */
.pricing__footnote {
  margin: -16px 0 0;
  font-size: 12px;
  color: var(--muted);
  opacity: 0.60;
  letter-spacing: 0.01em;
}

/* All plans include */
.pricing__all-include {
  width: 100%;
  padding: 24px 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pricing__all-label {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.pricing__all-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 48px;
}
.pricing__all-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}
.pricing__all-list li::before {
  content: '';
  display: block;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 6.5-6.5' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 6.5-6.5' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Trust logos */
.pricing__trust {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding-top: 4px;
}
.pricing__trust-label {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.55;
}
.pricing__trust-logos {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
}
.pricing__logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
  color: var(--muted);
  opacity: 0.35;
  transition: opacity .2s ease;
  user-select: none;
}
.pricing__logo:hover { opacity: 0.60; }

/* ─────────── FOOTER ─────────── */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding-top: 64px;
  margin-top: 60px;
}
.footer__top {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--page-x) 56px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr);
  gap: 60px;
}
@media (max-width: 820px) {
  .footer__top { grid-template-columns: 1fr; gap: 40px; }
}
.footer__brand .brand { margin-bottom: 16px; }
.footer__blurb {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  max-width: 420px;
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 480px) {
  .footer__cols { grid-template-columns: 1fr 1fr; }
}
.footer__col h4 {
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}
.footer__col li { margin-bottom: 10px; }
.footer__col a {
  color: var(--muted);
  font-size: 14px;
  transition: color .15s ease;
}
.footer__col a:hover { color: #fff; }

.footer__bottom {
  border-top: 1px solid var(--line);
  padding: 22px var(--page-x);
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 12px;
  flex-wrap: wrap;
}
.footer__credit {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
/* footer__credit img colored via mask above */

/* Focus states (a11y) */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ─────────── SMOOTH EXPERIENCE LAYER ───────────
 * Purely additive: smoother scrolling + eased state changes.
 * No layout, color, size, or content is altered — only the
 * timing of transitions that already happen on interaction. */

/* Smooth anchor scrolling, offset for the floating nav */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

/* Eased state changes on interactive elements (color/shadow/border
   only — these properties already change on hover/focus; we just
   make the change glide instead of snap). */
.nav-wrap .nav,
.nav__links a,
.nav__signin,
.footer__col a,
.pricing__logo,
.brand,
.eyebrow--badge,
.avatar-stack img {
  transition: background-color .25s ease,
              border-color .25s ease,
              color .2s ease,
              box-shadow .25s ease,
              opacity .2s ease,
              transform .2s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Cards & inputs: glide their hover/focus shadow + border */
.feature-card,
.pricing-card,
.doc-card,
input,
textarea,
select {
  transition: background-color .25s ease,
              border-color .25s ease,
              box-shadow .3s cubic-bezier(0.22, 1, 0.36, 1),
              transform .25s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Buttons: keep the existing press feedback but soften the curve */
.btn {
  transition: transform .18s cubic-bezier(0.22, 1, 0.36, 1),
              background-color .22s ease,
              border-color .22s ease,
              box-shadow .25s ease,
              color .2s ease;
}

/* Honour reduced-motion: disable smoothing for users who ask. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
