/* runparty.app: the app's own look (near-black, palette A's lime) with glass
   panels over the particle field. System fonts only; no italics anywhere. */

:root {
  --page: #07090b;
  --ink: #eef2f4;
  --soft: #a4adb5;
  --faint: #6c757e;
  --lime: #c6ec7c;
  --mint: #8fe3b0;
  --on-lime: #10140a;
  --teal: #6fd6d0;
  --honey: #f2c46b;
  --lavender: #b59cff;
  --rose: #ff7a9a;
  --cyan: #4cd8ff;
  --glass: rgba(255, 255, 255, 0.045);
  --glass-edge: rgba(255, 255, 255, 0.09);
  --radius: 26px;
  --max: 1180px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 17px/1.6 "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", Roboto, sans-serif;
  font-style: normal;
  overflow-x: hidden;
  overscroll-behavior: none;
}
em, i, cite, address { font-style: normal; }
a { color: inherit; }
img { max-width: 100%; display: block; }
::selection { background: var(--lime); color: var(--on-lime); }

/* ---- Layers behind the page ---- */
.backdrop {
  position: fixed; inset: 0; z-index: -3; pointer-events: none;
  background:
    radial-gradient(60vmax 50vmax at 80% -10%, rgba(198, 236, 124, 0.07), transparent 60%),
    radial-gradient(50vmax 40vmax at -10% 60%, rgba(111, 214, 208, 0.05), transparent 60%),
    radial-gradient(40vmax 40vmax at 100% 100%, rgba(181, 156, 255, 0.05), transparent 60%);
}
#field { position: fixed; inset: 0; z-index: -2; pointer-events: none; }
.glow {
  position: fixed; left: 0; top: 0; z-index: -1; pointer-events: none;
  width: 520px; height: 520px; margin: -260px 0 0 -260px;
  background: radial-gradient(circle, rgba(198, 236, 124, 0.09), transparent 62%);
  opacity: 0; transition: opacity 0.6s;
}
.glow.on { opacity: 1; }

/* ---- Header ---- */
.progress {
  position: fixed; left: 0; top: 0; right: 0; height: 2px; z-index: 30;
  background: linear-gradient(90deg, var(--mint), var(--lime));
  transform-origin: 0 50%; transform: scaleX(0);
}
.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px max(20px, calc((100vw - var(--max)) / 2));
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.top.solid {
  background: rgba(7, 9, 11, 0.55);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--glass-edge);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 750; letter-spacing: -0.01em; font-size: 19px; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.top nav { display: flex; align-items: center; gap: 6px; }
.top nav a {
  text-decoration: none; color: var(--soft); font-size: 15px; padding: 8px 12px; border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}
.top nav a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.06); }
.top nav .lang { border: 1px solid var(--glass-edge); }
@media (max-width: 820px) { .top nav .wide { display: none; } }

/* ---- Glass ---- */
.glass {
  position: relative;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.02) 60%);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 24px 60px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease-out, border-color 0.3s;
  isolation: isolate;
}
.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(198, 236, 124, 0.13), transparent 55%);
  opacity: 0; transition: opacity 0.35s;
}
.glass:hover::before { opacity: 1; }
.glass:hover { border-color: rgba(198, 236, 124, 0.22); }

/* ---- Layout ---- */
main { position: relative; }
.wrap { width: min(var(--max), 100% - 40px); margin: 0 auto; }
section { position: relative; }
.scene { min-height: 100vh; display: flex; align-items: center; padding: 110px 0; }
.scene .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.scene[data-side="left"] .copy { grid-column: 2; }
.scene .copy { max-width: 520px; }
@media (max-width: 820px) {
  .scene { min-height: auto; padding: 46vh 0 70px; }
  .scene .wrap { grid-template-columns: 1fr; }
  .scene[data-side="left"] .copy { grid-column: 1; }
}

.eyebrow {
  margin: 0 0 14px; font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lime);
}
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.08; font-weight: 800; }
h2 { font-size: clamp(34px, 5vw, 58px); }
h3 { font-size: 21px; letter-spacing: -0.01em; }
.lead { color: var(--soft); font-size: clamp(17px, 1.6vw, 20px); margin: 18px 0 0; }
.lime { color: var(--lime); }

/* ---- Hero ---- */
.hero { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 84px 20px 6vh; }
.hero-figure { width: min(46vw, 40svh, 400px); aspect-ratio: 1; margin-bottom: 18px; flex: none; }
.hero h1 { font-size: clamp(54px, 9vw, 112px); letter-spacing: -0.045em; }
.hero h1 span { color: var(--lime); }
.hero .lead { max-width: 640px; margin-left: auto; margin-right: auto; }
.hero .stores { justify-content: center; margin-top: 30px; }
.hero .hint { margin-top: 34px; color: var(--faint); font-size: 13px; letter-spacing: 0.08em; }
.hero .hint svg { display: block; margin: 8px auto 0; animation: nudge 2.2s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .hero .hint svg { animation: none; } }

/* ---- Store buttons (coming soon) ---- */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 12px; min-width: 196px;
  padding: 11px 20px 11px 16px; border-radius: 16px; text-decoration: none;
  cursor: default; user-select: none;
}
.store svg { width: 26px; height: 26px; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.store small { font-size: 11px; color: var(--lime); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.store strong { font-size: 18px; font-weight: 700; }

.social {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 12px; border-radius: 999px;
  text-decoration: none; font-weight: 650; font-size: 15px;
}
.social svg { width: 22px; height: 22px; }

/* ---- Cards ---- */
.cards { display: grid; gap: 16px; margin-top: 34px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) { .cards.three { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .cards.two { grid-template-columns: 1fr; } }
.card { padding: 24px; }
.card p { margin: 8px 0 0; color: var(--soft); font-size: 15.5px; }
.card .mark { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px; }
.card .mark svg { width: 20px; height: 20px; }
.mark.teal { background: rgba(111, 214, 208, 0.14); color: var(--teal); }
.mark.honey { background: rgba(242, 196, 107, 0.14); color: var(--honey); }
.mark.lavender { background: rgba(181, 156, 255, 0.14); color: var(--lavender); }
.mark.lime { background: rgba(198, 236, 124, 0.14); color: var(--lime); }
.mark.rose { background: rgba(255, 122, 154, 0.14); color: var(--rose); }

.points { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.points li { display: flex; gap: 12px; align-items: flex-start; color: var(--soft); }
.points li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 10px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px var(--lime); }
.points strong { color: var(--ink); font-weight: 650; }

/* A full-width section (three kinds, calendar, partners). */
.band { padding: 120px 0; }
.band .head { max-width: 700px; }
.band .head.center { margin: 0 auto; text-align: center; }

/* The box the moving figures stand in, above the three ways. */
.figures { width: min(760px, 100%); height: clamp(150px, 22vw, 240px); margin: 0 auto 26px; }

/* ---- Calendar ---- */
.cal { display: grid; grid-template-columns: 1.25fr 1fr; gap: 0; margin-top: 40px; overflow: hidden; }
@media (max-width: 860px) { .cal { grid-template-columns: 1fr; } }
.cal-month { padding: 26px; border-right: 1px solid var(--glass-edge); }
@media (max-width: 860px) { .cal-month { border-right: 0; border-bottom: 1px solid var(--glass-edge); } }
.cal-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.cal-title { font-size: 20px; font-weight: 750; margin: 0 auto 0 0; }
.cal-tag { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--honey); border: 1px solid rgba(242, 196, 107, 0.4); padding: 3px 8px; border-radius: 999px; }
.cal-bar button {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--glass-edge); background: transparent; color: var(--ink);
  cursor: pointer; display: grid; place-items: center;
}
.cal-bar button:hover { background: rgba(255, 255, 255, 0.07); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-head { text-align: center; font-size: 12px; color: var(--faint); font-weight: 650; padding-bottom: 6px; }
.cal-day {
  position: relative; aspect-ratio: 1 / 1; border: 0; border-radius: 12px; background: transparent; color: var(--ink);
  font: inherit; font-size: 15px; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  transition: background 0.2s;
}
.cal-day:hover { background: rgba(255, 255, 255, 0.06); }
.cal-day.past { color: var(--faint); }
.cal-day.today span { color: var(--lime); font-weight: 800; }
.cal-day.picked { background: rgba(198, 236, 124, 0.14); box-shadow: inset 0 0 0 1px rgba(198, 236, 124, 0.45); }
.cal-day .dots { display: flex; gap: 3px; height: 6px; }
.cal-day .dots b { width: 6px; height: 6px; border-radius: 50%; }
b.run, .cal-row.run .time { background: var(--teal); }
b.hike, .cal-row.hike .time { background: var(--honey); }
b.ride, .cal-row.ride .time { background: var(--lavender); }
.cal-list { padding: 26px; display: flex; flex-direction: column; gap: 10px; min-height: 280px; }
.cal-day-title { margin: 0 0 6px; font-weight: 750; font-size: 18px; }
.cal-none { color: var(--faint); margin: 0; }
.cal-row { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 16px; background: rgba(255, 255, 255, 0.035); }
.cal-row .time { flex: none; color: var(--on-lime); font-weight: 750; font-size: 14px; border-radius: 10px; padding: 6px 9px; font-variant-numeric: tabular-nums; }
.cal-row .what { display: flex; flex-direction: column; min-width: 0; }
.cal-row strong { font-weight: 650; font-size: 15.5px; }
.cal-row small { color: var(--soft); font-size: 13px; }
.cal-legend { display: flex; gap: 16px; margin-top: 16px; font-size: 13px; color: var(--soft); }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend b { width: 8px; height: 8px; border-radius: 50%; }

/* ---- Buttons ---- */
.button {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px;
  background: linear-gradient(135deg, var(--mint), var(--lime)); color: var(--on-lime);
  font-weight: 750; text-decoration: none; box-shadow: 0 10px 40px rgba(198, 236, 124, 0.25);
  transition: transform 0.2s, box-shadow 0.2s;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 16px 50px rgba(198, 236, 124, 0.35); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; align-items: center; }
.quiet { color: var(--soft); text-decoration: none; padding: 12px 6px; }
.quiet:hover { color: var(--ink); }

/* ---- FAQ ---- */
.faq { display: grid; gap: 12px; margin-top: 34px; }
.faq details { padding: 4px 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 650; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--lime); font-weight: 400; font-size: 22px; line-height: 1; transition: transform 0.25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--soft); }

/* ---- Final call and footer ---- */
.final { text-align: center; padding: 140px 0 120px; }
.final .wrap { display: flex; flex-direction: column; align-items: center; }
.final .stores { justify-content: center; margin-top: 30px; }
.final .social { margin-top: 18px; }
footer { padding: 40px 0 60px; border-top: 1px solid var(--glass-edge); color: var(--faint); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
footer a { color: var(--soft); text-decoration: none; }
footer a:hover { color: var(--ink); }
footer p { margin: 4px 0; }

/* ---- Rising in ---- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.9s cubic-bezier(.2, .7, .2, 1), transform 0.9s cubic-bezier(.2, .7, .2, 1); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal="2"] { transition-delay: 0.08s; }
[data-reveal="3"] { transition-delay: 0.16s; }
[data-reveal="4"] { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; transition: none; } }

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

/* ---- Text pages: privacy, terms, delete ---- */
.doc { padding: 120px 0 90px; }
.doc .wrap { max-width: 820px; }
.doc h1 { font-size: clamp(36px, 6vw, 56px); }
.updated { color: var(--faint); margin: 12px 0 22px; font-size: 15px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.toc a {
  text-decoration: none; color: var(--soft); font-size: 14px; padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--glass-edge); background: rgba(255, 255, 255, 0.03); transition: color 0.2s, border-color 0.2s;
}
.toc a:hover { color: var(--ink); border-color: rgba(198, 236, 124, 0.35); }
.prose { padding: 10px 34px 30px; color: var(--soft); }
.prose:hover { border-color: var(--glass-edge); }
.prose::before { display: none; }
.prose h2 { font-size: 23px; color: var(--ink); margin: 34px 0 6px; scroll-margin-top: 90px; letter-spacing: -0.01em; }
.prose p, .prose li { font-size: 16.5px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 7px 0; }
.prose li::marker { color: var(--lime); }
.prose strong { color: var(--ink); font-weight: 650; }
.prose a { color: var(--lime); font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: 3px; }
@media (max-width: 560px) { .prose { padding: 4px 20px 22px; } }
