/* OSearcher marketing + legal — design tokens from app Theme.swift
   void #0A0914 · panel #100E1C · brand #5B9DFF → #A585F5 → #F183B6
   System font stack only (no external CDN). No JS required. */

:root {
  --void: #0a0914;
  --panel: #100e1c;
  --panel-2: #171326;
  --glass: rgba(255, 255, 255, 0.06);
  --stroke: rgba(255, 255, 255, 0.10);
  --stroke-bright: rgba(255, 255, 255, 0.18);
  --tx-primary: rgba(255, 255, 255, 0.92);
  --tx-secondary: rgba(255, 255, 255, 0.62);
  --tx-muted: rgba(255, 255, 255, 0.40);
  --grad-blue: #5b9dff;
  --grad-purple: #a585f5;
  --grad-pink: #f183b6;
  --brand-gradient: linear-gradient(90deg, var(--grad-blue), var(--grad-purple), var(--grad-pink));
  --brand-gradient-diag: linear-gradient(135deg, var(--grad-blue), var(--grad-purple), var(--grad-pink));
  --success: #3ddc97;
  --radius: 12px;
  --radius-card: 10px;
  --radius-chip: 6px;
  --max: 72rem;
  --content: 42rem;
  --space: clamp(1rem, 3vw, 1.5rem);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "Segoe UI", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--tx-primary);
  background: var(--void);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--grad-blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--grad-purple);
}

/* ——— Layout ——— */

.wrap {
  width: min(100% - 2 * var(--space), var(--max));
  margin-inline: auto;
}

.wrap-narrow {
  width: min(100% - 2 * var(--space), var(--content));
  margin-inline: auto;
}

/* ——— Header ——— */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--stroke);
  background: rgba(10, 9, 20, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--tx-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.brand:hover {
  color: var(--tx-primary);
}

.brand__mark {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 0.4rem;
  background: var(--brand-gradient-diag);
  box-shadow: 0 0 0 1px var(--stroke);
  flex-shrink: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 1rem;
  flex-wrap: wrap;
  font-size: 0.875rem;
}

.nav a {
  color: var(--tx-secondary);
  text-decoration: none;
}

.nav a:hover {
  color: var(--tx-primary);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.2rem;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: var(--glass);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.lang-switch a,
.lang-switch span {
  display: inline-block;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  color: var(--tx-muted);
  text-decoration: none;
}

.lang-switch a:hover {
  color: var(--tx-primary);
}

.lang-switch .is-active {
  color: var(--void);
  background: var(--brand-gradient);
}

/* ——— Draft banner ——— */

.draft-banner {
  border-bottom: 1px solid rgba(245, 165, 36, 0.35);
  background: rgba(245, 165, 36, 0.1);
  color: #f5c06a;
  font-size: 0.8125rem;
  line-height: 1.45;
  padding: 0.65rem 0;
  text-align: center;
}

.draft-banner strong {
  font-weight: 600;
  color: #ffd48a;
}

/* ——— Hero ——— */

.hero {
  padding: clamp(2.5rem, 8vw, 5rem) 0 clamp(2rem, 5vw, 3.5rem);
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: min(28rem, 70vh);
  background:
    radial-gradient(ellipse 60% 50% at 50% -10%, rgba(91, 157, 255, 0.18), transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 20%, rgba(165, 133, 245, 0.12), transparent 65%),
    radial-gradient(ellipse 35% 35% at 15% 40%, rgba(241, 131, 182, 0.08), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tx-muted);
}

.hero h1 {
  margin: 0 0 1rem;
  max-width: 18ch;
  font-size: clamp(2rem, 5.5vw, 3.25rem);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.hero__lead {
  margin: 0 0 1.75rem;
  max-width: 38rem;
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  color: var(--tx-secondary);
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

/* ——— Buttons ——— */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: default;
  transition: opacity 0.15s ease, border-color 0.15s ease;
}

.btn--primary {
  color: #0a0914;
  background: var(--brand-gradient);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 8px 28px rgba(91, 157, 255, 0.18);
}

.btn--primary:hover {
  color: #0a0914;
  opacity: 0.94;
}

.btn--ghost {
  color: var(--tx-secondary);
  background: transparent;
  border-color: var(--stroke);
}

.btn--ghost:hover {
  color: var(--tx-primary);
  border-color: var(--stroke-bright);
}

.btn--disabled,
.btn[aria-disabled="true"] {
  opacity: 0.72;
  pointer-events: none;
  cursor: not-allowed;
}

.btn__note {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--tx-muted);
}

/* ——— Sections ——— */

.section {
  padding: clamp(2.25rem, 5vw, 3.75rem) 0;
}

.section + .section {
  border-top: 1px solid var(--stroke);
}

.section__head {
  margin-bottom: 1.75rem;
  max-width: 36rem;
}

.section__head h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section__head p {
  margin: 0;
  color: var(--tx-secondary);
}

/* ——— Feature grid ——— */

.feature-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-card);
  background: var(--panel);
}

.feature-card h3 {
  margin: 0 0 0.45rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.feature-card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--tx-secondary);
  line-height: 1.5;
}

.feature-card__icon {
  display: block;
  width: 1.75rem;
  height: 0.2rem;
  margin-bottom: 0.85rem;
  border-radius: 999px;
  background: var(--brand-gradient);
}

/* ——— Free vs Pro ——— */

.plans {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .plans {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 1.35rem 1.35rem 1.45rem;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: var(--panel);
}

.plan--pro {
  border-color: rgba(165, 133, 245, 0.35);
  background:
    linear-gradient(165deg, rgba(91, 157, 255, 0.08), transparent 40%),
    var(--panel-2);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.plan__badge {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 0.75rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-chip);
  font-size: 0.6875rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--tx-secondary);
  background: var(--glass);
  border: 1px solid var(--stroke);
}

.plan--pro .plan__badge {
  color: #0a0914;
  background: var(--brand-gradient);
  border-color: transparent;
}

.plan h3 {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.plan__price {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--tx-primary);
}

.plan__price-sub {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  color: var(--tx-muted);
}

.plan ul {
  margin: 0;
  padding: 0;
  list-style: none;
  flex: 1;
}

.plan li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.15rem;
  font-size: 0.875rem;
  color: var(--tx-secondary);
  border-top: 1px solid var(--stroke);
}

.plan li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--grad-blue);
  opacity: 0.85;
}

.plan--pro li::before {
  background: var(--brand-gradient);
}

.plan__note {
  margin: 1rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px solid var(--stroke);
  font-size: 0.8125rem;
  color: var(--tx-muted);
  line-height: 1.45;
}

.plans-intro {
  margin: 0 0 1.5rem;
  max-width: 40rem;
  color: var(--tx-secondary);
  font-size: 0.9375rem;
}

/* ——— Privacy strip ——— */

.privacy-strip {
  padding: clamp(1.75rem, 4vw, 2.5rem) 0;
  border-top: 1px solid var(--stroke);
  border-bottom: 1px solid var(--stroke);
  background: var(--panel);
}

.privacy-strip .wrap {
  display: grid;
  gap: 0.75rem;
}

.privacy-strip h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.privacy-strip p {
  margin: 0;
  color: var(--tx-secondary);
  font-size: 0.9rem;
  max-width: 40rem;
}

/* ——— Footer ——— */

.site-footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--stroke);
  font-size: 0.8125rem;
  color: var(--tx-muted);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: flex-start;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.site-footer a {
  color: var(--tx-secondary);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--tx-primary);
}

.site-footer__meta {
  margin: 0;
  max-width: 28rem;
  line-height: 1.5;
}

/* ——— Legal pages ——— */

.legal-page {
  padding: clamp(1.75rem, 4vw, 2.75rem) 0 3.5rem;
}

.legal-page h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.legal-meta {
  margin: 0 0 1.75rem;
  font-size: 0.875rem;
  color: var(--tx-muted);
}

.legal-meta time {
  color: var(--tx-secondary);
}

.legal-toc {
  margin: 0 0 2rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-card);
  background: var(--panel);
  font-size: 0.875rem;
}

.legal-toc strong {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tx-muted);
}

.legal-toc a {
  color: var(--tx-secondary);
  text-decoration: none;
  margin-right: 0.85rem;
}

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

.legal-block {
  margin-bottom: 2.75rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid var(--stroke);
}

.legal-block:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.legal-block > h2 {
  margin: 0 0 1.25rem;
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.legal-block h3 {
  margin: 1.35rem 0 0.45rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--tx-primary);
}

.legal-block p,
.legal-block li {
  color: var(--tx-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.legal-block p {
  margin: 0 0 0.85rem;
}

.legal-block ul {
  margin: 0 0 0.85rem;
  padding-left: 1.2rem;
}

.legal-block li {
  margin-bottom: 0.35rem;
}

.legal-block a {
  word-break: break-word;
}

.hr-soft {
  border: none;
  border-top: 1px solid var(--stroke);
  margin: 2rem 0;
}

/* ——— Utility ——— */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-gradient {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
