:root {
  color-scheme: light;
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #111827;
  --muted: #4b5563;
  --border: #e5e7eb;
  --primary: #1f2937;
  --secondary: #0f766e;
  --accent: #f59e0b;
  --shadow: 0 18px 50px rgb(15 23 42 / 0.08);
  --radius-lg: 1.5rem;
  --radius-md: 1rem;
  --radius-sm: 0.75rem;
  --max-width: 72rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background:
    radial-gradient(circle at top left, rgb(245 158 11 / 0.08), transparent 24%),
    radial-gradient(circle at top right, rgb(15 118 110 / 0.08), transparent 28%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover,
a:focus-visible {
  color: var(--secondary);
}

:focus-visible {
  outline: 3px solid rgb(15 118 110 / 0.4);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -3rem;
  left: 1rem;
  z-index: 20;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.75rem 1rem;
  border-radius: 999px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

.site-header,
.hero,
.section,
.site-footer {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-mark {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.brand-name,
.brand-tagline,
.eyebrow,
.card-label,
.chat-kicker,
.chat-note {
  margin: 0;
}

.brand-name {
  font-weight: 700;
}

.brand-tagline {
  color: var(--muted);
  font-size: 0.95rem;
}

.site-nav,
.lang-switch,
.hero-actions,
.contact-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.site-nav a,
.lang-button {
  border-radius: 999px;
  padding: 0.6rem 0.95rem;
}

.lang-button {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}

.lang-button.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.hero {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 1.5rem;
  padding: 3rem 0 1.5rem;
  align-items: center;
}

.hero-copy,
.hero-card,
.info-card,
.chat-shell,
.pill,
.process-list,
.chat-summary {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero-copy,
.hero-card,
.chat-shell,
.chat-summary {
  border-radius: var(--radius-lg);
}

.hero-copy {
  padding: 2rem;
}

.eyebrow {
  color: var(--secondary);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}

h1 {
  margin-top: 0.75rem;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

h3 {
  font-size: 1.2rem;
}

.hero-lead,
.section-lead,
.info-card p,
.hero-card p,
.process-list,
.chat-note,
.chat-summary p {
  color: var(--muted);
}

.hero-lead {
  max-width: 38rem;
  font-size: 1.12rem;
  margin: 1rem 0 0;
}

.hero-actions {
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  border-radius: 999px;
  padding: 0.75rem 1.25rem;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
}

.button-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
}

.button-secondary {
  background: var(--surface);
  border-color: var(--border);
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  padding: 0;
  margin: 1.5rem 0 0;
  list-style: none;
  color: var(--muted);
}

.hero-points li::before {
  content: "•";
  color: var(--accent);
  margin-right: 0.5rem;
}

.hero-card {
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.hero-illustration {
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgb(31 41 55 / 0.04), rgb(15 118 110 / 0.08));
  margin-bottom: 1rem;
}

.hero-card::before,
.chat-shell::before {
  content: "";
  position: absolute;
  inset: auto -10% -30% auto;
  width: 13rem;
  height: 13rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(245 158 11 / 0.18), transparent 70%);
  pointer-events: none;
}

.section {
  padding: 2rem 0;
}

.section-heading {
  margin-bottom: 1.25rem;
}

.section-heading h2 {
  margin-top: 0.5rem;
}

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

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

.info-card,
.pill,
.process-list {
  border-radius: var(--radius-md);
}

.info-card {
  padding: 1.25rem;
}

.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.pill {
  padding: 0.9rem 1rem;
  font-weight: 600;
}

.process-list {
  margin: 0;
  padding: 1.25rem 1.5rem 1.25rem 2.25rem;
}

.section-contact {
  padding-bottom: 3rem;
}

.chat-shell {
  position: relative;
  overflow: hidden;
  padding: 1.25rem;
}

.chat-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.chat-log {
  display: grid;
  gap: 0.75rem;
  padding: 1rem 0;
}

.chat-bubble {
  max-width: 42rem;
  padding: 0.55rem 0.85rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: #f9fafb;
}

.chat-bubble.is-user {
  margin-left: auto;
  background: rgb(15 118 110 / 0.08);
}

.chat-bubble strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--primary);
}

.chat-form {
  display: grid;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field label,
.field legend {
  font-weight: 700;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  padding: 0.9rem 1rem;
  font: inherit;
  background: #fff;
  color: var(--text);
}

.choice-row,
.choice-grid {
  display: grid;
  gap: 0.6rem;
}

.choice-row {
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
}

.choice-grid {
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
}

.choice-row label,
.choice-grid label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.choice-row label:hover,
.choice-grid label:hover {
  border-color: var(--secondary);
}

.choice-row label:has(input:checked),
.choice-grid label:has(input:checked) {
  border-color: var(--secondary);
  background: #ecfdf5;
  color: var(--secondary);
}

.choice-row input[type="radio"],
.choice-grid input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.chat-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0.25rem;
}

.chat-undo-btn {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.875rem;
  padding: 0.4rem 0.6rem;
  border-radius: 0.5rem;
  transition: color 0.15s;
  white-space: nowrap;
}

.chat-undo-btn:hover {
  color: var(--text);
}

.chat-send-btn {
  margin-left: auto;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--secondary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s, transform 0.1s;
}

.chat-send-btn:hover {
  background: var(--primary);
}

.chat-send-btn:active {
  transform: scale(0.92);
}

.chat-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.honeypot {
  position: absolute;
  left: -9999px;
  visibility: hidden;
}

.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;
}

.contact-links {
  margin-top: 1rem;
}

.contact-links a {
  padding: 0.7rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}

.site-footer {
  padding: 1.5rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.hidden {
  display: none !important;
}

@media (max-width: 56rem) {
  .site-header,
  .hero {
    grid-template-columns: 1fr;
  }

  .site-header {
    display: grid;
    justify-items: start;
  }

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

  .chat-header {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ========================
   No-JS fallback
   ======================== */
.no-js .chat-shell { display: none; }
.noscript-notice { display: none; }
.no-js .noscript-notice {
  display: block;
  margin: 2rem auto;
  max-width: 36rem;
  text-align: center;
  color: var(--muted);
}
.noscript-notice a { color: var(--secondary); }

/* ========================
   Cookie banner
   ======================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--primary);
  color: #fff;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  z-index: 1000;
  box-shadow: 0 -2px 12px rgb(0 0 0 / 0.15);
}
.cookie-banner.hidden { display: none; }
.cookie-banner p {
  margin: 0;
  flex: 1;
  min-width: 15rem;
  font-size: 0.9rem;
}
.cookie-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}
.btn-cookie-accept,
.btn-cookie-decline {
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
}
.btn-cookie-accept {
  background: var(--secondary);
  color: #fff;
  border: none;
}
.btn-cookie-accept:hover { background: #0d9488; }
.btn-cookie-decline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}
.btn-cookie-decline:hover { background: rgba(255, 255, 255, 0.1); }
