:root {
  --paper: #F0E8D6;
  --paper-light: #F8F3E9;
  --surface: #F5EBD8;
  --surface-high: #FFF7E8;
  --surface-low: #E1D1B7;
  --ink: #191D14;
  --muted: #4A5441;
  --line: #C8BAAA;
  --line-soft: #DCCFBA;
  --green: #526040;
  --green-dark: #252F1F;
  --sage: #E6DBCA;
  --amber: #9A7A32;
  --blue: #7D8B6C;
  --shadow: 0 18px 42px rgba(62, 49, 28, 0.13);
  font-family:
    Manrope, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(1100px 680px at 12% -10%, rgba(255, 250, 235, 0.78), transparent 58%),
    radial-gradient(900px 560px at 92% 8%, rgba(185, 164, 92, 0.12), transparent 54%),
    linear-gradient(180deg, var(--paper-light) 0%, var(--paper) 44%, #E9DDC9 100%);
}

a {
  color: inherit;
}

button,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(200, 186, 170, 0.7);
  background: rgba(248, 243, 233, 0.9);
  backdrop-filter: blur(16px);
}

.brand,
.brand-mark {
  color: var(--green-dark);
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: auto;
  color: var(--green-dark);
  font-size: 1.2rem;
  font-weight: 850;
  line-height: 1;
}

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

.brand span {
  display: block;
}

.site-slogan {
  justify-self: center;
  margin: 0;
  color: var(--green-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.01em;
}

.language-switch a {
  text-decoration: none;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 247, 232, 0.72);
}

.language-switch a {
  min-width: 38px;
  padding: 7px 10px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}

.language-switch a[aria-current="page"],
.language-switch a:hover {
  background: var(--green);
  color: #fff;
}

.hero {
  min-height: min(760px, calc(100svh - 90px));
  display: flex;
  align-items: center;
  padding: clamp(48px, 8vw, 92px) clamp(18px, 6vw, 80px) clamp(38px, 7vw, 74px);
}

.hero-background {
  position: relative;
  isolation: isolate;
  background-image:
    linear-gradient(
      90deg,
      rgba(246, 239, 223, 0.96) 0%,
      rgba(246, 239, 223, 0.88) 34%,
      rgba(246, 239, 223, 0.52) 66%,
      rgba(246, 239, 223, 0.14) 100%
    ),
    linear-gradient(180deg, rgba(32, 36, 33, 0.12), rgba(32, 36, 33, 0.1)),
    var(--hero-image);
  background-position: center;
  background-size: cover;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  max-width: 680px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 12ch;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(3rem, 8vw, 6.7rem);
  line-height: 1.01;
  letter-spacing: -0.03em;
}

.hero-lead {
  max-width: 650px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.34rem);
  line-height: 1.55;
}

.hero-actions,
.fallback {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

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

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 800;
  line-height: 1.15;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  background: var(--green);
  color: var(--paper);
  box-shadow: 0 12px 22px rgba(37, 47, 31, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.button.secondary {
  border-color: var(--line);
  background: rgba(255, 247, 232, 0.78);
  color: var(--green-dark);
}

.examples,
.guide-section,
.trust,
.fallback {
  padding: clamp(42px, 7vw, 78px) clamp(18px, 6vw, 80px);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

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

.example-card {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 247, 232, 0.72);
}

.icon-chip {
  width: 44px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: var(--sage);
  color: var(--green-dark);
  font-size: 0.8rem;
  font-weight: 900;
}

.example-card h3 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.16;
}

.example-card p,
.guide-copy p,
.fallback p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

.text-action {
  margin-top: auto;
  align-self: flex-start;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--blue);
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.guide-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
  background: #E6DBCA;
}

.guide-copy {
  max-width: 660px;
}

.guide-copy > p {
  margin-top: 18px;
  font-size: 1.06rem;
}

.suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.suggestions button {
  min-height: 40px;
  border: 1px solid rgba(49, 95, 79, 0.22);
  border-radius: 8px;
  padding: 9px 12px;
  background: rgba(255, 248, 234, 0.72);
  color: var(--green-dark);
  font-weight: 800;
  cursor: pointer;
}

.guide-panel {
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid rgba(201, 182, 154, 0.62);
  border-radius: 8px;
  background: rgba(255, 247, 232, 0.9);
  box-shadow: var(--shadow);
}

.message {
  border-left: 4px solid var(--amber);
  padding: 12px 14px;
  background: #FFF7E8;
}

.message strong {
  display: block;
  margin-bottom: 6px;
}

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

.guide-form {
  display: grid;
  gap: 10px;
}

.guide-form label {
  color: var(--green-dark);
  font-weight: 900;
}

textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  line-height: 1.45;
}

textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(73, 107, 130, 0.32);
  outline-offset: 2px;
}

.answer-output[data-empty="true"] {
  display: none;
}

.answer-output {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  color: var(--muted);
  line-height: 1.55;
}

.answer-output strong {
  color: var(--ink);
}

.answer-output p {
  margin: 0;
  white-space: pre-line;
}

.answer-output[aria-busy="true"] {
  opacity: 0.92;
}

.trust {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1.2fr);
  gap: 28px;
  align-items: start;
}

.trust ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trust li {
  min-height: 76px;
  display: flex;
  align-items: center;
  border-top: 3px solid var(--green);
  padding: 16px;
  background: rgba(255, 247, 232, 0.7);
  color: var(--green-dark);
  font-weight: 850;
}

.fallback {
  justify-content: space-between;
  border-top: 1px solid var(--line);
  background: #E1D1B7;
}

.fallback div {
  max-width: 690px;
}

.fallback h2 {
  margin-bottom: 12px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px clamp(18px, 6vw, 80px) 28px;
  border-top: 1px solid rgba(200, 186, 170, 0.68);
  background: rgba(248, 243, 233, 0.72);
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.site-footer a {
  color: var(--muted);
  font-weight: 800;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--green-dark);
}

.legal-shell {
  display: grid;
  gap: 24px;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(34px, 6vw, 68px) clamp(18px, 6vw, 80px) clamp(42px, 7vw, 78px);
}

.legal-hero {
  display: grid;
  gap: 14px;
  max-width: 760px;
}

.legal-hero p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.58;
}

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

.legal-card {
  display: grid;
  gap: 12px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 247, 232, 0.74);
}

.legal-card h2 {
  margin: 0;
  font-size: 1.28rem;
  line-height: 1.18;
}

.legal-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

.cookie-banner {
  position: fixed;
  right: clamp(12px, 3vw, 24px);
  bottom: clamp(12px, 3vw, 24px);
  left: clamp(12px, 3vw, 24px);
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(248, 243, 233, 0.96);
  box-shadow: 0 20px 44px rgba(62, 49, 28, 0.16);
}

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

.cookie-banner p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

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

.cookie-banner .button {
  min-height: 40px;
  padding: 10px 14px;
}

.route-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.route-shell {
  max-width: 640px;
  display: grid;
  gap: 18px;
}

.route-logo {
  width: auto;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--green-dark);
  font-size: clamp(1.5rem, 5vw, 2.25rem);
  font-weight: 850;
  line-height: 1;
}

.brand-lockup img {
  width: 64px;
  height: auto;
}

.route-shell h1 {
  max-width: 14ch;
}

.route-shell p:not(.brand-mark) {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

.audit-modal {
  width: min(1120px, calc(100vw - 28px));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  background: var(--paper-light);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.audit-modal::backdrop {
  background: rgba(25, 29, 20, 0.48);
  backdrop-filter: blur(4px);
}

.audit-modal-shell {
  display: grid;
  gap: 22px;
  padding: 22px;
}

.audit-modal-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.audit-modal-header h2 {
  max-width: 18ch;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.modal-close {
  min-width: 42px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 247, 232, 0.9);
  color: var(--green-dark);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.audit-modal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 18px;
}

.audit-chat,
.audit-contact {
  display: grid;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 247, 232, 0.86);
}

.audit-chat h3,
.audit-contact h3 {
  margin: 0;
  font-size: 1.25rem;
}

.modal-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

.modal-label {
  color: var(--green-dark);
  font-weight: 900;
}

.modal-answer {
  background: rgba(255, 255, 255, 0.45);
  border-top-color: var(--line-soft);
}

.contact-form {
  display: grid;
  gap: 10px;
}

.contact-form label {
  color: var(--green-dark);
  font-weight: 900;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.75);
  color: var(--ink);
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .site-slogan {
    grid-column: 1 / -1;
    justify-self: start;
    order: 3;
    font-size: 0.98rem;
  }

  .guide-section,
  .trust {
    grid-template-columns: 1fr;
  }

  .audit-modal {
    width: calc(100vw - 20px);
  }

  .audit-modal-grid {
    grid-template-columns: 1fr;
  }

  .legal-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: min(720px, calc(100svh - 76px));
    padding-top: 34px;
    padding-bottom: 30px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .example-card {
    min-height: 0;
  }
}

@media (max-width: 620px) {
  .site-header {
    gap: 12px;
    padding: 12px 14px;
  }

  .brand {
    gap: 8px;
    font-size: 1.05rem;
  }

  .brand img {
    width: 32px;
  }

  .language-switch {
    justify-self: end;
    gap: 4px;
    width: max-content;
    padding: 3px;
  }

  .language-switch a {
    min-width: 30px;
    padding: 6px 8px;
    font-size: 0.76rem;
  }

  .site-slogan {
    font-size: 0.9rem;
  }

  .hero {
    min-height: min(690px, calc(100svh - 66px));
    padding: 34px 14px 36px;
    background-image:
      linear-gradient(
        180deg,
        rgba(246, 239, 223, 0.98) 0%,
        rgba(246, 239, 223, 0.94) 48%,
        rgba(246, 239, 223, 0.6) 82%,
        rgba(246, 239, 223, 0.24) 100%
      ),
      var(--hero-image);
    background-position: 58% center;
  }

  .hero-lead {
    margin-top: 18px;
  }

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

  .hero-actions,
  .fallback {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .trust ul {
    grid-template-columns: 1fr;
  }

  .guide-panel {
    padding: 16px;
  }

  .audit-modal-shell {
    padding: 16px;
  }

  .site-footer,
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner-actions {
    justify-content: flex-start;
  }
}
