/* ============================================================
   chater360 — chater.ai
   Single stylesheet, no external dependencies.
   ============================================================ */

/* ---------- Tokens ----------
   Dark is the DEFAULT theme (regardless of OS preference).
   Light is opt-in via the nav toggle → html[data-theme="light"]. */
:root {
  color-scheme: dark;

  --bg: #0c0c14;
  --surface: #14141f;
  --surface-2: #1a1a28;
  --text: #f3f3f8;
  --text-2: #aaacbe;
  --text-3: #9294a8;
  --border: #262637;
  --border-strong: #33334a;

  --violet: #6d5dfc;
  --violet-deep: #7c3aed;
  --fuchsia: #d946ef;
  --grad: linear-gradient(135deg, #7c3aed 0%, #a34bf5 55%, #d946ef 100%);

  --accent: #b79bff;
  --accent-strong: #c9b3ff;
  --danger: #f87171;
  --ch-green: #4ade80;
  --ch-pink: #f472c6;
  --ch-blue: #74a5ff;

  --tint-violet: #221f3a;
  --tint-green: #12281c;
  --tint-pink: #2e1a28;
  --tint-blue: #16233a;

  --ring: rgba(109, 93, 252, 0.4);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 28px -10px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 32px 72px -24px rgba(0, 0, 0, 0.7), 0 8px 24px -12px rgba(0, 0, 0, 0.5);

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 22px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display",
    "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;

  --header-h: 66px;
}

:root[data-theme="light"] {
  color-scheme: light;

  --bg: #fbfbfd;
  --surface: #ffffff;
  --surface-2: #f5f5fa;
  --text: #15161e;
  --text-2: #4d5064;
  --text-3: #676a7f;
  --border: #e8e8f0;
  --border-strong: #d9d9e6;

  --accent: #7c3aed;
  --accent-strong: #7c3aed;
  --danger: #dc2626;
  --ch-green: #16a34a;
  --ch-pink: #d1298f;
  --ch-blue: #2f6bff;

  --tint-violet: #f1eefe;
  --tint-green: #e7f7ee;
  --tint-pink: #fdeef6;
  --tint-blue: #eaf2fe;

  --shadow-sm: 0 1px 2px rgba(21, 22, 30, 0.05);
  --shadow-md: 0 8px 28px -10px rgba(21, 22, 30, 0.14);
  --shadow-lg: 0 32px 72px -24px rgba(76, 29, 149, 0.25), 0 8px 24px -12px rgba(21, 22, 30, 0.12);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

html,
body {
  overflow-x: clip;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--violet);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection {
  background: rgba(124, 58, 237, 0.22);
}

h1, h2, h3, h4 {
  line-height: 1.15;
  letter-spacing: -0.022em;
  font-weight: 700;
  color: var(--text);
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 200;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- Layout utilities ---------- */
.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 32px);
}

.section {
  padding-block: clamp(64px, 9vw, 112px);
}

.section-head {
  max-width: 640px;
  margin: 0 auto clamp(40px, 6vw, 64px);
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  margin-bottom: 14px;
}

.section-head .lede {
  color: var(--text-2);
  font-size: clamp(1rem, 1.6vw, 1.125rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

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

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--d, 0s);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease,
    border-color 0.15s ease, filter 0.15s ease;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(124, 58, 237, 0.55);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px -8px rgba(124, 58, 237, 0.6);
  filter: brightness(1.05);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  border-color: var(--violet);
  color: var(--accent-strong);
}

.btn-light {
  background: #fff;
  color: #6317c9;
}

.btn-light:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.4);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.875rem;
}

.btn-block {
  width: 100%;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.nav {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.brand:hover {
  text-decoration: none;
}

.brand svg {
  flex: none;
  border-radius: 8px;
  box-shadow: 0 3px 10px -3px rgba(124, 58, 237, 0.5);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin-left: auto;
}

.nav-links a:not(.btn) {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text-2);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-links a:not(.btn):hover {
  color: var(--text);
  background: var(--surface-2);
  text-decoration: none;
}

.nav-links .btn {
  margin-left: 8px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.theme-toggle svg {
  display: block;
}

.theme-toggle .ic-moon {
  display: none;
}

:root[data-theme="light"] .theme-toggle .ic-sun {
  display: none;
}

:root[data-theme="light"] .theme-toggle .ic-moon {
  display: block;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}

.nav-toggle .bar {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 780px) {
  .nav-toggle {
    display: flex;
  }

  .nav-actions {
    margin-left: auto;
  }

  .nav-links {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px clamp(20px, 4vw, 32px) 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a:not(.btn) {
    padding: 12px 14px;
    font-size: 1rem;
  }

  .nav-links .btn {
    margin: 8px 0 0;
    justify-content: center;
  }

  .nav-links.open ~ * {
    /* no-op: menu overlays content */
  }

  .nav-toggle[aria-expanded="true"] .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle[aria-expanded="true"] .bar:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle[aria-expanded="true"] .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(56px, 8vw, 96px);
  padding-bottom: clamp(48px, 6vw, 72px);
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -30% -10% 30%;
  z-index: -1;
  background:
    radial-gradient(42% 42% at 30% 22%, rgba(124, 58, 237, 0.13), transparent 70%),
    radial-gradient(38% 40% at 72% 14%, rgba(217, 70, 239, 0.1), transparent 70%);
  pointer-events: none;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-2);
  box-shadow: var(--shadow-sm);
  margin-bottom: 26px;
}

.hero-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grad);
  flex: none;
}

.hero h1 {
  font-size: clamp(2.35rem, 6vw, 4.05rem);
  font-weight: 750;
  letter-spacing: -0.032em;
  max-width: 820px;
  margin-inline: auto;
}

.hero .sub {
  max-width: 620px;
  margin: 22px auto 0;
  font-size: clamp(1.02rem, 1.8vw, 1.2rem);
  color: var(--text-2);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}

.hero-note {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 26px;
  font-size: 0.88rem;
  color: var(--text-3);
  font-weight: 500;
}

.hero-note .pulse {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  flex: none;
}

.hero-note .pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid rgba(34, 197, 94, 0.5);
  animation: pulse-ring 2.2s ease-out infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.5);
    opacity: 1;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

/* ---------- Browser frame ---------- */
.hero-shot {
  position: relative;
  max-width: 1020px;
  margin: clamp(44px, 6vw, 72px) auto 0;
}

.hero-shot::before {
  content: "";
  position: absolute;
  inset: 6% -4% -8%;
  z-index: -1;
  background: radial-gradient(58% 55% at 50% 42%, rgba(124, 58, 237, 0.2), rgba(217, 70, 239, 0.09) 55%, transparent 75%);
  filter: blur(14px);
  pointer-events: none;
}

.browser {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.browser-dots {
  display: flex;
  gap: 7px;
  flex: none;
}

.browser-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.browser-dots span:nth-child(1) { background: #fe5f57; }
.browser-dots span:nth-child(2) { background: #febc2e; }
.browser-dots span:nth-child(3) { background: #28c840; }

.browser-url {
  flex: 1;
  max-width: 340px;
  margin-inline: auto;
  padding: 5px 14px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-3);
  font-size: 0.78rem;
  font-weight: 500;
  text-align: center;
  letter-spacing: 0.01em;
}

/* ---------- Hero store panel (floating catalog) ---------- */
.store-float {
  position: absolute;
  right: -14px;
  bottom: -44px;
  width: clamp(212px, 23vw, 260px);
  margin: 0;
  z-index: 2;
  text-align: left;
}

.store-float::before {
  content: "";
  position: absolute;
  inset: -8% -16% 22%;
  z-index: -1;
  background: radial-gradient(55% 55% at 50% 45%, rgba(217, 70, 239, 0.22), rgba(124, 58, 237, 0.1) 55%, transparent 75%);
  filter: blur(16px);
  pointer-events: none;
}

.store-frame {
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.store-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: var(--text-2);
}

.store-bar svg {
  flex: none;
  color: var(--accent);
}

.store-screen {
  position: relative;
  max-height: 330px;
  overflow: hidden;
}

/* Crop the screenshot's own header bar; .store-bar replaces it. */
.store-screen img {
  width: 100%;
  margin-top: -13.5%;
}

.store-screen::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 64px;
  background: linear-gradient(to bottom, transparent, var(--surface));
  pointer-events: none;
}

.store-note {
  margin: 14px 4px 0;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--text-3);
}

@media (min-width: 901px) {
  .hero-shot:has(.store-float) {
    margin-bottom: 84px;
  }
}

@media (max-width: 900px) {
  .store-float {
    position: static;
    width: min(320px, 82vw);
    margin: 30px auto 0;
    text-align: center;
  }

  .store-float::before {
    display: none;
  }

  .store-note {
    max-width: 300px;
    margin-inline: auto;
  }
}

/* ---------- Channel strip ---------- */
.channels {
  padding-block: clamp(40px, 6vw, 64px);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.channels-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}

.channels-label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}

.channel-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.channel-chip {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 11px 22px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.channel-chip .ch-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex: none;
}

.ch-wa { background: var(--tint-green); color: var(--ch-green); }
.ch-ig { background: var(--tint-pink); color: var(--ch-pink); }
.ch-ms { background: var(--tint-blue); color: var(--ch-blue); }

.channels-caption {
  max-width: 520px;
  color: var(--text-3);
  font-size: 0.9rem;
}

/* ---------- Features ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

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

@media (max-width: 640px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--violet) 32%, var(--border));
}

.f-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--tint-violet);
  color: var(--accent);
  margin-bottom: 18px;
}

.feature-card h3 {
  font-size: 1.07rem;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.feature-card p {
  color: var(--text-2);
  font-size: 0.94rem;
}

/* ---------- How it works ---------- */
.how {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  counter-reset: step;
}

@media (max-width: 860px) {
  .steps {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-inline: auto;
  }
}

.step {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 18px;
  box-shadow: 0 6px 16px -6px rgba(124, 58, 237, 0.55);
}

.step h3 {
  font-size: 1.07rem;
  margin-bottom: 8px;
}

.step p {
  color: var(--text-2);
  font-size: 0.94rem;
}

/* ---------- Case study ---------- */
.case-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

@media (max-width: 860px) {
  .case-grid {
    grid-template-columns: 1fr;
  }
}

.case-copy h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  margin-bottom: 16px;
}

.case-copy > p {
  color: var(--text-2);
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  margin-bottom: 24px;
}

.case-list {
  list-style: none;
  display: grid;
  gap: 12px;
}

.case-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text);
  font-weight: 500;
  font-size: 0.97rem;
}

.case-list .check {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--tint-violet);
  color: var(--accent);
}

.case-foot {
  margin-top: 26px;
  font-size: 0.86rem;
  color: var(--text-3);
}

.case-visual {
  display: flex;
  justify-content: center;
  position: relative;
}

.case-visual::before {
  content: "";
  position: absolute;
  inset: 12% 8%;
  z-index: -1;
  background: radial-gradient(50% 50% at 50% 50%, rgba(124, 58, 237, 0.18), transparent 72%);
  filter: blur(10px);
  pointer-events: none;
}

.phone {
  width: min(300px, 82vw);
  border: 1px solid var(--border);
  border-radius: 44px;
  padding: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.phone-screen {
  position: relative;
  border-radius: 33px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.phone-screen::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 22px;
  border-radius: 999px;
  background: rgba(12, 12, 20, 0.92);
  z-index: 2;
}

/* ---------- Gradient band (pricing teaser / CTA) ---------- */
.band {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #6417c9 0%, #8b2ce0 48%, #cb3fe0 100%);
  color: #fff;
  text-align: center;
  padding: clamp(44px, 6vw, 72px) clamp(24px, 5vw, 64px);
  box-shadow: var(--shadow-lg);
}

.band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(40% 60% at 18% 10%, rgba(255, 255, 255, 0.14), transparent 70%),
    radial-gradient(34% 50% at 85% 90%, rgba(255, 255, 255, 0.1), transparent 70%);
  pointer-events: none;
}

.band > * {
  position: relative;
}

.band h2 {
  color: #fff;
  font-size: clamp(1.55rem, 3.2vw, 2.2rem);
  margin-bottom: 12px;
}

.band p {
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(0.98rem, 1.6vw, 1.1rem);
  max-width: 520px;
  margin: 0 auto 28px;
}

/* ---------- Request access ---------- */
.access-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

@media (max-width: 860px) {
  .access-grid {
    grid-template-columns: 1fr;
  }
}

.access-copy h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  margin-bottom: 14px;
}

.access-copy > p {
  color: var(--text-2);
  margin-bottom: 28px;
}

.next-steps {
  list-style: none;
  display: grid;
  gap: 18px;
  margin-bottom: 28px;
}

.next-steps li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.next-steps .n {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--tint-violet);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
}

.next-steps p {
  color: var(--text-2);
  font-size: 0.95rem;
}

.next-steps strong {
  color: var(--text);
  display: block;
  font-size: 0.98rem;
}

.access-alt {
  font-size: 0.92rem;
  color: var(--text-3);
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3.5vw, 36px);
  box-shadow: var(--shadow-md);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 560px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field-full {
  grid-column: 1 / -1;
}

.field label,
fieldset.field legend {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
}

fieldset.field {
  border: 0;
}

fieldset.field legend {
  padding: 0;
  margin-bottom: 8px;
}

.field .hint {
  font-weight: 400;
  color: var(--text-3);
}

.field input[type="text"],
.field input[type="email"],
.field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field textarea {
  resize: vertical;
  min-height: 96px;
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 3px var(--ring);
}

.field.invalid input,
.field.invalid textarea {
  border-color: var(--danger);
}

.field-error {
  display: none;
  font-size: 0.8rem;
  color: var(--danger);
  font-weight: 500;
}

.field.invalid .field-error {
  display: block;
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip-check {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--bg);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
  user-select: none;
}

.chip-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chip-check:hover {
  border-color: var(--violet);
}

.chip-check:has(input:checked) {
  background: var(--tint-violet);
  border-color: var(--violet);
  color: var(--accent-strong);
}

.chip-check:has(input:focus-visible) {
  outline: 2px solid var(--violet);
  outline-offset: 2px;
}

.hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 4px;
}

.form-status {
  display: none;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
}

.form-status.error {
  display: block;
  background: color-mix(in srgb, #dc2626 9%, var(--surface));
  border: 1px solid color-mix(in srgb, #dc2626 35%, var(--border));
  color: var(--text);
}

.form-status a {
  font-weight: 700;
}

.form-fineprint {
  font-size: 0.8rem;
  color: var(--text-3);
  text-align: center;
}

.form-success {
  text-align: center;
  padding: clamp(24px, 4vw, 40px) 8px;
}

.form-success .tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  margin-bottom: 20px;
  box-shadow: 0 12px 28px -10px rgba(124, 58, 237, 0.6);
}

.form-success h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.form-success p {
  color: var(--text-2);
  max-width: 380px;
  margin-inline: auto;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding-top: clamp(48px, 6vw, 72px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: clamp(40px, 5vw, 56px);
}

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

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

.footer-brand p {
  margin-top: 14px;
  color: var(--text-2);
  font-size: 0.92rem;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.footer-col a {
  color: var(--text-2);
  font-size: 0.94rem;
}

.footer-col a:hover {
  color: var(--violet);
}

.footer-legal {
  border-top: 1px solid var(--border);
  padding-block: 22px;
}

.footer-legal p {
  color: var(--text-3);
  font-size: 0.82rem;
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
}

/* ============================================================
   Pricing page
   ============================================================ */
.page-hero {
  position: relative;
  text-align: center;
  padding-top: clamp(52px, 7vw, 88px);
  padding-bottom: clamp(36px, 5vw, 56px);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: -40% -10% 20%;
  z-index: -1;
  background: radial-gradient(46% 46% at 50% 18%, rgba(124, 58, 237, 0.11), transparent 72%);
  pointer-events: none;
}

.page-hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  letter-spacing: -0.03em;
  max-width: 720px;
  margin-inline: auto;
}

.page-hero .sub {
  max-width: 560px;
  margin: 18px auto 0;
  color: var(--text-2);
  font-size: clamp(1rem, 1.7vw, 1.15rem);
}

.plans {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  align-items: stretch;
  max-width: 800px;
  margin: clamp(36px, 5vw, 56px) auto 0;
}

@media (max-width: 800px) {
  .plans {
    grid-template-columns: 1fr;
    max-width: 460px;
  }
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
}

.plan.popular {
  border: 2px solid transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--grad) border-box;
  box-shadow: var(--shadow-md);
}

.plan-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 6px 14px -6px rgba(124, 58, 237, 0.6);
}

.plan h2 {
  font-size: 1.22rem;
  margin-bottom: 6px;
}

.plan-for {
  color: var(--text-3);
  font-size: 0.88rem;
  min-height: 2.6em;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 18px 0 4px;
}

.plan-price .amount {
  font-size: 2.6rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  color: var(--text);
}

.plan-price .period {
  color: var(--text-3);
  font-size: 0.95rem;
  font-weight: 500;
}

.plan-billing {
  color: var(--text-3);
  font-size: 0.8rem;
  margin-bottom: 22px;
}

.plan-features {
  list-style: none;
  display: grid;
  gap: 11px;
  margin-bottom: 28px;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-2);
}

.plan-features li strong {
  color: var(--text);
  font-weight: 600;
}

.plan-features .check {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--tint-violet);
  color: var(--accent);
}

.plan-features li.excluded {
  color: var(--text-3);
}

.plan-features .cross {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text-3);
}

.plan .btn {
  margin-top: auto;
}

.plans-note {
  max-width: 680px;
  margin: 28px auto 0;
  text-align: center;
  color: var(--text-3);
  font-size: 0.85rem;
}

/* Enterprise band */
.enterprise {
  display: grid;
  grid-template-columns: 1.2fr auto;
  gap: 28px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow-sm);
}

@media (max-width: 720px) {
  .enterprise {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .enterprise .btn {
    justify-self: center;
  }
}

.enterprise h2 {
  font-size: 1.45rem;
  margin-bottom: 10px;
}

.enterprise p {
  color: var(--text-2);
  font-size: 0.97rem;
  max-width: 560px;
}

/* FAQ */
.faq {
  max-width: 720px;
  margin-inline: auto;
}

.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 0;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--text);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--text-3);
  line-height: 1;
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  padding: 0 22px 18px;
  color: var(--text-2);
  font-size: 0.93rem;
}

/* ============================================================
   Legal pages
   ============================================================ */
.legal-hero {
  text-align: center;
  padding-top: clamp(48px, 6vw, 80px);
  padding-bottom: clamp(24px, 4vw, 40px);
}

.legal-hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  letter-spacing: -0.028em;
}

.legal-hero .updated {
  margin-top: 14px;
  color: var(--text-3);
  font-size: 0.9rem;
}

.legal-body {
  max-width: 760px;
  margin-inline: auto;
  padding-bottom: clamp(64px, 8vw, 104px);
}

.legal-body h2 {
  font-size: 1.3rem;
  margin: 2.4em 0 0.7em;
}

.legal-body h3 {
  font-size: 1.05rem;
  margin: 1.8em 0 0.5em;
}

.legal-body p {
  color: var(--text-2);
  margin-bottom: 1em;
  font-size: 0.98rem;
  line-height: 1.75;
}

.legal-body ul,
.legal-body ol {
  color: var(--text-2);
  margin: 0 0 1.2em 1.4em;
  display: grid;
  gap: 8px;
  font-size: 0.98rem;
  line-height: 1.7;
}

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

.legal-body .callout {
  background: var(--tint-violet);
  border: 1px solid color-mix(in srgb, var(--violet) 25%, var(--border));
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 1.6em 0;
}

.legal-body .callout p {
  margin: 0;
  color: var(--text);
}

.legal-body .callout p + p {
  margin-top: 0.8em;
}

.legal-intro {
  font-size: 1.05rem !important;
  color: var(--text-2);
}
