:root {
  --green: #0a3d2f;
  --navy: #182d4d;
  --ink: #1e293b;
  --muted: #64748b;
  --line: #e2e8f0;
  --paper: #ffffff;
  --soft: #f8fafc;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: 1.25rem;
}

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

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  letter-spacing: -0.011em;
  overflow-x: clip;
}

img { max-width: 100%; }

button,
input,
textarea { font: inherit; color: inherit; }

button { cursor: pointer; }

a { color: var(--green); }

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  background: var(--paper);
  color: var(--navy);
  padding: 0.6rem 1rem;
  border-radius: 999px;
}

.skip:focus { top: 1rem; }

:focus { outline: none; }

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

.top,
.column,
.foot {
  box-sizing: border-box;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.top {
  max-width: 1100px;
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand img { display: block; height: 32px; width: auto; }

.top-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.full,
.foot a,
.text {
  background: none;
  border: 0;
  padding: 0.4rem 0.2rem;
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.who { display: flex; align-items: center; gap: 0.55rem; }

.initials {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green);
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
}

.stage {
  position: relative;
  width: calc(100% - 2.5rem);
  max-width: 1100px;
  height: min(34vh, 380px);
  min-height: 200px;
  margin: 0 auto 1.75rem;
  padding: 0;
  border-radius: 28px;
  overflow: hidden;
  background: var(--navy);
}

.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.slide.is-on { opacity: 1; }

.caption,
.pause {
  position: absolute;
  z-index: 2;
  bottom: 0.9rem;
  margin: 0;
  color: white;
  background: rgb(24 45 77 / 0.55);
  border-radius: 999px;
}

.caption {
  left: 0.9rem;
  padding: 0.35rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.pause,
.pause-ex {
  right: 0.9rem;
  border: 0;
  min-height: 44px;
  padding: 0 1rem;
  font-weight: 600;
}

.pause-ex {
  position: static;
  color: var(--navy);
  background: var(--soft);
  border-radius: 999px;
}

.column { max-width: 800px; margin-bottom: 3rem; }

h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(2rem, 8vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 600;
  color: var(--navy);
}

.promise,
.trust {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.trust { margin-top: 0.85rem; }

.chip {
  display: inline-block;
  margin: 1rem 0 0;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--soft);
  color: var(--navy);
  font-weight: 600;
  font-size: 0.92rem;
}

.slot { margin-top: 1.35rem; }

.composer {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  min-height: 4.5rem;
  padding: 0.55rem 0.55rem 0.55rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.04), 0 12px 40px rgb(24 45 77 / 0.08);
}

.composer.enter { animation: rise 0.45s ease; }

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.composer input,
.composer textarea {
  flex: 1;
  min-width: 0;
  border: 0;
  resize: none;
  background: transparent;
  padding: 0.75rem 0;
  line-height: 1.4;
  max-height: 7.2rem;
}

.composer input::placeholder,
.composer textarea::placeholder { color: #94a3b8; }

.composer input:focus,
.composer textarea:focus { outline: none; }

.go,
.icon,
.round-nav,
.option {
  border: 0;
  background: var(--green);
  color: white;
}

.go {
  min-height: 48px;
  padding: 0 1.15rem;
  border-radius: 999px;
  font-weight: 700;
  flex: none;
}

.go.round,
.icon,
.round-nav {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
}

.icon,
.round-nav {
  background: var(--soft);
  color: var(--navy);
}

.go svg,
.icon svg,
.round-nav svg { width: 20px; height: 20px; fill: currentColor; }

.composer.off {
  align-items: center;
  padding: 1.1rem 1.25rem;
  background: var(--soft);
  box-shadow: none;
}

.composer.off p { margin: 0; color: var(--navy); font-weight: 600; }

.field-error {
  margin: 0.55rem 0 0;
  color: #9f1239;
  font-size: 0.92rem;
}

.examples {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
}

.ex-text {
  flex: 1;
  min-height: 44px;
  border: 0;
  background: transparent;
  text-align: left;
  color: var(--navy);
  font-weight: 600;
  padding: 0.4rem 0.2rem;
}

.thread { margin-top: 1.75rem; display: grid; gap: 1.35rem; }

.turn {
  max-width: 42rem;
}

.turn p { margin: 0 0 0.75rem; font-size: 1.05rem; }

.turn p:last-child { margin-bottom: 0; }

.turn-user p {
  color: var(--navy);
  font-weight: 600;
}

.thinking { color: var(--muted); }

.options {
  display: grid;
  gap: 0.55rem;
  margin: 0.3rem 0 0.9rem;
}

.option {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-align: left;
  padding: 0.7rem 0.9rem;
  border-radius: 16px;
  background: var(--soft);
  color: var(--navy);
}

.option .n {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green);
  color: white;
  font-weight: 700;
  flex: none;
}

.option .detail {
  display: block;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.92rem;
}

.source {
  color: var(--muted);
  font-size: 0.95rem;
}

.source a { font-weight: 700; }

.foot {
  max-width: 800px;
  padding-bottom: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
}

dialog {
  width: min(560px, calc(100% - 2rem));
  border: 0;
  border-radius: 24px;
  padding: 1.5rem 1.4rem 1.3rem;
  color: var(--ink);
}

dialog::backdrop { background: rgb(24 45 77 / 0.35); }

dialog h2 {
  margin: 0 0 0.8rem;
  color: var(--navy);
  font-size: 1.6rem;
  letter-spacing: -0.03em;
}

dialog p { margin: 0 0 0.75rem; }

dialog .go { margin-top: 0.4rem; }

@media (max-height: 820px) {
  .stage { height: 200px; min-height: 200px; }
}

@media (max-width: 720px) {
  .stage { height: 200px; min-height: 200px; border-radius: 20px; }
  h1 { font-size: 2.15rem; }
  .composer { border-radius: 22px; padding-left: 0.9rem; }
  body.has-thread .slot {
    position: sticky;
    bottom: 0.6rem;
    z-index: 4;
    background: linear-gradient(transparent, #fff 18%);
    padding-top: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .slide { transition: none; }
  .composer.enter { animation: none; }
  html { scroll-behavior: auto; }
}
