/* ══════════════════════════════════════════════════════════════════════
   STB Studios — stbstudios.co.za
   Lifted out of the Claude Design file: every inline style and every
   style-hover / style-focus attribute now lives here as a real rule, and
   the JS `phone` breakpoint is a media query. No build step.
   ══════════════════════════════════════════════════════════════════════ */

:root {
  --bg: #0b0b0d;
  --ink: #ffffff;
  --ink-dim: rgba(255, 255, 255, 0.55);
  --ink-dimmer: rgba(255, 255, 255, 0.45);
  --line: rgba(255, 255, 255, 0.12);
  --line-soft: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.16);
  --accent-red: #ff2d2d;
  --accent-blue: #00a4ff;
  --accent-yellow: #ffea00;
  --whatsapp: #25d366;
  --gutter: clamp(20px, 2.8vw, 40px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html, body {
  background-color: var(--bg);
  color: var(--ink);
  background-image: url("website-background.webp");
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
}
html { scroll-behavior: smooth; }
body {
  font-family: Inter, "Helvetica Neue", Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  position: relative;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--ink); }
button, input, textarea, select { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
::selection { background: rgba(255, 255, 255, 0.2); }
::placeholder { color: rgba(255, 255, 255, 0.34); opacity: 1; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 4px; }

.sr-only, .hp {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  padding: 12px 18px; background: #fff; color: var(--bg); font-weight: 600;
}
.skip-link:focus { left: 12px; top: 12px; color: var(--bg); }

.shell { position: relative; isolation: isolate; overflow-x: clip; }

/* ── entrance keyframes ─────────────────────────────────────────────── */
@keyframes in-mask  { from { transform: translateY(105%); } to { transform: translateY(0); } }
@keyframes in-soft  { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes in-scale { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: scale(1); } }
@keyframes in-pop   { from { opacity: 0; transform: scale(0.86) translateY(8px); } to { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes in-btn   { from { opacity: 0; transform: translateY(10px) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes in-side  { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: translateX(0); } }
@keyframes in-stat  { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

/* ── header ─────────────────────────────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 16px; padding: 18px var(--gutter);
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(10,10,12,0.72), rgba(10,10,12,0.28));
  border-bottom: 1px solid var(--line-soft);
}
.brand { display: flex; align-items: center; gap: 9px; }
.brand img { height: 30px; width: auto; }
.brand-header { animation: in-side 1.05s var(--ease) both; }

.nav-pill {
  display: flex; align-items: center; gap: 2px; padding: 4px;
  border-radius: 999px; border: 1px solid rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.1); backdrop-filter: blur(8px);
}
.nav-link {
  position: relative; display: inline-flex; align-items: center;
  height: 32px; padding: 0 14px; border-radius: 999px;
  font-size: 14px; font-weight: 500; color: #c9c9c9; letter-spacing: -0.01em;
  transition: color 0.3s, background 0.3s, box-shadow 0.3s;
}
.nav-link:hover, .nav-link:focus-visible {
  color: #fff;
  background: linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0.04));
  box-shadow: 0 0 18px rgba(255,255,255,0.10), inset 0 1px 0 rgba(255,255,255,0.25);
}
.nav-a1 { animation: in-scale 1.05s var(--ease) 0.06s both; }
.nav-a2 { animation: in-soft  1.05s var(--ease) 0.12s both; }
.nav-a3 { animation: in-scale 1.05s var(--ease) 0.18s both; }
.nav-a4 { animation: in-soft  1.05s var(--ease) 0.24s both; }
.nav-a5 { animation: in-scale 1.05s var(--ease) 0.30s both; }

.header-end { grid-column: 3; display: flex; justify-content: flex-end; align-items: center; gap: 10px; }  /* stays right when the nav pill hides */
.burger {
  display: none; flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 44px; height: 44px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: rgba(255,255,255,0.06); cursor: pointer;
}
.burger span { display: block; width: 17px; height: 1.5px; background: #fff; border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child  { transform: translateY(-3.25px) rotate(-45deg); }

/* ── mobile menu ────────────────────────────────────────────────────── */
.backdrop {
  position: fixed; inset: 0; z-index: 55;
  background: rgba(8,8,10,0.6); backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.35s, visibility 0.35s;
}
.backdrop[data-open] { opacity: 1; visibility: visible; pointer-events: auto; }
.mobile-menu {
  position: fixed; inset: 0; z-index: 58;
  display: flex; flex-direction: column; justify-content: center; gap: 16px;
  padding: 0 28px;
  opacity: 0; visibility: hidden; transform: translateY(-10px); pointer-events: none;
  transition: opacity 0.35s, transform 0.4s, visibility 0.4s;
}
.mobile-menu[data-open] { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
.mobile-menu a { font-size: 30px; font-weight: 500; letter-spacing: -0.03em; }
.mobile-menu .menu-cta {
  margin-top: 14px; align-self: flex-start;
  display: inline-flex; align-items: center; height: 46px; padding: 0 22px;
  border-radius: 999px; background: #fff; color: var(--bg);
  font-size: 14.5px; font-weight: 600;
}

/* ── buttons ────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  height: 44px; padding: 0 20px; border-radius: 999px;
  font-size: 13.5px; font-weight: 500; letter-spacing: -0.01em;
  transition: background 0.3s, border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.btn-ghost {
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,0.06); backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.13); border-color: rgba(255,255,255,0.32); transform: translateY(-1px); }
.btn-wa { background: var(--whatsapp); color: var(--bg); font-weight: 600; }
.btn-wa:hover { color: var(--bg); box-shadow: 0 0 28px rgba(37,211,102,0.45); transform: translateY(-1px); }
.btn-wa img { width: 20px; height: 20px; border-radius: 5px; }

/* ── hero ───────────────────────────────────────────────────────────── */
.hero {
  position: relative; display: flex; align-items: flex-end; overflow: hidden;
  height: 100vh; height: 100dvh;
}
.hero-art {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 34%;
  z-index: 0; opacity: 0.62; pointer-events: none;
}
.hero-veil { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-veil-v { background: linear-gradient(180deg, rgba(8,8,10,0.55) 0%, rgba(8,8,10,0.12) 34%, rgba(8,8,10,0.72) 78%, rgba(8,8,10,0.94) 100%); }
.hero-veil-h { background: linear-gradient(90deg, rgba(8,8,10,0.88) 0%, rgba(8,8,10,0.55) 34%, rgba(8,8,10,0) 62%); }
.hero-veil-foot {
  inset: auto 0 0 0; height: 26vh; max-height: 260px;
  background: linear-gradient(180deg, rgba(11,11,13,0) 0%, rgba(11,11,13,0.65) 55%, var(--bg) 100%);
}
.hero-inner {
  position: relative; z-index: 2; width: 100%; max-width: 1360px; margin: 0 auto;
  padding: 0 var(--gutter) clamp(38px, 5vw, 74px);
  display: flex; flex-direction: column; align-items: flex-start;
  gap: clamp(16px, 1.6vw, 22px);
}
.hero-title {
  max-width: 860px; font-size: clamp(32px, 3.5vw, 58px);
  font-weight: 600; line-height: 1.04; letter-spacing: -0.035em;
}
.hero-title .mask { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero-title .mask-in { display: block; }
.mask-1 { animation: in-mask 1.05s var(--ease) 0.14s both; }
.mask-2 { animation: in-mask 1.05s var(--ease) 0.24s both; }
.hero-title em {
  font-style: normal; font-weight: 700; color: var(--accent-red);
  letter-spacing: -0.035em; text-transform: uppercase;
}
.hero-sub {
  max-width: 470px; font-size: 15.5px; line-height: 1.55;
  text-wrap: pretty; animation: in-soft 1.05s var(--ease) 0.36s both;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; animation: in-btn 1.05s var(--ease) 0.46s both; }
.hero-stats {
  margin-top: clamp(14px, 2vw, 30px); width: 100%; list-style: none;
  display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: 14px 34px; padding-top: 20px; border-top: 1px solid var(--line);
}
.stat { display: flex; align-items: center; gap: 11px; font-size: 13.5px; flex: 0 1 auto; }
.stat svg { flex: none; }
.stat-1 { animation: in-stat 1.05s var(--ease) 0.58s both; }
.stat-2 { animation: in-stat 1.05s var(--ease) 0.66s both; }
.stat-3 { animation: in-stat 1.05s var(--ease) 0.74s both; }

/* ── sections ───────────────────────────────────────────────────────── */
.section {
  position: relative; scroll-margin-top: 78px;
  padding: clamp(74px, 9vw, 120px) var(--gutter);
}
.section-ruled { border-top: 1px solid var(--line-soft); }
.wrap { max-width: 1160px; margin: 0 auto; }
.measure { max-width: 860px; }
.kicker {
  display: inline-block; font-size: 11.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-dim); margin-bottom: 18px;
}
.section h2 {
  font-size: clamp(26px, 2.5vw, 40px); font-weight: 600; line-height: 1.1;
  letter-spacing: -0.03em; text-wrap: pretty;
}
.measure h2 { margin-bottom: 20px; }
.section-head { max-width: 860px; margin-bottom: clamp(36px, 4.5vw, 56px); }
.lede { font-size: 16px; line-height: 1.62; max-width: 700px; text-wrap: pretty; }

/* ── about cards ────────────────────────────────────────────────────── */
.card-grid {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(228px, 1fr)); gap: 14px;
}
.card {
  border: 1px solid var(--line); border-radius: 14px; padding: 24px;
  background: rgba(255,255,255,0.02);
  transition: border-color 0.35s, background 0.35s;
}
.card:hover { border-color: rgba(255,255,255,0.26); background: rgba(255,255,255,0.05); }
.card h3 { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 9px; }
.card p { font-size: 13.5px; line-height: 1.55; }

/* ── pricing ────────────────────────────────────────────────────────── */
.price-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.price-card {
  flex: 0 1 364px; min-width: 288px;
  display: flex; flex-direction: column; gap: 14px;
  border: 1px solid var(--line); border-radius: 16px; padding: 28px;
  background: rgba(255,255,255,0.02);
  transition: border-color 0.35s, background 0.35s;
}
.price-card:hover { border-color: rgba(255,255,255,0.26); background: rgba(255,255,255,0.05); }
.price-card-blue { border-color: rgba(122,168,255,0.26); background: rgba(96,146,255,0.07); }
.price-card-blue:hover { border-color: rgba(122,168,255,0.45); background: rgba(96,146,255,0.12); }
.price-card-gold { border-color: rgba(255,214,110,0.26); background: rgba(255,203,84,0.07); }
.price-card-gold:hover { border-color: rgba(255,214,110,0.45); background: rgba(255,203,84,0.12); }
.price-name { font-size: 12.5px; font-weight: 500; letter-spacing: 0.02em; }
.price-fig { font-size: clamp(28px, 2.2vw, 34px); font-weight: 600; letter-spacing: -0.035em; line-height: 1; }
.price-card p { font-size: 13.5px; line-height: 1.55; }
.price-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.price-list li {
  position: relative; padding-left: 16px;
  font-size: 13px; line-height: 1.5; color: rgba(255,255,255,0.78);
}
.price-list li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--ink-dimmer);
}
.price-card-blue .price-list li::before { background: #7aa8ff; }
.price-card-gold .price-list li::before { background: #ffd66e; }

.care-head {
  margin: clamp(36px, 4vw, 52px) 0 14px;
  font-size: 11.5px; font-weight: 500; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-dim);
}
.care-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.guarantee-banner {
  margin-top: 28px; text-align: center;
  font-size: clamp(22px, 3vw, 32px); font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: #ffffff;
  border: 1px solid rgba(27,247,74,0.4); border-radius: 16px; padding: 22px 28px;
  background: rgba(27,247,74,0.16);
  transition: border-color 0.35s, background 0.35s;
}
.guarantee-banner:hover { border-color: rgba(27,247,74,0.6); background: rgba(27,247,74,0.22); }
.care-row {
  display: flex; align-items: flex-start; justify-content: space-between;
  flex-wrap: wrap; gap: 8px 14px;
  border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px;
  background: rgba(255,255,255,0.02);
}
.care-row-featured {
  border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
}
.care-row > div { display: flex; flex-direction: column; gap: 5px; min-width: 0; flex: 1 1 140px; }
.care-name { font-size: 13.5px; font-weight: 600; }
.care-desc { font-size: 12.5px; text-wrap: pretty; }
.care-price { font-size: 14px; font-weight: 600; white-space: nowrap; }
.care-price span { color: rgba(255,255,255,0.6); font-weight: 400; }

/* ── how it works ───────────────────────────────────────────────────── */
.steps {
  list-style: none;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(212px, 1fr));
  gap: clamp(24px, 3vw, 40px);
}
.steps li { display: flex; flex-direction: column; gap: 14px; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: #fff; color: var(--bg); font-size: 13px; font-weight: 600;
}
.steps h3 { font-size: 16px; font-weight: 600; letter-spacing: -0.015em; }
.steps p { font-size: 13.5px; line-height: 1.55; }

/* ── portfolio ──────────────────────────────────────────────────────── */
.work-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); gap: 14px; }
.work {
  display: block; border: 1px solid var(--line-strong); border-radius: 16px;
  overflow: hidden; background: rgba(255,255,255,0.03);
  transition: border-color 0.35s, transform 0.35s;
}
.work:hover { border-color: rgba(255,255,255,0.42); transform: translateY(-2px); }
.work-shot { aspect-ratio: 16 / 10; overflow: hidden; }
.work-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.work-meta { padding: 20px; display: flex; flex-direction: column; gap: 7px; }
.work-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 600; letter-spacing: -0.015em;
}
.work-note { font-size: 13px; color: var(--ink-dim); }

/* ── contact ────────────────────────────────────────────────────────── */
.contact {
  min-height: 90vh; display: flex; align-items: center; overflow: hidden;
  padding: clamp(74px, 9vw, 118px) var(--gutter);
}
.contact-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.contact-veil {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(8,8,10,0.82) 0%, rgba(8,8,10,0.6) 45%, rgba(8,8,10,0.9) 100%);
}
.contact-inner { position: relative; z-index: 2; width: 100%; }
.contact-head {
  max-width: 720px; font-size: clamp(26px, 2.6vw, 42px); font-weight: 600;
  line-height: 1.08; letter-spacing: -0.03em;
  margin-bottom: clamp(32px, 4vw, 48px); text-wrap: pretty;
}
.ink-blue { color: var(--accent-blue); }
.ink-yellow { color: var(--accent-yellow); }
.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(24px, 3vw, 44px); align-items: start;
}
.contact-col { display: flex; flex-direction: column; gap: 22px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.contact-details { display: flex; flex-direction: column; gap: 14px; padding-top: 4px; }
.contact-details > div { display: flex; flex-direction: column; gap: 3px; }
.detail-label { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.6); }
.detail-val { font-size: 15.5px; font-weight: 500; }
a.detail-val:hover { color: var(--accent-blue); }
/* 44px minimum tap target on iOS. Negative margin cancels the padding so
   the text sits exactly where it did before. */
a.detail-val { display: block; padding: 13px 0; margin: -13px 0; }
.map-frame { border: 1px solid var(--line-strong); border-radius: 14px; overflow: hidden; height: 210px; }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ── enquiry form ───────────────────────────────────────────────────── */
.enquiry {
  display: flex; flex-direction: column; gap: 11px;
  border: 1px solid var(--line-strong); border-radius: 18px;
  padding: clamp(22px, 2.4vw, 30px);
  background: rgba(255,255,255,0.05); backdrop-filter: blur(14px);
}
.enquiry-head { font-size: 13.5px; font-weight: 600; margin-bottom: 5px; }
.enquiry input, .enquiry textarea {
  height: 44px; padding: 0 14px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: rgba(255,255,255,0.05);
  font-size: 14px; outline: none;
  transition: border-color 0.25s, background 0.25s;
}
.enquiry textarea { height: auto; padding: 12px 14px; resize: vertical; }
.enquiry input:focus, .enquiry textarea:focus {
  border-color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.09);
}
.enquiry input.hp { height: 0; }
.enquiry-send {
  margin-top: 4px; height: 46px; border: 0; border-radius: 999px;
  background: #fff; color: #000; font-size: 13.5px; font-weight: 600;
  cursor: pointer; transition: background 0.25s, box-shadow 0.3s, transform 0.3s, opacity 0.3s;
}
.enquiry-send:hover:not(:disabled) { background: #d8d8d8; box-shadow: 0 0 30px rgba(255,255,255,0.55); transform: translateY(-1px); }
.enquiry-send:active:not(:disabled) { background: #bfbfbf; transform: translateY(0); box-shadow: 0 0 14px rgba(255,255,255,0.4); }
.enquiry-send:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.enquiry-send:disabled { opacity: 0.6; cursor: progress; }
.enquiry-status { font-size: 12.5px; text-align: center; min-height: 0; }
.enquiry-status:empty { display: none; }
.enquiry-status[data-state="ok"] { color: #6ee7a8; }
.enquiry-status[data-state="err"] { color: #ff8a8a; }
.enquiry-foot { font-size: 11.5px; color: var(--ink-dimmer); text-align: center; }

/* ── footer + floating WhatsApp ─────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--line-soft); padding: 30px var(--gutter);
  display: flex; flex-wrap: wrap; gap: 12px 24px;
  align-items: center; justify-content: space-between;
  max-width: 1240px; margin: 0 auto;
}
.site-footer .brand img { height: 26px; }
.footer-note { font-size: 12.5px; color: var(--ink-dim); }
.footer-note a { display: inline-block; padding: 15px 8px; margin: -15px -8px; }

.wa-float {
  position: fixed; right: clamp(16px, 2vw, 28px); bottom: clamp(16px, 2vw, 28px);
  z-index: 70; width: 54px; height: 54px; border-radius: 50%; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 28px rgba(0,0,0,0.45);
  transition: transform 0.3s, box-shadow 0.3s;
}
.wa-float:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 10px 34px rgba(37,211,102,0.5); }
.wa-float img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

/* ── the old JS `phone` breakpoint, as a media query ────────────────── */
@media (max-width: 900px) {
  .nav-pill { display: none; }
  .burger { display: flex; }
  .hero { height: auto; min-height: 92vh; padding-top: 96px; }
  .hero-stats { justify-content: flex-start; }
}

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

/* ── privacy policy page ────────────────────────────────────────────── */
.legal-page { padding-top: clamp(104px, 13vw, 148px); }
.legal { max-width: 760px; margin: 0 auto; }
.legal h1 {
  font-size: clamp(34px, 5.5vw, 60px); font-weight: 600;
  line-height: 1.04; letter-spacing: -0.035em; text-wrap: balance;
}
.legal .updated { margin-top: 14px; font-size: 13.5px; color: var(--ink-dim); }
.legal .intro {
  margin-top: 22px; font-size: clamp(15.5px, 2vw, 18px); line-height: 1.6;
  color: rgba(255,255,255,0.84); text-wrap: pretty;
}
.legal .summary {
  margin-top: 30px; border: 1px solid var(--line); border-radius: 18px;
  padding: clamp(20px, 4vw, 28px); background: rgba(255,255,255,0.03);
}
.legal .summary h2 { margin-top: 0; }
.legal h2 {
  margin-top: clamp(40px, 5vw, 56px); margin-bottom: 14px;
  font-size: clamp(22px, 2.2vw, 28px);
}
.legal h3 { margin-top: 22px; margin-bottom: 6px; font-size: 16px; font-weight: 600; }
.legal p, .legal li { font-size: 15.5px; line-height: 1.65; color: rgba(255,255,255,0.84); text-wrap: pretty; }
.legal p + p, .legal p + ul, .legal ul + p, .table-scroll + p { margin-top: 14px; }
.legal ul { padding-left: 1.2em; }
.legal li + li { margin-top: 6px; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.table-scroll {
  margin-top: 14px; overflow-x: auto;
  border: 1px solid var(--line); border-radius: 14px;
}
.legal table { width: 100%; border-collapse: collapse; }
.legal th, .legal td {
  text-align: left; vertical-align: top; padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft); font-size: 14.5px; line-height: 1.5;
}
.legal th {
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-dim);
}
.legal tr:last-child td { border-bottom: none; }

/* ── AI agents page ─────────────────────────────────────────────────── */
.nav-a6 { animation: in-soft 1.05s var(--ease) 0.36s both; }
.nav-link[aria-current="page"] {
  color: #fff;
  background: linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0.04));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25);
}
.mobile-menu a[aria-current="page"] { color: var(--accent-blue); }

.page-hero { padding-top: clamp(124px, 15vw, 180px); padding-bottom: clamp(56px, 7vw, 96px); }
.page-hero .wrap { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(16px, 1.6vw, 22px); }
.page-hero .kicker { margin-bottom: 0; animation: in-soft 1.05s var(--ease) 0.06s both; }
.page-hero .hero-sub { max-width: 560px; }
.page-hero .mask-in { text-wrap: balance; }  /* no lone word when a line wraps on phones */

.card-grid-tight { margin-top: 0; }
.section-cta { margin-top: clamp(28px, 3vw, 40px); display: flex; flex-wrap: wrap; gap: 10px; }
.contact-col .lede { color: rgba(255,255,255,0.84); }

.usecase {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(28px, 4vw, 56px); align-items: center;
}
.usecase > * { min-width: 0; }
.usecase h3 { font-size: clamp(20px, 2vw, 26px); font-weight: 600; letter-spacing: -0.02em; margin-bottom: 16px; }
.usecase .price-list li { font-size: 14.5px; }

/* AI WhatsApp agent videos, copy left / video right: the square promo on
   the home page, the portrait demo recording on the AI agents page */
.agent-head { margin-bottom: 20px; }
.ink-red { color: var(--accent-red); }
.agent-points { margin-top: 22px; }
.agent-lede { margin-bottom: 20px; }
.agent-video {
  width: 100%; max-width: 520px; height: auto; aspect-ratio: 1; justify-self: center;
  border: 1px solid var(--line-strong); border-radius: 18px;
  background: #000; box-shadow: 0 20px 60px rgba(0,0,0,0.45);
}
.agent-video-tall { aspect-ratio: 480 / 1012; }
.agent-media { width: 100%; max-width: 320px; justify-self: center; }
.video-ctrls { display: flex; justify-content: center; gap: 10px; margin-top: 14px; }
.video-ctrls .btn { cursor: pointer; }
[data-video-toggle][data-paused] .i-pause,
[data-video-toggle]:not([data-paused]) .i-play { display: none; }

.faq { max-width: 860px; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 20px 0; font-size: 16px; font-weight: 600; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 20px; font-weight: 400; color: var(--ink-dim); transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { max-width: 720px; padding-bottom: 22px; font-size: 14.5px; line-height: 1.65; color: rgba(255,255,255,0.8); text-wrap: pretty; }
.faq a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.enquiry select {
  height: 44px; padding: 0 14px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: rgba(255,255,255,0.05);
  font-size: 14px; outline: none; color-scheme: dark;
  transition: border-color 0.25s, background 0.25s;
}
.enquiry select:focus { border-color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.09); }
.enquiry option { background: #16161a; color: #fff; }

/* ── AI agents page: "Try it yourself" demo phone ───────────────────────
   Scripted example chats (assets/demo-phone.js). The phone uses its own
   chat-app palette so it reads as a phone, not as part of the page.     */
.try-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.try-head { margin-bottom: 18px; }
.try-copy .lede { color: rgba(255,255,255,0.8); }
.try-note { margin: 0 0 16px; font-size: 14px; line-height: 1.55; color: var(--ink-dim); max-width: 460px; }

.dp-picker {
  list-style: none; margin: 26px 0 24px; max-width: 520px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 8px;
}
.dp-pick {
  width: 100%; display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px;
  background: rgba(255,255,255,0.02); text-align: left; cursor: pointer;
  transition: border-color 0.25s, background 0.25s;
}
.dp-pick:hover { border-color: rgba(255,255,255,0.28); background: rgba(255,255,255,0.05); }
.dp-pick[aria-pressed="true"] { border-color: rgba(37,211,102,0.6); background: rgba(37,211,102,0.08); }
.dp-pick-text { display: flex; flex-direction: column; min-width: 0; }
.dp-pick-text b { font-size: 13.5px; font-weight: 600; letter-spacing: -0.01em; }
.dp-pick-text small { font-size: 12px; color: var(--ink-dim); }

.dp { width: min(100%, 340px); justify-self: center; }
.dp-frame {
  padding: 9px; border-radius: 46px; background: #18181b;
  border: 1px solid var(--line-strong); box-shadow: 0 30px 80px rgba(0,0,0,0.55);
}
.dp-screen {
  position: relative; height: 640px; border-radius: 37px; overflow: hidden;
  display: flex; flex-direction: column; background: #0b141a; color: #e9edef;
}
.dp-notch {
  position: absolute; top: 9px; left: 50%; z-index: 2; transform: translateX(-50%);
  width: 92px; height: 24px; border-radius: 14px; background: #000;
}
.dp-list-view, .dp-chat-view { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.dp-screen[data-view="list"] .dp-chat-view,
.dp-screen[data-view="chat"] .dp-list-view { display: none; }

.dp-bar {
  flex: none; display: flex; align-items: center; gap: 8px;
  padding: 42px 14px 12px; background: #1f2c34;
}
.dp-bar-title { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.dp-list { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.dp-nojs { padding: 20px 16px; font-size: 13px; line-height: 1.5; color: #aebac1; }
.dp-nojs a { color: #25d366; text-decoration: underline; }

.dp-row {
  width: 100%; display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border: 0; background: none; text-align: left; cursor: pointer;
  color: #e9edef; transition: background 0.2s;
}
.dp-row:hover { background: #202c33; color: #e9edef; }
.dp-row-real { background: rgba(37,211,102,0.07); }
.dp-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.dp-row-top, .dp-row-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dp-name { font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-when { flex: none; font-size: 11.5px; color: #8696a0; }
.dp-row.has-unread .dp-when { color: #25d366; }
.dp-preview { font-size: 13px; color: #8696a0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-badge {
  flex: none; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px;
  display: grid; place-items: center; background: #25d366; color: #0b141a;
  font-size: 11px; font-weight: 700;
}
.dp-real-tag {
  margin-left: 4px; padding: 2px 5px; border-radius: 4px; vertical-align: 1px;
  background: #25d366; color: #0b141a;
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
}

.dp-av {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; font-size: 16px; font-weight: 700;
}
.dp-av-real { font-size: 12px; color: #0b141a; }
.dp-av-sm { width: 30px; height: 30px; font-size: 12px; }
.dp-av-head { width: 34px; height: 34px; font-size: 13px; }

.dp-chat-head { gap: 6px; padding-left: 6px; padding-right: 6px; }
.dp-head-text { flex: 1; min-width: 0; display: flex; flex-direction: column; margin-left: 4px; }
.dp-head-name { font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-head-sub { font-size: 11.5px; color: #8696a0; }
.dp-iconbtn {
  flex: none; width: 34px; height: 34px; border: 0; border-radius: 50%;
  display: grid; place-items: center; background: none; color: #aebac1; cursor: pointer;
}
.dp-iconbtn:hover { background: rgba(255,255,255,0.08); color: #fff; }

.dp-log { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 12px 10px; }
.dp-pane { display: flex; flex-direction: column; gap: 6px; }  /* one per chat, kept when you switch */
.dp-pane[hidden] { display: none; }

/* the notification banner: a reply arrived in a chat you're not in */
.dp-notif-wrap { position: absolute; z-index: 3; top: 40px; left: 8px; right: 8px; pointer-events: none; }
.dp-notif {
  width: 100%; display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px;
  border: 0; border-radius: 18px; background: rgba(38,52,61,0.96); color: #e9edef;
  box-shadow: 0 10px 28px rgba(0,0,0,0.5); text-align: left; font: inherit; cursor: pointer;
  pointer-events: auto; transform: translateY(-160%); opacity: 0; visibility: hidden;
  transition: transform 0.4s var(--ease), opacity 0.3s, visibility 0s 0.4s;
}
.dp-notif.is-on { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
.dp-notif:focus-visible { outline: 2px solid #25d366; outline-offset: 2px; }
.dp-notif-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dp-notif-top { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.dp-notif-top b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-notif-top small { flex: none; font-size: 11px; color: #8696a0; }
.dp-notif-text {
  font-size: 12.5px; line-height: 1.35; color: #d1d7db;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
@keyframes dp-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.dp-msg, .dp-sys, .dp-day, .dp-team, .dp-typing { animation: dp-in 0.25s var(--ease) both; }
.dp-msg {
  position: relative; flex: none; max-width: 84%; padding: 6px 9px 19px; border-radius: 9px;
  font-size: 13.5px; line-height: 1.42; overflow-wrap: anywhere;
}
.dp-msg strong { font-weight: 700; }
.dp-in { align-self: flex-start; background: #202c33; border-top-left-radius: 2px; }
.dp-out { align-self: flex-end; background: #005c4b; border-top-right-radius: 2px; }
.dp-time { position: absolute; right: 8px; bottom: 4px; font-size: 10.5px; color: rgba(233,237,239,0.6); }
.dp-out .dp-time::after { content: " \2713\2713"; color: #53bdeb; letter-spacing: -2px; }
.dp-sys, .dp-day {
  flex: none; align-self: center; max-width: 92%; padding: 5px 10px; border-radius: 8px;
  background: #182229; color: #8696a0; text-align: center; font-size: 11.5px; line-height: 1.4;
}
.dp-day { font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; }
.dp-team {
  flex: none; margin: 6px 2px 2px; padding: 10px 12px; border-radius: 12px;
  border: 1px dashed rgba(0,164,255,0.5); background: rgba(0,164,255,0.08);
  font-size: 12.5px; line-height: 1.45;
}
.dp-team-who {
  display: block; margin-bottom: 4px; color: #7cc8ff;
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.dp-typing { flex: none; align-self: flex-start; display: flex; gap: 4px; padding: 11px 12px; border-radius: 9px; background: #202c33; }
.dp-typing i { width: 6px; height: 6px; border-radius: 50%; background: #8696a0; animation: dp-dot 1s infinite; }
.dp-typing i:nth-child(2) { animation-delay: 0.15s; }
.dp-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dp-dot { 0%, 80%, 100% { opacity: 0.3; } 40% { opacity: 1; } }
.dp-voice { display: flex; align-items: center; gap: 8px; min-width: 176px; color: #e9edef; }
.dp-wave { flex: 1; display: flex; align-items: center; gap: 2px; height: 18px; }
.dp-wave i { width: 2px; border-radius: 1px; background: rgba(233,237,239,0.6); }
.dp-len { font-size: 11px; color: rgba(233,237,239,0.7); }

.dp-choices {
  flex: none; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px;
  padding: 8px 10px 14px; border-top: 1px solid rgba(134,150,160,0.13);
}
.dp-choices:empty { padding: 0; border-top: 0; }
.dp-hint { width: 100%; text-align: right; font-size: 10.5px; color: #8696a0; }
.dp-chip {
  max-width: 100%; padding: 7px 12px; border-radius: 16px; cursor: pointer;
  border: 1px solid rgba(37,211,102,0.55); background: rgba(37,211,102,0.1); color: #d9fdd3;
  font-size: 12.5px; line-height: 1.35; text-align: left;
  transition: background 0.2s, border-color 0.2s;
}
.dp-chip:hover { background: rgba(37,211,102,0.2); color: #fff; }
.dp-chip-ghost { border-color: rgba(134,150,160,0.45); background: transparent; color: #e9edef; }
.dp-chip-ghost:hover { background: rgba(255,255,255,0.08); }
.dp-chip-real { background: #25d366; border-color: #25d366; color: #0b141a; font-weight: 600; }
.dp-chip-real:hover { background: #3be07a; color: #0b141a; }
.dp-caption { margin-top: 12px; text-align: center; font-size: 12px; color: var(--ink-dimmer); }

@media (max-width: 900px) {
  .try-grid { grid-template-columns: minmax(0, 1fr); }
  .dp-picker { display: none; }  /* stacked, the phone's own chat list is the picker */
  .try-copy .lede { margin-bottom: 20px; }
}
@media (max-width: 420px) {
  .dp-screen { height: 580px; }
}
