:root {
  --bg: #fbfbf8;
  --text: #161616;
  --muted: #76726a;
  --line: #ddd8ce;
  --link: #161616;
  --link-hover: #4d4a43;
  --max-width: 680px;
  --sans:
    "SUIT Variable", "Pretendard Variable", "Pretendard", "Avenir Next",
    "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition:
    color 180ms ease,
    border-color 180ms ease;
}

a:hover,
a:focus-visible {
  color: var(--link-hover);
  border-color: currentColor;
}

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

/* ─── Layout ─── */

.page {
  width: min(calc(100% - 48px), var(--max-width));
  margin: 0 auto;
  padding: 28px 0 72px;
}

/* ─── Header ─── */

.site-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 88px;
}

.lang-switch {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  border-bottom: none;
}

.lang-switch:hover {
  color: var(--text);
}

.locale-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.98rem;
}

.locale-nav a {
  color: inherit;
}

/* ─── Hero ─── */

.hero {
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
  animation: fade-up 640ms ease both;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.84rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1,
h2 {
  font-weight: 500;
  letter-spacing: -0.04em;
}

h1 {
  margin: 0;
  margin-left: -0.04em;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 1;
}

h2 {
  margin: 0;
  font-size: 1rem;
}

.lede,
.summary,
.section-copy,
.section-body p {
  color: rgba(22, 22, 22, 0.9);
  font-size: 1.02rem;
  line-height: 1.82;
}

.lede {
  max-width: 34rem;
  margin: 22px 0 0;
}

.summary {
  max-width: 34rem;
  margin: 12px 0 0;
  color: var(--muted);
}

.primary-link {
  margin: 22px 0 0;
  font-size: 0.96rem;
}

/* ─── Sections ─── */

.section {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 28px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  animation: fade-up 700ms ease both;
}

.section-heading {
  padding-top: 2px;
}

.section-body > :first-child {
  margin-top: 0;
}

.section-body > :last-child {
  margin-bottom: 0;
}

/* ─── Lists ─── */

.plain-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.plain-list li + li {
  margin-top: 20px;
}

.plain-list li strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.plain-list li p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

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

.compact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.compact li + li {
  margin-top: 0;
}

/* ─── Pricing Table ─── */

.pricing-table {
  width: 100%;
  margin-top: 16px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.pricing-table thead th {
  padding: 0 0 12px;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.pricing-table thead th:first-child {
  text-align: left;
}

.pricing-table .price-note {
  display: block;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--muted);
}

.pricing-table tbody td {
  padding: 8px 0;
  border-bottom: 1px solid rgba(22, 22, 22, 0.06);
  text-align: center;
  color: var(--muted);
}

.pricing-table tbody td:first-child {
  text-align: left;
  color: var(--text);
}

.pricing-table tfoot td {
  padding: 14px 0 0;
  text-align: center;
}

.mark-yes {
  color: var(--text);
}

.mark-no {
  color: var(--line);
}

/* ─── Download ─── */

.download-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 12px;
}

.download-buttons a {
  font-size: 0.96rem;
}

.homebrew-install {
  margin-top: 24px;
}

.homebrew-install .eyebrow {
  margin-bottom: 6px;
}

.code-block {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(22, 22, 22, 0.05);
  border-radius: 6px;
}

.code-block code {
  flex: 1;
  font-size: 0.82rem;
  font-family: "SF Mono", "Fira Code", monospace;
  color: var(--text);
  overflow-x: auto;
  white-space: nowrap;
}

.copy-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.copy-btn:hover {
  color: var(--text);
  border-color: var(--text);
  background: rgba(22, 22, 22, 0.04);
}

.copy-btn.copied {
  color: #3a8;
  border-color: #3a8;
}

/* ─── Email Form ─── */

.email-form {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  max-width: 400px;
}

.email-form input[type="email"] {
  flex: 1;
  padding: 8px 12px;
  font-size: 0.9rem;
  font-family: inherit;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  color: var(--text);
  outline: none;
  transition: border-color 180ms ease;
}

.email-form input[type="email"]:focus {
  border-color: var(--text);
}

.email-form input[type="email"]::placeholder {
  color: var(--muted);
}

.email-form button {
  padding: 8px 16px;
  font-size: 0.88rem;
  font-family: inherit;
  font-weight: 500;
  background: var(--text);
  color: var(--bg);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 180ms ease;
}

.email-form button:hover {
  opacity: 0.8;
}

/* ─── Footer-like ─── */

.made-by {
  margin-top: 20px;
  font-size: 0.88rem;
  color: var(--muted);
}

/* ─── Animation ─── */

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── Responsive ─── */

@media (max-width: 720px) {
  .page {
    width: min(calc(100% - 32px), var(--max-width));
    padding-top: 22px;
  }

  .site-header {
    margin-bottom: 56px;
  }

  .section {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 20px 0;
  }

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

  .lede,
  .summary,
  .section-copy,
  .section-body p {
    font-size: 1rem;
    line-height: 1.75;
  }

  .email-form {
    flex-direction: column;
  }
}
