/* Senior-first design tokens (GC-4).
 * Hard rules:
 *   - Body font ≥ 18px; primary actions ≥ 22px.
 *   - Tap targets ≥ 48dp (≈ 48px) per Android/WCAG 2.5.5.
 *   - Contrast ≥ 7:1 for text (WCAG AAA).
 *   - One big primary button per screen (B-6); ≤ 1 visual equal.
 *   - No motion-only feedback; pair with a label or icon.
 */
:root {
  --ink:        #0f172a;    /* near-black */
  --ink-soft:   #334155;
  --muted:      #475569;
  --line:       #cbd5e1;
  --bg:         #f8fafc;
  --paper:      #ffffff;
  --brand:      #1e7f73;    /* teal — same family as auth.k.nexus */
  --brand-dark: #0e5a52;
  --accent:     #d97706;    /* used sparingly for reward/CTA */
  --good:       #15803d;
  --bad:        #b91c1c;

  --radius-card: 18px;
  --radius-pill: 999px;
  --shadow-card: 0 18px 50px rgba(15, 23, 42, 0.10);

  --fs-base: 18px;
  --fs-lg:   22px;
  --fs-xl:   30px;
  --fs-hero: 44px;

  --tap: 56px;            /* primary button height, > 48dp floor */
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Pretendard', 'Apple SD Gothic Neo', 'Noto Sans KR', system-ui, sans-serif;
  font-size: var(--fs-base);
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand-dark); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.shell {
  max-width: 560px;
  margin: 0 auto;
  padding: 24px 20px 80px;
}

.hero {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
}
.hero h1 {
  margin: 0 0 12px;
  font-size: var(--fs-hero);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.hero p {
  margin: 0 0 24px;
  font-size: var(--fs-lg);
  color: var(--ink-soft);
}

.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: var(--tap);
  padding: 0 20px;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--brand);
  color: #fff;
  font-size: var(--fs-lg);
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.12s ease;
}
.btn-primary:hover { background: var(--brand-dark); }
.btn-primary:disabled { background: var(--muted); cursor: not-allowed; }

.tile {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 20px;
  margin-top: 16px;
  box-shadow: var(--shadow-card);
}
.tile h2 {
  margin: 0 0 10px;
  font-size: var(--fs-xl);
  font-weight: 900;
}
.tile .row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: var(--fs-lg);
}
.tile .row + .row { margin-top: 8px; }
.tile .row .v { font-weight: 900; }

.tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: #fef3c7;
  color: #92400e;
  font-size: 14px;
  font-weight: 800;
}

.muted { color: var(--muted); font-size: 16px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
