:root {
  --bg: #f3efe7;
  --panel: #fffdf8;
  --panel-strong: #f8f2e8;
  --text: #1c1a18;
  --muted: #61584c;
  --line: #d7cbbb;
  --accent: #9d4d21;
  --accent-strong: #7f3d19;
  --shadow: 0 18px 40px rgba(45, 28, 13, 0.08);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --page-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header,
.site-footer,
.hero,
.section {
  background: rgba(255, 253, 248, 0.82);
  border: 1px solid rgba(215, 203, 187, 0.88);
  box-shadow: var(--shadow);
}

.site-header,
.site-footer {
  border-radius: var(--radius-lg);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  margin-bottom: 24px;
}

.brand {
  font-size: 1.1rem;
  font-weight: 700;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.language-picker {
  display: flex;
  align-items: center;
}

.language-select {
  min-width: 180px;
  min-height: 40px;
  padding: 0 40px 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fffaf2;
  color: var(--text);
  font: inherit;
}

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

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

.hero,
.section {
  border-radius: 32px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.9fr);
  gap: 24px;
  padding: 28px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
li {
  text-wrap: pretty;
}

h1,
h2 {
  text-wrap: balance;
}

h1 {
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  line-height: 0.96;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
}

.hero-text,
.feature-card p,
.step-card p,
.site-footer p {
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.65;
}

.hero-text {
  max-width: 34rem;
  margin: 18px 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
}

.button-primary {
  background: var(--accent);
  color: #fff9f4;
}

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

.button-secondary {
  border: 1px solid var(--line);
  background: #fffaf2;
}

.hero-meta,
.scenario-list {
  margin: 24px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.hero-panel {
  display: flex;
}

.panel-card {
  width: 100%;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
}

.panel-label {
  margin: 0 0 14px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
}

.section {
  margin-top: 24px;
  padding: 28px;
}

.section-heading {
  max-width: 42rem;
  margin-bottom: 24px;
}

.steps-grid,
.feature-grid,
.faq-grid {
  display: grid;
  gap: 16px;
}

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

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

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

.step-card,
.feature-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
}

.step-index {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
}

.showcase-frame {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #f6f0e5;
}

.showcase-frame img {
  width: 100%;
  height: auto;
}

pre {
  margin: 0;
  overflow-x: auto;
  padding: 18px;
  border-radius: var(--radius-sm);
  background: #1f1c18;
  color: #f7efe4;
  font-family: "SFMono-Regular", "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.95rem;
  line-height: 1.65;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 24px;
  padding: 22px;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 960px) {
  .hero,
  .steps-grid,
  .feature-grid,
  .faq-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 24px;
  }

  .site-footer {
    display: grid;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(calc(100% - 20px), var(--page-width));
    padding-top: 10px;
    padding-bottom: 28px;
  }

  .site-header,
  .hero,
  .section,
  .site-footer {
    border-radius: 24px;
  }

  .site-header,
  .site-footer {
    padding: 16px 18px;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-actions {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .section {
    padding: 20px;
  }

  h1 {
    font-size: clamp(2.2rem, 13vw, 3.4rem);
  }
}
