/* TwoShot Chatbots — public site
   Night-front-desk: ink, paper, one amber. No SaaS purple. */

:root {
  --ink: #16120e;
  --ink-2: #1f1a15;
  --ink-3: #2a241c;
  --paper: #f3ead6;
  --paper-2: #e7d9be;
  --paper-3: #dccbb0;
  --amber: #e0a14a;
  --amber-2: #c4842c;
  --amber-glow: rgba(224, 161, 74, 0.18);
  --muted: #9a8b76;
  --muted-2: #b7a790;
  --line: rgba(224, 161, 74, 0.28);
  --line-soft: rgba(243, 234, 214, 0.1);
  --danger: #c45c3a;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --serif: "Fraunces", "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --sans: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --max: 72rem;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 1.15rem;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html,
body { margin: 0; padding: 0; }

body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--paper);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--amber); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 100;
  background: var(--amber);
  color: var(--ink);
  padding: 0.5rem 0.8rem;
  font-weight: 600;
}
.skip:focus { top: 0.75rem; }

.wrap {
  width: min(var(--max), 100% - 2 * var(--pad));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(22, 18, 14, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.6rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--paper);
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.wordmark:hover { color: var(--paper); }
.wordmark .bars {
  display: grid;
  gap: 3px;
  width: 0.95rem;
}
.wordmark .bars i {
  display: block;
  height: 3px;
  background: var(--amber);
  border-radius: 1px;
}
.wordmark .bars i:last-child { width: 62%; }

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  font-size: 0.92rem;
  font-weight: 500;
}
.nav a { color: var(--muted-2); text-decoration: none; }
.nav a:hover,
.nav a[aria-current="page"] { color: var(--paper); }

/* Type */
.kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 0.85rem;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 550;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2.35rem, 8vw, 4.85rem);
  font-variation-settings: "opsz" 72, "SOFT" 40, "WONK" 1;
}

h2 { font-size: clamp(1.7rem, 4vw, 2.45rem); }
h3 { font-size: 1.25rem; }

.lede {
  font-size: clamp(1.08rem, 2.2vw, 1.28rem);
  color: var(--paper-2);
  max-width: 38rem;
  margin: 0 0 1.6rem;
}

.muted { color: var(--muted-2); }
.fine { font-size: 0.9rem; color: var(--muted); }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.85rem;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  background: var(--amber);
  color: var(--ink);
}
.btn:hover { background: #ebb05a; color: var(--ink); }
.btn-ghost {
  background: transparent;
  color: var(--paper);
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--ink-3); color: var(--paper); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 8vw, 5.5rem) 0 clamp(3rem, 8vw, 5rem);
  background:
    radial-gradient(ellipse 80% 60% at 80% 0%, rgba(224, 161, 74, 0.16), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 90%, rgba(224, 161, 74, 0.06), transparent 50%),
    var(--ink);
}

.hero .watermark {
  position: absolute;
  right: -4vw;
  top: 8%;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(4.5rem, 18vw, 12rem);
  line-height: 0.85;
  color: rgba(243, 234, 214, 0.045);
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.04em;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: end;
}

@media (min-width: 860px) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 3rem; }
}

.scene {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #1c1712 0%, #0e0c0a 100%);
  overflow: hidden;
  min-height: 16rem;
  box-shadow: var(--shadow);
}
.scene svg { width: 100%; height: auto; }
.scene figcaption {
  position: absolute;
  left: 1rem;
  bottom: 0.85rem;
  margin: 0;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}

/* Sections */
.section { padding: clamp(2.8rem, 7vw, 4.8rem) 0; }
.section-rule { border-top: 1px solid var(--line-soft); }

.section-head { max-width: 36rem; margin-bottom: 1.8rem; }

/* Cards */
.cards {
  display: grid;
  gap: 1rem;
}
@media (min-width: 760px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.25rem 1.25rem 1.35rem;
  background: var(--ink-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
  min-height: 12.5rem;
}
.card:hover {
  border-color: var(--line);
  background: var(--ink-3);
  color: inherit;
}
.card .icon-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.card h3 { margin: 0.2rem 0 0; }
.card p { margin: 0; color: var(--muted-2); flex: 1; }
.card .go {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
}

.mark {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.45rem;
  background: var(--amber-glow);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--amber);
}

/* Steps */
.steps {
  display: grid;
  gap: 1.25rem;
  counter-reset: step;
}
@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}
.step {
  padding: 0.2rem 0.2rem 0.4rem;
  border-top: 1px solid var(--line);
}
.step .num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 2rem;
  color: var(--amber);
  line-height: 1;
  margin: 0.85rem 0 0.55rem;
}
.step p { margin: 0; color: var(--paper-2); }

/* Honest / who */
.split {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 800px) {
  .split { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}
.panel {
  background: var(--ink-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.5rem;
}
.panel h2 { margin-bottom: 0.7rem; }
.panel p:last-child { margin-bottom: 0; }

.band {
  background:
    linear-gradient(90deg, rgba(224, 161, 74, 0.12), transparent 42%),
    var(--ink-2);
  border-block: 1px solid var(--line-soft);
  padding: clamp(2.4rem, 6vw, 3.6rem) 0;
}
.band .lede { margin-bottom: 1.2rem; }

/* Footer */
.site-footer {
  padding: 2rem 0 2.6rem;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  justify-content: space-between;
}
.site-footer a { color: var(--muted-2); text-decoration: none; }
.site-footer a:hover { color: var(--amber); }

/* Demo banner */
.demo-banner {
  background: var(--amber);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 550;
  padding: 0.55rem 0;
}
.demo-banner a { color: var(--ink); }
.demo-banner .wrap { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; }

/* Live proof */
.live-proof {
  padding: clamp(2rem, 5vw, 3.2rem) 0;
}
.live-proof .caption {
  margin: 0.75rem 0 0;
  font-style: italic;
  color: var(--muted-2);
  font-family: var(--serif);
}
.frame-wrap {
  margin-top: 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #0b0907;
  min-height: 28rem;
}
.frame-wrap iframe {
  width: 100%;
  height: 32rem;
  border: 0;
  background: #0b0907;
}

.try-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}
.try-list li {
  font-family: var(--mono);
  font-size: 0.78rem;
  padding: 0.35rem 0.7rem;
  border: 1px dashed var(--line);
  border-radius: 999px;
  color: var(--paper-2);
}

/* Demo business interiors */
.biz {
  background: var(--paper);
  color: var(--ink);
  padding: clamp(2rem, 5vw, 3.5rem) 0 4.5rem;
}
.biz a { color: var(--amber-2); }
.biz a:hover { color: var(--ink); }
.biz .btn { color: var(--ink); text-decoration: none; }
.biz .btn:hover { color: var(--ink); }
.biz h1 { color: var(--ink); font-size: clamp(2.1rem, 6vw, 3.6rem); }
.biz h2 { color: var(--ink); }
.biz .kicker { color: var(--amber-2); }
.biz .lede { color: #4a4034; }
.biz-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6a5c4a;
  margin: 0 0 1.2rem;
}
.facts {
  display: grid;
  gap: 1rem;
  margin-top: 1.8rem;
}
@media (min-width: 720px) {
  .facts { grid-template-columns: 1fr 1fr; }
}
.fact {
  background: #fffdf6;
  border: 1px solid var(--paper-3);
  border-radius: 0.9rem;
  padding: 1.1rem 1.15rem;
}
.fact h3 { margin: 0 0 0.4rem; font-size: 1.15rem; }
.fact p { margin: 0; color: #4c4338; }

/* Contact */
.contact-hero { padding-bottom: 0.5rem; }
.mailform {
  display: grid;
  gap: 0.85rem;
  max-width: 34rem;
  margin-top: 1.4rem;
}
.mailform label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.92rem;
  font-weight: 550;
}
.mailform input,
.mailform textarea {
  font: inherit;
  color: var(--paper);
  background: var(--ink-2);
  border: 1px solid var(--line-soft);
  border-radius: 0.65rem;
  padding: 0.7rem 0.8rem;
  width: 100%;
}
.mailform textarea { min-height: 8rem; resize: vertical; }
.mailform input:focus,
.mailform textarea:focus {
  outline: 2px solid var(--amber);
  border-color: transparent;
}

/* 404 */
.lost { min-height: 70vh; display: grid; align-content: center; padding: 3rem 0; }

/* Chat widget */
.desk-root { position: relative; z-index: 60; }

.desk-bubble {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 61;
  width: 3.5rem;
  height: 3.5rem;
  border: 0;
  border-radius: 50%;
  background: var(--amber);
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.desk-bubble:hover { background: #ebb05a; }
.desk-bubble svg { width: 1.45rem; height: 1.45rem; }

.desk-panel {
  position: fixed;
  right: 1rem;
  bottom: 5.1rem;
  z-index: 62;
  width: min(22.5rem, calc(100vw - 1.5rem));
  height: min(32rem, calc(100vh - 7rem));
  display: flex;
  flex-direction: column;
  background: #f7f1e4;
  color: var(--ink);
  border-radius: 1.05rem;
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid #d9cbb3;
}
.desk-panel[hidden] { display: none !important; }

.desk-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem 0.85rem;
  background: var(--ink);
  color: var(--paper);
}
.desk-head strong {
  font-family: var(--serif);
  font-weight: 550;
  font-size: 1rem;
}
.desk-head small {
  display: block;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
  margin-top: 0.15rem;
}
.desk-close {
  background: transparent;
  border: 0;
  color: var(--paper);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  width: 2rem;
  height: 2rem;
}

.desk-log {
  flex: 1;
  overflow-y: auto;
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  background: #f7f1e4;
}

.desk-msg {
  max-width: 88%;
  padding: 0.55rem 0.75rem;
  border-radius: 0.85rem;
  font-size: 0.95rem;
  line-height: 1.4;
  white-space: pre-wrap;
}
.desk-msg.bot {
  align-self: flex-start;
  background: #fff;
  border: 1px solid #eadcc4;
}
.desk-msg.you {
  align-self: flex-end;
  background: var(--ink);
  color: var(--paper);
}

.desk-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0 0.85rem 0.5rem;
}
.desk-chips button {
  font: inherit;
  font-size: 0.78rem;
  background: #fff;
  border: 1px solid #d9cbb3;
  border-radius: 999px;
  padding: 0.28rem 0.6rem;
  cursor: pointer;
  color: var(--ink);
}
.desk-chips button:hover { border-color: var(--amber-2); }

.desk-form {
  display: flex;
  gap: 0.4rem;
  padding: 0.65rem;
  border-top: 1px solid #eadcc4;
  background: #fffdf6;
}
.desk-form input {
  flex: 1;
  font: inherit;
  border: 1px solid #d9cbb3;
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  color: var(--ink);
  background: #fff;
}
.desk-form button {
  font: inherit;
  font-weight: 650;
  background: var(--ink);
  color: var(--paper);
  border: 0;
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  cursor: pointer;
}

.has-desk { padding-bottom: 4.5rem; }

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