:root {
  color-scheme: light;
  --bg: #f5efe4;
  --bg-2: #fbf7f0;
  --surface: rgba(255, 252, 246, 0.82);
  --surface-strong: rgba(255, 255, 255, 0.96);
  --text: #201b17;
  --muted: #6a6258;
  --line: rgba(32, 27, 23, 0.09);
  --line-strong: rgba(32, 27, 23, 0.14);
  --accent: #8b5e46;
  --accent-soft: rgba(139, 94, 70, 0.10);
  --accent-strong: #684635;
  --shadow: 0 22px 48px rgba(32, 27, 23, 0.08);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "Noto Serif SC", Georgia, serif;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.78), transparent 28%),
    radial-gradient(circle at top right, rgba(139, 94, 70, 0.07), transparent 24%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
  overflow-x: clip;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.26), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.32), transparent 22%);
  opacity: 0.9;
}

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

button,
summary {
  font: inherit;
}

.shell {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
  padding: 32px 22px 88px;
}

.topbar {
  display: grid;
  gap: 14px;
  padding: 0 0 22px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: grid;
  gap: 10px;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.page-title {
  margin: 0;
  max-width: 16ch;
  font-size: clamp(32px, 4.4vw, 54px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 500;
  font-style: italic;
  text-wrap: balance;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.meta-line span {
  display: inline-flex;
  gap: 6px;
  align-items: baseline;
}

.meta-line strong {
  color: var(--text);
  font-weight: 600;
}

.language-switcher {
  position: relative;
  flex-shrink: 0;
  align-self: start;
  margin-top: 2px;
  z-index: 4;
}

.language-switcher > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px 11px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 252, 246, 0.96);
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75) inset;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.language-switcher > summary::-webkit-details-marker {
  display: none;
}

.language-switcher > summary:hover {
  transform: translateY(-1px);
  border-color: rgba(139, 94, 70, 0.20);
  box-shadow: 0 8px 22px rgba(32, 27, 23, 0.06);
}

.language-switcher[open] > summary {
  border-color: rgba(139, 94, 70, 0.30);
  background: rgba(255, 252, 246, 1);
}

.lang-mark {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid var(--accent-soft);
  background: rgba(139, 94, 70, 0.08);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

.lang-label {
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

.lang-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(320px, calc(100vw - 44px));
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 252, 246, 0.98);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  opacity: 0;
  transform: translateY(-6px) scale(0.985);
  pointer-events: none;
  visibility: hidden;
  transition: opacity 180ms ease, transform 180ms ease, visibility 0s linear 180ms;
}

.language-switcher[open] .lang-popover {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  visibility: visible;
  transition: opacity 180ms ease, transform 180ms ease, visibility 0s;
}

.lang-popover-title {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.lang-menu {
  display: grid;
  gap: 6px;
}

.lang-option {
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.lang-option:hover {
  background: rgba(139, 94, 70, 0.07);
  border-color: rgba(139, 94, 70, 0.10);
  transform: translateX(1px);
}

.lang-option[aria-pressed="true"] {
  background: rgba(139, 94, 70, 0.10);
  border-color: rgba(139, 94, 70, 0.16);
  font-weight: 600;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.75fr);
  gap: 28px;
  align-items: start;
  margin-bottom: 34px;
}

.hero-copy {
  display: grid;
  gap: 18px;
}

.hero-title {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 0.93;
  letter-spacing: -0.05em;
  font-weight: 500;
  text-wrap: balance;
}

.hero-lead {
  margin: 0;
  max-width: 56ch;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.78;
  color: #322c26;
}

.hero-note {
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 252, 246, 0.78);
  box-shadow: 0 12px 30px rgba(32, 27, 23, 0.05);
}

.hero-note h3,
.section-title {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.hero-note p,
.section-copy {
  margin: 10px 0 0;
  color: #362f29;
  line-height: 1.8;
  font-size: 15px;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 252, 246, 0.9);
  color: var(--text);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: transform 140ms ease, border-color 140ms ease, background-color 140ms ease;
}

.button:hover {
  transform: translateY(-1px);
  border-color: rgba(139, 94, 70, 0.22);
}

.button-primary {
  background: var(--text);
  color: #fff8ef;
  border-color: var(--text);
}

.button-primary:hover {
  background: #312721;
  border-color: #312721;
}

.button-ghost {
  background: transparent;
}

.stack {
  display: grid;
  gap: 0;
}

.section {
  padding: 24px 0 26px;
  border-top: 1px solid var(--line);
}

.section:first-child {
  border-top: 0;
}

.section-head {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.section-heading {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 500;
}

.section-rhythm {
  display: grid;
  gap: 14px;
}

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

.feature {
  padding: 16px 0 0;
}

.feature h3 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.feature p,
.feature li,
.section p,
.section li {
  color: #372f29;
  line-height: 1.86;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.feature ul,
.section ul {
  margin: 0;
  padding-left: 18px;
}

.panel {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 252, 246, 0.74);
}

.panel h3 {
  margin: 0 0 10px;
  font-size: 17px;
  line-height: 1.26;
}

.panel p {
  margin: 0;
  color: #372f29;
  line-height: 1.78;
  font-size: 15px;
}

.faq {
  display: grid;
  gap: 10px;
}

.faq-item {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-size: 17px;
  line-height: 1.4;
  letter-spacing: -0.02em;
  font-weight: 500;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-answer {
  margin: 10px 0 0;
  color: #372f29;
  font-size: 15px;
  line-height: 1.86;
}

.footer {
  display: grid;
  gap: 10px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.footer a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.copyright {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  letter-spacing: 0.02em;
}

@media (max-width: 960px) {
  .shell {
    padding-inline: 18px;
  }

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

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

  .title-row {
    flex-direction: column;
  }

  .language-switcher {
    align-self: flex-start;
  }

  .lang-popover {
    right: auto;
    left: 0;
    width: min(360px, calc(100vw - 36px));
  }
}

@media (max-width: 640px) {
  .shell {
    padding-top: 22px;
    padding-bottom: 72px;
  }

  .topbar {
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 18px;
  }

  .page-title {
    max-width: 14ch;
  }

  .hero-title {
    max-width: 11ch;
  }

  .hero-note {
    padding: 16px;
  }

  .section {
    padding-block: 20px;
  }
}
