:root {
  color-scheme: light;
  --ink: #15251f;
  --muted: #5d6b65;
  --line: #d9ded8;
  --paper: #f4f3ed;
  --surface: #fffefa;
  --brand: #0b5943;
  --brand-strong: #073f30;
  --brand-soft: #dcece5;
  --focus: #e3a62f;
  --radius: 20px;
  --shadow: 0 18px 50px rgb(17 47 37 / 8%);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans",
    "Noto Sans KR", "Noto Sans JP", sans-serif;
  font-size: 17px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--brand);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--brand-strong);
}

a:focus-visible {
  border-radius: 4px;
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.shell {
  width: min(100% - 32px, 880px);
  margin-inline: auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 24px;
}

.brand {
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.035em;
  text-decoration: none;
}

.brand span {
  color: var(--brand);
}

.languages {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
  font-size: 14px;
}

.languages a {
  min-width: 42px;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  text-align: center;
  text-decoration: none;
}

.languages a[aria-current="page"] {
  border-color: var(--line);
  color: var(--ink);
  background: var(--surface);
}

.languages .separator {
  color: #a6afa9;
  user-select: none;
}

.hero,
.document,
.app-card,
.not-found {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero {
  padding: clamp(32px, 6vw, 64px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(38px, 8vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.document h1 {
  font-size: clamp(32px, 6vw, 48px);
  line-height: 1.08;
}

h2 {
  margin: 42px 0 10px;
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: -0.025em;
}

h3 {
  margin: 24px 0 8px;
  font-size: 18px;
}

.lede {
  max-width: 680px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 3vw, 22px);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.badges li {
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--brand-strong);
  background: var(--brand-soft);
  font-size: 14px;
  font-weight: 700;
}

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

.panel {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgb(255 255 255 / 58%);
}

.panel h2,
.panel h3 {
  margin-top: 0;
}

.panel p:last-child {
  margin-bottom: 0;
}

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

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid var(--brand);
  border-radius: 12px;
  color: #fff;
  background: var(--brand);
  font-weight: 750;
  text-decoration: none;
}

.button.secondary {
  color: var(--brand);
  background: transparent;
}

.document {
  padding: clamp(28px, 6vw, 60px);
}

.meta {
  margin: 10px 0 28px;
  color: var(--muted);
  font-size: 14px;
}

.notice {
  margin: 28px 0;
  padding: 18px 20px;
  border-left: 4px solid var(--brand);
  border-radius: 0 12px 12px 0;
  background: var(--brand-soft);
}

.document ul,
.document ol {
  padding-left: 1.35em;
}

.document li + li {
  margin-top: 8px;
}

.app-card,
.not-found {
  padding: clamp(28px, 6vw, 52px);
}

.app-card h2,
.not-found h1 {
  margin-top: 0;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-block: 30px 48px;
  color: var(--muted);
  font-size: 14px;
}

footer p {
  margin: 0;
}

.business-footer {
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

.business-info {
  display: grid;
  gap: 0;
}

@media (max-width: 640px) {
  .topbar,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .languages {
    justify-content: flex-start;
  }

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

  .hero,
  .document,
  .app-card,
  .not-found {
    border-radius: 16px;
  }
}

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