  :root {
    --gold-1: #dda63f;
    --gold-2: #e9ba5c;
    --gold-deep: #b9822c;
    --cream: #faf5ea;
    --cream-card: #fffbf3;
    --paper: #f7f0e4;
    --ink: #2b2015;
    --ink-soft: #5c5040;
    --ink-faint: #8a7d68;
    --sage: #97a563;
    --line: rgba(43, 32, 21, 0.10);
    --shadow: 0 20px 45px -20px rgba(90, 62, 20, 0.35);
    --radius: 22px;
    --serif: "Fraunces", Georgia, "Noto Serif KR", serif;
    --sans: "Inter", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
             "Malgun Gothic", sans-serif;
  }

  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }

  body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
  }

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

  .wrap {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 24px;
  }

  a { color: inherit; }

  code {
    font-family: "SF Mono", ui-monospace, Menlo, monospace;
    font-size: 0.9em;
    background: var(--paper);
    padding: 0.1em 0.4em;
    border-radius: 5px;
  }

  h1, h2, h3 {
    font-family: var(--serif);
    font-weight: 600;
    letter-spacing: -0.01em;
    margin: 0;
  }

  /* ---------- nav ---------- */

  nav {
    position: sticky;
    top: 0;
    z-index: 20;
    background: color-mix(in srgb, var(--cream) 88%, transparent);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
  }
  nav .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
  }
  .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
    color: var(--ink);
  }
  .brand img {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(90, 62, 20, 0.25);
  }
  .nav-links {
    display: flex;
    gap: 28px;
    font-size: 0.92rem;
    color: var(--ink-soft);
  }
  .nav-links a { text-decoration: none; }
  .nav-links a:hover { color: var(--ink); }
  @media (max-width: 620px) {
    .nav-links { display: none; }
  }

  /* ---------- buttons ---------- */

  .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 26px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.98rem;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
  }
  .btn:active { transform: scale(0.97); }
  .nav-cta { padding: 10px 18px; font-size: 0.88rem; }
  .btn-primary {
    background: var(--ink);
    color: var(--cream);
    box-shadow: 0 12px 24px -10px rgba(43, 32, 21, 0.45);
  }
  .btn-primary:hover { box-shadow: 0 16px 30px -10px rgba(43, 32, 21, 0.5); }
  .btn-disabled {
    cursor: default;
    opacity: 0.72;
    user-select: none;
  }
  .btn-disabled:hover { box-shadow: 0 12px 24px -10px rgba(43, 32, 21, 0.45); }
  .btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--line);
  }
  .btn-ghost:hover { border-color: var(--ink-faint); }

  /* ---------- hero ---------- */

  header.hero {
    position: relative;
    overflow: hidden;
    padding: 96px 0 64px;
  }
  header.hero::before {
    content: "";
    position: absolute;
    inset: -20% -10% auto -10%;
    height: 640px;
    background: radial-gradient(60% 60% at 50% 20%, var(--gold-2), var(--gold-1) 55%, transparent 78%);
    opacity: 0.55;
    filter: blur(10px);
    z-index: -1;
  }
  .hero-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 56px;
    align-items: center;
  }
  @media (max-width: 860px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
  }

  .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gold-deep);
    background: rgba(221, 166, 63, 0.14);
    border: 1px solid rgba(221, 166, 63, 0.3);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 22px;
  }
  .hero h1 {
    font-size: clamp(2.2rem, 4.6vw, 3.15rem);
    line-height: 1.1;
  }
  .hero .lede {
    margin-top: 20px;
    font-size: clamp(1.05rem, 1.6vw, 1.2rem);
    color: var(--ink-soft);
    max-width: 46ch;
  }
  @media (max-width: 860px) {
    .hero .lede { margin-inline: auto; }
  }
  .hero-cta {
    margin-top: 34px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
  }
  @media (max-width: 860px) {
    .hero-cta { justify-content: center; }
  }
  .hero-note {
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--ink-faint);
  }

  .hero-art {
    position: relative;
    display: flex;
    justify-content: center;
  }
  .hero-art img {
    width: min(320px, 74vw);
    border-radius: 32px;
    transform: rotate(-4deg);
    box-shadow: var(--shadow);
    transition: transform 0.4s ease;
  }
  .hero-art:hover img { transform: rotate(-1deg) scale(1.02); }

  /* ---------- sections ---------- */

  section { padding: 88px 0; }
  section.tight { padding: 56px 0; }

  .section-head {
    max-width: 620px;
    margin: 0 auto 48px;
    text-align: center;
  }
  .section-head h2 {
    font-size: clamp(1.7rem, 3vw, 2.3rem);
  }
  .section-head p {
    margin-top: 14px;
    color: var(--ink-soft);
    font-size: 1.05rem;
  }

  /* feature cards */

  .grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
  }
  @media (max-width: 900px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 520px) { .grid-4 { grid-template-columns: 1fr; } }

  .card {
    background: var(--cream-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 24px;
  }
  .card .glyph {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    background: linear-gradient(150deg, var(--gold-2), var(--gold-1));
    margin-bottom: 18px;
  }
  .card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
  }
  .card p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.95rem;
  }

  /* steps */

  .steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    counter-reset: step;
  }
  @media (max-width: 780px) {
    .steps { grid-template-columns: 1fr; gap: 20px; }
  }
  .step {
    position: relative;
    padding: 30px 26px 26px;
    background: var(--cream-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }
  .step::before {
    counter-increment: step;
    content: counter(step);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--cream);
    font-family: var(--serif);
    font-size: 0.9rem;
    margin-bottom: 16px;
  }
  .step h3 { font-size: 1.05rem; margin-bottom: 8px; }
  .step p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

  /* honesty / principle section on gold */

  .principle {
    background: linear-gradient(165deg, var(--gold-1), var(--gold-2) 70%);
    border-radius: 28px;
    padding: 60px clamp(24px, 6vw, 72px);
    color: #3a2a10;
  }
  .principle .section-head { color: inherit; }
  .principle .section-head p { color: rgba(58, 42, 16, 0.78); }
  .principle-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 8px;
  }
  @media (max-width: 780px) {
    .principle-grid { grid-template-columns: 1fr; }
  }
  .principle-item h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
  }
  .principle-item p {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(58, 42, 16, 0.82);
  }

  /* final cta */

  .cta-block {
    text-align: center;
    padding: 80px 0 100px;
  }
  .cta-block h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
  .cta-block p {
    margin: 16px auto 32px;
    max-width: 42ch;
    color: var(--ink-soft);
    font-size: 1.05rem;
  }

  footer {
    border-top: 1px solid var(--line);
    padding: 40px 0;
  }
  footer .wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--ink-faint);
  }
  footer .links { display: flex; gap: 20px; }
  footer a { text-decoration: none; }
  footer a:hover { color: var(--ink-soft); }

  /* scroll reveal — visible by default. The hidden starting state only
     applies once JS has actually run and opted in via .reveal-ready on
     <html>, so a blocked or slow script can never leave content invisible. */
  .reveal { opacity: 1; transform: none; }
  html.reveal-ready .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  html.reveal-ready .reveal.in { opacity: 1; transform: none; }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    html.reveal-ready .reveal { opacity: 1; transform: none; transition: none; }
    .hero-art img, .hero-art:hover img { transition: none; }
  }

/* ---------- prose (privacy / policy pages) ---------- */

.prose-header {
  padding: 56px 0 20px;
  border-bottom: 1px solid var(--line);
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  text-decoration: none;
  margin-bottom: 18px;
}
.back-link:hover { color: var(--ink); }
.prose-header h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
}
.prose-header .updated {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--ink-faint);
}

.prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 100px;
}
.prose .lead {
  font-size: 1.08rem;
  color: var(--ink-soft);
  margin-bottom: 40px;
}
.prose .summary {
  display: grid;
  gap: 10px;
  padding: 24px;
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 48px;
}
.prose .summary li {
  list-style: none;
  display: flex;
  gap: 10px;
  font-size: 0.98rem;
  color: var(--ink);
}
.prose .summary li::before {
  content: "✓";
  color: var(--gold-deep);
  font-weight: 700;
  flex: none;
}
.prose h2 {
  font-size: 1.3rem;
  margin-top: 44px;
  margin-bottom: 14px;
}
.prose h2:first-of-type { margin-top: 0; }
.prose p {
  margin: 0 0 16px;
  color: var(--ink-soft);
}
.prose ul, .prose ol {
  margin: 0 0 16px;
  padding-left: 22px;
  color: var(--ink-soft);
}
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--ink); }
.prose a { color: var(--gold-deep); text-decoration-thickness: 1px; }
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 20px;
  font-size: 0.92rem;
}
.prose th, .prose td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}
.prose th { color: var(--ink); font-weight: 600; }

.support-contact {
  margin: 40px 0 8px;
  padding: 28px;
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--gold-1), var(--gold-2));
  color: #3a2a10;
}
.support-contact h2 { margin-top: 0; }
.support-contact p { color: rgba(58, 42, 16, 0.82); }
.support-contact .btn {
  margin-top: 8px;
  background: var(--ink);
  color: var(--cream);
}

.not-found {
  min-height: 80vh;
  display: grid;
  place-content: center;
  text-align: center;
}
.not-found-icon {
  margin: 0 auto 24px;
  border-radius: 22px;
}
.not-found-copy { margin-top: 14px; }
