/* ==========================================================================
   Aria — landing page styles
   Minimalist, light-first with automatic dark mode. No external assets.
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #f2f3f6;
  --text: #101219;
  --text-muted: #585e70;
  --text-faint: #868c9e;
  --line: #e6e8ee;
  --line-strong: #d6d9e2;
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-soft: #eef0ff;
  --accent-text: #ffffff;
  --tg: #229ed9;
  --shadow-sm: 0 1px 2px rgba(16, 18, 25, 0.05), 0 1px 3px rgba(16, 18, 25, 0.04);
  --shadow-md: 0 4px 12px rgba(16, 18, 25, 0.06), 0 1px 3px rgba(16, 18, 25, 0.04);
  --shadow-lg: 0 18px 48px rgba(16, 18, 25, 0.1), 0 2px 8px rgba(16, 18, 25, 0.04);
  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1120px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter,
    "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0c10;
    --bg-soft: #0f1116;
    --surface: #14161d;
    --surface-2: #1a1d26;
    --text: #eceef4;
    --text-muted: #a2a9bb;
    --text-faint: #7b8296;
    --line: #23262f;
    --line-strong: #2e323d;
    --accent: #8b8cf7;
    --accent-hover: #a1a2ff;
    --accent-soft: #1b1c2e;
    --accent-text: #0b0c10;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.55);
  }
}

/* ---------- per-variant accent ----------
   Only the accent tokens change, so every component that already derives from
   them — buttons, chips, glows, links, plan borders — follows automatically.
   Add a variant here to give it its own colour. */

/* these variants show a photograph in the chat mockup rather than the
   illustration, so frame it on the subject instead of centring the crop */
html[data-variant="dating"] .msg__photo,
html[data-variant="girlfriend"] .msg__photo {
  object-position: 50% 25%;
  background: var(--surface-2);
}

html[data-variant="dating"] {
  --accent: #d81e48;
  --accent-hover: #b3113a;
  --accent-soft: #ffe7ec;
}

@media (prefers-color-scheme: dark) {
  html[data-variant="dating"] {
    --accent: #ff7a94;
    --accent-hover: #ff9aad;
    --accent-soft: #2c1620;
  }
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

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

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

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 650;
}

p {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 12px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0 0 10px 0;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
}

/* ---------- layout primitives ---------- */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

/* keeps anchor targets clear of the sticky header */
.section[id],
[id]:not(body) {
  scroll-margin-top: 88px;
}

.section--soft {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 640px;
  margin: 0 0 56px;
}

.section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.h2 {
  font-size: clamp(28px, 4vw, 40px);
}

.lede {
  color: var(--text-muted);
  font-size: 18px;
  margin-top: 16px;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 11px;
  font-size: 16px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease,
    transform 0.16s ease, box-shadow 0.16s ease, color 0.16s ease;
  white-space: nowrap;
}

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

.btn--primary {
  background: var(--accent);
  color: var(--accent-text);
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  background: var(--accent-hover);
}

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

.btn--ghost:hover {
  border-color: var(--text-faint);
}

.btn--sm {
  padding: 9px 16px;
  font-size: 15px;
  border-radius: 9px;
}

.btn--wide {
  padding-inline: 28px;
}

.btn svg {
  flex: none;
}

/* ---------- header ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.header.is-stuck {
  border-bottom-color: var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.brand__mark {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  flex: none;
}

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

.nav a {
  font-size: 15px;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

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

@media (max-width: 860px) {
  .nav {
    display: none;
  }
}

.header__end {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ---------- language picker ---------- */

.lang {
  position: relative;
  display: inline-flex;
}

.lang__select {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  font-size: 14.5px;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  padding: 8px 32px 8px 12px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.lang__select:hover {
  color: var(--text);
  border-color: var(--text-faint);
}

.lang::after {
  content: "";
  position: absolute;
  right: 13px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-right: 2px solid var(--text-faint);
  border-bottom: 2px solid var(--text-faint);
  transform: translateY(-75%) rotate(45deg);
  pointer-events: none;
}

/* the language picker needs the room on small screens; the hero CTA is
   immediately below anyway */
@media (max-width: 560px) {
  .header__cta {
    display: none;
  }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 96px;
}

.hero__glow {
  position: absolute;
  inset: -30% 0 auto 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(
    circle at center,
    color-mix(in srgb, var(--accent) 16%, transparent),
    transparent 62%
  );
  pointer-events: none;
  z-index: 0;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

@media (max-width: 940px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 52px;
  }
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 13px 6px 9px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  font-size: 14px;
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
}

.pill__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px color-mix(in srgb, #22c55e 22%, transparent);
}

.hero h1 {
  font-size: clamp(38px, 6vw, 62px);
  margin: 22px 0 0;
  font-weight: 680;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero__sub {
  margin-top: 22px;
  font-size: 19px;
  color: var(--text-muted);
  max-width: 30em;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero__note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-faint);
}

.trustbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.trustbar span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  color: var(--text-muted);
}

.trustbar svg {
  color: var(--accent);
}

/* ---------- chat mockup ---------- */

.phone {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

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

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex: none;
  background: linear-gradient(140deg, #8b5cf6, #ec4899 55%, #f59e0b);
}

.phone__name {
  font-weight: 600;
  font-size: 15px;
  line-height: 1.25;
}

.phone__status {
  font-size: 12.5px;
  color: #22c55e;
}

.phone__body {
  padding: 18px 16px 22px;
  background: var(--bg-soft);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 380px;
}

.msg {
  max-width: 78%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 15px;
  line-height: 1.45;
  box-shadow: var(--shadow-sm);
  animation: rise 0.5s ease both;
}

.msg--in {
  align-self: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-bottom-left-radius: 5px;
}

.msg--out {
  align-self: flex-end;
  background: var(--accent);
  color: var(--accent-text);
  border-bottom-right-radius: 5px;
}

.msg--photo {
  padding: 6px;
  max-width: 66%;
}

.msg__photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 12px;
  /* also the fallback for the generated-image placeholders in the preview */
  background: linear-gradient(160deg, #a78bfa, #f472b6 48%, #fb923c);
  position: relative;
  overflow: hidden;
}

.msg__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      120% 60% at 30% 18%,
      rgba(255, 255, 255, 0.45),
      transparent 60%
    ),
    radial-gradient(80% 50% at 78% 82%, rgba(0, 0, 0, 0.22), transparent 65%);
}

.msg__caption {
  font-size: 13.5px;
  color: var(--text-muted);
  padding: 7px 8px 3px;
}

.typing {
  align-self: flex-start;
  display: inline-flex;
  gap: 4px;
  padding: 13px 15px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px 16px 16px 5px;
}

.typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-faint);
  animation: blink 1.3s infinite ease-in-out;
}

.typing i:nth-child(2) {
  animation-delay: 0.18s;
}

.typing i:nth-child(3) {
  animation-delay: 0.36s;
}

@keyframes blink {
  0%,
  60%,
  100% {
    opacity: 0.28;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- steps ---------- */

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

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

.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 28px;
  box-shadow: var(--shadow-sm);
}

.step__num {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 18px;
}

.step h3 {
  font-size: 18.5px;
  margin-bottom: 9px;
}

.step p {
  color: var(--text-muted);
  font-size: 15.5px;
}

/* ---------- feature grid ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

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

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}

.card__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}

.card h3 {
  font-size: 18.5px;
  margin-bottom: 10px;
}

.card p {
  color: var(--text-muted);
  font-size: 15.5px;
}

/* ---------- modes ---------- */

.modes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.mode {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 24px;
}

.mode__tag {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.mode h3 {
  font-size: 17.5px;
  margin: 12px 0 8px;
}

.mode p {
  font-size: 15px;
  color: var(--text-muted);
}

.mode__link {
  display: inline-block;
  margin-top: 14px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--accent);
}

.mode__link::after {
  content: " →";
}

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

/* the card for the variant you are already on: highlighted, and no self-link */
html[data-variant="friend"] [data-variant-link="friend"],
html[data-variant="girlfriend"] [data-variant-link="girlfriend"],
html[data-variant="boyfriend"] [data-variant-link="boyfriend"] {
  border-color: var(--accent);
}

html[data-variant="friend"] [data-variant-link="friend"] .mode__link,
html[data-variant="girlfriend"] [data-variant-link="girlfriend"] .mode__link,
html[data-variant="boyfriend"] [data-variant-link="boyfriend"] .mode__link {
  display: none;
}

/* ---------- personality builder ---------- */

.builder {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 40px;
  align-items: start;
}

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

.builder__panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.field + .field {
  margin-top: 26px;
}

.field__label {
  display: block;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 12px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.chip {
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text-muted);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chip:hover {
  color: var(--text);
  border-color: var(--text-faint);
}

.chip[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
}

.builder__hint {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--text-faint);
}

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

.preview__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-faint);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}

.preview__body {
  padding: 20px 18px 24px;
  background: var(--bg-soft);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 260px;
}

/* the preview column is wider than a phone, so cap the photo */
.preview__body .msg--photo {
  max-width: 190px;
}

/* ---------- trust ---------- */

.trust {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 940px) {
  .trust {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

.trust__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.trust__list li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 14px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.trust__list svg {
  color: var(--accent);
  margin-top: 3px;
}

.trust__list strong {
  display: block;
  font-weight: 620;
  font-size: 16px;
  margin-bottom: 3px;
}

.trust__list span {
  color: var(--text-muted);
  font-size: 15.5px;
}

/* ---------- pricing ---------- */

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  align-items: stretch;
}

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

.plan--featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  position: relative;
}

.plan__badge {
  position: absolute;
  top: -12px;
  left: 28px;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
}

.plan h3 {
  font-size: 18px;
}

.plan__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 16px 0 6px;
}

.plan__price b {
  font-size: 38px;
  font-weight: 680;
  letter-spacing: -0.03em;
}

.plan__price span {
  color: var(--text-faint);
  font-size: 15px;
}

.plan > p {
  color: var(--text-muted);
  font-size: 15px;
}

.plan ul {
  list-style: none;
  margin: 22px 0 26px;
  padding: 0;
  display: grid;
  gap: 11px;
  font-size: 15.5px;
  color: var(--text-muted);
}

.plan li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 11px;
  align-items: start;
}

.plan li svg {
  color: var(--accent);
  margin-top: 5px;
}

.plan .btn {
  margin-top: auto;
  width: 100%;
}

/* ---------- faq ---------- */

.faq {
  max-width: 780px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  cursor: pointer;
  font-weight: 600;
  font-size: 17px;
  list-style: none;
}

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

.faq summary::after {
  content: "";
  width: 10px;
  height: 10px;
  flex: none;
  border-right: 2px solid var(--text-faint);
  border-bottom: 2px solid var(--text-faint);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-right: 6px;
}

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

.faq p {
  padding: 0 4px 24px;
  color: var(--text-muted);
  max-width: 68ch;
}

/* ---------- final cta ---------- */

.cta {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 64px 32px 68px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  inset: -60% 30% auto -10%;
  height: 420px;
  background: radial-gradient(
    circle at center,
    color-mix(in srgb, var(--accent) 14%, transparent),
    transparent 62%
  );
  pointer-events: none;
}

.cta > * {
  position: relative;
}

.cta h2 {
  font-size: clamp(28px, 4.4vw, 42px);
}

.cta p {
  color: var(--text-muted);
  margin: 18px auto 0;
  max-width: 46ch;
  font-size: 18px;
}

.cta .btn {
  margin-top: 32px;
}

.cta__small {
  margin-top: 18px;
  font-size: 14px;
  color: var(--text-faint);
}

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 46px;
  background: var(--bg);
}

.footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
}

.footer__blurb {
  max-width: 34ch;
  color: var(--text-muted);
  font-size: 15px;
  margin-top: 14px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 44px;
}

.footer__col h4 {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 14px;
}

.footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: 15px;
}

.footer__col a {
  color: var(--text-muted);
}

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

.footer__bottom {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text-faint);
}

.badge-18 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

/* ---------- legal pages ---------- */

.legal {
  padding: 72px 0 96px;
  max-width: 760px;
}

.legal h1 {
  font-size: clamp(30px, 4.6vw, 42px);
}

.legal__meta {
  margin-top: 14px;
  color: var(--text-faint);
  font-size: 14.5px;
}

.legal h2 {
  font-size: 21px;
  margin: 44px 0 12px;
}

.legal p,
.legal li {
  color: var(--text-muted);
  font-size: 16.5px;
}

.legal p + p {
  margin-top: 14px;
}

.legal ul {
  margin: 12px 0 0;
  padding-left: 22px;
  display: grid;
  gap: 9px;
}

.legal a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.notice {
  margin-top: 28px;
  padding: 18px 20px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 15.5px;
  color: var(--text-muted);
}

/* ---------- reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (max-width: 640px) {
  body {
    font-size: 16.5px;
  }
  .section {
    padding: 72px 0;
  }
  .hero {
    padding: 44px 0 72px;
  }
  .cta {
    padding: 48px 22px 52px;
  }
  .builder__panel {
    padding: 22px;
  }
}
