/* AmosGPT — navy / royal blue product theme */
:root {
  --lw-navy: #0f172a;
  --lw-navy-2: #1e293b;
  --lw-blue: #2563eb;
  --lw-blue-bright: #3b82f6;
  --lw-blue-soft: #dbeafe;
  --lw-sky: #eff6ff;
  --lw-panel: #f1f5f9;
  --lw-white: #ffffff;
  --lw-ink: #0f172a;
  --lw-muted: #64748b;
  --lw-line: #e2e8f0;
  --lw-green: #22c55e;
  --lw-danger: #dc2626;
  --lw-font: "Outfit", system-ui, sans-serif;
  --lw-display: "Fraunces", Georgia, serif;
  --lw-radius: 14px;
  --lw-max: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.lw-body {
  margin: 0;
  font-family: var(--lw-font);
  color: var(--lw-ink);
  background: var(--lw-white);
  line-height: 1.55;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: var(--lw-blue); text-decoration: none; }
a:hover { color: var(--lw-blue-bright); }
.lw-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.lw-skip { position: absolute; left: -999px; }
.lw-skip:focus { left: 1rem; top: 1rem; z-index: 99; background: #fff; padding: .5rem; }

/* ── Marketing header ── */
.lw-mkt-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.lw-mkt-header__inner {
  max-width: var(--lw-max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.lw-logo {
  display: inline-flex; align-items: center; gap: 0.55rem;
  color: #fff; font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em;
}
.lw-logo__mark {
  width: 2rem; height: 2rem; border-radius: 10px;
  background: var(--lw-blue); display: grid; place-items: center;
}
.lw-mkt-nav { display: none; gap: 1.1rem; align-items: center; }
.lw-mkt-nav a { color: rgba(255,255,255,0.78); font-weight: 500; font-size: 0.92rem; }
.lw-mkt-nav a:hover { color: #fff; }
.lw-mkt-nav a.lw-btn { color: #fff; }
.lw-mkt-nav a.lw-btn--white { color: var(--lw-navy); }
.lw-mkt-nav a.lw-btn--white:hover { color: var(--lw-navy); }
@media (min-width: 860px) { .lw-mkt-nav { display: flex; } }

.lw-btn {
  appearance: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.7rem 1.2rem; border-radius: 999px;
  background: var(--lw-blue); color: #fff;
  font: inherit; font-weight: 600; font-size: 0.92rem;
  transition: background .15s ease, transform .15s ease;
}
.lw-btn:hover { background: #1d4ed8; color: #fff; }
.lw-btn:disabled { opacity: .6; cursor: wait; }
.lw-btn--ghost {
  background: transparent; color: #fff;
  border: 1px solid rgba(255,255,255,0.28);
}
.lw-btn--ghost:hover { background: rgba(255,255,255,0.08); color: #fff; }
.lw-btn--white { background: #fff; color: var(--lw-navy); }
.lw-btn--white:hover { background: var(--lw-sky); color: var(--lw-navy); }
.lw-btn--outline {
  background: #fff; color: var(--lw-blue);
  border: 1px solid var(--lw-blue-soft);
}
.lw-btn--sm { padding: 0.45rem 0.85rem; font-size: 0.85rem; }

/* ── Hero ── */
.lw-hero {
  position: relative; min-height: min(88vh, 760px);
  display: grid; align-items: center;
  background: var(--lw-navy); color: #fff; overflow: hidden;
}
.lw-hero__glow {
  position: absolute; inset: -20% -10% auto;
  height: 70%;
  background: radial-gradient(ellipse at 50% 0%, rgba(37,99,235,0.45), transparent 60%);
  pointer-events: none;
}
.lw-hero__inner {
  position: relative; z-index: 1;
  max-width: var(--lw-max); margin: 0 auto;
  padding: 5rem 1.25rem 4rem;
  display: grid; gap: 2.5rem;
}
@media (min-width: 960px) {
  .lw-hero__inner { grid-template-columns: 1.1fr 0.9fr; align-items: center; }
}
.lw-hero__eyebrow {
  margin: 0 0 0.75rem; color: #93c5fd;
  font-size: 0.8rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase;
}
.lw-hero h1 {
  margin: 0 0 0.85rem;
  font-family: var(--lw-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.08; letter-spacing: -0.03em;
}
.lw-hero__sub { margin: 0 0 1.5rem; color: rgba(255,255,255,0.78); max-width: 34rem; font-size: 1.08rem; }
.lw-hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.lw-hero__card {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 20px; padding: 1.25rem;
  backdrop-filter: blur(8px);
}
.lw-hero__card img {
  width: 100%; height: 220px; object-fit: cover; border-radius: 14px; margin-bottom: 1rem;
  opacity: 1; filter: none;
}
.lw-hero__card p { margin: 0; color: rgba(255,255,255,0.88); font-size: 0.95rem; }

.lw-section { padding: 4.5rem 0; }
.lw-section--panel { background: var(--lw-panel); }
.lw-wrap { max-width: var(--lw-max); margin: 0 auto; padding: 0 1.25rem; }
.lw-wrap--narrow { max-width: 720px; }

/* ── Guest try-chat (under hero) ── */
.lw-try {
  padding: 1.75rem 0 8rem;
  background:
    radial-gradient(780px 320px at 50% 0%, rgba(37, 99, 235, 0.28) 0%, transparent 60%),
    linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}
#try-chat { scroll-margin-top: 5.5rem; }
.lw-wrap--chat { max-width: 920px; }
.lw-try-host {
  position: relative;
  min-height: 0;
}
.lw-try-host.is-holding {
  /* keeps layout height while panel is moved into the overlay */
}
.lw-try__intro {
  text-align: center;
  margin: 2.75rem 0 3.25rem;
  padding: 0.5rem 0;
}
.lw-try__intro .lw-section-title {
  margin-bottom: 0.75rem;
  color: #f8fafc;
  line-height: 1.25;
}
.lw-typewriter {
  display: inline;
  white-space: nowrap;
}
.lw-typewriter__word {
  color: #93c5fd;
  font-weight: 700;
}
.lw-typewriter__caret {
  display: inline-block;
  width: 2px;
  height: 0.95em;
  margin-left: 2px;
  vertical-align: -0.08em;
  background: #93c5fd;
  border-radius: 1px;
  animation: lwCaret 1s steps(1) infinite;
}
.lw-typewriter.is-typing .lw-typewriter__caret {
  animation: none;
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .lw-typewriter__caret { animation: none; opacity: 1; }
}
.lw-try__intro .lw-section-lead {
  margin: 0 auto;
  max-width: 28rem;
  font-size: 1rem;
  color: #94a3b8;
}
.lw-try__intro .lw-section-lead a {
  font-weight: 600;
  color: #93c5fd;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.lw-try__intro .lw-section-lead a:hover { color: #bfdbfe; }
.lw-try-panel {
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
}
.lw-try-thread {
  min-height: 320px;
  height: min(52vh, 480px);
  max-height: min(52vh, 480px);
  overflow: auto;
  overflow-anchor: none;
  overscroll-behavior: contain;
  scroll-behavior: auto;
  padding: 1.25rem 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.9rem;
  background: linear-gradient(180deg, #f8fafc, #fff 40%);
}
.lw-try-thread:not(.is-active) {
  justify-content: center;
}
.lw-try-welcome {
  margin: 0 auto;
  text-align: center;
  max-width: 32rem;
  width: 100%;
  padding: 0.5rem 0.25rem;
  flex: 0 0 auto;
}
.lw-try-welcome__icon {
  width: 3.2rem; height: 3.2rem; margin: 0 auto 0.85rem;
  border-radius: 16px; display: grid; place-items: center;
  background: var(--lw-blue-soft); color: var(--lw-blue);
}
.lw-try-welcome h3 { margin: 0 0 0.4rem; font-size: 1.2rem; }
.lw-try-welcome p { margin: 0 0 1rem; color: var(--lw-muted); font-size: 0.95rem; }
.lw-try-chips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  width: 100%;
}
.lw-try-chip {
  appearance: none; border: 1px solid var(--lw-line); background: #fff;
  border-radius: 14px; padding: 0.7rem 0.85rem;
  font: inherit; font-size: 0.82rem; color: var(--lw-ink); cursor: pointer;
  text-align: left; line-height: 1.35;
  min-height: 3rem;
}
.lw-try-chip:hover { border-color: #93c5fd; background: var(--lw-sky); }

.lw-gmsg { display: flex; max-width: 92%; }
.lw-gmsg--user { align-self: flex-end; }
.lw-gmsg--bot { align-self: flex-start; }
.lw-gmsg__bubble {
  padding: 0.85rem 1rem;
  border-radius: 18px;
  font-size: 0.95rem;
  line-height: 1.55;
}
.lw-gmsg--user .lw-gmsg__bubble {
  background: var(--lw-blue);
  color: #fff;
  border-bottom-right-radius: 6px;
  white-space: pre-wrap;
}
.lw-gmsg--bot .lw-gmsg__bubble {
  background: #fff;
  border: 1px solid var(--lw-line);
  color: var(--lw-ink);
  border-bottom-left-radius: 6px;
}
.lw-gmsg__bubble p { margin: 0 0 0.5rem; }
.lw-gmsg__bubble p:last-child { margin-bottom: 0; }
.lw-gmsg__bubble ul { margin: 0.3rem 0 0.5rem; padding-left: 1.1rem; }
.lw-gmsg__bubble li { margin: 0.15rem 0; }
.lw-gmsg__bubble strong,
.lw-msg__body strong {
  font-weight: 750;
  color: #1e3a8a;
}
.lw-gmsg--user .lw-gmsg__bubble strong,
.lw-msg--user .lw-msg__body strong {
  color: #fff;
  font-weight: 700;
}

.lw-verse-chip {
  appearance: none;
  display: inline;
  margin: 0 0.1em;
  padding: 0.05em 0.42em;
  border: 1px solid #93c5fd;
  border-radius: 999px;
  background: linear-gradient(180deg, #eff6ff, #dbeafe);
  color: #1d4ed8;
  font: inherit;
  font-size: 0.92em;
  font-weight: 650;
  line-height: 1.35;
  cursor: pointer;
  vertical-align: baseline;
  box-shadow: 0 1px 0 rgba(37, 99, 235, 0.12);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}
.lw-verse-chip:hover,
.lw-verse-chip:focus-visible {
  background: #bfdbfe;
  border-color: #60a5fa;
  outline: none;
  transform: translateY(-1px);
}

.lw-cites-block {
  margin-top: 0.85rem;
  padding: 0.75rem 0.85rem 0.8rem;
  border-radius: 14px;
  border: 1px solid #bfdbfe;
  background: linear-gradient(180deg, #f8fbff 0%, #eff6ff 100%);
}
.lw-cites-block__title {
  margin: 0 0 0.15rem;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1e40af;
}
.lw-cites-block__hint {
  margin: 0 0 0.55rem;
  font-size: 0.8rem;
  color: #64748b;
}
.lw-cites-block .lw-cites { margin-top: 0; }

.lw-verse-pop {
  position: fixed;
  z-index: 400;
  width: min(320px, calc(100vw - 1.5rem));
  padding: 0.85rem 0.95rem 0.9rem;
  border-radius: 14px;
  background: #0f172a;
  color: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.45);
  pointer-events: auto;
}
.lw-verse-pop__ref {
  font-size: 0.82rem;
  font-weight: 750;
  color: #93c5fd;
  margin-bottom: 0.4rem;
}
.lw-verse-pop__text {
  font-size: 0.9rem;
  line-height: 1.45;
  color: rgba(248, 250, 252, 0.92);
  margin-bottom: 0.7rem;
}
.lw-verse-pop__more {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  background: var(--lw-blue);
  color: #fff;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 650;
  cursor: pointer;
}
.lw-verse-pop__more:hover { background: #1d4ed8; }

.lw-voice-prompt__bubble {
  max-width: 34rem;
  background: linear-gradient(180deg, #eff6ff, #fff) !important;
  border-color: #93c5fd !important;
}
.lw-voice-prompt__choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin: 0.65rem 0 0.35rem;
}
@media (max-width: 520px) {
  .lw-voice-prompt__choices { grid-template-columns: 1fr; }
}
.lw-voice-choice {
  appearance: none;
  border: 1px solid #93c5fd;
  background: #fff;
  color: #1e3a8a;
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 650;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}
.lw-voice-choice:hover {
  background: #dbeafe;
  border-color: #60a5fa;
  transform: translateY(-1px);
}
.lw-voice-prompt__note {
  margin: 0.55rem 0 0 !important;
  font-size: 0.8rem;
  color: var(--lw-muted);
}
.lw-voice-prompt.is-set .lw-voice-prompt__bubble {
  background: #fff !important;
}

.lw-gmsg__bubble--thinking {
  padding: 0.95rem 1.1rem;
  min-width: 3.4rem;
}
.lw-typing {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  height: 1rem;
}
.lw-typing span {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: #94a3b8;
  animation: lwDot 1.05s ease-in-out infinite;
}
.lw-typing span:nth-child(2) { animation-delay: 0.15s; }
.lw-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes lwDot {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.45; }
  40% { transform: translateY(-3px); opacity: 1; }
}
.lw-caret {
  display: inline-block;
  width: 0.45em;
  height: 1.05em;
  margin-left: 1px;
  vertical-align: -0.15em;
  background: var(--lw-blue);
  border-radius: 1px;
  animation: lwCaret 0.9s steps(1) infinite;
}
@keyframes lwCaret {
  0%, 45% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
.lw-gmsg.is-streaming .lw-gmsg__bubble {
  border-color: #bfdbfe;
}

.lw-try-composer {
  border-top: 1px solid var(--lw-line);
  padding: 0.85rem 1rem 1rem;
  background: #fff;
  width: 100%;
}
.lw-try-composer__box {
  display: flex; align-items: flex-end; gap: 0.5rem;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #94a3b8;
  border-radius: 18px;
  padding: 0.45rem 0.45rem 0.45rem 0.95rem;
  background: #c5d0de;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}
.lw-try-composer__box:focus-within {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
  background: #d7e0eb;
}
.lw-try-composer textarea {
  flex: 1 1 auto; width: 100%; min-width: 0;
  border: 0; outline: 0; resize: none;
  font: inherit; background: transparent;
  color: #0f172a;
  caret-color: var(--lw-blue);
  min-height: 1.5rem; max-height: 140px;
  padding: 0.45rem 0; line-height: 1.45;
  position: relative;
  z-index: 1;
}
.lw-try-composer textarea::placeholder { color: transparent; }

.lw-composer-field {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
}
.lw-composer-prompt {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.1em;
  pointer-events: none;
  color: #334155;
  font: inherit;
  line-height: 1.45;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.lw-composer-prompt__caret {
  display: inline-block;
  width: 2px;
  height: 1.15em;
  margin-left: 2px;
  background: var(--lw-blue);
  border-radius: 1px;
  flex-shrink: 0;
  animation: lwCaret 1s steps(1) infinite;
}
/* Keep hint + caret until the user focuses (or has typed). */
.lw-composer-field:focus-within .lw-composer-prompt,
.lw-composer-field:has(textarea:not(:placeholder-shown)) .lw-composer-prompt,
.lw-composer-field:has(input:not(:placeholder-shown)) .lw-composer-prompt {
  visibility: hidden;
}
@media (prefers-reduced-motion: reduce) {
  .lw-composer-prompt__caret { animation: none; opacity: 1; }
}
.lw-try-send {
  width: 2.45rem; height: 2.45rem; border-radius: 14px;
  border: 0; background: var(--lw-blue); color: #fff;
  cursor: pointer; display: grid; place-items: center; flex-shrink: 0;
}
.lw-try-send:hover { background: #1d4ed8; }
.lw-try-send:disabled { opacity: 0.55; cursor: wait; }

.lw-q { cursor: pointer; width: 100%; }
.lw-section-title {
  margin: 0 0 0.5rem;
  font-family: var(--lw-display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -0.02em;
}
.lw-section-lead { margin: 0 0 2rem; color: var(--lw-muted); max-width: 36rem; }

.lw-feature-grid {
  display: grid; gap: 1.1rem;
}
@media (min-width: 800px) { .lw-feature-grid { grid-template-columns: repeat(3, 1fr); } }
.lw-feature {
  background: #fff; border: 1px solid var(--lw-line);
  border-radius: var(--lw-radius); padding: 1.4rem 1.25rem;
}
.lw-feature__icon {
  width: 2.5rem; height: 2.5rem; border-radius: 12px;
  background: var(--lw-blue-soft); color: var(--lw-blue);
  display: grid; place-items: center; margin-bottom: 0.85rem;
}
.lw-feature h3 { margin: 0 0 0.4rem; font-size: 1.1rem; }
.lw-feature p { margin: 0; color: var(--lw-muted); font-size: 0.95rem; }

.lw-q-grid { display: grid; gap: 0.75rem; }
@media (min-width: 700px) { .lw-q-grid { grid-template-columns: 1fr 1fr; } }
.lw-q {
  text-align: left;
  appearance: none;
  border: 1px solid var(--lw-line);
  background: #fff;
  border-radius: 12px;
  padding: 1rem 1.1rem;
  font: inherit;
  color: var(--lw-ink);
  cursor: pointer;
  width: 100%;
}
.lw-q:hover {
  border-color: #93c5fd;
  background: var(--lw-sky);
}

.lw-use-grid { display: grid; gap: 1rem; }
@media (min-width: 800px) { .lw-use-grid { grid-template-columns: repeat(4, 1fr); } }
.lw-use {
  padding: 1.1rem; border-radius: 12px;
  background: #fff; border: 1px solid var(--lw-line);
}
.lw-use h3 { margin: 0 0 0.35rem; font-size: 1.02rem; }
.lw-use p { margin: 0; color: var(--lw-muted); font-size: 0.92rem; }

.lw-faq details { border-bottom: 1px solid var(--lw-line); padding: 1rem 0; }
.lw-faq summary { cursor: pointer; font-weight: 600; }
.lw-faq details p { margin: 0.6rem 0 0; color: var(--lw-muted); }

.lw-cta-band {
  background: linear-gradient(135deg, var(--lw-navy), #1e3a8a 55%, var(--lw-blue));
  color: #fff; padding: 3.5rem 0; text-align: center;
}
.lw-cta-band h2 { margin: 0 0 0.6rem; font-family: var(--lw-display); font-size: 2rem; }
.lw-cta-band p { margin: 0 0 1.25rem; color: rgba(255,255,255,0.8); }

.lw-mkt-footer {
  background: var(--lw-navy); color: rgba(255,255,255,0.7);
  padding: 2rem 0; font-size: 0.88rem;
}
.lw-mkt-footer a { color: #93c5fd; }
.lw-mkt-footer__inner { max-width: var(--lw-max); margin: 0 auto; padding: 0 1.25rem; }
.lw-mkt-footer strong { color: #fff; }

/* ── Auth ── */
.lw-auth-page {
  min-height: 100vh; display: grid; place-items: center;
  background: radial-gradient(800px 400px at 50% -10%, rgba(37,99,235,0.35), transparent),
              var(--lw-navy);
  padding: 2rem 1rem;
}
.lw-auth-card {
  width: min(420px, 100%);
  background: #fff; border-radius: 18px; padding: 2rem 1.6rem;
}
.lw-auth-card h1 { margin: 0.4rem 0 0.3rem; font-size: 1.55rem; }
.lw-auth-card .sub { margin: 0 0 1.4rem; color: var(--lw-muted); font-size: 0.95rem; }
.lw-field { margin-bottom: 0.95rem; }
.lw-field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.35rem; }
.lw-field input {
  width: 100%; padding: 0.75rem 0.9rem; border-radius: 10px;
  border: 1px solid var(--lw-line); font: inherit;
}
.lw-field input:focus { outline: 2px solid #93c5fd; border-color: var(--lw-blue); }
.lw-error {
  background: #fef2f2; color: var(--lw-danger);
  border-radius: 10px; padding: 0.7rem 0.85rem; margin-bottom: 1rem; font-size: 0.9rem;
}
.lw-auth-alt { margin-top: 1.1rem; text-align: center; color: var(--lw-muted); font-size: 0.92rem; }

/* Instant auth popup on marketing page */
.lw-auth-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}
.lw-auth-modal[hidden] { display: none !important; }
.lw-auth-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(15, 23, 42, 0.55);
  cursor: pointer;
}
.lw-auth-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  max-height: min(92vh, 720px);
  overflow: auto;
  background: #fff;
  border-radius: 18px;
  padding: 2rem 1.6rem 1.6rem;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
  animation: lwAuthIn 0.18s ease-out;
}
.lw-auth-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.1rem;
  height: 2.1rem;
  border: 0;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.lw-auth-modal__close:hover { background: #e2e8f0; }
.lw-auth-modal__panel h1 {
  margin: 0.4rem 0 0.3rem;
  font-size: 1.55rem;
  color: var(--lw-navy);
}
.lw-auth-modal__panel .sub {
  margin: 0 0 1.4rem;
  color: var(--lw-muted);
  font-size: 0.95rem;
}
@keyframes lwAuthIn {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .lw-auth-modal__dialog { animation: none; }
}
/* Auth modal primary CTA — keep strong contrast on white card */
.lw-auth-modal__panel .lw-btn {
  background: var(--lw-blue);
  color: #fff;
  border: 0;
}
.lw-auth-modal__panel .lw-btn:hover {
  background: #1d4ed8;
  color: #fff;
}

/* ── App shell (dashboard) ── */
.lw-app {
  display: grid;
  grid-template-columns: 64px 260px 1fr;
  height: 100vh; max-height: 100dvh;
  background: var(--lw-panel); overflow: hidden;
}
.lw-menu-toggle {
  display: none;
  width: 2.45rem;
  height: 2.45rem;
  border: 0;
  border-radius: 12px;
  background: #f1f5f9;
  color: #0f2744;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
}
.lw-menu-toggle:hover { background: #e2e8f0; }
.lw-menu-backdrop {
  display: none;
}
.lw-drawer-close {
  display: none;
  width: 2.1rem;
  height: 2.1rem;
  border: 0;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  place-items: center;
  cursor: pointer;
}
.lw-drawer-logout { margin: 0; }
.lw-brand-caps {
  letter-spacing: 0.04em;
  font-weight: 800;
}
.lw-badge--pro { background: #0f2744; }
a.lw-badge, button.lw-badge {
  text-decoration: none;
  border: 0;
  font: inherit;
  cursor: pointer;
}
@media (max-width: 900px) {
  .lw-app { grid-template-columns: 1fr; }
  .lw-rail-nav { display: none; }
  .lw-menu-toggle { display: grid; }
  .lw-drawer-close { display: grid; }
  .lw-rail-conv {
    display: flex;
    position: fixed;
    inset: 0 auto 0 0;
    width: min(320px, 88vw);
    z-index: 70;
    transform: translateX(-105%);
    transition: transform 0.28s ease;
    box-shadow: 12px 0 40px rgba(15, 23, 42, 0.2);
  }
  .lw-app.is-menu-open .lw-rail-conv,
  .lw-app.is-conv-open .lw-rail-conv {
    transform: translateX(0);
  }
  .lw-menu-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 65;
    border: 0;
    padding: 0;
    margin: 0;
    background: rgba(15, 23, 42, 0.45);
    cursor: pointer;
  }
  .lw-menu-backdrop[hidden] { display: none !important; }
  body.lw-menu-open { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  .lw-rail-conv { transition: none; }
}

.lw-rail-nav {
  background: var(--lw-navy); color: #fff;
  display: flex; flex-direction: column; align-items: center;
  padding: 0.85rem 0.4rem; gap: 0.65rem;
}
.lw-nav-ico {
  width: 2.45rem; height: 2.45rem; border-radius: 12px;
  display: grid; place-items: center; color: rgba(255,255,255,0.7);
  background: transparent; border: 0; cursor: pointer; text-decoration: none;
}
.lw-nav-ico:hover { background: rgba(255,255,255,0.08); color: #fff; }
.lw-nav-ico.is-active { background: var(--lw-blue); color: #fff; }
.lw-nav-avatar {
  width: 2.45rem; height: 2.45rem; border-radius: 999px;
  background: #334155; display: grid; place-items: center;
  font-weight: 700; font-size: 0.85rem; position: relative; margin-top: 0.25rem;
}
.lw-nav-avatar::after {
  content: ""; position: absolute; right: 1px; bottom: 1px;
  width: 8px; height: 8px; border-radius: 999px; background: var(--lw-green);
  border: 2px solid var(--lw-navy);
}
.lw-rail-nav__spacer { flex: 1; }

.lw-rail-conv {
  background: #fff; border-right: 1px solid var(--lw-line);
  display: flex; flex-direction: column; min-width: 0;
}
.lw-rail-conv__head {
  padding: 1.1rem 1rem 0.75rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.5rem;
}
.lw-rail-conv__head h2 { margin: 0; font-size: 1.05rem; }
.lw-conv-list {
  list-style: none; margin: 0; padding: 0.25rem 0.55rem 1rem;
  overflow: auto; flex: 1;
}
.lw-conv-item {
  display: flex; align-items: center; gap: 0.35rem;
  border-radius: 10px; margin-bottom: 0.2rem;
}
.lw-conv-item.is-active { background: var(--lw-sky); }
.lw-conv-item a {
  flex: 1; min-width: 0; padding: 0.7rem 0.65rem;
  color: var(--lw-ink); font-size: 0.9rem; font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lw-conv-item button.del {
  appearance: none; border: 0; background: transparent;
  color: var(--lw-muted); cursor: pointer; padding: 0.45rem; border-radius: 8px;
}
.lw-conv-item button.del:hover { background: #fee2e2; color: var(--lw-danger); }
.lw-rail-conv__foot {
  padding: 0.85rem; border-top: 1px solid var(--lw-line);
  display: flex; flex-direction: column; gap: 0.75rem;
}
.lw-rail-conv__foot .lw-fab { align-self: flex-end; }
.lw-account-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}
.lw-fab {
  width: 2.75rem; height: 2.75rem; border-radius: 14px;
  background: var(--lw-blue); color: #fff; border: 0; cursor: pointer;
  display: grid; place-items: center; font-size: 1.4rem; line-height: 1;
}
.lw-fab:hover { background: #1d4ed8; }

.lw-main {
  display: flex; flex-direction: column; min-width: 0; min-height: 0;
  background: #e8eef6;
}
.lw-main__head {
  background: #fff; border-bottom: 1px solid var(--lw-line);
  padding: 0.85rem 1.15rem;
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
}
.lw-main__title {
  display: flex; align-items: center; gap: 0.55rem;
  font-weight: 700; font-size: 1.05rem; margin: 0;
}
.lw-badge {
  display: inline-flex; align-items: center;
  background: var(--lw-green); color: #fff;
  font-size: 0.68rem; font-weight: 700; padding: 0.15rem 0.45rem;
  border-radius: 999px; text-transform: uppercase; letter-spacing: .04em;
}
.lw-main__user { color: var(--lw-muted); font-size: 0.85rem; }

.lw-thread {
  flex: 1; overflow: auto; padding: 1.25rem 1.15rem 1rem;
  display: flex; flex-direction: column; gap: 1rem;
}
.lw-empty {
  margin: auto; text-align: center; max-width: 28rem; color: var(--lw-muted);
}
.lw-empty h3 { color: var(--lw-ink); margin: 0 0 0.4rem; }
.lw-suggest { display: flex; flex-wrap: wrap; gap: 0.45rem; justify-content: center; margin-top: 1rem; }
.lw-suggest button {
  appearance: none; border: 1px solid var(--lw-line); background: #fff;
  border-radius: 999px; padding: 0.45rem 0.8rem; font: inherit; font-size: 0.82rem;
  cursor: pointer; color: var(--lw-ink);
}
.lw-suggest button:hover { border-color: #93c5fd; background: var(--lw-sky); }

.lw-msg { display: flex; gap: 0.65rem; max-width: min(760px, 100%); }
.lw-msg--user { align-self: flex-end; flex-direction: row-reverse; }
.lw-msg--bot { align-self: flex-start; }
.lw-msg__avatar {
  width: 2rem; height: 2rem; border-radius: 999px; flex-shrink: 0;
  background: #cbd5e1; display: grid; place-items: center;
  font-size: 0.75rem; font-weight: 700; color: var(--lw-navy);
}
.lw-msg--user .lw-msg__avatar { background: var(--lw-blue); color: #fff; }
.lw-msg__bubble {
  padding: 0.95rem 1.05rem; border-radius: 16px;
  font-size: 0.95rem; line-height: 1.55;
}
.lw-msg__body p { margin: 0 0 0.55rem; }
.lw-msg__body p:last-child { margin-bottom: 0; }
.lw-msg__body ul {
  margin: 0.35rem 0 0.55rem; padding-left: 1.15rem;
}
.lw-msg__body li { margin: 0.2rem 0; }
.lw-msg__body strong { font-weight: 700; }
.lw-msg--user .lw-msg__bubble {
  background: var(--lw-blue); color: #fff; border-bottom-right-radius: 6px;
  white-space: pre-wrap;
}
.lw-msg--bot .lw-msg__bubble {
  background: #fff; border: 1px solid var(--lw-line);
  border-bottom-left-radius: 6px; color: var(--lw-ink);
}
.lw-cites { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.7rem; }
.lw-cite {
  appearance: none;
  font: inherit;
  font-size: 0.75rem; padding: 0.28rem 0.6rem; border-radius: 999px;
  background: var(--lw-sky); color: #1e40af; border: 1px solid #bfdbfe;
  cursor: pointer; line-height: 1.2;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}
.lw-cite:hover {
  background: #dbeafe;
  border-color: #93c5fd;
  color: #1e3a8a;
}
.lw-cite:active { transform: translateY(1px); }
.lw-cite:focus-visible {
  outline: 2px solid var(--lw-blue);
  outline-offset: 2px;
}

.lw-msg__body strong { font-weight: 750; color: #1e3a8a; }
.lw-msg--user .lw-msg__body strong { color: #fff; }

.lw-composer {
  padding: 0.85rem 1.15rem 1.15rem;
  background: transparent;
}
.lw-composer__box {
  display: flex; align-items: center; gap: 0.55rem;
  background: #c5d0de; border: 1px solid #94a3b8;
  border-radius: 999px; padding: 0.35rem 0.4rem 0.35rem 1rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}
.lw-composer__box:focus-within {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
  background: #d7e0eb;
}
.lw-composer__box input,
.lw-composer__box textarea {
  flex: 1; border: 0; outline: 0; resize: none;
  font: inherit; padding: 0.55rem 0; max-height: 6rem;
  background: transparent;
  color: #0f172a;
  caret-color: var(--lw-blue);
  position: relative;
  z-index: 1;
}
.lw-composer__box input::placeholder,
.lw-composer__box textarea::placeholder {
  color: transparent;
}
.lw-send {
  width: 2.5rem; height: 2.5rem; border-radius: 999px;
  border: 0; background: #94a3b8; color: #fff; cursor: pointer;
  display: grid; place-items: center;
}
.lw-send:hover, .lw-send.is-ready { background: var(--lw-blue); }
.lw-composer__hint {
  margin: 0.45rem 0 0; text-align: center;
  font-size: 0.75rem; color: var(--lw-muted);
}

.reveal { opacity: 1; transform: none; }
.reveal.is-pending {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.is-pending.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-pending { opacity: 1; transform: none; }
}

/* ── Guest fullscreen dashboard overlay ── */
.lw-guest-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
}
.lw-guest-overlay:not([hidden]) {
  pointer-events: auto;
}
.lw-guest-overlay[hidden] { display: none !important; }

.lw-guest-shell {
  position: fixed;
  overflow: hidden;
  background: #e8eef6;
  border-radius: 22px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
  will-change: top, left, width, height, border-radius;
  transition:
    top 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    left 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    border-radius 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}
.lw-guest-shell.is-expanded {
  border-radius: 0;
}

.lw-guest-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 30;
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.35);
  transition: transform 0.15s ease, background 0.15s ease;
}
.lw-guest-close:hover { background: #b91c1c; transform: scale(1.05); }
.lw-guest-close:active { transform: scale(0.96); }

.lw-guest-dash {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  height: 100%;
  min-height: 0;
  opacity: 0;
  transition: opacity 0.28s ease 0.12s;
}
.lw-guest-shell.is-expanded .lw-guest-dash { opacity: 1; }
@media (max-width: 820px) {
  .lw-guest-dash { grid-template-columns: 1fr; }
  .lw-guest-side { display: none; }
  .lw-guest-mobile-lock { display: flex; }
}
.lw-guest-mobile-lock {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
}
.lw-guest-mobile-lock a {
  color: #93c5fd;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

.lw-guest-side {
  position: relative;
  background: #fff;
  border-right: 1px solid var(--lw-line);
  min-height: 0;
  overflow: hidden;
}
.lw-guest-side__blur {
  display: flex;
  height: 100%;
  filter: blur(5px);
  opacity: 0.55;
  pointer-events: none;
  user-select: none;
  transform: scale(1.02);
}
.lw-guest-side__rail {
  width: 56px;
  background: var(--lw-navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  padding: 1rem 0.4rem;
}
.lw-guest-side__ico {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.12);
}
.lw-guest-side__ico.is-on { background: var(--lw-blue); }
.lw-guest-side__spacer { flex: 1; }
.lw-guest-side__conv {
  flex: 1;
  padding: 1rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.lw-guest-side__label {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--lw-ink);
}
.lw-guest-side__row {
  height: 2.35rem;
  border-radius: 10px;
  background: #e2e8f0;
}
.lw-guest-side__row.is-on { background: #dbeafe; }
.lw-guest-side__fab {
  margin-top: auto;
  align-self: flex-end;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 14px;
  background: var(--lw-blue);
}

.lw-guest-side__lock {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 0.85rem;
  padding: 1.25rem;
  text-align: center;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.lw-guest-side__lock p {
  margin: 0;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.35;
  text-shadow: 0 1px 8px rgba(0,0,0,0.35);
}
.lw-guest-side__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
}
.lw-guest-side__actions .lw-btn--ghost {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.65);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}
.lw-guest-side__actions .lw-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
  border-color: #fff;
}

.lw-guest-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: #e8eef6;
}
.lw-guest-main__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 3.6rem 0.85rem 1.15rem;
  background: #fff;
  border-bottom: 1px solid var(--lw-line);
}
.lw-guest-main__head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.lw-guest-main__hint {
  color: var(--lw-muted);
  font-size: 0.8rem;
}
.lw-guest-session-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.12rem;
  max-width: min(100%, 14.5rem);
  padding: 0.5rem 0.75rem;
  border-radius: 12px;
  border: 1px solid #1d4ed8;
  background: #2563eb;
  color: #fff;
  text-decoration: none;
  line-height: 1.25;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.28);
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.lw-guest-session-cta:hover {
  background: #1d4ed8;
  border-color: #1e40af;
  color: #fff;
  box-shadow: 0 8px 20px rgba(29, 78, 216, 0.34);
}
.lw-guest-session-cta__line1 {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.lw-guest-session-cta__line2 {
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
}
.lw-guest-slot {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0.85rem 1rem 1rem;
}

.lw-guest-slot .lw-try-panel {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}
.lw-guest-slot .lw-try-thread {
  flex: 1;
  height: auto;
  min-height: 0;
  max-height: none;
}
body.lw-guest-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .lw-guest-shell { transition: none; }
  .lw-guest-dash { transition: none; }
}


/* —— Pricing —— */
.lw-pricing__hero {
  padding: 4.5rem 0 2rem;
  background: linear-gradient(180deg, #0f2744 0%, #163a5f 55%, #1a456e 100%);
  color: #f4f7fb;
  text-align: center;
}
.lw-pricing__hero h1 {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.85rem);
  margin: 0.35rem 0 0.85rem;
  letter-spacing: -0.02em;
}
.lw-pricing__lead {
  max-width: 36rem;
  margin: 0 auto;
  color: rgba(244, 247, 251, 0.88);
  line-height: 1.55;
  font-size: 1.05rem;
}
.lw-pricing__note,
.lw-pricing__badge {
  margin: 1rem auto 0;
  max-width: 28rem;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  background: rgba(255,255,255,0.12);
  font-size: 0.92rem;
}
.lw-pricing__cards { padding: 2.5rem 0 1rem; }
.lw-pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
  align-items: stretch;
}
@media (max-width: 900px) {
  .lw-pricing__grid { grid-template-columns: 1fr; max-width: 24rem; margin-inline: auto; }
}
.lw-price-card {
  position: relative;
  background: #fff;
  border: 1px solid #d7e0ec;
  border-radius: 18px;
  padding: 1.35rem 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.lw-price-card.is-featured {
  border-color: #1d4ed8;
  box-shadow: 0 0 0 1px #1d4ed8;
}
.lw-price-card__tag {
  position: absolute;
  top: -0.65rem;
  left: 1rem;
  background: #1d4ed8;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
}
.lw-price-card h2 {
  margin: 0.4rem 0 0;
  font-size: 1.25rem;
  color: #0f2744;
}
.lw-price-card__blurb { margin: 0; color: var(--lw-muted); font-size: 0.92rem; }
.lw-price-card__price { margin: 0.35rem 0 0.2rem; }
.lw-price-card__amount {
  font-family: Fraunces, Georgia, serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: #0f2744;
}
.lw-price-card__period { color: var(--lw-muted); font-size: 0.95rem; }
.lw-price-card__features {
  list-style: none;
  margin: 0.4rem 0 1rem;
  padding: 0;
  flex: 1;
}
.lw-price-card__features li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.25rem;
  font-size: 0.92rem;
  color: #243447;
  border-bottom: 1px solid #eef2f7;
}
.lw-price-card__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #1d4ed8;
}
.lw-price-card .lw-btn { width: 100%; justify-content: center; text-align: center; }
.lw-btn--ghost {
  background: #fff;
  color: #1e3a8a;
  border: 1px solid #93c5fd;
}
.lw-btn--primary {
  background: #1d4ed8;
  color: #fff;
  border: none;
}
.lw-pricing__setup {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--lw-muted);
  text-align: center;
}
.lw-pricing__setup code {
  font-size: 0.8rem;
  background: #eef2f7;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}
.lw-pricing__compare { padding: 2rem 0 3rem; }
.lw-compare-scroll { overflow-x: auto; }
.lw-compare {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #d7e0ec;
}
.lw-compare th,
.lw-compare td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid #e8eef5;
  font-size: 0.95rem;
}
.lw-compare thead th {
  background: #0f2744;
  color: #fff;
  font-weight: 600;
}
.lw-compare tbody th { font-weight: 600; color: #0f2744; width: 32%; }
.lw-compare tbody tr:last-child th,
.lw-compare tbody tr:last-child td { border-bottom: none; }
.lw-pricing__faq { padding: 0 0 3.5rem; }
.lw-pricing__faq-inner { max-width: 40rem; }
.lw-pricing__faq details {
  background: #fff;
  border: 1px solid #d7e0ec;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.65rem;
}
.lw-pricing__faq summary {
  cursor: pointer;
  font-weight: 650;
  color: #0f2744;
}
.lw-pricing__faq details p {
  margin: 0.55rem 0 0.15rem;
  color: var(--lw-muted);
  line-height: 1.5;
}

/* Upgrade prompt in chat */
.lw-upgrade {
  margin-top: 0.75rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: linear-gradient(180deg, #eff6ff, #fff);
  border: 1px solid #93c5fd;
}
.lw-upgrade__title {
  margin: 0 0 0.35rem;
  font-weight: 700;
  color: #1e3a8a;
  font-size: 0.98rem;
}
.lw-upgrade__body {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: #334155;
  line-height: 1.45;
}
.lw-upgrade__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.lw-upgrade__actions a,
.lw-upgrade__actions button {
  appearance: none;
  border-radius: 10px;
  padding: 0.55rem 0.85rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 650;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid #93c5fd;
  background: #fff;
  color: #1e3a8a;
}
.lw-upgrade__actions a.lw-upgrade__primary,
.lw-upgrade__actions button.lw-upgrade__primary {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #fff;
}
.lw-plan-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: #dbeafe;
  color: #1e3a8a;
  text-decoration: none;
}
.lw-plan-pill.is-pro { background: #1d4ed8; color: #fff; }

/* Embedded pricing on marketing home */
.lw-pricing--embedded .lw-pricing__hero--compact {
  padding: 3.25rem 0 1.5rem;
  border-radius: 0;
}
.lw-pricing__heading {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  margin: 0.35rem 0 0.75rem;
  letter-spacing: -0.02em;
}
.lw-pricing--embedded .lw-pricing__compare {
  padding-bottom: 2rem;
}

/* Blog teaser on /chat */
.lw-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}
@media (max-width: 860px) {
  .lw-blog-grid { grid-template-columns: 1fr; max-width: 26rem; margin-inline: auto; }
}
.lw-blog-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #d7e0ec;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.lw-blog-card:hover {
  border-color: #93c5fd;
  transform: translateY(-2px);
}
.lw-blog-card__media {
  aspect-ratio: 16 / 10;
  background: #0f2744;
  overflow: hidden;
}
.lw-blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.lw-blog-card__media--empty {
  background: linear-gradient(135deg, #163a5f, #1d4ed8);
}
.lw-blog-card__body {
  padding: 1rem 1.05rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}
.lw-blog-card__date {
  font-size: 0.75rem;
  color: var(--lw-muted);
  letter-spacing: 0.02em;
}
.lw-blog-card h3 {
  margin: 0;
  font-size: 1.05rem;
  color: #0f2744;
  line-height: 1.35;
}
.lw-blog-card p {
  margin: 0;
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.45;
  flex: 1;
}
.lw-blog-card__more {
  margin-top: 0.45rem;
  font-size: 0.85rem;
  font-weight: 650;
  color: #1d4ed8;
}
.lw-blog-more {
  margin: 1.5rem 0 0;
  text-align: center;
}

/* —— Native app shell (/chat/native + Capacitor) —— */
html.lw-native-root,
body.lw-native {
  height: 100%;
  overflow: hidden;
  background: #0f2744;
}
.lw-native-shell {
  min-height: 100vh;
  min-height: 100dvh;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: linear-gradient(165deg, #0f2744 0%, #163a5f 48%, #1a4a6e 100%);
  padding: env(safe-area-inset-top) env(safe-area-inset-right) 0 env(safe-area-inset-left);
}
body.lw-native .lw-try-host {
  flex: 1;
  display: flex;
  min-height: 0;
}
body.lw-native .lw-try-panel {
  flex: 1;
  border-radius: 0;
  box-shadow: none;
  border: 0;
  max-width: none;
  width: 100%;
  min-height: 0;
}
body.lw-native.lw-guest-open .lw-guest-close,
body.lw-native .lw-native-min {
  display: none !important;
}
body.lw-native .lw-try-composer,
body.lw-native .lw-composer {
  padding-bottom: calc(0.65rem + env(safe-area-inset-bottom));
}
body.lw-native .lw-app {
  padding-top: env(safe-area-inset-top);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}
body.lw-native-root .lw-billing-checkout,
body.lw-native-root .lw-billing-portal,
body.lw-native [data-stripe-checkout] {
  display: none !important;
}

.lw-account-actions {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.65rem 0.75rem 0.9rem;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
}
.lw-linkish {
  background: none;
  border: 0;
  color: #334155;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  padding: 0.2rem 0;
  text-decoration: none;
}
.lw-linkish:hover { color: #0f2744; }
.lw-linkish--danger { color: #b91c1c; }
button.lw-plan-pill {
  font: inherit;
  cursor: pointer;
}

.lw-legal h2 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.15rem;
}
.lw-legal__meta {
  color: var(--lw-muted, #64748b);
  font-size: 0.92rem;
}
.lw-legal ul { padding-left: 1.2rem; }
.lw-legal li { margin: 0.35rem 0; }

/* IAP paywall */
.lw-iap-paywall {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.lw-iap-paywall[hidden] { display: none !important; }
.lw-iap-paywall__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 39, 68, 0.55);
  cursor: pointer;
}
.lw-iap-paywall__dialog {
  position: relative;
  width: min(440px, 100%);
  background: #fff;
  border-radius: 18px 18px 0 0;
  padding: 1.25rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom));
  box-shadow: 0 -12px 40px rgba(15, 39, 68, 0.25);
}
.lw-iap-paywall__close {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  border: 0;
  background: transparent;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: #64748b;
}
.lw-iap-paywall__dialog h2 {
  margin: 0 1.5rem 0.35rem 0;
  font-size: 1.25rem;
  color: #0f2744;
}
.lw-iap-paywall__sub {
  margin: 0 0 1rem;
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.45;
}
.lw-iap-paywall__plans {
  display: grid;
  gap: 0.65rem;
}
.lw-iap-plan {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  width: 100%;
  text-align: left;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  background: #f8fafc;
  cursor: pointer;
  font: inherit;
}
.lw-iap-plan strong { color: #0f2744; }
.lw-iap-plan span { color: #64748b; font-size: 0.88rem; }
.lw-iap-plan--pro {
  background: #0f2744;
  border-color: #0f2744;
}
.lw-iap-plan--pro strong,
.lw-iap-plan--pro span { color: #fff; }
.lw-iap-restore {
  margin-top: 0.85rem;
  width: 100%;
  border: 0;
  background: transparent;
  color: #1d4ed8;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  padding: 0.5rem;
}
.lw-iap-paywall__legal {
  margin: 0.75rem 0 0;
  text-align: center;
  font-size: 0.78rem;
  color: #94a3b8;
}
.lw-iap-paywall__legal a { color: inherit; }
@media (min-width: 640px) {
  .lw-iap-paywall { align-items: center; }
  .lw-iap-paywall__dialog {
    border-radius: 16px;
    padding-bottom: 1.25rem;
  }
}

/* AmosGPT legal footer + cookie banner + PVC-style legal modals */
.lw-legal-footer {
  border-top: 1px solid #dbe3ef;
  background: #f8fafc;
  padding: 2rem 1.25rem 2.5rem;
  margin-top: 3rem;
}
.lw-legal-footer__inner {
  display: grid;
  gap: 1rem;
  max-width: 1120px;
  margin: 0 auto;
}
.lw-legal-footer__blurb {
  margin: 0;
  color: #64748b;
  font-size: 0.95rem;
  max-width: 36rem;
}
.lw-legal-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
}
.lw-legal-footer__nav a {
  color: #0f172a;
  font-size: 0.875rem;
  font-weight: 500;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.lw-legal-footer__nav a:hover { color: #2563eb; }
.lw-legal-footer__copy {
  margin: 0;
  color: #64748b;
  font-size: 0.8rem;
}
.lw-check {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  margin: 0.65rem 0;
  font-size: 0.88rem;
  color: #334155;
  line-height: 1.4;
  cursor: pointer;
}
.lw-check input { margin-top: 0.2rem; flex-shrink: 0; }
.lw-auth-legal {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: #64748b;
}
.lw-auth-legal a { color: inherit; }

.amos-cookie {
  position: fixed;
  z-index: 2147483000;
  left: 0; right: 0; bottom: 0;
  padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom));
  pointer-events: none;
}
.amos-cookie__bubble {
  pointer-events: auto;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  background: #0f2744;
  color: #f8fafc;
  border-radius: 14px;
  padding: 0.85rem 1rem;
}
.amos-cookie__text {
  flex: 1 1 220px;
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.4;
}
.amos-cookie__text a { color: #cbd5e1; }
.amos-cookie__link,
.amos-cookie__accept {
  border: 0;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.amos-cookie__link { background: transparent; color: #e2e8f0; border: 1px solid #64748b; }
.amos-cookie__accept { background: #fff; color: #0f2744; }

/* PVC-parity legal modals (pastorvideocreator-shell) */
body.lw-legal-modal-open { overflow: hidden; }
.lw-legal-modal-root[hidden] { display: none !important; }
.lw-legal-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  box-sizing: border-box;
}
.lw-legal-modal[hidden] { display: none !important; }
.lw-legal-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 42, 54, 0.45);
  animation: lwLegalFade 0.2s ease;
  cursor: pointer;
}
.lw-legal-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 720px;
  height: auto;
  max-height: min(85dvh, calc(100dvh - 48px));
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background: #ffffff;
  border: 1px solid rgba(42, 95, 134, 0.14);
  border-radius: 16px;
  padding: 1.5rem 1.35rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 18px 50px rgba(28, 42, 54, 0.08);
  animation: lwLegalSheet 0.3s ease;
  transform: translateY(0);
  margin: 0;
}
@media (min-width: 720px) {
  .lw-legal-modal__dialog {
    padding: 1.75rem 1.75rem calc(1.75rem + env(safe-area-inset-bottom, 0px));
  }
}
.lw-legal-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.85rem;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 999px;
  background: #e7f1f9;
  color: #1c2a36;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.lw-legal-modal__close:hover {
  background: rgba(220, 53, 69, 0.2);
  color: #9b3b3b;
}
.lw-legal-modal__title {
  margin: 0 2.5rem 1rem 0;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: #1c2a36;
}
.lw-legal-modal__body {
  color: #4a5d6c;
  font-size: 0.95rem;
}
.lw-legal-modal__body h3 {
  color: #1c2a36;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 1rem;
  margin: 1.25rem 0 0.5rem;
}
.lw-legal-modal__body p { margin: 0 0 0.85rem; }
.lw-legal-modal__body ul { padding-left: 1.2rem; margin: 0 0 0.85rem; }
.lw-legal-modal__body li { margin: 0.35rem 0; }
.lw-legal-modal__body a { color: #2a5f86; }
.lw-legal-modal__body a:hover { color: #234d6d; }
.lw-legal-contact-intro { margin: 0 0 1rem; }
@keyframes lwLegalFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes lwLegalSheet {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .lw-legal-modal__backdrop,
  .lw-legal-modal__dialog { animation: none; }
}

