/* =====================================================================
   Clain — Landing v2
   Inspired by the Figma design (a1pyA4yPY9Z1VZdOQNZHly)
   Design system: cream/white backgrounds, dark navy CTAs, accent yellow
   ===================================================================== */

:root {
  /* Backgrounds */
  --bg-cream-warm:   #FAF9F6;
  --bg-cream-soft:   #F4F3EC;
  --bg-cream-alt:    #F1EFEA;
  --bg-white:        #FFFFFF;
  --bg-dark:         #020917;
  --bg-dark-2:       #080F1E;

  /* Text */
  --text-primary:    #020917;
  --text-secondary:  #4A4A4A;
  --text-muted:      #827970;
  --text-on-dark:    #FFFFFF;
  --text-on-dark-2:  #B8BCC8;

  /* Accents */
  --accent-coral:    #F04800;
  --accent-orange:   #F07830;
  --accent-yellow:   #FFE600;
  --accent-purple:   #603090;
  --accent-blue:     #3060A8;

  /* Borders */
  --border-soft:     #DCDCD8;
  --border-subtle:   #E8E5DE;
  --border-on-dark:  rgba(255, 255, 255, 0.08);

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(2, 9, 23, 0.04);
  --shadow-md: 0 4px 12px rgba(2, 9, 23, 0.06);
  --shadow-lg: 0 12px 32px rgba(2, 9, 23, 0.08);

  /* Layout */
  --container-max: 1380px;
  --container-narrow: 1180px;
  --gutter: 24px;

  /* Type scale */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-cream-warm);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  font-feature-settings: "ss01", "cv11";
}

body { overflow-x: hidden; }

img, svg, video { max-width: 100%; display: block; }

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

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

/* =====================================================================
   Layout primitives
   ===================================================================== */

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: 96px 0;
}

.section-tight {
  padding: 64px 0;
}

.section-dark {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}

.section-cream {
  background: var(--bg-cream-soft);
}

.section-white {
  background: var(--bg-white);
}

/* =====================================================================
   Typography
   ===================================================================== */

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0;
}

.h-display {
  font-size: clamp(40px, 6vw, 84px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.h-hero {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.h-section {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.h-card {
  font-size: clamp(20px, 1.6vw, 26px);
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.2;
}

.h-eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-family: var(--font-sans);
}

.section-dark .h-eyebrow {
  color: var(--text-on-dark-2);
}

.lede {
  font-size: clamp(17px, 1.3vw, 19px);
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 640px;
}

.section-dark .lede {
  color: var(--text-on-dark-2);
}

/* =====================================================================
   Buttons
   ===================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: transform 120ms ease, background 200ms ease, color 200ms ease, border 200ms ease;
  white-space: nowrap;
  cursor: pointer;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--text-primary);
  color: var(--text-on-dark);
}
.btn-primary:hover { background: #1a1f2e; }

.btn-secondary {
  background: var(--bg-white);
  color: var(--text-primary);
  border: 1px solid var(--border-soft);
}
.btn-secondary:hover { background: var(--bg-cream-soft); }

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid transparent;
}
.btn-ghost:hover { background: rgba(2, 9, 23, 0.06); }

.section-dark .btn-primary {
  background: var(--bg-white);
  color: var(--text-primary);
}
.section-dark .btn-primary:hover { background: #f0f0f0; }

.section-dark .btn-secondary {
  background: transparent;
  color: var(--text-on-dark);
  border-color: var(--border-on-dark);
}
.section-dark .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
}

.btn-coral {
  background: var(--accent-coral);
  color: #fff;
}
.btn-coral:hover { background: #d33d00; }

/* =====================================================================
   Navigation
   ===================================================================== */

.nav-shell {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 249, 246, 0.85);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}

.nav-shell.is-scrolled {
  border-bottom-color: var(--border-subtle);
}

.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 32px;
}

/* Figma extraction expects a 1440px artboard. Center it and let inner
   absolute layouts work as authored. Each top-level section then sits in
   its own normal-flow row inside this container. */
.figma-page {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  position: relative;
  overflow-x: clip;
}

.figma-page > * {
  width: 100%;
  position: relative;
}

/* Some Figma sections leak fixed widths; constrain images so they never
   overflow their container. */
.figma-page img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Reset list bullets that Tailwind's preflight may leave. */
.figma-page ul, .figma-page ol { list-style: none; padding-left: 0; }

/* Unresolved Figma sub-components render as empty <div data-figma-component>.
   They sometimes inherit a black/grey background from the wrapper class set
   by Figma. Strip those backgrounds so they don't appear as black boxes. */
.figma-page [data-figma-component]:empty {
  background: none !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  min-width: 0 !important;
  min-height: 0 !important;
}

/* ── Tab carousel ─────────────────────────────────────────────────────
   shared.jsx setupTabsCarousels() detects two patterns:
     A) 4-tab horizontal row (button.relative inside div.flex-1)
     B) 2-6 feature cards (each child has h4.text-heading-* + p)
   Both get cycled every 5s; the active one stays at full opacity with a
   subtle bg, the rest dim to 60%, and a 2px progress bar fills along the
   bottom of the active cell. */

.figma-page [data-clain-tab] {
  transition: opacity 220ms ease;
  cursor: pointer;
}
/* Figma exports decorative corner-bracket overlays as `div.text-clay` with
   `absolute inset-[16px]` — these sit ON TOP of the entire section and
   silently swallow clicks, blocking the tab carousel. The overlay only
   contains four <span> corner squares which have their own absolute
   positioning, so making the overlay click-through is safe. */
.figma-page [data-name="div.text-clay"] {
  pointer-events: none;
}
.figma-page [data-name="div.text-clay"] > * {
  pointer-events: auto;
}
.figma-page [data-clain-tab].clain-tab-inactive {
  opacity: 0.6 !important;
}
.figma-page [data-clain-tab].clain-tab-inactive:hover {
  opacity: 0.85 !important;
}
.figma-page [data-clain-tab].clain-tab-active {
  opacity: 1 !important;
}
/* Brand-name pills inside body copy ("Clain" replacing the original 3-char
   "Fin") were hardcoded to ~21px wide in the Figma export — too narrow for
   5 letters. Allow them to auto-size to their content so the pill grows
   instead of wrapping the word into "Cl / ain". */
/* Brand-name pills inside body copy were sized for the 3-letter "Fin"
   (~21px) and break when filled with the 5-letter "Clain". Make the inner
   wrapper relative-positioned so it actually contributes to the outer's
   max-content width, then let both pill + wrapper grow to fit "Clain".
   Keep the original top:9.5 + translate-y-1/2 to preserve vertical centering. */
.figma-page [data-name="Component 1"][class*="bg-[rgba(17,17,17"] {
  width: auto !important;
  min-width: max-content !important;
  padding-left: 2px;
  padding-right: 2px;
}
.figma-page [data-name="Component 1"][class*="bg-[rgba(17,17,17"] > div {
  position: relative !important;
  width: auto !important;
  min-width: max-content !important;
  white-space: nowrap !important;
  left: 0 !important;
  transform: translateY(-50%) !important;
}
.figma-page [data-name="Component 1"][class*="bg-[rgba(17,17,17"] p {
  white-space: nowrap !important;
}

/* Neutralize Figma's hardcoded opacity-* utilities inside ANY tab cell so
   the cell-level opacity controls the visual state — otherwise nested
   `opacity-[0.6]` from Figma wins and the active card still looks dim. */
.figma-page [data-clain-tab] *[class*="opacity-["] {
  opacity: 1 !important;
}

/* Neutralize the dark "Component 4" rectangles that the Figma extraction
   leaves around "Learn more" links — they render as a black highlight
   strip behind/around the link text. */
.figma-page [data-name="Component 4"] {
  background: none !important;
  background-color: transparent !important;
}

/* "Component 2" is the Figma name for primary CTA pills (Start free trial /
   View demo). The dark variant has bg-[#111]; force its inner text to be
   white so it isn't lost under the dark background regardless of how the
   var(--color/white/solid) chain resolves. */
.figma-page [data-name="Component 2"][class*="bg-[#111]"] a,
.figma-page [data-name="Component 2"][class*="bg-[#111]"] p {
  color: #fff !important;
}
.figma-page [data-name="Component 2"]:not([class*="bg-[#111]"]) a,
.figma-page [data-name="Component 2"]:not([class*="bg-[#111]"]) p {
  color: #111 !important;
}

/* Figma extraction frequently sets `whitespace-nowrap` on text wrappers
   that were sized for the original copy. Our Clain copy is a different
   length so single-line nowrap forces overflow → overlap. Allow wrap
   inside .figma-page. */
.figma-page p,
.figma-page [class*="whitespace-nowrap"] {
  white-space: normal !important;
  word-break: break-word;
}

/* (Removed: height:auto rule broke heading dimensions in feature cards.)
   (Removed: -translate-y-1/2 absolute → static rule moved blocks but
    didn't actually align with the Figma layout — replaced with the
    Component-stub hide below, which is the real fix.) */

/* Stronger Component-stub neutralization: every `<Component>` placeholder
   from the Figma extraction renders as `<div data-figma-component=...>`
   with no children. They were leaving black/grey rectangles all over the
   page (decorative icons that need extracted SVGs). Hide them entirely. */
.figma-page [data-figma-component] {
  display: none !important;
}

/* Some Figma blocks render as real `<div data-name="Component N">` rather
   than the React stub above — these wrap text labels inside a black-fill
   rectangle (customer logo placeholders, "Fin" badges, etc.). Strip the
   background everywhere named "Component" so only the text shows. EXCEPT:
     - `Component 2` (CTA pills on home: Start free trial / View demo)
     - any Component with `rounded-[4px]` (CTA pills in other pages,
       e.g. inbox.jsx where the same button structure is named Component 1)
*/
.figma-page [data-name^="Component"]:not([data-name="Component 2"]):not([class*="rounded-[4px]"]) {
  background: none !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* Force white text on dark CTA buttons of any Component number */
.figma-page [data-name^="Component"][class*="bg-[#111]"][class*="rounded-[4px]"] a,
.figma-page [data-name^="Component"][class*="bg-[#111]"][class*="rounded-[4px]"] p {
  color: #fff !important;
}
.figma-page [data-name^="Component"][class*="border-[#111]"][class*="rounded-[4px]"] a,
.figma-page [data-name^="Component"][class*="border-[#111]"][class*="rounded-[4px]"] p {
  color: #111 !important;
}

/* Hero right column on home: three text blocks were Figma-positioned at
   absolute pixel coordinates calculated for the original copy length.
   Our Clain copy is a different length, so they collide. Force them
   into normal flow with a small vertical rhythm. */
.figma-page [data-node-id="2:32794"],
.figma-page [data-node-id="2:32796"],
.figma-page [data-node-id="2:32797"] {
  position: static !important;
  transform: none !important;
  inset: auto !important;
  width: 100% !important;
  height: auto !important;
}
.figma-page [data-node-id="2:32797"] { margin-top: 12px !important; }

/* Pattern A: 4-tab horizontal — toggle bg + text color on active */
.figma-page [data-clain-tab] [data-name="button.relative"] {
  transition: background-color 220ms ease, border-color 220ms ease;
}
.figma-page [data-clain-tab].clain-tab-inactive [data-name="button.relative"] {
  background-color: transparent !important;
  border-color: rgba(17, 17, 17, 0.05) !important;
}
.figma-page [data-clain-tab].clain-tab-active [data-name="button.relative"] {
  background-color: #faf9f6 !important;
  border-color: rgba(17, 17, 17, 0.1) !important;
}
.figma-page [data-clain-tab].clain-tab-inactive [data-name="button.relative"] p {
  color: rgba(17, 17, 17, 0.5) !important;
}
.figma-page [data-clain-tab].clain-tab-active [data-name="button.relative"] p {
  color: rgba(17, 17, 17, 1) !important;
}

/* Progress bar inside the active tab. Sits at the TOP edge of the host
   so it never overlaps the "Learn more" link at the bottom of cards. */
.figma-page [data-clain-tab] .clain-tab-progress {
  position: absolute;
  left: 0; top: 0;
  height: 2px;
  width: 0;
  background: rgba(17, 17, 17, 0.85);
  pointer-events: none;
  z-index: 5;
}
.figma-page [data-clain-tab].clain-tab-active .clain-tab-progress {
  animation: clain-tab-fill var(--clain-tab-cycle, 8000ms) linear forwards;
}
@keyframes clain-tab-fill {
  from { width: 0; }
  to   { width: 100%; }
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--text-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-primary);
  position: relative;
  transition: opacity 150ms ease;
  cursor: pointer;
  padding: 6px 2px;
}

.nav-link:hover { opacity: 0.65; }

.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-actions .btn { padding: 9px 18px; font-size: 14px; }

.nav-shell.dark {
  background: rgba(2, 9, 23, 0.85);
  color: var(--text-on-dark);
}
.nav-shell.dark .nav-logo { color: var(--text-on-dark); }
.nav-shell.dark .nav-link { color: var(--text-on-dark); }
.nav-shell.dark .nav-logo-dot { background: var(--text-on-dark); }

/* ── Nav dropdowns (Product / Resources) ────────────────────────────── */

.nav-link-wrap {
  position: relative;
}

.nav-link-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font: inherit;
  padding: 6px 2px;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
}

.nav-caret {
  font-size: 10px;
  opacity: 0.7;
  transition: transform 200ms ease;
}

.nav-link-wrap.is-open .nav-caret {
  transform: rotate(180deg);
}

.nav-link-wrap.is-open > .nav-link-trigger {
  background: rgba(2, 9, 23, 0.06);
  border-radius: 8px;
  padding: 6px 12px;
}

.nav-shell.dark .nav-link-wrap.is-open > .nav-link-trigger {
  background: rgba(255, 255, 255, 0.10);
}

/* Match the /pricing aesthetic: square box, monochrome, subtle offset.
   Same border colour (#d3cec6) and off-white hover (#faf9f6) used by
   plan cards and the Billed annually/monthly + Special promotion pills. */
.nav-dd {
  position: absolute;
  top: calc(100% + 14px);
  left: -24px;
  background: #ffffff;
  border: 1px solid #d3cec6;
  border-radius: 0;
  box-shadow: none;
  padding: 32px;
  min-width: 720px;
  z-index: 60;
  animation: nav-dd-in 180ms ease-out;
}

@keyframes nav-dd-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nav-dd-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: start;
}

.nav-dd-grid-1 {
  grid-template-columns: 1fr;
  min-width: 360px;
}

.nav-dd-col {
  min-width: 0;
}

.nav-dd-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(17, 17, 17, 0.6);
  margin-bottom: 20px;
}

.nav-dd-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-dd-list-icons {
  gap: 4px;
}

.nav-dd-item {
  display: block;
  padding: 10px 12px;
  border-radius: 0;
  color: #111;
  font-size: 14px;
  font-weight: 500;
  transition: background 120ms ease;
}
.nav-dd-item:hover { background: #faf9f6; }

.nav-dd-item-icon {
  display: flex;
  gap: 14px;
  padding: 12px;
  border-radius: 0;
  align-items: flex-start;
  transition: background 120ms ease;
  color: #111;
}
.nav-dd-item-icon:hover { background: #faf9f6; }

.nav-dd-icon {
  width: 36px;
  height: 36px;
  border-radius: 0;
  border: 1px solid #d3cec6;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #111;
  flex-shrink: 0;
}

.nav-dd-item-icon strong {
  display: block;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
  color: #111;
}
.nav-dd-item-icon em {
  display: block;
  font-style: normal;
  font-size: 12.5px;
  color: rgba(17, 17, 17, 0.6);
  margin-top: 2px;
}

.nav-cta-arrow {
  gap: 6px;
}
.nav-cta-arrow span {
  display: inline-block;
  transition: transform 160ms ease;
}
.nav-cta-arrow:hover span {
  transform: translateX(2px);
}

@media (max-width: 960px) {
  .nav-dd { min-width: 320px; left: 0; padding: 20px; }
  .nav-dd-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* =====================================================================
   Hero variants
   ===================================================================== */

.hero {
  padding: 80px 0 48px;
  text-align: center;
}

.hero h1 {
  margin-bottom: 20px;
}

.hero .lede {
  margin: 0 auto 32px;
  max-width: 640px;
}

.hero-actions {
  display: inline-flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-visual {
  margin: 0 auto;
  max-width: 1180px;
  position: relative;
}

.hero-frame {
  border-radius: var(--radius-lg);
  background: var(--bg-white);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

/* =====================================================================
   Cards & grids
   ===================================================================== */

.grid {
  display: grid;
  gap: 24px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-cream {
  background: var(--bg-cream-soft);
  border-color: transparent;
}

.card h3, .card .card-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.018em;
  margin: 0;
}

.card p {
  color: var(--text-secondary);
  font-size: 15.5px;
  line-height: 1.55;
  margin: 0;
}

/* =====================================================================
   Logo strip
   ===================================================================== */

.logo-strip {
  text-align: center;
  padding: 24px 0;
}

.logo-strip-label {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.logo-strip-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 56px;
  opacity: 0.78;
}

.logo-strip-row span {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-secondary);
  font-family: var(--font-display);
}

/* =====================================================================
   Two-column features (image + text)
   ===================================================================== */

.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.feature-split.reverse > :first-child { order: 2; }

@media (max-width: 920px) {
  .feature-split { grid-template-columns: 1fr; gap: 32px; }
  .feature-split.reverse > :first-child { order: 0; }
}

.feature-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.feature-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 16px;
}

.feature-body {
  color: var(--text-secondary);
  font-size: 16.5px;
  line-height: 1.6;
  margin: 0 0 24px;
  max-width: 460px;
}

.feature-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 15px;
  border-bottom: 1px solid var(--text-primary);
  padding-bottom: 2px;
}

/* =====================================================================
   Mock screenshot containers
   ===================================================================== */

.mock {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  position: relative;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 13px;
}

.mock-tall { aspect-ratio: 9 / 12; }
.mock-square { aspect-ratio: 1 / 1; }
.mock-wide { aspect-ratio: 16 / 7; }

.mock-bar {
  height: 32px;
  background: var(--bg-cream-soft);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
}

.mock-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #d4d4d4;
}

/* =====================================================================
   Highlight (yellow underline like "15 employees")
   ===================================================================== */

.hl-yellow {
  background: linear-gradient(180deg, transparent 60%, var(--accent-yellow) 60%);
  padding: 0 4px;
}

.hl-coral {
  color: var(--accent-coral);
}

/* =====================================================================
   Pricing (when shown on a page)
   ===================================================================== */

.price-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

@media (max-width: 760px) {
  .price-row { grid-template-columns: 1fr; }
}

.price-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 28px;
}

.price-card .label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.price-card .amount {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
  margin-bottom: 8px;
}

.price-card .amount mark {
  background: var(--accent-yellow);
  padding: 0 6px;
  color: var(--text-primary);
}

/* =====================================================================
   Quote / testimonial blocks
   ===================================================================== */

.quote {
  background: var(--bg-cream-soft);
  border-radius: var(--radius-lg);
  padding: 40px;
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.4;
  letter-spacing: -0.02em;
  font-weight: 500;
  color: var(--text-primary);
}

.quote-author {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14.5px;
  color: var(--text-secondary);
  font-weight: 500;
  font-family: var(--font-sans);
}

.quote-author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--bg-cream-warm);
  border: 1px solid var(--border-soft);
}

.quote-purple {
  background: var(--accent-purple);
  color: #fff;
}
.quote-purple .quote-author { color: rgba(255, 255, 255, 0.85); }

/* =====================================================================
   Stats row
   ===================================================================== */

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-top: 1px solid var(--border-soft);
  padding-top: 40px;
}

@media (max-width: 760px) { .stats-row { grid-template-columns: repeat(2, 1fr); } }

.stat .num {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
}

.stat .label {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 6px;
}

/* =====================================================================
   FAQ
   ===================================================================== */

.faq-item {
  border-bottom: 1px solid var(--border-soft);
  padding: 22px 0;
  cursor: pointer;
}

.section-dark .faq-item {
  border-bottom-color: var(--border-on-dark);
}

.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 17px;
  font-weight: 500;
  font-family: var(--font-display);
}

.faq-a {
  margin-top: 14px;
  color: var(--text-secondary);
  font-size: 15.5px;
  line-height: 1.6;
  display: none;
}

.section-dark .faq-a { color: var(--text-on-dark-2); }

.faq-item.open .faq-a { display: block; }

.faq-toggle {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(2, 9, 23, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 200ms ease;
  font-size: 18px;
}

.faq-item.open .faq-toggle { transform: rotate(45deg); }

.section-dark .faq-toggle { background: rgba(255, 255, 255, 0.08); color: var(--text-on-dark); }

/* =====================================================================
   Footer
   ===================================================================== */

.footer {
  background: var(--bg-cream-warm);
  border-top: 1px solid var(--border-subtle);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 48px;
  margin-bottom: 56px;
}

@media (max-width: 920px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }

.footer-col h5 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 18px;
  font-family: var(--font-sans);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 14.5px;
  color: var(--text-primary);
  opacity: 0.85;
}
.footer-col a:hover { opacity: 1; }

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* =====================================================================
   Final CTA (gradient hero)
   ===================================================================== */

.final-cta {
  position: relative;
  border-radius: var(--radius-xl);
  margin: 64px 24px 24px;
  padding: 96px 32px;
  overflow: hidden;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(ellipse at 30% 30%, #4f3aa8 0%, transparent 60%),
    radial-gradient(ellipse at 70% 70%, #8a3ec1 0%, transparent 60%),
    linear-gradient(135deg, #1c1456 0%, #2b1980 50%, #3d1e9c 100%);
}

.final-cta-cream {
  background:
    radial-gradient(ellipse at 30% 30%, #d8f0ff 0%, transparent 60%),
    radial-gradient(ellipse at 70% 70%, #fce7d8 0%, transparent 60%),
    linear-gradient(135deg, #faf6ec 0%, #f4ece0 50%, #ecdcc8 100%);
  color: var(--text-primary);
}

.final-cta h2 {
  font-size: clamp(36px, 4.5vw, 64px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 24px;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}

.final-cta-actions {
  display: inline-flex;
  gap: 12px;
  margin-top: 12px;
}

.final-cta .btn-primary {
  background: #fff;
  color: var(--text-primary);
}

/* =====================================================================
   Bullet list
   ===================================================================== */

.bullet-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bullet-list li {
  position: relative;
  padding-left: 22px;
  color: var(--text-secondary);
  font-size: 15.5px;
  line-height: 1.55;
}

.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--text-primary);
  border-radius: 999px;
}

.section-dark .bullet-list li { color: var(--text-on-dark-2); }
.section-dark .bullet-list li::before { background: var(--text-on-dark); }

/* =====================================================================
   Pill badge
   ===================================================================== */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  background: rgba(2, 9, 23, 0.06);
  color: var(--text-primary);
  margin-bottom: 24px;
}

.section-dark .pill {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-on-dark);
}

.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #2bbf5c;
}

/* =====================================================================
   Responsive helpers
   ===================================================================== */

.hide-mobile { display: initial; }
.hide-desktop { display: none; }

@media (max-width: 760px) {
  .hide-mobile { display: none; }
  .hide-desktop { display: initial; }
  .section { padding: 64px 0; }
  .hero { padding: 48px 0 32px; }
}

/* =====================================================================
   Misc
   ===================================================================== */

.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mt-6 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 32px; }
.mb-6 { margin-bottom: 48px; }

.eyebrow-line {
  display: inline-block;
  padding-left: 28px;
  position: relative;
}
.eyebrow-line::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 20px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

/* ═══════════════════════════════════════════════════════════════
   V1 Design Tokens — auth pages + gravity cursor
   ═══════════════════════════════════════════════════════════════ */
:root {
  --serif:       'Instrument Serif', 'Times New Roman', serif;
  --mono:        'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --fg:          #0A0A0A;
  --fg-muted:    #6B6B6B;
  --fg-faint:    #A3A3A0;
  --line:        rgba(10,10,10,0.08);
  --line-strong: rgba(10,10,10,0.16);
  --bg:          #FAF9F6;
  --bg-elev:     #FFFFFF;
}

/* ═══ Gravity grid ═══ */
.gravity-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  width: 100vw;
  height: 100vh;
}

/* ═══ Custom cursor ═══ */
body.has-custom-cursor,
body.has-custom-cursor button,
body.has-custom-cursor a { cursor: none; }

.cursor-dot, .cursor-ring {
  position: fixed;
  pointer-events: none;
  z-index: 10000;
  top: 0; left: 0;
  mix-blend-mode: difference;
  transform: translate3d(-100px, -100px, 0);
}
.cursor-dot {
  width: 6px; height: 6px;
  background: #fff;
  border-radius: 50%;
  margin: -3px 0 0 -3px;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 50%;
  margin: -18px 0 0 -18px;
  transition: width .25s ease, height .25s ease, margin .25s ease, border-color .25s ease, background .25s ease;
}
.cursor-ring.is-hover {
  width: 64px; height: 64px;
  margin: -32px 0 0 -32px;
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.9);
}
.cursor-ring.is-text {
  width: 4px; height: 28px;
  margin: -14px 0 0 -2px;
  border-radius: 1px;
  background: #fff;
  border-color: transparent;
}
@media (hover: none), (max-width: 768px) {
  .cursor-dot, .cursor-ring { display: none; }
  body.has-custom-cursor,
  body.has-custom-cursor button,
  body.has-custom-cursor a { cursor: auto; }
}

/* ═══ Auth pages (/signin, /signup, /reset-password) ═══ */
.auth-shell {
  min-height: calc(100vh - 80px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}
@media (max-width: 960px) { .auth-shell { grid-template-columns: 1fr; min-height: auto; } }
.auth-form-side { display: grid; align-items: center; padding: 80px 64px; }
@media (max-width: 768px) { .auth-form-side { padding: 64px 24px; } }
.auth-form-card { width: 100%; max-width: 420px; margin: 0 auto; display: grid; gap: 32px; }
.auth-form-head { display: grid; gap: 12px; }
.auth-form-head .eyebrow { font-family: var(--mono); font-size: 11px; color: var(--fg-faint); letter-spacing: .12em; text-transform: uppercase; }
.auth-form-head h1 { font-family: var(--serif); font-size: 44px; line-height: 1.05; letter-spacing: -0.025em; font-weight: 400; margin: 0; }
.auth-form-head p { font-size: 15px; color: var(--fg-muted); line-height: 1.55; margin: 0; }

.auth-sso { display: grid; gap: 8px; }
.auth-sso-btn {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-elev);
  font-family: var(--sans, 'Inter', sans-serif);
  font-size: 14px;
  color: var(--fg);
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.auth-sso-btn:hover { border-color: var(--line-strong); background: var(--bg); }
.auth-sso-glyph { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; flex-shrink: 0; }

.auth-divider { display: flex; align-items: center; gap: 12px; }
.auth-divider span { font-family: var(--mono); font-size: 11px; color: var(--fg-faint); letter-spacing: .12em; text-transform: uppercase; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.auth-fields { display: grid; gap: 14px; }
.auth-field { display: grid; gap: 6px; }
.auth-field label { font-family: var(--mono); font-size: 11px; color: var(--fg-faint); letter-spacing: .08em; text-transform: uppercase; }
.auth-input {
  appearance: none; width: 100%; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--bg-elev);
  font-family: var(--sans, 'Inter', sans-serif); font-size: 15px; color: var(--fg);
  transition: border-color .2s, background .2s;
}
.auth-input:focus { outline: none; border-color: var(--fg); background: var(--bg); }
.auth-input::placeholder { color: var(--fg-faint); }

.auth-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.auth-row a { font-size: 13px; color: var(--fg-muted); text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 1px; transition: color .2s, border-color .2s; }
.auth-row a:hover { color: var(--fg); border-color: var(--fg); }
.auth-checkbox { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--fg-muted); cursor: pointer; }
.auth-checkbox input { accent-color: #111; width: 14px; height: 14px; }

.auth-submit {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 20px; border-radius: 12px;
  font-family: var(--sans, 'Inter', sans-serif); font-size: 15px; font-weight: 500;
  background: var(--fg); color: var(--bg);
  border: 1px solid var(--fg); cursor: pointer;
  transition: opacity .2s, transform .2s; width: 100%;
}
.auth-submit:hover { opacity: .9; }
.auth-submit:active { transform: scale(.99); }
.auth-submit:disabled { opacity: .55; cursor: not-allowed; }

.auth-foot { font-size: 13.5px; color: var(--fg-muted); }
.auth-foot a { color: var(--fg); text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 1px; transition: border-color .2s; }
.auth-foot a:hover { border-color: var(--fg); }

.auth-error {
  padding: 10px 12px; border-radius: 8px;
  background: #fef2f2; border: 1px solid #fecaca;
  font-size: 13px; color: #991b1b; line-height: 1.4;
}

.auth-aside {
  position: relative; background: var(--bg);
  border-left: 1px solid var(--line); padding: 80px 64px;
  display: grid; align-content: space-between; gap: 56px; overflow: hidden;
}
@media (max-width: 960px) { .auth-aside { display: none; } }
.auth-aside::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(800px 400px at 100% 0%, color-mix(in oklab, oklch(0.62 0.18 320), transparent 88%) 0%, transparent 60%),
    radial-gradient(600px 300px at 0% 100%, color-mix(in oklab, oklch(0.65 0.15 145), transparent 90%) 0%, transparent 60%);
  pointer-events: none;
}
.auth-aside > * { position: relative; }
.auth-aside-head { display: grid; gap: 16px; max-width: 420px; }
.auth-aside-head h2 { font-family: var(--serif); font-size: 36px; line-height: 1.1; letter-spacing: -0.02em; font-weight: 400; margin: 0; }
.auth-aside-head p { font-size: 15.5px; color: var(--fg-muted); line-height: 1.55; margin: 0; }
.auth-aside-card { border: 1px solid var(--line); background: var(--bg-elev); border-radius: 16px; padding: 24px; display: grid; gap: 16px; max-width: 460px; }
.auth-aside-card-head { display: flex; gap: 10px; align-items: center; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-faint); }
.auth-aside-card-quote { font-family: var(--serif); font-size: 20px; line-height: 1.4; letter-spacing: -0.012em; margin: 0; }
.auth-aside-card-who { font-family: var(--mono); font-size: 11.5px; color: var(--fg-faint); letter-spacing: .04em; }
.auth-aside-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0; border-top: 1px solid var(--line); }
.auth-aside-stat { padding: 20px 16px; border-right: 1px solid var(--line); }
.auth-aside-stat:last-child { border-right: 0; }
.auth-aside-stat-num { font-family: var(--serif); font-size: 32px; line-height: 1; letter-spacing: -0.02em; }
.auth-aside-stat-lab { font-family: var(--sans, 'Inter', sans-serif); font-size: 12px; color: var(--fg-muted); margin-top: 8px; }

/* ═══ Demo / request-demo page (/demo) ═══ */
.req-shell { display: grid; grid-template-columns: 1fr 1fr; gap: 0; min-height: calc(100vh - 80px); }
@media (max-width: 960px) { .req-shell { grid-template-columns: 1fr; } }
.req-info { padding: 96px 64px; display: grid; align-content: start; gap: 48px; }
@media (max-width: 768px) { .req-info { padding: 64px 24px; } }
.req-info-head { display: grid; gap: 18px; max-width: 520px; }
.req-info-head h1 { font-family: var(--serif); font-size: 56px; line-height: 1; letter-spacing: -0.025em; font-weight: 400; margin: 0; }
.req-info-head h1 em { font-style: italic; }
@media (max-width: 768px) { .req-info-head h1 { font-size: 42px; } }
.req-info-head p { font-size: 17px; color: var(--fg-muted); line-height: 1.55; max-width: 480px; margin: 0; }
.req-bullets { display: grid; gap: 22px; max-width: 460px; }
.req-bullet { display: grid; grid-template-columns: 28px 1fr; gap: 14px; }
.req-bullet-mark { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: oklch(0.65 0.15 145); color: white; flex-shrink: 0; }
.req-bullet h5 { font-family: var(--serif); font-size: 17px; font-weight: 400; letter-spacing: -0.01em; margin: 0 0 4px; }
.req-bullet p { font-size: 14px; color: var(--fg-muted); line-height: 1.55; margin: 0; }
.req-trust { display: grid; gap: 14px; max-width: 460px; padding: 20px 0; border-top: 1px solid var(--line); }
.req-trust-label { font-family: var(--mono); font-size: 11px; color: var(--fg-faint); letter-spacing: .12em; text-transform: uppercase; }
.req-trust-logos { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; font-family: var(--serif); font-size: 18px; color: var(--fg-muted); }
.req-form-side { background: var(--bg); border-left: 1px solid var(--line); padding: 96px 64px; display: grid; align-content: start; }
@media (max-width: 960px) { .req-form-side { border-left: 0; border-top: 1px solid var(--line); } }
@media (max-width: 768px) { .req-form-side { padding: 64px 24px; } }
.req-form { display: grid; gap: 16px; max-width: 520px; }
.req-form-head { display: grid; gap: 6px; padding-bottom: 8px; }
.req-form-head h2 { font-family: var(--serif); font-size: 24px; font-weight: 400; letter-spacing: -0.015em; margin: 0; }
.req-form-head p { font-size: 13.5px; color: var(--fg-muted); margin: 0; }
.req-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .req-row { grid-template-columns: 1fr; } }
.req-textarea { appearance: none; width: 100%; min-height: 100px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-elev); font-family: var(--sans, 'Inter', sans-serif); font-size: 15px; color: var(--fg); resize: vertical; transition: border-color .2s, background .2s; }
.req-textarea:focus { outline: none; border-color: var(--fg); background: var(--bg); }
.req-volume { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
@media (max-width: 600px) { .req-volume { grid-template-columns: 1fr 1fr; } }
.req-volume-opt { padding: 12px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-elev); font-family: var(--mono); font-size: 12px; color: var(--fg-muted); text-align: center; cursor: pointer; transition: all .2s; }
.req-volume-opt:hover { border-color: var(--line-strong); color: var(--fg); }
.req-volume-opt.is-active { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.req-consent { font-size: 12px; color: var(--fg-muted); line-height: 1.55; padding: 8px 0; }
.req-consent a { color: var(--fg); border-bottom: 1px solid var(--line); padding-bottom: 1px; text-decoration: none; }
.req-submit { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 24px; border-radius: 12px; font-family: var(--sans, 'Inter', sans-serif); font-size: 15px; font-weight: 500; background: var(--fg); color: var(--bg); border: 1px solid var(--fg); cursor: pointer; transition: opacity .2s, transform .2s; margin-top: 8px; width: 100%; }
.req-submit:hover { opacity: .92; }
.req-submit:active { transform: scale(.99); }
.req-submit:disabled { opacity: .55; cursor: not-allowed; }

/* ── Paywall / Upgrade page ─────────────────────────────────────────────── */
.pw-wrap { max-width: 1080px; margin: 0 auto; padding: 96px 24px 96px; position: relative; z-index: 2; }
.pw-eyebrow {
  display: inline-block; padding: 6px 14px;
  background: var(--bg-elev, #fff); border: 1px solid var(--line, rgba(10,10,10,.08));
  border-radius: 999px; font-family: var(--mono, 'Inter', sans-serif);
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--fg-muted, #6b6b6b); margin-bottom: 20px;
}
.pw-headline {
  font-family: var(--serif, 'Instrument Serif', serif);
  font-size: clamp(40px, 6vw, 64px); font-weight: 400;
  letter-spacing: -0.025em; line-height: 1.05; margin-bottom: 16px; margin-top: 0;
}
.pw-headline .em { font-style: italic; color: var(--fg-muted, #6b6b6b); }
.pw-sub { font-size: 17px; color: var(--fg-muted, #6b6b6b); line-height: 1.6; max-width: 560px; margin: 0 auto 18px; }

/* Trial banner */
.pw-trial-banner {
  background: var(--bg-elev, #fff); border: 1.5px solid var(--fg, #0a0a0a);
  border-radius: 18px; padding: 28px 36px; margin: 48px 0 36px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; flex-wrap: wrap; position: relative; overflow: hidden;
}
.pw-trial-banner::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(600px 200px at 0% 0%, rgba(150,100,220,.06), transparent 60%);
  pointer-events: none;
}
.pw-trial-mark { font-family: var(--mono, 'Inter', sans-serif); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-muted, #6b6b6b); margin-bottom: 8px; }
.pw-trial-title { font-family: var(--serif, 'Instrument Serif', serif); font-size: 28px; font-weight: 400; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 6px; }
.pw-trial-meta { font-size: 14px; color: var(--fg-muted, #6b6b6b); }

/* Toggle */
.pw-toggle-row { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 32px 0 28px; }
.pw-toggle-label { font-size: 14px; transition: opacity .15s; }
.pw-toggle-btn {
  position: relative; width: 48px; height: 26px; border-radius: 999px;
  background: #d1d5db; border: 0; cursor: pointer; transition: background .2s; flex-shrink: 0;
}
.pw-toggle-btn[data-on="true"] { background: var(--fg, #0a0a0a); }
.pw-toggle-btn span {
  position: absolute; top: 3px; left: 3px; width: 20px; height: 20px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: left .2s;
}
.pw-toggle-btn[data-on="true"] span { left: 25px; }
.pw-save-pill { color: #16a34a; font-size: 10px; font-weight: 700; background: #dcfce7; padding: 3px 7px; border-radius: 4px; letter-spacing: .02em; margin-left: 4px; }

/* Plan cards */
.pw-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 18px; }
@media (max-width: 900px) { .pw-grid { grid-template-columns: 1fr; } }
.pw-card {
  position: relative; background: var(--bg-elev, #fff); border: 1px solid var(--line, rgba(10,10,10,.08));
  border-radius: 16px; padding: 28px; display: flex; flex-direction: column;
  transition: transform .2s ease, border-color .2s ease;
}
.pw-card:hover { transform: translateY(-4px); border-color: var(--line-strong, rgba(10,10,10,.16)); }
.pw-card.featured { background: var(--fg, #0a0a0a); color: var(--bg, #fafaf7); border-color: var(--fg, #0a0a0a); }
.pw-card.featured .pw-card-meta { color: rgba(255,255,255,.6); }
.pw-card.featured .pw-card-billed { color: rgba(255,255,255,.45); }
.pw-card.featured .pw-was { color: rgba(255,255,255,.35); }
.pw-card.featured .pw-card-li { border-color: rgba(255,255,255,.12); }
.pw-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--bg-elev, #fff); color: var(--fg, #0a0a0a); border: 1px solid var(--fg, #0a0a0a);
  border-radius: 999px; padding: 4px 14px;
  font-family: var(--mono, 'Inter', sans-serif); font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap;
}
.pw-card.featured .pw-badge { background: var(--bg, #fafaf7); color: var(--fg, #0a0a0a); border-color: var(--bg, #fafaf7); }
.pw-card-name { font-family: var(--mono, 'Inter', sans-serif); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 16px; }
.pw-card-amount {
  font-family: var(--serif, 'Instrument Serif', serif); font-size: 48px; font-weight: 400;
  letter-spacing: -0.02em; line-height: 1; display: flex; align-items: baseline;
  flex-wrap: wrap; gap: 6px; margin-bottom: 6px;
}
.pw-card-amount sup { font-size: 18px; opacity: .6; vertical-align: top; margin-right: 2px; }
.pw-card-amount .per { font-family: var(--sans, 'Inter', sans-serif); font-size: 13px; color: var(--fg-muted, #6b6b6b); letter-spacing: 0; margin-left: 4px; }
.pw-card.featured .pw-card-amount .per { color: rgba(255,255,255,.6); }
.pw-was { font-family: var(--serif, 'Instrument Serif', serif); font-size: 22px; color: var(--fg-faint, #a3a3a0); text-decoration: line-through; text-decoration-thickness: 1.5px; margin-right: 4px; font-weight: 400; }
.pw-card-billed { font-family: var(--mono, 'Inter', sans-serif); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-faint, #a3a3a0); margin-bottom: 14px; }
.pw-card-meta { font-size: 13.5px; color: var(--fg-muted, #6b6b6b); margin-bottom: 18px; line-height: 1.5; }
.pw-card-list { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.pw-card-li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; padding-top: 10px; border-top: 1px solid var(--line, rgba(10,10,10,.08));
}
.pw-card-li:first-child { padding-top: 0; border-top: 0; }
.pw-card-li::before { content: '\2713'; color: var(--fg-muted, #6b6b6b); flex-shrink: 0; }
.pw-card.featured .pw-card-li::before { color: rgba(255,255,255,.7); }
.pw-card .pw-btn { width: 100%; justify-content: center; margin-top: auto; }
.pw-card.featured .pw-btn-ghost { background: transparent; color: var(--bg, #fafaf7); border-color: rgba(255,255,255,.4); }
.pw-card.featured .pw-btn-ghost:hover { background: var(--bg, #fafaf7); color: var(--fg, #0a0a0a); border-color: var(--bg, #fafaf7); }

/* Paywall buttons */
.pw-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px;
  font-size: 14px; font-weight: 500; border-radius: 999px; border: 1px solid transparent;
  white-space: nowrap; cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  font-family: var(--sans, 'Inter', sans-serif);
}
.pw-btn-primary { background: var(--fg, #0a0a0a); color: var(--bg, #fafaf7); }
.pw-btn-primary:hover { transform: translateY(-1px); }
.pw-btn-ghost { border-color: var(--line-strong, rgba(10,10,10,.16)); color: var(--fg, #0a0a0a); background: transparent; }
.pw-btn-ghost:hover { background: var(--fg, #0a0a0a); color: var(--bg, #fafaf7); border-color: var(--fg, #0a0a0a); }
.pw-arrow { transition: transform .25s ease; display: inline-block; }
.pw-btn:hover .pw-arrow { transform: translateX(3px); }

/* Business row */
.pw-business {
  background: var(--bg-elev, #fff); border: 1px solid var(--line, rgba(10,10,10,.08));
  border-radius: 16px; padding: 24px 32px; margin-top: 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.pw-business-name { font-family: var(--mono, 'Inter', sans-serif); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-faint, #a3a3a0); margin-bottom: 6px; }
.pw-business-title { font-family: var(--serif, 'Instrument Serif', serif); font-size: 22px; letter-spacing: -0.01em; line-height: 1.2; margin-bottom: 4px; }
.pw-business-sub { font-size: 13px; color: var(--fg-muted, #6b6b6b); }

/* Need setup + footer */
.pw-need-setup {
  margin-top: 18px; padding: 14px 18px; background: var(--bg, #fafaf7);
  border: 1px dashed var(--line-strong, rgba(10,10,10,.16)); border-radius: 10px;
  font-size: 13px; color: var(--fg-muted, #6b6b6b);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.pw-need-setup a, .pw-need-setup button { color: var(--fg, #0a0a0a); font-weight: 500; text-decoration: underline; }
.pw-foot { text-align: center; font-size: 12px; color: var(--fg-faint, #a3a3a0); margin-top: 48px; line-height: 1.7; }
.pw-foot a { color: var(--fg-muted, #6b6b6b); text-decoration: underline; }
