/* ============================================
   ANONIM MR BEAN — v3
   Editorial monochrome, light + dark, themed.
   ============================================ */

:root {
  --bg: #f4f2ee;
  --fg: #0a0a0a;
  --muted: #7a7a78;
  --line: #0a0a0a;
  --line-soft: rgba(10,10,10,0.12);
  --card: #ffffff;
  --inv-bg: #0a0a0a;
  --inv-fg: #f4f2ee;
  --inv-line-soft: rgba(244,242,238,0.14);

  --f-display: "Instrument Serif", "Times New Roman", serif;
  --f-sans: "Inter", -apple-system, system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);

  --pad-x: clamp(20px, 4vw, 64px);
  --max-w: 1480px;

  /* warm feature panel for the contact CTA (light theme) */
  --feature-bg: #2a2521;
  --feature-fg: #f4f0e8;
  --feature-soft: rgba(244,240,232,0.5);
  --feature-line: rgba(244,240,232,0.16);

  /* coffee-brown accent */
  --accent: #6b4326;
  --accent-strong: #4a2e18;
  --accent-2: #7a5230;
  --accent-soft: rgba(107,67,38,0.07);

  /* Warm chestnut for the two-tone titles ("say.", "In production."). */
  --title-accent: #704733;
  --title-accent-2: #8a5b42;

  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0d0d0d;
  --fg: #ededeb;
  --muted: #8a8a88;
  --line: #ededeb;
  --line-soft: rgba(237,237,235,0.14);
  --card: #181818;
  /* In dark mode the "inverted" sections stay dark — just slightly raised */
  --inv-bg: #050505;
  --inv-fg: #ededeb;
  --inv-line-soft: rgba(237,237,235,0.12);
  /* warm feature panel for the contact CTA (dark theme) */
  --feature-bg: #1c1a17;
  --feature-fg: #f0ece4;
  --feature-soft: rgba(240,236,228,0.5);
  --feature-line: rgba(240,236,228,0.16);
  --accent: #c79a6a;
  --accent-strong: #ddb98c;
  --accent-2: #b78a5a;
  --accent-soft: rgba(199,154,106,0.12);
  /* Soft café-au-lait — desaturated (less red than #9a6248) and a touch
     lighter, so it reads as a gentle brown on the near-black bg, not red. */
  --title-accent: #ad8c6a;
  --title-accent-2: #bb9b78;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { background: var(--bg); color: var(--fg); }
body {
  font-family: var(--f-sans);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -0.005em;
  overflow-x: hidden;
  cursor: none;
  transition: background 0.5s var(--ease-out), color 0.5s var(--ease-out);
}

/* Force-hide native cursor everywhere on fine pointers — fixes the
   hand/pointer flashing over <a> and form controls. */
a, a:hover, a:focus, button, input, textarea, label, summary,
.review, .laptop-tab, .phone-arrow, .phone-dot, .chip, [data-magnetic] {
  cursor: none;
}
@media (pointer: coarse) {
  body, a, button, input, textarea, label, .chip, .review,
  .laptop-tab, .phone-arrow, .phone-dot, [data-magnetic] { cursor: auto; }
  input, textarea { cursor: text; }
  a, button, .chip, .review, .laptop-tab, .phone-arrow, .phone-dot, [data-magnetic] { cursor: pointer; }
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; }

::selection { background: var(--fg); color: var(--bg); }

/* ============================================
   Film grain (static — no per-frame repaint)
============================================ */
/* Plain low-opacity overlay (NO mix-blend-mode). A fixed full-screen blend
   layer forces the compositor to re-blend the whole viewport every scroll
   frame — dropping the blend keeps it a cheap static layer. */
.grain {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9998;
  opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.6 0'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>");
  background-size: 160px 160px;
}
[data-theme="dark"] .grain { opacity: 0.07; }

/* ============================================
   Question-mark cursor
============================================ */
.q-cursor {
  position: fixed; top: 0; left: 0;
  width: 52px; height: 52px;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  color: #ffffff;
  transition: width 0.4s var(--ease-out), height 0.4s var(--ease-out), opacity 0.3s;
}
.q-cursor svg { width: 100%; height: 100%; display: block; overflow: visible; }
.q-cursor .glyph {
  font-family: var(--f-display);
  font-size: 52px;
  font-weight: 400;
  font-style: italic;
  fill: currentColor;
  dominant-baseline: central;
  text-anchor: middle;
}
.q-cursor.hover { width: 88px; height: 88px; }
.q-cursor.tiny  { width: 22px; height: 22px; opacity: 0.85; }
@media (pointer: coarse) { .q-cursor { display: none; } }

/* ============================================
   Preloader — ? fills + slow ring
============================================ */
.preloader {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--bg);
  display: grid; place-items: center;
  transition: opacity 0.9s var(--ease-out), visibility 0.9s var(--ease-out);
}
.preloader.hide { opacity: 0; visibility: hidden; }
.preloader.hide .preload-q { transform: scale(1.14); opacity: 0; }

.preload-q {
  position: relative;
  width: clamp(140px, 22vw, 240px);
  aspect-ratio: 1;
  display: grid; place-items: center;
  color: var(--fg);
  transition: transform 0.9s var(--ease-out), opacity 0.9s var(--ease-out);
}
.preload-q svg { width: 100%; height: 100%; overflow: visible; }

.preload-q .q-outline,
.preload-q .q-fill-text {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  font-size: 240px;
  text-anchor: middle;
}
.preload-q .q-outline {
  fill: none;
  stroke: currentColor;
  stroke-width: 0.5;
  opacity: 0.22;
}
.preload-q .q-fill-text {
  fill: currentColor;
  transform: translateY(300px);
  transition: transform 1.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.preloader.filling .q-fill-text { transform: translateY(0); }

/* ============================================
   Header
============================================ */
.header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px var(--pad-x);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  color: var(--fg);
  background: transparent;
  transition: transform 0.5s var(--ease-out), background 0.35s ease, backdrop-filter 0.35s ease, padding 0.35s ease;
}
.header.scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  padding-top: 12px; padding-bottom: 12px;
}
.header.hidden { transform: translateY(-110%); }

.brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg);
}
.brand-mark {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--f-display);
  font-weight: 400; font-style: italic; font-size: 18px;
  line-height: 1;
  position: relative; top: 1px;
}
.nav {
  display: flex; gap: 28px;
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg);
}
.nav a { position: relative; padding: 8px 0; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 4px;
  height: 1px; background: currentColor;
  transition: right 0.45s var(--ease-out);
}
.nav a:hover::after { right: 0; }

.nav-meta { display: flex; justify-content: flex-end; gap: 8px; align-items: center; }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--fg);
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase;
  background: transparent;
  color: var(--fg);
  transition: background 0.25s, color 0.25s;
}
.chip:hover { background: var(--fg); color: var(--bg); }
.chip .icon { width: 14px; height: 14px; display: inline-grid; place-items: center; }
.chip .icon svg { width: 100%; height: 100%; }

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

/* ============================================
   Section base
============================================ */
section { position: relative; padding: clamp(80px, 12vh, 160px) var(--pad-x); }
.section-inner { max-width: var(--max-w); margin: 0 auto; }

.eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex; align-items: center; gap: 12px;
  margin-bottom: 36px;
}
.eyebrow::before {
  content: ""; width: 28px; height: 1px; background: currentColor;
}
.section-title {
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(56px, 9vw, 140px);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: -0.025em;
}
.section-title .t2 {
  /* Solid, confident cognac — a single deliberate tone reads far better next
     to the near-black first word than the old 3-stop washed gradient. */
  color: var(--title-accent);
}
.section-title .t2-light { color: var(--title-accent-2); }

/* ============================================
   HERO
============================================ */
.hero {
  min-height: 100svh;
  padding-top: clamp(96px, 14vh, 140px);
  padding-bottom: clamp(48px, 8vh, 96px);
  display: grid;
  grid-template-rows: 1fr auto;
  gap: clamp(32px, 6vh, 80px);
}

.hero-top {
  display: flex;
  align-items: start;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-top .left { display: flex; flex-direction: column; gap: 4px; }
.hero-top .left b { color: var(--fg); font-weight: 500; letter-spacing: 0.18em; }

.hero-stage {
  display: grid; place-items: center;
  text-align: center;
  position: relative;
}
.hero-name {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  /* Low min so the name never overflows narrow phones; vw drives the size
     above ~300px wide, so desktop is unchanged. */
  font-size: clamp(56px, 19vw, 340px);
  line-height: 0.86;
  letter-spacing: -0.04em;
  position: relative;
}
.hero-name .line { display: block; }
.hero-name .line + .line { margin-top: -0.04em; }
.hero-name .word-mask { display: inline-block; overflow: hidden; vertical-align: bottom; }
.hero-name .word-mask > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1.1s var(--ease-out);
}
.hero-name .word-mask.in > span { transform: translateY(0); }

.hero-tag {
  margin-top: 28px;
  font-family: var(--f-mono);
  font-size: 12px; letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg);
  display: inline-flex; align-items: center; gap: 14px;
}
.hero-tag::before, .hero-tag::after {
  content: ""; width: 36px; height: 1px; background: var(--line);
  opacity: 0.4;
}

.hero-bottom {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: end;
}
.hero-lede {
  max-width: 520px;
  font-size: clamp(15px, 1.1vw, 18px);
  line-height: 1.55;
  color: var(--fg);
}
.hero-ctas {
  display: flex; gap: 10px; flex-wrap: wrap;
  justify-content: flex-end;
}

@media (max-width: 720px) {
  .hero-bottom {
    grid-template-columns: 1fr;
    gap: 24px;
    justify-items: center;
    text-align: center;
  }
  .hero-lede { text-align: center; }
  /* Full-width stacked buttons read far cleaner on a phone than two
     half-width pills wrapping awkwardly. */
  .hero-ctas {
    width: 100%;
    max-width: 360px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .hero-ctas .btn { justify-content: center; }
}

/* ============================================
   Buttons
============================================ */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 24px;
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid var(--fg);
  background: var(--fg); color: var(--bg);
  overflow: hidden;
  transition:
    transform 0.4s var(--ease-out),
    background 0.45s var(--ease-out),
    border-color 0.45s var(--ease-out),
    color 0.45s var(--ease-out);
  will-change: transform;
}
.btn .arrow { display: inline-block; transition: transform 0.35s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }
.tg-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px;
  transition: transform 0.35s var(--ease-out);
}
.tg-ico svg { width: 100%; height: 100%; display: block; }
.btn:hover .tg-ico { transform: translateX(3px) rotate(-8deg); }
.contact-tg-cta .tg-ico { width: 18px; height: 18px; }
.contact-tg-cta:hover .tg-ico { transform: scale(1.08); }
/* Ghost button ("До робіт"): a clear outline by default (visible in both
   themes), with a smooth, animated accent-tinted hover that's deliberately
   distinct from the solid Telegram button — no instant light fill. */
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line-soft); }
.btn-ghost:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.btn::before {
  content: ""; position: absolute; inset: 0;
  background: var(--bg);
  transform: translateY(101%);
  transition: transform 0.5s var(--ease-out);
  z-index: -1;
}
.btn:not(.btn-ghost):hover { color: var(--fg); }
.btn:not(.btn-ghost):hover::before { transform: translateY(0); }

/* ============================================
   Marquee — true seamless
============================================ */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 18px 0;
  white-space: nowrap;
  --marquee-duration: 50s;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll var(--marquee-duration) linear infinite;
  will-change: transform;
}
.marquee-set {
  display: flex; align-items: center; gap: 56px;
  padding-right: 56px;
  list-style: none;
  font-family: var(--f-mono);
  font-size: 13px; letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg);
}
.marquee-set li { display: inline-flex; align-items: center; gap: 56px; }
.marquee-set li::after {
  content: "✦"; color: var(--muted); font-size: 13px;
}
.marquee-set li:last-child::after { content: ""; }
@keyframes marquee-scroll {
  from { transform: translate3d(0,0,0); }
  to   { transform: translate3d(-50%,0,0); }
}

/* ============================================
   ABOUT
============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
  margin-top: 16px;
}
.about-headline {
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(40px, 5.6vw, 96px);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.025em;
}
.about-lede {
  margin-top: 32px;
  max-width: 540px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--fg);
}
.about-lede + .about-lede { margin-top: 18px; color: var(--muted); }

.about-side { display: grid; gap: 36px; }
.about-block { border-top: 1px solid var(--line); padding-top: 18px; }
.about-block-label {
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.about-block ul { list-style: none; display: grid; gap: 0; }
.about-block li {
  font-size: 15px;
  display: flex; justify-content: space-between; gap: 16px;
  border-bottom: 1px dashed var(--line-soft);
  padding: 10px 0;
}
.about-block li:last-child { border-bottom: 0; }
.about-block li span:last-child {
  font-family: var(--f-mono);
  color: var(--muted); font-size: 12px;
  white-space: nowrap;
}
.stat-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.stat { border-top: 1px solid var(--line); padding-top: 12px; }
.stat-num {
  font-family: var(--f-display); font-style: italic;
  font-size: clamp(40px, 4.4vw, 72px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat-lbl {
  font-family: var(--f-mono);
  font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 10px;
}

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

/* ============================================
   PHONE — Telegram bot showcase
============================================ */
.phone-section { background: var(--bg); }
.phone-stage {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 56px;
  align-items: center;
}
.phone-side {
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.7;
}
.phone-side.left { text-align: right; }
.phone-side.right .side-title {
  display: block;
  font-family: var(--f-display); font-style: italic;
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 400;
  color: var(--fg);
  letter-spacing: -0.015em;
  text-transform: none;
  margin-top: 8px;
  line-height: 1.05;
}

.phone-wrap {
  position: relative;
  display: grid; place-items: center;
  gap: 20px;
}

.phone {
  position: relative;
  /* Responsive: full 320px on desktop, shrinks to fit narrow phones while
     keeping the exact device proportions (so the screenshot never clips). */
  width: 320px;
  max-width: calc(100vw - 44px);
  aspect-ratio: 320 / 660;
  height: auto;
  background: #0a0a0a;
  border-radius: 50px;
  padding: 11px;
  box-shadow:
    inset 0 0 0 1.5px #2a2a2a,
    0 30px 60px rgba(0,0,0,0.22),
    0 8px 18px rgba(0,0,0,0.1);
}
[data-theme="dark"] .phone {
  box-shadow:
    inset 0 0 0 1.5px #3a3a3a,
    0 30px 60px rgba(0,0,0,0.55),
    0 0 0 1px rgba(255,255,255,0.04);
}
.phone-screen {
  position: relative;
  width: 100%; height: 100%;
  background: #17212b;
  border-radius: 40px;
  overflow: hidden;
}
/* iPhone-17-style Dynamic Island — a smaller pill sitting higher up, with a
   subtle camera lens on the right like the real device. */
.phone-notch {
  position: absolute; top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 82px; height: 24px;
  background: #000;
  border-radius: 14px;
  z-index: 8;
  display: flex; align-items: center; justify-content: flex-end;
  padding-right: 8px;
}
.phone-notch::after {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #29344e 0%, #060810 72%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.10);
}
/* Persistent iOS-style status bar — chips sit high, beside the island */
.phone-statusbar {
  position: absolute; top: 0; left: 0; right: 0;
  height: 40px; z-index: 7;
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 22px 0;
  color: #fff;
  font-family: var(--f-sans);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.02em;
  pointer-events: none;
  text-shadow: 0 1px 3px rgba(0,0,0,0.45);
}
.phone-statusbar::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.28), rgba(0,0,0,0));
  z-index: -1;
}
.sb-conn { display: flex; align-items: center; gap: 6px; }
.sb-i { height: 11px; width: auto; display: block; }
.sb-batt {
  width: 23px; height: 12px;
  border: 1px solid rgba(255,255,255,0.85);
  border-radius: 3px;
  padding: 1.5px;
  position: relative;
  box-sizing: border-box;
}
.sb-batt::after {
  content: ""; position: absolute;
  right: -3px; top: 50%; transform: translateY(-50%);
  width: 1.6px; height: 5px;
  background: rgba(255,255,255,0.85);
  border-radius: 0 1px 1px 0;
}
.sb-batt i { display: block; height: 100%; width: 72%; background: #fff; border-radius: 1px; }

.phone-slides {
  position: absolute; inset: 0;
  display: flex;
  transition: transform 0.55s var(--ease-inout);
  will-change: transform;
}
.phone-slide {
  flex: 0 0 100%; height: 100%;
  position: relative;
  background: #17212b;
  overflow: hidden;
}

.phone-slide image-slot {
  display: block;
  width: 100%; height: 100%;
}
/* Admin-uploaded case-study photo filling the phone screen */
.phone-photo {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

/* Screen counter inside phone (only when bot has >1 shot) */
.phone-screen-pill {
  position: absolute; top: 52px; right: 12px;
  z-index: 6;
  font-family: var(--f-mono);
  font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(8px);
  padding: 5px 9px;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0; transition: opacity 0.3s;
}
.phone-wrap.multi .phone-screen-pill { opacity: 1; }

/* Tap zones for in-phone screen navigation */
.phone-tap {
  position: absolute; top: 0; bottom: 0;
  width: 30%; z-index: 4;
  background: transparent;
  border: 0;
}
.phone-tap.left { left: 0; }
.phone-tap.right { right: 0; }

/* The fallback chat mock visible until a screenshot is dropped */
.bot-mock {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  color: #fff;
  font-family: var(--f-sans);
  pointer-events: none;
}
.bot-head {
  padding: 48px 14px 10px;
  background: #232e3c;
  display: flex; align-items: center; gap: 10px;
}
.bot-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5288c1, #2a4d70);
  display: grid; place-items: center;
  font-family: var(--f-display);
  font-style: italic; font-weight: 400;
  font-size: 16px;
}
.bot-info { flex: 1; min-width: 0; }
.bot-name {
  font-size: 13px; font-weight: 600;
  display: flex; align-items: center; gap: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bot-verified {
  width: 13px; height: 13px;
  background: #4ea3e0; border-radius: 50%;
  display: inline-grid; place-items: center;
  font-size: 8px; color: #fff;
  flex-shrink: 0;
}
.bot-status {
  font-size: 11px; color: rgba(255,255,255,0.55);
  margin-top: 1px;
}
.bot-body {
  flex: 1;
  padding: 12px 10px;
  display: flex; flex-direction: column;
  gap: 6px;
  overflow: hidden;
  background: #0e1621;
}
.bot-date {
  align-self: center;
  font-size: 10px;
  background: rgba(0,0,0,0.35);
  color: rgba(255,255,255,0.7);
  padding: 3px 10px; border-radius: 10px;
  margin: 4px 0 8px;
}
.bot-msg {
  max-width: 82%;
  padding: 7px 10px 6px;
  border-radius: 14px;
  font-size: 12px;
  line-height: 1.35;
}
.bot-msg.in {
  background: #182533;
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}
.bot-msg.out {
  background: #2b5278;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}
.bot-msg .time {
  font-size: 9px;
  color: rgba(255,255,255,0.45);
  margin-left: 6px;
}
.bot-keyboard {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  padding: 4px 8px 6px;
}
.bot-kb {
  background: rgba(78, 163, 224, 0.15);
  color: #6ab4e8;
  font-size: 11px;
  padding: 8px;
  border-radius: 8px;
  text-align: center;
}
.bot-input {
  padding: 8px 12px 18px;
  background: #17212b;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: center; gap: 8px;
}
.bot-input-field {
  flex: 1; height: 30px;
  background: #242f3d; border-radius: 16px;
  display: flex; align-items: center;
  padding: 0 12px;
  font-size: 11px; color: rgba(255,255,255,0.4);
}
.bot-input-send {
  width: 30px; height: 30px;
  border-radius: 50%; background: #4ea3e0;
  display: grid; place-items: center;
  color: #fff;
}

/* Drop-zone hint pill */
.phone-hint {
  position: absolute; left: 50%; bottom: 14px;
  transform: translateX(-50%);
  font-family: var(--f-mono);
  font-size: 9px; letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.62);
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  padding: 6px 10px; border-radius: 999px;
  pointer-events: none;
  opacity: 0; transition: opacity 0.3s;
  z-index: 6;
  white-space: nowrap;
}
.phone:hover .phone-hint { opacity: 1; }

/* When an image-slot in a slide is filled, hide the fallback mock */
.phone-slide:has(image-slot[data-filled]) .bot-mock,
.phone-slide:has(image-slot[data-filled]) .phone-hint {
  opacity: 0 !important;
  pointer-events: none;
}
.phone-slide:has(image-slot[data-over]) .bot-mock { opacity: 0.25; transition: opacity 0.2s; }
.phone-slide:has(image-slot[data-over]) .phone-hint { opacity: 1; background: rgba(201,100,66,0.85); color: #fff; }

/* Controls below phone — arrows + dots in one row */
.phone-controls {
  display: flex; align-items: center;
  gap: 18px; padding-top: 8px;
}
.phone-arrow {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--fg);
  display: grid; place-items: center;
  color: var(--fg);
  background: transparent;
  transition: background 0.3s, color 0.3s;
  flex-shrink: 0;
}
.phone-arrow:hover { background: var(--fg); color: var(--bg); }
.phone-arrow:disabled { opacity: 0.25; pointer-events: none; }
.phone-dots {
  display: flex; gap: 8px; align-items: center;
}
.phone-dot {
  width: 28px; height: 3px;
  background: var(--line-soft);
  border: 0; border-radius: 2px;
  transition: background 0.3s, width 0.3s;
}
.phone-dot.active { background: var(--fg); width: 46px; }

.phone-meta { margin-top: 32px; text-align: center; }
.phone-meta-name {
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.phone-meta-title {
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 400;
  letter-spacing: -0.015em;
  margin-top: 8px;
}
.phone-meta-counter {
  display: inline-block;
  margin-left: 14px;
  font-family: var(--f-mono);
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--muted);
  vertical-align: middle;
}

@media (max-width: 1100px) {
  .phone-stage { grid-template-columns: 1fr; }
  .phone-side { display: none; }
}

/* ============================================
   LAPTOP — MacBook-ish (blends with main bg)
============================================ */
.laptop-section { background: var(--bg); color: var(--fg); }

.laptop-stage {
  margin-top: 56px;
  display: flex; flex-direction: column;
  align-items: center;
}
.laptop-tabs {
  position: relative;
  display: inline-flex; gap: 4px;
  padding: 5px;
  background: color-mix(in srgb, var(--fg) 6%, transparent);
  border-radius: 999px;
  margin-bottom: 40px;
  border: 1px solid color-mix(in srgb, var(--fg) 14%, transparent);
}
.laptop-tab-ind {
  position: absolute;
  top: 5px; bottom: 5px;
  left: 0; width: 10px;
  opacity: 0;
  background: var(--fg);
  border-radius: 999px;
  transform-origin: left center;
  transition: transform 0.55s cubic-bezier(0.66, 0, 0.2, 1), opacity 0.3s ease;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}
.laptop-tab {
  position: relative;
  z-index: 1;
  padding: 9px 18px;
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--fg) 55%, transparent);
  border-radius: 999px;
  transition: color 0.4s var(--ease-out);
  background: transparent;
}
.laptop-tab.active { color: var(--bg); }
.laptop-tab:hover:not(.active) { color: var(--fg); }

.macbook {
  position: relative;
  width: 100%; max-width: 1040px;
  margin: 0 auto;
}
.macbook-lid {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: linear-gradient(180deg, #d8d8d8, #c0c0c0);
  border-radius: 14px 14px 4px 4px;
  padding: 16px 18px 22px;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.6),
    inset 0 -10px 24px rgba(0,0,0,0.08),
    0 28px 56px rgba(0,0,0,0.4),
    0 8px 18px rgba(0,0,0,0.2);
}
/* The laptop stays a pleasant aluminium grey in BOTH themes — only the drop
   shadow gets a little deeper on dark so it still sits on the dark page. */
[data-theme="dark"] .macbook-lid {
  background: linear-gradient(180deg, #8d9094, #696d72);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.22),
    inset 0 -10px 24px rgba(0,0,0,0.25),
    0 28px 56px rgba(0,0,0,0.6),
    0 8px 18px rgba(0,0,0,0.45);
}
.macbook-lid::before {
  content: "";
  position: absolute;
  top: 16px; left: 50%; transform: translateX(-50%);
  width: 140px; height: 22px;
  background: #0a0a0a;
  border-radius: 0 0 14px 14px;
  z-index: 2;
}
.macbook-camera {
  position: absolute;
  top: 22px; left: 50%; transform: translateX(-50%);
  width: 8px; height: 8px;
  background: #1c1c1c; border: 1px solid #050505;
  border-radius: 50%;
  z-index: 3;
}
.macbook-screen {
  position: relative;
  width: 100%; height: 100%;
  background: #fff;
  border: 14px solid #0a0a0a;
  border-top-width: 32px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow:
    inset 0 0 0 1px #1a1a1a,
    inset 0 0 20px rgba(0,0,0,0.4);
}
.macbook-screen::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0) 50%);
  pointer-events: none; z-index: 4;
}
.macbook-hinge {
  width: 100%; height: 6px;
  background: linear-gradient(180deg, #232323, #0a0a0a 60%, #1a1a1a);
  border-radius: 0 0 4px 4px;
  position: relative; z-index: 1;
}
.macbook-base {
  position: relative;
  margin: 0 auto;
  width: 106%;
  margin-left: -3%;
  height: 14px;
  background: linear-gradient(180deg, #b8b8b8 0%, #6a6a6a 100%);
  border-radius: 0 0 18px 18px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.5),
    0 18px 40px rgba(0,0,0,0.35);
}
[data-theme="dark"] .macbook-base {
  background: linear-gradient(180deg, #7c7f83 0%, #4b4e53 100%);
}
.macbook-base::before {
  content: "";
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 18%; height: 4px;
  background: #1a1a1a;
  border-radius: 0 0 8px 8px;
}

/* Browser chrome */
.browser {
  display: flex; flex-direction: column;
  height: 100%;
  background: #fff;
  color: #0a0a0a;
  font-family: var(--f-sans);
  letter-spacing: -0.005em;
}
.browser-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  background: #f5f5f5;
  border-bottom: 1px solid #e5e5e5;
  flex-shrink: 0;
}
.browser-lights { display: flex; gap: 6px; }
.browser-light { width: 11px; height: 11px; border-radius: 50%; }
.browser-light:nth-child(1) { background: #ff5f57; }
.browser-light:nth-child(2) { background: #febc2e; }
.browser-light:nth-child(3) { background: #28c840; }
.browser-url {
  flex: 1;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  padding: 5px 12px;
  font-family: var(--f-mono);
  font-size: 11px; color: #888;
  display: flex; align-items: center; gap: 8px;
  max-width: 460px;
  margin: 0 auto;
}
.browser-url::before { content: "⏻"; font-size: 9px; opacity: 0.5; }
.browser-url b { color: #0a0a0a; font-weight: 500; }

.browser-body { flex: 1; overflow: hidden; position: relative; }
.site {
  position: absolute; inset: 0;
  opacity: 0; pointer-events: none;
  transition: opacity 0.5s var(--ease-out);
  overflow: hidden;
}
.site.active { opacity: 1; pointer-events: auto; }
/* Admin-uploaded LibertyxAI screenshot filling the laptop screen */
.laptop-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* user-droppable website screenshot fills the whole screen, BEHIND the mock.
   The mock is the placeholder; it lets drops pass through and fades when filled. */
.site-slot {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 1;
  display: block;
}
.site > .site-mock,
.site > .site-dash,
.site > .site-land {
  position: relative;
  z-index: 2;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out);
}
.site:has(.site-slot[data-filled]) > .site-mock,
.site:has(.site-slot[data-filled]) > .site-dash,
.site:has(.site-slot[data-filled]) > .site-land { opacity: 0; }

/* Generic site mocks */
.site-mock { padding: 24px 32px; height: 100%; display: flex; flex-direction: column; }
.site-mock-nav {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 12px;
}
.site-mock-nav .logo { font-family: var(--f-display); font-style: italic; font-weight: 400; font-size: 17px; }
.site-mock-nav .links { display: flex; gap: 18px; color: #888; font-family: var(--f-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.14em; }
.site-mock-hero { padding: 36px 0; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.site-mock-eyebrow { font-family: var(--f-mono); font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: #888; margin-bottom: 14px; }
.site-mock-h1 { font-family: var(--f-display); font-style: italic; font-weight: 400; font-size: clamp(30px, 4.6vw, 56px); line-height: 0.96; letter-spacing: -0.025em; margin-bottom: 14px; }
.site-mock-p { font-size: 12px; color: #555; max-width: 380px; line-height: 1.55; }
.site-mock-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 9px 14px; border-radius: 999px; background: #0a0a0a; color: #fff; font-family: var(--f-mono); font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; align-self: flex-start; }
.site-mock-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 20px; }
.site-mock-card { aspect-ratio: 1; background: linear-gradient(135deg, #f5f5f3, #e5e5e2); border-radius: 6px; padding: 10px; display: flex; flex-direction: column; justify-content: space-between; font-size: 9px; }
.site-mock-card .num { font-family: var(--f-mono); color: #888; }
.site-mock-card .ttl { font-weight: 500; letter-spacing: -0.01em; line-height: 1.15; }

.site-dash { background: #fafafa; padding: 14px; gap: 12px; display: grid; grid-template-columns: 180px 1fr; height: 100%; }
.site-dash .sb { background: #fff; border-radius: 10px; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.site-dash .sb-logo { font-family: var(--f-display); font-style: italic; font-weight: 400; font-size: 17px; margin-bottom: 8px; }
.site-dash .sb-item { font-size: 11px; color: #888; padding: 7px 10px; border-radius: 6px; display: flex; align-items: center; gap: 8px; }
.site-dash .sb-item.active { background: #0a0a0a; color: #fff; }
.site-dash .main { display: grid; grid-template-rows: auto 1fr auto; gap: 12px; min-height: 0; }
.site-dash .stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.site-dash .stat-card { background: #fff; border-radius: 8px; padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.site-dash .stat-card .lbl { font-size: 9px; color: #888; text-transform: uppercase; letter-spacing: 0.12em; font-family: var(--f-mono); }
.site-dash .stat-card .val { font-family: var(--f-display); font-style: italic; font-size: 22px; letter-spacing: -0.01em; }
.site-dash .stat-card .chg { font-size: 9px; color: #16a34a; font-family: var(--f-mono); }
.site-dash .chart { background: #fff; border-radius: 10px; padding: 16px; display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.site-dash .chart-bars { flex: 1; display: flex; align-items: flex-end; gap: 5px; }
.site-dash .chart-bar { flex: 1; background: #0a0a0a; border-radius: 2px; }
.site-dash .table { background: #fff; border-radius: 8px; padding: 10px 14px; font-size: 10px; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 6px 12px; }
.site-dash .table .h { font-family: var(--f-mono); color: #888; text-transform: uppercase; letter-spacing: 0.12em; font-size: 8px; }

.site-land { background: #0a0a0a; color: #fff; padding: 24px 32px; height: 100%; display: flex; flex-direction: column; }
.site-land .nav { display: flex; justify-content: space-between; align-items: center; }
.site-land .logo { font-family: var(--f-display); font-style: italic; font-weight: 400; font-size: 17px; }
.site-land .links { font-family: var(--f-mono); font-size: 9px; color: rgba(255,255,255,0.5); display: flex; gap: 14px; text-transform: uppercase; letter-spacing: 0.16em; }
.site-land .hero { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.site-land .h1 { font-family: var(--f-display); font-style: italic; font-size: clamp(32px, 5vw, 56px); font-weight: 400; letter-spacing: -0.03em; line-height: 0.96; }
.site-land .sub { font-size: 12px; color: rgba(255,255,255,0.6); max-width: 380px; line-height: 1.55; }
.site-land .row { display: flex; gap: 8px; align-items: center; margin-top: 4px; }
.site-land .pill { padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.2); font-family: var(--f-mono); font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; }
.site-land .pill.full { background: #fff; color: #0a0a0a; border-color: #fff; }
.site-land .badges { display: flex; gap: 12px; margin-top: 14px; font-family: var(--f-mono); font-size: 9px; color: rgba(255,255,255,0.4); letter-spacing: 0.14em; }

@media (max-width: 700px) {
  .laptop-tabs { flex-wrap: wrap; justify-content: center; gap: 6px; }
  .laptop-tab { padding: 8px 14px; font-size: 10px; }
  .macbook-lid { padding: 10px 12px 14px; border-radius: 10px 10px 3px 3px; }
  .macbook-screen { border-width: 8px; border-top-width: 20px; }
}

/* ============================================
   REVIEWS
============================================ */
.reviews-section { background: var(--bg); }
.reviews-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.review {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: var(--bg);
  transform-style: preserve-3d;
  transition:
    transform 0.4s var(--ease-out),
    border-color 0.5s var(--ease-out),
    box-shadow 0.5s var(--ease-out);
}
.review-inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; gap: 20px;
  padding: 28px; min-height: 320px;
  color: var(--accent);
}
/* The signature move: a full coffee-coloured DUPLICATE of the card, revealed
   by a circle that blooms outward from exactly where the cursor entered. Since
   the overlay is the same content (cream-on-coffee), the background AND the
   text reveal together — the recolour can never be "uneven", it's literally
   one clipped layer. */
.review-fill {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(155deg, #34230f 0%, #4d3623 50%, #5e4330 100%);
  clip-path: circle(0% at var(--mx, 50%) var(--my, 50%));
  transition: clip-path 0.8s cubic-bezier(0.22, 1, 0.30, 1);
  will-change: clip-path;
}
.review-fill .review-inner { color: #f3e7d8; }
.review-fill .review-stars { color: #e7c79c; }
.review-fill .review-author { border-top-color: rgba(243,231,216,0.25); }
.review:hover .review-fill { clip-path: circle(150% at var(--mx, 50%) var(--my, 50%)); }
/* Warm spotlight that tracks the cursor across the card */
.review-spot {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  opacity: 0; transition: opacity 0.4s var(--ease-out);
  background: radial-gradient(200px circle at var(--gx, 50%) var(--gy, 50%), rgba(255,238,214,0.13), transparent 62%);
}
.review:hover .review-spot { opacity: 1; }
.review:hover {
  border-color: transparent;
  box-shadow: 0 30px 60px -28px rgba(56,38,22,0.75);
}
.review-stars { display: flex; gap: 2px; font-size: 13px; letter-spacing: 2px; color: var(--accent-2); }
.review-text {
  flex: 1;
  font-family: var(--f-display);
  font-style: italic;
  font-size: 19px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: inherit;
}
.review-author {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase;
  color: inherit;
}
.review-author .meta { opacity: 0.55; }
/* Touch: no cursor → simple fade of the coffee layer instead of the bloom. */
@media (pointer: coarse) {
  .review-fill { clip-path: none; opacity: 0; transition: opacity 0.45s var(--ease-out); }
  .review:active .review-fill { opacity: 1; }
}

/* Animatable angle for the rotating gradient border (graceful: if a browser
   lacks @property the ring is simply a static glow). */
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

.reviews-cta {
  position: relative;
  overflow: hidden;
  margin-top: 32px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  padding: 32px 40px;
  display: flex;
  background: var(--bg);
  color: var(--fg);
  isolation: isolate;
  transition: border-color 0.55s var(--ease-out), color 0.55s var(--ease-out),
              box-shadow 0.55s var(--ease-out), transform 0.5s var(--ease-out);
}
.cta-content {
  position: relative; z-index: 3;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; width: 100%;
}
/* Flowing coffee fill — the gradient drifts sideways while hovered. */
.cta-fill {
  position: absolute; inset: 0; z-index: 0; opacity: 0;
  background: linear-gradient(120deg, #34230f 0%, #5c4030 30%, #6b4a34 50%, #5c4030 70%, #34230f 100%);
  background-size: 220% 100%;
  transition: opacity 0.55s var(--ease-out);
  animation: ctaFlow 7s linear infinite; animation-play-state: paused;
}
.reviews-cta:hover .cta-fill { opacity: 1; animation-play-state: running; }
@keyframes ctaFlow { to { background-position: 220% 0; } }
/* Rotating luminous gradient border, masked to just the 1.6px band. */
.cta-ring {
  position: absolute; inset: 0; z-index: 4; pointer-events: none;
  border-radius: inherit; padding: 1.6px;
  background: conic-gradient(from var(--ang, 0deg),
    transparent 0deg, var(--accent) 55deg, #e7c79c 110deg, var(--accent) 165deg,
    transparent 220deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
  opacity: 0; transition: opacity 0.55s var(--ease-out);
  animation: ctaSpin 5.5s linear infinite; animation-play-state: paused;
}
.reviews-cta:hover .cta-ring { opacity: 1; animation-play-state: running; }
@keyframes ctaSpin { to { --ang: 360deg; } }
/* Cursor spotlight */
.cta-spot {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0;
  transition: opacity 0.4s var(--ease-out);
  background: radial-gradient(240px circle at var(--gx, 50%) var(--gy, 50%), rgba(255,238,214,0.16), transparent 60%);
}
.reviews-cta:hover .cta-spot { opacity: 1; }
.reviews-cta:hover {
  border-color: transparent;
  color: #f3e7d8;
  box-shadow: 0 30px 62px -26px rgba(58,38,22,0.72);
  transform: translateY(-3px);
}
.reviews-cta:hover .reviews-cta-sub { opacity: 0.7; }
/* keep the channel button inside the brown family in both states */
.reviews-cta .btn {
  background: var(--accent); border-color: var(--accent); color: #f6ecdf;
  transition: background 0.5s var(--ease-out), color 0.5s var(--ease-out), border-color 0.5s var(--ease-out);
}
.reviews-cta .btn::before { display: none; }
.reviews-cta:hover .btn { background: #f3e7d8; border-color: #f3e7d8; color: #3a2616; }
.reviews-cta-title {
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(24px, 2.4vw, 36px);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.05;
}
.reviews-cta-sub {
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-top: 6px;
}

@media (max-width: 980px) { .reviews-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .reviews-grid { grid-template-columns: 1fr; } }

/* ============================================
   CONTACT
============================================ */
.contact-section { background: var(--bg); }
.contact-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
}
.contact-form { display: flex; flex-direction: column; gap: 4px; }
.field {
  position: relative;
  border-bottom: 1px solid var(--line);
  padding: 22px 0 14px;
}
.field label {
  display: block;
  font-family: var(--f-mono);
  font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.field input, .field textarea {
  width: 100%;
  background: transparent;
  border: 0; outline: 0;
  font-family: var(--f-sans);
  font-size: 20px;
  color: var(--fg);
  resize: none;
}
.field textarea { min-height: 80px; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 0.6; font-style: italic; font-family: var(--f-display); font-size: 22px; }

.contact-submit-row {
  margin-top: 28px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
}
.contact-disclaimer {
  font-family: var(--f-mono);
  font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  max-width: 280px; line-height: 1.6;
}

.contact-side { display: flex; flex-direction: column; gap: 24px; }
.contact-tg {
  position: relative;
  background: var(--feature-bg); color: var(--feature-fg);
  border-radius: 28px;
  padding: 40px 36px;
  display: flex; flex-direction: column;
  gap: 28px;
  overflow: hidden;
  isolation: isolate;
}
.contact-tg-q {
  position: absolute; bottom: -64px; right: 50%;
  transform: translateX(50%);
  font-family: var(--f-display);
  font-style: italic;
  font-size: 420px; line-height: 1;
  font-weight: 400;
  color: color-mix(in srgb, var(--feature-fg) 7%, transparent);
  z-index: -1;
  pointer-events: none;
}
.contact-tg-eyebrow {
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--feature-soft);
}
.contact-tg-title {
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.96;
}
.contact-tg-cta {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 18px 26px;
  background: var(--feature-fg); color: var(--feature-bg);
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase;
  align-self: flex-start;
  transition: transform 0.3s var(--ease-out);
}
.contact-tg-cta:hover { transform: scale(1.03); }
.contact-handles {
  display: grid; gap: 4px;
  border-top: 1px solid var(--feature-line);
  padding-top: 24px;
}
.handle-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 0;
  font-family: var(--f-mono);
  font-size: 12px; letter-spacing: 0.12em;
  text-transform: uppercase;
}
.handle-row .lbl { color: var(--feature-soft); }

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

/* ============================================
   FOOTER — follows main theme
============================================ */
.footer {
  background: var(--bg); color: var(--fg);
  padding: clamp(56px, 9vh, 96px) var(--pad-x) 28px;
  overflow: hidden;
  border-top: 1px solid var(--line-soft);
}
.footer-inner { max-width: var(--max-w); margin: 0 auto; }

.footer-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line-soft);
}
.footer-cta-title {
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(40px, 6vw, 96px);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: -0.03em;
}
.footer-cta-title em { font-style: italic; color: var(--title-accent); }
.footer-cta-side {
  display: flex; flex-direction: column; gap: 12px;
  align-items: flex-end;
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase;
}

.footer-grid {
  display: grid;
  grid-template-columns: auto 1fr 1fr 1fr;
  gap: 56px;
  padding: 48px 0 36px;
  align-items: start;
}
.footer-brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg);
}
.footer-brand .mark {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--f-display);
  font-weight: 400; font-style: italic; font-size: 20px;
  line-height: 1;
}
.footer-brand .label {
  display: grid; gap: 4px;
}
.footer-brand .label b { font-weight: 500; }
.footer-brand .label span {
  color: var(--muted);
  letter-spacing: 0.18em;
  font-size: 10px;
}

.footer-col-label {
  font-family: var(--f-mono);
  font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; display: grid; gap: 8px; }
.footer-col li { font-size: 14px; }
.footer-col a { transition: opacity 0.3s; }
.footer-col a:hover { opacity: 0.5; }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom .to-top {
  display: inline-flex; align-items: center; gap: 8px;
  transition: opacity 0.3s;
}
.footer-bottom .to-top:hover { opacity: 0.5; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-cta { grid-template-columns: 1fr; align-items: start; }
  .footer-cta-side { align-items: flex-start; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================
   Reveal animations
============================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-blur {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
.reveal-blur.in { opacity: 1; transform: translateY(0); }

/* ============================================
   Mobile & touch optimisation
============================================ */
/* Kill the grey tap flash on every interactive element. */
* { -webkit-tap-highlight-color: transparent; }

/* Touch devices: drop the GPU-expensive backdrop blur + will-change layers
   that only ever mattered for desktop hover, and lighten the big shadows —
   this is what keeps scrolling buttery on phones. */
@media (pointer: coarse) {
  .header.scrolled {
    background: color-mix(in srgb, var(--bg) 94%, transparent);
    backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  .phone-hint, .bot-input { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .btn, .phone, .macbook, .laptop-tab-ind, .review-fill, .preload-q .q-fill-text {
    will-change: auto;
  }
  .phone { box-shadow: 0 16px 36px rgba(0,0,0,0.22); }
  [data-theme="dark"] .phone { box-shadow: 0 16px 36px rgba(0,0,0,0.5); }
  .macbook-lid { box-shadow: 0 16px 34px rgba(0,0,0,0.4); }
}

/* Phone layout polish — tighter rhythm, drop the side captions that crowd the
   narrow single column, smaller cards. */
@media (max-width: 640px) {
  /* Header: clean brand-left / chips-right instead of the desktop 3-col grid
     (which collapsed oddly once the nav was hidden). */
  .header {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
  }
  .brand { white-space: nowrap; font-size: 10px; letter-spacing: 0.14em; }
  .brand-mark { width: 26px; height: 26px; font-size: 16px; }
  .nav-meta { flex: 0 0 auto; }
  section { padding: 64px var(--pad-x); }
  .eyebrow { margin-bottom: 22px; }
  .hero-tag { margin-top: 18px; font-size: 11px; gap: 8px; }
  .hero-tag::before, .hero-tag::after { width: 20px; }
  .phone-stage { margin-top: 32px; gap: 28px; }
  .phone-side { display: none; }
  .phone-meta { flex-wrap: wrap; gap: 6px; }
  .laptop-stage { margin-top: 32px; }
  .laptop-tabs { margin-bottom: 26px; }
  .reviews-grid { margin-top: 32px; gap: 14px; }
  .review-inner { padding: 22px; min-height: 0; }
  .reviews-cta { padding: 24px 22px; }
  .contact-form, .contact-side { gap: 14px; }
  .footer-cta { padding-bottom: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-blur { opacity: 1; transform: none; filter: none; }
  .hero-name .word-mask > span { transform: none; }
  .marquee-track, .grain { animation: none; }
  html { scroll-behavior: auto; }
}
