/* Challenge Me - public website (2026-11-09). Colours follow the app palette
   (mobile/src/theme/colors.ts: indigo primary, amber from the icon, green success).
   System fonts only, no external resources. */
:root {
  color-scheme: light;
  --bg: #fbfaff;
  --bg-alt: #f3f2fb;
  --surface: #ffffff;
  --text: #1c1b1f;
  --muted: #55545f;
  --border: #e4e1ec;
  --primary: #494bd6;
  --primary-hover: #3b3dc4;
  --on-primary: #ffffff;
  --primary-soft: #e1e0ff;
  --on-primary-soft: #2f2ebe;
  --accent: #f59e0b;
  --accent-soft: #ffdeb3;
  --success: #0e9f6e;
  --success-soft: #d3f8e7;
  --hero-glow: rgba(99, 102, 241, 0.18);
  --shadow: 0 1px 2px rgba(20, 20, 50, 0.05), 0 12px 32px rgba(20, 20, 80, 0.08);
  --radius: 20px;
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0a0a0f;
    --bg-alt: #121219;
    --surface: #17171f;
    --text: #e8e6ee;
    --muted: #a8a6b4;
    --border: #2a2a37;
    --primary: #c0c1ff;
    --primary-hover: #d6d6ff;
    --on-primary: #1d1d8a;
    --primary-soft: #2b2c6e;
    --on-primary-soft: #e1e0ff;
    --accent: #fbbf24;
    --accent-soft: #4a3510;
    --success: #34d399;
    --success-soft: #0f3a2b;
    --hero-glow: rgba(129, 131, 255, 0.16);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.45);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--text); background: var(--bg); }
img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-hover); }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--surface); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; color: var(--text); text-decoration: none; letter-spacing: -0.01em; }
.brand:hover { color: var(--text); }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.site-nav { display: flex; gap: 4px; margin-left: auto; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; font-weight: 500; padding: 8px 12px; border-radius: 10px; }
.site-nav a:hover { color: var(--text); background: var(--bg-alt); }
.lang-switch { display: flex; border: 1px solid var(--border); border-radius: 999px; padding: 3px; }
.lang-switch a { font-size: 0.8rem; font-weight: 700; text-decoration: none; color: var(--muted); padding: 4px 10px; border-radius: 999px; }
.lang-switch a[aria-current="true"] { background: var(--primary-soft); color: var(--on-primary-soft); }
.menu { display: none; margin-left: auto; position: relative; }
.menu summary { list-style: none; cursor: pointer; padding: 8px; border-radius: 10px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { width: 24px; height: 24px; }
.menu-panel { position: absolute; right: 0; top: 48px; min-width: 220px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; box-shadow: var(--shadow); padding: 8px; display: grid; }
.menu-panel a { color: var(--text); text-decoration: none; padding: 10px 12px; border-radius: 10px; }
.menu-panel a:hover { background: var(--bg-alt); }
@media (max-width: 1020px) {
  .site-nav { display: none; }
  .menu { display: block; }
  .site-header .lang-switch { margin-left: 0; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 12px 22px; border-radius: 14px; font-weight: 650;
  font-size: 1rem; text-decoration: none; border: 1px solid transparent; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-hover); color: var(--on-primary); }
.btn-ghost { border-color: var(--border); color: var(--text); background: var(--surface); }
.btn-ghost:hover { color: var(--text); border-color: var(--primary); }
.btn svg { width: 22px; height: 22px; flex: none; }
.store { cursor: default; background: var(--text); color: var(--bg); }
.store:hover { transform: none; color: var(--bg); }
.store small { display: block; font-size: 0.7rem; font-weight: 500; opacity: .75; line-height: 1.1; }
.store span { line-height: 1.2; text-align: left; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 96px; }
.hero::before { content: ""; position: absolute; inset: -30% -10% auto 30%; height: 720px;
  background: radial-gradient(closest-side, var(--hero-glow), transparent 70%); pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 650; color: var(--on-primary-soft);
  background: var(--primary-soft); border-radius: 999px; padding: 6px 14px; margin-bottom: 22px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -0.035em; margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero .lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; margin-bottom: 32px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hint { margin-top: 14px; font-size: 0.9rem; color: var(--muted); }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 36px 0 0; font-size: 0.92rem; color: var(--muted); }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust svg { width: 18px; height: 18px; color: var(--success); }
@media (max-width: 920px) {
  .hero { padding: 40px 0 64px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; }
}

/* ---------- phone mockup (decorative, aria-hidden) ---------- */
.phone-stage { position: relative; width: fit-content; margin: 0 auto; }
.phone { width: 316px; border-radius: 46px; padding: 12px; background: #111118; box-shadow: 0 30px 80px rgba(30, 30, 90, .28), inset 0 0 0 2px #2b2b38; }
.screen { position: relative; border-radius: 36px; overflow: hidden; background: #fcf8fd; color: #1c1b1f; padding: 44px 16px 18px; font-size: 13px; line-height: 1.35; }
.screen::before { content: ""; position: absolute; top: 12px; left: 50%; width: 90px; height: 24px; margin-left: -45px; border-radius: 14px; background: #111118; }
.scr-hello { font-size: 12px; color: #55545f; }
.scr-title { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 14px; }
.scr-streak { display: flex; align-items: center; gap: 12px; background: linear-gradient(135deg, #494bd6, #6d5df0); color: #fff; border-radius: 18px; padding: 14px; margin-bottom: 12px; }
.scr-streak svg { width: 34px; height: 34px; flex: none; }
.scr-streak b { font-size: 22px; display: block; line-height: 1; }
.scr-streak span { font-size: 11px; opacity: .85; }
.scr-week { display: flex; gap: 5px; margin-left: auto; }
.scr-week i { flex: none; width: 8px; height: 26px; border-radius: 5px; background: rgba(255, 255, 255, .28); }
.scr-week i.on { background: #fff; }
.scr-card { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid #ebe8f2; border-radius: 16px; padding: 12px; margin-bottom: 9px; }
.scr-card .dot { width: 36px; height: 36px; border-radius: 12px; flex: none; display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.scr-card .dot svg { width: 18px; height: 18px; }
.scr-card .body { flex: 1; min-width: 0; }
.scr-card .name { font-weight: 700; font-size: 13px; }
.scr-card .meta { font-size: 11px; color: #55545f; }
.scr-bar { height: 5px; background: #ecebf3; border-radius: 3px; margin-top: 6px; overflow: hidden; }
.scr-bar i { display: block; height: 100%; border-radius: 3px; }
.scr-card.c0 .dot { background: #e1e0ff; color: #2f2ebe; } .scr-card.c0 .scr-bar i { background: #494bd6; }
.scr-card.c1 .dot { background: #d3f8e7; color: #006c49; } .scr-card.c1 .scr-bar i { background: #10b981; }
.scr-card.c2 .dot { background: #ffdeb3; color: #653e00; } .scr-card.c2 .scr-bar i { background: #f59e0b; }
.scr-check { width: 32px; height: 32px; border-radius: 50%; border: 2px solid #c8c5d0; flex: none; display: grid; place-items: center; }
.scr-check.done { background: #10b981; border-color: #10b981; }
.scr-check svg { width: 16px; height: 16px; color: #fff; }
.notif { position: absolute; top: -22px; right: -84px; width: 236px; display: flex; gap: 10px; align-items: flex-start; background: var(--surface);
  color: var(--text); border: 1px solid var(--border); border-radius: 18px; padding: 12px 14px; box-shadow: var(--shadow); font-size: 12.5px; line-height: 1.35; }
.notif img { width: 30px; height: 30px; border-radius: 8px; flex: none; }
.notif b { display: block; font-size: 13px; }
.notif .act { display: inline-block; margin-top: 6px; font-weight: 700; color: var(--primary); }
.badge-float { position: absolute; bottom: -24px; left: -56px; display: flex; align-items: center; gap: 10px; background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: 16px; padding: 10px 14px; box-shadow: var(--shadow); font-size: 13px; font-weight: 650; }
.badge-float svg { width: 26px; height: 26px; color: var(--accent); }
@media (max-width: 520px) {
  .notif { right: -24px; top: -30px; width: 210px; }
  .badge-float { left: -24px; bottom: -20px; }
  .phone { width: 272px; }
}

/* ---------- sections ---------- */
.section { padding: 96px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 800; margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }
@media (max-width: 640px) { .section { padding: 64px 0; } .section-head { margin-bottom: 36px; } }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.step { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 26px; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--primary); color: var(--on-primary); font-weight: 800; margin-bottom: 18px; }
.step h3 { font-size: 1.2rem; margin-bottom: 10px; }
.step p { color: var(--muted); margin: 0; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 26px; }
.feature .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--primary-soft); color: var(--on-primary-soft); margin-bottom: 18px; }
.feature:nth-child(3n+2) .ic { background: var(--success-soft); color: var(--success); }
.feature:nth-child(3n) .ic { background: var(--accent-soft); color: var(--accent); }
.feature .ic svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.15rem; margin-bottom: 10px; }
.feature p { color: var(--muted); margin: 0; font-size: 0.98rem; }
@media (max-width: 920px) { .steps, .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .steps, .features { grid-template-columns: 1fr; } }

.ladder { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: end; max-width: 860px; margin: 0 auto; list-style: none; padding: 0; }
.rung { text-align: center; border-radius: var(--radius); padding: 28px 16px; background: var(--surface); border: 1px solid var(--border); }
.rung:nth-child(2) { padding-top: 52px; }
.rung:nth-child(3) { padding-top: 76px; background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.rung b { display: block; font-size: clamp(2.6rem, 6vw, 3.6rem); font-weight: 800; line-height: 1; letter-spacing: -0.04em; }
.rung span { display: block; font-weight: 650; margin: 4px 0 10px; opacity: .8; }
.rung em { font-style: normal; font-size: 0.95rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; list-style: none; padding: 0; margin: 0; }
.ch-card { display: flex; flex-direction: column; height: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 22px;
  color: var(--text); text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
.ch-card:hover { color: var(--text); border-color: var(--primary); transform: translateY(-2px); }
.ch-card h3 { font-size: 1.05rem; margin-bottom: 12px; }
.ch-card .more { margin-top: auto; padding-top: 14px; font-size: 0.9rem; font-weight: 650; color: var(--primary); }
.chip { display: inline-block; font-size: 0.82rem; font-weight: 650; color: var(--on-primary-soft); background: var(--primary-soft); border-radius: 999px; padding: 4px 12px; }

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 900px; margin: 0 auto; }
.plan-card { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 34px 30px; }
.plan-card.featured { border: 2px solid var(--primary); box-shadow: var(--shadow); }
.plan-card h3 { font-size: 1.5rem; margin-bottom: 6px; }
.plan-card .note { color: var(--muted); font-size: 0.95rem; margin-bottom: 22px; }
.plan-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.plan-card li { display: flex; gap: 10px; align-items: flex-start; }
.plan-card li svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--success); }
.price-note { text-align: center; color: var(--muted); font-size: 0.92rem; margin: 28px auto 0; max-width: 600px; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 4px 22px; }
.faq summary { cursor: pointer; list-style: none; font-weight: 650; font-size: 1.05rem; padding: 16px 0; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--primary); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 0 0 18px; }

.final { text-align: center; }
.final-box { background: linear-gradient(135deg, #3b3dc4, #6d5df0 60%, #8b5cf6); color: #fff; border-radius: 32px; padding: 64px 28px; }
.final-box h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; margin-bottom: 12px; }
.final-box p { opacity: .88; font-size: 1.1rem; margin-bottom: 28px; }
.final-box .store { background: #fff; color: #1c1b1f; }

/* ---------- showcase: badges, Card Studio, dares (2026-11-23; art is CSS only, aria-hidden) ---------- */
.shows { display: grid; gap: 96px; }
.show { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.show:nth-child(even) .show-text { order: 2; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 700; color: var(--on-primary-soft);
  background: var(--primary-soft); border-radius: 999px; padding: 6px 14px 6px 10px; margin-bottom: 18px; }
.kicker svg { width: 18px; height: 18px; }
.show-text h3 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 14px; }
.show-text > p { color: var(--muted); font-size: 1.08rem; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--success); }
.show-art { display: grid; justify-items: center; align-content: center; min-width: 0; padding: 36px 24px; border-radius: 32px;
  background: radial-gradient(closest-side at 50% 40%, var(--hero-glow), transparent 78%), var(--bg-alt); border: 1px solid var(--border); }
@media (max-width: 920px) {
  .shows { gap: 64px; }
  .show { grid-template-columns: 1fr; gap: 32px; }
  .show:nth-child(even) .show-text { order: 0; }
}

/* badge board: rarity tints follow the app (common .. legendary, secret) */
.badge-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; width: 100%; max-width: 380px; }
.bd { display: grid; justify-items: center; align-content: start; gap: 10px; text-align: center; background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px; padding: 18px 8px 12px; box-shadow: var(--shadow); }
.bd b { font-size: 0.78rem; line-height: 1.25; font-weight: 650; overflow-wrap: anywhere; }
.bd-medal { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; color: var(--on-primary-soft); background: var(--primary-soft);
  box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--primary-soft); }
.bd-medal svg { width: 26px; height: 26px; }
.bd.r-uncommon .bd-medal { color: var(--success); background: var(--success-soft); box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--success); }
.bd.r-rare .bd-medal { color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--accent), 0 0 0 8px var(--accent-soft); }
.bd.r-legendary .bd-medal { color: #4a2c00; background: linear-gradient(135deg, #fde68a, #f59e0b 60%, #d97706);
  box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px #f59e0b, 0 0 0 8px rgba(245, 158, 11, .35), 0 0 24px rgba(245, 158, 11, .5); }
.bd.r-secret { border-style: dashed; box-shadow: none; opacity: .75; }
.bd.r-secret .bd-medal { color: var(--muted); background: var(--bg-alt); box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--border); }
.bd-pins { display: flex; align-items: center; gap: 8px; margin-top: 24px; font-size: 0.85rem; font-weight: 650; color: var(--muted); }
.bd-pins span { margin-right: 4px; }
.bd-pins i { width: 24px; height: 24px; border-radius: 50%; background: var(--primary-soft); box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--primary); }
.bd-pins i.r-rare { background: var(--accent-soft); box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--accent); }
.bd-pins i.empty { background: transparent; box-shadow: none; border: 2px dashed var(--border); }

/* Card Studio: a card plus the tool panel */
.studio { width: 100%; max-width: 340px; display: grid; gap: 14px; }
.cs-card { position: relative; aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; padding: 22px; color: #fff;
  background: radial-gradient(circle at 78% 18%, #ffd27a 0 9%, rgba(255, 210, 122, 0) 10%), linear-gradient(170deg, #4f46e5 0%, #8b5cf6 45%, #f97316 100%);
  box-shadow: var(--shadow); }
.cs-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .45), transparent 55%); }
.cs-card > * { position: relative; z-index: 1; }
.cs-card .cs-badge { position: absolute; top: 18px; left: 18px; display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; background: rgba(255, 255, 255, .22);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border-radius: 999px; padding: 6px 12px 6px 8px; }
.cs-badge svg { width: 18px; height: 18px; }
.cs-title { font-size: 2rem; font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; }
.cs-sub { font-size: 0.95rem; opacity: .9; }
.cs-tools { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 14px; display: grid; gap: 12px; box-shadow: var(--shadow); }
.cs-label { font-size: 0.78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.cs-swatches { display: flex; gap: 8px; }
.cs-swatches i { width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(170deg, #4f46e5, #f97316); }
.cs-swatches i:nth-child(2) { filter: saturate(0); }
.cs-swatches i:nth-child(3) { filter: sepia(.85); }
.cs-swatches i:nth-child(4) { filter: contrast(1.35) saturate(1.4); }
.cs-swatches i:nth-child(5) { filter: hue-rotate(60deg) brightness(1.1); }
.cs-swatches i:first-child { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--primary); }
.cs-fonts { display: flex; flex-wrap: wrap; gap: 6px; }
.cs-fonts span { display: inline-flex; align-items: baseline; gap: 6px; font-size: 0.75rem; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 3px 10px; }
.cs-fonts b { font-size: 1.05rem; color: var(--text); }
.f-sans b { font-family: var(--font); }
.f-display b { font-family: var(--font); font-weight: 900; }
.f-serif b { font-family: Georgia, "Times New Roman", serif; }
.f-rounded b { font-family: ui-rounded, "Arial Rounded MT Bold", "Hiragino Maru Gothic ProN", var(--font); }
.f-hand b { font-family: "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive; font-weight: 400; }
.cs-share { display: flex; gap: 8px; }
.cs-share span { flex: 1; text-align: center; font-size: 0.82rem; font-weight: 700; color: var(--on-primary-soft); background: var(--primary-soft); border-radius: 10px; padding: 8px 4px; }

/* dare: the page the friend opens, who can accept, cheers */
.dare { width: 100%; max-width: 340px; display: grid; gap: 14px; }
.dr-card { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 18px; box-shadow: var(--shadow); display: grid; gap: 12px; }
.dr-from { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.dr-avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 800; }
.dr-img { display: grid; place-items: center; height: 120px; border-radius: 14px; color: #fff; background: linear-gradient(135deg, #3b3dc4, #8b5cf6 55%, #f97316); }
.dr-img svg { width: 46px; height: 46px; }
.dr-quote { border-left: 4px solid var(--primary); background: var(--bg-alt); border-radius: 10px; padding: 10px 14px; font-size: 1rem; }
.dr-accept { text-align: center; font-weight: 700; color: var(--on-primary); background: var(--primary); border-radius: 12px; padding: 12px; }
.dr-kind { display: flex; border: 1px solid var(--border); border-radius: 999px; padding: 3px; background: var(--surface); font-size: 0.78rem; font-weight: 700; }
.dr-kind span { flex: 1; text-align: center; padding: 7px 8px; border-radius: 999px; color: var(--muted); }
.dr-kind span.on { background: var(--primary-soft); color: var(--on-primary-soft); }
.dr-cheers { display: flex; align-items: center; gap: 8px; }
.dr-cheers span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); font-size: 1.2rem; }
.dr-cheers em { margin-left: auto; font-style: normal; font-size: 0.82rem; font-weight: 700; color: var(--primary); text-align: right; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 56px 0 40px; font-size: 0.95rem; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer ul a { color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
.site-footer ul a:hover { color: var(--primary); }
.site-footer .about { color: var(--muted); max-width: 320px; margin-top: 12px; }
.copy { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.85rem; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } .site-footer .cols > :first-child, .site-footer .cols > :last-child { grid-column: 1 / -1; } }

/* ---------- single pages: challenge, shared link ---------- */
.page { padding: 56px 0 88px; }
.crumbs { font-size: 0.9rem; color: var(--muted); margin-bottom: 28px; }
.crumbs a { color: var(--muted); }
.crumbs.after { margin: 20px 0 0; }
.detail { background: var(--surface); border: 1px solid var(--border); border-radius: 28px; padding: 40px 36px; box-shadow: var(--shadow); }
.detail h1 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); font-weight: 800; margin: 16px 0 16px; }
.detail .desc { font-size: 1.1rem; }
.detail .stat { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.detail .stat svg { width: 18px; height: 18px; color: var(--success); }
.join { margin-top: 28px; background: var(--bg-alt); border-radius: 20px; padding: 26px; }
.join h2 { font-size: 1.25rem; margin-bottom: 8px; }
.join p { color: var(--muted); }
.center { text-align: center; }
.detail .by { margin: 18px 0 0; }
.app-mark { width: 88px; height: 88px; border-radius: 22px; margin: 0 auto; box-shadow: var(--shadow); }
/* share page with an invite picture (photo cards plan, step 4) */
.invite-card { display: block; width: 100%; max-width: 360px; height: auto; margin: 0 auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.invite-quote { margin: 12px auto 0; max-width: 32em; padding: 12px 18px; border-left: 4px solid var(--primary); background: var(--surface); border-radius: 12px; font-size: 1.1rem; text-align: left; overflow-wrap: anywhere; }
.invite-title { margin: 20px 0 4px; font-size: 1.35rem; }
.report { margin: 28px auto 0; max-width: 32em; text-align: left; font-size: 0.95rem; }
.report summary { cursor: pointer; color: var(--muted); text-align: center; min-height: 44px; line-height: 44px; }
.report fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 6px; }
.report label { display: block; min-height: 32px; }
.report textarea { display: block; width: 100%; margin-top: 4px; padding: 8px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; }
.report .report-note { margin: 12px 0; }
@media (max-width: 640px) { .detail { padding: 28px 22px; border-radius: 22px; } }

/* ---------- legal pages (privacy, terms, delete-account) ---------- */
.legal { padding: 48px 0 80px; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 800; margin-bottom: 8px; }
.legal h2 { font-size: 1.25rem; margin: 36px 0 10px; }
.legal h3 { font-size: 1.05rem; margin: 24px 0 8px; }
.legal p, .legal li { color: var(--text); }
.legal .disclaimer { background: var(--accent-soft); border-radius: 14px; padding: 14px 16px; font-size: 0.92rem; margin: 0 0 22px; }
.legal .effective { color: var(--muted); font-size: 0.92rem; margin-bottom: 28px; }
.legal .app { color: var(--primary); font-weight: 650; }
.legal hr { border: none; border-top: 1px solid var(--border); margin: 32px 0; }
.legal form { margin: 12px 0 24px; }
.legal label { display: block; font-weight: 650; margin: 14px 0 6px; }
.legal input, .legal textarea { width: 100%; padding: 12px 14px; font: inherit; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: inherit; }
.legal button { margin-top: 16px; min-height: 48px; padding: 10px 22px; font: inherit; font-weight: 650; color: var(--on-primary); background: var(--primary); border: 0; border-radius: 12px; cursor: pointer; }
.legal button[disabled] { opacity: .6; cursor: default; }
.legal .status { margin-top: 12px; font-size: 0.95rem; }
.legal ol { padding-left: 22px; }
.legal li { margin: 0 0 6px; }
.mini-header { border-bottom: 1px solid var(--border); }
.mini-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.mini-header .back { font-size: 0.92rem; text-decoration: none; }
.mini-footer { border-top: 1px solid var(--border); padding: 28px 0 36px; color: var(--muted); font-size: 0.88rem; }
.mini-footer a { margin-right: 14px; }
.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; }
