/* ==========================================================================
   פסיכומטרי פלוס — אתר שיווקי
   Design tokens mirror the app's design system:
   PsychoPlus/Core/DesignSystem + HomeStyle / PaywallStyle / AuthStyle
   ========================================================================== */

/* ---------- Fonts (self-hosted, same family as the app) ---------- */
@font-face {
  font-family: "Noto Sans Hebrew";
  src: url("../fonts/NotoSansHebrew-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans Hebrew";
  src: url("../fonts/NotoSansHebrew-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans Hebrew";
  src: url("../fonts/NotoSansHebrew-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans Hebrew";
  src: url("../fonts/NotoSansHebrew-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans Hebrew";
  src: url("../fonts/NotoSansHebrew-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Colors — Color+App.swift / HomeStyle / PaywallStyle / AuthStyle */
  --ink: #0a0a0a;
  --ink-2: #737373;
  --ink-3: #9f9e9e;
  --ink-cool: #111827;
  --white: #ffffff;
  --surface: #f5f5f5;
  --surface-2: #fafafa;
  --border: #e5e5e5;
  --border-soft: #f0f0f0;

  --blue: #1cb5f6;
  --blue-ink: #0d94ce;
  --blue-wash: rgba(28, 181, 246, 0.08);
  --blue-chip: rgba(28, 181, 246, 0.1);

  --pink: #ec4899;
  --pink-soft: #fa6ab0;
  --pink-wash: rgba(236, 72, 153, 0.08);

  --green: #34c759;
  --red: #fb2d38;

  --tint-blue: #d2f0fd;
  --tint-sand: #fdedd3;
  --tint-violet: #e9d3fd;
  --tint-pink: #fbd5e8;

  /* Radius — AppRadius.swift (+ larger web-scale card radii) */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-card: 40px;
  --r-hero: 56px;
  --r-full: 999px;

  /* Spacing — AppSpacing.swift */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-6: 24px;
  --s-8: 32px;
  --s-10: 40px;
  --s-12: 48px;
  --s-16: 64px;
  --s-24: 96px;

  /* Shadows — AppShadow.swift */
  --shadow-soft: 0 1px 2px rgba(10, 10, 10, 0.04), 0 8px 24px rgba(10, 10, 10, 0.05);
  --shadow-card: 0 0.6px 1.6px rgba(10, 10, 10, 0.05), 0 2.3px 6px rgba(10, 10, 10, 0.05),
    0 10px 26px rgba(10, 10, 10, 0.04);
  --shadow-lift: 0 2px 6px rgba(10, 10, 10, 0.06), 0 18px 48px rgba(10, 10, 10, 0.1);
  --shadow-phone: 0 4px 12px rgba(10, 10, 10, 0.1), 0 40px 90px rgba(10, 10, 10, 0.22);

  --max: 1200px;
  --header-h: 76px;

  --dots: radial-gradient(circle, var(--border) 0.5px, transparent 1px);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Noto Sans Hebrew", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
h1,
h2,
h3,
h4,
h5,
p,
figure,
blockquote {
  margin: 0;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Typography ---------- */
.display {
  font-size: clamp(30px, 7.4vw, 58px);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.h2 {
  font-size: clamp(24px, 3.8vw, 38px);
  line-height: 1.18;
  font-weight: 600;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.h3 {
  font-size: clamp(21px, 2.6vw, 26px);
  line-height: 1.22;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.h5 {
  font-size: 17px;
  line-height: 1.3;
  font-weight: 600;
}
.lead {
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--ink-2);
  line-height: 1.65;
}
.small {
  font-size: 14px;
  color: var(--ink-2);
}
.label {
  font-size: 13px;
  color: var(--ink-2);
}

/* Latin/number runs inside Hebrew copy — keeps bidi order correct.
   Same problem String.directionPinned solves in the app. */
.ltr {
  unicode-bidi: isolate;
  direction: ltr;
  display: inline-block;
}

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 24px;
}
.section {
  padding-block: clamp(56px, 9vw, 96px);
}
.section--tight {
  padding-block: clamp(40px, 6vw, 64px);
}
.stack-2 > * + * {
  margin-top: var(--s-2);
}
.stack-4 > * + * {
  margin-top: var(--s-4);
}
.stack-6 > * + * {
  margin-top: var(--s-6);
}
.stack-8 > * + * {
  margin-top: var(--s-8);
}

/* ---------- Badge / pill ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  background: var(--white);
  font-size: 14px;
  color: var(--ink-2);
  white-space: nowrap;
}
.badge svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.badge--light {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.24);
  color: var(--white);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: var(--r-full);
  font-weight: 500;
  font-size: 16px;
  border: 1px solid transparent;
  transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease, color 0.18s ease;
  will-change: transform;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0) scale(0.99);
}
.btn--primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(28, 181, 246, 0.28);
}
.btn--primary:hover {
  background: var(--blue-ink);
  box-shadow: 0 10px 26px rgba(28, 181, 246, 0.34);
}

.btn--white {
  background: var(--white);
  color: var(--ink);
}
.btn--sm {
  padding: 9px 18px;
  font-size: 15px;
}
.btn--block {
  width: 100%;
}
.btn__icon {
  width: 18px;
  height: 18px;
  flex: none;
}

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

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border-soft);
}
.header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
/* Reproduces the shipped app icon: blue gradient tile + the white mark.
   Gradient converted from Icon Composer's display-p3 pair in the .icon bundle. */
.brand__mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  overflow: hidden;
  flex: none;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #4fc0f8 0%, #1cb5f6 100%);
  box-shadow: 0 1px 2px rgba(10, 10, 10, 0.08);
}
.brand__mark img {
  width: 62%;
  height: 62%;
  object-fit: contain;
}
.brand__name {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  padding: 8px 14px;
  border-radius: var(--r-full);
  font-size: 15px;
  color: var(--ink-2);
  transition: color 0.16s ease, background-color 0.16s ease;
}
.nav a:hover {
  color: var(--ink);
  background: var(--surface);
}
.header__cta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
.burger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--white);
  place-items: center;
}
.burger span {
  display: block;
  width: 18px;
  height: 1.6px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.burger span + span {
  margin-top: 4px;
}
.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(5.6px) rotate(45deg);
}
.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-5.6px) rotate(-45deg);
}
.mobile-menu {
  display: none;
  border-top: 1px solid var(--border-soft);
  background: var(--white);
  padding: 12px 24px 20px;
}
.mobile-menu.is-open {
  display: block;
}
.mobile-menu a {
  display: block;
  padding: 13px 4px;
  font-size: 16px;
  border-bottom: 1px solid var(--border-soft);
}
.mobile-menu .btn {
  margin-top: 16px;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding-top: clamp(40px, 6vw, 68px);
  overflow: clip;
}
.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-6);
  text-align: center;
}
.hero__headline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 14px;
  max-width: 720px;
}
.hero__emblem {
  width: clamp(38px, 6vw, 58px);
  height: clamp(38px, 6vw, 58px);
  border-radius: clamp(12px, 1.6vw, 18px);
  overflow: hidden;
  flex: none;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #4fc0f8 0%, #1cb5f6 100%);
  box-shadow: var(--shadow-soft);
}
.hero__emblem img {
  width: 62%;
  height: 62%;
  object-fit: contain;
}
.hero__sub {
  max-width: 460px;
}

/* Bottom hero panel: dotted field + device + two cards */
.hero__panel {
  position: relative;
  justify-content: center;
  margin-top: clamp(28px, 4vw, 48px);
  border-radius: var(--r-hero);
  overflow: hidden;
  padding: 48px 48px 0;
  display: flex;
  align-items: flex-end;
  gap: 24px;
  isolation: isolate;
}
.hero__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(180deg, var(--tint-blue) 0%, #eaf7ff 46%, var(--white) 100%);
}
.hero__panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--dots), var(--dots);
  background-size: 12px 10.39px, 12px 10.39px;
  background-position: center, calc(50% + 6px) calc(50% + 5.196px);
  opacity: 0.55;
  mask-image: linear-gradient(180deg, #000 0%, transparent 88%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 88%);
}
.hero__device {
  flex: none;
  align-self: flex-end;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

/* Floating glass cards beside the phone */

/* Avatar stack */

/* ==========================================================================
   iPhone mockup + in-app screens
   ========================================================================== */
.phone {
  --phone-w: 340px;
  width: var(--phone-w);
  aspect-ratio: 402 / 874;
  position: relative;
  border-radius: calc(var(--phone-w) * 0.155);
  padding: calc(var(--phone-w) * 0.026);
  background: linear-gradient(165deg, #2b2b30 0%, #0b0b0d 42%, #37373d 100%);
  box-shadow: var(--shadow-phone), inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  flex: none;
}
.phone--sm {
  --phone-w: 268px;
}

.phone--lg {
  --phone-w: 372px;
}
.phone__screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: calc(var(--phone-w) * 0.132);
  background: var(--white);
  overflow: hidden;
}
/* A real screenshot straight from the app fills the screen. */
.phone__shot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* ==========================================================================
   Ticker
   ========================================================================== */
.ticker {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.ticker__track {
  display: flex;
  align-items: center;
  gap: 20px;
  width: max-content;
  animation: ticker 34s linear infinite;
}
.ticker:hover .ticker__track {
  animation-play-state: paused;
}
@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  color: var(--ink-2);
  font-size: 16px;
  white-space: nowrap;
  background: var(--white);
}
.ticker__item svg {
  width: 20px;
  height: 20px;
  color: var(--ink-3);
  flex: none;
}

/* ==========================================================================
   Section headings
   ========================================================================== */
.head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--s-4);
  max-width: 640px;
  margin-inline: auto;
}
.head .badge {
  margin-bottom: 4px;
}
.head--start {
  align-items: flex-start;
  text-align: start;
  margin-inline: 0;
}
.head__sub {
  max-width: 520px;
}

/* ==========================================================================
   Features
   ========================================================================== */
/* Full-bleed gradient card (the tall one beside the feature grid). */
.pic-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  min-height: 300px;
  color: var(--white);
  isolation: isolate;
}
.pic-card__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.pic-card__bg--pink {
  background: linear-gradient(155deg, #fa8fc4 0%, #ec4899 52%, #8f1c56 100%);
}
/* Scrim so the copy stays legible over the screenshot. */
.pic-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(180deg, transparent 22%, rgba(10, 10, 10, 0.35) 52%, rgba(10, 10, 10, 0.86) 100%);
}
.pic-card__dots {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: var(--dots), var(--dots);
  background-size: 12px 10.39px, 12px 10.39px;
  background-position: center, calc(50% + 6px) calc(50% + 5.196px);
  opacity: 0.14;
}
.pic-card .h3 {
  color: var(--white);
}
.pic-card p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
}
.pic-card--tall {
  min-height: 480px;
}
/* The real analytics screen, peeking out of the top of the card. */
.pic-card__shot {
  position: absolute;
  z-index: 2;
  top: 44px;
  left: 50%;
  transform: translateX(-50%);
  width: min(74%, 260px);
  /* Capped against the card so it can never run over the copy. */
  height: auto;
  max-height: 62%;
  object-fit: cover;
  object-position: top center;
  border-radius: 20px;
  box-shadow: 0 12px 34px rgba(10, 10, 10, 0.32);
  /* Dissolve into the card instead of ending on a hard edge behind the copy. */
  -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 92%);
  mask-image: linear-gradient(180deg, #000 62%, transparent 92%);
}
.pic-card__body {
  position: relative;
  z-index: 4;
}
.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}
.features__col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.features__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.feature {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1px solid var(--border-soft);
  border-radius: var(--r-card);
  padding: 26px;
  background: var(--white);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.feature:hover {
  border-color: var(--border);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}
.feature__art {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: var(--r-lg);
  background: var(--surface);
  flex: none;
}
.feature__art img {
  width: 78%;
  height: 78%;
  object-fit: contain;
}

/* ==========================================================================
   Tabs
   ========================================================================== */
/* ==========================================================================
   Pricing + FAQ
   ========================================================================== */
/* FAQ column (was the pricing two-up). */
.pricing {
  max-width: 760px;
  margin-inline: auto;
}
.faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq__item {
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  background: var(--white);
  overflow: hidden;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.faq__item[open] {
  border-color: var(--border);
  background: var(--surface-2);
}
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  font-size: 17px;
  font-weight: 500;
  list-style: none;
}
.faq__q::-webkit-details-marker {
  display: none;
}
.faq__icon {
  width: 26px;
  height: 26px;
  flex: none;
  color: var(--ink);
  transition: transform 0.24s ease;
}
.faq__item[open] .faq__icon {
  transform: rotate(45deg);
}
.faq__a {
  padding: 0 24px 22px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.7;
}

/* ==========================================================================
   Screens gallery
   ========================================================================== */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  justify-items: center;
}
.gallery__item {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  max-width: 320px;
}
.gallery__item .phone {
  margin-bottom: 16px;
}
.gallery__item p {
  max-width: 28ch;
}

/* ==========================================================================
   Final CTA
   ========================================================================== */
.cta {
  position: relative;
  border-radius: var(--r-hero);
  overflow: hidden;
  padding: clamp(40px, 6vw, 72px) clamp(24px, 4vw, 48px) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(32px, 4vw, 48px);
  isolation: isolate;
  text-align: center;
  color: var(--white);
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(160deg, #1cb5f6 0%, #0d7fb4 46%, #0a1f2c 100%);
}
.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.22) 0.5px, transparent 1px),
    radial-gradient(circle, rgba(255, 255, 255, 0.22) 0.5px, transparent 1px);
  background-size: 12px 10.39px, 12px 10.39px;
  background-position: center, calc(50% + 6px) calc(50% + 5.196px);
  opacity: 0.4;
}
.cta .h2,
.cta .num {
  color: var(--white);
}
.cta__sub {
  color: rgba(255, 255, 255, 0.84);
  max-width: 460px;
}
.cta__device {
  margin-bottom: calc(-1 * clamp(90px, 12vw, 150px));
}

/* ==========================================================================
   Legal pages (terms / privacy)
   ========================================================================== */
.legal {
  padding-block: clamp(40px, 6vw, 72px) clamp(48px, 8vw, 88px);
}
.legal .wrap {
  max-width: 820px;
}
.legal__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--ink-2);
  margin-bottom: 28px;
  transition: color 0.16s ease;
}
.legal__back:hover {
  color: var(--ink);
}
.legal__back svg {
  width: 18px;
  height: 18px;
}
.legal__head {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.legal__version {
  margin-top: 10px;
  font-size: 15px;
  color: var(--ink-2);
}
.legal__meta {
  margin: 24px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.legal__meta > div {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px 18px;
  min-width: 190px;
}
.legal__meta dt {
  font-size: 13px;
  color: var(--ink-2);
}
.legal__meta dd {
  margin: 4px 0 0;
  font-weight: 500;
}

.legal__highlights {
  margin-top: 32px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 26px 28px;
}
.legal__highlights h2 {
  margin-bottom: 14px;
}
.legal__highlights ol {
  counter-reset: hl;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.legal__highlights li {
  counter-increment: hl;
  position: relative;
  padding-inline-start: 34px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-2);
}
.legal__highlights li::before {
  content: counter(hl);
  position: absolute;
  inset-inline-start: 0;
  top: 2px;
  width: 24px;
  height: 24px;
  border-radius: var(--r-full);
  background: var(--ink);
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 600;
}
.legal__highlights strong {
  color: var(--ink);
}
.legal__highlights .small {
  margin-top: 14px;
}

.legal__body {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.legal__body h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(19px, 2.2vw, 23px);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.legal__num {
  display: grid;
  place-items: center;
  min-width: 40px;
  height: 28px;
  padding-inline: 8px;
  border-radius: var(--r-full);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}
.legal__body p {
  color: var(--ink-2);
  line-height: 1.8;
  font-size: 15.5px;
}
.legal__body p + p {
  margin-top: 12px;
}
.legal__body b {
  color: var(--ink);
  font-weight: 600;
  margin-inline-end: 4px;
}
.legal__body strong {
  color: var(--ink);
  font-weight: 600;
}
.legal__body ul {
  margin: 12px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.legal__body ul li {
  position: relative;
  padding-inline-start: 20px;
  color: var(--ink-2);
  line-height: 1.75;
  font-size: 15.5px;
}
.legal__body ul li::before {
  content: "";
  position: absolute;
  inset-inline-start: 4px;
  top: 12px;
  width: 5px;
  height: 5px;
  border-radius: var(--r-full);
  background: var(--ink-3);
}
.legal__body a {
  color: var(--blue-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  unicode-bidi: isolate;
}
.legal__body a:hover {
  color: var(--ink);
}
.legal__body .btn {
  text-decoration: none;
  margin-top: 8px;
}
.legal__body .btn:hover {
  color: var(--white);
}
.legal__body h3 {
  margin: 26px 0 10px;
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.legal__body section > h3:first-of-type {
  margin-top: 18px;
}
.legal__body ol {
  margin: 12px 0 0;
  counter-reset: item;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.legal__body ol li {
  counter-increment: item;
  position: relative;
  padding-inline-start: 26px;
  color: var(--ink-2);
  line-height: 1.75;
  font-size: 15.5px;
}
.legal__body ol li::before {
  content: counter(item) ".";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  font-weight: 600;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

/* Pulled-out note inside a section (the blockquotes in the policy). */
.legal__note {
  margin-top: 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-inline-start: 3px solid var(--ink);
  border-radius: var(--r-md);
  padding: 16px 18px;
}
.legal__note > :first-child {
  margin-top: 0;
}
.legal__note p,
.legal__note ul li {
  font-size: 15px;
}

/* Tables scroll on their own instead of widening the page. */
.legal__table {
  margin-top: 16px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.legal__table table {
  width: 100%;
  min-width: 430px;
  border-collapse: collapse;
  font-size: 14.5px;
}
.legal__table th,
.legal__table td {
  text-align: start;
  vertical-align: top;
  padding: 12px 14px;
  line-height: 1.65;
  color: var(--ink-2);
  border-bottom: 1px solid var(--border);
}
.legal__table th {
  color: var(--ink);
  font-weight: 600;
  background: var(--surface-2);
}
.legal__table tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 700px) {
  .legal__meta > div {
    min-width: 0;
    flex: 1 1 140px;
  }
  .legal__highlights {
    padding: 20px;
  }
  .legal__body {
    gap: 32px;
  }
  .legal__table th,
  .legal__table td {
    padding: 10px 12px;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  border-top: 1px solid var(--border-soft);
  padding-block: clamp(48px, 7vw, 80px) 28px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
}
.footer__desc {
  max-width: 340px;
}
.footer__col h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 18px;
}
.footer__col a {
  display: block;
  padding: 6px 0;
  color: var(--ink-2);
  font-size: 15px;
  transition: color 0.16s ease;
}
.footer__col a:hover {
  color: var(--ink);
}
.footer__bottom {
  margin-top: clamp(32px, 5vw, 56px);
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--ink-2);
}
.social {
  display: flex;
  gap: 8px;
}
.social a {
  width: 40px;
  height: 40px;
  border-radius: var(--r-full);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}
.social a:hover {
  background: var(--surface);
  border-color: var(--ink-3);
}
.social svg {
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
.rise {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.rise.is-in {
  opacity: 1;
  transform: none;
}
.rise-1 {
  transition-delay: 0.06s;
}
.rise-2 {
  transition-delay: 0.12s;
}
.rise-3 {
  transition-delay: 0.18s;
}
.rise-4 {
  transition-delay: 0.24s;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .hero__panel {
    padding: 40px 32px 0;
  }
  .features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1000px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
}

@media (max-width: 900px) {
  .nav,
  .header__cta .btn--ghost {
    display: none;
  }
  .burger {
    display: grid;
  }
  .footer__top {
    grid-template-columns: 1fr 1fr;
  }
  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .gallery {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .wrap {
    padding-inline: 18px;
  }
  :root {
    --r-hero: 36px;
    --r-card: 28px;
  }
  .hero__panel {
    padding: 28px 18px 0;
    gap: 24px;
  }
  .phone,
  .phone--lg {
    --phone-w: min(300px, 82vw);
  }

  .features__grid {
    grid-template-columns: 1fr;
  }
  .footer__top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .faq__q {
    padding: 16px 18px;
    font-size: 16px;
  }
  .faq__a {
    padding: 0 18px 18px;
  }
  .feature {
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .rise {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .ticker__track {
    animation: none;
  }
  .btn:hover,
  .feature:hover {
    transform: none;
  }
}
