:root {
  --teal: #0f766e;
  --teal-deep: #0b3d36;
  --teal-soft: #ccf2ec;
  --amber: #8a5a00;
  --amber-soft: #ffe7bf;
  --bg: #f6f7f4;
  --card: #ffffff;
  --ink: #191c1b;
  --muted: #56605c;
  --line: #e3e8e5;
  --good: #15803d;
  --radius: 24px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --teal: #7fd8cb;
    --teal-deep: #003731;
    --teal-soft: #005048;
    --amber: #ffb95c;
    --amber-soft: #5c3b00;
    --bg: #101413;
    --card: #181d1b;
    --ink: #e0e3e1;
    --muted: #bec9c5;
    --line: #2a312f;
    --good: #6ee7a0;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  line-height: 1.6;
  word-break: keep-all;
}
a { color: inherit; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 560px; }

/* Top bar */
.top { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; text-decoration: none; }
.brand svg { width: 34px; height: 34px; }
.top-link { text-decoration: none; font-weight: 700; color: var(--teal); padding: 10px 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 15px; }

/* Hero */
.hero { padding: 48px 0 56px; display: grid; gap: 40px; grid-template-columns: 1.15fr 0.85fr; align-items: center; }
.eyebrow { color: var(--teal); font-weight: 700; font-size: 15px; margin: 0 0 12px; }
h1 { font-size: clamp(32px, 5.4vw, 54px); line-height: 1.22; margin: 0 0 20px; letter-spacing: -0.02em; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); margin: 0 0 28px; }

/* Buttons */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 10px; min-height: 58px; padding: 10px 22px;
  border-radius: 16px; background: var(--ink); color: var(--bg); text-decoration: none; font-weight: 700;
}
.store svg { width: 24px; height: 24px; flex: none; }
.store small { display: block; font-weight: 500; font-size: 12px; opacity: 0.75; line-height: 1.2; }
.store span { line-height: 1.25; font-size: 17px; }
.store.soon { background: var(--card); color: var(--muted); border: 1px dashed var(--line); cursor: default; }
.store.mine { outline: 3px solid var(--teal); outline-offset: 2px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 0 26px;
  border-radius: 16px; border: 0; background: var(--teal); color: #fff; font: inherit; font-weight: 700; font-size: 17px;
  text-decoration: none; cursor: pointer;
}
@media (prefers-color-scheme: dark) { .btn { color: #00201c; } }
.btn.ghost { background: transparent; color: var(--teal); border: 2px solid var(--teal); }
.btn:disabled { opacity: 0.5; cursor: default; }

/* Phone mock in the hero */
.phone {
  justify-self: center; width: min(300px, 80vw); aspect-ratio: 9 / 18; border-radius: 40px; padding: 14px;
  background: #0b3d36; box-shadow: 0 30px 60px -20px rgba(11, 61, 54, 0.45);
}
.screen {
  height: 100%; border-radius: 28px; background: linear-gradient(160deg, #0f766e, #0b3d36); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 28px 22px; gap: 14px;
}
.screen .big { font-size: 26px; font-weight: 800; line-height: 1.3; }
.screen .sub { opacity: 0.85; font-size: 15px; }
.screen .timer { font-size: 44px; font-weight: 800; letter-spacing: 0.02em; }
.screen .pill { background: rgba(255, 255, 255, 0.16); border-radius: 999px; padding: 6px 14px; font-size: 13px; }

/* Sections */
section { padding: 56px 0; }
h2 { font-size: clamp(26px, 3.6vw, 36px); line-height: 1.3; margin: 0 0 12px; letter-spacing: -0.01em; }
.section-lead { color: var(--muted); font-size: 18px; margin: 0 0 32px; max-width: 640px; }
.tag { display: inline-block; font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: var(--teal-soft); color: var(--teal-deep); margin-bottom: 14px; }
@media (prefers-color-scheme: dark) { .tag { color: #9ef2e5; } }
.tag.amber { background: var(--amber-soft); color: #2b1700; }
@media (prefers-color-scheme: dark) { .tag.amber { color: #ffddb3; } }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin: 6px 0 6px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); }
.num { width: 36px; height: 36px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font-weight: 800; }
@media (prefers-color-scheme: dark) { .num { color: #00201c; } }

.quote { font-size: clamp(22px, 3vw, 30px); font-weight: 800; line-height: 1.45; text-align: center; margin: 0 auto; max-width: 760px; }
.quote small { display: block; margin-top: 12px; font-size: 16px; font-weight: 500; color: var(--muted); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
.list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; }
.list li { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; }
.list li::before { content: "✓"; color: var(--good); font-weight: 800; }

.cta { background: var(--teal-deep); color: #fff; border-radius: 32px; padding: 48px 28px; text-align: center; }
.cta h2 { color: #fff; }
.cta p { opacity: 0.85; margin: 0 0 28px; font-size: 18px; }
.cta .stores { justify-content: center; }
.cta .store { background: #fff; color: #0b3d36; }
.cta .store.soon { background: transparent; color: #cfe9e4; border-color: rgba(255, 255, 255, 0.35); }

footer { padding: 40px 0 56px; color: var(--muted); font-size: 14px; }
footer a { margin-right: 16px; }

/* Parent settings page */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 16px; }
.panel h2 { font-size: 20px; margin: 0 0 4px; }
.hint { color: var(--muted); font-size: 15px; margin: 0 0 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  min-height: 52px; min-width: 76px; padding: 0 18px; border-radius: 14px; border: 2px solid var(--line);
  background: transparent; color: var(--ink); font: inherit; font-size: 17px; font-weight: 600; cursor: pointer;
}
.chip[aria-pressed="true"] { border-color: var(--teal); background: var(--teal); color: #fff; }
@media (prefers-color-scheme: dark) { .chip[aria-pressed="true"] { color: #00201c; } }
.code-input {
  width: 100%; min-height: 64px; font: inherit; font-size: 28px; font-weight: 800; letter-spacing: 0.12em; text-align: center;
  text-transform: uppercase; border-radius: 16px; border: 2px solid var(--line); background: var(--bg); color: var(--ink); margin-bottom: 12px;
}
.code-input:focus { outline: none; border-color: var(--teal); }
.status { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; text-align: center; }
.status b { display: block; font-size: 24px; }
.status span { color: var(--muted); font-size: 14px; }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; transition: 0.2s;
  background: var(--ink); color: var(--bg); padding: 14px 22px; border-radius: 999px; font-weight: 700; pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.error { color: #ba1a1a; font-weight: 600; min-height: 1.6em; margin: 0; }
@media (prefers-color-scheme: dark) { .error { color: #ffb4ab; } }
.hidden { display: none !important; }

.doc h1 { font-size: 32px; }
.doc h2 { font-size: 20px; margin-top: 32px; }
.doc p, .doc li { color: var(--muted); }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-top: 24px; }
  .phone { width: min(240px, 70vw); }
  .steps, .split { grid-template-columns: 1fr; }
  section { padding: 40px 0; }
}
@media (max-width: 420px) {
  .store { flex: 1 1 100%; justify-content: center; }
  .status b { font-size: 20px; }
}
