/* JoyHop site. Tokens mirror Figma collection "Color" (Light/Dark), see docs/design/joyhop-swiftui-handoff.md */
@font-face {
  font-family: "Manrope";
  src: url("/assets/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --text-primary: #241A2E;
  --text-secondary: #716773;
  --text-link: #CC2445;
  --text-on-accent: #241A2E;
  --bg-screen: #FFF9F3;
  --bg-surface: #FFFDF9;
  --bg-muted: #F1ECE7;
  --bg-accent: #DDF988;
  --bg-live: #CC2445;
  --border: #E9E1E6;
  --tint-rose: #FFE8ED;
  --tint-violet: #EDEBFF;
  --tint-lime: #EDFCD9;
  --tint-amber: #FFF5E0;
  --seller-bg: #241A2E;
  --seller-text: #FFF9F3;
  --shadow-phone: 0 24px 60px rgba(36, 26, 46, .18);
  --radius-card: 24px;
  --radius-block: 32px;
  --gutter: 80px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text-primary: #F7F1EC;
    --text-secondary: #B3A9B6;
    --text-link: #FF7A8F;
    --bg-screen: #15101B;
    --bg-surface: #211A29;
    --bg-muted: #2E2536;
    --border: #3A3042;
    --tint-rose: #3A1A24;
    --tint-violet: #25213D;
    --tint-lime: #1F2A16;
    --tint-amber: #33281A;
    --seller-bg: #211A29;
    --shadow-phone: 0 24px 60px rgba(0, 0, 0, .45);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg-screen);
  color: var(--text-primary);
  font: 500 16px/1.5 "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: -.003em;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
a { color: var(--text-link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--text-primary); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: calc(1280px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 16px; top: -100px; z-index: 10; background: var(--bg-accent); color: var(--text-on-accent); padding: 12px 20px; border-radius: 999px; font-weight: 800; }
.skip:focus { top: 16px; }
.icon { width: 28px; height: 28px; flex: none; }

/* Header */
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 20px; padding-bottom: 20px; }
.logo { display: inline-flex; border-radius: 8px; }
.logo img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a { color: var(--text-primary); font-weight: 800; text-decoration: none; }
.nav a:hover { text-decoration: underline; }

/* Buttons (Figma: Button 2:207) */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 28px; border-radius: 999px;
  font-weight: 800; font-size: 16px; letter-spacing: -.006em;
  text-decoration: none; white-space: nowrap;
  border: 1.5px solid transparent;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-primary { background: var(--bg-accent); color: var(--text-on-accent); }
.btn-primary:hover { background: #D2F270; }
.btn-secondary { border-color: currentColor; color: var(--text-primary); background: transparent; }
.btn-secondary:hover { background: var(--bg-muted); }
.nav .btn { min-height: 48px; padding: 0 24px; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }

/* Badge (Figma: Badge 5:36) */
.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 11px; line-height: 13px; font-weight: 800; letter-spacing: .06em; }
.badge-live { background: var(--bg-live); color: #fff; }
.badge-success { background: var(--bg-accent); color: var(--text-on-accent); letter-spacing: .01em; }

/* Hero */
.hero .wrap { display: grid; grid-template-columns: minmax(0, 640px) minmax(0, 1fr); gap: 48px; align-items: center; padding-top: 56px; padding-bottom: 96px; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
h1 { font-size: clamp(40px, 5.2vw, 64px); line-height: 1.09; font-weight: 800; letter-spacing: -.03em; }
.lead { font-size: 20px; line-height: 30px; color: var(--text-secondary); max-width: 560px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.note { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .002em; color: var(--text-secondary); }

.hero-art { position: relative; width: 100%; max-width: 592px; aspect-ratio: 592 / 640; justify-self: end; }
.hero-art::before { content: ""; position: absolute; left: 4.4%; top: 11%; width: 91%; aspect-ratio: 1; border-radius: 50%; background: var(--bg-accent); }
.phone { position: absolute; margin: 0; padding: 2.6%; background: #241A2E; border-radius: 15% / 7%; box-shadow: var(--shadow-phone); }
.phone img { width: 100%; height: auto; border-radius: 12.5% / 5.8%; }
@media (prefers-color-scheme: dark) { .phone { outline: 1px solid #3A3042; } }
.phone-home { left: 3.4%; top: 14%; width: 47.9%; }
.phone-live { left: 50.7%; top: 3%; width: 50%; }

/* Sections */
.section { padding: 96px 0; }
.section-surface { background: var(--bg-surface); }
.section-head { display: grid; gap: 12px; margin-bottom: 48px; }
h2 { font-size: clamp(32px, 3.4vw, 44px); line-height: 1.18; font-weight: 800; letter-spacing: -.025em; }
.section-head p { font-size: 20px; line-height: 30px; color: var(--text-secondary); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; list-style: none; margin: 0; padding: 0; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; list-style: none; margin: 0; padding: 0; }

.step { background: var(--bg-screen); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 32px; display: grid; gap: 16px; align-content: start; }
.step-top { display: flex; align-items: center; justify-content: space-between; }
.step-num { width: 48px; height: 48px; border-radius: 50%; background: var(--bg-accent); color: var(--text-on-accent); display: grid; place-items: center; font-size: 18px; font-weight: 700; }
h3 { font-size: 26px; line-height: 32px; font-weight: 800; letter-spacing: -.02em; }
.step p { color: var(--text-secondary); }

.feature { border-radius: var(--radius-card); padding: 28px 28px 32px; display: grid; gap: 12px; align-content: start; }
.feature .medal { width: 56px; height: 56px; border-radius: 50%; background: var(--bg-surface); display: grid; place-items: center; margin-bottom: 8px; }
.feature h3 { font-size: 18px; line-height: 24px; font-weight: 700; letter-spacing: -.012em; }
.feature p { font-size: 14px; line-height: 20px; color: var(--text-secondary); }
.tint-rose { background: var(--tint-rose); }
.tint-amber { background: var(--tint-amber); }
.tint-violet { background: var(--tint-violet); }
.tint-lime { background: var(--tint-lime); }

/* Sellers */
.sellers { padding: 24px 0 96px; }
.sellers-card { background: var(--seller-bg); color: var(--seller-text); border-radius: var(--radius-block); padding: 64px; display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 1fr); gap: 64px; align-items: center; }
@media (prefers-color-scheme: dark) { .sellers-card { border: 1px solid var(--border); } }
.sellers-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.sellers-copy p { font-size: 18px; line-height: 28px; opacity: .8; }
.sellers-card :focus-visible { outline-color: var(--bg-accent); }
.seller-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.seller-item { display: flex; gap: 20px; padding: 24px; border-radius: var(--radius-card); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.seller-item .medal { width: 52px; height: 52px; border-radius: 50%; background: var(--bg-accent); color: var(--text-on-accent); display: grid; place-items: center; flex: none; }
.seller-item .icon { width: 26px; height: 26px; }
.seller-item h3 { font-size: 18px; line-height: 24px; font-weight: 700; letter-spacing: -.012em; margin-bottom: 4px; }
.seller-item p { font-size: 14px; line-height: 20px; opacity: .78; }

/* Download */
.download { padding: 0 0 96px; }
.download-card { background: var(--bg-accent); color: var(--text-on-accent); border-radius: var(--radius-block); padding: 64px; display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.download-copy { max-width: 680px; display: flex; flex-direction: column; gap: 16px; }
.download-copy p { font-size: 18px; line-height: 28px; }
.download-card .btn-secondary { color: var(--text-on-accent); }
.download-card .btn-secondary:hover { background: rgba(36, 26, 46, .08); }
.download-card :focus-visible { outline-color: var(--text-on-accent); }
.download-card .mail { color: var(--text-on-accent); font-weight: 800; }
.download-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; padding-top: 8px; }
.download-mark { width: 160px; height: 160px; flex: none; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); }
.site-footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 32px; padding-bottom: 40px; }
.footer-brand { display: flex; align-items: center; gap: 16px; font-size: 14px; line-height: 20px; color: var(--text-secondary); }
.footer-brand img { height: 36px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 28px; list-style: none; margin: 0; padding: 0; font-size: 14px; line-height: 20px; }
.footer-links a { color: var(--text-primary); }

/* Legal / 404 */
.article { max-width: calc(720px + 2 * var(--gutter)); padding-top: 64px; padding-bottom: 96px; }
.article h1 { font-size: clamp(34px, 4vw, 48px); line-height: 1.17; letter-spacing: -.025em; }
.article .edition { margin-top: 12px; font-size: 14px; line-height: 20px; color: var(--text-secondary); }
.article .intro { margin-top: 32px; font-size: 18px; line-height: 28px; }
.article h2 { font-size: 24px; line-height: 30px; letter-spacing: -.015em; margin-top: 40px; margin-bottom: 12px; }
.article p + p { margin-top: 12px; }
.article ul { margin: 0; padding-left: 22px; display: grid; gap: 10px; }
.placeholder { background: var(--tint-amber); border-radius: 4px; padding: 0 2px; }
.notfound { min-height: 60vh; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 20px; padding-top: 64px; padding-bottom: 96px; }

/* Tablet */
@media (max-width: 1080px) {
  :root { --gutter: 40px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .sellers-card { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 24px; padding-bottom: 48px; }
  .hero-art { justify-self: center; max-width: 440px; }
  .grid-3 { grid-template-columns: 1fr; }
}
/* Mobile (Figma frame 390) */
@media (max-width: 640px) {
  :root { --gutter: 24px; }
  .logo img { height: 36px; }
  .nav { gap: 0; }
  .nav .nav-link { display: none; }
  .nav .btn { min-height: 0; padding: 8px 0; border: 0; color: var(--text-link); background: none; }
  .hero-copy { gap: 20px; }
  .lead { font-size: 17px; line-height: 26px; }
  .ctas { width: 100%; flex-direction: column; }
  .ctas .btn { width: 100%; }
  .note { align-self: center; }
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 28px; gap: 8px; }
  .section-head p { font-size: 17px; line-height: 26px; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 16px; }
  .step, .feature { padding: 24px; }
  .sellers { padding: 8px 0 56px; }
  .sellers .wrap, .download .wrap { padding: 0 16px; }
  .sellers-card { padding: 40px 24px; border-radius: 28px; gap: 32px; }
  .sellers-copy .btn { width: 100%; }
  .seller-item { padding: 18px; gap: 16px; }
  .download { padding-bottom: 56px; }
  .download-card { flex-direction: column-reverse; align-items: flex-start; padding: 40px 24px; border-radius: 28px; gap: 28px; }
  .download-mark { width: 96px; height: 96px; }
  .download-row { flex-direction: column; align-items: stretch; text-align: center; }
  .download-row .btn { width: 100%; white-space: normal; padding: 0 16px; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
  .footer-links { flex-direction: column; gap: 14px; }
  .article { padding-top: 32px; padding-bottom: 64px; }
}
