/* OutSends — Design Tokens (Inter-only, Stripe-clean palette) */
:root {
  /* Neutrals — clean, slightly cool */
  --os-bg: #FFFFFF;
  --os-surface: #FFFFFF;
  --os-surface-2: #F6F9FC;
  --os-surface-3: #EEF2F7;
  --os-line: #E3E8EE;
  --os-line-strong: #C1CDD9;
  --os-ink: #0A2540;
  --os-ink-2: #3C4257;
  --os-ink-3: #545C75;
  --os-muted: #6B7280;
  --os-faint: #8898A6;

  /* Accent — Stripe blurple */
  --os-accent: #533AFD;
  --os-accent-2: #4124FA;
  --os-accent-3: #6E5BFE;
  --os-accent-soft: #F0EDFF;
  --os-accent-soft-2: #E5E0FF;
  --os-accent-line: #C5BAFF;
  --os-accent-fade: #A8A3FF;
  --os-accent-glow: rgba(83, 58, 253, 0.45);

  /* Semantic */
  --os-ok: #1E8A4B;
  --os-warn: #C57F1A;
  --os-err: #D14343;

  /* Radii — Stripe-ish */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;

  /* Shadows — Stripe-layered (hairline ring + soft outer + crisp drop) */
  --sh-1: 0 1px 0 rgba(10, 37, 64, 0.04);
  --sh-2: 0 1px 2px rgba(10, 37, 64, 0.06), 0 4px 12px rgba(10, 37, 64, 0.05);
  --sh-lift: 0 2px 5px rgba(50,50,93,0.10), 0 1px 2px rgba(0,0,0,0.04), 0 12px 32px rgba(50,50,93,0.10);
  --sh-btn: 0 1px 1px rgba(0,0,0,0.07), 0 0 0 1px rgba(50,50,93,0.06), 0 2px 5px 0 rgba(50,50,93,0.08), 0 1px 1.5px 0 rgba(0,0,0,0.06);
  --sh-btn-hover: 0 1px 1px rgba(0,0,0,0.06), 0 0 0 1px rgba(50,50,93,0.07), 0 4px 8px 0 rgba(50,50,93,0.10), 0 2px 4px 0 rgba(0,0,0,0.06);
  --sh-btn-focus: 0 0 0 1px rgba(50,50,93,0.10), 0 0 0 4px rgba(83, 58, 253, 0.30), 0 2px 5px 0 rgba(50,50,93,0.08);
  --sh-btn-glow: 0 0 0 1px rgba(83,58,253,0.10), 0 4px 14px 0 rgba(83,58,253,0.32), 0 2px 4px 0 rgba(83,58,253,0.18);
  --sh-input-focus: 0 0 0 1px var(--os-accent), 0 0 0 4px rgba(83,58,253,0.18);
  --sh-input-focus-ink: 0 0 0 1px var(--os-ink), 0 0 0 4px rgba(10,37,64,0.10);

  /* Easing — Stripe-y motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Type — Inter only, with system mono for technical labels */
  --f-sans: "Inter", system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --f-serif: "Inter", system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --f-mono: ui-monospace, "SF Mono", "SFMono-Regular", "Menlo", "Consolas", "Liberation Mono", monospace;

  /* Spacing (8pt) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;

  /* Layout */
  --max: 1200px;
  --max-narrow: 880px;
  --max-prose: 720px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
html, body {
  margin: 0; padding: 0;
  background: var(--os-bg);
  color: var(--os-ink);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv02","cv03","cv04","cv11";
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color .18s var(--ease-out); }
button { font-family: inherit; }
::selection { background: var(--os-accent-fade); color: #fff; }
::-moz-selection { background: var(--os-accent-fade); color: #fff; }

/* Type scale — Inter, single family, weight-driven hierarchy */
.t-eyebrow {
  font-family: var(--f-sans);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--os-accent);
  font-weight: 600;
}
.t-display {
  font-family: var(--f-sans);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
  font-size: clamp(40px, 5.4vw, 64px);
  color: var(--os-ink);
}
.t-display .serif {
  font-family: inherit;
  font-weight: 600;
  font-style: normal;
  letter-spacing: inherit;
}
.t-h1 {
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: clamp(32px, 3.6vw, 44px);
  line-height: 1.12;
  margin: 0;
}
.t-h2 {
  font-weight: 600;
  letter-spacing: -0.018em;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.18;
  margin: 0;
}
.t-h3 {
  font-weight: 600;
  letter-spacing: -0.012em;
  font-size: 20px;
  line-height: 1.25;
  margin: 0;
}
.t-lead {
  font-size: clamp(17px, 1.15vw, 19px);
  line-height: 1.55;
  color: var(--os-ink-2);
  letter-spacing: -0.005em;
  font-weight: 400;
}
.t-body { font-size: 15.5px; line-height: 1.6; color: var(--os-ink-2); }
.t-small { font-size: 13.5px; color: var(--os-ink-3); }
.t-micro { font-size: 12px; color: var(--os-muted); }
.t-mono  { font-family: var(--f-mono); font-size: 12.5px; color: var(--os-ink-3); font-feature-settings: normal; }

/* Buttons — Stripe-style: gradient primary, lift on hover, press on active, focus ring */
.btn {
  --btn-bg: var(--os-ink);
  --btn-bg-hover: #11365D;
  --btn-fg: #fff;
  --btn-border: transparent;
  --btn-ring: rgba(10, 37, 64, 0.20);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px;
  font-size: 14px; font-weight: 500;
  border-radius: var(--r-sm);
  border: 1px solid var(--btn-border);
  cursor: pointer;
  background: var(--btn-bg);
  background-image: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0) 100%);
  color: var(--btn-fg);
  letter-spacing: -0.005em;
  white-space: nowrap;
  line-height: 1;
  user-select: none;
  text-decoration: none;
  will-change: transform, box-shadow;
  transition:
    background-color .18s var(--ease-out),
    border-color .18s var(--ease-out),
    color .18s var(--ease-out),
    box-shadow .22s var(--ease-out),
    transform .18s var(--ease-out);
}
.btn:hover { background-color: var(--btn-bg-hover); transform: translateY(-1px); }
.btn:active { transform: translateY(0); transition-duration: .06s; }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 1px var(--btn-bg), 0 0 0 4px var(--btn-ring); }

.btn-primary {
  --btn-bg: var(--os-accent);
  --btn-bg-hover: var(--os-accent-3);
  --btn-fg: #fff;
  --btn-ring: rgba(83, 58, 253, 0.30);
  background-image: linear-gradient(180deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0) 100%);
  box-shadow: 0 1px 1px rgba(0,0,0,0.06), 0 0 0 1px rgba(83,58,253,0.10), 0 2px 5px 0 rgba(83,58,253,0.20), 0 1px 1.5px 0 rgba(0,0,0,0.06);
}
.btn-primary:hover { box-shadow: var(--sh-btn-glow); }
.btn-primary:focus-visible { box-shadow: 0 0 0 1px var(--os-accent), 0 0 0 4px rgba(83,58,253,0.30); }

.btn-ink {
  --btn-bg: var(--os-ink);
  --btn-bg-hover: #11365D;
  --btn-fg: #fff;
  --btn-ring: rgba(10, 37, 64, 0.25);
  box-shadow: var(--sh-btn);
}
.btn-ink:hover { box-shadow: var(--sh-btn-hover); }
.btn-ink:focus-visible { box-shadow: var(--sh-btn), 0 0 0 4px rgba(10,37,64,0.20); }

.btn-accent {
  --btn-bg: var(--os-accent);
  --btn-bg-hover: var(--os-accent-3);
  --btn-fg: #fff;
  --btn-ring: rgba(83, 58, 253, 0.30);
  background-image: linear-gradient(180deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0) 100%);
  box-shadow: 0 1px 1px rgba(0,0,0,0.06), 0 0 0 1px rgba(83,58,253,0.10), 0 2px 5px 0 rgba(83,58,253,0.20), 0 1px 1.5px 0 rgba(0,0,0,0.06);
}
.btn-accent:hover { box-shadow: var(--sh-btn-glow); }
.btn-accent:focus-visible { box-shadow: var(--sh-btn-focus); }

.btn-secondary {
  --btn-bg: var(--os-surface);
  --btn-bg-hover: var(--os-surface-2);
  --btn-fg: var(--os-ink);
  --btn-border: var(--os-line);
  --btn-ring: rgba(10, 37, 64, 0.12);
  background-image: none;
  box-shadow: 0 1px 1px rgba(10,37,64,0.05), 0 0 0 1px rgba(50,50,93,0.04);
}
.btn-secondary:hover { border-color: var(--os-line-strong); box-shadow: 0 1px 2px rgba(10,37,64,0.06), 0 4px 10px rgba(10,37,64,0.06), 0 0 0 1px rgba(50,50,93,0.05); color: var(--os-ink); }
.btn-secondary:focus-visible { box-shadow: 0 0 0 1px var(--os-ink), 0 0 0 4px rgba(10,37,64,0.12); }

.btn-ghost {
  --btn-bg: transparent;
  --btn-bg-hover: var(--os-surface-2);
  --btn-fg: var(--os-ink);
  background-image: none;
}
.btn-ghost:hover { color: var(--os-ink); transform: none; }
.btn-ghost:focus-visible { box-shadow: 0 0 0 2px rgba(10,37,64,0.18); }

.btn-lg { padding: 13px 22px; font-size: 15px; }
.btn-sm { padding: 7px 12px; font-size: 13px; gap: 6px; }
.btn .arr { transition: transform .22s var(--ease-out); display: inline-block; }
.btn:hover .arr { transform: translateX(3px); }

/* Form fields — Stripe-style focus rings */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12.5px; font-weight: 500; color: var(--os-ink-3); letter-spacing: -0.005em; }
input, select, textarea {
  font-family: inherit;
  font-size: 14px;
  color: var(--os-ink);
  background: var(--os-surface);
  border: 1px solid var(--os-line);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  line-height: 1.4;
  transition: border-color .18s var(--ease-out), box-shadow .18s var(--ease-out), background-color .18s var(--ease-out);
  width: 100%;
}
input::placeholder, textarea::placeholder { color: var(--os-faint); }
input:hover, select:hover, textarea:hover { border-color: var(--os-line-strong); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--os-accent); box-shadow: var(--sh-input-focus); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; }
select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2.5 4.5 L6 8 L9.5 4.5' fill='none' stroke='%236B7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
textarea { resize: vertical; min-height: 110px; }
[type="checkbox"], [type="radio"] { width: auto; accent-color: var(--os-accent); }

/* Layout — V4 tightened (more compact like Stripe) */
.container { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: var(--max-narrow); margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) {
  .container,
  .container-narrow { padding-inline: 20px; }
}
.section { padding: 64px 0; position: relative; }
.section-sm { padding: 40px 0; }
.section-tight { padding: 48px 0; }
.divider { height: 1px; background: var(--os-line); }
.rule { border: 0; height: 1px; background: var(--os-line); margin: 0; }
@media (min-width: 1100px) {
  .section { padding: 72px 0; }
}

/* Cards */
.card {
  background: var(--os-surface);
  border: 1px solid var(--os-line);
  border-radius: var(--r-md);
}
.card-padded { padding: 28px; }

/* Chips */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--os-line);
  border-radius: 999px;
  background: var(--os-surface);
  font-size: 12px;
  color: var(--os-ink-2);
  font-weight: 500;
  line-height: 1.5;
}
.chip-dot { width: 6px; height: 6px; border-radius: 999px; background: var(--os-accent); }

/* Grid helpers */
.grid { display: grid; gap: 24px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .g-2, .g-3, .g-4 { grid-template-columns: 1fr; } }

/* Section label system */
.sec-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-sans); font-size: 12px;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--os-accent);
  margin-bottom: 24px;
  font-weight: 600;
}
.sec-label .idx {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid var(--os-accent-line);
  border-radius: 4px;
  background: var(--os-accent-soft);
  color: var(--os-accent);
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.02em;
}

/* Link styles — animated underline + arrow nudge */
.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--os-accent);
  font-weight: 500;
  font-size: 14px;
  transition: color .18s var(--ease-out), gap .22s var(--ease-out);
}
.link-arrow::after { content: ""; }
.link-arrow:hover { color: var(--os-accent-2); gap: 10px; }

.link-underline {
  position: relative;
  display: inline-block;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size .25s var(--ease-out);
}
.link-underline:hover { background-size: 100% 1px; }

/* Surface variants */
.bg-cream { background: var(--os-surface-2); }
.bg-sand { background: var(--os-surface-3); }
.bg-ink { background: var(--os-ink); color: #E5E9F0; }
.bg-ink .t-lead, .bg-ink .t-body, .bg-ink .t-small { color: #B5BCC9; }
.bg-ink .t-eyebrow { color: #8898A6; }
.bg-ink .sec-label { color: #8898A6; }
.bg-ink .sec-label .idx { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); color: #B5BCC9; }
.bg-ink .card { background: #122844; border-color: #1F3859; color: #E5E9F0; }

/* Tables */
.table {
  width: 100%; border-collapse: collapse; font-size: 14px;
}
.table th, .table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--os-line);
  text-align: left;
  vertical-align: top;
}
.table th {
  font-weight: 600; color: var(--os-ink-3);
  font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase;
  background: var(--os-surface-2);
}

/* Hover lift — Stripe card pattern */
.hover-lift { transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), border-color .25s var(--ease-out); }
.hover-lift:hover { border-color: var(--os-line-strong); box-shadow: var(--sh-lift); transform: translateY(-2px); }

.card { transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), border-color .25s var(--ease-out); }
.card.is-interactive:hover, a.card:hover { border-color: var(--os-line-strong); box-shadow: var(--sh-lift); transform: translateY(-2px); }

/* Generic anchor inside content */
a.tx-link { color: var(--os-accent); }
a.tx-link:hover { color: var(--os-accent-2); }

/* Focus — global accessibility ring */
:focus-visible { outline: 2px solid var(--os-accent); outline-offset: 3px; border-radius: 4px; }
button:focus-visible, a:focus-visible { outline-offset: 3px; }

/* Section eyebrow + label override now use Stripe blurple */

/* Scroll reveal */
.os-reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.os-reveal.is-in { opacity: 1; transform: translateY(0); }
.os-reveal-delay-1 { transition-delay: .06s; }
.os-reveal-delay-2 { transition-delay: .12s; }
.os-reveal-delay-3 { transition-delay: .18s; }
@media (prefers-reduced-motion: reduce) {
  .os-reveal { opacity: 1; transform: none; transition: none; }
}

/* Interactive surfaces — auto-applied to common card patterns across pages */
.feat-card, .aud-card, .obj, .quote-card, .compare-card, .when-card,
.doc-tile, .trust-tile, .price-card, .right-card, .plan, .role-row,
.legal section.card, .os-mega a, .price-tier {
  transition: border-color .25s var(--ease-out), box-shadow .25s var(--ease-out), transform .25s var(--ease-out), background-color .18s var(--ease-out);
}
.feat-card:hover, .aud-card:hover, .obj:hover, .quote-card:hover,
.compare-card:hover, .when-card:hover, .doc-tile:hover, .trust-tile:hover,
.right-card:hover, .price-tier:hover, .plan:hover {
  border-color: var(--os-line-strong);
  box-shadow: var(--sh-2);
  transform: translateY(-2px);
}
.plan.recommended:hover { box-shadow: var(--sh-lift); }
a.feat-card:hover, a.aud-card:hover, a.compare-card:hover,
a.when-card:hover, a.doc-tile:hover { box-shadow: var(--sh-lift); }

/* Tabs (audience selector etc.) */
.aud-tab, .seg-tab, [role="tab"] {
  transition: color .18s var(--ease-out), background-color .18s var(--ease-out), border-color .18s var(--ease-out);
}
.aud-tab:hover:not(.active), .seg-tab:hover:not(.active), [role="tab"]:hover:not([aria-selected="true"]) {
  color: var(--os-ink);
  background: var(--os-surface);
}

/* Utility */
.muted { color: var(--os-muted); }
.ink-3 { color: var(--os-ink-3); }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; } .mt-5 { margin-top: 48px; } .mt-6 { margin-top: 64px; }
.flex { display: flex; } .items-center { align-items: center; } .justify-between { justify-content: space-between; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-6 { gap: 24px; }
.text-center { text-align: center; }

/* ==========================================================
   Stripe FX — gradient mesh, magnetic, tilt, marquee, etc.
   ========================================================== */

/* Gradient text accent — used for keywords */
.tx-gradient {
  background: linear-gradient(95deg, #533AFD 0%, #7B5BFF 40%, #00D4FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* Hero gradient mesh — Stripe-style floating orbs */
.os-mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.os-mesh::before, .os-mesh::after {
  content: "";
  position: absolute;
  width: 620px; height: 620px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  will-change: transform;
}
.os-mesh::before {
  background: radial-gradient(circle, #533AFD 0%, rgba(83,58,253,0) 65%);
  top: -180px; left: -120px;
  animation: os-float-a 22s ease-in-out infinite alternate;
}
.os-mesh::after {
  background: radial-gradient(circle, #00D4FF 0%, rgba(0,212,255,0) 65%);
  top: -80px; right: -160px;
  animation: os-float-b 26s ease-in-out infinite alternate;
}
.os-mesh.os-mesh-soft::before { opacity: 0.30; }
.os-mesh.os-mesh-soft::after { opacity: 0.22; }
@keyframes os-float-a {
  0%   { transform: translate3d(0,0,0) scale(1); }
  50%  { transform: translate3d(60px, 40px, 0) scale(1.08); }
  100% { transform: translate3d(-30px, 20px, 0) scale(0.95); }
}
@keyframes os-float-b {
  0%   { transform: translate3d(0,0,0) scale(1); }
  50%  { transform: translate3d(-50px, 30px, 0) scale(1.10); }
  100% { transform: translate3d(40px, -20px, 0) scale(0.96); }
}
@media (prefers-reduced-motion: reduce) {
  .os-mesh::before, .os-mesh::after { animation: none; }
}

/* Card with subtle accent gradient halo on hover (Stripe pattern) */
.fx-glow {
  position: relative;
  isolation: isolate;
}
.fx-glow::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(83,58,253,0) 0%, rgba(83,58,253,0.55) 50%, rgba(0,212,255,0) 100%);
  opacity: 0;
  z-index: -1;
  transition: opacity .35s var(--ease-out);
  pointer-events: none;
  filter: blur(8px);
}
.fx-glow:hover::before { opacity: 0.65; }

/* Card spotlight — follows cursor (chrome.js sets --mx / --my in %) */
.fx-spotlight {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.fx-spotlight::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), rgba(83,58,253,0.12), transparent 60%);
  opacity: 0;
  transition: opacity .25s var(--ease-out);
  pointer-events: none;
  z-index: 0;
}
.fx-spotlight:hover::before { opacity: 1; }
.fx-spotlight > * { position: relative; z-index: 1; }

/* 3D-tilt — chrome.js applies --rx / --ry on mousemove */
.fx-tilt {
  transform-style: preserve-3d;
  transform: perspective(900px) rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg)) translateZ(0);
  transition: transform .25s var(--ease-out);
  will-change: transform;
}

/* Magnetic — chrome.js translates the element by --tx / --ty toward cursor */
.fx-magnetic {
  transition: transform .25s var(--ease-out);
  transform: translate(var(--tx, 0px), var(--ty, 0px));
  will-change: transform;
}

/* Marquee logo strip */
.fx-marquee {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.fx-marquee-track {
  display: flex; gap: 56px;
  width: max-content;
  animation: os-marquee 38s linear infinite;
}
.fx-marquee:hover .fx-marquee-track { animation-play-state: paused; }
@keyframes os-marquee {
  from { transform: translate3d(0,0,0); }
  to   { transform: translate3d(-50%,0,0); }
}
@media (prefers-reduced-motion: reduce) {
  .fx-marquee-track { animation: none; }
}

/* Pulse dot — for "live" / "online" indicators */
.fx-pulse {
  position: relative;
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--os-ok);
}
.fx-pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--os-ok);
  opacity: 0.4;
  animation: os-pulse 1.8s ease-out infinite;
}
@keyframes os-pulse {
  0%   { transform: scale(0.8); opacity: 0.5; }
  100% { transform: scale(2); opacity: 0; }
}

/* Animated underline indicator — for nav links */
.fx-link {
  position: relative;
  padding-bottom: 2px;
}
.fx-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .28s var(--ease-out);
  border-radius: 2px;
}
.fx-link:hover::after, .fx-link[aria-current="page"]::after { transform: scaleX(1); }

/* Skeleton shimmer */
.fx-shimmer {
  background: linear-gradient(90deg, var(--os-surface-2) 0%, var(--os-surface-3) 50%, var(--os-surface-2) 100%);
  background-size: 200% 100%;
  animation: os-shimmer 1.6s linear infinite;
}
@keyframes os-shimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

/* Stat number — count-up reveal */
.fx-stat {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

/* Section reveal alt: scale */
.os-reveal-scale { opacity: 0; transform: scale(0.96); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.os-reveal-scale.is-in { opacity: 1; transform: scale(1); }
@media (prefers-reduced-motion: reduce) {
  .os-reveal-scale { opacity: 1; transform: none; }
  .fx-pulse::after { animation: none; }
  .fx-shimmer { animation: none; }
}

/* Dark surface adjustments for blurple */
.bg-ink .t-eyebrow, .bg-ink .sec-label { color: var(--os-accent-fade); }
.bg-ink .sec-label .idx { background: rgba(83,58,253,0.18); border-color: rgba(83,58,253,0.30); color: var(--os-accent-fade); }
.bg-ink .chip-dot { background: var(--os-accent-fade); }

/* Inline accent helpers */
.tx-accent { color: var(--os-accent); }
.tx-accent:hover { color: var(--os-accent-2); }

/* ==========================================================
   V4 — Pricing additions: billing toggle, plan icons, BEST OFFER, glow
   ========================================================== */

/* Billing toggle — pill-style, centered above the plan grid */
.billing-toggle {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  border-radius: 999px;
  background: var(--os-surface);
  border: 1px solid var(--os-line);
  box-shadow: 0 1px 1px rgba(10,37,64,0.04), 0 0 0 1px rgba(50,50,93,0.03);
  position: relative;
}
.billing-toggle button {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 9px 18px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--os-ink-3);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color .18s var(--ease-out), background-color .22s var(--ease-out);
  letter-spacing: -0.005em;
}
.billing-toggle button:hover { color: var(--os-ink); }
.billing-toggle button[aria-pressed="true"] {
  background: var(--os-ink);
  color: #fff;
  box-shadow: 0 1px 2px rgba(10,37,64,0.20);
}
.billing-toggle button[aria-pressed="true"] .toggle-chip {
  background: rgba(255,255,255,0.18);
  color: #fff;
  border-color: rgba(255,255,255,0.0);
}
.toggle-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--os-accent-soft);
  border: 1px solid var(--os-accent-line);
  color: var(--os-accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: background-color .22s var(--ease-out), color .22s var(--ease-out), border-color .22s var(--ease-out);
}

/* Plan refinements (V4) */
.plan { padding: 24px 22px; transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), border-color .25s var(--ease-out); }
/* Defensive: no text-decoration anywhere on plan cards. !important is needed
   because some browser extensions (deal-finders, savings-calculators, dyslexia
   helpers) inject inline styles or stylesheets with !important to add
   strikethrough/underline. This ensures the cards always render clean. */
.plan, .plan *, .plan a, .plan a:visited, .plan div, .plan span, .plan strong, .plan li {
  text-decoration: none !important;
  text-decoration-line: none !important;
  text-decoration-style: solid !important;
}
.plan-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--os-ink);
  margin-bottom: 10px;
}
.plan-icon svg { width: 22px; height: 22px; }
.plan .plan-name-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.plan .plan-name-row .plan-icon { margin-bottom: 0; width: 22px; height: 22px; }
.plan .plan-name-row .plan-icon svg { width: 18px; height: 18px; }

/* Pro plan — accent border + ambient glow + best-offer badge */
.plan.is-best {
  border: 1.5px solid var(--os-accent);
  background: var(--os-surface);
  box-shadow:
    0 0 0 1px rgba(83, 58, 253, 0.10),
    0 18px 50px rgba(83, 58, 253, 0.18),
    0 6px 16px rgba(83, 58, 253, 0.10);
  position: relative;
  isolation: isolate;
  margin-top: 28px;
  padding-top: 30px;
  overflow: visible;
}
.plan.is-best::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: calc(var(--r-md) + 8px);
  background: radial-gradient(60% 70% at 50% 0%, rgba(83,58,253,0.18) 0%, rgba(83,58,253,0) 70%);
  z-index: -1;
  pointer-events: none;
}
.plan.is-best:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(83,58,253,0.16), 0 24px 60px rgba(83,58,253,0.22), 0 8px 18px rgba(83,58,253,0.14); }

.best-offer-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 14px;
  background: linear-gradient(180deg, var(--os-accent-3) 0%, var(--os-accent) 100%);
  color: #fff;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  border-radius: 999px;
  white-space: nowrap;
  z-index: 6;
  box-shadow:
    0 0 0 1px rgba(83,58,253,0.30),
    0 6px 14px rgba(83,58,253,0.34),
    0 2px 4px rgba(83,58,253,0.18);
}

/* Per-email cost chip — soft purple, no glass */
.plan-cost-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  background: var(--os-accent-soft);
  border: 1px solid var(--os-accent-line);
  color: var(--os-accent-2);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.plan-cost-chip svg { color: var(--os-accent); }

/* .feat-hl — kept as a class but rendered like a normal feature row
   (no purple background, no purple square check). The strong text inside
   stays bold so the volume numbers still stand out, but in normal ink color. */
.plan-feats li.feat-hl { background: transparent; padding: 0; margin: 0; color: var(--os-ink-2); font-weight: inherit; }
.plan-feats li.feat-hl strong { color: var(--os-ink); font-weight: 600; }

/* Annual note under the price */
.plan-billed.is-annual { color: var(--os-ink-3); }
.plan-save {
  color: var(--os-accent);
  font-weight: 500;
}

/* Annual chip ("save N%") */
.annual-only { display: none; }
[data-billing="annual"] .annual-only { display: block; }
[data-billing="annual"] .monthly-only { display: none; }
[data-billing="monthly"] .monthly-only { display: block; }
[data-billing="monthly"] .annual-only { display: none; }

@media (prefers-reduced-motion: reduce) {
  .plan.is-best::before { display: none; }
}
