/* voplo.app — one page, set in the app's own room: a cool near-white with the
   파장 as warm-grey hairlines, the wordmark in Comfortaa, nothing else shouting.
   The hero is the sign-in screen; the documents sit on paper at the end. */

@font-face {
  font-family: "Comfortaa";
  src: url("/fonts/Comfortaa-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Comfortaa";
  src: url("/fonts/Comfortaa-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --room-0: #fefeff;
  --room-1: #f8fafc;
  --room-2: #f0f4f9;
  --wave-ink: #a89e88;
  --ink: #2b2823;
  --ink-mid: #6b6660;
  --ink-lo: #a39d95;
  --rule: #e4e0d8;
  --paper: #fbf9f4;

  --sans: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Segoe UI", Roboto, sans-serif;
  --brand: "Comfortaa", var(--sans);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; background: var(--room-1); color: var(--ink); }
body {
  font: 16px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-underline-offset: 3px; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 4px; }

/* ------------------------------------------------------------------ hero */
/* The app's room, as the sign-in screen has it: the wordmark alone on the
   canvas with the 파장 travelling out from under it. */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  color: var(--ink);
  background: linear-gradient(180deg, var(--room-0), var(--room-1) 50%, var(--room-2));
  overflow: hidden;
  isolation: isolate;
}
.hero canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }

.lang {
  position: absolute; top: 22px; right: clamp(20px, 4vw, 48px);
  font-size: 13px; display: flex; gap: 12px;
}
.lang a { text-decoration: none; color: var(--ink); opacity: 0.5; padding: 4px 2px; }
.lang a[aria-current="true"] { opacity: 1; text-decoration: underline; }

.center {
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 22px;
  padding: 0 24px 6vh;
  text-align: center;
}
.wordmark {
  margin: 0;
  font: 600 clamp(52px, 7.4vw, 104px)/1 var(--brand);
  letter-spacing: 0.02em;
  color: var(--ink);
}
.line {
  margin: 0 0 10px;
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--ink-mid);
}
.cta { display: flex; align-items: center; gap: 16px; }
.cta small { font-size: 13px; color: var(--ink-lo); }
.hint {
  position: absolute; left: 0; right: 0; bottom: 26px;
  margin: 0; text-align: center;
  font-size: 13px; color: var(--ink-lo);
}

/* the App Store badge, black variant on the light room */
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  height: 54px; padding: 0 18px 0 14px;
  border-radius: 12px;
  background: #111; color: #fff;
  text-decoration: none;
  line-height: 1;
  transition: transform .18s ease;
}
.badge:hover { transform: translateY(-1px); }
.badge:active { transform: translateY(0); }
.badge svg { width: 24px; height: 24px; flex: none; }
.badge span { display: grid; gap: 3px; }
.badge .b1 { font: 500 11px/1 var(--sans); letter-spacing: 0.01em; }
.badge .b2 { font: 600 20px/1 var(--sans); letter-spacing: -0.02em; }

/* ------------------------------------------------------------------ how */

.how {
  position: relative;
  background: var(--room-2);
  padding: clamp(72px, 10vw, 128px) clamp(20px, 4vw, 48px);
  overflow: hidden;
}
.how .inner { position: relative; max-width: 1100px; margin: 0 auto; }
.how .lead {
  margin: 0 0 clamp(36px, 5vw, 64px);
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--ink);
  max-width: 24em;
}
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
}
.steps li { display: grid; gap: 10px; }
.steps .n {
  font: 400 clamp(40px, 5vw, 64px)/1 var(--brand);
  color: var(--wave-ink);
  letter-spacing: -0.02em;
}
.steps p { margin: 0; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.45; color: var(--ink); max-width: 16em; }
@media (max-width: 720px) {
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps li { grid-template-columns: 64px 1fr; align-items: baseline; }
}

/* ------------------------------------------------------------------ legal */

.legal {
  background: var(--paper);
  padding: clamp(56px, 8vw, 96px) clamp(20px, 4vw, 48px) 32px;
  border-top: 1px solid var(--rule);
}
.legal .inner { max-width: 720px; margin: 0 auto; }
.legal .heading {
  font-size: 13px; color: var(--ink-lo);
  letter-spacing: 0.04em;
  margin: 0 0 12px;
}
.doc { border-top: 1px solid var(--rule); }
.doc:last-of-type { border-bottom: 1px solid var(--rule); }
.doc summary {
  list-style: none;
  cursor: pointer;
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 22px 0;
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.doc summary::-webkit-details-marker { display: none; }
.doc summary .meta { font-size: 13px; font-weight: 400; color: var(--ink-lo); white-space: nowrap; }
.doc summary::after {
  content: "+";
  font: 300 26px/1 var(--brand);
  color: var(--ink-lo);
  margin-left: auto;
  transition: transform .2s ease;
}
.doc[open] summary::after { content: "−"; }
.doc .body { padding: 4px 0 40px; }
.doc .body > p:first-child { margin-top: 0; }
.doc h2 { font-size: 16px; font-weight: 600; margin: 34px 0 10px; padding-top: 20px; border-top: 1px solid var(--rule); }
.doc p, .doc li { margin: 0 0 10px; color: var(--ink); }
.doc ul { padding-left: 22px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 8px 0 14px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--rule); }
.doc th { color: var(--ink-mid); font-weight: 500; white-space: nowrap; }
.doc .tablewrap { overflow-x: auto; }

footer {
  max-width: 720px; margin: 40px auto 0;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--ink-lo);
}
footer a { color: inherit; text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer .wm { font: 600 14px/1 var(--brand); color: var(--ink-mid); }

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