/* ── Fallback webfonts (non-Apple only) ──────────────────────────────────
   Never fetched on macOS/iOS: SF Pro wins the stack before the browser gets
   here. Self-hosted woff2, so no external CDN — works offline and satisfies a
   `font-src 'self'` CSP. */
@font-face {
  font-family: "Inter";
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/inter-400.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/inter-500.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/inter-600.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-500.woff2") format("woff2");
}

/* ── TaskBit design system — tokens ──────────────────────────────────── */
:root {
  /* Brand: Electric Violet backbone · Blue secondary · Cyan accent (sparing) · Coral CTA */
  --primary: #7a3ff2;
  --primary-600: #6a2fe0;
  --primary-50: #f2ecfe;
  --secondary: #2e6bff;
  --accent: #10cfe0;
  --cta: #ff6a3d;
  --cta-2: #ff3d7f;
  /* Surfaces & text — cool/blue-tinted neutrals, never pure grey */
  --bg: #f4f5fb;
  --panel: #ffffff;
  --panel-2: #eceef7;
  --text: #14161f;
  --muted: #5b6070;
  --border: #e4e7f2;
  --ink: #14161f; /* intentionally-dark surface (feature/workflow/CTA bands) */
  /* Status — colour = meaning */
  --ok: #12c48b;
  --ok-text: #0b7a57;
  --ok-soft: #e4f8f0;
  --warn: #ffb020;
  --danger: #ff4d5e;
  /* Signature gradients */
  --grad-brand: linear-gradient(135deg, #7a3ff2, #2e6bff);
  --grad-aurora: linear-gradient(135deg, #7a3ff2, #2e6bff, #10cfe0);
  --grad-cta: linear-gradient(135deg, #ff6a3d, #ff3d7f);
  /* Type — SF Pro via the system stack, matching the product exactly.
     Apple ships SF Pro on every Mac/iPhone/iPad, so `-apple-system` resolves to
     it natively with real optical sizing and zero download. Apple's licence
     does not allow self-hosting the woff2 for the open web, so Inter (which we
     DO self-host) is the fallback everywhere else. */
  --display:
    "SF Pro Display", -apple-system, BlinkMacSystemFont, "SF Pro", "Inter",
    system-ui, "Segoe UI", Roboto, sans-serif;
  --body:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro", "Inter",
    system-ui, "Segoe UI", Roboto, sans-serif;
  --mono:
    ui-monospace, "SF Mono", SFMono-Regular, Menlo, "IBM Plex Mono", monospace;
  /* SF tightens as it scales, so headline tracking comes from a token rather
     than one hand-picked value applied at every size. */
  --tracking-display: -0.03em;
  --tracking-tight: -0.018em;
  /* Elevation — tinted to --text, not black */
  --shadow: 0 24px 80px rgba(20, 22, 31, 0.14);
  --shadow-soft: 0 16px 44px rgba(20, 22, 31, 0.08);
  --radius: 22px;
  /* Legacy aliases → remapped onto the system so existing rules recolour */
  --ink-soft: var(--muted);
  --purple: var(--primary);
  --purple-dark: var(--primary-600);
  --lavender: var(--primary-50);
  --lime: var(--accent); /* bright pop → Cyan */
  --mint: var(--ok-soft); /* success tint → soft green */
  --orange: var(--cta); /* → Coral */
  --sky: #a9e8f2; /* soft cyan */
  --paper: var(--bg);
  --white: var(--panel);
  --line: var(--border);
  color-scheme: light dark;
}

/* ── Midnight — dark mode via OS preference ──────────────────────────────
 Flip the canvas/text/panels; lift violet & blue so they stay legible;
 dim the gradient washes. The in-hero product screenshot keeps its light
 literals on purpose — it depicts the light-mode app. */
@media (prefers-color-scheme: dark) {
  :root {
    --primary: #9b6bff;
    --primary-600: #7a3ff2;
    --primary-50: rgba(155, 107, 255, 0.18);
    --secondary: #5b8cff;
    --accent: #3fe0ee;
    --cta: #ff855e;
    --cta-2: #ff5e9a;
    --bg: #0b0d14;
    --panel: #161a24;
    --panel-2: #232838;
    --text: #f4f5f8;
    --muted: #a6abbc;
    --border: #262b3a;
    --ink: #1b2130; /* lifted dark surface so bands stay distinct */
    --ok: #2de0a6;
    --ok-text: #2de0a6;
    --ok-soft: rgba(45, 224, 166, 0.16);
    --grad-aurora: linear-gradient(135deg, #3a1a7a, #1e3a8a, #0e5b66);
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
    --shadow-soft: 0 16px 44px rgba(0, 0, 0, 0.4);
    --sky: rgba(63, 224, 238, 0.2);
  }
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}
body {
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font: 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Numeric / data figures in mono, tabular — matches the app's data voice. */
.stat strong,
.price,
.pay-widget strong,
.story-badge {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}
body.menu-open {
  overflow: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
}
button {
  color: inherit;
}
img,
svg {
  display: block;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 1.08;
  /* Was a flat -0.045em, tuned for Bricolage Grotesque. SF Pro Display is
     already drawn tight, so carrying that value over cramped the headlines. */
  letter-spacing: var(--tracking-display);
}
.container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}
.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;
}
.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  transform: translateY(-150%);
  background: var(--ink);
  color: white;
  padding: 10px 16px;
  border-radius: 8px;
}
.skip-link:focus {
  transform: translateY(0);
}
:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  transition: 0.25s ease;
}
.site-header.scrolled {
  background: color-mix(in srgb, var(--panel) 85%, transparent);
  border-bottom: 1px solid var(--border);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.nav {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font: 800 22px/1 var(--display);
  letter-spacing: -0.04em;
}
.logo-mark {
  width: 37px;
  height: 37px;
  border-radius: 12px;
  background: var(--grad-brand);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(122, 63, 242, 0.3);
  transform: rotate(-3deg);
}
.logo-mark svg {
  width: 22px;
}
.logo strong {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-weight: 600;
  font-size: 14px;
}
.nav-links a {
  position: relative;
  color: var(--muted);
}
.nav-links a::after {
  content: "";
  position: absolute;
  inset: auto 50% -7px;
  height: 2px;
  background: var(--purple);
  transition: 0.2s;
}
.nav-links a:hover::after {
  inset-inline: 0;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn {
  min-height: 48px;
  padding: 0 21px;
  border: 1px solid transparent;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    background 0.2s;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 12px 30px rgba(122, 63, 242, 0.28);
}
.btn-primary:hover {
  background: var(--primary-600);
  box-shadow: 0 15px 34px rgba(122, 63, 242, 0.36);
}
/* The single stand-out Coral CTA per screen — gradient + warm glow. */
.btn-cta {
  background: var(--grad-cta);
  color: #fff;
  box-shadow: 0 12px 30px rgba(255, 106, 61, 0.32);
}
.btn-cta:hover {
  box-shadow: 0 16px 40px rgba(255, 61, 127, 0.42);
}
.btn-dark {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 12px 26px rgba(16, 21, 43, 0.2);
}
.btn-light {
  background: var(--panel);
  border-color: var(--border);
  color: var(--text);
}
.btn-large {
  min-height: 56px;
  padding-inline: 26px;
  font-size: 15px;
}
.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 13px;
  place-items: center;
}
.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  width: 20px;
  height: 2px;
  background: var(--text);
  display: block;
  transition: 0.2s;
}
.menu-toggle span {
  margin-block: 4px;
}
.menu-toggle[aria-expanded="true"] span {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"]::before {
  transform: translateY(6px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"]::after {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 930px;
  padding: 152px 0 76px;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 13% 18%,
      rgba(122, 63, 242, 0.2),
      transparent 26%
    ),
    radial-gradient(
      circle at 88% 12%,
      rgba(16, 207, 224, 0.22),
      transparent 26%
    ),
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--primary) 8%, var(--bg)),
      var(--bg) 78%
    );
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(116, 72, 245, 0.13);
  border-radius: 50%;
  pointer-events: none;
}
.hero::before {
  width: 620px;
  height: 620px;
  top: -310px;
  right: -160px;
}
.hero::after {
  width: 430px;
  height: 430px;
  left: -260px;
  top: 210px;
}
.hero-copy {
  text-align: center;
  position: relative;
  z-index: 1;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  padding: 7px 13px 7px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel) 72%, transparent);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
}
.eyebrow-dot {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--lime);
  color: var(--ink);
  font-size: 12px;
}
.hero h1 {
  max-width: 900px;
  margin: 0 auto 22px;
  font-size: clamp(48px, 7vw, 82px);
  font-weight: 800;
}
.hero h1 span {
  color: var(--purple);
  position: relative;
  white-space: nowrap;
}
.hero h1 span::after {
  content: "";
  position: absolute;
  left: 3%;
  right: 0;
  bottom: -3px;
  height: 9px;
  background: var(--lime);
  border-radius: 50%;
  z-index: -1;
  transform: rotate(-1deg);
}
.hero-lede {
  max-width: 650px;
  margin: 0 auto 30px;
  color: var(--ink-soft);
  font-size: clamp(17px, 2vw, 20px);
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-note {
  margin: 16px 0 0;
  color: #69718a;
  font-size: 13px;
}
.hero-note span {
  color: var(--purple);
}
.product-stage {
  position: relative;
  width: min(1020px, 100%);
  margin: 64px auto 0;
}
.orbit-card {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: color-mix(in srgb, var(--panel) 90%, transparent);
  box-shadow: var(--shadow-soft);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: 12px;
  font-weight: 700;
  animation: float 5s ease-in-out infinite;
}
.orbit-card i {
  width: 31px;
  height: 31px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-style: normal;
}
.orbit-one {
  top: 80px;
  left: -45px;
}
.orbit-one i {
  background: var(--mint);
}
.orbit-two {
  right: -38px;
  top: 144px;
  animation-delay: -2s;
}
.orbit-two i {
  background: #ffe1d4;
}
@keyframes float {
  50% {
    transform: translateY(-10px) rotate(1deg);
  }
}
.browser {
  position: relative;
  overflow: hidden;
  border: 1px solid #d9d5e4;
  border-radius: 22px;
  background: white;
  box-shadow: 0 40px 100px rgba(32, 25, 72, 0.19);
  transform: perspective(1300px) rotateX(2deg);
}
.browser-top {
  height: 54px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  border-bottom: 1px solid #ece9f2;
  background: #faf9fc;
}
.browser-top i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d5d1de;
}
.url {
  width: 250px;
  height: 25px;
  margin-left: 10px;
  padding-left: 12px;
  border: 1px solid #e7e3ed;
  border-radius: 7px;
  background: white;
  color: #9a95aa;
  font-size: 10px;
  display: flex;
  align-items: center;
}
.app-shell {
  height: 480px;
  display: grid;
  grid-template-columns: 190px 1fr;
  background: #f8f8fb;
}
.app-side {
  padding: 24px 15px;
  border-right: 1px solid #ebe8f0;
  background: white;
}
.mini-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 9px 27px;
  font: 800 14px var(--display);
}
.mini-logo b {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  background: var(--purple);
  color: white;
  border-radius: 7px;
  font-size: 11px;
}
.side-item {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding: 0 11px;
  border-radius: 9px;
  color: #7a8093;
  font-size: 11px;
  font-weight: 600;
}
.side-item span {
  width: 17px;
  text-align: center;
}
.side-item.active {
  color: var(--purple);
  background: var(--lavender);
}
.app-main {
  padding: 27px;
  overflow: hidden;
}
.app-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}
.app-head h3 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.03em;
}
.app-head p {
  margin: 3px 0 0;
  color: #9296a5;
  font-size: 10px;
}
.avatar {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--lime);
  font-size: 10px;
  font-weight: 800;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
}
.stat {
  min-height: 92px;
  padding: 14px;
  border: 1px solid #ebe8f0;
  border-radius: 13px;
  background: white;
}
.stat small {
  color: #8a90a2;
  font-size: 9px;
}
.stat strong {
  display: block;
  margin-top: 5px;
  font: 800 22px var(--display);
}
.stat em {
  color: #38a576;
  font-size: 8px;
  font-style: normal;
}
.dash-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 13px;
  margin-top: 13px;
}
.dash-card {
  padding: 16px;
  border: 1px solid #ebe8f0;
  border-radius: 13px;
  background: white;
}
.dash-title {
  display: flex;
  justify-content: space-between;
  margin-bottom: 17px;
  font-size: 10px;
  font-weight: 700;
}
.chart {
  height: 125px;
  display: flex;
  align-items: flex-end;
  gap: 11px;
  border-bottom: 1px solid #ebe8f0;
}
.bar {
  flex: 1;
  background: var(--lavender);
  border-radius: 5px 5px 0 0;
}
.bar:nth-child(2),
.bar:nth-child(5) {
  background: var(--purple);
}
.people {
  display: grid;
  gap: 13px;
}
.person {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 9px;
}
.person i {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--mint);
  font-style: normal;
  font-weight: 700;
}
.person:nth-child(2) i {
  background: #ffe1d4;
}
.person:nth-child(3) i {
  background: #dcecff;
}
.person b {
  display: block;
  font-size: 9px;
}
.person span {
  color: #9296a5;
}

.trust {
  padding: 66px 0 32px;
  text-align: center;
}
.trust p {
  margin-bottom: 28px;
  color: #7f8598;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(28px, 6vw, 72px);
  color: #777d90;
}
.client-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 800 16px var(--display);
  opacity: 0.72;
}
.client-logo i {
  width: 22px;
  height: 22px;
  border: 2px solid currentColor;
  border-radius: 7px;
  display: inline-block;
  transform: rotate(8deg);
}

.section {
  padding: 108px 0;
}
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--purple);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.section-kicker::before {
  content: "";
  width: 23px;
  height: 2px;
  background: currentColor;
}
.section-head {
  max-width: 690px;
  margin-bottom: 46px;
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}
.section-head.center .section-kicker::before {
  display: none;
}
.section h2 {
  margin-bottom: 16px;
  font-size: clamp(36px, 5vw, 56px);
}
.section-head p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 18px;
}
.bento {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.9fr;
  grid-template-rows: 340px 300px;
  gap: 18px;
}
.feature-card {
  position: relative;
  overflow: hidden;
  padding: 29px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}
.feature-card h3 {
  margin: 0 0 9px;
  font-size: 22px;
}
.feature-card > p {
  max-width: 40ch;
  color: var(--ink-soft);
  font-size: 14px;
}
.feature-card.large {
  grid-row: span 2;
  background: var(--ink);
  color: white;
}
.feature-card.large > p {
  color: #b9bfd1;
}
.feature-card.wide {
  grid-column: span 2;
  background: var(--lavender);
}
.feature-icon {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 13px;
  background: var(--lavender);
  color: var(--purple);
}
.feature-card.large .feature-icon {
  background: rgba(255, 255, 255, 0.12);
  color: var(--lime);
}
.feature-card:nth-child(2) .feature-icon {
  background: #e2f8ef;
  color: #238a62;
}
.feature-card:nth-child(3) .feature-icon {
  background: #ffe8df;
  color: #c6572f;
}
.phone-ui {
  position: absolute;
  width: 230px;
  height: 365px;
  bottom: -82px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  padding: 13px;
  border: 5px solid #31364d;
  border-radius: 34px;
  background: #f8f8fb;
  color: var(--ink);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.28);
}
.phone-ui::before {
  content: "";
  width: 55px;
  height: 6px;
  display: block;
  margin: 0 auto 17px;
  border-radius: 5px;
  background: #d8d9e0;
}
.shift {
  margin-bottom: 9px;
  padding: 11px;
  border-radius: 11px;
  background: white;
  font-size: 9px;
}
.shift b {
  display: block;
  margin-bottom: 3px;
  font-size: 11px;
}
.shift:first-of-type {
  border-left: 4px solid var(--purple);
}
.shift:nth-of-type(2) {
  border-left: 4px solid var(--orange);
}
.shift:nth-of-type(3) {
  border-left: 4px solid #3ab58a;
}
.pay-widget {
  position: absolute;
  inset: auto 26px 23px;
  padding: 16px;
  border-radius: 15px;
  background: #f7f6fa;
}
.pay-widget span {
  color: #858a9b;
  font-size: 10px;
}
.pay-widget strong {
  display: block;
  font: 800 29px var(--display);
}
.doc-stack {
  position: absolute;
  right: 22px;
  bottom: -20px;
  width: 47%;
}
.doc {
  height: 55px;
  margin-bottom: 10px;
  padding: 12px;
  border-radius: 12px;
  background: white;
  box-shadow: var(--shadow-soft);
  font-size: 10px;
  font-weight: 700;
  transform: rotate(2deg);
}
.doc:nth-child(2) {
  transform: rotate(-2deg) translateX(-22px);
}
.doc:nth-child(3) {
  transform: rotate(1deg) translateX(7px);
}
.doc i {
  width: 27px;
  height: 6px;
  display: block;
  margin-top: 6px;
  border-radius: 5px;
  background: var(--mint);
}

.workflow {
  background: var(--ink);
  color: white;
  overflow: hidden;
}
.workflow .section-head p {
  color: #aeb5ca;
}
.workflow .section-kicker {
  color: var(--lime);
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border: 1px solid #343a53;
  border-radius: var(--radius);
  overflow: hidden;
  background: #343a53;
}
.step {
  min-height: 240px;
  padding: 28px;
  background: var(--ink);
}
.step-num {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  margin-bottom: 38px;
  border: 1px solid #49506a;
  border-radius: 50%;
  color: var(--lime);
  font: 800 12px var(--display);
}
.step h3 {
  margin-bottom: 10px;
  font-size: 19px;
}
.step p {
  margin: 0;
  color: #aeb5ca;
  font-size: 13px;
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 70px;
}
.story-art {
  position: relative;
  min-height: 530px;
  border-radius: 32px;
  background: var(--lavender);
  overflow: hidden;
}
.story-art::before {
  content: "";
  position: absolute;
  width: 330px;
  height: 330px;
  top: 75px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--purple);
}
.story-person {
  position: absolute;
  inset: 86px 20% 0;
  border-radius: 140px 140px 0 0;
  background: #292f49;
}
.story-person::before {
  content: "TB";
  position: absolute;
  width: 104px;
  height: 104px;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  border: 8px solid #292f49;
  border-radius: 50%;
  background: #ffbf9f;
  color: #6e3928;
  font: 800 26px var(--display);
}
.story-badge {
  position: absolute;
  padding: 13px 15px;
  border-radius: 14px;
  background: white;
  box-shadow: var(--shadow);
  font-size: 12px;
  font-weight: 700;
}
.story-badge.one {
  top: 80px;
  left: 25px;
  transform: rotate(-4deg);
}
.story-badge.two {
  right: 23px;
  bottom: 65px;
  transform: rotate(3deg);
}
.quote-mark {
  margin-bottom: 18px;
  color: var(--purple);
  font: 800 65px/1 var(--display);
}
blockquote {
  margin: 0 0 25px;
  font: 700 clamp(25px, 3vw, 36px)/1.3 var(--display);
  letter-spacing: -0.04em;
}
.quote-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.quote-author i {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--lime);
  font-style: normal;
  font-weight: 800;
}
.quote-author b,
.quote-author span {
  display: block;
}
.quote-author span {
  color: var(--ink-soft);
  font-size: 13px;
}

.pricing {
  background: var(--panel-2);
}
.pricing-toggle {
  display: inline-flex;
  margin-top: 8px;
  padding: 5px;
  border: 1px solid #ded9e9;
  border-radius: 12px;
  background: white;
}
.pricing-toggle button {
  padding: 8px 14px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}
.pricing-toggle button.active {
  background: var(--ink);
  color: white;
}
.pricing-toggle span {
  color: #458366;
}
.plans {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  align-items: stretch;
}
.plan {
  position: relative;
  padding: 31px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
}
.plan.featured {
  border: 2px solid var(--purple);
  box-shadow: 0 22px 55px rgba(66, 42, 137, 0.12);
}
.popular {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--purple);
  color: white;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.plan-name {
  margin-bottom: 9px;
  font: 800 20px var(--display);
}
.plan-blurb {
  min-height: 48px;
  color: var(--ink-soft);
  font-size: 13px;
}
.price {
  margin: 22px 0 25px;
  font: 800 46px/1 var(--display);
  letter-spacing: -0.05em;
}
.price small {
  color: var(--ink-soft);
  font: 500 12px var(--body);
  letter-spacing: 0;
}
.plan .btn {
  width: 100%;
}
.plan ul {
  display: grid;
  gap: 11px;
  margin: 25px 0 0;
  padding: 23px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}
.plan li {
  display: flex;
  gap: 10px;
  font-size: 13px;
}
.plan li::before {
  content: "✓";
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  background: var(--mint);
  color: #176847;
  font-size: 10px;
  font-weight: 800;
}

.final-cta {
  padding: 110px 0;
}
.cta-box {
  position: relative;
  overflow: hidden;
  padding: 75px 40px;
  border-radius: 32px;
  background: var(--grad-brand);
  color: #fff;
  text-align: center;
}
.cta-box::before,
.cta-box::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(4px);
  opacity: 0.82;
}
.cta-box::before {
  width: 280px;
  height: 280px;
  left: -110px;
  bottom: -155px;
  background: var(--accent);
}
.cta-box::after {
  width: 230px;
  height: 230px;
  right: -100px;
  top: -130px;
  background: var(--cta);
}
.cta-box h2 {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto 15px;
  font-size: clamp(38px, 5vw, 60px);
}
.cta-box p {
  position: relative;
  z-index: 1;
  margin-bottom: 28px;
  color: #e9e2ff;
  font-size: 17px;
}
.cta-form {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(520px, 100%);
  margin: auto;
  padding: 5px;
  border-radius: 16px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}
.cta-form input {
  min-width: 0;
  flex: 1;
  padding: 0 16px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}
.cta-form .btn {
  flex: none;
}
.form-note {
  display: block;
  margin-top: 13px;
  font-size: 11px;
  color: #ded5ff;
}

footer {
  padding: 20px 0 35px;
}
.footer-main {
  display: grid;
  grid-template-columns: 1.7fr repeat(3, 1fr);
  gap: 50px;
  padding: 55px 0;
  border-top: 1px solid var(--line);
}
.footer-main p {
  max-width: 320px;
  margin: 20px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
}
.footer-col h3 {
  margin: 4px 0 18px;
  font: 800 12px var(--body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-col a {
  display: block;
  margin-bottom: 10px;
  color: var(--ink-soft);
  font-size: 13px;
}
.footer-col a:hover {
  color: var(--purple);
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: #858a9d;
  font-size: 12px;
}
.socials {
  display: flex;
  gap: 8px;
}
.socials a {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel);
  font-weight: 800;
}

/* Only hide reveal sections when JS is available to reveal them again —
 otherwise (JS blocked/crashed) the content must remain fully visible. */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.js .reveal.visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 980px) {
  .nav-links {
    gap: 18px;
  }
  .nav-actions .btn-light {
    display: none;
  }
  .orbit-card {
    display: none;
  }
  .bento {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 460px 300px 300px;
  }
  .feature-card.large {
    grid-row: auto;
    grid-column: span 2;
  }
  .feature-card.wide {
    grid-column: span 2;
  }
  .phone-ui {
    left: auto;
    right: 45px;
    transform: rotate(3deg);
  }
  .steps {
    grid-template-columns: 1fr 1fr;
  }
  .story-grid {
    gap: 40px;
  }
}
@media (max-width: 760px) {
  .container {
    width: min(100% - 28px, 620px);
  }
  .site-header {
    background: rgba(251, 250, 247, 0.92);
    backdrop-filter: blur(16px);
  }
  .nav {
    min-height: 70px;
  }
  .menu-toggle {
    display: grid;
  }
  .nav-actions > .btn {
    display: none;
  }
  .nav-links {
    position: fixed;
    inset: 70px 14px auto;
    display: none;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--panel);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    padding: 14px 8px;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
  }
  .nav-links a:last-child {
    border-bottom: 0;
  }
  .hero {
    min-height: auto;
    padding-top: 125px;
  }
  .hero h1 {
    font-size: clamp(43px, 13vw, 64px);
  }
  .product-stage {
    margin-top: 45px;
  }
  .browser {
    border-radius: 15px;
    transform: none;
  }
  .app-shell {
    height: 350px;
    grid-template-columns: 1fr;
  }
  .app-side {
    display: none;
  }
  .app-main {
    padding: 18px;
  }
  .dash-grid {
    grid-template-columns: 1fr;
  }
  .dash-card:last-child {
    display: none;
  }
  .section {
    padding: 80px 0;
  }
  .bento {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 510px repeat(3, 280px);
  }
  .feature-card.large,
  .feature-card.wide {
    grid-column: auto;
  }
  .phone-ui {
    right: 50%;
    transform: translateX(50%) rotate(-2deg);
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .step {
    min-height: auto;
  }
  .step-num {
    margin-bottom: 22px;
  }
  .story-grid {
    grid-template-columns: 1fr;
  }
  .story-art {
    min-height: 430px;
  }
  .plans {
    grid-template-columns: 1fr 1fr;
  }
  .plan-blurb {
    min-height: 0;
  }
  .footer-main {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: span 2;
  }
}
@media (max-width: 480px) {
  .plans {
    grid-template-columns: 1fr;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .stat:last-child {
    display: none;
  }
  .story-art {
    min-height: 370px;
  }
  .story-person {
    inset-inline: 13%;
  }
  .story-badge {
    font-size: 10px;
  }
  .cta-box {
    padding: 58px 20px;
  }
  .cta-form {
    display: grid;
    gap: 7px;
    padding: 7px;
    background: rgba(255, 255, 255, 0.14);
  }
  .cta-form input {
    height: 50px;
    border-radius: 11px;
    background: white;
  }
  .footer-main {
    gap: 35px 22px;
  }
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}
