:root {
  --bg: #f8f4ec;
  --bg-strong: #efe7d8;
  --surface: #fffdf8;
  --surface-muted: #f4efe6;
  --ink: #18201d;
  --muted: #5d675f;
  --subtle: #7e887f;
  --border: #ded5c5;
  --border-strong: #c8bda9;
  --accent: #174f55;
  --accent-strong: #0f3d43;
  --accent-soft: #dcefee;
  --gold: #b7791f;
  --gold-soft: #fff1cf;
  --danger: #a33a32;
  --danger-soft: #f8dfdb;
  --success: #2c7a4b;
  --success-soft: #dff2e7;
  --shadow: 0 24px 80px rgba(24, 32, 29, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family:
    "DejaVu Sans", "Liberation Sans", Arial, "Helvetica Neue", Helvetica, "Segoe UI", system-ui,
    -apple-system, sans-serif;
  line-height: 1.55;
}

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

a {
  color: inherit;
}

button,
input,
select,
textarea {
  border: 0;
}

img,
svg {
  max-width: 100%;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  transform: translateY(-180%);
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--surface);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 10;
  padding: 14px 16px 0;
}

.nav-shell {
  display: flex;
  width: min(100%, 1060px);
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 auto;
  padding: 8px;
  border: 1px solid rgba(222, 213, 197, 0.9);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.9);
  box-shadow: 0 12px 40px rgba(24, 32, 29, 0.1);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.header-cta {
  display: inline-flex;
  align-items: center;
}

.brand {
  gap: 10px;
  min-width: 0;
  padding-left: 8px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  letter-spacing: 0;
}

.nav-links {
  gap: 4px;
}

.nav-links a,
.header-cta {
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

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

.header-cta {
  background: var(--ink);
  color: #fff;
}

.hero {
  position: relative;
  min-height: 640px;
  display: grid;
  align-items: center;
  padding: 96px 0 56px;
  isolation: isolate;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -3;
  content: "";
  background:
    linear-gradient(180deg, rgba(248, 244, 236, 0.08), var(--bg) 88%),
    radial-gradient(circle at 50% 20%, rgba(255, 253, 248, 0.82), rgba(248, 244, 236, 0.62) 44%, rgba(239, 231, 216, 0.94));
}

.hero-scene {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.hero-scene::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(rgba(23, 79, 85, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 79, 85, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 70%, transparent 100%);
}

.scene-document {
  position: absolute;
  display: grid;
  gap: 10px;
  width: 290px;
  min-height: 180px;
  padding: 18px;
  border: 1px solid rgba(200, 189, 169, 0.9);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.76);
  box-shadow: var(--shadow);
}

.scene-document-a {
  top: 118px;
  left: max(20px, calc(50% - 610px));
  rotate: -7deg;
}

.scene-document-b {
  right: max(18px, calc(50% - 620px));
  top: 148px;
  rotate: 6deg;
}

.scene-document-c {
  display: none;
  right: max(60px, calc(50% - 520px));
  bottom: 116px;
  rotate: -3deg;
  min-height: 154px;
}

.doc-kicker {
  color: var(--subtle);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.doc-line,
.doc-row {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: rgba(23, 79, 85, 0.14);
}

.doc-line.wide {
  width: 100%;
}

.doc-line {
  width: 82%;
}

.doc-line.short {
  width: 54%;
  background: rgba(183, 121, 31, 0.22);
}

.doc-row {
  display: grid;
  grid-template-columns: 1fr 76px;
  gap: 12px;
  height: auto;
  background: transparent;
}

.doc-row i,
.doc-row b {
  display: block;
  height: 14px;
  border-radius: 999px;
  background: rgba(23, 79, 85, 0.14);
}

.doc-row.warning b {
  background: rgba(183, 121, 31, 0.3);
}

.scene-document strong {
  font-size: 18px;
  line-height: 1.25;
}

.scene-document small {
  color: var(--muted);
}

.hero-content {
  display: grid;
  justify-items: center;
  text-align: center;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 930px;
  margin-bottom: 20px;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-copy {
  max-width: 760px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  text-wrap: pretty;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 16px 36px rgba(23, 79, 85, 0.18);
}

.button-primary:hover {
  background: var(--accent-strong);
}

.button-secondary {
  border: 1px solid var(--border-strong);
  background: rgba(255, 253, 248, 0.84);
  color: var(--ink);
}

.hero-note {
  max-width: 660px;
  color: var(--muted);
  font-size: 14px;
}

section {
  padding: 64px 0;
}

.preview-section {
  padding-top: 32px;
}

.section-heading {
  max-width: 780px;
  margin: 0 auto 28px;
  text-align: center;
}

.section-heading.narrow {
  max-width: 660px;
}

.section-heading h2,
.split-layout h2,
.trust-panel h2,
.lead-copy h2,
.final-cta h2,
.legal-shell h1 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.05;
  letter-spacing: 0;
  text-wrap: balance;
}

.section-heading p,
.split-layout p,
.trust-panel p,
.lead-copy p,
.final-cta p {
  color: var(--muted);
  text-wrap: pretty;
}

.preview-shell {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.preview-toolbar {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-muted);
}

.preview-tab {
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
}

.preview-tab.is-active {
  background: var(--accent);
  color: #fff;
}

.preview-stage {
  position: relative;
  min-height: 430px;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(220, 239, 238, 0.65), rgba(255, 253, 248, 0) 44%),
    var(--surface);
}

.preview-card {
  display: none;
  min-height: 382px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.96);
}

.preview-card.is-active {
  display: grid;
  align-content: start;
  gap: 22px;
}

.report-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
}

.report-header h3 {
  max-width: 650px;
  margin: 10px 0 0;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.08;
  text-wrap: balance;
}

.status-pill,
.report-score {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.status-pill {
  padding: 7px 11px;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.status-warning {
  background: var(--gold-soft);
  color: #7c4c0f;
}

.status-success {
  background: var(--success-soft);
  color: var(--success);
}

.report-score {
  flex: 0 0 auto;
  padding: 10px 14px;
  background: var(--surface-muted);
  color: var(--ink);
}

.report-score.warning {
  background: var(--danger-soft);
  color: var(--danger);
}

.report-score.success {
  background: var(--success-soft);
  color: var(--success);
}

.document-list {
  display: grid;
  gap: 12px;
}

.document-list div {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.document-list span {
  flex: 0 0 auto;
  min-width: 52px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.report-note {
  max-width: 620px;
  color: var(--muted);
}

.finding {
  display: grid;
  gap: 16px;
}

.finding p {
  max-width: 760px;
  font-size: 19px;
}

blockquote {
  margin: 0;
  padding: 18px 20px;
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  background: var(--gold-soft);
  color: #5c3d14;
}

cite {
  display: block;
  margin-top: 10px;
  color: #7c4c0f;
  font-size: 14px;
  font-style: normal;
  font-weight: 800;
}

.action-list {
  display: grid;
  gap: 12px;
  max-width: 780px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.action-list li {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.report-chat-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 16px;
}

.download-panel,
.chat-panel {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.download-panel p {
  margin-bottom: 0;
  color: var(--muted);
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.download-actions span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 800;
}

.chat-message {
  max-width: 95%;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.45;
}

.user-message {
  justify-self: end;
  background: var(--accent);
  color: #fff;
}

.answer-message {
  justify-self: start;
  background: var(--surface-muted);
  color: var(--ink);
}

.problem-section,
.benefits-section,
.faq-section {
  background: var(--surface-muted);
}

.split-layout,
.lead-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 32px;
  align-items: start;
}

.problem-list,
.benefit-grid,
.steps-grid,
.trust-checks,
.faq-list {
  display: grid;
  gap: 16px;
}

.problem-item,
.benefit-grid article,
.steps-grid article,
.trust-checks div,
.lead-form,
.contact-card,
.faq-list details,
.final-cta {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.problem-item,
.benefit-grid article,
.steps-grid article,
.trust-checks div {
  padding: 20px;
}

.problem-item {
  display: grid;
  gap: 8px;
}

.problem-item strong,
.benefit-grid h3,
.steps-grid h3,
.trust-checks strong {
  color: var(--ink);
}

.problem-item span,
.benefit-grid p,
.steps-grid p,
.trust-checks span {
  color: var(--muted);
}

.steps-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}

.steps-grid article {
  display: grid;
  align-content: start;
  gap: 10px;
}

.steps-grid h3,
.steps-grid p {
  margin-bottom: 0;
}

.step-number {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  margin-bottom: 8px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
}

.benefit-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.trust-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 32px;
  align-items: start;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.trust-checks div {
  display: grid;
  gap: 6px;
  background: var(--surface-muted);
}

.lead-section {
  background:
    linear-gradient(180deg, var(--bg), rgba(220, 239, 238, 0.45)),
    var(--bg);
}

.lead-copy {
  position: sticky;
  top: 118px;
}

.contact-card {
  display: grid;
  gap: 8px;
  margin-top: 24px;
  padding: 20px;
  color: var(--muted);
}

.contact-card strong {
  color: var(--ink);
}

.lead-form {
  display: grid;
  gap: 16px;
  padding: 24px;
}

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

label {
  display: grid;
  gap: 8px;
  min-width: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 500;
  outline: none;
}

input,
select {
  min-height: 48px;
  padding: 0 14px;
}

textarea {
  resize: vertical;
  min-height: 134px;
  padding: 13px 14px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(23, 79, 85, 0.12);
}

.field-error {
  min-height: 18px;
  color: var(--danger);
  font-size: 13px;
  font-weight: 700;
}

.hidden-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.consent-row {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  color: var(--muted);
  font-weight: 500;
}

.consent-row input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin-top: 3px;
  accent-color: var(--accent);
}

.consent-row a {
  color: var(--accent);
  font-weight: 800;
}

.form-submit {
  width: 100%;
  cursor: pointer;
}

.form-submit[disabled] {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.form-status,
.noscript-note {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.form-status.success {
  color: var(--success);
}

.form-status.error {
  color: var(--danger);
}

.form-status a {
  color: var(--accent);
}

.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 30;
  display: grid;
  width: min(1060px, calc(100% - 32px));
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: var(--shadow);
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.cookie-copy strong {
  font-size: 16px;
}

.cookie-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.cookie-copy a {
  color: var(--accent);
  font-weight: 800;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.cookie-button {
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.footer-link-button,
.inline-cookie-settings {
  width: fit-content;
  padding: 0;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.inline-cookie-settings {
  margin-top: 4px;
}

.faq-list {
  max-width: 820px;
  margin: 0 auto;
}

.faq-list details {
  padding: 18px 20px;
}

.faq-list summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 800;
}

.faq-list p {
  margin: 12px 0 0;
  color: var(--muted);
}

.final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
}

.final-cta p {
  margin-bottom: 0;
}

.site-footer {
  padding: 28px 0 36px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
}

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

.legal-page {
  background: var(--bg);
}

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

.legal-shell h1 {
  margin-top: 20px;
}

.legal-shell h2 {
  margin: 28px 0 8px;
  font-size: 22px;
}

.legal-shell p {
  color: var(--muted);
}

.legal-back {
  color: var(--accent);
  font-weight: 800;
}

@media (max-width: 960px) {
  .hero {
    min-height: auto;
    padding-top: 88px;
  }

  .scene-document {
    opacity: 0.42;
  }

  .scene-document-a {
    left: -88px;
  }

  .scene-document-b {
    right: -92px;
  }

  .scene-document-c {
    right: 18px;
    bottom: 30px;
  }

  .split-layout,
  .lead-layout,
  .trust-panel {
    grid-template-columns: 1fr;
  }

  .lead-copy {
    position: static;
  }

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

@media (max-width: 720px) {
  .container {
    width: min(100% - 24px, 1120px);
  }

  .site-header {
    top: 8px;
    padding: 8px 8px 0;
  }

  .nav-shell {
    border-radius: 24px;
  }

  .nav-links {
    display: none;
  }

  .brand {
    font-size: 14px;
  }

  .header-cta {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 13px;
  }

  h1 {
    font-size: clamp(34px, 11vw, 44px);
  }

  section {
    padding: 48px 0;
  }

  .hero {
    padding-bottom: 40px;
  }

  .preview-section {
    padding-top: 32px;
  }

  .hero-copy {
    font-size: 17px;
  }

  .button {
    width: 100%;
    padding-inline: 16px;
  }

  .cta-row {
    width: 100%;
  }

  .scene-document {
    display: none;
  }

  .preview-toolbar {
    overflow-x: auto;
  }

  .preview-stage {
    min-height: 520px;
    padding: 14px;
  }

  .preview-card {
    min-height: 488px;
    padding: 18px;
  }

  .report-header {
    display: grid;
  }

  .report-score {
    justify-self: start;
  }

  .report-chat-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid,
  .benefit-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .trust-panel,
  .lead-form,
  .final-cta {
    padding: 20px;
  }

  .final-cta {
    display: grid;
  }

  .cookie-banner {
    bottom: 12px;
    max-height: calc(100vh - 24px);
    grid-template-columns: 1fr;
    gap: 14px;
    overflow: auto;
    padding: 14px;
  }

  .cookie-actions {
    display: grid;
    justify-content: stretch;
  }
}
