:root {
  --navy: #15305c;
  --navy-deep: #0f2447;
  --navy-soft: #24467f;
  --red: #e2252b;
  --mist: #eef2f8;
  --ink: #172338;
  --slate: #51617a;
  --line: #d7deea;
  --white: #ffffff;
  --radius-lg: 22px;
  --radius-sm: 10px;
  --font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy-soft); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 6px; }

/* ---------- header ---------- */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px clamp(20px, 5vw, 64px);
  background: var(--navy-deep);
}
.brand img { width: 150px; height: auto; }
.topnav { display: flex; align-items: center; gap: 28px; }
.topnav a { color: #c9d4e8; text-decoration: none; font-size: 15px; }
.topnav a:hover { color: var(--white); }
.topnav .topcta { color: var(--white); border: 1.5px solid rgba(255,255,255,.45); padding: 8px 16px; border-radius: 999px; }
.topnav .topcta:hover { border-color: var(--white); }

/* ---------- stage (hero = live demo) ---------- */
.stage {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
  padding: clamp(40px, 6vw, 88px) clamp(20px, 5vw, 64px) clamp(56px, 7vw, 104px);
  background: var(--navy-deep);
  color: var(--white);
  min-height: calc(100vh - 76px);
}
.stage-copy { max-width: 600px; }
.hello { margin: 0 0 14px; font-size: 18px; color: #c9d4e8; }
.stage h1 {
  margin: 0 0 20px;
  font-size: clamp(36px, 4.6vw, 60px);
  line-height: 1.05;
  font-weight: 650;
  font-stretch: 88%;
  letter-spacing: -0.015em;
}
.lede { margin: 0 0 34px; font-size: 19px; color: #c9d4e8; max-width: 34em; }

.start { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.btn-live {
  display: inline-flex; align-items: center; gap: 12px;
  font: inherit; font-size: 19px; font-weight: 600;
  color: var(--navy-deep); background: var(--white);
  border: 0; border-radius: 999px; padding: 18px 30px 18px 24px;
  cursor: pointer; box-shadow: 0 0 0 6px rgba(255,255,255,.12);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-live:hover { transform: translateY(-1px); box-shadow: 0 0 0 9px rgba(255,255,255,.16); }
.rec { width: 12px; height: 12px; border-radius: 50%; background: var(--red); flex: none; animation: rec 1.6s ease-in-out infinite; }
@keyframes rec { 0%, 100% { box-shadow: 0 0 0 0 rgba(226,37,43,.55); } 50% { box-shadow: 0 0 0 7px rgba(226,37,43,0); } }
.btn-quiet {
  font: inherit; font-size: 15px; background: none; border: 0; padding: 4px 0;
  color: #c9d4e8; text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.btn-quiet:hover { color: var(--white); }
.fine { margin: 6px 0 0; font-size: 13.5px; color: #8fa1c2; }

/* conversation */
.talk {
  background: var(--white); color: var(--ink);
  border-radius: var(--radius-lg);
  display: flex; flex-direction: column;
  height: min(520px, 62vh);
  overflow: hidden;
}
.talk-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.live { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; color: var(--navy); }
.link { font: inherit; font-size: 14px; color: var(--slate); background: none; border: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.log { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; background: var(--mist); }
.msg { max-width: 86%; padding: 11px 15px; border-radius: 16px; font-size: 15.5px; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; }
.msg.ava { align-self: flex-start; background: var(--white); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.msg.you { align-self: flex-end; background: var(--navy); color: var(--white); border-bottom-right-radius: 5px; }
.msg.note { align-self: center; background: none; color: var(--slate); font-size: 13px; padding: 2px 8px; }
.msg a { color: inherit; }
.dots { align-self: flex-start; display: flex; gap: 4px; padding: 14px 16px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: #9aa8bf; animation: dot 1s infinite; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
.say { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: var(--white); }
.say input { flex: 1; min-width: 0; font: inherit; font-size: 15.5px; border: 1.5px solid var(--line); border-radius: 999px; padding: 11px 16px; color: var(--ink); }
.say input:focus { outline: none; border-color: var(--navy-soft); }
.ico { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: var(--mist); color: var(--navy); }
.ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico.send { background: var(--navy); color: var(--white); }
.ico.send svg { fill: currentColor; stroke: none; }
.ico.on { background: var(--red); color: var(--white); }
.meet-inline { padding: 12px 18px 16px; border-top: 1px solid var(--line); background: var(--white); }
.meet-inline .btn-solid { width: 100%; justify-content: center; }

/* device */
.device { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.phone {
  width: min(330px, 76vw);
  aspect-ratio: 540 / 1174;
  border-radius: 46px;
  padding: 11px;
  background: #0a1830;
  box-shadow: 0 0 0 1.5px #2f4b7c, 0 40px 80px -30px rgba(0,0,0,.6);
}
.phone img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 36px; background: var(--white);
  transition: opacity .25s ease;
}
.phone img.swap { opacity: 0; }
.device figcaption { font-size: 15px; color: #c9d4e8; min-height: 1.5em; text-align: center; }

/* ---------- tours ---------- */
.tours, .pricing, .meet { padding: clamp(56px, 7vw, 96px) clamp(20px, 5vw, 64px); }
.tours h2, .pricing h2, .meet h2 {
  margin: 0 0 10px; font-size: clamp(28px, 3vw, 38px); line-height: 1.15; font-weight: 650; font-stretch: 90%; color: var(--navy);
}
.sub { margin: 0 0 32px; color: var(--slate); }
.tour-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.tour-list li { border-bottom: 1px solid var(--line); }
.tour-list li:nth-child(3n+1), .tour-list li:nth-child(3n+2) { border-right: 1px solid var(--line); }
.tour-list button {
  width: 100%; height: 100%; text-align: left; font: inherit; color: inherit; background: none; border: 0;
  padding: 26px 26px 28px; cursor: pointer; display: flex; flex-direction: column; gap: 6px;
}
.tour-list button:hover { background: var(--mist); }
.tour-list b { font-size: 19px; font-weight: 600; color: var(--navy); }
.tour-list span { color: var(--slate); font-size: 15.5px; }

/* ---------- pricing ---------- */
.pricing { background: var(--mist); display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: 20px 56px; align-items: start; }
.pricing-intro p { color: var(--slate); margin: 0; max-width: 28em; }
.plans { width: 100%; border-collapse: collapse; font-size: 15.5px; background: var(--white); border-radius: var(--radius-sm); overflow: hidden; }
.plans th, .plans td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.plans thead th { font-size: 13.5px; font-weight: 600; color: var(--slate); background: #f7f9fc; }
.plans tbody th { font-weight: 600; color: var(--navy); white-space: nowrap; }
.plans td:nth-child(3), .plans td:nth-child(4) { font-variant-numeric: tabular-nums; white-space: nowrap; }
.plans td:nth-child(2) { color: var(--slate); }
.plans tbody tr:last-child th, .plans tbody tr:last-child td { border-bottom: 0; }
.custom { grid-column: 2; margin: 4px 0 0; color: var(--slate); }

/* ---------- trust / meet ---------- */
.trust { padding: 22px clamp(20px, 5vw, 64px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust p { margin: 0; color: var(--slate); font-size: 15px; text-align: center; }
.meet p { color: var(--slate); max-width: 36em; margin: 0 0 24px; }
.meet-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.btn-solid {
  display: inline-flex; align-items: center; gap: 10px; font: inherit; font-weight: 600; font-size: 16px;
  color: var(--white); background: var(--navy); border: 0; border-radius: 999px; padding: 14px 24px; cursor: pointer; text-decoration: none;
}
.btn-solid:hover { background: var(--navy-soft); }
.meet .btn-quiet { color: var(--navy-soft); }

.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding: 28px clamp(20px, 5vw, 64px); background: var(--navy-deep); color: #8fa1c2; font-size: 14px; }
.foot p { margin: 0; }
.foot a { color: #c9d4e8; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .stage { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .stage-copy { max-width: none; }
  .device { order: -1; }
  .phone { width: min(250px, 62vw); }
  .tour-list { grid-template-columns: 1fr 1fr; }
  .tour-list li:nth-child(n) { border-right: 0; }
  .tour-list li:nth-child(odd) { border-right: 1px solid var(--line); }
  .pricing { grid-template-columns: 1fr; }
  .custom { grid-column: 1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .topnav a:not(.topcta) { display: none; }
  .tour-list { grid-template-columns: 1fr; }
  .tour-list li:nth-child(n) { border-right: 0; }
  .plans td:nth-child(2), .plans thead th:nth-child(2) { display: none; }
  .talk { height: 70vh; }
}

/* ---------- live mode: make room for the conversation ---------- */
.stage.is-live { align-items: start; }
.stage.is-live .lede, .stage.is-live .hello { display: none; }
.stage.is-live h1 { font-size: clamp(24px, 2.2vw, 30px); margin-bottom: 18px; }
.stage.is-live .talk { height: min(600px, calc(100vh - 230px)); }
@media (max-width: 960px) {
  .stage.is-live { gap: 18px; padding-top: 20px; }
  .stage.is-live h1 { display: none; }
  .stage.is-live .phone { width: min(170px, 44vw); border-radius: 30px; padding: 7px; }
  .stage.is-live .phone img { border-radius: 24px; }
  .stage.is-live .device { gap: 8px; }
  .stage.is-live .talk { height: 58vh; }
}
@media (max-width: 640px) {
  .plans th, .plans td { padding: 11px 10px; }
  .plans tbody th { white-space: normal; }
}
