/* Korya website. Same design tokens as the sidebar (see "Design" in CLAUDE.md). */

@font-face {
  font-family: 'Fredoka Variable';
  src: url('/fonts/fredoka.woff2') format('woff2');
  font-weight: 300 700;
  font-display: block;
}
@font-face {
  font-family: 'Nunito Variable';
  src: url('/fonts/nunito.woff2') format('woff2');
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --bg: #1e0d0e;
  --bg-2: #261213;
  --surface: #2f1718;
  --surface-2: #3b1e1e;
  --surface-3: #4a2625;
  --line: rgba(251, 231, 201, 0.09);
  --line-2: rgba(251, 231, 201, 0.16);
  --cream: #fbe7c9;
  --muted: #caa98f;
  --coral: #e8604f;
  --amber: #f6b26b;
  --glow: #ffd9a0;
  --ok: #9fd48f;
  --font: 'Nunito Variable', 'Nunito', system-ui, sans-serif;
  --display: 'Fredoka Variable', 'Fredoka', system-ui, sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font: 500 17px/1.6 var(--font);
  color: var(--cream);
  background:
    radial-gradient(90% 60% at 50% -10%, rgba(246, 178, 107, 0.14), transparent 60%),
    radial-gradient(60% 50% at 100% 60%, rgba(232, 96, 79, 0.08), transparent 70%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--amber); text-underline-offset: 3px; }
a:hover { color: var(--glow); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
code { font: 600 0.88em ui-monospace, Consolas, monospace; color: var(--glow); background: var(--bg-2); padding: 2px 7px; border-radius: 7px; border: 1px solid var(--line); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.fine { color: var(--muted); font-size: 14px; }
.ok { color: var(--ok); }
.error { color: #ffb3a8; font-size: 14px; margin-top: 8px; }
.eyebrow { font: 700 13px var(--font); letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber); }
.glow { color: var(--glow); text-shadow: 0 0 40px rgba(246, 178, 107, 0.45); }

/* ---------- Loader ---------- */

.loader {
  position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px;
  background: radial-gradient(60% 50% at 50% 45%, rgba(246, 178, 107, 0.12), transparent 70%), var(--bg);
  transition: opacity 0.6s var(--ease), visibility 0s 0.6s;
}
.loader.done { opacity: 0; visibility: hidden; }
.loader-mark { width: min(340px, 70vw); aspect-ratio: 300 / 110; }
.loader-mark svg { width: 100%; height: 100%; }
.loader-text { color: var(--muted); font-weight: 600; letter-spacing: 0.02em; }

/* ---------- Nav ---------- */

.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px clamp(16px, 4vw, 40px); max-width: 1180px; margin: 0 auto; }
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-brand img { border-radius: 10px; }
.nav-mark { display: block; width: 96px; height: 35px; }
.nav-mark svg { width: 100%; height: 100%; }
.account { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; }
.link-btn { border: 0; background: none; color: var(--amber); font: 700 14px var(--font); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 4px; }
.avatar { border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px rgba(251, 231, 201, 0.14); flex: none; }
.avatar--ph { display: inline-grid; place-items: center; background: var(--coral); color: #2a1011; font: 700 15px var(--display); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: 16px; border: 1px solid var(--line-2);
  background: var(--surface-2); color: var(--cream); font: 800 16px var(--font); text-decoration: none; cursor: pointer;
  transition: transform 0.15s var(--ease), background 0.2s, box-shadow 0.2s;
}
.btn:hover { background: var(--surface-3); color: var(--cream); }
.btn:active { transform: scale(0.98); }
.btn--primary {
  border: 0; color: #2a1011;
  background: linear-gradient(180deg, var(--glow), var(--amber) 55%, #ee9a55);
  box-shadow: 0 10px 30px rgba(246, 178, 107, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.btn--primary:hover { color: #2a1011; background: linear-gradient(180deg, #ffe4b8, #f8bd7c 55%, #f0a563); box-shadow: 0 12px 36px rgba(246, 178, 107, 0.42); }
.btn--big { min-height: 58px; font-size: 18px; padding: 0 34px; }
.google-btn { min-height: 44px; }

/* ---------- Hero ---------- */

main { max-width: 1180px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.hero { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; padding: 12px 0 56px; }
.hero-art { justify-self: center; width: min(460px, 86vw); aspect-ratio: 1; border-radius: 36px; overflow: hidden; box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5), 0 0 120px rgba(246, 178, 107, 0.12); }
.hero-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-copy { display: flex; flex-direction: column; gap: 18px; text-align: center; align-items: center; }
.hero h1 { font-size: clamp(38px, 6vw, 62px); }
.lede { color: var(--muted); font-size: clamp(17px, 1.6vw, 19px); max-width: 520px; }
.signin { display: flex; flex-direction: column; gap: 10px; align-items: center; margin-top: 6px; }
.signed-in { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line-2); max-width: 520px; }
@media (min-width: 900px) {
  .hero { grid-template-columns: 1fr 1.05fr; gap: 56px; padding: 32px 0 80px; }
  .hero-art { order: 2; width: 100%; max-width: 500px; }
  .hero-copy { text-align: left; align-items: flex-start; }
  .signin { align-items: flex-start; }
}

/* ---------- Steps ---------- */

.steps { padding: 20px 0 60px; }
.steps h2, .install h2 { font-size: clamp(28px, 3.4vw, 38px); margin-bottom: 22px; }
.step-cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .step-cards { grid-template-columns: repeat(3, 1fr); } }
.step-cards li { padding: 22px; border-radius: 22px; background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.step-cards h3 { font-size: 21px; }
.step-cards p { color: var(--muted); font-size: 15.5px; }
.num { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font: 700 18px var(--display); color: #2a1011; background: var(--coral); box-shadow: 0 0 24px rgba(232, 96, 79, 0.35); margin-bottom: 6px; }

/* ---------- Install ---------- */

.install { padding: 10px 0 70px; }
.install-card { max-width: 760px; margin: 0 auto; padding: clamp(22px, 4vw, 36px); border-radius: 26px; background: var(--surface); border: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.install-card h2 { margin-bottom: 0; }
.howto { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; color: var(--cream); font-size: 16px; }
.howto li::marker { color: var(--amber); font-weight: 800; }

/* ---------- Invite (ticket) ---------- */

.join { display: grid; place-items: center; padding-top: 10px; padding-bottom: 60px; }
.ticket {
  width: min(480px, 100%); border-radius: 28px; overflow: hidden;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line-2); box-shadow: 0 40px 90px rgba(0, 0, 0, 0.45);
  display: flex; flex-direction: column;
  animation: rise 0.6s var(--ease) both 0.1s;
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.ticket-top { padding: 30px 26px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; background: radial-gradient(90% 90% at 50% 0%, rgba(246, 178, 107, 0.16), transparent 70%); }
.host-avatar .avatar { width: 64px; height: 64px; box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--coral), 0 0 30px rgba(232, 96, 79, 0.4); }
.host-avatar .avatar--ph { font-size: 28px; }
.movie { font-size: clamp(26px, 5vw, 32px); }
.ticket-tear { height: 1px; margin: 0 22px; border-top: 2px dashed var(--line-2); position: relative; }
.ticket-tear::before, .ticket-tear::after { content: ''; position: absolute; top: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--bg); }
.ticket-tear::before { left: -35px; }
.ticket-tear::after { right: -35px; }
.progress { list-style: none; margin: 0; padding: 22px 26px 6px; display: flex; gap: 8px; counter-reset: s; }
.progress li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); counter-increment: s; }
.progress li::before { content: counter(s); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line-2); font: 700 14px var(--display); color: var(--muted); }
.progress li.current { color: var(--cream); }
.progress li.current::before { background: var(--amber); color: #2a1011; border-color: transparent; box-shadow: 0 0 20px rgba(246, 178, 107, 0.45); }
.progress li.done::before { content: '✓'; background: var(--coral); color: #2a1011; border-color: transparent; }
.step { padding: 18px 26px 28px; display: flex; flex-direction: column; gap: 14px; align-items: center; text-align: center; }
.step .howto { text-align: left; align-self: stretch; font-size: 15px; }
.ended { padding: 36px 26px; text-align: center; align-items: center; gap: 14px; }

/* ---------- Footer ---------- */

.footer { text-align: center; padding: 30px 16px 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; display: flex; flex-direction: column; gap: 4px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
