@font-face { font-family: "Inter"; src: url("../fonts/inter-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --ink: #111111;
  --ink-2: #2a2a2a;
  --muted: #6e6e73;
  --faint: #9a9aa0;
  --line: #ececec;
  --line-2: #e2e2e2;
  --bg: #ffffff;
  --paper: #f7f7f5;
  --soft: #f4f4f2;
  --sea: #2f7fc8;
  --ok: #1f8a4c;
  --warn: #a5651b;
  --r-card: 22px;
  --r-md: 16px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 6px 20px rgba(0,0,0,.055);
  --shadow-lg: 0 2px 4px rgba(0,0,0,.04), 0 18px 40px rgba(0,0,0,.08);
  --ease: cubic-bezier(.2,.7,.2,1);
  --pad: 20px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.45 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; letter-spacing: -0.006em; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
img { display: block; max-width: 100%; }
svg { width: 18px; height: 18px; flex: none; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.022em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--sea); outline-offset: 2px; border-radius: 10px; }
.dot { color: var(--faint); margin: 0 6px; }
.muted { color: var(--faint); }
.center { text-align: center; }
.label { font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: .02em; text-transform: uppercase; margin-bottom: 10px; }

/* ---------- primitives ---------- */
.round { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); transition: transform .15s var(--ease); }
.round:active { transform: scale(.95); }
.round.sm { width: 36px; height: 36px; box-shadow: none; border: 1px solid var(--line); }
.round[disabled] { opacity: .35; cursor: default; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: var(--ink-2); }
.icon-btn:hover { background: var(--soft); }
.icon-btn svg { width: 20px; height: 20px; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px 0 16px; border-radius: 999px; font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; transition: background .15s, transform .15s var(--ease); }
.pill svg { width: 16px; height: 16px; }
.pill:active { transform: scale(.97); }
.pill-light { background: #fff; border: 1px solid var(--line-2); box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.pill-light:hover { background: var(--soft); }
.pill-dark { background: var(--ink); color: #fff; }
.pill-dark:hover { background: #000; }
.chip { height: 40px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font-size: 14px; color: var(--ink-2); transition: background .15s, border-color .15s; }
.chip:hover { background: var(--soft); border-color: #d6d6d6; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips.center { justify-content: center; }
.tag { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; background: var(--soft); color: var(--muted); font-size: 11px; font-weight: 500; letter-spacing: .01em; white-space: nowrap; }
.tag-example { background: #fff4e5; color: var(--warn); margin-left: 6px; }
.tag-ghost { background: rgba(255,255,255,.85); backdrop-filter: blur(4px); }
.fine { font-size: 12.5px; color: var(--muted); line-height: 1.45; display: flex; gap: 6px; align-items: flex-start; flex-wrap: wrap; }
.fine svg { width: 14px; height: 14px; margin-top: 2px; }
.fine svg + span { flex: 1 1 0; min-width: 0; }
.fine.center { justify-content: center; }
.link-btn { color: var(--muted); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }

.wave-avatar { width: var(--s); height: var(--s); border-radius: 50%; overflow: hidden; flex: none; display: block; box-shadow: inset 0 0 0 1px rgba(0,0,0,.04); }
.wave-avatar svg { width: 100%; height: 100%; display: block; }
.logo-mark { width: 40px; height: 18px; color: var(--ink); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-name { font-weight: 600; font-size: 15px; letter-spacing: -.01em; display: none; }

.topbar { display: flex; align-items: center; justify-content: space-between; padding: 14px var(--pad) 12px; }
.progress { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; padding: 0 var(--pad); }
.progress span { height: 3px; border-radius: 3px; background: var(--line); }
.progress span.on { background: var(--ink); }

.screen.fade { animation: fade .35s var(--ease) both; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- cards ---------- */
.card { background: #fff; border-radius: var(--r-card); box-shadow: var(--shadow); border: 1px solid rgba(0,0,0,.03); overflow: hidden; }
.card-head { display: flex; align-items: center; gap: 12px; padding: 16px 16px 4px; }
.card-head h4 { font-size: 15px; font-weight: 600; }
.card-head .tag { margin-left: auto; }
.card-head .ico { width: 36px; height: 36px; border-radius: 12px; background: var(--soft); display: grid; place-items: center; }
.meta { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 13.5px; margin-top: 4px; flex-wrap: wrap; }
.meta svg { width: 15px; height: 15px; }
.meta .dot { margin: 0 2px; }
.meta.sub { font-size: 12.5px; margin-top: 2px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.src-line { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--faint); }
.src-line a { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); text-decoration: none; }
.src-line a:hover span { text-decoration: underline; }
.src-line svg { width: 13px; height: 13px; }
.src-line .dot { margin: 0 4px; }

/* tour card */
.tour-card .media { position: relative; aspect-ratio: 16/9; background: var(--soft); }
.tour-card .media img { width: 100%; height: 100%; object-fit: cover; }
.badge.provider { position: absolute; left: 12px; top: 12px; height: 24px; padding: 0 10px; border-radius: 999px; background: rgba(255,255,255,.92); backdrop-filter: blur(6px); font-size: 11.5px; font-weight: 600; display: flex; align-items: center; }
.tour-card .body { padding: 14px 16px 14px; }
.tour-card h3 { font-size: 16px; font-weight: 600; line-height: 1.3; }
.tour-card .row-between { margin-top: 14px; }
.price { font-size: 16px; font-weight: 600; display: flex; align-items: center; }
.price .from { font-size: 12.5px; color: var(--muted); font-weight: 400; margin-right: 4px; }

/* slot picker */
.slot-picker .days { display: flex; gap: 8px; padding: 12px 16px 4px; overflow-x: auto; scrollbar-width: none; }
.slot-picker .days::-webkit-scrollbar { display: none; }
.day-chip { flex: 1 0 60px; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 10px 6px; border-radius: 16px; border: 1px solid var(--line-2); background: #fff; transition: background .15s, color .15s; }
.day-chip span { font-size: 12px; color: var(--muted); }
.day-chip b { font-size: 17px; font-weight: 600; }
.day-chip i { font-style: normal; font-size: 10.5px; color: var(--faint); }
.day-chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.day-chip.on span, .day-chip.on i { color: rgba(255,255,255,.7); }
.day-chip:disabled { opacity: .45; cursor: default; }
.slots { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 16px 12px; }
.slot { height: 36px; padding: 0 14px; border-radius: 999px; background: var(--soft); font-size: 14px; font-variant-numeric: tabular-nums; font-weight: 500; }
.slot.on { background: var(--ink); color: #fff; }
.slot-picker .fine { padding: 0 16px 14px; }

/* ferry */
.ferry-body { padding: 8px 16px 14px; }
.seg { display: flex; gap: 4px; margin: 12px 16px 2px; padding: 4px; background: var(--soft); border-radius: 999px; }
.seg button { flex: 1; height: 32px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--muted); transition: background .2s, color .2s; }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.route { display: flex; align-items: center; gap: 10px; font-size: 15px; margin: 8px 0 6px; }
.route .line { flex: 1; height: 1px; background: repeating-linear-gradient(90deg, var(--faint) 0 4px, transparent 4px 8px); position: relative; }
.route .line::after { content: ""; position: absolute; right: -2px; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.season-row { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.status { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 999px; font-weight: 500; font-size: 11.5px; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.running { background: #eaf6ee; color: var(--ok); }
.status.off { background: var(--soft); color: var(--muted); }
.tt { width: 100%; border-collapse: collapse; margin: 12px 0 10px; font-variant-numeric: tabular-nums; }
.tt th { font-size: 11.5px; font-weight: 500; color: var(--faint); text-align: left; padding: 0 0 6px; }
.tt td { padding: 8px 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-2); }
.tt td:first-child { font-weight: 600; color: var(--ink); }
.tt tr.next td { color: var(--ink); }
.tt tr.next td:first-child em { font-style: normal; font-size: 10.5px; font-weight: 600; background: var(--ink); color: #fff; border-radius: 999px; padding: 2px 7px; margin-right: 8px; vertical-align: 1px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; margin-bottom: 10px; }
.facts div { background: var(--soft); border-radius: 14px; padding: 9px 12px; display: flex; flex-direction: column; }
.facts span { font-size: 11.5px; color: var(--muted); }
.facts b { font-size: 15px; font-weight: 600; white-space: nowrap; }
.facts i { font-style: normal; font-size: 11px; color: var(--faint); }

/* aqua taxi */
.fares { list-style: none; margin: 10px 16px 8px; padding: 0; }
.fares li { display: grid; grid-template-columns: 1fr auto 56px; gap: 10px; align-items: baseline; padding: 9px 0; border-top: 1px solid var(--line); }
.fares li:first-child { border-top: 0; }
.fares span { font-weight: 500; }
.fares i { font-style: normal; color: var(--faint); font-size: 12.5px; }
.fares b { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.taxi-card > .fine { padding: 0 16px; margin-bottom: 6px; }
.cta-row { display: flex; gap: 8px; padding: 8px 16px 6px; }
.cta-row .copy { width: 44px; padding: 0; justify-content: center; flex: none; }
.cta-row .pill-dark { flex: 1; justify-content: center; height: 44px; }
.cta-row .pill-light { height: 44px; }
.taxi-card .src-line { margin: 10px 16px 14px; }

/* season */
.season-card ul { list-style: none; margin: 6px 0 0; padding: 0 16px 14px; }
.season-card li { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.season-card li:first-child { border-top: 0; }
.season-card .mark { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; margin-top: 1px; }
.season-card .mark svg { width: 15px; height: 15px; }
.season-card .yes .mark { background: #eaf6ee; color: var(--ok); }
.season-card .no .mark { background: var(--soft); color: var(--muted); }
.season-card b { font-weight: 600; font-size: 14.5px; }
.season-card .no b { color: var(--muted); }
.season-card li p { color: var(--muted); font-size: 13px; margin-top: 2px; }
.season-card .src-line { border: 0; padding-top: 0; margin-top: 6px; }

/* place */
.place-card .map { position: relative; aspect-ratio: 320/150; }
.place-card .map svg { width: 100%; height: 100%; display: block; font-family: inherit; }
.place-card .map .tag { position: absolute; left: 10px; bottom: 10px; }
.place-card .body { padding: 14px 16px; }
.place-card h3 { font-size: 16px; font-weight: 600; }
.place-card .body > .fine { margin-top: 8px; }

/* day plan */
.timeline { list-style: none; margin: 8px 0 0; padding: 0 16px 6px; }
.timeline > li { padding: 10px 0 8px; border-top: 1px solid var(--line); }
.timeline > li:first-child { border-top: 0; }
.part { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.part svg { width: 16px; height: 16px; }
.timeline ul { list-style: none; margin: 6px 0 0; padding: 0 0 0 7px; border-left: 1px solid var(--line-2); margin-left: 7px; }
.timeline ul li { display: flex; gap: 12px; align-items: flex-start; padding: 6px 0 6px 14px; position: relative; }
.timeline ul li::before { content: ""; position: absolute; left: -11px; top: 13px; width: 7px; height: 7px; border-radius: 50%; background: #fff; border: 1.5px solid var(--ink); }
.timeline ul time { width: 40px; flex: none; margin: 0; font-size: 13px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; padding-top: 2px; }
.timeline b { font-weight: 500; font-size: 14.5px; }
.timeline ul p { font-size: 12.5px; color: var(--muted); }
.timeline .tick { margin-left: auto; color: var(--ok); }
.timeline .tick svg { width: 15px; height: 15px; }
.day-plan > .fine { padding: 0 16px 14px; }

/* sources */
.sources .label { margin-bottom: 8px; }
.src-chip { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 10px 0 11px; border-radius: 999px; background: var(--soft); text-decoration: none; font-size: 12.5px; color: var(--ink-2); transition: background .15s; }
.src-chip:hover { background: #ebebe8; }
.src-chip svg { width: 13px; height: 13px; color: var(--faint); }
.src-chip .ok { width: 16px; height: 16px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; }
.src-chip .ok svg { width: 11px; height: 11px; color: #fff; }
.sources .chips { gap: 6px; }

.quick-replies { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- onboarding ---------- */
.onboarding { min-height: 100svh; display: flex; flex-direction: column; }
.ob-hero { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 48px var(--pad) 24px; text-align: center; }
.ob-hero h1 { font-size: 34px; line-height: 1.12; font-weight: 700; letter-spacing: -0.035em; }
.lede { margin-top: 12px; color: var(--muted); font-size: 17px; }
.lede.left { text-align: left; font-size: 15px; margin-top: 8px; }
.circles { position: relative; width: 100%; max-width: 340px; height: 190px; margin: 40px auto 44px; }
.circles .c { position: absolute; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px #fff, var(--shadow); }
.circles .c1 { width: 104px; height: 104px; left: 0; top: 54px; }
.circles .c2 { width: 168px; height: 168px; left: 50%; top: 0; transform: translateX(-52%); z-index: 2; }
.circles .c3 { width: 100px; height: 100px; right: 0; top: 56px; }
.screen.fade .circles .c { animation: pop .7s var(--ease) both; }
.screen.fade .circles .c2 { animation-name: pop2; animation-delay: .05s; }
.screen.fade .circles .c3 { animation-delay: .12s; }
@keyframes pop { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
@keyframes pop2 { from { opacity: 0; transform: translateX(-52%) scale(.92); } to { opacity: 1; transform: translateX(-52%); } }
.ask { width: 100%; max-width: 420px; display: flex; align-items: center; gap: 10px; height: 60px; padding: 0 8px 0 12px; border-radius: 999px; background: #fff; box-shadow: var(--shadow-lg); border: 1px solid rgba(0,0,0,.03); }
.ask input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 15px; }
.ask input::placeholder, .composer input::placeholder { color: var(--faint); }
.ob-hero .chips { margin-top: 18px; }
.ob-foot { padding: 16px var(--pad) 24px; text-align: center; font-size: 12px; color: var(--faint); }
.credits-link { color: var(--muted); text-decoration: none; }
.credits-link:hover { text-decoration: underline; }

/* ---------- dates ---------- */
.dates { min-height: 100svh; display: flex; flex-direction: column; }
.dates-body { flex: 1; display: flex; flex-direction: column; padding: 36px var(--pad) 28px; }
.dates h1 { font-size: 28px; font-weight: 700; letter-spacing: -.03em; }
.cal { margin-top: 24px; padding: 18px 14px 14px; }
.cal header { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 12px; }
.cal h3 { font-size: 18px; font-weight: 600; }
.cal .nav { display: flex; gap: 8px; }
.cal .dow, .cal .grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal .dow span { text-align: center; font-size: 12.5px; color: var(--muted); padding-bottom: 8px; }
.cal .grid { row-gap: 6px; }
.cal .d { position: relative; height: 46px; display: grid; place-items: center; }
.cal .d span { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); font-size: 14.5px; font-variant-numeric: tabular-nums; position: relative; z-index: 1; transition: background .15s, color .15s, border-color .15s; }
.cal .d:hover:not(:disabled) span { border-color: #c9c9c9; }
.cal .d:disabled span { border-color: transparent; color: #c8c8cc; }
.cal .d.today span { border-color: var(--ink); }
.cal .d.in::before, .cal .d.rs::before, .cal .d.re::before { content: ""; position: absolute; top: 2px; bottom: 2px; left: 0; right: 0; background: var(--soft); }
.cal .d.rs::before { left: 50%; }
.cal .d.re::before { right: 50%; }
.cal .d.in span { border-color: transparent; }
.cal .d.sel span { background: var(--ink); color: #fff; border-color: var(--ink); font-weight: 600; }
.range-out { margin: 16px 4px 0; font-size: 14px; color: var(--muted); min-height: 20px; }
.cta { margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 6px; height: 56px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 16.5px; font-weight: 500; text-decoration: none; transition: transform .15s var(--ease), background .15s; }
.cta:hover { background: #000; }
.cta:active { transform: scale(.98); }
.dates-body .cta { margin-top: 28px; }
.dates-body .skip { margin: 14px auto 0; }

/* ---------- chat ---------- */
.chat .side { display: none; }
.convo { min-height: 100svh; display: flex; flex-direction: column; }
.chat-head { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; padding: 12px var(--pad) 10px; background: rgba(255,255,255,.88); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
.chat-head .title { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 16.5px; letter-spacing: -.015em; }
.stream { flex: 1; padding: 6px var(--pad) 110px; display: flex; flex-direction: column; gap: 14px; }
.day-sep { display: flex; align-items: center; gap: 10px; margin: 4px 0 6px; }
.day-sep::before, .day-sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.day-sep span { font-size: 12px; color: var(--muted); background: var(--soft); padding: 4px 12px; border-radius: 999px; }
.msg { display: flex; flex-direction: column; max-width: 100%; }
.msg time { font-size: 11.5px; color: var(--faint); margin-top: 6px; font-variant-numeric: tabular-nums; }
.msg .bubble { padding: 12px 16px; border-radius: 20px; font-size: 15px; line-height: 1.42; max-width: 34ch; }
.msg.user { align-items: flex-end; }
.msg.user .bubble { background: #fff; box-shadow: var(--shadow); border: 1px solid rgba(0,0,0,.035); border-bottom-right-radius: 8px; }
.msg.user time { margin-right: 6px; }
.msg.tia { flex-direction: row; align-items: flex-end; gap: 8px; }
.msg.tia > .wave-avatar { margin-bottom: 22px; }
.msg.tia .bubble { background: var(--ink); color: #fff; border-bottom-left-radius: 8px; }
.msg.tia time { margin-left: 6px; }
.msg.comp { padding-left: 36px; }
.msg.comp > .card { max-width: 400px; }
.msg.enter { animation: rise .38s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.typing { display: inline-flex; gap: 4px; padding: 14px 16px; background: var(--soft); border-radius: 20px; border-bottom-left-radius: 8px; width: fit-content; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }
.composer { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; display: flex; align-items: center; gap: 4px; margin: 0 12px calc(12px + env(safe-area-inset-bottom)); height: 58px; padding: 0 8px; border-radius: 999px; background: #fff; box-shadow: var(--shadow-lg); border: 1px solid rgba(0,0,0,.04); }
.convo::after { content: ""; position: fixed; left: 0; right: 0; bottom: 0; height: 96px; background: linear-gradient(to top, #fff 50%, rgba(255,255,255,0)); z-index: 4; pointer-events: none; }
.composer input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 15px; padding: 0 4px; }
.composer .send { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; display: none; place-items: center; }
.composer:has(input:not(:placeholder-shown)) .send { display: grid; }
.composer:has(input:not(:placeholder-shown)) .mic { display: none; }
.composer .send:disabled, .composer.busy .send { opacity: .35; cursor: progress; }

/* live chat */
.msg.tia.live .bubble { max-width: min(40ch, calc(100vw - 92px)); }
.bubble.rich p + p { margin-top: 9px; }
.bubble.rich a { color: inherit; text-decoration: underline; text-decoration-color: rgba(255,255,255,.45); text-underline-offset: 2.5px; overflow-wrap: anywhere; }
.bubble.rich a:hover { text-decoration-color: #fff; }
.bubble.rich .cite a { font-size: 12.5px; color: rgba(255,255,255,.72); text-decoration: none; padding: 1px 7px; margin-left: 2px; border-radius: 999px; background: rgba(255,255,255,.12); white-space: nowrap; }
.bubble.rich .cite a:hover { background: rgba(255,255,255,.2); }
.bubble.rich b { font-weight: 600; }
.live-typing { display: flex; flex-direction: column; gap: 6px; }
.live-status { font-size: 12.5px; color: var(--muted); margin-left: 4px; animation: pulse 1.6s ease-in-out infinite; }
.live-status.after { margin: -6px 0 0; }
@keyframes pulse { 50% { opacity: .55; } }
.live-error { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; max-width: 400px; padding: 12px 14px 12px 16px; border-radius: 18px; background: #fff7ec; border: 1px solid #f3dfc2; font-size: 14px; color: #6b4a1a; }
.live-error p { flex: 1 1 180px; }
.live-error .pill { flex: none; }

/* listening overlay */
.listen { position: fixed; inset: 0; z-index: 50; background: rgba(250,250,248,.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: grid; place-items: end center; opacity: 0; transition: opacity .2s; }
.listen.in { opacity: 1; }
.listen-card { width: min(440px, 100%); background: #fff; border-radius: 28px 28px 0 0; box-shadow: var(--shadow-lg); padding: 28px 24px calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; text-align: center; transform: translateY(16px); transition: transform .28s var(--ease); }
.listen.in .listen-card { transform: none; }
.l-title { margin-top: 14px; font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.l-sub { color: var(--muted); margin-top: 4px; }
.bars { display: flex; align-items: center; gap: 4px; height: 64px; margin: 24px 0 22px; }
.bars i { width: 4px; height: var(--h); border-radius: 4px; background: var(--ink); animation: eq 0.9s var(--d) infinite ease-in-out alternate; transform-origin: center; }
@keyframes eq { from { transform: scaleY(.25); } to { transform: scaleY(1); } }
.l-actions { display: grid; grid-template-columns: 44px 64px 44px; gap: 28px; align-items: center; margin-bottom: 18px; }
.round.ghost { box-shadow: none; border: 1px solid var(--line-2); }
.round.dark { background: var(--ink); color: #fff; }
.round.big { width: 64px; height: 64px; }
.round.big svg { width: 22px; height: 22px; }

/* ---------- doc pages ---------- */
.doc { max-width: 760px; margin: 0 auto; padding-bottom: 48px; }
.doc-title { font-size: 17px; font-weight: 600; }
.gal { display: grid; gap: 28px; padding: 12px var(--pad); }
.gal-item > :not(.label) { max-width: 420px; }
.credits { list-style: none; padding: 8px var(--pad); margin: 0; display: grid; gap: 4px; }
.credits li { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.credits img { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; flex: none; }
.credits b { font-weight: 500; font-size: 14px; display: block; overflow-wrap: anywhere; }
.credits p { font-size: 12.5px; color: var(--muted); margin: 2px 0; }
.credits a { font-size: 12.5px; color: var(--muted); display: inline-flex; gap: 4px; align-items: center; }
.credits a svg { width: 12px; height: 12px; }

/* ---------- tablet + desktop ---------- */
@media (min-width: 720px) {
  :root { --pad: 32px; }
  .brand-name { display: inline; }
  .ob-hero h1 { font-size: 44px; }
  .circles { max-width: 440px; height: 240px; }
  .circles .c1 { width: 132px; height: 132px; top: 70px; }
  .circles .c2 { width: 214px; height: 214px; }
  .circles .c3 { width: 126px; height: 126px; top: 72px; }
  .dates-body { max-width: 560px; width: 100%; margin: 0 auto; }
  .gal { grid-template-columns: 1fr 1fr; align-items: start; }
}

@media (min-width: 960px) {
  body { background: var(--paper); }
  .topbar, .progress { max-width: 1200px; width: 100%; margin-left: auto; margin-right: auto; }
  .topbar { padding-top: 24px; padding-bottom: 18px; }
  .onboarding, .dates { background: var(--paper); }

  .ob-hero { display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: "h c" "l c" "a c" "ch c"; grid-template-rows: auto auto auto 1fr; column-gap: 64px; align-content: center; text-align: left; max-width: 1200px; width: 100%; margin: 0 auto; padding: 64px var(--pad); }
  .ob-hero h1 { grid-area: h; font-size: 68px; line-height: 1.02; align-self: end; }
  .ob-hero .lede { grid-area: l; font-size: 20px; margin-top: 18px; }
  .ob-hero .ask { grid-area: a; margin-top: 40px; max-width: 480px; height: 64px; }
  .ob-hero .chips { grid-area: ch; justify-content: flex-start; align-self: start; }
  .circles { grid-area: c; align-self: center; max-width: 520px; height: 380px; margin: 0; }
  .circles .c1 { width: 180px; height: 180px; top: 150px; left: 0; }
  .circles .c2 { width: 300px; height: 300px; top: 20px; }
  .circles .c3 { width: 172px; height: 172px; top: 40px; right: 0; }
  .ob-foot { text-align: left; max-width: 1200px; width: 100%; margin: 0 auto; }

  .dates-body { display: grid; grid-template-columns: 1fr 480px; grid-template-areas: "h cal" "l cal" "r cal" "x cal"; grid-template-rows: auto auto auto 1fr; column-gap: 72px; max-width: 1200px; align-content: center; padding-top: 72px; }
  .dates h1 { grid-area: h; font-size: 52px; line-height: 1.04; }
  .dates .lede.left { grid-area: l; font-size: 18px; margin-top: 16px; max-width: 30ch; }
  .dates .range-out { grid-area: r; margin: 28px 0 0; font-size: 15px; color: var(--ink-2); }
  .dates .cal { grid-area: cal; align-self: start; margin-top: 0; padding: 24px 20px 20px; box-shadow: var(--shadow-lg); }
  .dates .cal .d { height: 54px; }
  .dates .cal .d span { width: 48px; height: 48px; font-size: 15px; }
  .dates .cta { grid-area: x; align-self: start; width: 260px; margin-top: 20px; }
  .dates .skip { grid-area: x; align-self: start; justify-self: start; margin: 92px 0 0 4px; }

  .chat { display: grid; grid-template-columns: 300px 1fr; height: 100vh; }
  .chat .side { display: flex; flex-direction: column; gap: 28px; padding: 28px 24px; border-right: 1px solid var(--line); background: #fff; }
  .side-block .label { margin-bottom: 8px; }
  .side-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin: 0 -12px; border-radius: 14px; text-decoration: none; }
  a.side-row:hover { background: var(--soft); }
  .side-row > span { width: 36px; height: 36px; border-radius: 12px; background: var(--soft); display: grid; place-items: center; }
  .side-row > div { flex: 1; display: flex; flex-direction: column; }
  .side-row b { font-weight: 500; font-size: 14px; }
  .side-row i, .saved i { font-style: normal; font-size: 12.5px; color: var(--muted); }
  .side-row > svg { color: var(--faint); }
  .saved { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
  .saved img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; }
  .saved div { display: flex; flex-direction: column; }
  .saved b { font-weight: 500; font-size: 14px; }
  .side-foot { margin-top: auto; font-size: 12px; color: var(--faint); }
  .side-foot a { color: var(--muted); text-decoration: none; }
  .side-foot a:hover { text-decoration: underline; }

  .convo { min-height: 0; height: 100vh; position: relative; background: var(--paper); }
  .chat-head { background: rgba(247,247,245,.86); padding: 18px 32px 14px; }
  .stream { overflow-y: auto; padding: 8px max(32px, calc((100% - 720px) / 2)) 130px; }
  .msg .bubble { max-width: 46ch; }
  .msg.comp > .card { max-width: 460px; }
  .composer { position: absolute; left: 50%; transform: translateX(-50%); width: min(720px, calc(100% - 64px)); margin: 0 0 24px; }
  .convo::after { position: absolute; height: 120px; background: linear-gradient(to top, var(--paper) 50%, rgba(247,247,245,0)); }
  .listen { place-items: center; }
  .listen-card { border-radius: 28px; }
}

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

@media (max-width: 400px) { .ob-hero .chips .chip { padding: 0 13px; font-size: 13.5px; } .ob-hero .chips { gap: 6px; flex-wrap: nowrap; } }

/* ---------- Live voice entry ---------- */
.head-actions { display: flex; align-items: center; gap: 8px; }
.live-pill { height: 36px; padding: 0 14px 0 12px; gap: 6px; color: var(--ink); }
.live-pill svg { width: 16px; height: 16px; }
.live-btn { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: #fff; transition: transform .15s var(--ease), background .15s; }
.live-btn:hover { background: #000; }
.live-btn:active { transform: scale(.94); }
.live-btn svg { width: 19px; height: 19px; }
.composer:has(input:not(:placeholder-shown)) .live-btn { display: none; }

/* ---------- Live view (#/live) ---------- */
body[data-route="live"] { background: #fff; }
.live-view { position: fixed; inset: 0; z-index: 20; background: #fff; display: flex; flex-direction: column; align-items: center; padding: env(safe-area-inset-top) 0 0; overflow: hidden; }
.lv-head { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 14px var(--pad) 8px; }
.lv-title { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 16.5px; letter-spacing: -.015em; }
.lv-live { display: inline-flex; align-items: center; gap: 5px; margin-left: 2px; padding: 3px 9px; border-radius: 999px; background: var(--soft); font-size: 12px; font-weight: 500; color: var(--muted); }
.lv-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); }
.live-view:not([data-state=idle]):not([data-state=ended]):not([data-state=reconnect]) .lv-live i { background: var(--sea); animation: pulse 1.6s ease-in-out infinite; }
.lv-timer { font-size: 14px; font-variant-numeric: tabular-nums; color: var(--muted); padding: 6px 12px; border-radius: 999px; background: var(--soft); }
.lv-timer.late { color: var(--warn); background: #fff7ec; }

.lv-stage { flex: 1 1 auto; min-height: 0; width: 100%; max-width: 560px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 8px var(--pad); text-align: center; }
.lv-orb { --lvl: 0; --size: min(220px, 52vw); position: relative; width: var(--size); height: var(--size); flex: none; display: grid; place-items: center; transition: width .35s var(--ease), height .35s var(--ease); }
.lv-orb .core { position: absolute; inset: 18%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #d8ebfa 0%, #7fb7e6 42%, #2f7fc8 100%); box-shadow: 0 18px 50px rgba(47,127,200,.28); transform: scale(calc(.9 + var(--lvl) * .32)); transition: background .4s, box-shadow .4s, filter .4s; }
.lv-orb .ring { position: absolute; inset: 18%; border-radius: 50%; background: rgba(47,127,200,.10); transform: scale(calc(1 + var(--lvl) * .55)); }
.lv-orb .r2 { background: rgba(47,127,200,.06); transform: scale(calc(1.08 + var(--lvl) * 1)); }
.lv-orb[data-who=user] .core { background: radial-gradient(circle at 35% 30%, #f3f3f1 0%, #c9ccd1 45%, #8b9098 100%); box-shadow: 0 18px 50px rgba(0,0,0,.14); }
.lv-orb[data-who=user] .ring { background: rgba(17,17,17,.06); }
.lv-orb[data-who=user] .r2 { background: rgba(17,17,17,.035); }
.live-view[data-state=connecting] .lv-orb .core, .live-view[data-state=thinking] .lv-orb .core { animation: breathe 1.8s ease-in-out infinite; }
.live-view[data-state=idle] .lv-orb .core, .live-view[data-state=ended] .lv-orb .core, .live-view[data-state=reconnect] .lv-orb .core, .live-view[data-state=muted] .lv-orb .core { filter: saturate(.25) brightness(1.08); box-shadow: none; }
@keyframes breathe { 50% { transform: scale(.82); opacity: .8; } }
.lv-state { margin-top: 18px; font-size: 15px; font-weight: 500; color: var(--ink); min-height: 22px; }
.live-view[data-state=connecting] .lv-state, .live-view[data-state=thinking] .lv-state { color: var(--muted); }
.lv-captions { margin-top: 14px; min-height: 96px; width: 100%; display: flex; flex-direction: column; gap: 8px; }
.lv-captions p { font-size: 17px; line-height: 1.4; letter-spacing: -.01em; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.cap-user { color: var(--faint); -webkit-line-clamp: 2; font-size: 15.5px !important; }
.cap-tia { color: var(--ink); -webkit-line-clamp: 4; }
.live-view[data-state=idle] .cap-tia { color: var(--muted); font-size: 15.5px; max-width: 32ch; margin: 0 auto; }
.lv-note { margin-top: 8px; font-size: 13.5px; color: var(--warn); }
.lv-error { margin-top: 18px; max-width: 360px; }
.lv-error h2 { font-size: 19px; font-weight: 600; letter-spacing: -.015em; }
.lv-error p { margin-top: 6px; font-size: 14.5px; color: var(--muted); line-height: 1.45; }
.lv-error-actions { margin-top: 16px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.live-view.has-error .lv-state { display: none; }
.live-view.has-error .lv-captions { display: none; }

.lv-cards { flex: none; width: 100%; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--pad) 12px; scrollbar-width: none; }
.lv-cards::-webkit-scrollbar { display: none; }
.lv-cards:empty { display: none; }
.lv-card { flex: 0 0 min(340px, 84vw); scroll-snap-align: center; animation: rise .38s var(--ease) both; }
.lv-card > .card { max-height: 46svh; overflow-y: auto; }
.lv-card.ping > .card { animation: ping .6s var(--ease); }
@keyframes ping { 40% { transform: scale(1.02); box-shadow: 0 0 0 3px rgba(47,127,200,.25), var(--shadow); } }
.live-view.has-cards .lv-orb { --size: min(120px, 30vw); }
.live-view.has-cards .lv-captions { min-height: 0; }
.live-view.has-cards .cap-tia { -webkit-line-clamp: 3; font-size: 16px; }

.lv-foot { flex: none; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 8px var(--pad) calc(16px + env(safe-area-inset-bottom)); }
.lv-controls { display: flex; align-items: center; justify-content: center; gap: 28px; }
.lv-controls[hidden] { display: none; }
.lv-controls .round.ghost { background: #fff; }
.lv-mute[aria-pressed=true] { background: var(--ink) !important; color: #fff; border-color: var(--ink); }
.lv-mute:disabled { opacity: .4; }
.lv-end { background: var(--ink); color: #fff; transition: background .15s, transform .15s var(--ease); }
.lv-end:hover { background: #d4423a; }
.lv-start { height: 52px; padding: 0 22px 0 18px; font-size: 15.5px; }
.lv-start svg { width: 18px; height: 18px; }
.lv-fine { justify-content: center; font-size: 12px; color: var(--faint); }

@media (min-width: 960px) {
  .live-view { padding-top: 0; }
  .lv-head { padding: 22px 32px 10px; }
  .lv-orb { --size: 260px; }
  .live-view.has-cards .lv-orb { --size: 150px; }
  .lv-captions p { font-size: 20px; }
  .cap-user { font-size: 16.5px !important; }
  .lv-cards { justify-content: safe center; padding: 4px 32px 16px; }
  .lv-card { flex-basis: 360px; }
}
@media (prefers-reduced-motion: reduce) {
  .lv-orb .core, .lv-orb .ring { transform: none !important; animation: none !important; }
}

/* Live call summary in the text chat */
.live-summary { max-width: 400px; padding: 14px 16px; }
.live-summary header { display: flex; align-items: center; gap: 8px; font-size: 14.5px; }
.live-summary header svg { width: 16px; height: 16px; color: var(--sea); }
.live-summary header time { margin-left: auto; font-size: 11.5px; color: var(--faint); font-variant-numeric: tabular-nums; }
.live-summary details { margin-top: 8px; }
.live-summary summary { cursor: pointer; font-size: 13.5px; color: var(--muted); list-style: none; }
.live-summary summary::-webkit-details-marker { display: none; }
.live-summary summary::after { content: " ›"; }
.live-summary details[open] summary::after { content: " ⌄"; }
.live-summary ol { list-style: none; margin-top: 10px; display: flex; flex-direction: column; gap: 8px; max-height: 320px; overflow-y: auto; }
.live-summary li { display: grid; grid-template-columns: 34px 1fr; gap: 6px; font-size: 14px; line-height: 1.4; }
.live-summary li b { font-weight: 500; font-size: 12.5px; color: var(--faint); padding-top: 1px; }
.live-summary li.user span { color: var(--muted); }
.live-summary .muted, .live-summary .ls-cards { margin-top: 6px; font-size: 13px; color: var(--faint); }
.live-view [hidden] { display: none !important; }
