/* ============================================================
   DBAI — AI Receptionist landing page
   Aesthetic: dark, premium SaaS · near-black base ·
   one restrained mauve accent.
   ============================================================ */

/* ---------- Fonts ---------- */
/* Satoshi (display + UI) via Fontshare, JetBrains Mono (technical labels) via Google */
@import url("https://api.fontshare.com/v2/css?f[]=satoshi@300,400,500,700,900&display=swap");

/* ---------- Tokens ---------- */
:root {
  --bg: #0a0a0c;
  --bg-soft: #101014;
  --bg-tint: #17171c;
  --surface: #15151a;

  --ink: #f3f3f1;
  --ink-2: #b7b7be;
  --ink-3: #7c7c86;
  --ink-on-dark: #f4f4f2;
  --ink-on-dark-2: #a9a9a6;

  --line: rgba(255, 255, 255, 0.11);
  --line-2: rgba(255, 255, 255, 0.06);

  /* the one accent — mauve. Tweakable. */
  --accent: oklch(0.67 0.16 308);
  --accent-2: oklch(0.77 0.14 308);
  --accent-soft: color-mix(in oklch, var(--accent) 20%, transparent);
  --accent-glow: oklch(0.67 0.16 308 / 0.30);

  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3), 0 1px 1px rgba(0,0,0,0.2);
  --shadow-md: 0 8px 20px -8px rgba(0,0,0,0.5), 0 2px 6px -2px rgba(0,0,0,0.35);
  --shadow-lg: 0 34px 70px -24px rgba(0,0,0,0.7), 0 12px 30px -16px rgba(0,0,0,0.5);

  --maxw: 1160px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-y: clamp(76px, 11vw, 132px);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --font: "Satoshi", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 8px;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 0 var(--accent-glow);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 var(--accent-glow); }
  70% { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

h1, h2, h3 { color: var(--ink); font-weight: 500; letter-spacing: -0.025em; line-height: 1.08; text-wrap: balance; }
.h-display { font-size: clamp(2.6rem, 6.2vw, 4.6rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.02; }
.h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
.lead { font-size: clamp(1.12rem, 1.7vw, 1.4rem); line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.accent-text { color: var(--accent-2); }

.section-head { max-width: 720px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .h2 { margin-top: 16px; }
.section-head .lead { margin-top: 18px; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--accent); --btn-fg: #fff; --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 0 22px; height: 52px;
  font-size: 16px; font-weight: 500; letter-spacing: -0.01em;
  color: var(--btn-fg); background: var(--btn-bg);
  border: 1px solid var(--btn-bd); border-radius: 11px;
  transition: transform .18s var(--ease-out), box-shadow .22s var(--ease), background .18s var(--ease), border-color .18s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { box-shadow: var(--shadow-md); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -12px var(--accent-glow); }
.btn-secondary { --btn-bg: var(--surface); --btn-fg: var(--ink); --btn-bd: var(--line); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { --btn-bg: var(--bg-tint); transform: translateY(-2px); border-color: rgba(255,255,255,0.2); }
.btn-block { width: 100%; }

/* dark-section button variants */
.on-dark .btn-primary { --btn-bg: var(--accent); --btn-fg: #fff; }
.on-dark .btn-primary:hover { box-shadow: 0 16px 38px -10px var(--accent-glow); }
.on-dark .btn-secondary { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255,255,255,0.28); box-shadow: none; }
.on-dark .btn-secondary:hover { --btn-bg: rgba(255,255,255,0.08); --btn-bd: rgba(255,255,255,0.5); }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.trust-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.01em; color: var(--ink-3);
}
.trust-row span { display: inline-flex; align-items: center; gap: 7px; }
.trust-row .tick { width: 14px; height: 14px; color: var(--accent-2); }

/* ============================================================
   Header / nav
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: 74px; display: flex; align-items: center;
  transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  border-bottom-color: var(--line-2);
}
.nav { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.02em; font-size: 19px; color: var(--ink); }
.brand-logo { height: 58px; width: auto; }
.brand .mark {
  position: relative; width: 32px; height: 32px; border-radius: 9px;
  background: var(--ink); display: grid; place-items: center; overflow: hidden;
}
.brand .mark svg { width: 22px; height: 22px; }
.brand .mark .bars { display: flex; align-items: center; gap: 2px; height: 13px; }
.brand .mark .bars i { width: 2px; border-radius: 2px; background: var(--accent); animation: brandbar 1.4s var(--ease) infinite; }
.brand .mark .bars i:nth-child(1){ height: 40%; animation-delay: 0s; }
.brand .mark .bars i:nth-child(2){ height: 90%; animation-delay: .2s; }
.brand .mark .bars i:nth-child(3){ height: 60%; animation-delay: .4s; }
.brand .mark .bars i:nth-child(4){ height: 100%; animation-delay: .1s; }
@keyframes brandbar { 0%,100%{ transform: scaleY(.5); } 50%{ transform: scaleY(1); } }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-link:hover { color: var(--ink); }
.nav-link { font-size: 15px; font-weight: 500; color: var(--ink-2); transition: color .15s var(--ease); }
.btn-sm { height: 42px; padding: 0 16px; font-size: 14.5px; border-radius: 9px; }
.nav-ghost { display: none; }
@media (min-width: 720px) { .nav-ghost { display: inline-flex; } }
.nav-book { display: none; }
@media (min-width: 720px) { .nav-book { display: inline-flex; } }

.lang-toggle {
  display: inline-flex; align-items: center; gap: 7px;
  height: 42px; padding: 0 13px; border-radius: 9px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
  font-family: var(--mono); font-size: 12.5px; font-weight: 600; letter-spacing: .04em;
  transition: color .15s var(--ease), border-color .15s var(--ease), background .15s var(--ease);
}
.lang-toggle svg { width: 15px; height: 15px; opacity: .75; }
.lang-toggle:hover { color: var(--ink); border-color: rgba(255,255,255,.22); background: var(--bg-tint); }

/* hamburger + mobile menu */
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line);
  background: var(--surface); border-radius: 10px; place-items: center; padding: 0;
  transition: border-color .15s var(--ease), background .15s var(--ease);
}
.nav-toggle:hover { border-color: rgba(255,255,255,.22); background: var(--bg-tint); }
.nt-bars { display: grid; gap: 4px; width: 18px; }
.nt-bars i { display: block; height: 2px; width: 100%; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s var(--ease); }
body.menu-open .nt-bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.menu-open .nt-bars i:nth-child(2) { opacity: 0; }
body.menu-open .nt-bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: absolute; top: 100%; left: 0; right: 0;
  display: flex; flex-direction: column; gap: 4px;
  padding: 12px var(--gutter) 20px;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--line);
  opacity: 0; visibility: hidden; transform: translateY(-10px);
}
html.anim .mobile-menu {
  transition: opacity .22s var(--ease), transform .22s var(--ease-out), visibility .22s var(--ease);
}
.mobile-menu.open { opacity: 1; visibility: visible; transform: none; }
.mm-link {
  font-size: 17px; font-weight: 500; color: var(--ink); padding: 13px 4px;
  border-bottom: 1px solid var(--line-2);
}
.mm-link:hover { color: var(--accent-2); }
.mobile-menu .btn { margin-top: 14px; height: 50px; }

@media (max-width: 719px) {
  .nav-toggle { display: grid; }
}
@media (max-width: 560px) {
  .site-header .nav-actions a[data-demo-call] span[data-i18n] { display: none; }
  .site-header .nav-actions a[data-demo-call] { padding: 0 13px; }
  .brand-logo { height: 46px; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; padding-top: clamp(120px, 16vw, 168px); padding-bottom: var(--section-y); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 50% at 78% 6%, var(--accent-glow), transparent 70%),
    radial-gradient(46% 40% at 6% 0%, rgba(255,255,255,0.035), transparent 70%);
  opacity: .9; pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1fr; gap: clamp(48px, 6vw, 72px); align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; } }
.hero-copy { max-width: 600px; }
.hero h1 { margin-top: 22px; }
.hero h1 .ul { position: relative; white-space: nowrap; }
.hero h1 .ul::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.06em; height: 0.10em; border-radius: 2px;
  background: var(--accent); transform-origin: left;
}
@media (prefers-reduced-motion: no-preference) {
  html.anim .hero h1 .ul::after { transform: scaleX(0); transition: transform .8s .5s var(--ease-out); }
  html.anim.is-loaded .hero h1 .ul::after { transform: scaleX(1); }
}
.hero .lead { margin-top: 22px; }
.hero .cta-row { margin-top: 32px; }
.hero .trust-row { margin-top: 24px; }

/* live call card */
.call-card-wrap { position: relative; width: 100%; max-width: 440px; margin-inline: auto; }
.call-card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-xl); box-shadow: var(--shadow-lg); overflow: hidden;
  width: 100%;
}
.call-card .cc-top {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px; border-bottom: 1px solid var(--line-2);
}
.cc-avatar {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  background: var(--accent); display: grid; place-items: center;
}
.cc-avatar .bars { display: flex; align-items: center; gap: 2.5px; height: 16px; }
.cc-avatar .bars i { width: 2.5px; border-radius: 2px; background: #fff; }
.cc-id { display: flex; flex-direction: column; gap: 2px; line-height: 1.2; }
.cc-id b { color: var(--ink); font-weight: 600; font-size: 15px; }
.cc-id .live { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; color: var(--accent-2); }
.cc-id .live .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
.cc-timer { margin-left: auto; font-family: var(--mono); font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

.cc-wave { display: flex; align-items: center; justify-content: center; gap: 3px; height: 56px; padding: 0 18px; border-bottom: 1px solid var(--line-2); }
.cc-wave i { width: 3px; border-radius: 3px; background: color-mix(in oklch, var(--accent) 70%, var(--ink) 0%); opacity: .85; }
[data-motion="on"] .cc-wave i { animation: wave 1.1s var(--ease) infinite; }

.cc-body { padding: 18px; display: flex; flex-direction: column; gap: 12px; min-height: 232px; }
.bubble {
  max-width: 84%; padding: 11px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.45;
  opacity: 1; transform: none;
}
@media (prefers-reduced-motion: no-preference) {
  html.anim [data-motion="on"] .bubble { transition: opacity .45s var(--ease-out), transform .45s var(--ease-out); }
  html.anim [data-motion="on"] .bubble:not(.show) { opacity: 0; transform: translateY(8px); }
}
.bubble.caller { align-self: flex-start; background: var(--bg-tint); color: var(--ink-2); border-bottom-left-radius: 5px; }
.bubble.agent { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 5px; }
.bubble .who { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; opacity: .55; margin-bottom: 4px; }
.cc-foot {
  display: flex; align-items: center; gap: 10px; padding: 13px 18px;
  border-top: 1px solid var(--line-2); background: var(--accent-soft);
  font-size: 13.5px; color: var(--accent-2); font-weight: 500;
  opacity: 1; transform: none;
}
@media (prefers-reduced-motion: no-preference) {
  html.anim [data-motion="on"] .cc-foot { transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
  html.anim [data-motion="on"] .cc-foot:not(.show) { opacity: 0; transform: translateY(6px); }
}
.cc-foot svg { width: 17px; height: 17px; flex: none; }

@keyframes wave { 0%,100% { transform: scaleY(0.35); } 50% { transform: scaleY(1); } }

/* floating side chip */
.call-card-wrap .ping {
  position: absolute; top: -14px; right: -10px; z-index: 2;
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 13px; font-size: 12.5px; font-weight: 600; color: var(--ink);
  box-shadow: var(--shadow-md); white-space: nowrap;
}
.call-card-wrap .ping .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
@media (max-width: 520px) { .call-card-wrap .ping { display: none; } }

/* ============================================================
   Stats
   ============================================================ */
.stats { background: var(--bg-soft); padding-block: var(--section-y); border-block: 1px solid var(--line-2); }
.stats .section-head { margin-bottom: clamp(36px, 5vw, 56px); }
.stat-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 720px) { .stat-grid { grid-template-columns: 1fr 1fr; } }
.stat-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
}
.stat-card .num { font-size: clamp(3.4rem, 8vw, 5.4rem); font-weight: 600; letter-spacing: -0.045em; color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; }
.stat-card .num .unit { color: var(--accent-2); }
.stat-card .desc { margin-top: 14px; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-2); max-width: 22ch; }
.stat-card .meter { margin-top: 22px; height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.stat-card .meter i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); width: 0; transition: width 1.4s var(--ease-out); }
.stats-support { margin-top: clamp(32px, 4vw, 48px); text-align: center; max-width: 680px; margin-inline: auto; }

/* ============================================================
   Features
   ============================================================ */
.features { padding-block: var(--section-y); }
.features .section-head { margin-bottom: clamp(40px, 5vw, 64px); }
.feature-grid { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); border-radius: var(--r-lg); overflow: hidden; }
@media (min-width: 640px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 940px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature {
  background: var(--surface); padding: clamp(26px, 3vw, 36px);
  display: flex; flex-direction: column; gap: 14px;
  transition: background .25s var(--ease);
}
.feature:hover { background: var(--bg-tint); }
.feature .ico {
  width: 46px; height: 46px; border-radius: 12px; flex: none;
  display: grid; place-items: center; color: var(--ink);
  background: var(--bg-tint); border: 1px solid var(--line);
  transition: color .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
}
.feature .ico svg { width: 22px; height: 22px; }
.feature:hover .ico { color: var(--accent-2); background: var(--accent-soft); border-color: color-mix(in oklch, var(--accent) 50%, transparent); }
.feature h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.02em; }
.feature p { font-size: 15.5px; color: var(--ink-2); line-height: 1.55; }

/* ============================================================
   How it works
   ============================================================ */
.how { background: var(--bg-soft); padding-block: var(--section-y); border-block: 1px solid var(--line-2); }
.how .section-head { margin-bottom: clamp(44px, 5vw, 64px); }
.steps { display: grid; grid-template-columns: 1fr; gap: 28px; position: relative; list-style: none; margin: 0; padding: 0; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(26px, 3vw, 36px); box-shadow: var(--shadow-sm); }
.step .idx { font-family: var(--mono); font-size: 14px; font-weight: 600; color: var(--accent-2); letter-spacing: .04em; }
.step h3 { margin-top: 18px; font-size: 1.3rem; font-weight: 600; letter-spacing: -0.02em; }
.step p { margin-top: 10px; font-size: 15.5px; color: var(--ink-2); }
.step .connector { display: none; }
@media (min-width: 820px) {
  .step .connector { display: block; position: absolute; top: 50%; right: -32px; width: 32px; height: 1px; background: var(--line); }
  .step .connector::after { content: ""; position: absolute; right: -1px; top: -3px; width: 7px; height: 7px; border-right: 1px solid var(--line); border-top: 1px solid var(--line); transform: rotate(45deg); }
  .step:last-child .connector { display: none; }
}

/* ============================================================
   Benefits
   ============================================================ */
.benefits { padding-block: var(--section-y); }
.benefits .section-head { margin-bottom: clamp(40px, 5vw, 60px); }
.benefit-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 820px) { .benefit-grid { grid-template-columns: repeat(3, 1fr); } }
.benefit { padding-top: 26px; border-top: 2px solid var(--accent); }
.benefit .ico { width: 26px; height: 26px; color: var(--accent-2); margin-bottom: 18px; }
.benefit h3 { font-size: 1.4rem; font-weight: 600; letter-spacing: -0.02em; }
.benefit p { margin-top: 12px; font-size: 16px; color: var(--ink-2); }

/* ============================================================
   Final CTA (the one dark section)
   ============================================================ */
.final { position: relative; background: #050506; color: var(--ink-on-dark); padding-block: clamp(84px, 12vw, 148px); overflow: hidden; }
.final::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(60% 70% at 50% 120%, var(--accent-glow), transparent 70%);
  opacity: .9;
}
.final .finalwave {
  position: absolute; inset: auto 0 0 0; height: 120px; z-index: 0;
  display: flex; align-items: flex-end; justify-content: center; gap: 5px; opacity: .22;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
}
.final .finalwave i { width: 4px; border-radius: 3px; background: var(--accent); }
[data-motion="on"] .final .finalwave i { animation: wave 1.3s var(--ease) infinite; }
.final .inner { position: relative; z-index: 1; text-align: center; max-width: 720px; margin-inline: auto; }
.final-badge { height: 80px; width: auto; display: block; margin: 0 auto 28px; opacity: .96; }
.final h2 { color: #fff; font-size: clamp(2.2rem, 5.5vw, 3.8rem); font-weight: 600; letter-spacing: -0.035em; }
.final .lead { color: var(--ink-on-dark-2); margin-top: 20px; }
.final .cta-row { margin-top: 36px; justify-content: center; }
.final .trust-row { margin-top: 26px; justify-content: center; color: var(--ink-on-dark-2); }
.final .trust-row .tick { color: var(--accent); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--bg); border-top: 1px solid var(--line); padding-block: 44px; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 28px; justify-content: space-between; }
.foot-emblem img { height: 88px; width: auto; display: block; }
.foot-links { display: flex; flex-wrap: wrap; gap: 22px; font-size: 14.5px; color: var(--ink-3); }
.foot-links a { transition: color .15s var(--ease); }
.foot-links a:hover { color: var(--ink); }
.foot-copy { font-size: 13.5px; color: var(--ink-3); width: 100%; padding-top: 22px; margin-top: 6px; border-top: 1px solid var(--line-2); }

/* ============================================================
   Reveal-on-scroll
   ============================================================ */
.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  html.anim [data-motion="on"] .reveal { transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
  html.anim [data-motion="on"] .reveal:not(.in) { opacity: 0; transform: translateY(22px); }
}
.reveal.d1 { transition-delay: .06s; }
.reveal.d2 { transition-delay: .12s; }
.reveal.d3 { transition-delay: .18s; }
.reveal.d4 { transition-delay: .24s; }
.reveal.d5 { transition-delay: .30s; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .bubble, .cc-foot { opacity: 1 !important; transform: none !important; transition: none !important; }
}
/* hard rescue: if animations are enabled but never settle, show everything */
html.no-anim .reveal, html.no-anim .bubble, html.no-anim .cc-foot { opacity: 1 !important; transform: none !important; transition: none !important; }
html.no-anim .stat-card .meter i { transition: none; }

/* ============================================================
   Modal
   ============================================================ */
.modal-scrim {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center;
  padding: 20px; background: rgba(0,0,0,0.62);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), visibility .25s var(--ease);
}
.modal-scrim.open { opacity: 1; visibility: visible; }
.modal {
  width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-xl); box-shadow: var(--shadow-lg); overflow: hidden;
  transform: translateY(14px) scale(.98); transition: transform .3s var(--ease-out);
}
.modal-scrim.open .modal { transform: none; }
.modal-head { padding: 26px 26px 0; }
.modal-head .micon {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: var(--accent); color: #fff; margin-bottom: 18px;
}
.modal-head .micon svg { width: 22px; height: 22px; }
.modal-head h3 { font-size: 1.45rem; font-weight: 600; letter-spacing: -0.02em; }
.modal-head p { margin-top: 8px; font-size: 15px; color: var(--ink-2); }
.modal-body { padding: 22px 26px 26px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 7px; letter-spacing: -0.01em; }
.field input {
  width: 100%; height: 50px; padding: 0 15px; font-family: inherit; font-size: 16px; color: var(--ink);
  background: var(--bg-tint); border: 1px solid var(--line); border-radius: 11px; outline: none;
  transition: border-color .15s var(--ease), background .15s var(--ease), box-shadow .15s var(--ease);
}
.field input::placeholder { color: var(--ink-3); }
.field input:focus { border-color: var(--accent-2); background: var(--surface); box-shadow: 0 0 0 4px var(--accent-glow); }
.field.err input { border-color: oklch(0.6 0.2 25); box-shadow: 0 0 0 4px oklch(0.6 0.2 25 / 0.16); }
.field .msg { font-size: 12.5px; color: oklch(0.72 0.19 25); margin-top: 6px; min-height: 1em; }
.slots { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 8px; }
.slot {
  height: 52px; border: 1px solid var(--line); border-radius: 11px; background: var(--bg-tint);
  color: var(--ink); font-size: 14px; font-weight: 500; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1px; transition: all .15s var(--ease);
}
.slot small { font-family: var(--mono); font-size: 11px; color: var(--ink-3); font-weight: 400; }
.slot:hover { border-color: rgba(255,255,255,0.22); background: var(--bg-tint); }
.slot[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.slot[aria-pressed="true"] small { color: rgba(255,255,255,0.7); }
.modal .btn { margin-top: 10px; }
.modal-x {
  position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border-radius: 9px;
  display: grid; place-items: center; border: none; background: transparent; color: var(--ink-3);
  transition: background .15s var(--ease), color .15s var(--ease);
}
.modal-x:hover { background: var(--bg-soft); color: var(--ink); }
.modal-wrap { position: relative; }
.modal-foot-note { margin-top: 14px; font-size: 12.5px; color: var(--ink-3); text-align: center; }

/* success state */
.modal-success { padding: 38px 30px 34px; text-align: center; display: none; }
.modal.is-success .modal-head, .modal.is-success .modal-body { display: none; }
.modal.is-success .modal-success { display: block; }
.success-ring {
  width: 72px; height: 72px; margin: 0 auto 22px; border-radius: 50%;
  background: var(--accent-soft); display: grid; place-items: center; color: var(--accent-2);
}
.success-ring svg { width: 34px; height: 34px; }
.modal-success h3 { font-size: 1.4rem; font-weight: 600; }
.modal-success p { margin-top: 10px; font-size: 15px; color: var(--ink-2); }
.modal-success .ringing { display: inline-flex; align-items: center; gap: 9px; margin-top: 18px; font-family: var(--mono); font-size: 13px; color: var(--accent-2); }
.modal-success .ringing .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 1.4s infinite; }
.spinner { width: 18px; height: 18px; border: 2px solid var(--line); border-top-color: var(--ink); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn[aria-busy="true"] { pointer-events: none; opacity: .85; }

/* ============================================================
   Tweaks panel (vanilla, host-protocol compatible)
   ============================================================ */
.twk-panel {
  position: fixed; right: 16px; bottom: 16px; z-index: 2147483646; width: 264px;
  background: rgba(22,22,27,.86); color: var(--ink);
  -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%);
  border: .5px solid rgba(255,255,255,.12); border-radius: 14px;
  box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 16px 50px rgba(0,0,0,.55);
  font: 12px/1.4 var(--font); overflow: hidden;
}
.twk-hd { display: flex; align-items: center; justify-content: space-between; padding: 11px 9px 11px 15px; }
.twk-hd b { font-size: 12.5px; font-weight: 600; }
.twk-x { border: 0; background: transparent; color: rgba(255,255,255,.55); width: 24px; height: 24px; border-radius: 6px; font-size: 14px; }
.twk-x:hover { background: rgba(255,255,255,.1); color: var(--ink); }
.twk-body { padding: 2px 15px 16px; display: flex; flex-direction: column; gap: 14px; }
.twk-sect { font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.twk-row { display: flex; flex-direction: column; gap: 8px; }
.twk-row.h { flex-direction: row; align-items: center; justify-content: space-between; }
.twk-lbl { font-weight: 500; color: rgba(255,255,255,.82); }
.twk-chips { display: flex; gap: 7px; }
.twk-chip { flex: 1; height: 30px; border-radius: 8px; border: 0; box-shadow: 0 0 0 .5px rgba(0,0,0,.4), 0 1px 2px rgba(0,0,0,.3); position: relative; transition: transform .12s var(--ease-out), box-shadow .12s; }
.twk-chip:hover { transform: translateY(-1px); }
.twk-chip[data-on="1"] { box-shadow: 0 0 0 2px var(--ink), 0 2px 6px rgba(0,0,0,.4); }
.twk-toggle { position: relative; width: 34px; height: 20px; border: 0; border-radius: 999px; background: rgba(255,255,255,.2); transition: background .15s; padding: 0; }
.twk-toggle[data-on="1"] { background: var(--accent-2); }
.twk-toggle i { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s; }
.twk-toggle[data-on="1"] i { transform: translateX(14px); }
.twk-seg { display: flex; padding: 2px; border-radius: 9px; background: rgba(255,255,255,.08); }
.twk-seg button { flex: 1; border: 0; background: transparent; color: rgba(255,255,255,.6); font: inherit; font-weight: 500; height: 26px; border-radius: 7px; }
.twk-seg button[data-on="1"] { background: rgba(255,255,255,.16); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.2); }
