/* Kija · AI sales agent — premium minimal, built for iPad touch (landscape + portrait). */

@font-face { font-family: 'Inter'; font-weight: 100 900; font-display: swap; src: url('fonts/inter.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-weight: 300 700; font-display: swap; src: url('fonts/space-grotesk.woff2') format('woff2'); }

/* Kija dark (agent, home, call sheet) */
:root, .sheet-call {
  --bg: #080f17;
  --panel: #0b1520;
  --card: #0f1c2a;
  --card-2: #15263a;
  --ink: #e6eef6;
  --ink-2: #a9bdd3;
  --muted: #8ba3bd;
  --faint: #4d6a8a;
  --line: rgba(77, 106, 138, .32);
  --line-2: rgba(77, 106, 138, .18);
  --primary: #e6eef6;
  --on-primary: #071019;
  --accent: #38cfe0;
  --accent-soft: rgba(56, 207, 224, .12);
  --good: #43e6a0;
  --good-soft: rgba(67, 230, 160, .12);
  --focus: #38cfe0;
  color-scheme: dark;
}
:root {
  --cyan: #38cfe0;
  --green: #43e6a0;
  --grad: linear-gradient(100deg, var(--cyan), var(--green));
  --warn: #f0a35e;
  --danger: #ef6a55;
  --display: 'Space Grotesk', 'Inter', -apple-system, system-ui, sans-serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;
  --shadow: 0 1px 2px rgba(8, 15, 23, .05), 0 8px 28px rgba(8, 15, 23, .08);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, .12), 0 24px 60px rgba(0, 0, 0, .3);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --tap: 48px;
  --agent-w: clamp(340px, 34vw, 440px);
}
/* The demo businesses: a light "client website" */
.stage[data-view="demo"] {
  --bg: #f4f6f8;
  --panel: #ffffff;
  --card: #ffffff;
  --card-2: #eef1f4;
  --ink: #0e1621;
  --ink-2: #3a4655;
  --muted: #6b7685;
  --faint: #a3acb8;
  --line: #e2e6eb;
  --line-2: #edf0f3;
  --primary: #0e1621;
  --on-primary: #ffffff;
  --accent: #0b8b9b;
  --accent-soft: #e3f4f6;
  --good: #1d8a5a;
  --good-soft: #e5f4ec;
  --focus: #0b8b9b;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  display: grid; grid-template-rows: auto 1fr; height: var(--vvh, 100dvh); overflow: hidden;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) 0 env(safe-area-inset-left);
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; -webkit-user-select: none; user-select: none; }
button:disabled { cursor: default; }
img { display: block; max-width: 100%; }
svg { display: block; flex-shrink: 0; }
h1, h2, h3, h4, p, dl, dd, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 2.5px solid var(--focus); outline-offset: 2px; border-radius: 10px; }
[hidden] { display: none !important; }
.kicker { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.muted { color: var(--muted); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ── Top bar ─────────────────────────────────────────────────────────── */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; padding: 0 18px; border-bottom: 1px solid var(--line); background: var(--bg); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-height: var(--tap); }
.brand img { width: 36px; height: 36px; }
.brand-sub { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.mode-pill { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.mode-pill::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.mode-pill[data-mode="voice"] { background: var(--grad); color: #06121b; border-color: transparent; font-weight: 600; }
.mode-pill[data-mode="voice"]::before { background: #06121b; animation: blink 1.4s ease-in-out infinite; }
.mode-pill[data-mode="offline"] { color: var(--warn); border-color: rgba(240, 163, 94, .4); }
.mode-pill[data-mode="offline"]::before { background: var(--warn); }
@keyframes blink { 50% { opacity: .35; } }
.site-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--ink-2); text-decoration: none; }
.site-link:active { background: var(--line-2); }
.reset-btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); font-size: 14px; font-weight: 500; transition: background .2s, color .2s; }
.reset-btn svg { width: 17px; height: 17px; }
.reset-btn.is-armed { background: var(--danger); border-color: var(--danger); color: #fff; }

/* ── App layout ──────────────────────────────────────────────────────── */
.app { display: grid; grid-template-columns: var(--agent-w) 1fr; min-height: 0; }
.agent { display: flex; flex-direction: column; min-height: 0; background: var(--panel); border-right: 1px solid var(--line); }
.stage { position: relative; min-width: 0; min-height: 0; overflow: hidden; background: var(--bg); color: var(--ink); }

@media (orientation: portrait), (max-width: 899px) {
  .app { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) minmax(300px, 44%); }
  .agent { order: 2; border-right: 0; border-top: 1px solid var(--line); box-shadow: 0 -12px 40px rgba(0, 0, 0, .25); z-index: 25; }
  .stage { order: 1; }
  body.has-overlay .app { grid-template-rows: minmax(0, 1fr) auto; }
  body.has-overlay .profile { display: none; }
  body.has-overlay .thread { max-height: 132px; }
}
@media (max-width: 640px) {
  .brand-sub, .site-link, .reset-btn span { display: none; }
  .topbar { padding: 0 12px; }
  .reset-btn { width: 44px; padding: 0; justify-content: center; }
}

/* ── Agent panel ─────────────────────────────────────────────────────── */
.agent-head { display: flex; align-items: center; gap: 14px; padding: 14px 18px 10px; }
.orb { position: relative; width: 64px; height: 64px; flex-shrink: 0; }
.orb canvas { width: 100%; height: 100%; display: block; }
.orb::before { content: ''; position: absolute; inset: 12%; border-radius: 50%; background: radial-gradient(circle, rgba(56, 207, 224, .22), transparent 70%); filter: blur(8px); }
.orb::after { content: ''; position: absolute; inset: -3px; border-radius: 50%; opacity: 0; transition: opacity .5s;
  background: conic-gradient(var(--green) var(--p, 0%), rgba(56, 207, 224, .14) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px)); mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px)); }
.is-voice .orb::after { opacity: 1; }
.is-thinking .orb::before { animation: glow 1.3s ease-in-out infinite; }
@keyframes glow { 50% { opacity: .4; transform: scale(1.15); } }
.agent-id { flex: 1; min-width: 0; }
.agent-name { font-family: var(--display); font-weight: 600; font-size: 24px; line-height: 1.1; letter-spacing: -.01em; }
.in-demo .agent-name::after { content: 'demo'; margin-left: 8px; vertical-align: 4px; font: 600 10px var(--sans); letter-spacing: .12em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--cyan); }
.agent-status { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn { display: inline-grid; place-items: center; width: var(--tap); height: var(--tap); border-radius: 50%; color: var(--ink-2); transition: background .2s; flex-shrink: 0; }
.icon-btn:active { background: var(--line-2); }
.icon-btn svg { width: 22px; height: 22px; }
.speaker-btn .sp-off { display: none; }
.speaker-btn[aria-pressed="false"] { color: var(--faint); }
.speaker-btn[aria-pressed="false"] .sp-wave { display: none; }
.speaker-btn[aria-pressed="false"] .sp-off { display: block; }
.speaker-btn[aria-pressed="true"] { color: var(--cyan); background: var(--accent-soft); }

.profile { display: flex; gap: 6px; align-items: center; overflow-x: auto; scrollbar-width: none; padding: 2px 18px 12px; min-height: 42px; border-bottom: 1px solid var(--line-2); }
.profile::-webkit-scrollbar { display: none; }
.profile-label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; margin-right: 4px; font-weight: 600; }
.profile-hint { font-size: 13px; color: var(--faint); white-space: nowrap; }
.pchip { white-space: nowrap; font-size: 13px; padding: 5px 11px; border-radius: 999px; background: var(--accent-soft); color: var(--cyan); font-weight: 500; }
.pchip.is-new { animation: pop .6s var(--ease); }
@keyframes pop { 0% { transform: scale(.7); opacity: 0; } 60% { transform: scale(1.06); } 100% { transform: none; opacity: 1; } }

.thread { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 18px 8px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.msg { max-width: 90%; animation: rise .45s var(--ease) both; }
.msg p { padding: 11px 15px; border-radius: 20px; font-size: 15.5px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg-agent { align-self: flex-start; }
.msg-agent p { background: var(--card); border: 1px solid var(--line-2); border-bottom-left-radius: 6px; }
.msg-user { align-self: flex-end; }
.msg-user p { background: var(--grad); color: #06121b; font-weight: 500; border-bottom-right-radius: 6px; }
.msg-typing p { display: flex; gap: 5px; padding: 15px 16px; }
.msg-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); animation: dot 1.2s infinite; }
.msg-typing i:nth-child(2) { animation-delay: .15s; } .msg-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 30% { transform: translateY(-4px); background: var(--cyan); } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.msg-note { align-self: center; font-size: 12.5px; color: var(--muted); background: var(--line-2); padding: 5px 12px; border-radius: 999px; animation: rise .45s var(--ease) both; text-align: center; }
.suggest { display: flex; flex-wrap: wrap; gap: 8px; animation: rise .5s .1s var(--ease) both; }
.suggest button { min-height: 44px; text-align: left; padding: 9px 15px; border-radius: 16px; border: 1px solid var(--line); color: var(--ink-2); font-size: 14.5px; transition: background .2s, border-color .2s; }
.suggest button:active { background: var(--card); border-color: var(--cyan); color: var(--ink); }

.composer { display: flex; align-items: flex-end; gap: 10px; padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-2); background: var(--panel); }
.mic-btn { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 64px; height: 64px; border-radius: 50%; background: var(--grad); color: #06121b; flex-shrink: 0; transition: transform .15s, filter .25s; box-shadow: 0 8px 28px rgba(56, 207, 224, .25); }
.mic-btn:active { transform: scale(.95); }
.mic-icon svg { width: 24px; height: 24px; }
.mic-label { font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; }
.mic-btn[data-state="connecting"] { animation: breathe 1.2s ease-in-out infinite; }
.mic-btn[data-state="live"] { background: var(--danger); color: #fff; box-shadow: 0 8px 24px rgba(239, 106, 85, .3); }
.mic-btn[data-state="dictating"] { animation: ring 1.4s infinite; }
@keyframes breathe { 50% { opacity: .6; } }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(67, 230, 160, .5); } 100% { box-shadow: 0 0 0 18px rgba(67, 230, 160, 0); } }
.composer-field { flex: 1; min-width: 0; display: flex; align-items: flex-end; gap: 6px; padding: 6px 6px 6px 16px; border-radius: 26px; background: var(--card); border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s; }
.composer-field:focus-within { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(56, 207, 224, .12); }
.composer-field textarea { flex: 1; min-width: 0; border: 0; outline: 0; resize: none; background: transparent; font-size: 16px; line-height: 1.4; padding: 10px 0; max-height: 120px; }
.composer-field textarea::placeholder { color: var(--faint); }
.send-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--bg); flex-shrink: 0; }
.send-btn svg { width: 20px; height: 20px; }
.send-btn:active { transform: scale(.94); }

/* ── Stage ───────────────────────────────────────────────────────────── */
.stage-scroll { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }

/* Home */
.home { min-height: 100%; padding: clamp(22px, 3.5vw, 44px) clamp(16px, 3vw, 40px) 40px; display: grid; gap: 26px; align-content: start; max-width: 1100px; margin: 0 auto;
  background-image: radial-gradient(rgba(77, 106, 138, .22) 1px, transparent 1px); background-size: 28px 28px; background-position: -14px -14px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(67, 230, 160, .3); background: rgba(16, 29, 44, .7); font-size: 12.5px; color: var(--ink-2); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(67, 230, 160, .6); animation: live 1.8s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 8px rgba(67, 230, 160, 0); } 100% { box-shadow: 0 0 0 0 rgba(67, 230, 160, 0); } }
.home-hero h1 { margin-top: 16px; font-family: var(--display); font-weight: 700; font-size: clamp(30px, 4.2vw, 52px); line-height: 1.04; letter-spacing: -.025em; max-width: 16ch; }
.home-sub { margin-top: 14px; max-width: 56ch; font-size: 16.5px; color: var(--muted); }
.demo-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.demo-tile { position: relative; display: grid; grid-template-rows: auto 1fr; text-align: left; border-radius: var(--r-lg); overflow: hidden; background: var(--card); border: 1px solid var(--line); animation: card-in .6s calc(var(--i) * 70ms) var(--ease) both; transition: border-color .3s, transform .2s var(--ease), box-shadow .3s; }
.demo-tile:active { transform: scale(.985); }
@media (hover: hover) { .demo-tile:hover { border-color: rgba(56, 207, 224, .55); box-shadow: 0 16px 44px -20px rgba(56, 207, 224, .45); } }
.demo-tile-img { aspect-ratio: 16 / 7; overflow: hidden; background: var(--card-2); }
.demo-tile-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
@media (hover: hover) { .demo-tile:hover .demo-tile-img img { transform: scale(1.04); } }
.demo-tile-body { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; padding: 14px 16px 16px; align-items: start; }
.demo-tile-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--cyan); grid-row: span 2; }
.demo-tile-icon svg { width: 21px; height: 21px; }
.demo-tile-label { font-family: var(--display); font-weight: 600; font-size: 19px; letter-spacing: -.01em; }
.demo-tile-pitch { font-size: 14px; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.demo-tile-go { grid-column: 2; display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--green); }
.demo-tile-go svg { width: 16px; height: 16px; }
.home-topics { display: grid; gap: 10px; }
.topic-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.topic-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: rgba(16, 29, 44, .7); font-size: 14.5px; font-weight: 500; color: var(--ink-2); transition: border-color .2s, color .2s; }
.topic-chip svg { width: 18px; height: 18px; color: var(--cyan); }
.topic-chip:active { border-color: var(--cyan); color: var(--ink); }
.home-call { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 20px; border-radius: var(--r-lg); border: 1px solid rgba(67, 230, 160, .28); background: linear-gradient(120deg, rgba(56, 207, 224, .1), rgba(67, 230, 160, .08)); }
.home-call-txt p:last-child { margin-top: 4px; font-size: 15px; color: var(--ink-2); max-width: 60ch; }
.badge-ok { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--good-soft); color: var(--green); font-weight: 600; font-size: 14px; white-space: nowrap; }
.badge-ok svg { width: 16px; height: 16px; }
@media (max-width: 700px) { .demo-tiles { grid-template-columns: 1fr; } .home-call { flex-direction: column; align-items: flex-start; } }
@media (orientation: portrait) and (min-width: 700px) { .demo-tile-img { aspect-ratio: 16 / 6; } }

/* Demo: browser frame */
.demo-bar { position: sticky; top: 0; z-index: 6; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px clamp(12px, 2vw, 20px); background: #0b1520; color: #e6eef6; border-bottom: 1px solid rgba(77, 106, 138, .32); }
.demo-url { display: flex; align-items: center; gap: 10px; min-width: 0; height: 40px; padding: 0 14px; border-radius: 999px; background: rgba(255, 255, 255, .06); font-size: 14px; color: #a9bdd3; white-space: nowrap; overflow: hidden; }
.dots { display: inline-flex; gap: 5px; margin-right: 2px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: #2a3c52; }
.lock { font-size: 11px; opacity: .7; }
.demo-tag { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: rgba(56, 207, 224, .15); color: #38cfe0; }
.demo-bar-right { display: flex; align-items: center; gap: 10px; }
.demo-persona { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: #a9bdd3; white-space: nowrap; }
.demo-persona b { color: #e6eef6; font-weight: 600; }
.demo-persona svg { width: 18px; height: 18px; color: #43e6a0; }
.chip-dark { background: transparent !important; color: #e6eef6 !important; border-color: rgba(77, 106, 138, .45) !important; }
@media (max-width: 1050px) { .demo-persona { display: none; } }
.demo-page { padding: 20px clamp(16px, 2.4vw, 28px) 120px; }
.results-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.results-headline { margin-top: 4px; font-family: var(--display); font-weight: 600; font-size: clamp(24px, 2.8vw, 32px); line-height: 1.1; letter-spacing: -.02em; }
.results-count { font-size: 14px; color: var(--muted); white-space: nowrap; }

.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--card-2); gap: 2px; flex-shrink: 0; }
.seg button { min-height: 40px; padding: 0 16px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); white-space: nowrap; transition: background .2s, color .2s, box-shadow .2s; }
.seg button.is-on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(14, 22, 33, .12); }

.filters { display: flex; gap: 8px; align-items: center; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * clamp(16px, 2.4vw, 28px)) 18px; padding: 2px clamp(16px, 2.4vw, 28px) 4px; }
.filters::-webkit-scrollbar { display: none; }
.fchip { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: 14.5px; color: var(--ink-2); white-space: nowrap; transition: background .2s, border-color .2s, color .2s; }
.fchip svg { width: 16px; height: 16px; color: var(--muted); }
.fchip.is-on { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.fchip.is-on svg { color: inherit; opacity: .7; }
.fchip-clear { border-style: dashed; color: var(--muted); }
.fchip-q { font-style: italic; }

.popover { position: absolute; z-index: 40; width: 240px; padding: 6px; border-radius: 18px; background: #fff; color: #0e1621; border: 1px solid #e2e6eb; box-shadow: var(--shadow-lg); animation: rise .25s var(--ease); }
.popover button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 50px; padding: 0 14px; border-radius: 12px; font-size: 15px; text-align: left; }
.popover button:active, .popover button.is-on { background: #e3f4f6; color: #0b8b9b; }
.popover svg { width: 18px; height: 18px; }

.results-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr)); gap: 16px; }
.credits { margin-top: 28px; font-size: 12px; color: var(--faint); text-align: center; }

/* Item card */
.icard { position: relative; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line-2); box-shadow: var(--shadow); overflow: hidden; animation: card-in .55s calc(var(--i) * 45ms) var(--ease) both; transition: transform .25s var(--ease), box-shadow .25s; }
@keyframes card-in { from { opacity: 0; transform: translateY(14px) scale(.985); } }
.icard:active { transform: scale(.985); }
.icard.in-compare { border-color: var(--accent); box-shadow: 0 0 0 1.5px var(--accent), var(--shadow); }
.icard-open { display: block; width: 100%; text-align: left; }
.icard-img { position: relative; aspect-ratio: 4 / 3; background: linear-gradient(135deg, #e9edf1, #dde3e9); overflow: hidden; }
.icard-img img { width: 100%; height: 100%; object-fit: cover; }
.icard-tags { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 11.5px; font-weight: 600; letter-spacing: .02em; padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: #0e1621; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.tag-best { background: #0e1621; color: #fff; }
.icard-body { padding: 14px 16px 16px; }
.icard-price { font-family: var(--display); font-weight: 600; font-size: 24px; line-height: 1.1; letter-spacing: -.01em; }
.icard-title { margin-top: 4px; font-size: 15.5px; font-weight: 600; line-height: 1.3; }
.icard-place { margin-top: 2px; font-size: 14px; color: var(--muted); }
.icard-facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.icard-facts span { font-size: 12.5px; padding: 4px 10px; border-radius: 999px; background: var(--card-2); color: var(--ink-2); }
.icard-facts em { font-style: normal; color: var(--muted); margin-right: 4px; }
.icard-compare { position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px 0 11px; border-radius: 999px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 13px; font-weight: 500; color: #0e1621; box-shadow: 0 2px 10px rgba(0, 0, 0, .08); }
.icard-compare svg { width: 17px; height: 17px; }
.icard-compare[aria-pressed="true"] { background: var(--accent); color: #fff; }

.empty { grid-column: 1 / -1; padding: 48px 24px; text-align: center; border: 1.5px dashed var(--line); border-radius: var(--r-lg); }
.empty h3 { font-family: var(--display); font-weight: 600; font-size: 26px; margin: 6px 0; }
.empty p { color: var(--muted); }
.empty-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 16px; }

/* Compare tray */
.compare-tray { position: absolute; left: 50%; bottom: 18px; z-index: 15; display: flex; align-items: center; gap: 14px; padding: 10px 10px 10px 12px; border-radius: 999px; background: rgba(11, 21, 32, .95); color: #fff; box-shadow: var(--shadow-lg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transform: translate(-50%, 150%); transition: transform .45s var(--ease); max-width: calc(100% - 32px); }
.compare-tray:not(.is-on) { visibility: hidden; transition: transform .45s var(--ease), visibility 0s .45s; }
.compare-tray.is-on { transform: translate(-50%, 0); }
.tray-thumbs { display: flex; gap: 6px; }
.tray-thumb { position: relative; width: 46px; height: 46px; border-radius: 50%; overflow: hidden; border: 2px solid rgba(255, 255, 255, .85); }
.tray-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tray-thumb span { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .35); opacity: 0; transition: opacity .2s; }
.tray-thumb:active span { opacity: 1; }
.tray-thumb svg { width: 16px; height: 16px; }
.tray-slot { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1.5px dashed rgba(255, 255, 255, .35); color: rgba(255, 255, 255, .5); }
.tray-slot svg { width: 18px; height: 18px; }
.tray-text { font-size: 14px; color: rgba(255, 255, 255, .75); white-space: nowrap; }
.compare-tray .btn-primary { background: var(--grad); color: #06121b; min-height: 48px; }
@media (max-width: 560px) { .tray-text { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; border-radius: 999px; font-size: 15.5px; font-weight: 600; text-decoration: none; transition: background .2s, transform .15s, opacity .2s; white-space: nowrap; }
.btn svg { width: 19px; height: 19px; }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn:disabled { opacity: .45; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-grad { background: var(--grad); color: #06121b; }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }
.chip-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: 14px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.chip-btn svg { width: 17px; height: 17px; }
.chip-btn.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ── Overlays (sheets) ───────────────────────────────────────────────── */
.overlay { position: absolute; inset: 0; z-index: 20; pointer-events: none; }
.overlay.is-open { pointer-events: auto; }
.sheet { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--bg); color: var(--ink); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.sheet.is-entering, .overlay:not(.is-open) .sheet { opacity: 0; transform: translateY(18px); }
.sheet-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--panel); border-bottom: 1px solid var(--line); min-height: 64px; }
.sheet-bar-title { flex: 1; min-width: 0; display: grid; }
.sheet-bar-title > span:last-child { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.sheet-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); background: var(--panel); border-top: 1px solid var(--line); }
.sheet-foot strong { display: block; font-family: var(--display); font-size: 24px; font-weight: 600; line-height: 1.1; }
.sheet-foot span { font-size: 13px; color: var(--muted); }
.sheet-foot > div { min-width: 0; } .sheet-foot > div span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.item-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); min-height: 100%; }
.item-media { position: relative; background: #11161c; }
.item-media .gallery { position: sticky; top: 0; }
.item-info { padding: 26px clamp(18px, 2.5vw, 32px) 32px; }
@media (max-width: 1180px), (orientation: portrait) {
  .item-layout { grid-template-columns: 1fr; }
  .item-media .gallery { position: relative; }
  .item-media .gallery-track { aspect-ratio: auto; height: min(50vh, 66vw); }
}
.gallery { position: relative; user-select: none; -webkit-user-select: none; }
.gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 4 / 3; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-slide { position: relative; flex: 0 0 100%; scroll-snap-align: center; background: #1b2028; }
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery-count { position: absolute; top: 14px; right: 14px; font-size: 13px; font-weight: 500; padding: 5px 11px; border-radius: 999px; background: rgba(0, 0, 0, .5); color: #fff; font-variant-numeric: tabular-nums; }
.gallery-nav { position: absolute; top: calc(50% - 26px); width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .9); color: #0e1621; box-shadow: 0 4px 16px rgba(0, 0, 0, .18); }
.gallery-nav svg { width: 22px; height: 22px; }
.gallery-nav.prev { left: 14px; } .gallery-nav.next { right: 14px; } .gallery-nav.next svg { transform: rotate(180deg); }
.item-title { font-family: var(--display); font-weight: 600; font-size: clamp(26px, 2.8vw, 34px); line-height: 1.1; letter-spacing: -.02em; margin: 6px 0 4px; }
.item-place { color: var(--muted); font-size: 15px; }
.item-price { margin-top: 14px; font-family: var(--display); font-weight: 600; font-size: 36px; line-height: 1; letter-spacing: -.02em; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 18px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.facts div { background: var(--card); padding: 12px 14px; }
.facts dt { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin-top: 4px; font-size: 15.5px; font-weight: 600; }
@media (max-width: 600px) { .facts { grid-template-columns: 1fr 1fr; } }
.feat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.feat-chips span { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; padding: 7px 13px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.feat-chips svg { width: 15px; height: 15px; color: var(--good); }
.highlights { display: grid; gap: 8px; margin-top: 18px; }
.highlights li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.highlights svg { width: 18px; height: 18px; color: var(--accent); margin-top: 2px; }
.item-desc { margin-top: 16px; color: var(--ink-2); font-size: 15.5px; line-height: 1.6; }

/* Compare */
.compare { display: grid; grid-template-columns: repeat(var(--n), minmax(220px, 1fr)); gap: 14px; padding: 18px clamp(14px, 2vw, 24px) 32px; min-width: calc(var(--n) * 234px); }
.sheet:has(.compare) .sheet-scroll { overflow-x: auto; }
.cmp-col { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line-2); }
.cmp-img { display: block; width: 100%; aspect-ratio: 4 / 3; border-radius: var(--r-md); overflow: hidden; background: var(--card-2); }
.cmp-img img { width: 100%; height: 100%; object-fit: cover; }
.cmp-x { position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: #0e1621; }
.cmp-x svg { width: 16px; height: 16px; }
.cmp-title { margin-top: 6px; font-weight: 600; font-size: 15.5px; line-height: 1.3; }
.cmp-place { font-size: 13.5px; color: var(--muted); }
.cmp-price { font-family: var(--display); font-weight: 600; font-size: 24px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cmp-price em { font: 600 11px var(--sans); font-style: normal; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: var(--good-soft); color: var(--good); }
.cmp-col dl { display: grid; margin: 4px 0; }
.cmp-col dl div { display: flex; justify-content: space-between; gap: 10px; padding: 9px 2px; border-top: 1px solid var(--line-2); font-size: 14px; }
.cmp-col dt { color: var(--muted); }
.cmp-col dd { font-weight: 600; text-align: right; }
.cmp-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.cmp-tags span { font-size: 12px; padding: 3px 9px; border-radius: 999px; background: var(--card-2); color: var(--ink-2); }
.cmp-col .btn { margin-top: auto; }

/* Booking forms */
.booking { max-width: 720px; margin: 0 auto; padding: 22px clamp(16px, 3vw, 32px) 40px; display: grid; gap: 22px; }
.booking-item, .call-host { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: var(--r-md); background: var(--card); border: 1px solid var(--line); }
.booking-item img { width: 84px; height: 64px; border-radius: 10px; object-fit: cover; }
.booking-item-title { font-size: 15px; font-weight: 600; }
.call-host { padding: 14px; align-items: flex-start; }
.call-host .muted { font-size: 14px; margin-top: 2px; }
.call-avatar { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--grad); color: #06121b; font: 700 22px var(--display); flex-shrink: 0; }
.booking fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.booking legend { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 20px; margin-bottom: 12px; padding: 0; width: 100%; }
.booking legend span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: var(--on-primary); font: 700 13px var(--sans); }
.sheet-call .booking legend span { background: var(--grad); color: #06121b; }
.booking legend .tz { margin-left: auto; font: 500 12px var(--sans); font-style: normal; color: var(--muted); letter-spacing: .04em; }
.days { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 6px; margin: 0 -2px; }
.days::-webkit-scrollbar { display: none; }
.day { flex: 0 0 auto; width: 76px; padding: 10px 0; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--card); display: grid; gap: 1px; justify-items: center; transition: background .2s, color .2s, border-color .2s; }
.day span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.day strong { font-family: var(--display); font-weight: 600; font-size: 26px; line-height: 1.1; }
.day.is-on { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.day.is-on span { color: inherit; opacity: .7; }
.day:disabled { opacity: .35; }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }
.times-wide { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.time { min-height: 52px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--card); font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; transition: background .2s, color .2s; }
.time.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }
.sheet-call .time.is-on { background: var(--grad); color: #06121b; border-color: transparent; }
.time:disabled { color: var(--faint); text-decoration: line-through; background: transparent; border-style: dashed; }
.local-time { margin-top: 8px; font-size: 13.5px; min-height: 20px; }
.stepper { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 16px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--card); }
.stepper > span { font-weight: 500; }
.stepper > div { display: flex; align-items: center; gap: 10px; }
.stepper button { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--card-2); }
.stepper button svg { width: 20px; height: 20px; }
.stepper output { min-width: 28px; text-align: center; font: 600 20px var(--display); font-variant-numeric: tabular-nums; }
.order-total { margin-top: 8px; font-size: 14px; color: var(--muted); }
.field { display: grid; gap: 6px; margin-bottom: 12px; }
.field > span { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.field em { text-transform: none; letter-spacing: 0; font-style: normal; font-weight: 400; color: var(--faint); }
.field input { width: 100%; min-height: 54px; padding: 0 16px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--card); font-size: 17px; outline: none; transition: border-color .2s, box-shadow .2s; }
.field input::placeholder { color: var(--faint); }
.field input:focus { border-color: var(--focus); box-shadow: 0 0 0 4px color-mix(in srgb, var(--focus) 15%, transparent); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-error { min-height: 20px; font-size: 14px; color: var(--danger); }
.form-fine { font-size: 13px; color: var(--muted); text-align: center; margin-top: -8px; }
.loading-line { display: flex; align-items: center; gap: 10px; color: var(--muted); padding: 18px 4px; }
.loading-line i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--cyan); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Cards inside the conversation ───────────────────────────────────── */
.ccard { width: 100%; border-radius: var(--r-md); background: var(--card); border: 1px solid var(--line); overflow: hidden; animation: rise .5s var(--ease) both; flex-shrink: 0; }
.ccard-body { padding: 14px 16px 16px; display: grid; gap: 8px; }
.ccard-kicker { display: flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--cyan); }
.ccard-kicker svg { width: 18px; height: 18px; }
.ccard-kicker.ok { color: var(--green); }
.ccard-intro { font-size: 15px; font-weight: 600; color: var(--ink); }
.ticks { display: grid; gap: 7px; }
.ticks li { display: flex; gap: 9px; font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.ticks svg { width: 16px; height: 16px; color: var(--green); margin-top: 2px; }
.steps { display: grid; gap: 0; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 74px 1fr; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line-2); font-size: 14px; color: var(--ink-2); }
.steps li:first-child { border-top: 0; }
.steps b { color: var(--cyan); font-weight: 600; }
.ccard .btn { justify-self: start; margin-top: 4px; }
.confirm-row { display: flex; gap: 12px; align-items: center; }
.confirm-row img { width: 72px; height: 54px; border-radius: 10px; object-fit: cover; }
.confirm-title { font-weight: 600; font-size: 14.5px; }
.confirm-row .muted { font-size: 13px; }
.ccard-confirm { border-color: rgba(67, 230, 160, .35); }
.ccard.ccard-lead { background: linear-gradient(160deg, #10263a, #0d1d2c); border-color: rgba(56, 207, 224, .35); }
.lead-rows { display: grid; }
.lead-rows div { display: grid; grid-template-columns: 104px 1fr; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line-2); font-size: 13.5px; }
.lead-rows div:first-child { border-top: 0; }
.lead-rows dt { color: var(--muted); }
.lead-rows dd { color: var(--ink); }
.sync { display: flex; flex-wrap: wrap; gap: 6px; }
.sync span { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; padding: 4px 10px; border-radius: 999px; background: var(--good-soft); color: var(--green); font-weight: 500; }
.sync svg { width: 14px; height: 14px; }
.ccard-fine { font-size: 12.5px; color: var(--muted); }
.ccard-call { border-color: rgba(67, 230, 160, .4); background: linear-gradient(160deg, rgba(56, 207, 224, .08), rgba(67, 230, 160, .06)); }
.call-when { font-family: var(--display); font-weight: 600; font-size: 19px; line-height: 1.25; }
.ccard-note { font-size: 14px; color: var(--ink-2); }
.ccard-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ccard-actions .btn { margin-top: 0; }

/* ── Toasts ──────────────────────────────────────────────────────────── */
.toasts { position: fixed; top: calc(74px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); z-index: 100; display: grid; gap: 8px; justify-items: center; pointer-events: none; width: min(560px, calc(100% - 32px)); }
.toast { padding: 12px 18px; border-radius: 16px; background: #e6eef6; color: #071019; font-size: 14.5px; font-weight: 500; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(-10px); transition: opacity .35s var(--ease), transform .35s var(--ease); text-align: center; }
.toast.is-in { opacity: 1; transform: none; }
.toast-warn { background: #3b2410; color: #ffd8b3; }
.toast-ok { background: var(--green); color: #06121b; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
