/* ==========================================================================
   Bigome: brand stylesheet
   Palette taken from the Bigome logo: coral red "G" (#F05465) + white on near-black
   ========================================================================== */

:root {
  /* Dark theme (default) */
  --bg: #0a0a0f;
  --bg-2: #0f0f15;
  --surface: #14141c;
  --surface-2: #1c1c26;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.15);
  --text: #f6f6f9;
  --text-2: #dadae2;
  --muted: #a9a9b6;
  --dim: #767683;
  --primary: #f05465;          /* logo coral */
  --primary-2: #ff7a59;        /* warm companion */
  --primary-soft: rgba(240, 84, 101, 0.14);
  --primary-line: rgba(240, 84, 101, 0.45);
  --peach: #ffb4a2;
  --live: #34d399;
  --warn: #fbbf24;
  --danger: #ef4444;
  --success: #22c55e;
  --on-primary: #fff;
  --grad: linear-gradient(135deg, #f05465 0%, #ff7a59 100%);
  --grad-soft: linear-gradient(135deg, rgba(240, 84, 101, .16), rgba(255, 122, 89, .08));
  --glass: rgba(255, 255, 255, .035);
  --track: rgba(255, 255, 255, .08);
  --nav-bg: rgba(10, 10, 15, .78);
  --mega-bg: rgba(20, 20, 28, .98);
  --stage: radial-gradient(circle at 50% 42%, #3a1520 0%, #0b0a0e 70%);
  --self-bg: #0d0c11;
  --ctrl-hover: #272733;
  --overlay: rgba(3, 3, 6, .78);
  --ok-text: #86efac;
  --err-text: #fca5a5;
  --rec-text: #fda4af;
  --fx: 1;                     /* background glow strength */
  --map-filter: grayscale(.6) invert(.9) hue-rotate(180deg) contrast(.9);
  --logo-filter: none;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, .7);
  --glow: 0 0 0 1px rgba(240, 84, 101, .4), 0 12px 40px -12px rgba(240, 84, 101, .6);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Outfit", "Inter", system-ui, sans-serif;
  color-scheme: dark;
}

/* Light theme: warm whites, deeper coral for contrast on white */
:root[data-theme="light"] {
  --bg: #fbf8f7;
  --bg-2: #f5f0ef;
  --surface: #ffffff;
  --surface-2: #f8f3f2;
  --line: rgba(28, 20, 26, 0.08);
  --line-strong: rgba(28, 20, 26, 0.15);
  --text: #17131a;
  --text-2: #3a3540;
  --muted: #5e5866;
  --dim: #857f8d;
  --primary: #e03a4e;
  --primary-2: #f26b4b;
  --primary-soft: rgba(224, 58, 78, 0.09);
  --primary-line: rgba(224, 58, 78, 0.35);
  --peach: #c2410c;
  --live: #059669;
  --warn: #d97706;
  --grad: linear-gradient(135deg, #e8465a 0%, #f47350 100%);
  --grad-soft: linear-gradient(135deg, rgba(240, 84, 101, .10), rgba(255, 122, 89, .05));
  --glass: rgba(28, 20, 26, .03);
  --track: rgba(28, 20, 26, .08);
  --nav-bg: rgba(251, 248, 247, .82);
  --mega-bg: rgba(255, 255, 255, .98);
  --stage: radial-gradient(circle at 50% 42%, #ffe3de 0%, #f3e6e7 72%);
  --self-bg: #ece5e5;
  --ctrl-hover: #efe7e6;
  --overlay: rgba(40, 30, 36, .45);
  --ok-text: #15803d;
  --err-text: #b91c1c;
  --rec-text: #be123c;
  --fx: .45;
  --map-filter: none;
  --logo-filter: invert(1) hue-rotate(180deg) saturate(1.3);
  --shadow: 0 24px 60px -28px rgba(60, 30, 40, .28);
  --glow: 0 0 0 1px rgba(224, 58, 78, .25), 0 12px 32px -14px rgba(224, 58, 78, .55);
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font); background: var(--bg); color: var(--text); font-size: 15px;
  line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
  transition: background-color .3s, color .3s;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
address { font-style: normal; }
.ico { flex-shrink: 0; }
[hidden] { display: none !important; }  /* components set display; hidden must still win */

:root { --gutter: clamp(16px, 3vw, 40px); }
.container { width: min(1560px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
h1 em, h2 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.link { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 999; padding: 8px 14px; border-radius: 8px; background: var(--primary); color: #fff; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 15px;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s; white-space: nowrap;
}
.btn-primary { background: var(--grad); color: var(--on-primary); box-shadow: var(--glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(240,84,101,.6), 0 18px 50px -12px rgba(240,84,101,.85); }
.btn-ghost { border: 1px solid var(--line-strong); background: var(--glass); }
.btn-ghost:hover { border-color: var(--primary); background: var(--primary-soft); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px;
  border: 1px solid var(--line-strong); border-radius: 999px; font-size: 13px; color: var(--muted);
  background: var(--glass);
}
.pill .ico { color: var(--primary); }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 rgba(52,211,153,.7); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }

/* ---------- Theme toggle ---------- */
.theme-toggle { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line-strong); background: var(--glass); color: var(--muted); transition: color .2s, border-color .2s, transform .2s; flex-shrink: 0; }
.theme-toggle:hover { color: var(--primary); border-color: var(--primary-line); transform: rotate(-12deg); }
.theme-toggle .t-moon, [data-theme="light"] .theme-toggle .t-sun { display: none; }
[data-theme="light"] .theme-toggle .t-moon { display: block; }

/* ---------- Background FX ---------- */
.bg-fx { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-fx .orb { position: absolute; border-radius: 50%; filter: blur(110px); }
.bg-fx .orb-1 { width: 560px; height: 560px; background: #f05465; top: -220px; left: -160px; opacity: calc(.22 * var(--fx)); }
.bg-fx .orb-2 { width: 480px; height: 480px; background: #ff7a59; top: 35%; right: -200px; opacity: calc(.14 * var(--fx)); }
.bg-fx .orb-3 { width: 420px; height: 420px; background: #8b1e3f; bottom: -180px; left: 30%; opacity: calc(.2 * var(--fx)); }
.bg-fx .grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; opacity: .35;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 15%, transparent 65%);
}

/* ==========================================================================
   NAV
   ========================================================================== */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(16px); background: var(--nav-bg); border-bottom: 1px solid var(--line); }
.nav-inner { position: relative; display: flex; align-items: center; justify-content: space-between; height: var(--ui-header, 60px); gap: 20px; }
.logo { display: inline-flex; align-items: center; }
.logo img, .logo-img { height: 34px; width: auto; filter: var(--logo-filter); }
.nav-links { display: flex; gap: 30px; font-size: 15px; color: var(--muted); align-items: center; }
.nav-links > a, .has-mega > a { padding: 8px 0; transition: color .2s; position: relative; white-space: nowrap; }
.logo { flex: none; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links > a.active::after, .has-mega > a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--grad); }
.caret { font-size: 11px; opacity: .7; }
.has-mega { position: static; }
.mega {
  position: absolute; top: 100%; left: 50%; transform: translate(-50%, 8px); width: min(1120px, calc(100vw - 32px));
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; padding: 26px;
  background: var(--mega-bg); border: 1px solid var(--line-strong); border-radius: 20px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
}
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega-col h6 { font-size: 11.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--primary); margin-bottom: 10px; }
.mega-col a { display: flex; align-items: center; gap: 10px; padding: 8px; margin: 0 -8px; border-radius: 10px; font-size: 14px; color: var(--text); }
.mega-col a:hover { background: var(--primary-soft); }
.mi { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-2); color: var(--primary); flex-shrink: 0; }
.nav-cta { display: flex; gap: 14px; align-items: center; }
.nav-phone { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.nav-phone:hover { color: var(--text); }
.nav-phone .ico { color: var(--primary); }
.nav-toggle { display: none; padding: 6px; }
/* Region and currency (money.js) */
.row-tight { display: inline-flex; align-items: center; gap: 8px; }
.locale { position: relative; }
.locale-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 10px; border: 1px solid var(--line-strong); background: transparent; color: var(--muted); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.locale-btn:hover, .locale-btn[aria-expanded="true"] { color: var(--text); border-color: var(--primary-line); }
.locale-pop { position: absolute; right: 0; top: calc(100% + 10px); width: 300px; padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow); z-index: 60; }
.locale-help { font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.bgm-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bgm-picker label { display: grid; gap: 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
.bgm-picker select { width: 100%; padding: 7px 8px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--text); font: inherit; font-size: 13px; }
.bgm-approx { color: var(--muted); font-weight: 500; font-size: .85em; white-space: nowrap; }
@media (max-width: 600px) { .locale-pop { position: fixed; left: 16px; right: 16px; top: 70px; width: auto; } }
.cta-short { display: none; }
@media (max-width: 1000px) { .cta-long { display: none; } .cta-short { display: inline; } .nav-links { gap: 14px; font-size: 14px; } }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--dim); padding-top: 22px; }
.crumbs a:hover { color: var(--text); }
.crumbs [aria-current] { color: var(--muted); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { padding: 80px 0 50px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.hero h1, .page-hero h1 {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.06; letter-spacing: -0.03em; margin: 20px 0 18px;
}
.lead { font-size: 16.5px; color: var(--muted); max-width: 600px; }
.lead-sm { font-size: 16.5px; color: var(--muted); margin: 14px 0 22px; }
.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-actions.center { justify-content: center; }
.hero-proof { list-style: none; display: flex; gap: 36px; margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line); }
.hero-proof b { display: block; font-family: var(--font-display); font-size: 28px; }
.hero-proof span { color: var(--dim); font-size: 13px; }

.hero-visual { position: relative; min-height: 460px; }
.hv-card { position: absolute; background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line-strong); border-radius: 22px; box-shadow: var(--shadow); }
.hv-main { inset: 0 40px 40px 0; padding: 14px; display: flex; flex-direction: column; }
.hv-top { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); padding: 4px 6px 12px; }
.rec { display: inline-flex; align-items: center; gap: 6px; color: var(--rec-text); font-weight: 600; }
.rec::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--danger); animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.hv-stage { position: relative; flex: 1; border-radius: 16px; display: grid; place-items: center; background: var(--stage); border: 1px solid var(--line); }
.hv-stage { min-height: 0; }
.hv-stage .ai-orb { width: min(38%, 170px); }
.hv-name { position: absolute; left: 12px; bottom: 12px; font-size: 12px; padding: 4px 10px; border-radius: 8px; background: rgba(0,0,0,.5); color: #fff; }
.hv-chat { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; }
.bubble-mini { font-size: 12.5px; padding: 9px 13px; border-radius: 14px; max-width: 82%; }
.bubble-mini.ai { background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.bubble-mini.me { background: var(--grad); color: var(--on-primary); align-self: flex-end; border-bottom-right-radius: 4px; }
.hv-est { right: 0; top: 40px; width: 210px; padding: 16px; animation: float 6s ease-in-out infinite; }
.hv-est small, .hv-tags small { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--dim); }
.hv-est b { display: block; font-family: var(--font-display); font-size: 26px; margin: 4px 0; }
.hv-est span { font-size: 12px; color: var(--muted); display: block; margin-top: 8px; }
.hv-tags { right: 10px; bottom: 0; width: 240px; padding: 14px; animation: float 6s ease-in-out infinite -3s; }
.hv-tags .tags { margin-top: 8px; }
@keyframes float { 50% { transform: translateY(-10px); } }
.bar { height: 6px; border-radius: 6px; background: var(--track); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--grad); border-radius: 6px; }

/* ---------- Home hero: animated AI estimate (sample data, assets/js/hero.js) ---------- */
.ai-hero { min-height: 560px; }
.ai-hero .hv-main { inset: 0 64px 150px 0; }
.ai-hero .hv-stage { overflow: hidden; }
.ah-grid { position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 26px 26px; mask-image: radial-gradient(circle at 50% 45%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 45%, #000 20%, transparent 75%); animation: ahGrid 12s linear infinite; }
@keyframes ahGrid { to { background-position: 0 26px, 26px 0; } }
.ah-scan { position: absolute; left: 0; right: 0; top: 0; height: 40%; opacity: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(240, 84, 101, .22) 85%, rgba(255, 180, 162, .7) 100%); }
.is-scan .ah-scan { animation: ahScan 1.6s ease-in-out infinite; }
@keyframes ahScan { 0% { transform: translateY(-100%); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(250%); opacity: 0; } }
.ah-sample { position: absolute; top: 10px; left: 10px; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 6px; background: rgba(0, 0, 0, .45); color: #fff; }
.live-tag::before { background: var(--live); }
.live-tag { color: var(--live); }
.ah-caret { display: none; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: currentColor; animation: blink .8s infinite; }
.is-typing .ah-caret { display: inline-block; }
.ai-hero .bubble-mini.me { min-height: 34px; }
.ah-chips { display: flex; flex-wrap: wrap; gap: 6px; min-height: 26px; padding-top: 10px; }
.ah-chips .tag { font-size: 11.5px; padding: 3px 8px; }
.ah-pop { animation: ahPop .35s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes ahPop { from { opacity: 0; transform: scale(.6) translateY(4px); } }

.ah-est { width: 224px; top: 58px; }
.ah-est small { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.ah-spark { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 0 rgba(240, 84, 101, .6); }
.is-scan .ah-spark { animation: ahPing 1s infinite; }
.is-done .ah-spark { background: var(--live); }
@keyframes ahPing { 70% { box-shadow: 0 0 0 7px rgba(240, 84, 101, 0); } }
.ah-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: 12.5px; color: var(--muted); border-bottom: 1px dashed var(--line); }
.ah-row:last-of-type { border-bottom: 0; margin-bottom: 8px; }
.ai-hero .ah-row b { font-family: var(--font-display); font-size: 15px; margin: 0; color: var(--text); display: inline-flex; align-items: center; gap: 3px; }
.ah-sym i { font-style: normal; color: var(--dim); opacity: .45; transition: color .25s, opacity .25s, transform .25s; }
.ah-sym i.on { color: var(--primary); opacity: 1; transform: translateY(-1px); text-shadow: 0 0 12px rgba(240, 84, 101, .55); }
.ah-sym.sm { font-size: 13px; }
.ah-team i { width: 9px; height: 9px; border-radius: 50%; background: var(--grad); display: inline-block; }
.ah-est .bar i { width: 0; transition: width .35s ease; }

.ah-flow { left: 28px; right: 0; bottom: 0; padding: 14px 16px 12px; animation: float 7s ease-in-out infinite -2s; }
.ah-flow small { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--dim); margin-bottom: 10px; }
.ah-steps { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; position: relative; }
.ah-steps::before { content: ""; position: absolute; left: 8%; right: 8%; top: 15px; height: 1px; background: var(--line-strong); }
.ah-steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; }
.ah-node { width: 31px; height: 31px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line-strong); color: var(--dim); transition: all .3s; }
.ah-steps li b { font-size: 11px; font-weight: 600; color: var(--muted); margin-top: 3px; }
.ah-steps li em { font-style: normal; font-size: 9px; line-height: 1.2; letter-spacing: .04em; text-transform: uppercase; color: var(--dim); }
.ah-steps li.run .ah-node { border-color: var(--primary); color: var(--primary); animation: ahPing 1s infinite; }
.ah-steps li.on .ah-node { background: var(--grad); border-color: transparent; color: var(--on-primary); box-shadow: 0 0 18px rgba(240, 84, 101, .45); }
.ah-steps li.on b { color: var(--text); }
.ah-steps li.on em { color: var(--primary); }
.ah-steps li.on em.hu, .ah-steps li.on em.mix { color: var(--peach); }
/* build animation inside the stage: step 1 build & review, step 2 deploy & support */
.ai-hero .hv-stage { isolation: isolate; }   /* keeps the build panel under the estimate card */
.ah-build { position: absolute; inset: 10px 160px 10px 10px; z-index: 3; display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 90%, transparent); border: 1px solid var(--line-strong); backdrop-filter: blur(6px);
  opacity: 0; transform: translateY(8px) scale(.98); transition: opacity .35s, transform .35s; pointer-events: none; }
.ah-build.show { opacity: 1; transform: none; }
.ah-bhead { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; color: var(--muted); }
.ah-bhead b { font-family: var(--font-display); font-size: 13px; color: var(--primary); }
.ah-build.deploy .ah-bhead b { color: var(--live); }
.ah-code { display: grid; gap: 5px; }
.ah-code i { display: block; height: 5px; border-radius: 4px; background: var(--grad); transform-origin: left; transform: scaleX(0); }
.ah-code i:nth-child(1) { width: 82%; } .ah-code i:nth-child(2) { width: 60%; margin-left: 10%; }
.ah-code i:nth-child(3) { width: 70%; margin-left: 10%; } .ah-code i:nth-child(4) { width: 45%; }
.ah-build.run .ah-code i { animation: ahCode .5s ease-out forwards; }
.ah-build.run .ah-code i:nth-child(2) { animation-delay: .45s; } .ah-build.run .ah-code i:nth-child(3) { animation-delay: .9s; }
.ah-build.run .ah-code i:nth-child(4) { animation-delay: 1.35s; }
.ah-build.deploy .ah-code i { background: linear-gradient(90deg, var(--live), #6ee7b7); }
@keyframes ahCode { to { transform: scaleX(1); } }
.ah-checks { list-style: none; display: grid; grid-template-columns: 1fr; gap: 5px 8px; margin: 0; padding: 0; }
.ah-checks li { position: relative; padding-left: 15px; font-size: 10.5px; line-height: 1.3; color: var(--text-2); }
.ah-checks li::before { content: "\2713"; position: absolute; left: 0; top: 0; font-weight: 700; color: var(--primary); }
.ah-checks li.hu::before, .ah-checks li.mix::before { color: var(--peach); }
.ah-checks li.ok::before { color: var(--live); }

.ah-track { height: 3px; border-radius: 3px; background: var(--track); margin-top: 10px; overflow: hidden; }
.ah-track i { display: block; height: 100%; width: 0; background: var(--grad); transition: width .5s ease; }

/* ---------- AI Orb ---------- */
.ai-orb { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.ai-orb .core {
  width: 62%; aspect-ratio: 1; border-radius: 50%; position: relative; z-index: 2;
  background: radial-gradient(circle at 35% 30%, #ffd5cf, #f05465 45%, #5c1424 82%);
  box-shadow: 0 0 60px rgba(240,84,101,.75), inset 0 0 30px rgba(255,255,255,.25);
}
.ai-orb .core::after {
  content: ""; position: absolute; inset: 18%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,180,162,.8), transparent 70%); filter: blur(6px);
  animation: breathe 3.5s ease-in-out infinite;
}
.ai-orb .ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(240,84,101,.5); animation: ripple 3s linear infinite; opacity: 0; }
.ai-orb .ring:nth-child(2) { animation-delay: 1s; }
.ai-orb .ring:nth-child(3) { animation-delay: 2s; }
@keyframes ripple { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.25); opacity: 0; } }
@keyframes breathe { 50% { transform: scale(1.25); opacity: .6; } }
.ai-orb.idle .ring { animation-duration: 6s; }
.ai-orb.speaking .core { animation: talk .35s ease-in-out infinite alternate; }
@keyframes talk { from { transform: scale(1); } to { transform: scale(1.07); } }

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.section { padding: clamp(52px, 6vw, 76px) 0; }
.section-tight { padding: 40px 0; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 36px; }
.eyebrow { display: inline-block; color: var(--primary); font-weight: 600; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.section-head h2, .split h2, .location h2 {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1.1; letter-spacing: -0.025em; margin: 12px 0 14px;
}
.section-head p { color: var(--muted); font-size: 16px; }
.group-title { font-family: var(--font-display); font-size: 22px; margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.group-title::before { content: ""; width: 26px; height: 3px; border-radius: 3px; background: var(--grad); }

/* Marquee */
.marquee-wrap { padding: 30px 0 10px; }
.marquee-label { text-align: center; color: var(--dim); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 20px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 46px; width: max-content; animation: scroll 45s linear infinite; }
.marquee-track span { font-family: var(--font-display); font-weight: 600; font-size: 21px; color: var(--muted); opacity: .65; white-space: nowrap; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* Services bento */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.svc-card {
  position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: 16px;
  background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--line);
  transition: transform .25s, border-color .25s; overflow: hidden; isolation: isolate;
}
.svc-card::before { content: ""; position: absolute; inset: 0; background: var(--grad-soft); opacity: 0; transition: opacity .25s; z-index: -1; }
.svc-card:hover { transform: translateY(-4px); border-color: var(--primary-line); }
.svc-card:hover::before { opacity: 1; }
.svc-card.wide { grid-column: auto; }   /* equal cards: 12 services = 3 even rows of 4 */
.svc-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--primary); background: var(--primary-soft); border: 1px solid var(--primary-line); }
.svc-group { font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--dim); margin-top: 6px; }
.svc-card h3 { font-family: var(--font-display); font-size: 17.5px; line-height: 1.25; }
.svc-card p { color: var(--muted); font-size: 14px; flex: 1; }
.svc-more { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--primary); }
.svc-card:hover .svc-more .ico { transform: translateX(4px); }
.svc-more .ico { transition: transform .2s; }

/* Split feature */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.checklist { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 30px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; }
.checklist .ico { color: var(--primary); margin-top: 2px; padding: 2px; border-radius: 50%; background: var(--primary-soft); width: 22px; height: 22px; }
.steps-v { display: flex; flex-direction: column; gap: 14px; }
.step-v { display: flex; gap: 18px; align-items: center; padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
.step-v:hover { border-color: var(--primary-line); transform: translateX(6px); }
.step-v > span { font-family: var(--font-display); font-size: 26px; font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; min-width: 48px; }
.step-v h3 { font-size: 16px; }
.step-v p { color: var(--muted); font-size: 14px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cards-2 { grid-template-columns: 1fr 1fr; }
.cards.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .cards.cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cards.cards-4 { grid-template-columns: minmax(0, 1fr); } }
.card-tag { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--dim); margin-bottom: 4px; }
.card {
  position: relative; padding: 22px; border-radius: 16px; background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line); transition: transform .25s, border-color .25s; overflow: hidden; isolation: isolate;
}
.card::before { content: ""; position: absolute; inset: 0; background: var(--grad-soft); opacity: 0; transition: opacity .25s; z-index: -1; }
.card:hover { transform: translateY(-4px); border-color: var(--primary-line); }
.card:hover::before { opacity: 1; }
.card .icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--primary); background: var(--primary-soft); border: 1px solid var(--primary-line); margin-bottom: 14px; }
.card h3 { font-family: var(--font-display); font-size: 17.5px; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 14.5px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line-strong); border-radius: 18px; background: var(--grad-soft); overflow: hidden; }
.stat { padding: 24px 18px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-family: var(--font-display); font-size: 36px; letter-spacing: -0.02em; line-height: 1.1; }
.stat span { color: var(--muted); font-size: 14px; }

/* Industries */
.industries { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.industry { padding: 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); border-top: 2px solid var(--primary); }
.industry h3 { font-size: 15.5px; margin-bottom: 6px; }
.industry p { color: var(--muted); font-size: 14px; }

/* Steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.step { padding: 22px; border-radius: 16px; border: 1px dashed var(--line-strong); background: var(--glass); }
.step::before {
  counter-increment: step; content: "0" counter(step); display: block; margin-bottom: 12px;
  font-family: var(--font-display); font-size: 32px; font-weight: 700;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step h3 { font-size: 16.5px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 14.5px; }

/* Engagement models */
.models { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.model { position: relative; padding: 22px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.model h3 { font-family: var(--font-display); font-size: 18px; }
.model p { color: var(--muted); font-size: 14.5px; flex: 1; }
.model a { color: var(--primary); font-weight: 600; font-size: 14.5px; }
.model.featured { border-color: var(--primary-line); background: linear-gradient(180deg, rgba(240,84,101,.12), var(--surface)); box-shadow: var(--glow); }
.badge { position: absolute; top: -12px; left: 24px; font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 999px; background: var(--grad); color: var(--on-primary); }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.quote { padding: 22px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; }
.quote .stars { color: var(--warn); letter-spacing: 3px; margin-bottom: 14px; }
.quote blockquote { color: var(--text-2); font-size: 15px; margin-bottom: 18px; flex: 1; }
.quote figcaption { display: flex; gap: 12px; align-items: center; }
.quote figcaption i { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 14px; background: var(--grad); color: var(--on-primary); }
.quote figcaption b { display: block; font-size: 14.5px; }
.quote figcaption span { font-size: 13px; color: var(--muted); }

/* FAQ */
.faq { max-width: 840px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 15px 20px; transition: border-color .2s; }
.faq details[open] { border-color: var(--primary-line); }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin-top: 12px; font-size: 15px; }

/* Location / NAP / map */
.location { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; }
.nap { display: flex; flex-direction: column; gap: 14px; }
.nap p { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--muted); }
.nap p strong { color: var(--text); }
.nap .ico { color: var(--primary); margin-top: 2px; }
.nap a:hover { color: var(--text); }
.map { border-radius: 16px; overflow: hidden; border: 1px solid var(--line-strong); min-height: 340px; background: var(--surface); }
.map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; filter: var(--map-filter); }

/* ==========================================================================
   INNER PAGES
   ========================================================================== */
.page-hero { padding: 56px 0 40px; }
.page-hero.center { text-align: center; padding: 120px 0; }
.page-hero.center .lead { margin-inline: auto; }
.page-hero .lead { max-width: 760px; }
.service-hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 50px; align-items: center; }
.service-hero h1 { font-size: clamp(34px, 4.6vw, 56px); }
.benefit-card { padding: 30px; border-radius: 24px; background: linear-gradient(180deg, rgba(240,84,101,.12), var(--surface)); border: 1px solid var(--primary-line); box-shadow: var(--shadow); }
.benefit-card h2 { font-family: var(--font-display); font-size: 20px; margin-bottom: 18px; }
.benefit-card .checklist { margin: 0; }

.svc-list { display: flex; flex-direction: column; gap: 14px; }
.svc-row { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
.svc-row:hover { border-color: var(--primary-line); transform: translateX(4px); }
.svc-row h3 { font-family: var(--font-display); font-size: 21px; margin-bottom: 4px; }
.svc-row p { color: var(--muted); font-size: 15px; margin-bottom: 12px; }
.svc-arrow { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); color: var(--primary); transition: background .2s; }
.svc-row:hover .svc-arrow { background: var(--primary); color: #fff; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 12.5px; padding: 4px 10px; border-radius: 8px; background: var(--primary-soft); border: 1px solid var(--primary-line); }
.tag.auto { background: rgba(255,180,162,.12); border-color: rgba(255,180,162,.45); }
.tags-lg .tag { font-size: 14px; padding: 8px 14px; border-radius: 10px; background: var(--surface-2); border-color: var(--line-strong); }
.tech-box { padding: 34px; border-radius: 24px; background: var(--grad-soft); border: 1px solid var(--line-strong); text-align: center; }
.tech-box h2 { font-family: var(--font-display); font-size: 24px; margin-bottom: 18px; }
.tech-box .tags { justify-content: center; }
.svc-card-sm { display: block; }

/* Forms */
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: start; }
.contact-grid > *, .lead-form > *, .x-form > * { min-width: 0; }
.form-card, .info-card { padding: 32px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line-strong); }
.info-card h2 { font-family: var(--font-display); font-size: 22px; margin-bottom: 18px; }
.contact-side { display: flex; flex-direction: column; gap: 18px; }
.contact-side .map, .contact-side .map iframe { min-height: 280px; }
.lead-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lead-form .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 13px; color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; min-width: 0; padding: 13px 16px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line-strong); outline: none; transition: border-color .2s, box-shadow .2s;
}
.field select option { background: var(--bg-2); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(240,84,101,.2); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.success-note { display: none; padding: 16px; border-radius: 12px; background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.4); color: var(--ok-text); font-size: 15px; }
.success-note.show { display: block; }
.error-note { padding: 14px 16px; border-radius: 12px; background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.4); color: var(--err-text); font-size: 14px; margin-bottom: 18px; }
.disclaimer { font-size: 12.5px; color: var(--dim); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { border-top: 1px solid var(--line); padding: 48px 0 26px; color: var(--muted); font-size: 14.5px; margin-top: 40px; }
.foot-cta {
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
  padding: 30px 32px; margin-bottom: 44px; border-radius: 20px; border: 1px solid var(--line-strong);
  background: radial-gradient(circle at 0% 0%, rgba(240,84,101,.35), transparent 50%), radial-gradient(circle at 100% 100%, rgba(255,122,89,.22), transparent 50%), var(--surface);
}
.foot-cta h2 { font-family: var(--font-display); font-size: clamp(22px, 2.4vw, 30px); color: var(--text); letter-spacing: -0.02em; }
.foot-cta p { margin-top: 6px; }
.foot-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 36px; margin-bottom: 40px; }
.foot-grid h3 { color: var(--text); font-size: 15px; margin-bottom: 16px; }
.foot-grid ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.foot-grid a:hover { color: var(--text); }
.foot-brand p { margin: 16px 0 18px; max-width: 340px; }
.socials { display: flex; gap: 10px; }
.socials a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--line-strong); transition: all .2s; }
.socials a:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.foot-contact { display: flex; flex-direction: column; gap: 12px; }
.foot-contact p { display: flex; gap: 10px; align-items: flex-start; }
.foot-contact .ico { color: var(--primary); margin-top: 2px; }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--line); padding-top: 24px; font-size: 13.5px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* Reveal on scroll (only hidden when JS is running) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.js .reveal.in { opacity: 1; transform: none; }

/* ==========================================================================
   AI MEETING ROOM
   ========================================================================== */
body.meeting-page { height: 100vh; height: 100dvh; overflow: hidden; }

/* The lobby scrolls inside the fixed-height page; auto margins centre the card without clipping its top */
.lobby { height: 100dvh; overflow-y: auto; display: flex; padding: 24px 16px; }
.lobby-card { margin: auto; width: min(1000px, 100%); display: grid; grid-template-columns: 1.1fr 1fr; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); }
.lobby-preview { position: relative; background: var(--stage); min-height: 460px; display: grid; place-items: center; padding: 30px; }
.lobby-preview video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.lobby-preview .self-initials { width: 120px; height: 120px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-family: var(--font-display); font-size: 42px; font-weight: 700; box-shadow: var(--glow); color: var(--on-primary); }
.lobby-tools { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 2; }
.lobby-form { padding: 40px; display: flex; flex-direction: column; gap: 16px; }
.lobby-form h1 { font-family: var(--font-display); font-size: 28px; line-height: 1.2; }
.lobby-form p { color: var(--muted); font-size: 15px; }
.agent-strip { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); }
.mini-orb { width: 42px; height: 42px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffd5cf, #f05465 50%, #5c1424); box-shadow: 0 0 20px rgba(240,84,101,.7); flex-shrink: 0; }
.agent-strip b { display: block; font-size: 14.5px; }
.agent-strip span { font-size: 13px; color: var(--live); }

.room { display: none; height: 100dvh; flex-direction: column; }
.room.active { display: flex; }
.room-top { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; border-bottom: 1px solid var(--line); background: var(--nav-bg); backdrop-filter: blur(12px); gap: 12px; }
.room-title { display: flex; align-items: center; gap: 14px; min-width: 0; }
.room-title img { border-radius: 9px; }
.room-title h2 { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.room-title small { color: var(--muted); font-size: 12.5px; }
.room-meta { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--muted); }
.rec-badge { display: flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 8px; background: rgba(239,68,68,.12); color: var(--rec-text); font-weight: 600; font-size: 12px; }
.rec-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--danger); animation: blink 1.2s infinite; }

.room-body { flex: 1; display: grid; grid-template-columns: 1fr 400px; min-height: 0; }
.stage { position: relative; padding: 18px; display: flex; flex-direction: column; gap: 14px; min-height: 0; }
.tiles { flex: 1; display: grid; min-height: 0; position: relative; }
.tile { position: relative; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: var(--stage); display: grid; place-items: center; min-height: 0; transition: border-color .3s, box-shadow .3s; }
.tile.speaking { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(240,84,101,.35), 0 0 60px -10px rgba(240,84,101,.6); }
.tile .ai-orb { width: min(36%, 300px); }
.tile .label { position: absolute; left: 14px; bottom: 14px; display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 6px 12px; border-radius: 10px; background: rgba(0,0,0,.5); color: #fff; backdrop-filter: blur(6px); }
.mic-ind { width: 8px; height: 8px; border-radius: 50%; background: var(--live); }
.badge-role { position: absolute; top: 14px; left: 14px; font-size: 12px; padding: 5px 10px; border-radius: 8px; background: var(--primary-soft); border: 1px solid var(--primary-line); }
.wave { position: absolute; bottom: 18px; right: 18px; display: flex; gap: 3px; align-items: flex-end; height: 22px; }
.wave i { width: 4px; height: 4px; border-radius: 3px; background: var(--primary); }
.tile.speaking .wave i { animation: eq .8s ease-in-out infinite; }
.wave i:nth-child(2) { animation-delay: -.2s !important; }
.wave i:nth-child(3) { animation-delay: -.4s !important; }
.wave i:nth-child(4) { animation-delay: -.6s !important; }
.wave i:nth-child(5) { animation-delay: -.1s !important; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 22px; } }

.self-tile { position: absolute; right: 16px; top: 16px; width: 220px; aspect-ratio: 4/3; z-index: 5; border-radius: 16px; overflow: hidden; border: 1px solid var(--line-strong); background: var(--self-bg); display: grid; place-items: center; box-shadow: var(--shadow); }
.self-tile video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.self-tile .self-initials { width: 64px; height: 64px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-weight: 700; font-size: 22px; color: var(--on-primary); }
.self-tile .label { position: absolute; left: 8px; bottom: 8px; font-size: 11.5px; padding: 3px 8px; border-radius: 6px; background: rgba(0,0,0,.5); color: #fff; }

.captions { position: absolute; left: 50%; bottom: 58px; transform: translateX(-50%); width: min(760px, 92%); text-align: center; font-size: 17px; line-height: 1.5; padding: 12px 18px; border-radius: 14px; background: rgba(0,0,0,.68); color: #fff; backdrop-filter: blur(8px); transition: opacity .3s; z-index: 4; }
.captions:empty, .captions.off { opacity: 0; pointer-events: none; }
.captions b { color: #ffb4a2; font-weight: 600; margin-right: 6px; }

.controls { display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; }
.ctrl { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; background: var(--surface-2); border: 1px solid var(--line-strong); transition: background .2s, transform .15s; position: relative; }
.ctrl:hover { background: var(--ctrl-hover); transform: translateY(-2px); }
.ctrl.off { background: rgba(239,68,68,.18); border-color: rgba(239,68,68,.5); }
.ctrl.on { background: var(--primary-soft); border-color: var(--primary); }
.ctrl.listening { background: rgba(34,197,94,.25); border-color: var(--success); animation: pulse 1.5s infinite; }
.ctrl .tip { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); font-size: 12px; white-space: nowrap; padding: 4px 8px; border-radius: 6px; background: #000; color: #fff; opacity: 0; pointer-events: none; transition: opacity .2s; }
.ctrl:hover .tip { opacity: 1; }
.ctrl.ctrl-leave { width: auto; padding: 0 22px; border-radius: 999px; background: var(--danger); border-color: var(--danger); color: #fff; font-size: 15px; font-weight: 600; gap: 8px; display: inline-flex; align-items: center; }
.ctrl.ctrl-leave:hover { background: #dc2626; }

.panel { border-left: 1px solid var(--line); background: var(--bg-2); display: flex; flex-direction: column; min-height: 0; }
.tabs { display: flex; padding: 10px; gap: 6px; border-bottom: 1px solid var(--line); }
.tab { flex: 1; min-width: 0; white-space: nowrap; padding: 9px 8px; border-radius: 10px; font-size: 13.5px; font-weight: 600; color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 6px; }
.tab.active { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }
.tab .count { font-size: 11px; padding: 1px 7px; border-radius: 999px; background: var(--primary); color: #fff; }
.tab-pane { display: none; flex: 1; min-height: 0; flex-direction: column; }
.tab-pane.active { display: flex; }
.progress-wrap { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.progress-head { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.progress { height: 6px; border-radius: 6px; background: var(--track); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--grad); transition: width .5s ease; }

.chat { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 14px; scroll-behavior: smooth; }
.chat::-webkit-scrollbar, .scroll::-webkit-scrollbar { width: 6px; }
.chat::-webkit-scrollbar-thumb, .scroll::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 6px; }
.msg { display: flex; gap: 10px; max-width: 100%; animation: msgIn .3s ease; }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } }
.msg .av { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.msg.ai .av { background: radial-gradient(circle at 35% 30%, #ffd5cf, #f05465 50%, #5c1424); }
.msg.me { flex-direction: row-reverse; }
.msg.me .av { background: var(--grad); color: var(--on-primary); }
.msg .body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.msg.me .body { align-items: flex-end; }
.msg .meta { font-size: 11.5px; color: var(--dim); }
.msg .text { padding: 11px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.5; overflow-wrap: anywhere; }
.msg.ai .text { background: var(--surface-2); border: 1px solid var(--line); border-top-left-radius: 4px; }
.msg.me .text { background: var(--grad); color: var(--on-primary); border-top-right-radius: 4px; }
.typing { display: inline-flex; gap: 4px; padding: 14px 16px !important; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: bounce 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chip { padding: 8px 13px; border-radius: 999px; font-size: 13px; border: 1px solid var(--line-strong); background: var(--glass); transition: all .2s; display: inline-flex; align-items: center; gap: 6px; }
.chip:hover { border-color: var(--primary); background: var(--primary-soft); }
.chip.selected { background: rgba(240,84,101,.25); border-color: var(--primary); }
.chip.selected::before { content: "✓"; font-size: 11px; }
.chips.locked .chip { pointer-events: none; opacity: .5; }
.chips.locked .chip.selected { opacity: 1; }
.chip-done { background: var(--grad); border-color: transparent; font-weight: 600; color: var(--on-primary); }

.composer { padding: 12px; border-top: 1px solid var(--line); display: flex; gap: 8px; align-items: flex-end; }
.composer textarea { flex: 1; resize: none; max-height: 120px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-strong); outline: none; font-size: 14.5px; line-height: 1.4; }
.composer textarea:focus { border-color: var(--primary); }
.send { width: 44px; height: 44px; border-radius: 12px; background: var(--grad); color: var(--on-primary); display: grid; place-items: center; font-size: 18px; flex-shrink: 0; }

.scroll { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.req-group { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.req-group h6 { font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--dim); margin-bottom: 8px; display: flex; justify-content: space-between; }
.req-group .val { font-size: 14.5px; font-weight: 500; }
.req-group .val.empty { color: var(--dim); font-style: italic; font-weight: 400; }
.req-group.flash { animation: flash 1s ease; }
@keyframes flash { 0% { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(240,84,101,.25); } }

.est-hero { padding: 20px; border-radius: 16px; background: var(--grad-soft); border: 1px solid var(--primary-line); text-align: center; }
.est-hero small { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.est-hero .range { font-family: var(--font-display); font-size: 30px; font-weight: 700; margin: 6px 0; letter-spacing: -0.02em; }
.est-hero .sub { color: var(--muted); font-size: 13px; }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.kpi small { color: var(--dim); font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; }
.kpi b { display: block; font-family: var(--font-display); font-size: 21px; margin-top: 2px; }
.phase { display: grid; grid-template-columns: 110px 1fr 60px; gap: 10px; align-items: center; font-size: 13px; padding: 6px 0; }
.phase .bar { height: 8px; }
.phase span:last-child { text-align: right; color: var(--muted); }
.team-row { display: flex; justify-content: space-between; font-size: 13.5px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.team-row:last-child { border-bottom: 0; }
.confidence { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.confidence .meter { flex: 1; height: 6px; border-radius: 6px; background: var(--track); overflow: hidden; }
.confidence .meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--warn), var(--live)); transition: width .5s; }
.empty-state { text-align: center; padding: 40px 20px; color: var(--muted); font-size: 14px; }
.empty-state .big-ico { font-size: 40px; margin-bottom: 10px; }

.modal { position: fixed; inset: 0; z-index: 100; background: var(--overlay); backdrop-filter: blur(6px); display: none; place-items: center; padding: 16px; }
.modal.open { display: grid; }
.modal-card { width: min(840px, 100%); max-height: 92dvh; overflow-y: auto; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 24px; box-shadow: var(--shadow); animation: msgIn .3s ease; }
.modal-head { padding: 26px 30px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; background: var(--grad-soft); }
.modal-head h3 { font-family: var(--font-display); font-size: 24px; }
.modal-head p { color: var(--muted); font-size: 14px; }
.modal-close { font-size: 22px; color: var(--muted); }
.modal-body { padding: 26px 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.modal-body h5 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--primary); margin-bottom: 12px; }
.modal-body .full { grid-column: 1 / -1; }
.sum-list { list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.sum-list li { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
.sum-list li span:first-child { color: var(--muted); }
.sum-list li span:last-child { text-align: right; font-weight: 500; }
.modal-foot { padding: 20px 30px 28px; display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; border-top: 1px solid var(--line); }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(140px); z-index: 200; padding: 12px 20px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line-strong); font-size: 14px; box-shadow: var(--shadow); transition: transform .35s ease; }
.toast.show { transform: translateX(-50%) translateY(0); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .service-hero-grid, .contact-grid { grid-template-columns: 1fr; }
  /* two-column sections (Meet Aria + steps, location + map) stay side by side down to tablet width */
  .split, .location { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
  /* Home hero stays two columns down to tablet width; the AI box gets more compact */
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 32px; }
  .nav-links { gap: 18px; font-size: 14.5px; }
  .nav-inner { gap: 14px; }
  .nav-cta .btn { padding: 10px 16px; font-size: 14px; }
  .hero h1 { font-size: clamp(34px, 4.8vw, 56px); }
  .hero .lead { font-size: 16.5px; }
  .hero-proof { gap: 24px; }
  .ai-hero { min-height: 540px; }
  .ai-hero .hv-main { inset: 0 28px 150px 0; }
  .ah-est { width: 188px; top: 54px; padding: 13px; }
  .ah-flow { left: 12px; padding: 12px 12px 10px; }
  .ah-steps li em { font-size: 8px; letter-spacing: 0; }
  .ah-steps li b { font-size: 10px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .cards, .quotes { grid-template-columns: 1fr 1fr; }
  .steps, .models, .industries { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .room-body { grid-template-columns: 1fr 340px; }
  .nav-phone { display: none; }
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .split, .location { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hero-visual { max-width: 620px; width: 100%; margin: 0 auto; }
  .ah-est { width: 210px; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch; position: absolute; top: var(--ui-header, 60px); left: -16px; right: -16px;
    padding: 18px 16px 22px; gap: 4px; background: var(--bg-2); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav-links.open > a, .nav-links.open .has-mega > a { display: block; padding: 12px 4px; font-size: 16px; }
  .nav-links .mega { display: none; }
  .nav-links > a.active::after, .has-mega > a.active::after { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .lobby-card { grid-template-columns: 1fr; }
  .lobby-preview { min-height: 240px; }
  .lobby-form { padding: 26px 22px; }

  .room-top { padding: 10px 14px; }
  .room-body { display: flex; flex-direction: column; }
  .stage { padding: 10px 12px; gap: 10px; flex: none; }
  .tiles { min-height: 150px; height: 32dvh; flex: none; }
  .self-tile { width: 110px; right: 10px; top: 10px; }
  .self-tile .self-initials { width: 40px; height: 40px; font-size: 15px; }
  .captions { font-size: 14px; bottom: 48px; padding: 8px 12px; }
  .panel { border-left: 0; border-top: 1px solid var(--line); flex: 1; min-height: 240px; }
  .ctrl { width: 46px; height: 46px; font-size: 18px; }
  .room-meta .hide-sm { display: none; }
  .modal-body, .lead-form { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .nav-cta .btn { display: none; }
  .bento, .cards, .cards-2, .quotes, .steps, .models, .industries, .foot-grid { grid-template-columns: 1fr; }
  .svc-card.wide { grid-column: auto; }
  .hero { padding-top: 48px; }
  .hero-actions .btn { width: 100%; }
  .hero-proof { gap: 20px; justify-content: space-between; }
  .hero-proof b { font-size: 22px; }
  .hero-visual { min-height: 400px; }
  .hv-main { inset: 0; }
  .hv-est { top: 56px; right: 24px; width: auto; padding: 12px 14px; }
  .hv-est b { font-size: 20px; white-space: nowrap; }
  .hv-tags { display: none; }
  .ai-hero { min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .ai-hero .hv-card { position: relative; inset: auto; width: auto; top: auto; right: auto; animation: none; }
  .ai-hero .hv-main .hv-stage { min-height: 170px; }
  .ah-build { right: 10px; }
  .ah-checks { grid-template-columns: 1fr 1fr; }
  .ah-steps li em { font-size: 8px; letter-spacing: 0; }
  .ah-steps li b { font-size: 10px; }
  .ah-node { width: 28px; height: 28px; }
  .svc-row { grid-template-columns: 1fr; }
  .svc-arrow { display: none; }
  .foot-cta, .form-card, .info-card { padding: 24px; }
  .modal-head, .modal-body, .modal-foot { padding-left: 20px; padding-right: 20px; }
  .ctrl-leave span { display: none; }
  .room-title small, .room-meta .rec-badge { display: none; }
  .controls { flex-wrap: nowrap; gap: 6px; overflow-x: auto; scrollbar-width: none; justify-content: safe center; }
  .ctrl { width: 40px; height: 40px; font-size: 16px; flex: none; }
  .ctrl.ctrl-leave { padding: 0 14px; }
  .ctrl .tip { display: none; }
  .tabs { padding: 6px; }
  .tab { padding: 7px 4px; font-size: 13px; }
  .progress-wrap { padding: 8px 14px; }
  .panel .expert-bar { margin: 0 10px; padding: 6px 8px 6px 10px; font-size: 12px; }
  .composer { padding: 8px 10px; }
  .lobby { padding: 12px; }
  .lobby-card { border-radius: 22px; }
  .lobby-preview { min-height: 180px; padding: 14px 14px 64px; }
  .lobby-preview .self-initials { width: 72px; height: 72px; font-size: 26px; }
  .lobby-tools { bottom: 12px; }
  .lobby-form { padding: 20px 18px; gap: 14px; }
  .lobby-form h1 { font-size: 22px; }
  .auth-screen h2 { font-size: 22px; }
}
@media (max-width: 380px) {
  .ctrl { width: 36px; height: 36px; font-size: 15px; }
  .controls { gap: 4px; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .room-top { padding: 6px 12px; }
  .room-title small, .room-meta .rec-badge, .progress-wrap, .expert-bar .xb-text, .expert-bar .xb-dot { display: none; }
  .panel .expert-bar { margin: 6px 10px 0; padding: 0; background: none; border: 0; justify-content: flex-end; }
  .controls { flex-wrap: nowrap; gap: 6px; }
  .ctrl { width: 38px; height: 38px; font-size: 15px; flex: none; }
  .ctrl .tip { display: none; }
  .ctrl.ctrl-leave span { display: none; }
  .ctrl.ctrl-leave { padding: 0 14px; }
  .tabs { padding: 6px; }
  .room-body { display: grid; grid-template-columns: 1fr minmax(280px, 42%); }
  .tiles { height: auto; flex: 1; min-height: 0; }
  .stage { flex: initial; min-height: 0; }
  .panel { border-top: 0; border-left: 1px solid var(--line); min-height: 0; }
}

/* Print = downloadable estimate */
@media print {
  body * { visibility: hidden; }
  .modal, .modal * { visibility: visible; }
  .modal { position: absolute; inset: 0; background: #fff; display: block; padding: 0; }
  .modal-card { box-shadow: none; border: 0; max-height: none; color: #111; background: #fff; }
  .modal-head { background: #fff1f2; }
  .modal-foot, .modal-close, .lead-block { display: none !important; }
  .modal-body h5 { color: #e11d48; }
  .sum-list li span:first-child, .modal-head p { color: #555; }
  .tag { border-color: #f05465; background: #fff1f2; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Lobby header row (logo + theme switch) */
.lobby-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* ==========================================================================
   EXPERT CONNECT (human expert in the meeting)
   ========================================================================== */
.expert-bar { display: flex; align-items: center; gap: 10px; margin: 0 12px; padding: 10px 12px; border-radius: 14px; background: var(--grad-soft); border: 1px solid var(--primary-line); font-size: 13px; }
.expert-bar .xb-text { flex: 1; min-width: 0; color: var(--muted); line-height: 1.35; }
.expert-bar .xb-text b { color: var(--text); }
.expert-bar .btn { padding: 7px 12px; font-size: 13px; }
.xb-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--dim); flex-shrink: 0; display: inline-block; }
.xb-dot.on { background: var(--live); box-shadow: 0 0 0 3px rgba(52, 211, 153, .2); }
.xb-dot.pulse { animation: pulse 1.6s infinite; }
.ctrl-expert { background: var(--primary-soft); border-color: var(--primary-line); }

.tiles.duo { grid-template-columns: 1fr 1fr; gap: 14px; }
@media (min-width: 861px) { .tiles.duo .self-tile { right: calc(50% + 23px); width: 180px; } }
.expert-tile { background: var(--self-bg); }
.expert-tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; }
.expert-tile.has-video video { opacity: 1; }
.expert-tile.screen video { object-fit: contain; background: #000; }
.expert-wait { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 24px; background: var(--stage); z-index: 2; }
.expert-wait[hidden] { display: none; }
.expert-wait b { font-family: var(--font-display); font-size: 18px; }
.expert-wait span { color: var(--muted); font-size: 13.5px; max-width: 300px; }
.xw-ring { width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); box-shadow: var(--glow); margin-bottom: 6px; position: relative; }
.xw-ring::before { content: "🎧"; font-size: 30px; }
.xw-ring span { position: absolute; inset: -8px; border-radius: 50%; border: 2px solid var(--primary-line); animation: ripple 2.4s linear infinite; }
.share-ind { color: var(--live); margin-left: 4px; }
.captions-sm { font-size: 14px; bottom: 56px; width: 90%; }
.self-tile.screen video { transform: none; object-fit: contain; background: #000; }

.msg.agent .av { background: linear-gradient(135deg, #3b82f6, #22d3ee); color: #fff; }
.msg.agent .text { background: var(--surface-2); border: 1px solid rgba(59, 130, 246, .45); border-top-left-radius: 4px; }
.msg.agent .meta { color: #60a5fa; }
[data-theme="light"] .msg.agent .meta { color: #1d4ed8; }

.notes-card { margin-top: 6px; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--primary-line); font-size: 13.5px; }
.notes-card h6 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--primary); margin: 10px 0 4px; }
.notes-card h6:first-child { margin-top: 0; }
.notes-card ul { padding-left: 18px; display: flex; flex-direction: column; gap: 3px; }
.notes-card p { color: var(--text-2); }

/* modal */
.x-card { width: min(720px, 100%); }
.x-body { padding: 24px 30px 28px; display: flex; flex-direction: column; gap: 16px; }
.x-lead { color: var(--muted); font-size: 15px; }
.x-h { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--primary); }
.x-back { align-self: flex-start; font-size: 13.5px; color: var(--muted); }
.x-back:hover { color: var(--primary); }
.x-opts { display: grid; gap: 12px; }
.x-opt { display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: 16px; text-align: left; background: var(--bg-2); border: 1px solid var(--line-strong); transition: border-color .2s, transform .2s, background .2s; }
.x-opt:hover { border-color: var(--primary); background: var(--primary-soft); transform: translateY(-2px); }
.x-ico { font-size: 30px; width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-2); flex-shrink: 0; }
.x-opt-main { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.x-opt-main b { font-family: var(--font-display); font-size: 18px; }
.x-opt-main span { color: var(--muted); font-size: 14px; }
.x-opt em { font-style: normal; font-weight: 600; font-size: 13px; color: var(--primary); white-space: nowrap; }
.x-avail { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--muted); padding: 10px 12px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); }
.x-avail.on { color: var(--text); border-color: rgba(52, 211, 153, .4); }
.x-guide { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.x-guide li { display: flex; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); }
.x-guide li > span { font-size: 20px; line-height: 1.2; }
.x-guide b { font-size: 14px; }
.x-guide p { color: var(--muted); font-size: 13px; line-height: 1.45; margin-top: 2px; }
.x-pkgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.x-pkg { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 16px; border: 1px solid var(--line-strong); background: var(--bg-2); cursor: pointer; transition: border-color .2s, background .2s; }
.x-pkg input { position: absolute; opacity: 0; pointer-events: none; }
.x-pkg:hover, .x-pkg.on { border-color: var(--primary); }
.x-pkg.on { background: var(--primary-soft); box-shadow: inset 0 0 0 1px var(--primary); }
.x-pkg:focus-within { outline: 2px solid var(--primary); outline-offset: 2px; }
.x-pkg b { font-family: var(--font-display); font-size: 16px; }
.x-pkg-price { font-family: var(--font-display); font-size: 22px; font-weight: 700; }
.x-pkg-price small { font-size: 12px; font-weight: 500; color: var(--muted); }
.x-pkg-meta { font-size: 12.5px; color: var(--primary); font-weight: 600; }
.x-pkg-desc { font-size: 12.5px; color: var(--muted); }
.x-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.x-form .full { grid-column: 1 / -1; }
.x-form textarea { resize: vertical; }
.x-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--muted); cursor: pointer; }
.x-consent input { margin-top: 3px; accent-color: var(--primary); width: 16px; height: 16px; flex-shrink: 0; }
.x-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.x-actions.col { flex-direction: column; align-items: flex-start; }
.x-days { display: flex; gap: 8px; flex-wrap: wrap; }
.x-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.x-slot { padding: 12px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--bg-2); font-weight: 600; font-size: 14px; transition: border-color .2s, background .2s; }
.x-slot:hover { border-color: var(--primary); }
.x-slot.on { background: var(--grad); color: var(--on-primary); border-color: transparent; }
.x-bill { border: 1px solid var(--line-strong); border-radius: 16px; overflow: hidden; }
.x-bill div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 16px; font-size: 14px; border-bottom: 1px solid var(--line); }
.x-bill div:last-child { border-bottom: 0; }
.x-bill div span:first-child { color: var(--muted); }
.x-bill .x-total { background: var(--grad-soft); font-weight: 700; font-size: 16px; }
.x-bill .x-total span:first-child { color: var(--text); }
.x-booked { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 10px 0; }
.x-booked .x-big { font-size: 46px; }
.x-booked h4 { font-family: var(--font-display); font-size: 22px; }
.x-booked p { color: var(--muted); font-size: 14.5px; max-width: 520px; }
.x-booked .x-actions { justify-content: center; }

@media (max-width: 860px) {
  .tiles.duo { grid-template-columns: 1fr 1fr; gap: 8px; }
  .tiles.duo .ai-orb { width: 46%; }
  .x-guide, .x-pkgs, .x-form { grid-template-columns: 1fr; }
  .x-body { padding: 20px; }
}

/* ==========================================================================
   SIGN-IN (lobby: mobile OTP or Google)
   ========================================================================== */
.lobby-fields { display: flex; flex-direction: column; gap: 16px; }
.lobby-auth { display: flex; flex-direction: column; gap: 14px; }
.auth-screen { display: flex; flex-direction: column; gap: 16px; animation: msgIn .25s ease; }
.auth-screen h2 { font-family: var(--font-display); font-size: 26px; line-height: 1.2; }
.auth-screen p { margin-top: 6px; }
.auth-back { align-self: flex-start; font-size: 14px; color: var(--muted); }
.auth-back:hover { color: var(--primary); }
.auth-who { font-size: 13px; color: var(--dim); text-align: center; }
.auth-who b { color: var(--text-2); word-break: break-all; }
.auth-step { display: flex; flex-direction: column; gap: 12px; }
.phone-input { display: flex; gap: 8px; }
.phone-input select { flex: none; width: auto; padding-right: 8px; }
.phone-input input { flex: 1; }
.otp-input { width: 100%; padding: 14px 16px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line-strong); outline: none; font-size: 26px; font-weight: 600; letter-spacing: .6em; text-indent: .6em; text-align: center; font-variant-numeric: tabular-nums; }
.auth-resend { align-self: center; font-size: 13.5px; }
.auth-resend:disabled { color: var(--dim); text-decoration: none; cursor: default; }
.auth-test { font-size: 13px; padding: 10px 12px; border-radius: 10px; background: rgba(251,191,36,.12); border: 1px dashed rgba(251,191,36,.6); color: var(--text-2); }
.auth-or { display: flex; align-items: center; gap: 12px; color: var(--dim); font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }
.google-wrap { display: flex; justify-content: center; min-height: 44px; }
.btn-google { gap: 10px; }
.auth-msg { font-size: 13.5px; color: var(--err-text); min-height: 1em; }
.auth-msg:empty { display: none; }
.auth-msg.ok { color: var(--ok-text); }
.otp-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(240,84,101,.2); }

/* ==========================================================================
   CAREERS
   ========================================================================== */
.job-body h2 { font-family: var(--font-display); font-size: 22px; margin: 26px 0 12px; }
.job-body h2:first-child { margin-top: 0; }
.job-body p { color: var(--text-2); line-height: 1.7; margin-bottom: 12px; }
.check-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.check-list li { position: relative; padding-left: 28px; color: var(--text-2); line-height: 1.6; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--primary); font-weight: 700; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.consent input { margin-top: 3px; width: 17px; height: 17px; flex: none; accent-color: var(--primary); }
.field input[type=file] { padding: 10px 12px; }

/* Apply: CV first, then the AI's read of it */
.page-hero-sm { padding: 40px 0 20px; }
.apply-steps { font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.apply-steps b { color: var(--primary); }
.apply-form { display: flex; flex-direction: column; gap: 16px; }
.dropzone { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 30px 20px; border: 2px dashed var(--line-strong); border-radius: 18px; background: var(--bg-2); cursor: pointer; transition: border-color .2s, background .2s; }
.dropzone:hover, .dropzone.over { border-color: var(--primary); background: var(--primary-soft); }
.dropzone.has-file { border-style: solid; border-color: rgba(34, 197, 94, .6); }
.dropzone span { font-size: 13px; color: var(--muted); max-width: 360px; }
.dz-icon { font-size: 34px !important; }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.apply-busy { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 34px 10px; }
.apply-busy span { color: var(--muted); font-size: 14px; max-width: 340px; }
.iv-orb { width: 56px; height: 56px; flex: none; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffd5cf, #f05465 50%, #5c1424); box-shadow: 0 0 26px rgba(240, 84, 101, .6); }
.iv-orb.sm { width: 34px; height: 34px; box-shadow: 0 0 14px rgba(240, 84, 101, .5); }
.iv-orb.lg { width: 96px; height: 96px; }
.iv-orb.thinking { animation: ivPulse 1.4s ease-in-out infinite; }
@keyframes ivPulse { 50% { transform: scale(1.1); box-shadow: 0 0 46px rgba(240, 84, 101, .85); } }
.fit-card h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 20px 0 10px; }
.fit-head { display: flex; gap: 20px; align-items: center; }
.fit-head h2 { font-family: var(--font-display); font-size: 21px; margin: 4px 0 6px; }
.fit-head p { color: var(--text-2); line-height: 1.6; }
.fit-ring { --c: var(--warn); flex: none; width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--track) 0); }
.fit-ring span { width: 82px; height: 82px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-family: var(--font-display); font-size: 26px; font-weight: 700; }
.fit-ring small { font-size: 14px; color: var(--muted); }
.fit-strong { --c: var(--success); }
.fit-good { --c: var(--primary); }
.fit-partial { --c: var(--warn); }
.fit-label { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--c); }
.fit-meta { margin-top: 16px; color: var(--text-2); }
.tag-ok { border-color: rgba(34, 197, 94, .5) !important; color: var(--ok-text) !important; background: rgba(34, 197, 94, .08) !important; }
.tag-gap { opacity: .75; border-style: dashed !important; }
@media (max-width: 600px) { .fit-head { flex-direction: column; align-items: flex-start; } }

/* ==========================================================================
   HIRE DEVELOPERS (Time & Material)
   ========================================================================== */
.tm-packages { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.tm-pkg { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line-strong); }
.tm-pkg.hl { border-color: var(--primary); box-shadow: var(--glow); }
.tm-pkg h3 { font-family: var(--font-display); font-size: 22px; }
.tm-pkg ul { list-style: none; padding: 0; margin: 4px 0 8px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.tm-pkg li { position: relative; padding-left: 22px; font-size: 14px; color: var(--text-2); }
.tm-pkg li::before { content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 700; }
.tm-pkg-hours { color: var(--muted); }
.tm-pkg-hours b { font-family: var(--font-display); font-size: 30px; color: var(--text); }
.tm-pkg-from b { font-size: 18px; }
.tm-pkg-desc { color: var(--muted); font-size: 14px; line-height: 1.5; }
.tm-pkg-custom { border-style: dashed; background: var(--glass); }
.tm-badge { position: absolute; top: -11px; right: 18px; font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--grad); color: var(--on-primary); }
.tm-off { color: var(--success); font-weight: 600; }

.tm-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
.tm-config fieldset { border: 0; padding: 0 0 20px; margin: 0 0 20px; border-bottom: 1px solid var(--line); min-width: 0; }
.tm-config fieldset:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.tm-config legend { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 18px; font-weight: 600; margin-bottom: 12px; }
.tm-config legend span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; background: var(--primary-soft); color: var(--primary); }
.tm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 12px; }
.tm-seg, .tm-cards { display: flex; flex-wrap: wrap; gap: 8px; }
.tm-seg label, .tm-cards label { position: relative; cursor: pointer; }
.tm-seg input, .tm-cards input { position: absolute; opacity: 0; pointer-events: none; }
.tm-seg span { display: flex; flex-direction: column; padding: 9px 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--bg-2); font-size: 14px; transition: border-color .15s, background .15s; }
.tm-seg small, .tm-cards small { font-size: 12px; color: var(--muted); }
.tm-cards label { flex: 1 1 160px; }
.tm-cards span { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--bg-2); }
.tm-seg input:checked + span, .tm-cards input:checked + span { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 1px var(--primary); }
.tm-seg input:focus-visible + span, .tm-cards input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.tm-seg-sm span { padding: 7px 12px; font-size: 13.5px; }
.tm-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tm-chips button { padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--bg-2); font-size: 13px; }
.tm-chips button.on { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.tm-lock { font-size: 12px; color: var(--primary); font-weight: 600; margin-left: 4px; }
.tm-help { margin-top: 10px; font-size: 14px; color: var(--text-2); padding: 10px 12px; border-radius: 10px; background: var(--primary-soft); }

.tm-est { position: sticky; top: 92px; }
.tm-est-card { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--primary-line); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; transition: opacity .2s; }
.tm-est.loading .tm-est-card { opacity: .7; }
.tm-est-card > small { text-transform: uppercase; letter-spacing: .08em; font-size: 12px; color: var(--muted); }
.tm-est-rate { font-family: var(--font-display); font-size: 36px; font-weight: 700; line-height: 1.1; }
.tm-est-rate small { display: block; font-family: var(--font); font-size: 13px; font-weight: 500; color: var(--muted); }
.tm-tbc { font-size: 26px; }
.tm-est-lines { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.tm-est-lines div { display: flex; justify-content: space-between; gap: 10px; }
.tm-est-lines b { color: var(--text-2); font-weight: 600; white-space: nowrap; }
.tm-est-sum { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; margin: 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; }
.tm-est-sum dt { color: var(--muted); }
.tm-est-sum dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.tm-est-sum .tm-total { font-weight: 700; font-size: 17px; color: var(--text); }
.tm-lockmsg { font-size: 12.5px; color: var(--muted); }
.tm-lockmsg::before { content: "🔒 "; }
.tm-request { max-width: 920px; margin: 0 auto; }
.tm-request h2 { font-family: var(--font-display); font-size: 24px; margin-bottom: 6px; }
.tm-muted { color: var(--muted); font-size: 13px; }
.tm-ratecard { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.tm-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tm-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 12px 16px; border-bottom: 1px solid var(--line); }
.tm-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tm-table tr:last-child td { border-bottom: 0; }

/* customer status + agreement */
.tm-steps { list-style: none; padding: 0; display: flex; gap: 6px; margin-bottom: 24px; flex-wrap: wrap; counter-reset: s; }
.tm-steps li { flex: 1 1 120px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); font-size: 13px; color: var(--muted); counter-increment: s; }
.tm-steps li::before { content: counter(s) ". "; font-weight: 700; }
.tm-steps li.done { color: var(--ok-text); border-color: rgba(34, 197, 94, .4); background: rgba(34, 197, 94, .08); }
.tm-steps li.done::before { content: "✓ "; }
.tm-steps li.now { color: var(--text); border-color: var(--primary); background: var(--primary-soft); font-weight: 600; }
.tm-doc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.tm-doc-head h2, .tm-summary h2 { font-family: var(--font-display); font-size: 22px; }
.tm-doc { white-space: pre-wrap; font: 14px/1.65 var(--font); color: var(--text-2); background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; max-height: 70vh; overflow-y: auto; }
.tm-sign { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.tm-signed { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: rgba(34, 197, 94, .1); border: 1px solid rgba(34, 197, 94, .4); font-size: 14px; }
.tm-summary dl { display: grid; grid-template-columns: 110px 1fr; gap: 10px 12px; margin: 14px 0; font-size: 14px; }
.tm-summary dt { color: var(--muted); }
.tm-summary dd { margin: 0; }
.tm-project { white-space: pre-wrap; color: var(--text-2); line-height: 1.6; }
.tm-h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 18px 0 6px; }
@media (max-width: 980px) { .tm-grid { grid-template-columns: 1fr; } .tm-est { position: static; } }
@media (max-width: 600px) { .tm-row { grid-template-columns: 1fr; } .tm-summary dl { grid-template-columns: 1fr; gap: 2px; } .tm-summary dd { margin-bottom: 8px; } }
@media print {
  body * { visibility: hidden; }
  #agreement, #agreement * { visibility: visible; }
  #agreement { position: absolute; inset: 0; border: 0; box-shadow: none; }
  .tm-doc { max-height: none; overflow: visible; border: 0; background: #fff; color: #000; }
  .tm-doc-head button, .tm-sign { display: none; }
}
.prof-h { font-family: var(--font-display); font-size: 20px; margin: 22px 0 12px; }
.prof-h:first-of-type { margin-top: 4px; }
.prof-checks { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-bottom: 10px; }
.prof-ok { color: var(--ok-text); font-weight: 600; }

/* Sign in (/login) */
.login-card { max-width: 460px; margin: 20px auto; display: flex; flex-direction: column; gap: 16px; }
.login-head h1 { font-family: var(--font-display); font-size: 28px; }
.login-head p { color: var(--muted); margin-top: 4px; }
.login-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: var(--bg-2); }
.login-tabs button { padding: 9px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--muted); }
.login-tabs button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.login-pane { display: flex; flex-direction: column; gap: 14px; }
.login-who { display: flex; flex-direction: column; gap: 10px; }

/* ==========================================================================
   DELIVERY METHODOLOGY (/methodology and the home page summary)
   ========================================================================== */
.dual { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.dual-card { display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line-strong); }
.dual-card:hover { border-color: var(--primary-line); }
.dual-card h2 { font-family: var(--font-display); font-size: 28px; }
.dual-card h3 { font-family: var(--font-display); font-size: 20px; line-height: 1.3; }
.dual-card p { color: var(--text-2); line-height: 1.6; }
.dual-flow { font-weight: 600; color: var(--primary) !important; font-size: 14.5px; }
.dual-actions { display: flex; align-items: center; gap: 16px; margin-top: auto; padding-top: 6px; }
.dual-note, .promise-line { text-align: center; color: var(--muted); margin-top: 20px; }
.promise-line b { color: var(--text); margin-right: 4px; }
.promise-line .link { display: block; margin-top: 8px; }
.flow { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.flow-step { display: flex; gap: 14px; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.flow-step h3 { font-size: 16.5px; margin-bottom: 4px; }
.flow-step p, .phase-card p { color: var(--muted); font-size: 14px; line-height: 1.55; }
.flow-n { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; background: var(--primary-soft); color: var(--primary); }
.pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 34px; align-items: start; }
.pay-card { padding: 26px; border-radius: var(--radius); background: var(--grad-soft); border: 1px solid var(--primary-line); display: flex; flex-direction: column; gap: 14px; }
.pay-total small, .pay-split small { display: block; color: var(--muted); font-size: 13px; }
.pay-total b { font-family: var(--font-display); font-size: 38px; }
.pay-split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pay-split div { padding: 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.pay-split b { font-family: var(--font-display); font-size: 24px; }
.pay-split span { display: block; color: var(--muted); font-size: 12.5px; }
.pay-h { font-family: var(--font-display); font-size: 20px; margin-bottom: 12px; }
.pay-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; padding: 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; color: var(--text-2); }
.pay-note .ico { flex: none; color: var(--primary); margin-top: 2px; }
.phase-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.phase-card { display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.phase-card h3 { font-size: 16px; }
.match { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); margin-top: 6px; }
.match div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 16px; border-top: 1px solid var(--line); font-size: 14.5px; }
.match div:first-child { border-top: 0; }
.match span { color: var(--muted); }
.match b { text-align: right; font-weight: 600; }
.match-note { color: var(--muted); font-size: 14px; margin-top: 14px; line-height: 1.6; }
.compare td:first-child { width: 28%; }
.svc-models { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.svc-model { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
.svc-model:hover { border-color: var(--primary); transform: translateY(-2px); }
.svc-model h3 { font-family: var(--font-display); font-size: 18px; }
.svc-model p { color: var(--muted); font-size: 14px; flex: 1; }
.svc-model span { color: var(--primary); font-weight: 600; font-size: 14px; }
.promise { text-align: center; padding: 34px 20px; border-radius: var(--radius); background: var(--grad-soft); border: 1px solid var(--primary-line); }
.promise p { font-family: var(--font-display); font-size: clamp(20px, 3vw, 30px); margin-top: 8px; }
.promise b { white-space: nowrap; margin: 0 6px; }
@media (max-width: 1100px) { .flow, .phase-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .dual, .pay-grid, .flow, .phase-grid { grid-template-columns: 1fr; } }
.tm-grid > *, .tm-row > * { min-width: 0; }  /* let grid columns shrink on small phones */

/* ---------- Estimate panel: Super fast / Pro AI / Manual + AI (assets/js/estimate.js) ---------- */
.est-modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.est-mode { padding: 8px 6px; border-radius: 9px; font-size: 12.5px; font-weight: 600; color: var(--muted); background: none; border: 0; cursor: pointer; white-space: nowrap; }
.est-mode.on { background: var(--primary-soft); color: var(--text, inherit); box-shadow: inset 0 0 0 1px var(--primary-line); }
.kpi .kpi-sub { display: block; font-size: 11.5px; color: var(--dim); margin-top: 2px; }
.est-acc { font-size: 12.5px; color: var(--muted); margin: 0; }
.est-scn { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.est-scn:first-of-type { border-top: 0; }
.est-scn > span { display: flex; flex-direction: column; min-width: 0; } .est-scn > span:last-child { text-align: right; flex-shrink: 0; font-weight: 600; }
.est-scn small { color: var(--dim); font-size: 12px; font-weight: 400; }
.est-risk { border-top: 1px solid var(--line); padding: 7px 0; font-size: 13.5px; } .est-risk:first-of-type { border-top: 0; }
.est-risk summary { display: flex; justify-content: space-between; gap: 10px; cursor: pointer; list-style: none; }
.est-risk summary::-webkit-details-marker { display: none; }
.est-risk p { margin: 6px 0 0; color: var(--muted); font-size: 13px; } .est-mit { color: var(--text-2, var(--muted)); }
.est-p { color: var(--warn); font-size: 12.5px; white-space: nowrap; font-weight: 600; }
.est-p-text { font-size: 14px; line-height: 1.55; margin: 0 0 6px; } .est-why { color: var(--muted); font-size: 13px; }
.est-list { margin: 0; padding-left: 18px; font-size: 13.5px; display: grid; gap: 4px; }
.est-src { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13px; } .est-src small { color: var(--dim); margin-left: 4px; }
.est-note { font-size: 13px; color: var(--warn); } .est-bad { color: var(--danger); font-size: 13px; }
.est-spin { animation: estspin 1.6s linear infinite; display: inline-block; } @keyframes estspin { to { transform: rotate(360deg); } }
.est-lines { display: grid; gap: 6px; }
.est-line { display: grid; grid-template-columns: minmax(0, 1fr) 70px 76px 28px; gap: 6px; align-items: center; }
.est-line input { width: 100%; min-width: 0; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--glass); color: inherit; font-size: 13px; }
.est-line.st-low input[data-k=hours], .est-line.st-high input[data-k=hours] { border-color: var(--warn); }
.est-flag { grid-column: 1 / -1; font-size: 12px; color: var(--muted); } .st-low .est-flag, .st-high .est-flag { color: var(--warn); }
.est-x { background: none; border: 0; color: var(--dim); cursor: pointer; font-size: 14px; }
.est-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: space-between; margin-top: 8px; }
.est-cont { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.est-cont input { width: 56px; padding: 5px 6px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--glass); color: inherit; }
#estView .empty-state p { font-size: 13.5px; color: var(--muted); margin: 8px 0 14px; }
.est-two { grid-template-columns: 1fr 1fr; } .est-two .est-mode { display: flex; flex-direction: column; gap: 2px; padding: 9px 8px; }
.est-two .est-mode small { font-weight: 500; font-size: 11.5px; color: var(--muted); }
.chip-search { width: 100%; margin-bottom: 4px; padding: 9px 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--glass); color: inherit; font-size: 13.5px; }
.chip[hidden] { display: none; }

/* AI meeting: the customer's choice to share their requirements with the business (room top) */
.share-scope { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 5px 10px; border-radius: 999px;
  background: var(--primary-soft); color: var(--text); cursor: pointer; white-space: nowrap; }
.share-scope input { accent-color: var(--primary); width: 15px; height: 15px; margin: 0; }
.share-scope:has(input:not(:checked)) { background: var(--surface-2, rgba(0,0,0,.06)); color: var(--muted, #6b6575); }
@media (max-width: 760px) { .share-scope span { max-width: 130px; overflow: hidden; text-overflow: ellipsis; } }
.tenant-logo { display: inline-flex; align-items: center; min-height: 34px; } .tenant-logo b { font-size: 20px; }
.powered { white-space: nowrap; }
.embedded .room-top .room-title a { pointer-events: none; }


/* Hire developers: prices for signed-in visitors only (the estimate card's sign-in panel) */
.tm-gate { gap: 14px; }
.tm-gate h3 { margin: 4px 0 0; font-family: var(--font-display); font-size: 22px; }
.tm-gate-preview { position: relative; padding: 14px 16px; border-radius: 12px; background: var(--surface-2, rgba(127,127,127,.06)); overflow: hidden; display: grid; gap: 8px; }
.tm-gate-preview span:first-child { font-family: var(--font-display); font-size: 32px; font-weight: 700; filter: blur(7px); user-select: none; }
.tm-gate-preview em { position: absolute; top: 22px; left: 150px; font-style: normal; color: var(--muted); filter: blur(3px); }
.tm-gate-bar { height: 9px; border-radius: 6px; background: var(--primary-line); opacity: .7; }
.tm-gate-bar.short { width: 60%; }
.tm-gate-summary { font-size: 14px; color: var(--text); margin: 0; padding: 10px 12px; border-left: 3px solid var(--primary, currentColor); background: var(--surface-2, rgba(127,127,127,.05)); border-radius: 0 8px 8px 0; }
.tm-gate-why { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.tm-gate-why li { display: flex; gap: 8px; align-items: center; }
.tm-gate-why .ico { color: var(--primary, currentColor); flex: none; }
.tm-gate-note { display: flex; gap: 8px; align-items: center; font-size: 15px; padding: 12px 14px; border-radius: 10px; border: 1px dashed var(--primary-line); }
