/* Connect marketing site: shared design layer.
 *
 * This is frontend/DESIGN.md rendered dark (the app's `night` theme): one
 * saturated colour (primary blue) for anything interactive, panels separated
 * by a single neutral border, Space Grotesk only, and gradients only through
 * the named recipes below. Pages may add page-specific rules inline, but they
 * use these variables, never raw colours. */

:root {
  color-scheme: dark;

  /* Surfaces: page, raised panel, card. Borders carry the separation. */
  --color-base-100: #0a090b;
  --color-base-200: #121114;
  --color-base-300: #1a191e;
  --color-border: #2a2930;
  --color-border-hover: #3d3b45;

  /* Text tiers on dark: default, muted, subtle. Subtle holds 4.5:1 on base-200. */
  --color-text: #f2f2f3;
  --color-text-muted: #b4b3b8;
  --color-text-subtle: #8f8d94;

  /* Roles. Secondary and status colours never fill large surfaces. */
  --color-primary: #1f6dd8;
  --color-primary-content: #ffffff;
  --color-secondary: #661ae6;
  --color-success: #03ab62;
  --color-warning: #ffc13b;
  --color-danger: #d80004;
  --color-info: #1f6dd8;

  /* Readable variants for a role used as ink or a ring on a dark surface:
     the app's night clamp, oklch(from <role> max(l, 0.75) c h), precomputed
     here so browsers without relative colour syntax still get a valid value.
     The @supports block below derives them live. */
  --color-primary-readable: #60adff;
  --color-secondary-readable: #ae84ff;
  --color-success-readable: #42cb80;
  --color-primary-subtle: color-mix(in oklch, var(--color-primary) 12%, transparent);
  --color-primary-glow: color-mix(in oklch, var(--color-primary) 6%, transparent);

  /* Gradient recipes (DESIGN.md Gradient system), night variant. */
  --gradient-shade: white;
  --gradient-fill-primary: linear-gradient(
    135deg,
    var(--color-primary),
    color-mix(in oklch, var(--color-primary) 75%, var(--gradient-shade))
  );
  --gradient-fill-primary-hover: color-mix(
    in oklch,
    var(--color-primary) 70%,
    var(--gradient-shade)
  );
  --gradient-fill-secondary: linear-gradient(
    135deg,
    var(--color-secondary),
    color-mix(in oklch, var(--color-secondary) 75%, var(--gradient-shade))
  );
  --gradient-fill-info: linear-gradient(
    135deg,
    var(--color-info),
    color-mix(in oklch, var(--color-info) 75%, var(--gradient-shade))
  );
  --gradient-border: linear-gradient(
    135deg,
    var(--color-primary-readable),
    var(--color-secondary-readable)
  );
  --gradient-accent-bar: linear-gradient(
    90deg,
    var(--color-primary-readable),
    var(--color-secondary-readable)
  );
  --gradient-text: linear-gradient(
    135deg,
    var(--color-primary-readable),
    var(--color-secondary-readable)
  );

  /* Depth: three steps only. Resting cards use a border, not a shadow. */
  --shadow-hairline: 0 1px 3px rgb(0 0 0 / 0.4);
  --shadow-raised: 0 2px 10px rgb(0 0 0 / 0.45);
  --shadow-floating: 0 12px 32px rgb(0 0 0 / 0.6);

  /* Shape and spacing. */
  --radius-compact: 6px;
  --radius-control: 8px;
  --radius-card: 12px;
  --radius-pill: 9999px;
  --space: 4px;

  /* Type. DESIGN.md's tiers stop at 20px (product UI); the site adds display
     tiers above them. Weights stay Medium/Semi Bold. */
  --font-sans: 'Space Grotesk', system-ui, sans-serif;
  --text-hero: clamp(2.5rem, 4.2vw + 1rem, 4.5rem);
  --text-h2: clamp(1.875rem, 2.4vw + 1rem, 3rem);
  --text-h3: 1.25rem;
  --text-lead: 1.125rem;
  --text-body: 1rem;
  --text-sm: 0.875rem;
  --text-label: 0.75rem;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

@supports (color: oklch(from red l c h)) {
  :root {
    --color-primary-readable: oklch(from var(--color-primary) max(l, 0.75) c h);
    --color-secondary-readable: oklch(from var(--color-secondary) max(l, 0.75) c h);
    --color-success-readable: oklch(from var(--color-success) max(l, 0.75) c h);
  }
}

html {
  background: var(--color-base-100);
}

body {
  background: var(--color-base-100);
  color: var(--color-text);
  font-family: var(--font-sans);
}

::selection {
  background: color-mix(in oklch, var(--color-primary) 45%, transparent);
  color: var(--color-text);
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

/* Decorative glows are wider than a phone. Clip them per section: on mobile,
   overflow on the root or body does not stop them widening the layout
   viewport. `clip` (unlike hidden) keeps position: sticky working inside. */
section {
  overflow-x: clip;
}

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

:focus-visible {
  outline: 2px solid var(--color-primary-readable);
  outline-offset: 3px;
  border-radius: var(--radius-compact);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* Gradient text: hero numbers and the one highlighted phrase per heading. */
.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Buttons ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  border-radius: var(--radius-control);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  isolation: isolate;
  transition:
    transform 0.2s var(--ease-out),
    background 0.2s,
    border-color 0.2s,
    box-shadow 0.2s,
    color 0.2s;
}
.btn:active {
  transform: translateY(1px) scale(0.98);
}

.btn-primary {
  overflow: hidden;
  background: var(--gradient-fill-primary);
  color: var(--color-primary-content);
  border: none;
  box-shadow: var(--shadow-hairline);
}
.btn-primary:hover {
  background: var(--gradient-fill-primary-hover);
  box-shadow:
    var(--shadow-raised),
    0 0 0 1px color-mix(in oklch, var(--color-primary-readable) 35%, transparent);
}

/* Outline button: the masked 2px gradient/border ring on a quiet surface. */
.btn-outline,
.btn-outline-turq,
.btn-ghost {
  background: color-mix(in oklch, var(--color-base-200) 70%, transparent);
  color: var(--color-text);
  border-color: transparent;
}
.btn-outline::before,
.btn-outline-turq::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  padding: 1px;
  border-radius: inherit;
  background: var(--color-border-hover);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  transition: padding 0.2s;
}
.btn-outline:hover::before,
.btn-outline-turq:hover::before {
  padding: 2px;
  background: var(--gradient-border);
}
.btn-ghost:hover {
  background: var(--color-base-300);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
}

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 24px;
  border-bottom: 1px solid transparent;
  transition:
    background 0.3s,
    border-color 0.3s,
    backdrop-filter 0.3s;
}
.nav.scrolled {
  background: color-mix(in oklch, var(--color-base-100) 80%, transparent);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom-color: var(--color-border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.nav-logo img,
.footer-logo img {
  display: block;
  width: auto;
  height: 32px;
}
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-link {
  position: relative;
  white-space: nowrap;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color 0.2s;
}
.nav-link:hover,
.nav-link.active {
  color: var(--color-text);
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: var(--radius-pill);
  background: var(--color-primary-readable);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}
.nav-cta .btn {
  padding: 9px 20px;
  font-size: var(--text-sm);
}
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 101;
  background: none;
  border: 0;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition:
    transform 0.3s var(--ease-out),
    opacity 0.2s;
}
.nav-hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  /* Taller than a short phone once the Compare links are in: scroll, and
     start at the top so nothing is pushed above the nav. */
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 32px 24px 48px;
  background: color-mix(in oklch, var(--color-base-100) 96%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center;
  justify-content: safe center;
  gap: 28px;
}
.mobile-menu.open {
  display: flex;
}
.mobile-menu a {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text);
  transition: color 0.2s;
}
.mobile-menu a:hover {
  color: var(--color-primary-readable);
}
.mobile-menu a.btn-primary,
.mobile-menu a.btn-primary:hover {
  color: var(--color-primary-content);
}

/* Compare dropdown in the nav (blog pages). */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  background: none;
  border: 0;
  font-family: inherit;
  cursor: pointer;
}
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-top: 12px;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: block;
}
.nav-dropdown-list {
  display: flex;
  flex-direction: column;
  min-width: 180px;
  padding: 8px;
  background: var(--color-base-300);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-floating);
}
.nav-dropdown-list a {
  padding: 8px 12px;
  border-radius: var(--radius-compact);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-muted);
  white-space: nowrap;
  transition:
    color 0.2s,
    background 0.2s;
}
.nav-dropdown-list a:hover {
  color: var(--color-text);
  background: var(--color-base-200);
}
.mobile-menu .mobile-compare a {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text-muted);
}
.mobile-menu .mobile-compare a:hover {
  color: var(--color-primary-readable);
}

/* Compare links in the mobile menu. */
.mobile-compare {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.mobile-compare-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-subtle);
}

/* The full name needs room: between the hamburger and wide screens, show only the mark. */
@media (min-width: 961px) and (max-width: 1200px) {
  .nav-logo span {
    display: none;
  }
}
/* The full nav needs about 960px once Compare is in it; below that, use the menu. */
@media (max-width: 960px) {
  .nav-links,
  .nav-cta {
    display: none;
  }
  .nav-hamburger {
    display: flex;
  }
}

/* ---------- Demo form popup (demo-form.js opens it) ---------- */

.form-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: color-mix(in oklch, var(--color-base-100) 85%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.form-modal-overlay.open {
  display: flex;
}
.form-modal {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow: hidden;
  background: var(--color-base-200);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-floating);
}
.form-modal-overlay.open .form-modal {
  animation: modal-in 0.35s var(--ease-out);
}
@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
}
.form-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-border);
}
.form-modal-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
}
.form-modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-control);
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text-muted);
  font-size: 20px;
  cursor: pointer;
  transition:
    border-color 0.2s,
    color 0.2s;
}
.form-modal-close:hover {
  border-color: var(--color-primary-readable);
  color: var(--color-primary-readable);
}
div.form-modal-body {
  max-height: calc(90vh - 70px);
  overflow-y: auto;
}
@media (prefers-reduced-motion: reduce) {
  .form-modal-overlay.open .form-modal {
    animation: none;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--color-base-200);
  border-top: 1px solid var(--color-border);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 12px;
}
.footer-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 320px;
}
.footer-col h4 {
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-subtle);
  margin-bottom: 16px;
}
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 10px;
}
.footer-links a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--color-text);
}
.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
  text-align: center;
  font-size: 13px;
  color: var(--color-text-subtle);
}
.footer-bottom a:hover {
  color: var(--color-text);
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ---------- Cards ---------- */

/* Opt-in accent bar for featured cards (gradient/accent-bar). */
.card-accent {
  position: relative;
}
.card-accent::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  background: var(--gradient-accent-bar);
  opacity: 0.8;
}

/* Opt-in gradient ring on hover (gradient/border). The ring draws itself
   around the card from the top, then stays while the pointer is on it. */
@property --trace {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 0%;
}
.card-trace {
  position: relative;
  isolation: isolate;
}
.card-trace::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  padding: 1.5px;
  border-radius: inherit;
  background: conic-gradient(
    from 0deg,
    var(--color-primary-readable),
    var(--color-secondary-readable) var(--trace),
    transparent var(--trace)
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  transition: --trace 0.9s var(--ease-out);
}
.card-trace:hover::after,
.card-trace:focus-within::after {
  --trace: 100%;
}
@media (prefers-reduced-motion: reduce) {
  .card-trace::after {
    transition: none;
  }
}

/* Scene start states: hidden only until the page's scene has set its own
   starting positions (or the head's failsafe gives up). */
html.scene-wait [data-scene-hide] {
  opacity: 0;
}

/* Scroll reveal. Hidden only when JS is running, so content never depends on it.
   Blocks rise and sharpen; headings inside them wipe up from a mask. */
html.js .rv {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(6px);
  transition:
    opacity 0.8s var(--ease-out),
    transform 0.9s var(--ease-out),
    filter 0.8s var(--ease-out);
}
html.js .rv.vis {
  opacity: 1;
  transform: none;
  filter: none;
}
html.js .rv :is(h1, h2),
html.js h1.rv,
html.js h2.rv {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1s var(--ease-out) 0.08s;
}
html.js .rv.vis :is(h1, h2),
html.js h1.rv.vis,
html.js h2.rv.vis {
  clip-path: inset(-10% -5% -20% -5%);
}
.d1 {
  transition-delay: 0.08s;
}
.d2 {
  transition-delay: 0.16s;
}
.d3 {
  transition-delay: 0.24s;
}
.d4 {
  transition-delay: 0.32s;
}
.d5 {
  transition-delay: 0.4s;
}
.d6 {
  transition-delay: 0.48s;
}

/* Primary button: one light sweep on hover, nothing at rest. */
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    transparent 30%,
    rgb(255 255 255 / 0.28) 50%,
    transparent 70%
  );
  transform: translateX(-120%);
  pointer-events: none;
}
.btn-primary:hover::after,
.btn-primary:focus-visible::after {
  transform: translateX(120%);
  transition: transform 0.7s var(--ease-out);
}

@media (prefers-reduced-motion: reduce) {
  html.js .rv,
  html.js .rv :is(h1, h2),
  html.js h1.rv,
  html.js h2.rv {
    opacity: 1;
    transform: none;
    filter: none;
    clip-path: none;
    transition: none;
  }
  .btn-primary::after {
    display: none;
  }
  .btn:active {
    transform: none;
  }
}

/* ---------- Page patterns shared by several pages (pricing, comparison, legal, LLM pages) ---------- */

.section {
  padding: 100px 0;
}

.section-dark {
  background: var(--color-base-200);
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.legal-hero {
  padding: 140px 24px 40px;
  text-align: center;
  position: relative;
}

.legal-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 400px;
  background: radial-gradient(ellipse, var(--color-primary-glow) 0%, transparent 70%);
  pointer-events: none;
}

.legal-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
}

.legal-hero h1 {
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 700;
  margin-bottom: 14px;
}

.legal-meta {
  font-size: 14px;
  color: var(--color-text-muted);
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}

.legal-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legal-meta strong {
  color: var(--color-text);
  font-weight: 600;
}

.legal-wrap {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  align-items: start;
  padding-top: 40px;
}

.legal-toc {
  position: sticky;
  top: 88px;
  background: var(--color-base-200);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 20px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
}

.legal-toc h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary-readable);
  margin-bottom: 14px;
}

.legal-toc ol {
  list-style: none;
  counter-reset: toc;
  padding: 0;
  margin: 0;
}

.legal-toc li {
  counter-increment: toc;
  margin-bottom: 8px;
}

.legal-toc a {
  display: block;
  font-size: 13px;
  color: var(--color-text-muted);
  padding: 4px 0;
  transition: color 0.2s;
  line-height: 1.4;
}

.legal-toc a::before {
  content: counter(toc) '. ';
  color: var(--color-text-subtle);
  font-weight: 600;
}

.legal-toc a:hover {
  color: var(--color-text);
}

.legal-content {
  min-width: 0;
}

.legal-content section {
  margin-bottom: 48px;
  scroll-margin-top: 88px;
}

.legal-content h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
}

.legal-content h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 24px 0 10px;
  color: var(--color-text);
}

.legal-content p {
  font-size: 15px;
  color: var(--color-text-muted);
  margin-bottom: 14px;
  line-height: 1.75;
}

.legal-content ul {
  margin: 0 0 16px 24px;
  color: var(--color-text-muted);
}

.legal-content li {
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 8px;
}

.legal-content strong {
  color: var(--color-text);
  font-weight: 600;
}

.legal-content a {
  color: var(--color-primary-readable);
  border-bottom: 1px solid color-mix(in oklch, var(--color-primary) 30%, transparent);
  transition: border-color 0.2s;
}

.legal-content a:hover {
  border-color: var(--color-primary-readable);
}

.legal-intro {
  background: var(--color-base-200);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-primary-readable);
  border-radius: 10px;
  padding: 22px 24px;
  margin-bottom: 48px;
}

.legal-intro p {
  margin-bottom: 12px;
}

.legal-intro p:last-child {
  margin-bottom: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 22px;
  font-size: 14px;
  background: var(--color-base-200);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  overflow: hidden;
}

th,
td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
  color: var(--color-text-muted);
}

th {
  background: color-mix(in oklch, var(--color-primary) 4%, transparent);
  color: var(--color-text);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

tr:last-child td {
  border-bottom: none;
}

td strong {
  color: var(--color-text);
}

.pricing-hero {
  padding: 160px 24px 60px;
  text-align: center;
  position: relative;
}

.pricing-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, var(--color-primary-glow) 0%, transparent 70%);
  pointer-events: none;
}

.pricing-hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}

.pricing-hero p {
  font-size: 18px;
  color: var(--color-text-muted);
  max-width: 520px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  line-height: 1.7;
}

.billing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 40px 0 60px;
  position: relative;
  z-index: 2;
}

.billing-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color 0.3s;
}

.billing-label.active {
  color: var(--color-text);
}

.toggle-track {
  width: 52px;
  height: 28px;
  border-radius: 14px;
  background: var(--color-base-300);
  border: 1px solid var(--color-border);
  cursor: pointer;
  position: relative;
  transition: all 0.3s;
}

.toggle-track.annual {
  background: color-mix(in oklch, var(--color-primary) 15%, transparent);
  border-color: color-mix(in oklch, var(--color-primary) 30%, transparent);
}

.toggle-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-text);
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform 0.3s;
}

.toggle-track.annual .toggle-thumb {
  transform: translateX(24px);
  background: var(--color-primary-readable);
}

.save-badge {
  padding: 4px 10px;
  background: color-mix(in oklch, var(--color-primary) 10%, transparent);
  border: 1px solid color-mix(in oklch, var(--color-primary) 20%, transparent);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-primary-readable);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1080px;
  margin: 0 auto;
  padding-bottom: 100px;
}

.pricing-card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-4px);
  box-shadow:
    0 16px 48px color-mix(in oklch, var(--color-primary) 12%, transparent),
    inset 0 1px 0 color-mix(in oklch, var(--color-primary) 10%, transparent);
}

.pricing-card.featured {
  border-color: color-mix(in oklch, var(--color-primary) 30%, transparent);
  position: relative;
  box-shadow: 0 0 60px -20px color-mix(in oklch, var(--color-primary) 12%, transparent);
}

.pricing-card.featured:hover {
  box-shadow:
    0 20px 60px color-mix(in oklch, var(--color-primary) 20%, transparent),
    inset 0 1px 0 color-mix(in oklch, var(--color-primary) 15%, transparent);
}

.pricing-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 16px;
  background: var(--color-primary-readable);
  color: var(--color-base-100);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 6px;
}

.plan-name {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.plan-price {
  font-size: clamp(40px, 5vw, 52px);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 4px;
}

.plan-price .price-currency {
  font-size: 24px;
  vertical-align: top;
  position: relative;
  top: 8px;
}

.plan-price .price-period {
  font-size: 16px;
  font-weight: 400;
  color: var(--color-text-muted);
}

.plan-desc {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 28px;
  line-height: 1.6;
  min-height: 44px;
}

.plan-athletes {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--color-primary-subtle);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-primary-readable);
  margin-bottom: 24px;
}

.plan-features {
  list-style: none;
  flex: 1;
  margin-bottom: 28px;
}

.plan-features li {
  padding: 10px 0;
  border-bottom: 1px solid color-mix(in oklch, var(--color-border) 50%, transparent);
  font-size: 14px;
  color: var(--color-text-muted);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.plan-features li:last-child {
  border-bottom: none;
}

.plan-features li svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.plan-cta {
  width: 100%;
}

.addons-section {
  padding: 0 0 100px;
  max-width: 1080px;
  margin: 0 auto;
}

.addons-header {
  text-align: center;
  margin-bottom: 48px;
}

.addons-header h2 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  margin-bottom: 12px;
}

.addons-header p {
  font-size: 16px;
  color: var(--color-text-muted);
}

.addons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.addon-card {
  background: var(--color-base-200);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 24px;
  transition: border-color 0.3s;
}

.addon-card:hover {
  border-color: var(--color-border-hover);
}

.addon-card h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.addon-card p {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

.addon-price {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary-readable);
}

.trust-strip {
  padding: 60px 0;
  text-align: center;
}

.trust-strip h3 {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-subtle);
  margin-bottom: 24px;
}

.trust-items {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 32px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--color-text-muted);
}

.trust-item svg {
  flex-shrink: 0;
}

.pricing-faq {
  padding: 80px 0 100px;
  border-top: 1px solid var(--color-border);
}

.pricing-faq h2 {
  text-align: center;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  margin-bottom: 48px;
}

.faq-list {
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.page-section {
  padding: 20px 0 64px;
}

.page-narrow {
  max-width: 860px;
  margin: 0 auto;
}

.panel {
  background: var(--color-base-200);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 32px;
}

.panel h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}

.panel p {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.panel + .panel {
  margin-top: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  font-size: 15px;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

.data-table th {
  color: var(--color-text-muted);
  font-weight: 600;
}

.fine-print {
  font-size: 13px;
  color: var(--color-text-subtle);
  margin-top: 16px;
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.calc-field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.calc-field input {
  width: 100%;
  padding: 12px 14px;
  background: var(--color-base-300);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  color: var(--color-text);
  font-family: inherit;
  font-size: 15px;
}

.calc-field input:focus {
  outline: none;
  border-color: var(--color-primary-readable);
}

.calc-hint {
  font-size: 13px;
  color: var(--color-text-subtle);
  margin-top: 6px;
}

.calc-price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 40px;
  font-weight: 700;
}

.calc-hp {
  position: absolute;
  left: -9999px;
}

.panel h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 20px 0 8px;
}

.panel ul {
  margin: 12px 0 0 20px;
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 1.7;
}

.panel li + li {
  margin-top: 6px;
}

.panel strong {
  color: var(--color-text);
}

.panel p + p {
  margin-top: 12px;
}

.panel a:not(.btn) {
  color: var(--color-primary-readable);
}

@media (max-width: 1024px) {
  .legal-wrap {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .legal-toc {
    position: static;
    max-height: none;
  }
}

@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
  }
  .addons-grid {
    grid-template-columns: 1fr;
  }
}
