:root {
  --bg: #0b0a08;
  --bg2: #12110e;
  --paper: #ece6d8;
  --muted: #9a927f;
  --line: rgba(236, 230, 216, 0.12);
  --gold: #c4a574;
  --gold2: #e4c99a;
  --ink: #0b0a08;
  --ok: #8fbf9a;
  --err: #d47a6a;
  --radius: 14px;
  --gutter: 1.25rem;
  --col: min(calc(100% - 2 * var(--gutter)), 72rem);
  --measure: min(40rem, 100%);
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Sora", system-ui, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}
@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Sora";
  src: url("/assets/fonts/sora-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Sora";
  src: url("/assets/fonts/sora-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html:focus-within { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--paper);
  background:
    radial-gradient(48rem 28rem at 80% -10%, #2a2418 0%, transparent 60%),
    radial-gradient(36rem 22rem at -10% 40%, #1a1814 0%, transparent 55%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--gold2); text-decoration-thickness: from-font; text-underline-offset: 0.18em; }
a:hover { color: #fff; }
[hidden] { display: none !important; }
button, input, textarea { font: inherit; }
::selection { background: var(--gold); color: var(--ink); }

.sale-gate {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: var(--gutter);
  background: rgba(11, 10, 8, 0.96);
}
body.is-in .sale-gate { display: none; }
.sale-gate-card {
  width: min(28rem, 100%);
  padding: 2rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg2);
  text-align: center;
}
.sale-gate-card p { margin: 0 0 0.75rem; }
.sale-gate-card h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.75rem;
  line-height: 1.15;
  margin: 0 0 1rem;
  text-wrap: balance;
}
.gate-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; margin-top: 1.25rem; }
.note { color: var(--muted); font-size: 0.875rem; line-height: 1.45; }

.top {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem var(--gutter);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.logo {
  font-family: var(--display);
  font-size: 1.25rem;
  color: var(--paper);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.logo span { color: var(--gold); }
.nav {
  display: flex;
  gap: 1.15rem;
  align-items: center;
  font-size: 0.92rem;
}
.nav a { color: var(--paper); text-decoration: none; }
.nav a:hover { color: var(--gold2); }
.nav .nav-cta {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.82rem;
  text-decoration: none;
  white-space: nowrap;
}
.nav .nav-cta:hover { background: var(--gold2); color: var(--ink); }

.wrap { width: var(--col); margin: 0 auto; }
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 3rem 0 2.5rem;
}
@media (min-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: start;
    padding: 4.5rem 0 3.5rem;
    gap: 3rem;
  }
}
.kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.85rem;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.1rem, 4.2vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  text-wrap: balance;
  max-width: 18ch;
}
.lede {
  max-width: var(--measure);
  margin: 0 0 1.5rem;
  color: #d8d0be;
  font-size: 1.12rem;
  text-wrap: pretty;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}
.btn-primary { background: var(--paper); color: var(--ink); }
.btn-primary:hover { background: var(--gold2); color: var(--ink); }
.btn-ghost {
  background: transparent;
  color: var(--paper);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold2); }
.btn[disabled] { opacity: 0.55; cursor: wait; }
.proof-line {
  margin: 1.1rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.stage {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #14130f;
  overflow: hidden;
  min-height: 28rem;
}
.stage-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.stage-dot { display: inline-block; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--gold); margin-right: 0.4rem; }
.tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
}
.tabs label {
  padding: 0.7rem 0.4rem;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}
.tabs input { position: absolute; opacity: 0; pointer-events: none; }
#tab-chat:checked ~ .tabs label[for="tab-chat"],
#tab-mcp:checked ~ .tabs label[for="tab-mcp"],
#tab-voice:checked ~ .tabs label[for="tab-voice"] {
  color: var(--paper);
  box-shadow: inset 0 -2px 0 var(--gold);
}
.panel { display: none; padding: 1rem 1.05rem 1.2rem; }
#tab-chat:checked ~ .panel-chat,
#tab-mcp:checked ~ .panel-mcp,
#tab-voice:checked ~ .panel-voice { display: block; }

.bubble { max-width: 92%; margin: 0 0 0.7rem; padding: 0.7rem 0.85rem; border-radius: 12px; font-size: 0.92rem; }
.bubble.you { margin-left: auto; background: #2a261c; }
.bubble.them { background: #1c1b17; border: 1px solid var(--line); }
.bubble .who {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.3rem;
}

.mcp {
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.55;
  color: #d2cbb8;
  background: #0e0d0b;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.9rem;
  overflow: auto;
}
.mcp b { color: var(--gold2); font-weight: 600; }

.voice-ui { display: grid; gap: 0.85rem; }
.wave {
  height: 4.5rem;
  display: flex;
  align-items: end;
  gap: 3px;
  padding: 0.5rem 0;
}
.wave i {
  display: block;
  flex: 1;
  background: var(--gold);
  opacity: 0.55;
  border-radius: 2px;
  height: var(--h, 40%);
}
.voice-meta { color: var(--muted); font-size: 0.88rem; }

.section { padding: 3.2rem 0; border-top: 1px solid var(--line); }
.section h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  text-wrap: balance;
  max-width: 22ch;
}
.section .intro { max-width: var(--measure); color: #d2cbb8; margin: 0 0 1.6rem; text-wrap: pretty; }

.grid-3, .grid-2 {
  display: grid;
  gap: 1rem;
}
@media (min-width: 760px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-2 { grid-template-columns: 1fr 1fr; }
}
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #14130f;
  padding: 1.2rem 1.15rem 1.3rem;
}
.card h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.2rem;
  margin: 0 0 0.45rem;
  letter-spacing: -0.02em;
}
.card p { margin: 0; color: #cfc7b4; font-size: 0.95rem; }
.num {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.5rem;
}

.compare { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.compare th, .compare td {
  text-align: left;
  padding: 0.75rem 0.6rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.compare th { color: var(--muted); font-weight: 600; font-size: 0.82rem; }
.compare td:last-child { color: var(--gold2); }
.compare caption { caption-side: bottom; text-align: left; color: var(--muted); font-size: 0.8rem; padding-top: 0.7rem; }

.price-box {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}
@media (min-width: 860px) {
  .price-box { grid-template-columns: 1.1fr 0.9fr; }
}
.price-card {
  border: 1px solid color-mix(in srgb, var(--gold) 45%, var(--line));
  background: linear-gradient(180deg, #1a1813, #12110e);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.5rem 1.35rem 1.6rem;
}
.price {
  font-family: var(--display);
  font-size: 3.4rem;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  margin: 0.2rem 0 0.35rem;
}
.price small { font-size: 1rem; color: var(--muted); font-family: var(--sans); letter-spacing: 0; }
.price-card ul { margin: 1rem 0 1.2rem; padding: 0 0 0 1.1rem; color: #d8d0be; }
.price-card li { margin: 0.35rem 0; }
.form label { display: block; margin: 0 0 0.75rem; font-size: 0.88rem; color: var(--muted); }
.form input[type="email"],
.form input[type="password"] {
  width: 100%;
  margin-top: 0.3rem;
  padding: 0.75rem 0.8rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #0e0d0b;
  color: var(--paper);
  font-size: 16px;
}
.form input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.consent {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.82rem;
  color: #cfc7b4;
  line-height: 1.45;
  margin: 0.4rem 0 1rem;
}
.consent input { margin-top: 0.2rem; }
.status { min-height: 1.3rem; font-size: 0.88rem; margin: 0 0 0.6rem; }
.status.ok { color: var(--ok); }
.status.err { color: var(--err); }

.faq details {
  border-top: 1px solid var(--line);
  padding: 0.85rem 0;
}
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq details p { margin: 0.55rem 0 0.2rem; color: #cfc7b4; max-width: var(--measure); }

.foot {
  padding: 2.2rem 0 5.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.6;
}
.foot a { color: var(--muted); }
.foot a:hover { color: var(--gold2); }

.sticky-buy {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 30;
  padding: 0.7rem var(--gutter) calc(0.7rem + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
@media (max-width: 759px) {
  .nav a:not(.nav-cta) { display: none; }
  .sticky-buy { display: flex; justify-content: space-between; align-items: center; gap: 0.8rem; }
  .sticky-buy .sp { font-family: var(--display); font-size: 1.35rem; }
}

.prose {
  max-width: 42rem;
  padding: 2.4rem 0 3.2rem;
}
.prose h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 0.8rem;
  text-wrap: balance;
}
.prose h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.45rem;
  margin: 2.2rem 0 0.6rem;
  letter-spacing: -0.02em;
}
.prose h3 {
  font-size: 1.02rem;
  margin: 1.4rem 0 0.4rem;
}
.prose p, .prose li { color: #d2cbb8; }
.prose ol, .prose ul { padding-left: 1.2rem; }
.prose li { margin: 0.35rem 0; }
.prose pre {
  overflow: auto;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0e0d0b;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.5;
  color: #e4c99a;
}
.prose code {
  font-family: var(--mono);
  font-size: 0.84em;
  color: var(--gold2);
}
.prose pre code { color: inherit; font-size: inherit; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .nav .nav-cta { transition: none; }
}
