@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700&family=Sora:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #f4efe6;
  --ink: #1f2328;
  --muted: #686f77;
  --card: rgba(255, 252, 247, 0.86);
  --line: rgba(31, 35, 40, 0.12);
  --accent: #c8553d;
  --accent-dark: #9d3f2d;
  --accent-soft: rgba(200, 85, 61, 0.14);
  --ok: #1d7a4e;
  --warn: #b86a0f;
  --hero-ink: #f7f1e8;
  --hero-muted: rgba(247, 241, 232, 0.72);
  --hero-panel: rgba(12, 18, 22, 0.74);
  --hero-line: rgba(247, 241, 232, 0.12);
  --hero-glow: rgba(255, 142, 81, 0.3);
  font-family: "Sora", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(200, 85, 61, 0.18), transparent 32%),
    radial-gradient(circle at bottom right, rgba(84, 117, 122, 0.15), transparent 28%),
    linear-gradient(180deg, #f7f2ea 0%, #efe7db 100%);
  color: var(--ink);
}

.page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.home-page {
  max-width: 1180px;
}

.home-page::before {
  content: "";
  position: fixed;
  inset: -10% auto auto -12%;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(200, 85, 61, 0.18), transparent 70%);
  pointer-events: none;
  filter: blur(12px);
}

.home-page::after {
  content: "";
  position: fixed;
  inset: auto -8% 6% auto;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(32, 86, 82, 0.15), transparent 72%);
  pointer-events: none;
  filter: blur(14px);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.home-topbar {
  position: sticky;
  top: 16px;
  z-index: 5;
  padding: 14px 18px;
  border: 1px solid rgba(31, 35, 40, 0.08);
  border-radius: 20px;
  background: rgba(255, 250, 244, 0.76);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 36px rgba(31, 35, 40, 0.08);
}

.brand-lockup {
  display: grid;
  gap: 4px;
}

.topbar-copy {
  margin: 0;
  color: var(--muted);
}

.home-nav {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

.home-nav .text-link {
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(200, 85, 61, 0.08);
  box-shadow: inset 0 0 0 1px rgba(200, 85, 61, 0.08);
}

.home-nav .text-link:hover {
  background: rgba(200, 85, 61, 0.14);
}

.cta-link,
.text-link,
.ghost-link,
.secondary-cta {
  text-decoration: none;
}

.cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(200, 85, 61, 0.22);
}

.secondary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid rgba(31, 35, 40, 0.12);
  background: rgba(255, 250, 244, 0.72);
  color: var(--ink);
  font-weight: 700;
}

.secondary-cta:hover {
  background: rgba(255, 246, 239, 0.96);
}

.cta-link:hover {
  background: var(--accent-dark);
}

.text-link,
.ghost-link {
  color: var(--accent-dark);
  font-weight: 700;
}

.ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid rgba(247, 241, 232, 0.18);
  color: var(--hero-ink);
  background: rgba(255, 255, 255, 0.06);
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: start;
}

.home-hero {
  position: relative;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  padding: 34px;
  border: 1px solid rgba(31, 35, 40, 0.08);
  border-radius: 34px;
  background:
    radial-gradient(circle at top right, rgba(255, 142, 81, 0.24), transparent 22%),
    linear-gradient(135deg, #151c21 0%, #20333a 48%, #7b422f 100%);
  color: var(--hero-ink);
  box-shadow: 0 28px 80px rgba(31, 35, 40, 0.18);
  overflow: hidden;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.16;
  pointer-events: none;
}

.hero-copy,
.hero-stage {
  position: relative;
  z-index: 1;
}

.hero-copy {
  display: grid;
  align-content: start;
  gap: 0;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  margin-bottom: 18px;
  border: 1px solid rgba(247, 241, 232, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--hero-ink);
  font-size: 0.88rem;
  font-weight: 600;
}

.hero-tag::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #ffb27e;
  box-shadow: 0 0 16px rgba(255, 178, 126, 0.85);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-dark);
  font-size: 0.82rem;
  margin: 0 0 12px;
}

.home-page .eyebrow,
.home-page h1,
.home-page h2 {
  position: relative;
  z-index: 1;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
}

.home-hero h1 {
  max-width: 12ch;
  font-size: clamp(2.8rem, 7vw, 5.6rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: var(--hero-ink);
}

.hero-lead {
  max-width: 56ch;
  color: var(--hero-muted);
  font-size: 1.08rem;
}

.lead {
  max-width: 60ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions {
  margin-top: 26px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.metric-card {
  padding: 16px;
  border: 1px solid var(--hero-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.metric-value {
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1;
  color: #fff6ef;
}

.metric-label {
  margin-top: 8px;
  color: var(--hero-muted);
  font-size: 0.92rem;
}

.hero-stage {
  position: relative;
  min-height: 540px;
  padding: 8px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stage-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(26px);
  pointer-events: none;
}

.stage-glow-one {
  width: 180px;
  height: 180px;
  top: 8%;
  right: 10%;
  background: var(--hero-glow);
}

.stage-glow-two {
  width: 160px;
  height: 160px;
  bottom: 12%;
  left: 4%;
  background: rgba(99, 161, 154, 0.26);
}

.stage-panel {
  position: relative;
  border: 1px solid var(--hero-line);
  border-radius: 24px;
  background: var(--hero-panel);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.stage-chat {
  max-width: 420px;
  padding: 20px;
}

.stage-route {
  width: 78%;
  margin-left: auto;
  padding: 18px 20px;
}

.stage-owner {
  width: 72%;
  padding: 18px 20px;
}

.stage-head {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.stage-pill {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--hero-muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stage-headline {
  color: var(--hero-ink);
  font-weight: 700;
}

.bubble {
  padding: 14px 16px;
  border-radius: 18px;
  font-size: 0.95rem;
  line-height: 1.45;
}

.bubble + .bubble {
  margin-top: 10px;
}

.bubble-in {
  max-width: 86%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--hero-ink);
}

.bubble-out {
  max-width: 90%;
  margin-left: auto;
  background: rgba(255, 142, 81, 0.18);
  color: #fff6ef;
}

.bubble-system {
  background: rgba(99, 161, 154, 0.14);
  color: var(--hero-muted);
}

.route-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.route-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hero-line);
}

.route-list li:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.route-list span {
  color: var(--hero-muted);
}

.route-list strong {
  color: var(--hero-ink);
  text-align: right;
}

.owner-note {
  margin: 0;
  color: var(--hero-muted);
  line-height: 1.5;
}

.hero-stage-art {
  display: block;
  width: min(100%, 560px);
  margin: 0 auto;
  border-radius: 28px;
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.24);
}

.floating-note {
  position: absolute;
  max-width: 220px;
  padding: 16px 18px;
  border: 1px solid var(--hero-line);
  border-radius: 22px;
  background: rgba(15, 23, 28, 0.74);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
  color: var(--hero-ink);
}

.floating-note strong {
  display: block;
  margin-top: 10px;
  line-height: 1.4;
}

.floating-note-main {
  top: 6%;
  left: -2%;
}

.floating-note-side {
  right: 0;
  bottom: 9%;
}

.home-band {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.band-item {
  padding: 14px 12px;
  border: 1px solid rgba(31, 35, 40, 0.08);
  border-radius: 16px;
  background: rgba(255, 249, 242, 0.68);
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
  box-shadow: 0 10px 28px rgba(31, 35, 40, 0.06);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.home-proof {
  margin-top: 34px;
}

.story-shell {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 18px;
}

.story-copy,
.story-preview {
  padding: 24px;
}

.story-copy {
  display: grid;
  align-content: start;
}

.plain-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.plain-list li {
  position: relative;
  padding-left: 18px;
  color: var(--ink);
  line-height: 1.5;
}

.plain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(200, 85, 61, 0.12);
}

.strong-list li {
  font-weight: 600;
}

.story-preview {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(200, 85, 61, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(255, 253, 249, 0.94) 0%, rgba(249, 242, 233, 0.9) 100%);
}

.story-preview::after {
  content: "";
  position: absolute;
  inset: auto -6% -12% auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(84, 117, 122, 0.16), transparent 70%);
  filter: blur(8px);
  pointer-events: none;
}

.story-messages {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
}

.story-bubble {
  max-width: 84%;
  padding: 14px 16px;
  border-radius: 20px;
  line-height: 1.52;
  box-shadow: 0 14px 28px rgba(31, 35, 40, 0.08);
}

.story-bubble-user {
  margin-left: auto;
  background: linear-gradient(180deg, rgba(200, 85, 61, 0.18) 0%, rgba(255, 248, 242, 0.92) 100%);
}

.story-bubble-ai {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(31, 35, 40, 0.08);
}

.story-bubble-owner {
  max-width: 78%;
  background: rgba(32, 86, 82, 0.12);
  color: #204f4c;
  border: 1px solid rgba(32, 86, 82, 0.12);
}

.card,
.result-card,
.table-wrap {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 40px rgba(31, 35, 40, 0.08);
}

.form-card {
  padding: 18px;
}

.escalation-panel,
.report-panel {
  margin-top: 18px;
  padding: 18px;
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  font-weight: 600;
}

input,
textarea,
button {
  border-radius: 12px;
  border: 1px solid var(--line);
  font: inherit;
}

input,
textarea {
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.74);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

button {
  padding: 13px 16px;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: 700;
}

button:hover {
  background: var(--accent-dark);
}

button.cta-link,
button.secondary-cta,
button.ghost-link {
  padding: 0 18px;
  border: none;
}

button.secondary-cta {
  border: 1px solid rgba(31, 35, 40, 0.12);
  background: rgba(255, 250, 244, 0.72);
  color: var(--ink);
}

button.secondary-cta:hover {
  background: rgba(255, 246, 239, 0.96);
}

button.ghost-link {
  border: 1px solid rgba(247, 241, 232, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: var(--hero-ink);
}

.hint,
.status,
.chip {
  color: var(--muted);
  font-size: 0.92rem;
}

.results {
  margin-top: 34px;
}

.home-grid,
.result-grid {
  display: grid;
  gap: 14px;
}

.feature-grid {
  grid-template-columns: 1.15fr 0.85fr 0.85fr;
}

.feature-card-wide {
  grid-row: span 2;
  min-height: 320px;
}

.compare-grid,
.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.process-grid,
.pricing-grid,
.three-col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.actions-line {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.export-link {
  color: var(--accent-dark);
  text-decoration: none;
  font-weight: 600;
}

.status {
  margin-bottom: 12px;
}

.hidden {
  display: none !important;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 14px;
}

.detail-text {
  margin: 0;
  max-width: 100%;
}

.feature-card,
.compare-card,
.process-card,
.price-card,
.final-cta {
  padding: 22px;
}

.feature-card-visual {
  overflow: hidden;
  display: grid;
  align-content: start;
}

.feature-art {
  display: block;
  width: calc(100% + 12px);
  max-width: none;
  margin: 18px -6px -6px;
  border-radius: 24px;
}

.feature-card h3,
.compare-card h3,
.process-card h3,
.price-card h3,
.final-cta h2 {
  margin-bottom: 10px;
}

.compare-before {
  background: rgba(255, 252, 247, 0.78);
}

.compare-after {
  background: linear-gradient(180deg, rgba(200, 85, 61, 0.08) 0%, rgba(255, 252, 247, 0.92) 100%);
}

.process-card {
  position: relative;
  overflow: hidden;
}

.process-index {
  margin-bottom: 18px;
  font-size: 2rem;
  line-height: 1;
  font-weight: 700;
  color: rgba(157, 63, 45, 0.3);
}

.compact {
  font-size: 0.98rem;
  max-width: none;
}

.price {
  margin: 12px 0 14px;
  font-size: 2.2rem;
  line-height: 1;
  font-weight: 700;
  color: var(--accent-dark);
}

.accent-card,
.price-card-featured {
  background: linear-gradient(180deg, rgba(200, 85, 61, 0.14) 0%, rgba(255, 252, 247, 0.96) 100%);
}

.pricing-note {
  margin-top: 12px;
}

.final-cta {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 20px;
  align-items: center;
}

.final-cta-copy {
  display: grid;
  gap: 14px;
}

.final-cta-art {
  display: block;
  width: 100%;
  border-radius: 26px;
}

.assistant-launcher {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid rgba(31, 35, 40, 0.1);
  background: rgba(17, 23, 28, 0.92);
  color: #fff;
  box-shadow: 0 18px 40px rgba(17, 23, 28, 0.24);
}

.assistant-launcher:hover {
  background: #171f25;
}

.assistant-launcher-label {
  font-weight: 700;
}

.assistant-launcher-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #ff9f69;
  box-shadow: 0 0 0 6px rgba(255, 159, 105, 0.18);
}

.assistant-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 22px;
}

.assistant-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 23, 28, 0.56);
  backdrop-filter: blur(10px);
}

.assistant-dialog {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: min(88vh, 940px);
  overflow-y: auto;
  display: grid;
  gap: 16px;
  padding: 24px;
  border-radius: 30px;
  border: 1px solid rgba(31, 35, 40, 0.08);
  background:
    radial-gradient(circle at top right, rgba(200, 85, 61, 0.16), transparent 24%),
    linear-gradient(180deg, rgba(255, 251, 246, 0.98) 0%, rgba(246, 239, 230, 0.97) 100%);
  box-shadow: 0 32px 80px rgba(17, 23, 28, 0.26);
}

.assistant-dialog-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.assistant-dialog-head h2 {
  font-size: 2rem;
}

.assistant-eyebrow {
  margin-bottom: 8px;
}

.assistant-close {
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 999px;
  font-size: 1.8rem;
  line-height: 1;
  background: rgba(31, 35, 40, 0.08);
  color: var(--ink);
}

.assistant-status {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(31, 35, 40, 0.08);
  color: var(--ink);
  line-height: 1.5;
}

.assistant-messages {
  min-height: 260px;
  max-height: 34vh;
  overflow-y: auto;
  padding: 6px 4px 6px 0;
  display: grid;
  gap: 12px;
}

.assistant-message {
  max-width: min(78%, 560px);
  padding: 14px 16px;
  border-radius: 20px;
  white-space: pre-wrap;
  line-height: 1.55;
}

.assistant-message-user {
  margin-left: auto;
  background: linear-gradient(180deg, rgba(200, 85, 61, 0.22) 0%, rgba(255, 247, 241, 0.96) 100%);
  box-shadow: 0 14px 30px rgba(200, 85, 61, 0.12);
}

.assistant-message-assistant {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(31, 35, 40, 0.08);
  box-shadow: 0 14px 30px rgba(31, 35, 40, 0.08);
}

.assistant-message-meta {
  display: block;
  margin-bottom: 8px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.assistant-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.prompt-chip {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(31, 35, 40, 0.08);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  font-weight: 600;
}

.prompt-chip:hover {
  background: rgba(255, 248, 242, 1);
}

.assistant-form {
  display: grid;
  gap: 14px;
}

.assistant-field {
  margin-bottom: 0;
}

.assistant-field span {
  font-size: 0.92rem;
  color: var(--ink);
}

.assistant-field-wide textarea {
  min-height: 132px;
}

.assistant-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.assistant-form-actions {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.assistant-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.modal-open {
  overflow: hidden;
}

.report-block + .report-block {
  margin-top: 14px;
}

.report-body {
  margin: 0;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  white-space: pre-wrap;
  word-break: break-word;
  font-family: "IBM Plex Mono", "SFMono-Regular", monospace;
  font-size: 0.9rem;
  line-height: 1.45;
}

.result-card {
  padding: 18px;
}

.result-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.score {
  min-width: 64px;
  text-align: center;
  border-radius: 999px;
  background: rgba(200, 85, 61, 0.12);
  color: var(--accent-dark);
  padding: 6px 10px;
  font-weight: 700;
  margin-bottom: 8px;
}

.secondary-button {
  background: rgba(31, 35, 40, 0.08);
  color: var(--ink);
}

.secondary-button:hover {
  background: rgba(31, 35, 40, 0.16);
}

.meta,
.contacts,
.pain-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.chip {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(31, 35, 40, 0.06);
}

.pain-list li {
  background: rgba(184, 106, 15, 0.09);
  color: var(--warn);
}

.pitch {
  margin-top: 14px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(29, 122, 78, 0.08);
  color: var(--ok);
}

table {
  width: 100%;
  border-collapse: collapse;
}

.table-wrap {
  overflow-x: auto;
}

th,
td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--muted);
  font-size: 0.92rem;
}

td a,
.final-cta a {
  color: var(--accent-dark);
}

@media (max-width: 1040px) {
  .home-hero,
  .story-shell,
  .feature-grid,
  .compare-grid,
  .process-grid,
  .pricing-grid,
  .three-col {
    grid-template-columns: 1fr;
  }

  .home-band {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-stage {
    min-height: auto;
  }

  .metric-card {
    min-height: 100%;
  }

  .final-cta {
    grid-template-columns: 1fr;
  }

  .assistant-dialog {
    width: min(100%, 780px);
  }
}

@media (max-width: 860px) {
  .hero,
  .detail-grid,
  .two-col {
    grid-template-columns: 1fr;
  }

  .page {
    width: min(100% - 14px, 1000px);
    padding: 18px 0 48px;
  }

  .result-head,
  .section-head,
  .topbar,
  .home-topbar {
    flex-direction: column;
    align-items: start;
  }

  .home-topbar {
    position: static;
    width: 100%;
    padding: 12px 14px;
    border-radius: 18px;
  }

  .topbar-actions {
    width: 100%;
  }

  .home-nav {
    width: 100%;
    gap: 10px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .home-nav::-webkit-scrollbar {
    display: none;
  }

  .home-nav .text-link {
    white-space: nowrap;
    flex: 0 0 auto;
    padding: 10px 14px;
  }

  .home-topbar .cta-link {
    width: 100%;
  }

  .topbar-actions .secondary-cta,
  .topbar-actions .cta-link {
    width: 100%;
  }

  .home-hero {
    gap: 18px;
    padding: 20px;
    border-radius: 24px;
  }

  .home-hero h1 {
    max-width: none;
    font-size: clamp(2.25rem, 13vw, 3.5rem);
    line-height: 0.94;
  }

  .hero-lead {
    font-size: 1rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions .cta-link,
  .hero-actions .ghost-link {
    width: 100%;
  }

  .hero-stage {
    min-height: auto;
    padding-top: 4px;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .metric-card {
    padding: 14px;
  }

  .home-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-stage-art {
    width: 100%;
    border-radius: 22px;
  }

  .floating-note {
    position: static;
    max-width: none;
    margin-top: 12px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(15, 23, 28, 0.82);
  }

  .feature-card,
  .compare-card,
  .process-card,
  .price-card,
  .final-cta {
    padding: 18px;
  }

  .story-copy,
  .story-preview {
    padding: 18px;
  }

  .section-head h2,
  .final-cta h2 {
    font-size: 1.65rem;
  }

  .price {
    font-size: 1.9rem;
  }

  .final-cta-art {
    order: -1;
  }

  .assistant-launcher {
    right: 12px;
    left: 12px;
    bottom: 12px;
    justify-content: center;
  }

  .assistant-modal {
    padding: 10px;
  }

  .assistant-dialog {
    max-height: calc(100vh - 20px);
    padding: 18px;
    border-radius: 24px;
  }

  .assistant-dialog-head {
    align-items: center;
  }

  .assistant-dialog-head h2 {
    font-size: 1.5rem;
  }

  .assistant-messages {
    min-height: 180px;
    max-height: 24vh;
  }

  .assistant-message {
    max-width: 100%;
  }

  .assistant-status {
    padding: 12px 14px;
    font-size: 0.96rem;
  }

  .assistant-field-wide textarea {
    min-height: 96px;
  }

  .assistant-contact-grid,
  .assistant-form-actions {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .assistant-form-actions .cta-link {
    width: 100%;
  }
}
