:root {
  --bg: #f5efe6;
  --paper: #fcfaf7;
  --text: #1d1a18;
  --muted: #51463e;
  --accent: #9e4632;
  --accent-soft: #f2d8cf;
  --border: #e4d8ce;
  --error: #b3261e;
  --focus: #2b3f77;
}

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

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.5rem;
}

.skip-link:focus {
  left: 0.5rem;
  z-index: 1000;
  background: var(--paper);
  padding: 0.5rem 0.75rem;
  outline: 3px solid var(--focus);
}

.container {
  width: min(1080px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  background: rgba(245, 239, 230, 0.95);
  backdrop-filter: blur(4px);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

.header-row {
  min-height: 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  margin: 0.7rem 0;
  font-weight: 700;
  color: var(--text);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.25rem;
  background: var(--paper);
}

.lang-link {
  text-decoration: none;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  color: var(--text);
  font-weight: 600;
}

.lang-link[aria-current="page"] {
  background: var(--accent);
  color: #fff;
}

.header-cta {
  text-decoration: none;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-weight: 600;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.section {
  padding: 2.5rem 0;
}

.hero {
  padding-top: 3.5rem;
  padding-bottom: 3rem;
}

.hero-wrap {
  background:
    radial-gradient(42rem 18rem at 95% 5%, var(--accent-soft), transparent 60%),
    linear-gradient(180deg, #fff6ed 0%, #f7f1e8 80%);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.6rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.86rem;
  color: var(--muted);
  margin: 0 0 0.4rem 0;
}

h1, h2, h3 {
  line-height: 1.2;
  margin-top: 0;
}

h1 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  margin-bottom: 0.75rem;
}

h2 {
  margin-bottom: 0.95rem;
}

.lead {
  max-width: 65ch;
  font-size: 1.06rem;
  margin-bottom: 1.1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1px solid var(--accent);
  color: #fff;
  background: var(--accent);
  padding: 0.7rem 1rem;
  border-radius: 0.65rem;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  background: #7d2f1b;
}

.stack-tags {
  list-style: none;
  margin: 1.2rem 0 0.4rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.stack-tags li {
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  font-size: 0.85rem;
  background: #fff;
}

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

.card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  padding: 1rem;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.03);
}

.card h3 {
  font-size: 1.05rem;
}

.card ul {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
}

.steps {
  margin: 0;
  padding-left: 1.1rem;
}

.cases-grid .card {
  background: linear-gradient(180deg, #fff9f2, var(--paper));
}

.tags {
  font-size: 0.86rem;
  color: var(--muted);
}

.result-list {
  margin: 0;
  padding-left: 1.2rem;
}

.result-list li + li {
  margin-top: 0.5rem;
}

.form-section {
  background: #fdfbf8;
}

.lead-form {
  display: grid;
  gap: 0.8rem;
  max-width: 720px;
}

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

label {
  font-weight: 600;
}

input[type="text"],
textarea {
  border: 1px solid var(--border);
  border-radius: 0.55rem;
  padding: 0.6rem 0.7rem;
  font: inherit;
  background: #fff;
}

input[type="file"] {
  border: 1px solid var(--border);
  border-radius: 0.55rem;
  padding: 0.5rem;
  font: inherit;
  background: #fff;
}

.checkbox-field {
  grid-template-columns: auto 1fr;
  align-items: start;
}

.checkbox-field input {
  margin-top: 0.25rem;
}

.checkbox-field label {
  font-weight: 500;
}

.error {
  color: var(--error);
  margin: 0.05rem 0 0;
  min-height: 1.2em;
  font-size: 0.92rem;
}

.form-status {
  margin: 0.2rem 0 0;
  min-height: 1.2em;
  font-weight: 600;
}

.notice {
  margin: 0.1rem 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.char-counter {
  margin: 0;
  text-align: right;
  color: var(--muted);
  font-size: 0.85rem;
}

.char-counter.error {
  color: var(--error);
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
}

.site-footer {
  padding: 2rem 0 2.5rem;
}

.site-footer p {
  margin: 0;
}

.hero,
.section h2 {
  position: relative;
}

.section + .section {
  border-top: 1px solid var(--border);
}

@media (max-width: 960px) {
  .header-row {
    padding-bottom: 0.7rem;
  }

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

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

  .header-tools {
    width: 100%;
    justify-content: space-between;
  }

  .header-row {
    padding-top: 0.5rem;
  }

  h1 {
    font-size: 2rem;
  }

  .lead-form button,
  .btn {
    width: 100%;
    text-align: center;
  }
}

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

.status-disabled {
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .card,
  .site-header {
    transition: none;
    animation: none;
  }
}

@media (max-width: 360px) {
  .container {
    width: 95vw;
  }

  .hero-wrap {
    padding: 1rem;
  }
}
