/* VetLum marketing site. Colours follow the app's theme tokens (src/app/globals.css). */

@font-face {
  font-family: "InterVariable";
  src: url("fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #1d1b2e;
  --ink-soft: #4a4760;
  --ink-muted: #5f5c74;
  --night: #262a60;
  --night-2: #353b80;
  --night-3: #4c5397;
  --violet: #5d5294;
  --violet-strong: #4b4280;
  --violet-soft: #796cbf;
  --lilac: #e7e5fe;
  --lilac-2: #d2cefd;
  --lilac-3: #b5abfc;
  --mist: #eef0f6;
  --mist-2: #e4e7f2;
  --surface: #ffffff;
  --line: #dcdfeb;
  --line-strong: #c4c8da;
  --ok: #2c7a51;
  --focus: #796cbf;

  --font: "InterVariable", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-ar: "InterVariable", "Noto Kufi Arabic", "Segoe UI", Tahoma, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.45rem, 1.2rem + 1vw, 1.75rem);
  --step-3: clamp(1.9rem, 1.4rem + 2vw, 2.6rem);
  --step-4: clamp(2.4rem, 1.6rem + 3.6vw, 4.1rem);

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

html[lang="ar"] body {
  font-family: var(--font-ar);
  line-height: 1.8;
  font-feature-settings: normal;
}

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

img,
video {
  height: auto;
}

a {
  color: var(--violet);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--violet-strong);
}

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

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 620;
  letter-spacing: -0.022em;
  line-height: 1.12;
  text-wrap: balance;
}

html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4 {
  letter-spacing: 0;
  line-height: 1.35;
  font-weight: 700;
}

p {
  margin: 0;
  text-wrap: pretty;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-s);
}

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

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 1rem;
  font-weight: 560;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--violet);
  color: #fff;
}

.btn-primary:hover {
  background: var(--violet-strong);
  color: #fff;
}

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

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

.btn-light {
  background: #fff;
  color: var(--night);
}

.btn-light:hover {
  background: var(--lilac);
  color: var(--night);
}

.btn-outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.btn-outline-light:hover {
  border-color: #fff;
  color: #fff;
}

.btn-small {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 0.9375rem;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid transparent;
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  transition: border-color 0.2s ease;
}

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

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--violet);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  flex-shrink: 0;
}

.brand svg {
  width: 26px;
  height: 26px;
}

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

.main-nav {
  display: none;
}

.main-nav ul {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}

.main-nav a:hover {
  background: var(--mist);
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-inline-start: auto;
}

.header-actions .lang-link,
.header-actions .signin-link {
  display: none;
  padding: 8px 10px;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}

.header-actions .lang-link:hover,
.header-actions .signin-link:hover {
  color: var(--violet);
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
}

.header-actions .btn-primary {
  display: none;
}

.mobile-menu {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 12px 0 20px;
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mobile-menu li a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--mist-2);
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}

.mobile-menu .mobile-actions {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

@media (min-width: 560px) {
  .header-actions .btn-primary {
    display: inline-flex;
  }
}

@media (min-width: 1020px) {
  .main-nav {
    display: block;
  }
  .menu-toggle,
  .mobile-menu {
    display: none !important;
  }
  .header-actions .lang-link,
  .header-actions .signin-link {
    display: inline-block;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(40px, 7vw, 88px) 0 0;
  background:
    radial-gradient(1100px 520px at 85% 0%, rgba(210, 206, 253, 0.55), transparent 65%),
    linear-gradient(180deg, #fff 0%, var(--mist) 100%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: 40px;
}

.hero-copy {
  max-width: 620px;
}

.hero h1 {
  font-size: var(--step-4);
  font-weight: 640;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

html[lang="ar"] .hero h1 {
  letter-spacing: 0;
  line-height: 1.3;
}

.hero-sub {
  margin-top: 22px;
  max-width: 34em;
  color: var(--ink-soft);
  font-size: var(--step-1);
  line-height: 1.55;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-note {
  margin-top: 18px;
  color: var(--ink-muted);
  font-size: var(--step--1);
}

.hero-stage {
  position: relative;
  margin-inline-end: calc(var(--gutter) * -1);
}

/* Browser mock (CSS only). */
.browser {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow:
    0 1px 0 rgba(29, 27, 46, 0.04),
    0 24px 60px -18px rgba(38, 42, 96, 0.35);
  overflow: hidden;
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 36px;
  padding-inline: 14px;
  background: var(--mist);
  border-bottom: 1px solid var(--line);
}

.browser-dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.browser-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-strong);
}

.browser-url {
  flex: 1;
  max-width: 280px;
  margin-inline: auto;
  padding: 3px 12px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink-muted);
  font-size: 0.75rem;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  direction: ltr;
}

.browser-screen {
  position: relative;
  aspect-ratio: 1440 / 900;
  background: var(--mist);
}

.browser-screen > img,
.browser-screen > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}

.hero-slides img {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.hero-slides img.is-current {
  opacity: 1;
}

.hero-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.hero-switch button {
  min-height: 40px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
}

.hero-switch button[aria-pressed="true"] {
  border-color: var(--violet);
  background: var(--violet);
  color: #fff;
}

.hero-switch button:hover {
  border-color: var(--violet);
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: center;
    gap: 56px;
  }
  .hero-stage {
    margin-inline-end: calc((100vw - min(100vw, var(--max))) / -2 - var(--gutter));
  }
}

/* ---------- UAE strengths ---------- */

.strengths {
  padding: 56px 0 64px;
  background: var(--mist);
}

.strengths h2 {
  font-size: var(--step-1);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.strength-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0 32px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.strength-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.96875rem;
  line-height: 1.5;
}

.strength-list strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
}

.strength-list svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: var(--violet);
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(72px, 10vw, 128px) 0;
}

.section-tint {
  background: var(--mist);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.section-head h2 {
  font-size: var(--step-3);
}

.section-head p {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: var(--step-1);
  line-height: 1.55;
}

/* ---------- Day at your clinic (the signature element) ---------- */

.day {
  background: var(--night);
  color: #fff;
}

.day .section-head p {
  color: var(--lilac-2);
}

.day-rail {
  position: relative;
  margin-bottom: 32px;
}

.day-tabs {
  display: flex;
  gap: 0;
  margin: 0;
  padding: 0 0 4px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}

.day-tabs::before {
  /* The day line the tabs sit on. */
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 34px;
  height: 2px;
  background: linear-gradient(90deg, var(--night-3), var(--violet-soft), var(--night-3));
}

html[dir="rtl"] .day-tabs::before {
  background: linear-gradient(270deg, var(--night-3), var(--violet-soft), var(--night-3));
}

.day-tab {
  position: relative;
  flex: 1 0 auto;
  min-width: 132px;
  padding: 0 10px 10px;
  border: 0;
  background: none;
  color: var(--lilac-2);
  font: inherit;
  text-align: start;
  cursor: pointer;
  scroll-snap-align: start;
}

.day-tab .time {
  display: block;
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  color: var(--lilac-3);
  height: 20px;
  margin-bottom: 8px;
}

.day-tab .dot {
  position: relative;
  z-index: 1;
  display: block;
  width: 14px;
  height: 14px;
  margin: 0 0 12px;
  border: 2px solid var(--violet-soft);
  border-radius: 50%;
  background: var(--night);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.day-tab .label {
  display: block;
  max-width: 13ch;
  font-size: 0.96875rem;
  font-weight: 560;
  line-height: 1.3;
}

.day-tab:hover .label {
  color: #fff;
}

.day-tab[aria-selected="true"] {
  color: #fff;
}

.day-tab[aria-selected="true"] .dot {
  background: #fff;
  border-color: #fff;
  transform: scale(1.35);
  box-shadow: 0 0 0 6px rgba(181, 171, 252, 0.25);
}

.day-tab:focus-visible {
  outline-color: var(--lilac-3);
}

.day-panel {
  display: grid;
  gap: 32px;
}

.day-panel[hidden] {
  display: none;
}

.day-panel h3 {
  font-size: var(--step-2);
}

.day-panel .lead {
  margin-top: 12px;
  color: var(--lilac-2);
}

.tick-list {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.tick-list li {
  position: relative;
  padding-inline-start: 30px;
  line-height: 1.5;
}

.tick-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.3em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--violet-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}

.light .tick-list li::before,
.tick-list.on-light li::before {
  background-color: var(--violet);
}

.day-panel .browser {
  border-color: var(--night-2);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.55);
}

.day-panel .browser-bar {
  background: var(--night-2);
  border-bottom-color: var(--night-3);
}

.day-panel .browser-dots span {
  background: var(--night-3);
}

.day-panel .browser-url {
  background: var(--night);
  color: var(--lilac-3);
}

@media (min-width: 900px) {
  .day-panel {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    align-items: start;
    gap: 56px;
  }
  .day-tab {
    flex: 1 1 0;
    min-width: 0;
  }
}

/* ---------- Benefit blocks ---------- */

.benefit {
  display: grid;
  gap: 32px;
  align-items: center;
}

.benefit + .benefit {
  margin-top: clamp(72px, 9vw, 120px);
}

.benefit h3 {
  font-size: var(--step-3);
}

.benefit p {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 1.125rem;
}

.benefit .tick-list {
  color: var(--ink);
}

.benefit .tick-list li::before {
  background-color: var(--violet);
}

@media (min-width: 900px) {
  .benefit {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 64px;
  }
  .benefit.flip .benefit-copy {
    order: 2;
  }
}

/* ---------- Switching + trust tabs ---------- */

.switch-grid {
  display: grid;
  gap: 40px;
}

.switch-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.switch-steps li {
  position: relative;
  padding: 0 0 26px;
  padding-inline-start: 52px;
  counter-increment: step;
}

.switch-steps li::before {
  content: counter(step);
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--lilac);
  color: var(--violet-strong);
  font-weight: 650;
  font-size: 0.9375rem;
}

.switch-steps li::after {
  content: "";
  position: absolute;
  inset-inline-start: 16px;
  top: 38px;
  bottom: 4px;
  width: 2px;
  background: var(--lilac);
}

.switch-steps li:last-child::after {
  display: none;
}

.switch-steps strong {
  display: block;
  font-size: 1.0625rem;
  font-weight: 600;
}

.switch-steps span {
  color: var(--ink-soft);
}

.trust {
  align-self: start;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: #fff;
  overflow: hidden;
}

.trust-tabs {
  display: flex;
  margin: 0;
  padding: 0 8px;
  list-style: none;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}

.trust-tab {
  flex-shrink: 0;
  padding: 16px 14px 14px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--ink-muted);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 560;
  cursor: pointer;
}

.trust-tab[aria-selected="true"] {
  color: var(--violet);
  border-bottom-color: var(--violet);
}

.trust-panel {
  padding: 28px clamp(20px, 4vw, 36px) 32px;
}

.trust-panel[hidden] {
  display: none;
}

.trust-panel h3 {
  font-size: var(--step-1);
}

.trust-panel p {
  margin-top: 10px;
  color: var(--ink-soft);
}

.trust-panel .tick-list li::before {
  background-color: var(--violet);
}

@media (min-width: 960px) {
  .switch-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 64px;
  }
}

/* ---------- Practice types ---------- */

.practice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.practice {
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  border-radius: var(--radius-l);
  background: #fff;
  border: 1px solid var(--line);
}

.practice svg {
  width: 40px;
  height: 40px;
  color: var(--violet);
}

.practice h3 {
  margin-top: 20px;
  font-size: 1.25rem;
}

.practice p {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 0.96875rem;
}

.practice .practice-link {
  margin-top: auto;
  padding-top: 18px;
  font-weight: 560;
}

.practice.is-talk {
  background: var(--night);
  border-color: var(--night);
  color: #fff;
}

.practice.is-talk svg {
  color: var(--lilac-3);
}

.practice.is-talk p {
  color: var(--lilac-2);
}

.practice.is-talk a {
  color: #fff;
}

/* ---------- Feature grid ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.feature-grid li {
  padding: 24px 20px 26px 0;
  border-bottom: 1px solid var(--line);
}

html[dir="rtl"] .feature-grid li {
  padding: 24px 0 26px 20px;
}

.feature-grid svg {
  width: 28px;
  height: 28px;
  color: var(--violet);
}

.feature-grid h3 {
  margin-top: 14px;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.feature-grid p {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.55;
}

/* ---------- Pricing ---------- */

.pricing-grid {
  display: grid;
  gap: 20px;
  max-width: 980px;
}

.price-card {
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius-l);
  background: #fff;
  border: 2px solid var(--violet);
}

.price-card h3 {
  font-size: 1.25rem;
}

.price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 16px;
}

.price .amount {
  font-size: clamp(2.6rem, 2rem + 2.5vw, 3.6rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.price .per {
  color: var(--ink-muted);
}

.price-card .tick-list li::before {
  background-color: var(--violet);
}

.price-card .btn {
  margin-top: 28px;
}

.price-talk {
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius-l);
  background: var(--mist);
}

.price-talk h3 {
  font-size: 1.25rem;
}

.price-talk p {
  margin-top: 10px;
  color: var(--ink-soft);
}

.price-talk .btn {
  margin-top: 24px;
}

@media (min-width: 820px) {
  .pricing-grid {
    grid-template-columns: 3fr 2fr;
    align-items: stretch;
  }
}

/* ---------- FAQ ---------- */

.faq {
  max-width: 820px;
  border-top: 1px solid var(--line);
}

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

.faq summary {
  position: relative;
  padding: 22px 0;
  padding-inline-end: 44px;
  font-size: 1.125rem;
  font-weight: 580;
  list-style: none;
  cursor: pointer;
}

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

.faq summary::after {
  content: "";
  position: absolute;
  inset-inline-end: 6px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -9px;
  border-inline-end: 2px solid var(--violet);
  border-bottom: 2px solid var(--violet);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(225deg);
  margin-top: -3px;
}

.faq .answer {
  padding: 0 0 24px;
  color: var(--ink-soft);
  max-width: 68ch;
}

.faq .answer p + p {
  margin-top: 10px;
}

/* ---------- Closing CTA ---------- */

.closing {
  padding: clamp(72px, 10vw, 120px) 0;
  background:
    radial-gradient(800px 400px at 15% 100%, rgba(121, 108, 191, 0.45), transparent 70%),
    var(--night);
  color: #fff;
}

.closing h2 {
  max-width: 16em;
  font-size: var(--step-3);
}

.closing p {
  max-width: 40em;
  margin-top: 16px;
  color: var(--lilac-2);
  font-size: var(--step-1);
}

.closing .hero-ctas {
  margin-top: 32px;
}

.closing a:not(.btn) {
  color: #fff;
}

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

.site-footer {
  padding: 64px 0 40px;
  background: #fff;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 32px;
}

.footer-grid h2 {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0;
}

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

.footer-grid a {
  color: var(--ink-soft);
  text-decoration: none;
}

.footer-grid a:hover {
  color: var(--violet);
  text-decoration: underline;
}

.footer-brand p {
  margin-top: 14px;
  max-width: 28ch;
  color: var(--ink-muted);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
}

.footer-bottom a {
  color: var(--ink-muted);
}

/* ---------- Demo dialog ---------- */

.demo-dialog {
  width: min(640px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 0;
  border-radius: var(--radius-l);
  background: #fff;
  color: var(--ink);
  box-shadow: 0 40px 80px -20px rgba(29, 27, 46, 0.45);
}

.demo-dialog::backdrop {
  background: rgba(29, 27, 46, 0.55);
}

.demo-inner {
  padding: clamp(22px, 4vw, 36px);
}

.demo-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.demo-head h2 {
  font-size: var(--step-2);
}

.demo-head p {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 0.96875rem;
}

.dialog-close {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-inline-start: auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.dialog-close svg {
  width: 18px;
  height: 18px;
}

.form-grid {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

@media (min-width: 560px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
  .form-grid .span-2 {
    grid-column: 1 / -1;
  }
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.875rem;
  font-weight: 560;
}

.field .optional {
  color: var(--ink-muted);
  font-weight: 400;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

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

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--violet);
  outline-offset: 0;
  border-color: var(--violet);
}

.field input[aria-invalid="true"] {
  border-color: #b3261e;
}

.hp-field {
  position: absolute;
  inset-inline-start: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
}

.form-foot .privacy-note {
  flex: 1 1 220px;
  color: var(--ink-muted);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.form-status {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.9375rem;
}

.form-status[hidden] {
  display: none;
}

.form-status.is-error {
  background: #fcecea;
  color: #8c1d18;
}

.form-status.is-success {
  background: #e6f4ec;
  color: #1d5a3a;
}

.demo-done[hidden] {
  display: none;
}

.demo-done {
  padding: 12px 0 4px;
}

.demo-done h3 {
  font-size: var(--step-1);
}

.demo-done p {
  margin-top: 8px;
  color: var(--ink-soft);
}

/* ---------- Legal pages ---------- */

.legal {
  padding: clamp(48px, 7vw, 88px) 0;
}

.legal .wrap {
  max-width: 820px;
}

.legal h1 {
  font-size: var(--step-3);
}

.legal .updated {
  margin-top: 10px;
  color: var(--ink-muted);
}

.legal h2 {
  margin-top: 40px;
  font-size: var(--step-1);
}

.legal p,
.legal ul {
  margin-top: 12px;
  color: var(--ink-soft);
}

.legal ul {
  padding-inline-start: 22px;
}

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

.notfound {
  padding: clamp(80px, 14vw, 160px) 0;
  text-align: center;
}

.notfound h1 {
  font-size: var(--step-3);
}

.notfound p {
  margin: 14px auto 0;
  max-width: 36em;
  color: var(--ink-soft);
}

.notfound .hero-ctas {
  justify-content: center;
}

/* ---------- Small notes ---------- */

.hero-demo-note {
  margin: 0;
  padding: 14px 0 28px;
  text-align: end;
  font-size: 0.8125rem;
}

.switch-help {
  margin-top: 8px;
  padding: 16px 18px;
  border-radius: var(--radius-m);
  background: #fff;
  color: var(--ink-soft);
}

.closing-email {
  margin-top: 28px;
  font-size: 1rem;
}

.notfound-ar {
  margin-top: 64px;
  font-size: var(--step-2);
}

/* ---------- Resources menu (header) ---------- */

.nav-resources {
  position: relative;
}

.nav-resources summary {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  font-weight: 500;
  list-style: none;
  cursor: pointer;
}

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

.nav-resources summary::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-inline-end: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.nav-resources summary:hover,
.nav-resources details[open] summary {
  background: var(--mist);
  color: var(--ink);
}

.main-nav .nav-sub {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-start: 0;
  display: grid;
  gap: 2px;
  width: 300px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: #fff;
  box-shadow: 0 18px 40px -18px rgba(38, 42, 96, 0.35);
}

.main-nav .nav-sub a {
  border-radius: var(--radius-s);
}

.main-nav a[aria-current="page"],
.mobile-menu a[aria-current="page"] {
  color: var(--violet);
}

.mobile-menu .mobile-group {
  margin-top: 18px;
  color: var(--ink-muted);
  font-size: var(--step--1);
  font-weight: 600;
}

/* ---------- At a glance (home) ---------- */

.glance {
  padding: 48px 0 8px;
  background: var(--mist);
}

.glance h2 {
  font-size: var(--step-1);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.glance p {
  max-width: 68ch;
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 1.0625rem;
}

.more-link {
  margin-top: 18px;
  font-weight: 550;
}

/* ---------- Resource pages ---------- */

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  color: var(--ink-muted);
  font-size: var(--step--1);
}

.crumbs li + li::before {
  content: "/";
  margin-inline-end: 6px;
  color: var(--line-strong);
}

.crumbs a {
  color: var(--ink-muted);
}

.page-hero {
  padding: clamp(36px, 6vw, 72px) 0 clamp(40px, 6vw, 64px);
  background:
    radial-gradient(900px 420px at 90% 0%, rgba(210, 206, 253, 0.5), transparent 65%),
    linear-gradient(180deg, #fff 0%, var(--mist) 100%);
}

.page-hero h1 {
  max-width: 18em;
  font-size: var(--step-4);
  font-weight: 640;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

html[lang="ar"] .page-hero h1 {
  letter-spacing: 0;
  line-height: 1.3;
}

.page-hero .lead {
  max-width: 38em;
  margin-top: 20px;
  color: var(--ink-soft);
  font-size: var(--step-1);
  line-height: 1.55;
}

.page-grid {
  display: grid;
  gap: 40px;
  padding-block: clamp(48px, 7vw, 88px);
}

.page-body {
  max-width: 70ch;
}

.page-body > section + section {
  margin-top: 44px;
}

.page-body h2 {
  font-size: var(--step-2);
}

.page-body p,
.page-body .tick-list,
.page-body .switch-steps {
  margin-top: 14px;
  color: var(--ink-soft);
}

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

.page-body .switch-steps strong {
  color: var(--ink);
}

.page-body figure {
  margin: 28px 0 0;
}

.page-body figcaption {
  margin-top: 10px;
  color: var(--ink-muted);
  font-size: var(--step--1);
}

.in-short {
  align-self: start;
  padding: 26px 26px 28px;
  border-radius: var(--radius-l);
  background: var(--lilac);
}

.in-short h2 {
  font-size: 1.125rem;
}

.in-short .tick-list {
  margin-top: 14px;
  color: var(--ink);
  font-size: 0.96875rem;
}

.in-short .btn {
  margin-top: 22px;
}

.related-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.related-list li {
  padding: 16px 0;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.96875rem;
}

.related-list a {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
}

@media (min-width: 960px) {
  .page-grid {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 64px;
  }
  .in-short {
    position: sticky;
    top: 92px;
    grid-column: 2;
    grid-row: 1;
  }
  .page-body {
    grid-column: 1;
    grid-row: 1;
  }
}
