/* =========================================================
   Cierly — cinematic AI-receptionist landing page
   Full-bleed photography + abstract flow-field backgrounds.
   Green survives ONLY as a live/status signal.
   ========================================================= */

:root {
  --bg: #050505;
  --bg-soft: #0a0a0b;
  --surface: #111111;
  --surface-raised: #17181a;
  --text: #fafafa;
  --muted: #a8a8a8;
  --faint: #7c7c7c;
  --accent: #25d366;              /* WhatsApp green — status only */
  --accent-soft: rgba(37, 211, 102, 0.11);
  --line: rgba(250, 250, 250, 0.1);
  --line-strong: rgba(250, 250, 250, 0.2);
  --shadow: 0 34px 90px rgba(0, 0, 0, 0.55);

  --font-heading: "Barlow", "Segoe UI", system-ui, sans-serif;
  --font-body: "Barlow", "Segoe UI", system-ui, sans-serif;
  --font-mono: "Barlow Condensed", "Arial Narrow", "Segoe UI", sans-serif;

  --max-width: 1240px;
  --gutter: clamp(24px, 4.4vw, 64px);
  --section-gap: clamp(96px, 11vw, 150px);
  --radius-sm: 9px;
  --radius: 16px;
  --radius-lg: 20px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

[id] { scroll-margin-top: 84px; }

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p { margin-top: 0; }

h1, h2, h3 {
  color: var(--text);
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.05;
  text-wrap: balance;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(2rem, 3.7vw, 3.35rem);
  font-weight: 700;
  letter-spacing: -0.024em;
  line-height: 1.06;
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(1.18rem, 2vw, 1.42rem);
  letter-spacing: -0.02em;
}

p { margin-bottom: 1em; color: var(--muted); }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
img, svg, picture { display: block; max-width: 100%; }
button, input { font: inherit; }

::selection { background: #fafafa; color: #050505; }

:focus-visible {
  outline: 2px solid #fafafa;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 16px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: #fafafa;
  color: #050505;
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus { transform: translateY(0); }

.section__inner,
.nav__inner,
.closing__inner,
.footer__inner {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section {
  position: relative;
  padding: var(--section-gap) 0;
}

.section__inner { position: relative; z-index: 2; }

.eyebrow {
  display: block;
  margin-bottom: 20px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  line-height: 1.2;
  text-transform: uppercase;
}

.section-heading { max-width: 900px; }

.section__sub {
  max-width: 56ch;
  margin-bottom: 0;
  font-size: clamp(1rem, 1.35vw, 1.12rem);
}

/* ============ Motion foundations ============ */
.reveal {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.75, 0.25, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

[data-parallax] {
  --parallax-x: 0px;
  --parallax-y: 0px;
  will-change: transform;
}

/* ============ Abstract flow-field backgrounds ============ */
.field-bg {
  position: absolute;
  inset: 0;
  overflow: clip;
  pointer-events: none;
  z-index: 0;
}

.field-bg img {
  position: absolute;
  inset: -8%;
  width: 116%;
  height: 116%;
  object-fit: cover;
  opacity: 0.9;
  animation: field-drift 52s ease-in-out infinite;
}

.field-bg--soft img { opacity: 0.6; }
.field-bg--pricing img { opacity: 1; }
.field-bg--closing img { opacity: 0.78; }

@keyframes field-drift {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(2.4deg) scale(1.045); }
}

/* ============ Navigation ============ */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  border-bottom: 1px solid transparent;
  background: transparent;
  transition: border-color 0.3s ease, background 0.3s ease, backdrop-filter 0.3s ease;
}

.nav.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(5, 5, 5, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  font-family: var(--font-heading);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* Official wordmark (the "bigger spaces" lockup). The C-mark alone lives in
   assets/cierly-mark.svg + the favicon for tight placements. */
.brand__logo {
  display: block;
  width: auto;
  height: 26px;
}

.nav__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.2vw, 34px);
}

.nav__links a {
  position: relative;
  padding: 9px 0;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav__links a::after {
  content: "";
  position: absolute;
  inset: auto 0 4px;
  height: 1px;
  background: #fafafa;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { transform: scaleX(1); }

.nav__actions { display: flex; align-items: center; gap: 12px; }

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.nav__toggle span {
  display: block;
  width: 17px;
  height: 1px;
  margin: 5px auto;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 19px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn--primary { background: #fafafa; color: #050505; }
.btn--primary:hover { background: #e2e2e2; }
.btn--ghost { border-color: rgba(250, 250, 250, 0.35); background: rgba(255, 255, 255, 0.03); }
.btn--ghost:hover { border-color: rgba(250, 250, 250, 0.7); background: rgba(255, 255, 255, 0.06); }
.btn--small { min-height: 37px; padding: 8px 14px; font-size: 0.79rem; }
.btn--full { width: 100%; }
.btn:disabled { cursor: wait; opacity: 0.62; transform: none; }

/* Press feedback is the mobile hover: a real compression, spring-back via the
   base transition. Tap highlight removed because the press state replaces it. */
.btn:active { transform: translateY(0) scale(0.965); transition-duration: 0.09s; }
a, button { -webkit-tap-highlight-color: transparent; }
.btn, .nav__toggle { touch-action: manipulation; }

/* ============ Hero ============ */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding: 150px 0 120px;
  overflow: clip;
}

.hero__media { position: absolute; inset: 0; overflow: clip; }
.hero__media picture { display: block; width: 100%; height: 100%; }

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 58%;
  transform: scale(1.08) translate3d(var(--parallax-x), var(--parallax-y), 0);
  animation: hero-settle 1.6s cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

@keyframes hero-settle {
  from { opacity: 0; transform: scale(1.14) translate3d(var(--parallax-x), var(--parallax-y), 0); }
  to   { opacity: 1; transform: scale(1.08) translate3d(var(--parallax-x), var(--parallax-y), 0); }
}

/* Staged hero entrance: kicker → headline → sub → CTAs → scroll cue.
   Keyframes start hidden but base styles stay visible, so with animations
   disabled (reduced motion, old browsers) nothing can ship blank. */
@keyframes rise-in {
  from { opacity: 0; transform: translate3d(0, 14px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

.hero__content > * { animation: rise-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both; }
.hero__content > *:nth-child(1) { animation-delay: 0.22s; }
.hero__content > *:nth-child(2) { animation-delay: 0.34s; }
.hero__content > *:nth-child(3) { animation-delay: 0.46s; }
.hero__content > *:nth-child(4) { animation-delay: 0.58s; }
.hero__scroll { animation: rise-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.95s both; }

/* "The light that stays on" — a warm breathing glow over the hero storefront. */
.hero__glow {
  position: absolute;
  z-index: 1;
  top: 34%;
  right: 6%;
  width: 36vmax;
  height: 30vmax;
  background: radial-gradient(ellipse at center,
    rgba(230, 165, 76, 0.16), rgba(230, 165, 76, 0.05) 42%, transparent 68%);
  mix-blend-mode: screen;
  pointer-events: none;
  animation: glow-breathe 6.5s ease-in-out infinite;
}

@keyframes glow-breathe {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.8; }
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.92) 0%, rgba(5, 5, 5, 0.66) 30%, rgba(5, 5, 5, 0.12) 56%, transparent 70%),
    linear-gradient(to bottom, transparent 62%, var(--bg) 99%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.hero__content { max-width: 42rem; }

.hero h1 {
  max-width: 15ch;
  margin: 26px 0;
  font-size: clamp(2.7rem, 5.6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.0;
}

.hero__sub {
  max-width: 44ch;
  margin-bottom: 34px;
  color: #d3d6da;
  font-size: clamp(1.04rem, 1.5vw, 1.24rem);
  line-height: 1.6;
}

.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__scroll {
  position: absolute;
  left: var(--gutter);
  bottom: 22px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 0;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero__scroll i { position: relative; display: block; width: 44px; height: 1px; overflow: hidden; background: var(--line-strong); }
.hero__scroll i::after { content: ""; position: absolute; inset: 0; background: #fafafa; transform: translateX(-100%); animation: scroll-cue 2.8s ease-in-out infinite; }

@keyframes scroll-cue { 0%, 18% { transform: translateX(-100%); } 58%, 100% { transform: translateX(100%); } }

/* ============ Live demo (abstract flow-field background) ============ */
.section--demo { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: clip; }

/* the demo heading breaks at the sentence, per line (streamlined) */
.section--demo .section-heading h2 { white-space: pre-line; text-wrap: normal; }

.section-heading--split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  max-width: none;
}

.demo { position: relative; margin-top: clamp(48px, 6vw, 78px); }

.demo__instruction {
  margin-bottom: 16px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.demo__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 760px; }

.biz-card {
  position: relative;
  display: block;
  width: 100%;
  min-height: 154px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17, 17, 17, 0.86);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: inherit;
  font: inherit;
  text-align: left;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.biz-card__select {
  display: block;
  width: 100%;
  min-height: 152px;
  padding: 24px;
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.biz-card__select:focus-visible { outline: 2px solid #fafafa; outline-offset: -3px; }

.biz-card::after {
  content: "↗";
  position: absolute;
  right: 20px;
  top: 19px;
  color: var(--faint);
  font-size: 1rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.biz-card:hover,
.biz-card:focus-within { border-color: rgba(250, 250, 250, 0.38); background: var(--surface-raised); transform: translateY(-2px); }
.biz-card:hover::after,
.biz-card:focus-within::after { color: #fafafa; transform: translate(2px, -2px); }
.biz-card:active { transform: translateY(0); }

.biz-card .badge {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  border: 1px solid rgba(250, 250, 250, 0.26);
  border-radius: 9px;
  background: rgba(250, 250, 250, 0.06);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.biz-card .bn { margin-bottom: 2px; color: var(--text); font-family: var(--font-heading); font-size: 1.02rem; font-weight: 600; }
.biz-card .bt { color: var(--muted); font-size: 0.8rem; }

.hidden { display: none !important; }

.demo__stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(280px, 0.78fr);
  gap: 18px;
  align-items: start;
}

.demo__chat,
.demo__leads {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17, 17, 17, 0.9);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.demo__chat { overflow: hidden; }

.demo__chat-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 11px;
  min-height: 72px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.demo__back {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.demo__back:hover { border-color: var(--line-strong); color: var(--text); }

.demo__avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(250, 250, 250, 0.28);
  border-radius: 50%;
  background: rgba(250, 250, 250, 0.06);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.demo__chat-title { display: flex; flex-direction: column; line-height: 1.25; }
.demo__bizname { color: var(--text); font-family: var(--font-heading); font-size: 0.9rem; font-weight: 600; }
.demo__status { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 0.68rem; }

.chat-panel__dot {
  position: relative;
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: dot-pulse 2.2s ease-in-out infinite;
}

/* Radar ping on every live/status dot — "the light that stays on". */
.chat-panel__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent);
  animation: dot-ping 2.6s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

@keyframes dot-ping {
  0% { opacity: 0.6; transform: scale(1); }
  70%, 100% { opacity: 0; transform: scale(2.6); }
}

@keyframes dot-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }

.demo__privacy-note { max-width: 78ch; margin: 17px auto 0; color: var(--faint); font-size: 0.7rem; line-height: 1.65; text-align: center; }

.demo__privacy-note a,
.footer__legal a {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: rgba(250, 250, 250, 0.4);
  text-underline-offset: 3px;
}

.demo__privacy-note a:hover,
.footer__legal a:hover { color: var(--text); }

.demo__switch { display: flex; flex-wrap: nowrap; gap: 2px; margin-left: auto; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); }

/* Single-business demo: the one card is the launcher; only the business
   switcher is pointless. The back button returns from chat to the card.
   The card centres in the FULL content width (the base .demo__cards grid is
   a left-aligned 760px box — centring inside that left it off-centre against
   the centred privacy note below). */
.demo-single-biz .demo__switch { display: none; }
.demo-single-biz .demo__cards {
  grid-template-columns: minmax(0, 1fr);
  max-width: 520px;
  margin-inline: auto;
}
.demo-single-biz .demo__instruction { text-align: center; }
.demo__pill { min-height: 34px; padding: 7px 13px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; font-size: 0.72rem; font-weight: 600; transition: color 0.2s ease, background 0.2s ease; }
.demo__pill:hover { color: var(--text); }
.demo__pill.is-active { background: rgba(255, 255, 255, 0.22); color: #fff; }
.demo__pill:active,
.demo__back:active,

.demo__thread {
  display: flex;
  flex-direction: column;
  gap: 9px;
  height: 410px;
  overflow-y: auto;
  padding: 22px 17px;
  scrollbar-color: rgba(250, 250, 250, 0.18) transparent;
  scrollbar-width: thin;
  scroll-behavior: smooth;
}

.msg {
  position: relative;
  max-width: 78%;
  padding: 10px 13px;
  border-radius: 12px;
  color: var(--text);
  font-size: 0.84rem;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(9px) scale(0.97);
  animation: bubble-in 0.34s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes bubble-in { to { opacity: 1; transform: translateY(0) scale(1); } }

.msg.you { align-self: flex-end; transform-origin: 88% 100%; border: 1px solid rgba(250, 250, 250, 0.22); border-bottom-right-radius: 3px; background: rgba(250, 250, 250, 0.08); }
.msg.them { align-self: flex-start; transform-origin: 12% 100%; border: 1px solid var(--line); border-bottom-left-radius: 3px; background: var(--surface-raised); }

/* Live typing indicator in the real demo thread (demo.js #typing). */
.demo__thread .typing {
  align-self: flex-start;
  display: flex;
  gap: 4px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-bottom-left-radius: 3px;
  border-radius: 12px;
  background: var(--surface-raised);
  animation: bubble-in 0.3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  opacity: 0;
  transform: translateY(9px);
}
.demo__thread .typing span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--muted);
  animation: typing-pulse 0.9s ease-in-out infinite;
}
.demo__thread .typing span:nth-child(2) { animation-delay: 0.12s; }
.demo__thread .typing span:nth-child(3) { animation-delay: 0.24s; }

.msg a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(250, 250, 250, 0.5);
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.msg a:hover { text-decoration-color: #fafafa; }
.msg .t { display: block; margin-top: 5px; color: var(--muted); font-size: 0.58rem; line-height: 1; text-align: right; }

.flag,
.lead-badge { align-self: center; max-width: 92%; padding: 6px 10px; border-radius: 999px; font-size: 0.68rem; text-align: center; animation: pop-in 0.32s cubic-bezier(0.22, 1, 0.36, 1) both; }
.flag { border: 1px dashed var(--line-strong); color: var(--muted); }
.lead-badge { border: 1px solid rgba(37, 211, 102, 0.35); background: var(--accent-soft); color: var(--accent); }

@keyframes pop-in {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}

.demo__inputrow { display: flex; gap: 9px; padding: 13px; border-top: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); }

.demo__input {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-size: 0.88rem;
}

.demo__input::placeholder { color: var(--faint); }
.demo__input:focus { border-color: rgba(250, 250, 250, 0.55); }
.demo__send { min-width: 88px; }

.demo__leads { min-height: 260px; padding: 20px; transition: border-color 0.25s ease, transform 0.25s ease; }
.demo__leads-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.demo__panel-label { display: block; margin-bottom: 4px; color: var(--faint); font-family: var(--font-mono); font-size: 0.63rem; letter-spacing: 0.2em; text-transform: uppercase; }
.demo__leads-header h3 { margin: 0; font-size: 1rem; }
.demo__leadcount { padding: 5px 9px; border: 1px solid rgba(250, 250, 250, 0.22); border-radius: 999px; background: rgba(250, 250, 250, 0.05); color: var(--muted); font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.05em; white-space: nowrap; }
.lead-empty { color: var(--muted); font-size: 0.8rem; }
.lead-card { margin-bottom: 10px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-raised); animation: rise-in 0.32s cubic-bezier(0.22, 1, 0.36, 1) both; }
.lead-card .row { display: flex; justify-content: space-between; gap: 14px; padding: 3px 0; font-size: 0.76rem; }
.lead-card .k { color: var(--muted); text-transform: capitalize; }
.lead-card .v { color: var(--text); text-align: right; overflow-wrap: anywhere; }
.lead-card .v.missing { color: var(--faint); font-style: italic; }
.lead-card .stamp { margin-top: 8px; color: var(--accent); font-family: var(--font-mono); font-size: 0.61rem; }

.demo__trace { position: absolute; z-index: 5; left: 58%; top: 49%; width: 16%; height: 1px; overflow: hidden; pointer-events: none; }
.demo__trace span { display: block; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: 0; transform: translateX(-100%); }
.demo.is-lead-synced .demo__trace span { animation: trace-across 0.8s ease-out 1; }
.demo.is-lead-synced .demo__leads { border-color: rgba(37, 211, 102, 0.48); transform: translateY(-2px); }
.demo.is-lead-synced .lead-card:first-child { animation: lead-pulse 0.7s ease-out 1; }

@keyframes trace-across { 0% { opacity: 0; transform: translateX(-100%); } 25% { opacity: 1; } 100% { opacity: 0; transform: translateX(100%); } }
@keyframes lead-pulse { 0%, 100% { border-color: var(--line); } 45% { border-color: var(--accent); } }

/* ============ Communication — marble reception, chat resting on the table ============ */
.section--comm {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(88svh, 780px);
  padding: 120px 0;
  overflow: clip;
  border-bottom: 1px solid var(--line);
}

.comm-photo { position: absolute; inset: 0; overflow: clip; }
.comm-photo picture { display: block; width: 100%; height: 100%; }
.comm-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 58%;
  filter: brightness(1.03) saturate(1.03);
  transform: scale(1.05) translate3d(var(--parallax-x), var(--parallax-y), 0);
}

.comm-photo__scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.9) 0%, rgba(5, 5, 5, 0.56) 28%, rgba(5, 5, 5, 0.18) 52%, transparent 72%),
    linear-gradient(to bottom, rgba(5, 5, 5, 0.4), transparent 22%, transparent 70%, var(--bg));
}

.comm__inner {
  position: relative;
  z-index: 2;
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.comm__copy { max-width: 32rem; }
.comm__copy .eyebrow { margin-bottom: 18px; }
.comm__copy h2 { max-width: 15ch; margin-bottom: 16px; }
.comm__line { max-width: 38ch; margin-bottom: 0; color: #cdd0d4; font-size: clamp(0.98rem, 1.3vw, 1.12rem); }

/* the chat, styled as a device/card resting on the reception counter */
.comm__chat { justify-self: end; width: min(100%, 392px); }

.pchat {
  display: flex;
  flex-direction: column;
  height: min(60vh, 500px);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(14, 14, 15, 0.96), rgba(9, 9, 11, 0.97));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 46px 88px -26px rgba(0, 0, 0, 0.82), 0 16px 38px rgba(0, 0, 0, 0.5);
  font-size: 0.84rem;
  line-height: 1.4;
}

.pchat__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 15px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.pchat__av {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(250, 250, 250, 0.28);
  background: rgba(250, 250, 250, 0.07);
  color: var(--text);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
}

.pchat__id { display: flex; flex-direction: column; line-height: 1.2; }
.pchat__id strong { font-family: var(--font-heading); font-size: 0.9rem; }
.pchat__id small { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 0.66rem; }

.pchat__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 15px 14px;
  scrollbar-width: none;
}
.pchat__body::-webkit-scrollbar { display: none; }

.pchat .bubble {
  max-width: 86%;
  padding: 8px 11px;
  border-radius: 12px;
  color: var(--text);
  font-size: 0.8rem;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(5px);
  animation: bubble-in 0.3s ease forwards;
}

.pchat .bubble--customer { align-self: flex-start; border: 1px solid rgba(255, 255, 255, 0.08); border-bottom-left-radius: 3px; background: rgba(255, 255, 255, 0.05); }
.pchat .bubble--ai { align-self: flex-end; border: 1px solid rgba(250, 250, 250, 0.2); border-bottom-right-radius: 3px; background: rgba(250, 250, 250, 0.1); }
.pchat .bubble--system {
  align-self: center;
  max-width: 96%;
  padding: 6px 11px;
  border: 1px solid rgba(37, 211, 102, 0.3);
  border-radius: 99px;
  background: rgba(37, 211, 102, 0.08);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.02em;
  text-align: center;
}

.pchat .typing { align-self: flex-start; display: flex; gap: 4px; padding: 10px 12px; border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; background: rgba(255,255,255,0.05); }
.pchat .typing--ai { align-self: flex-end; border-color: rgba(250,250,250,0.2); background: rgba(250,250,250,0.1); }
.pchat .typing span { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); animation: typing-pulse 0.9s ease-in-out infinite; }
.pchat .typing span:nth-child(2) { animation-delay: 0.12s; }
.pchat .typing span:nth-child(3) { animation-delay: 0.24s; }

@keyframes typing-pulse { 0%, 65%, 100% { opacity: 0.3; transform: scale(0.85); } 30% { opacity: 1; transform: scale(1); } }

.pchat__bar {
  padding: 11px 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--faint);
  font-size: 0.72rem;
}

/* ============ Full-bleed photo sections (workshop / beauty / reliability) ============ */
.section--photo {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(84svh, 720px);
  padding: 120px 0;
  overflow: clip;
  border-bottom: 1px solid var(--line);
}

.photo__media { position: absolute; inset: 0; overflow: clip; }
.photo__media picture { display: block; width: 100%; height: 100%; }

.photo__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06) translate3d(var(--parallax-x), var(--parallax-y), 0);
}

/* Ken Burns: photos drift while their section is on screen (.is-inview via
   IntersectionObserver, so off-screen sections cost nothing). Keyframes start
   at the resting scale so activation never snaps, and they carry the parallax
   vars because an animation would otherwise override that transform. */
@keyframes kenburns {
  from { transform: scale(1.06) translate3d(var(--parallax-x), var(--parallax-y), 0); }
  to   { transform: scale(1.115) translate3d(var(--parallax-x), var(--parallax-y), 0); }
}

.section--photo.is-inview .photo__media img {
  animation: kenburns 16s ease-in-out infinite alternate;
}

.photo--workshop.is-inview .photo__media img { transform-origin: 26% 45%; }
.photo--beauty.is-inview .photo__media img { transform-origin: 74% 50%; }
.photo--reliability.is-inview .photo__media img { transform-origin: 38% 55%; }

.photo--workshop .photo__media img { object-position: 16% center; filter: brightness(1.02) saturate(1.02); }
.photo--beauty .photo__media img { object-position: 82% center; filter: none; }
.photo--reliability .photo__media img { object-position: 24% center; filter: brightness(1.02) saturate(1.03); }

.photo__scrim { position: absolute; inset: 0; pointer-events: none; }
.photo__scrim--right {
  background:
    linear-gradient(90deg, transparent 26%, rgba(5, 5, 5, 0.45) 52%, rgba(5, 5, 5, 0.86) 80%, rgba(5, 5, 5, 0.94) 100%),
    linear-gradient(to bottom, rgba(5, 5, 5, 0.35), transparent 24%, transparent 74%, var(--bg));
}
.photo__scrim--left {
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.92) 0%, rgba(5, 5, 5, 0.5) 40%, transparent 68%),
    linear-gradient(to bottom, rgba(5, 5, 5, 0.35), transparent 24%, transparent 74%, var(--bg));
}

.photo__inner {
  position: relative;
  z-index: 2;
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
}

.photo__inner--right { justify-content: flex-end; }
.photo__inner--left { justify-content: flex-start; }

.photo__copy { max-width: 38rem; }
.photo__copy .eyebrow { margin-bottom: 20px; }
.photo__copy h2 { max-width: 16ch; margin-bottom: 16px; font-size: clamp(2.1rem, 3.9vw, 3.35rem); }
.photo__copy p { max-width: 42ch; margin-bottom: 0; color: #cdd0d4; font-size: clamp(1rem, 1.4vw, 1.16rem); }

/* ============ Capabilities ============ */
.section--features { border-bottom: 1px solid var(--line); overflow: clip; }

.cap-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 40px);
  margin-top: clamp(46px, 6vw, 78px);
}

.cap { position: relative; padding-top: 24px; border-top: 1px solid var(--line-strong); }
.cap__idx { display: block; color: var(--faint); font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.16em; }
.cap h3 { margin: 18px 0 10px; font-size: clamp(1.16rem, 1.7vw, 1.34rem); }
.cap p { margin-bottom: 0; font-size: 0.92rem; }

/* ============ Pricing ============ */
.section--pricing { overflow: clip; border-bottom: 1px solid var(--line); background: #050505; }

.pricing {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(50px, 7vw, 84px);
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(17, 17, 17, 0.84);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  transition: transform 0.22s ease, border-color 0.22s ease, opacity 0.6s ease;
}

.price-card:hover { border-color: rgba(250, 250, 250, 0.34); transform: translateY(-2px); }
.price-card--recommended { border-color: rgba(250, 250, 250, 0.42); background: rgba(23, 24, 26, 0.9); }

.price-card__badge {
  position: absolute;
  right: 24px;
  top: 22px;
  padding: 5px 10px;
  border: 0;
  border-radius: 999px;
  background: #fafafa;
  color: #050505;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.price-card > h3 { margin-bottom: 10px; font-size: 1.55rem; font-weight: 700; }
.price-card__fit { margin: 0 0 20px; font-size: 0.95rem; }
.price-card__list { margin: 0 0 28px; }
.price-card__list li { position: relative; padding: 7px 0 7px 22px; color: var(--muted); font-size: 0.92rem; }
.price-card__list li::before { content: "•"; position: absolute; left: 4px; color: var(--faint); }
.price-card__pricing { margin-top: auto; padding-top: 20px; }
.price-card__pricelabel { display: block; margin-bottom: 6px; color: var(--faint); font-family: var(--font-mono); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.price-card__price { margin: 0; color: var(--text); font-family: var(--font-heading); font-size: clamp(2.5rem, 4vw, 3.3rem); font-weight: 700; letter-spacing: -0.02em; line-height: 0.95; white-space: nowrap; }
.price-card__price span { color: var(--muted); font-family: var(--font-body); font-size: 0.82rem; font-weight: 400; letter-spacing: 0; }
.price-card .btn { margin-top: 22px; }

/* ============ FAQ ============ */
.section--faq { border-bottom: 1px solid var(--line); overflow: clip; }

.faq-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1fr);
  gap: clamp(56px, 9vw, 130px);
  align-items: start;
}

.faq-layout__heading { position: sticky; top: 120px; }
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 25px 0;
  color: var(--text);
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 500;
  list-style: none;
}

.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; flex: 0 0 auto; color: var(--muted); font-family: var(--font-mono); font-size: 1.2rem; font-weight: 400; transition: transform 0.2s ease, color 0.2s ease; }
.faq__item[open] summary::after { color: #fafafa; transform: rotate(45deg); }
.faq__item p { max-width: 64ch; margin: -6px 0 25px; font-size: 0.92rem; }

/* ============ Closing ============ */
.closing {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(74svh, 660px);
  padding: 110px 0;
  overflow: clip;
  background: var(--bg);
}

.closing__inner { position: relative; z-index: 2; text-align: center; }
.closing .eyebrow { text-align: center; }
.closing h2 { max-width: 13ch; margin: 0 auto 30px; }
.closing__ctas { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

/* ============ Footer ============ */
.footer { border-top: 1px solid var(--line); padding: 46px 0; background: #040404; }
.footer__inner { display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center; }
.footer__tagline { max-width: 52ch; margin: 0; font-size: 0.8rem; text-align: center; }
.footer__contact,
.footer__legal,
.footer__copy { margin: 0; color: var(--faint); font-size: 0.72rem; }
.footer__contact a { color: var(--text); text-decoration: underline; text-decoration-color: rgba(250, 250, 250, 0.4); text-underline-offset: 3px; }
.footer__legal { grid-column: 2; justify-self: center; }
.footer__copy { grid-column: 3; }

/* ============ Privacy page ============ */
.legal-page { min-height: 100vh; }
.legal-nav { border-bottom: 1px solid var(--line); background: rgba(5, 5, 5, 0.96); }
.legal-nav__inner { display: flex; align-items: center; justify-content: space-between; width: min(100% - (var(--gutter) * 2), var(--max-width)); min-height: 76px; margin: 0 auto; }
.legal-nav__back { color: var(--muted); font-size: 0.8rem; }
.legal-nav__back:hover { color: var(--text); }
.legal-main { width: min(100% - (var(--gutter) * 2), 850px); margin: 0 auto; padding: clamp(92px, 12vw, 150px) 0; }
.legal-card { position: relative; overflow: hidden; padding: clamp(30px, 6vw, 72px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.legal-card h1 { max-width: 12ch; margin: 12px 0 20px; font-size: clamp(2.4rem, 6vw, 4.4rem); }
.legal-card__updated { margin: 0 0 46px; color: var(--faint); font-size: 0.74rem; }
.legal-card section + section { margin-top: 34px; }
.legal-card h2 { margin: 0 0 10px; font-size: clamp(1.15rem, 2.4vw, 1.5rem); }
.legal-card p,
.legal-card li { color: var(--muted); font-size: 0.94rem; line-height: 1.75; }
.legal-card ul { margin: 12px 0 0; padding-left: 20px; list-style: disc; }
.legal-card a { color: var(--text); text-decoration: underline; text-decoration-color: rgba(250, 250, 250, 0.4); text-underline-offset: 3px; }

/* ============ Responsive ============ */
@media (max-width: 1120px) {
  .nav__links { gap: 18px; }
  .nav__links a { font-size: 0.8rem; }
}

@media (max-width: 980px) {
  :root { --gutter: 40px; --section-gap: 108px; }

  .nav__links {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 16px var(--gutter) 24px;
    border-bottom: 1px solid var(--line);
    background: rgba(6, 6, 6, 0.98);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }

  .nav__links.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav__links a { width: 100%; padding: 12px 0; font-size: 0.95rem; }
  .nav__toggle { display: block; }

  .hero { min-height: auto; padding-top: 140px; }
  .hero__img { object-position: 62% 58%; }

  .section-heading--split { grid-template-columns: 1fr; gap: 20px; align-items: start; }

  .demo__stage { grid-template-columns: 1fr; }
  .demo__trace { display: none; }
  .demo__leads { min-height: 0; }

  .cap-list { grid-template-columns: 1fr 1fr; gap: 30px 34px; }

  .section--photo { min-height: auto; padding: 100px 0; }
  .photo__inner { justify-content: flex-start; }
  .photo__scrim--right { background: linear-gradient(to bottom, rgba(5,5,5,0.3), rgba(5,5,5,0.55) 42%, rgba(5,5,5,0.9)), linear-gradient(90deg, rgba(5,5,5,0.55), transparent 82%); }
  .photo__scrim--left { background: linear-gradient(to bottom, rgba(5,5,5,0.3), rgba(5,5,5,0.55) 42%, rgba(5,5,5,0.9)), linear-gradient(90deg, rgba(5,5,5,0.7), transparent 82%); }

  .faq-layout { grid-template-columns: 1fr; gap: 44px; }
  .faq-layout__heading { position: static; }

  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__tagline { grid-column: 1 / -1; grid-row: 2; text-align: left; }
  .footer__contact { justify-self: end; }
  .footer__legal { grid-column: 1; grid-row: 3; justify-self: start; }
  .footer__copy { grid-column: 2; grid-row: 3; justify-self: end; }
}

@media (max-width: 760px) {
  /* Phones scroll fast: reveals travel less and finish quicker, or the page
     feels like it lags behind the thumb. */
  .reveal { transform: translate3d(0, 10px, 0); transition-duration: 0.38s, 0.38s; }

  /* The mobile hero photo (phone with missed messages) carries its own warm
     screen light — the amber blob would only muddy it. */
  .hero__glow { display: none; }

  /* Portrait hero photo: keep the phone centred and lift the crop so the
     screen sits in the upper half, clear of the headline. (The 62%/58%
     values further up were tuned for the landscape district photo.) */
  .hero__img { object-position: 50% 34%; }

  /* stack the communication section: copy above, chat card below, over the marble */
  .section--comm { min-height: auto; padding: clamp(72px, 16vw, 110px) 0 clamp(44px, 12vw, 80px); }
  .comm__inner { grid-template-columns: 1fr; gap: 26px; }
  .comm__copy { max-width: none; }
  .comm__chat { justify-self: stretch; width: 100%; }
  .pchat { height: min(66vh, 470px); }
  .comm-photo__scrim {
    background: linear-gradient(to bottom, rgba(5, 5, 5, 0.6), rgba(5, 5, 5, 0.3) 32%, transparent 58%, var(--bg));
  }
}

@media (max-width: 720px) {
  :root { --gutter: 24px; --section-gap: 88px; }

  [id] { scroll-margin-top: 78px; }
  .nav__inner { height: 70px; }
  .nav__links { top: 70px; }
  .nav__actions { gap: 8px; }
  .nav__actions .btn--small { display: none; }

  /* Starlink-style mobile hero (owner reference 2026-07-26): the photo owns
     the top of the screen, the copy sits calmly at the bottom, smaller and
     lighter, with stacked edge-less buttons. Desktop hero is untouched. */
  .hero { align-items: flex-end; padding: 108px 0 46px; min-height: 100svh; }
  .hero .eyebrow { display: none; }
  .hero h1 {
    max-width: none;
    margin: 0 0 10px;
    font-size: 1.92rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.14;
  }
  html[lang="hu"] .hero h1,
  html[lang="ro"] .hero h1 { font-size: 1.78rem; }
  .hero__sub {
    max-width: 34ch;
    margin-bottom: 26px;
    color: #c6cacd;
    font-size: 0.96rem;
    line-height: 1.55;
  }
  .hero__scrim {
    background:
      linear-gradient(90deg, rgba(5,5,5,0.55) 0%, rgba(5,5,5,0.35) 46%, rgba(5,5,5,0.25) 100%),
      linear-gradient(to bottom, rgba(5,5,5,0.42), transparent 30%, rgba(5,5,5,0.55) 62%, var(--bg));
  }
  .hero__ctas { flex-direction: column; gap: 8px; }
  .hero__ctas .btn {
    width: 100%;
    min-height: 38px;
    padding: 6px 14px;
    border: 0;
    border-radius: 4px;
    font-size: 0.9rem;
  }
  .hero__ctas .btn--ghost { background: rgba(255, 255, 255, 0.09); }
  .hero__ctas .btn--ghost:hover { background: rgba(255, 255, 255, 0.13); }
  .hero__scroll { display: none; }

  .demo__cards { grid-template-columns: 1fr; }
  /* Phone: the copy above is left-aligned, so the launcher label follows it. */
  .demo-single-biz .demo__instruction { text-align: left; }

  body.demo-chat-open #stage.demo__stage { position: static; display: flex; flex-direction: column; gap: 0; padding: 0; background: transparent; }
  .demo__cards.is-chat-open { display: block; max-width: none; }
  .demo__cards.is-chat-open .biz-card { display: none; }
  .demo__cards.is-chat-open .biz-card.is-expanded { display: block; min-height: 0; padding: 0; overflow: hidden; border-color: rgba(37, 211, 102, 0.3); border-radius: 18px; background: var(--surface); cursor: default; transform: none; }
  .demo__cards.is-chat-open .biz-card.is-expanded::after,
  .demo__cards.is-chat-open .biz-card.is-expanded > .biz-card__select { display: none; }
  body.demo-chat-open .demo__chat { display: flex; flex-direction: column; min-height: min(72dvh, 620px); border: 0; border-radius: 18px; background: transparent; }
  body.demo-chat-open .demo__chat-header { display: grid; grid-template-columns: 44px 38px 1fr; gap: 9px; padding: 13px; }
  body.demo-chat-open .demo__switch { grid-column: 1 / -1; margin-left: 0; padding: 2px 0; overflow-x: auto; flex-wrap: nowrap; }
  body.demo-chat-open .demo__pill { flex: 0 0 auto; min-height: 40px; }
  body.demo-chat-open .demo__thread { flex: 1; height: min(47dvh, 410px); min-height: 300px; }
  /* NOT sticky: iOS scroll-on-focus targets a sticky input's LAYOUT position
     and over-scrolls the page into the void below the chat. Normal flow +
     the visualViewport correction in script.js keeps the composer placed. */
  body.demo-chat-open .demo__inputrow { background: var(--surface-raised); }
  .demo__input { font-size: 16px; }
  body.demo-chat-open:not(.demo-has-leads) .demo__leads { display: none; }
  body.demo-chat-open .demo__leads { margin-top: 12px; }

  .cap-list { grid-template-columns: 1fr; gap: 4px; }
  .cap { padding: 22px 0; border-top: 1px solid var(--line); }

  .pricing { grid-template-columns: 1fr; }
  .price-card { min-height: 0; }
}

@media (max-width: 540px) {
  .brand__logo { height: 23px; }

  .closing__ctas { flex-direction: column; }
  .closing__ctas .btn { width: 100%; }

  .footer__inner { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
  .footer__tagline, .footer__contact, .footer__legal, .footer__copy { text-align: left; justify-self: auto; }
}

@media (max-width: 360px) {
  .nav__inner { gap: 8px; }
  .nav__actions { margin-left: auto; gap: 6px; }
}

/* ============ Contact ============ */
.section--contact { border-top: 1px solid var(--line); }

.contact-form { max-width: 680px; margin-top: 34px; }
.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.contact-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.contact-field span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.contact-field input,
.contact-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.contact-field textarea { resize: vertical; min-height: 130px; }
.contact-field input:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: rgba(250, 250, 250, 0.55);
  background: rgba(255, 255, 255, 0.05);
}
.contact-field input::placeholder,
.contact-field textarea::placeholder { color: var(--faint); }

.contact-form__honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.contact-form__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.contact-form__note { margin: 0; color: var(--faint); font-size: 0.82rem; }
.contact-form__note a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.contact-form__note a:hover { color: var(--text); }
.contact-form__send { min-width: 170px; }

.contact-form__status { min-height: 1.4em; margin: 14px 0 0; font-size: 0.86rem; color: var(--muted); }
.contact-form__status.is-ok { color: var(--accent); }
.contact-form__status.is-error { color: #e08585; }

@media (max-width: 620px) {
  .contact-form__row { grid-template-columns: 1fr; gap: 0; }
  .contact-form__foot { flex-direction: column-reverse; align-items: stretch; }
  .contact-form__send { width: 100%; }
  .contact-form__note { text-align: center; }
}

/* ============ Sticky mobile CTA (appears after the hero, hides at the demo) ============ */
.mobile-cta {
  position: fixed;
  left: 50%;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 18px;
  border-radius: 4px;
  background: #fafafa;
  color: #050505;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
  opacity: 0;
  /* left:50% + translateX(-50%) centers the auto-width pill; every transform
     state must keep the -50% or the button jumps right of centre. */
  transform: translate(-50%, 140%);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}
.mobile-cta:active { transform: translate(-50%, 0) scale(0.97); }
.mobile-cta.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 760px) {
  .mobile-cta { display: flex; }
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  html:not(.motion-force) { scroll-behavior: auto; }

  html:not(.motion-force) *,
  html:not(.motion-force) *::before,
  html:not(.motion-force) *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  html:not(.motion-force) .reveal { opacity: 1; transform: none; }

  html:not(.motion-force) [data-parallax] {
    --parallax-x: 0px !important;
    --parallax-y: 0px !important;
    will-change: auto;
  }

  html:not(.motion-force) .hero__img { animation: none; transform: scale(1.08); }
  html:not(.motion-force) .field-bg img { animation: none; }
  html:not(.motion-force) .section--photo .photo__media img { animation: none; }
  html:not(.motion-force) .hero__glow { animation: none; opacity: 0.4; }
  html:not(.motion-force) .bubble,
  html:not(.motion-force) .msg { opacity: 1; transform: none; }
  html:not(.motion-force) .btn:hover,
  html:not(.motion-force) .btn:active,
  html:not(.motion-force) .biz-card:hover,
  html:not(.motion-force) .biz-card:active,
  html:not(.motion-force) .price-card:hover { transform: none; }
}
