/* DO Automation, shared styles for all pages.
   RTL first: layout uses logical properties only.
   Radius scale: pill for interactive elements, 24px for large panels,
   16px for cards and FAQ items, 12px for icon tiles. */

/* ---------- Fonts (self-hosted Heebo, Hebrew + Latin subsets) ---------- */
@font-face { font-family: "Heebo"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/heebo-hebrew-400.woff2") format("woff2"); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Heebo"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/heebo-hebrew-500.woff2") format("woff2"); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Heebo"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/heebo-hebrew-700.woff2") format("woff2"); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Heebo"; font-style: normal; font-weight: 800; font-display: swap; src: url("assets/fonts/heebo-hebrew-800.woff2") format("woff2"); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Heebo"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/heebo-latin-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Heebo"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/heebo-latin-500.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Heebo"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/heebo-latin-700.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Heebo"; font-style: normal; font-weight: 800; font-display: swap; src: url("assets/fonts/heebo-latin-800.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;

  --bg: #0E0E0E;
  --surface: #161616;
  --surface-raised: #1B1B1B;
  --border: #2A2A2A;
  --text: #FFFFFF;
  --text-2: #B3B3B3;
  --gold: #C9A96E;
  --gold-hover: #D8BD8A;
  --gold-soft: rgba(201, 169, 110, 0.12);
  --gold-line: rgba(201, 169, 110, 0.35);
  --on-gold: #0E0E0E;

  --font: "Heebo", "Rubik", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --fs-h1: clamp(2.25rem, 1.55rem + 3vw, 3.5rem);
  --fs-h2: clamp(1.75rem, 1.3rem + 1.9vw, 2.75rem);
  --fs-h3: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem);
  --fs-lead: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  --fs-body: clamp(1rem, 0.97rem + 0.12vw, 1.0625rem);
  --fs-small: 0.9375rem;

  --r-panel: 24px;
  --r-card: 16px;
  --r-tile: 12px;
  --r-pill: 999px;

  --gutter: clamp(20px, 5vw, 40px);
  --max: 1200px;
  --header-h: 72px;
  --section-y: clamp(80px, 9vw, 120px);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  /* z-index scale */
  --z-fab: 40;
  --z-header: 50;
  --z-skip: 100;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  -webkit-tap-highlight-color: transparent;
}

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

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

h1, h2, h3 { font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; text-wrap: balance; }
h3 { font-weight: 700; line-height: 1.3; letter-spacing: 0; }
p { text-wrap: pretty; }

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

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

::selection { background: var(--gold); color: var(--on-gold); }

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

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon { width: 1.25em; height: 1.25em; flex: none; fill: currentColor; }

.container {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  z-index: var(--z-skip);
  padding: 12px 20px;
  border-radius: var(--r-pill);
  background: var(--gold);
  color: var(--on-gold);
  font-weight: 700;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 14px 30px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--gold);
  color: var(--on-gold);
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  transition: background-color 200ms ease, transform 160ms var(--ease-out);
}
.btn .icon { width: 22px; height: 22px; }
.btn:active { transform: scale(0.97); }
.btn:focus-visible { border-radius: var(--r-pill); outline-offset: 4px; }

.btn--sm {
  min-height: 48px;
  padding: 10px 20px;
  font-size: 1rem;
  gap: 8px;
}
.btn--sm .icon { width: 19px; height: 19px; }

.link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--text);
  font-weight: 500;
  text-decoration-line: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  transition: text-decoration-color 200ms ease, color 200ms ease;
}
.link .icon { width: 18px; height: 18px; color: var(--gold); transition: transform 200ms var(--ease-out); }

@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--gold-hover); }
  .link:hover { text-decoration-color: var(--gold); }
  .link--down:hover .icon { transform: translateY(2px); }
}

/* ---------- Header ---------- */
.scroll-sentinel {
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 8px;
  pointer-events: none;
}

.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: var(--z-header);
  border-block-end: 1px solid transparent;
  transition: background-color 240ms ease, border-color 240ms ease;
}
.site-header.is-scrolled {
  background: rgba(14, 14, 14, 0.78);
  border-block-end-color: var(--border);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header.is-scrolled { background: rgba(14, 14, 14, 0.96); }
}

.header__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; flex: none; justify-self: start; border-radius: 8px; }
.brand img { width: auto; height: 52px; }

.nav ul { display: flex; align-items: center; gap: 4px; }
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 14px;
  border-radius: var(--r-pill);
  color: var(--text-2);
  font-size: var(--fs-small);
  font-weight: 500;
  transition: color 200ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .nav a:hover { color: var(--text); }
}

.header__cta { justify-self: end; }

@media (max-width: 899px) {
  .header__inner { grid-template-columns: minmax(0, 1fr) auto; }
  .nav { display: none; }
}
@media (max-width: 599px) {
  :root { --header-h: 64px; }
  .brand img { height: 42px; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section-title { font-size: var(--fs-h2); max-width: 22ch; }

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: clamp(24px, 3vw, 36px);
}
.card h3 { font-size: var(--fs-h3); }
.card p { margin-block-start: 8px; color: var(--text-2); max-width: 46ch; }

.icon-tile {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--r-tile);
  background: var(--gold-soft);
  border: 1px solid rgba(201, 169, 110, 0.22);
  color: var(--gold);
  margin-block-end: 24px;
}
.icon-tile .icon { width: 24px; height: 24px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow-x: hidden;
  overflow-x: clip;
  padding-block: clamp(40px, 6vw, 72px) clamp(72px, 9vw, 112px);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(56px, 7vw, 88px);
  align-items: center;
}

.eyebrow {
  color: var(--gold);
  font-size: 1rem;
  font-weight: 500;
  margin-block-end: 20px;
}

.hero h1 { font-size: var(--fs-h1); }
.hero h1 .accent { display: block; color: var(--gold); }

.lead {
  margin-block-start: 24px;
  font-size: var(--fs-lead);
  color: var(--text-2);
  max-width: 36em;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-block-start: 36px;
}
.microcopy {
  margin-block-start: 14px;
  color: var(--text-2);
  font-size: var(--fs-small);
}
.hero__actions .link { margin-block-start: 12px; }

@media (max-width: 479px) {
  .hero__actions .btn { width: 100%; }
}

@media (min-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
}

/* ---------- Chat mockup (decorative) ---------- */
.hero__visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero__visual::before {
  content: "";
  position: absolute;
  inset: -12% -20%;
  background: radial-gradient(closest-side, rgba(201, 169, 110, 0.13), transparent 72%);
  pointer-events: none;
}

.phone {
  position: relative;
  width: min(100%, 340px);
  padding: 9px;
  border-radius: 50px;
  background: linear-gradient(155deg, #262626 0%, #141414 38%, #1d1d1d 100%);
  border: 1px solid #333333;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 40px 90px -30px rgba(0, 0, 0, 0.85);
}

.phone__screen {
  position: relative;
  overflow: hidden;
  border-radius: 41px;
  background: #0B141A;
  display: flex;
  flex-direction: column;
}

.phone__island {
  position: absolute;
  inset-block-start: 11px;
  inset-inline-start: 50%;
  width: 92px;
  height: 26px;
  border-radius: var(--r-pill);
  background: #060606;
  transform: translateX(50%);
  z-index: 1;
}

.chat__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 48px 14px 10px;
  background: #1F2C34;
  color: #E9EDEF;
}
.chat__header .icon { width: 20px; height: 20px; color: #AEBAC1; }
.chat__avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--on-gold);
  flex: none;
}
.chat__avatar .icon { width: 19px; height: 19px; color: var(--on-gold); }
.chat__name { display: block; font-size: 15px; font-weight: 500; line-height: 1.25; }
.chat__status { display: block; font-size: 12px; color: #8696A0; line-height: 1.3; }

.chat__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 14px 18px;
  background-color: #0B141A;
  background-image: radial-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 14px 14px;
}

.msg {
  position: relative;
  max-width: 82%;
  padding: 6px 10px 7px;
  border-radius: 9px;
  font-size: 14px;
  line-height: 1.42;
  color: #E9EDEF;
  box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.25);
}
.msg::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  width: 8px;
  height: 12px;
  background: inherit;
}
.msg__text::after { content: ""; display: inline-block; width: 40px; }
.msg--out .msg__text::after { width: 58px; }
.msg__meta {
  position: absolute;
  inset-inline-end: 9px;
  inset-block-end: 4px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  line-height: 1;
  color: rgba(233, 237, 239, 0.62);
}
.msg__meta .icon { width: 16px; height: 16px; color: #53BDEB; }

/* Bot = incoming, sits on the start (right) side in RTL */
.msg--in {
  align-self: flex-start;
  background: #202C33;
  border-start-start-radius: 0;
  transform-origin: top right;
}
.msg--in::before { inset-inline-start: -8px; clip-path: polygon(0 0, 100% 0, 0 100%); }

/* Customer = outgoing, sits on the end (left) side in RTL */
.msg--out {
  align-self: flex-end;
  background: #005C4B;
  border-start-end-radius: 0;
  transform-origin: top left;
}
.msg--out::before { inset-inline-end: -8px; clip-path: polygon(0 0, 100% 0, 100% 100%); }

.chat__composer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px 14px;
  background: #0B141A;
}
.chat__field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding-inline: 14px;
  border-radius: var(--r-pill);
  background: #202C33;
  color: #8696A0;
  font-size: 15px;
}
.chat__field .icon { width: 20px; height: 20px; }
.chat__mic {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #00A884;
  color: #0B141A;
  flex: none;
}
.chat__mic .icon { width: 20px; height: 20px; }

.mockup-label {
  position: relative;
  margin-block-start: 18px;
  color: var(--text-2);
  font-size: 0.875rem;
  text-align: center;
}

/* ---------- Problem ---------- */
.problem__grid {
  display: grid;
  gap: 16px;
  margin-block-start: clamp(40px, 5vw, 64px);
}

.problem__card--lead {
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(201, 169, 110, 0.14), transparent 55%),
    var(--surface);
}

@media (min-width: 768px) {
  .problem__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    grid-template-rows: auto auto;
  }
  .problem__card--lead {
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(32px, 4vw, 48px);
  }
  .problem__card--lead .icon-tile { width: 64px; height: 64px; border-radius: 16px; }
  .problem__card--lead .icon-tile .icon { width: 32px; height: 32px; }
  .problem__card--lead h3 { font-size: clamp(1.375rem, 1.1rem + 0.8vw, 1.75rem); }
  .problem__card--lead p { font-size: var(--fs-lead); max-width: 30ch; }
}

/* ---------- How it works ---------- */
.how { border-block: 1px solid var(--border); background: #111111; }

.steps {
  position: relative;
  display: grid;
  gap: 40px;
  margin-block-start: clamp(40px, 5vw, 72px);
}

.step { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 20px; }
.step__num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--gold-line);
  color: var(--gold);
  font-size: 1.375rem;
  font-weight: 800;
  line-height: 1;
}
.step h3 { font-size: var(--fs-h3); padding-block-start: 12px; }
.step p { margin-block-start: 8px; color: var(--text-2); max-width: 34ch; }

/* Vertical connector on mobile */
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  inset-inline-start: 27px;
  inset-block-start: 56px;
  inset-block-end: -40px;
  width: 1px;
  background: linear-gradient(to bottom, var(--gold-line), var(--border));
}

@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
  .step { grid-template-columns: minmax(0, 1fr); }
  .step h3 { padding-block-start: 28px; }
  /* Horizontal connector: runs from this marker to the next one */
  .step:not(:last-child)::after {
    inset-block-start: 28px;
    inset-block-end: auto;
    inset-inline-start: 56px;
    inset-inline-end: -40px;
    width: auto;
    height: 1px;
    background: linear-gradient(to left, var(--gold-line), var(--border));
  }
}

/* ---------- Features ---------- */
.features__grid {
  display: grid;
  gap: 16px;
  margin-block-start: clamp(40px, 5vw, 64px);
}

.feature--major {
  overflow: hidden;
  background:
    radial-gradient(90% 120% at 0% 100%, rgba(201, 169, 110, 0.10), transparent 60%),
    var(--surface);
}
.feature--major .icon-tile { margin-block-end: clamp(32px, 4vw, 56px); }

@media (min-width: 768px) {
  .features__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .features__grid > :first-child { grid-column: span 2; }
}
@media (min-width: 1024px) {
  .features__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .features__grid > * { grid-column: span 2; }
  .features__grid > .feature--major { grid-column: span 3; padding: clamp(32px, 3.4vw, 44px); }
  .feature--major h3 { font-size: 1.5rem; }
  .feature--major p { font-size: 1.125rem; }
}

/* ---------- About ---------- */
.about__inner { max-width: 52rem; }
.about__text {
  margin-block-start: 28px;
  padding-inline-start: 24px;
  border-inline-start: 2px solid var(--gold);
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  line-height: 1.55;
  color: var(--text);
}

/* ---------- FAQ ---------- */
.faq__layout { display: grid; gap: 40px; }
.faq__list { display: grid; gap: 12px; }

.faq__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  transition: border-color 200ms ease;
}
.faq__item.is-open { border-color: #3A3A3A; }

.faq__item h3 { font-size: inherit; }

.faq__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 68px;
  padding: 18px 24px;
  border: 0;
  border-radius: var(--r-card);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: start;
  cursor: pointer;
  touch-action: manipulation;
}
.faq__trigger:focus-visible { border-radius: var(--r-card); outline-offset: 2px; }
.faq__chevron {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold);
  transition: transform 260ms var(--ease-out);
}
.faq__chevron .icon { width: 16px; height: 16px; }
.faq__item.is-open .faq__chevron { transform: rotate(180deg); }

.faq__panel {
  display: grid;
  grid-template-rows: 1fr;
}
.faq__panel > div { overflow: hidden; }
.faq__panel p {
  padding: 0 24px 22px;
  color: var(--text-2);
  max-width: 60ch;
}

.js .faq__panel {
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows 260ms var(--ease-out), visibility 0s linear 260ms;
}
.js .faq__item.is-open .faq__panel {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows 260ms var(--ease-out), visibility 0s;
}

@media (hover: hover) and (pointer: fine) {
  .faq__item:hover { border-color: #3A3A3A; }
}

@media (min-width: 960px) {
  .faq__layout { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr); gap: 64px; align-items: start; }
  .faq__layout .section-title { position: sticky; inset-block-start: calc(var(--header-h) + 40px); }
}

/* ---------- Final CTA ---------- */
.cta__panel {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 8vw, 104px) clamp(24px, 5vw, 64px);
  border: 1px solid var(--border);
  border-radius: var(--r-panel);
  background:
    radial-gradient(70% 90% at 50% 0%, rgba(201, 169, 110, 0.16), transparent 70%),
    var(--surface);
  text-align: center;
}
.cta__panel h2 { font-size: var(--fs-h2); max-width: 26ch; margin-inline: auto; }
.cta__panel > p { margin-block-start: 16px; margin-inline: auto; color: var(--text-2); font-size: var(--fs-lead); max-width: 40ch; }
.cta__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 32px;
  margin-block-start: 36px;
}
@media (max-width: 479px) {
  .cta__actions { flex-direction: column; }
  .cta__actions .btn { width: 100%; }
}

/* ---------- Footer ---------- */
.site-footer {
  border-block-start: 1px solid var(--border);
  padding-block: 48px 40px;
  color: var(--text-2);
  font-size: var(--fs-small);
}
.footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
}
.footer__brand { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.footer__brand .brand img { height: 44px; }
.footer__email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 5px;
  transition: text-decoration-color 200ms ease;
}
.footer__email .icon { width: 18px; height: 18px; color: var(--gold); }
.footer__nav ul { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.footer__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-2);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 5px;
  transition: color 200ms ease, text-decoration-color 200ms ease;
}
.footer__nav a[aria-current="page"] { color: var(--text); text-decoration-color: var(--gold-line); }
@media (hover: hover) and (pointer: fine) {
  .footer__nav a:hover, .footer__email:hover { color: var(--text); text-decoration-color: var(--gold); }
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-block-start: 32px;
  padding-block-start: 24px;
  border-block-start: 1px solid var(--border);
}

/* ---------- Floating WhatsApp button (mobile only) ---------- */
.fab { display: none; }

@media (max-width: 767px) {
  .fab {
    position: fixed;
    inset-block-end: calc(16px + env(safe-area-inset-bottom, 0px));
    inset-inline-end: calc(16px + env(safe-area-inset-left, 0px));
    z-index: var(--z-fab);
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--on-gold);
    box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(14, 14, 14, 0.4);
    touch-action: manipulation;
    transition:
      opacity 220ms var(--ease-out),
      transform 220ms var(--ease-out),
      visibility 0s linear 0s;
  }
  .fab .icon { width: 30px; height: 30px; }
  .fab:focus-visible { border-radius: 50%; }
  .fab:active { transform: scale(0.95); }

  .js .fab:not(.is-visible) {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 180ms var(--ease-out),
      transform 180ms var(--ease-out),
      visibility 0s linear 180ms;
  }

  /* Keep footer links clear of the button even if it is showing. */
  .has-fab .site-footer { padding-block-end: calc(104px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- Legal pages ---------- */
.legal { padding-block: clamp(48px, 7vw, 96px) var(--section-y); }
.legal__inner { max-width: 46rem; }
.legal h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); }
.legal__updated { margin-block-start: 12px; color: var(--text-2); font-size: var(--fs-small); }
.legal__intro { margin-block-start: 28px; font-size: var(--fs-lead); color: var(--text-2); }
.legal h2 {
  margin-block-start: 48px;
  font-size: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  font-weight: 700;
  line-height: 1.3;
}
.legal p, .legal ul { margin-block-start: 12px; color: var(--text-2); max-width: 65ch; }
.legal ul { padding-inline-start: 0; display: grid; gap: 10px; }
.legal li { position: relative; padding-inline-start: 22px; }
.legal li::before {
  content: "";
  position: absolute;
  inset-inline-start: 2px;
  inset-block-start: 0.72em;
  width: 8px;
  height: 1px;
  background: var(--gold);
}
.legal strong { color: var(--text); font-weight: 500; }
.legal a:not(.btn) {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--gold-line);
  text-underline-offset: 4px;
  transition: text-decoration-color 200ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .legal a:not(.btn):hover { text-decoration-color: var(--gold); }
}

/* ---------- Motion (only when the visitor has not asked for less) ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  .js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
    transition-delay: calc(var(--i, 0) * 80ms);
  }
  .js .reveal.is-in { opacity: 1; transform: none; }

  /* Chat messages arrive one after another, like a real conversation. */
  .js .chat .msg {
    opacity: 0;
    transform: translateY(8px) scale(0.97);
  }
  .js .chat.is-playing .msg {
    opacity: 1;
    transform: none;
    transition: opacity 360ms var(--ease-out), transform 360ms var(--ease-out);
  }
  .js .chat.is-playing .msg:nth-child(1) { transition-delay: 250ms; }
  .js .chat.is-playing .msg:nth-child(2) { transition-delay: 1050ms; }
  .js .chat.is-playing .msg:nth-child(3) { transition-delay: 2050ms; }
  .js .chat.is-playing .msg:nth-child(4) { transition-delay: 2850ms; }
  .js .chat.is-playing .msg:nth-child(5) { transition-delay: 3850ms; }
  .js .chat.is-playing .msg:nth-child(6) { transition-delay: 4650ms; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
}
