/* Internet visibility — marketing landing */

:root {
  --bg: #fbf8f3;
  --bg-alt: #f4efe6;
  --surface: #ffffff;
  --ink: #14243a;
  --ink-soft: #3f4f63;
  --muted: #6b7686;
  --line: #e8e1d5;

  --brand: #1b3a5c;
  --brand-hover: #244b75;
  --accent: #e9b13f;
  --accent-soft: #fdf3dc;
  --green: #2f9e6b;
  --green-soft: #e4f4ec;

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --font-sans: 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Fraunces', Georgia, serif;

  --shadow-sm: 0 1px 2px rgba(20, 36, 58, 0.06);
  --shadow-card: 0 1px 2px rgba(20, 36, 58, 0.05), 0 18px 40px -18px rgba(20, 36, 58, 0.22);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink-soft);
  line-height: 1.6;
  font-size: 17px;
  min-height: 100vh;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* .btn sets display:inline-flex — must beat UA [hidden] */
[hidden],
.btn[hidden],
.guide-stage[hidden],
.status-banner[hidden] {
  display: none !important;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 248, 243, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-right: auto;
}

.brand-logo {
  width: 36px;
  height: 36px;
}

.brand-name {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--ink);
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-family: inherit;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-sm {
  padding: 9px 16px;
  font-size: 0.92rem;
}

.btn-lg {
  padding: 15px 28px;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--accent);
  color: var(--ink);
  box-shadow: 0 6px 16px -6px rgba(233, 177, 63, 0.7);
}

.btn-primary:hover {
  background: #f0bd52;
  transform: translateY(-1px);
}

.btn-dark {
  background: var(--brand);
  color: #fff;
}

.btn-dark:hover {
  background: var(--brand-hover);
}

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: #cfc6b6;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Hero */
.hero {
  padding: 72px 0 88px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 920px) {
  .hero {
    padding: 40px 0 64px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand);
  background: var(--accent-soft);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.15rem;
  max-width: 34em;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-checks {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 28px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.hero-checks li,
.plan-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.hero-checks li::before,
.plan-list li::before {
  content: '';
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 0.2em;
  border-radius: 50%;
  background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.3l2.5 2.5L13 6.3' fill='none' stroke='%232f9e6b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}

/* Guide card */
.guide-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  width: 100%;
  max-width: 480px;
  justify-self: end;
}

@media (max-width: 920px) {
  .guide-card {
    justify-self: stretch;
    max-width: none;
  }
}

.presenter-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 300px;
}

@media (max-width: 480px) {
  .presenter-body {
    padding: 20px;
  }
}

.turnstile-mount {
  display: flex;
  justify-content: center;
}

.presenter-body.guide-ready .turnstile-mount,
.presenter-body.guide-active .turnstile-mount {
  display: none;
}

.status-banner {
  margin: auto 0;
  text-align: center;
  font-size: 0.95rem;
  color: var(--muted);
}

.guide-stage {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.guide-intro {
  display: flex;
  align-items: center;
  gap: 18px;
}

.guide-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

.guide-sub {
  margin-top: 4px;
  font-size: 0.98rem;
}

.mode-line {
  margin-top: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green);
  min-height: 1.3em;
}

.indicator-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #c9c2b5;
  flex: none;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.indicator-dot.active {
  background: var(--green);
  box-shadow: 0 0 0 4px var(--green-soft);
}

.indicator-dot.connecting {
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

/* Ada */
.muppet-wrap {
  --mouth: 0.12;
  flex: none;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: var(--accent-soft);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.muppet {
  width: 100px;
  height: auto;
  display: block;
  margin-bottom: -6px;
}

.muppet .mouth,
.muppet .mouth-inner {
  transform-box: fill-box;
  transform-origin: center;
  transform: scaleY(calc(0.28 + var(--mouth) * 1.7));
}

.muppet .lid {
  transform-box: fill-box;
  transform-origin: center top;
  transform: scaleY(0.08);
  animation: muppet-blink 5.2s infinite;
}

.muppet-wrap.is-speaking .muppet {
  animation: muppet-bob 0.42s ease-in-out infinite;
}

.muppet-wrap.is-listening {
  box-shadow: 0 0 0 4px var(--green-soft);
}

@keyframes muppet-blink {
  0%, 90%, 100% { transform: scaleY(0.08); }
  94%, 97% { transform: scaleY(1); }
}

@keyframes muppet-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(2px); }
}

/* Conversation */
.transcript {
  display: none;
  flex-direction: column;
  gap: 10px;
  max-height: 260px;
  min-height: 80px;
  overflow-y: auto;
  padding: 4px 2px;
  scroll-behavior: smooth;
}

.presenter-body.guide-active .transcript {
  display: flex;
}

.transcript-row {
  display: flex;
  flex-direction: column;
  max-width: 88%;
}

.transcript-user {
  align-self: flex-end;
}

.transcript-agent {
  align-self: flex-start;
}

.transcript-label {
  display: none;
}

.transcript-text {
  font-size: 0.95rem;
  line-height: 1.5;
  padding: 10px 14px;
  border-radius: 16px;
}

.transcript-agent .transcript-text {
  background: var(--bg-alt);
  color: var(--ink);
  border-bottom-left-radius: 4px;
}

.transcript-user .transcript-text {
  background: var(--brand);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.guide-actions {
  display: flex;
  gap: 10px;
}

.guide-actions .btn {
  flex: 1;
}

.btn-talk {
  padding: 15px 22px;
  font-size: 1.05rem;
}

.composer {
  display: flex;
  gap: 8px;
}

.composer-input {
  flex: 1;
  min-width: 0;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.98rem;
}

.composer-input::placeholder {
  color: var(--muted);
}

.composer-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(27, 58, 92, 0.12);
}

.composer-input:disabled {
  opacity: 0.6;
}

.prompt-suggestions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.prompt-label {
  font-size: 0.85rem;
  color: var(--muted);
}

.prompt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.prompt-chip {
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.prompt-chip:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.retry-btn {
  align-self: center;
}

.fallback-box {
  display: none;
  text-align: center;
  margin: auto 0;
}

.fallback-box.visible {
  display: block;
}

.fallback-box h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--ink);
  margin-bottom: 6px;
}

.fallback-box p {
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.fallback-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.intake-draft-panel {
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--bg);
  border: 1px solid var(--line);
}

.intake-draft-title {
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: 8px;
}

.intake-draft-list {
  list-style: none;
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.intake-draft-list li {
  margin-bottom: 4px;
}

.intake-draft-list strong {
  color: var(--ink);
  margin-right: 6px;
}

/* Sections */
.section {
  padding: 88px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  text-align: center;
  letter-spacing: -0.01em;
}

.section-sub {
  text-align: center;
  font-size: 1.1rem;
  margin-top: 10px;
}

/* Steps */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

@media (max-width: 820px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  margin-bottom: 16px;
}

.step h3 {
  font-size: 1.2rem;
  color: var(--ink);
  margin-bottom: 8px;
}

/* Pricing */
.pricing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
  align-items: start;
}

@media (max-width: 820px) {
  .pricing {
    grid-template-columns: 1fr;
  }
}

.plan {
  background: var(--surface);
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-card);
}

.plan-name {
  font-size: 1.1rem;
  color: var(--ink);
}

.plan-price {
  margin: 6px 0 24px;
  color: var(--muted);
}

.plan-price span {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  margin-right: 4px;
}

.plan-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.fine-print {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 12px;
}

.plan .fine-print {
  text-align: center;
}

.addons {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.addon {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px 26px;
}

.addon-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}

.addon h3 {
  font-size: 1.1rem;
  color: var(--ink);
}

.addon-price {
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

.addon .fine-print {
  margin-top: 8px;
}

/* Closing CTA */
.cta {
  background: var(--brand);
}

.cta .section-title {
  color: #fff;
}

.cta .section-sub {
  color: rgba(255, 255, 255, 0.75);
}

.cta-inner .hero-actions {
  justify-content: center;
  margin-top: 28px;
}

.cta .btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.cta .btn-ghost:hover {
  border-color: #fff;
}

/* Footer */
.site-footer {
  padding: 28px 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-inner nav {
  display: flex;
  gap: 20px;
}

.footer-inner a {
  color: var(--muted);
  text-decoration: none;
}

.footer-inner a:hover {
  color: var(--ink);
}
