:root {
  --wood: #352218;
  --ink: #37251d;
  --honey: #ffd2a2;
  --paper: #fff5e8;
  --muted: #6e4d3e;
  font: 16px/1.55 "Inter", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
}
* { box-sizing: border-box; }
body, figure, dl, dd { margin: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid #459678; outline-offset: 5px; }
.wrap { width: min(1170px, calc(100% - 72px)); margin-inline: auto; }
.top, .hero, footer { background: var(--wood); color: #fff6e9; }
.top { border-bottom: 1px solid #ffffff22; }
.top-row, .footer-row { display: flex; justify-content: space-between; align-items: center; gap: 18px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 750; }
.brand span { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 9px; background: var(--honey); color: var(--wood); font-size: 25px; line-height: 1; }
nav { display: flex; gap: 30px; }
nav a, .footer-row > a:last-child { color: #f1d3ba; font-size: 14px; }
nav a:hover, .text-link:hover { color: var(--honey); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 11px 17px; min-height: 45px; border: 1px solid transparent; border-radius: 9px; font-size: 14px; font-weight: 700; white-space: nowrap; }
.button:hover { filter: brightness(1.12); }
.outline { border-color: #aa8165; }
.mint { color: var(--wood); background: var(--honey); }
.dark { color: #fff; background: var(--wood); }
.hero { background: radial-gradient(ellipse at 80% 42%, #784124 0%, var(--wood) 68%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(30px, 7vw, 100px); align-items: center; padding-block: clamp(52px, 8vw, 112px); }
.eyebrow { display: flex; align-items: center; gap: 8px; color: var(--honey); font-size: 13px; font-weight: 700; margin: 0 0 16px; }
.eyebrow span { width: 7px; height: 7px; background: var(--honey); border-radius: 50%; }
h1, h2, h3 { line-height: 1.08; margin: 0; }
h1, h2 { font-family: "PT Serif", Georgia, serif; }
h1 { font-size: clamp(48px, 7vw, 97px); letter-spacing: -.055em; }
h2 { font-size: clamp(32px, 4.2vw, 54px); letter-spacing: -.04em; }
h3 { font-size: 20px; letter-spacing: -.02em; }
.intro { max-width: 440px; color: #f1d3ba; font-size: clamp(16px, 2vw, 20px); margin: 22px 0 28px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
.text-link { font-size: 14px; color: #ffe4ca; }
.portrait { overflow: hidden; border: 1px solid #e9a7698c; border-radius: 34% 34% 18px 18px; box-shadow: 0 20px 56px #21110c88; }
.portrait img { display: block; width: 100%; height: auto; }
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(25px, 6vw, 82px); align-items: center; }
.demo-note { color: var(--muted); font-size: 13px; }
.preview { min-width: 0; padding: clamp(13px, 2vw, 23px); border: 1px solid #8a5f48; border-radius: 21px; background: var(--wood); color: #fff6e9; box-shadow: 0 15px 40px #663b252f; }
.preview-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.preview-head strong { font-size: 25px; }
.preview-head span { border: 1px solid #a0795e; border-radius: 30px; color: #f1d3ba; padding: 3px 9px; font-size: 11px; }
.mock-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.mock { position: relative; display: grid; gap: 3px; padding: 11px; border: 1px solid #8e674f; border-radius: 12px; background: #493126; }
.mock.on { border-color: #e5a668; background: #684029; }
.mock-icon { display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 5px; border-radius: 8px; background: #764b32; color: var(--honey); }
.mock strong { font-size: 14px; }
.mock small { display: block; color: #f3d5bd; font-size: 11px; }
.toggle { position: absolute; right: 8px; top: 7px; width: 46px; height: 36px; border: 0; border-radius: 15px; background: transparent; padding: 0; cursor: pointer; }
.toggle::before { display: block; content: ""; width: 31px; height: 17px; margin: auto; border-radius: 12px; background: radial-gradient(circle at 9px center, #fff2df 5px, transparent 6px), #806451; }
.on .toggle::before { background: radial-gradient(circle at 22px center, var(--wood) 5px, transparent 6px), var(--honey); }
.scene { display: flex; align-items: center; gap: 9px; margin-top: 9px; width: 100%; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.scene:hover { border-color: var(--honey); }
.preview button:focus-visible { outline: 2px solid var(--honey); outline-offset: 2px; }
.demo-status { margin: 12px 0 0; color: var(--honey); font-size: 13px; }
.scene .mock-icon { margin: 0; }
.play { margin-left: auto; color: var(--honey); font-size: 13px; }
.section { padding-block: clamp(42px, 6vw, 83px); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 25px; }
.feature-grid article { background: #fffaf4; border: 1px solid #ead5c0; border-radius: 16px; padding: 20px; }
.tile-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 9px; background: #f9dfc2; margin-bottom: 13px; font-size: 21px; }
.feature-grid p, .section-intro, dd { color: var(--muted); margin: 9px 0 0; }
.connection-section { background: #f3e1cd; }
.connection-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(25px, 6vw, 82px); }
.connections div { padding: 14px 0; border-bottom: 1px solid #d7b79c; }
.connections div:first-child { padding-top: 0; }
.connections dt { font-weight: 750; font-size: 19px; }
.final-section { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.final-section p { max-width: 590px; }
@media (max-width: 780px) {
  .wrap { width: calc(100% - 36px); }
  .hero-grid, .connection-grid, .demo-grid { grid-template-columns: 1fr; }
  .preview, .portrait { max-width: 490px; }
  .feature-grid { grid-template-columns: 1fr; }
  nav { display: none; }
}
@media (max-width: 480px) {
  .final-section { display: grid; justify-items: start; }
  .brand { font-size: 16px; }
  .top-row .button { padding: 8px; min-height: 38px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
}
.account-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); gap: clamp(24px, 6vw, 78px); align-items: start; }
.account-card { padding: clamp(18px, 4vw, 40px); border: 1px solid #ead5c0; border-radius: 20px; background: #fffaf4; }
.account-card h1 { font-size: clamp(36px, 5vw, 58px); }
.account-card .actions, .account-card form { margin-top: 22px; }
.account-card form, .account-card label { display: grid; gap: 8px; }
.account-card form { gap: 14px; }
.account-card input { min-width: 0; width: 100%; padding: 10px; border: 1px solid #aa8165; border-radius: 8px; font: inherit; }
.account-card button { cursor: pointer; }
.account-card button:disabled { opacity: .55; cursor: default; }
.account-card [hidden] { display: none; }
#account-message { color: #8b2f1d; }
#public-question { display: grid; gap: 9px; justify-items: start; }
#public-answer { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; max-width: 100%; }
#public-answer:empty { display: none; }
#public-question[hidden],#open-public-chat[hidden]{display:none}
.chat-log{width:100%;max-height:360px;overflow:auto;display:grid;gap:8px}
.chat-message{background:#fff0dd;padding:10px;border-radius:10px;white-space:pre-wrap;overflow-wrap:anywhere}
.chat-message strong{display:block}
@media (max-width: 780px) {
  .account-grid { grid-template-columns: 1fr; }
  .account-grid .portrait { width: min(200px, 100%); }
}
