/* ─────────────────────────────────────────────
   Moody — Shared Stylesheet
   Used by: index.html, privacy.html
───────────────────────────────────────────── */

/* ── Design tokens ── */
:root {
    --bg: #0a0a0f;
    --bg2: #0f0f1a;
    --surface: #14141f;
    --surface2: #1a1a28;
    --border: rgba(255,255,255,0.07);
    --accent: #7b6ef6;
    --accent2: #a594f9;
    --gold: #f0b429;
    --teal: #3dd6c8;
    --text: #f0eeff;
    --muted: rgba(240,238,255,0.45);
    --muted2: rgba(240,238,255,0.2);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-weight: 300;
    line-height: 1.7;
    overflow-x: hidden;
}

/* ── Stars background ── */
.stars {
    position:fixed; inset:0; z-index:-1; pointer-events:none;
    background-image:
        radial-gradient(1px 1px at 10% 15%, rgba(255,255,255,0.35) 0%, transparent 100%),
        radial-gradient(1px 1px at 25% 40%, rgba(255,255,255,0.25) 0%, transparent 100%),
        radial-gradient(1px 1px at 45% 10%, rgba(255,255,255,0.4)  0%, transparent 100%),
        radial-gradient(1px 1px at 60% 30%, rgba(255,255,255,0.25) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 15% 70%, rgba(165,148,249,0.5) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 80% 75%, rgba(240,180,41,0.4)  0%, transparent 100%);
}

/* ── Shared nav elements ── */
.nav-logo { font-family:'Fraunces',serif; font-size:1.5rem; font-weight:600; letter-spacing:-0.02em; color:var(--text); text-decoration:none; }
.nav-logo span { color:var(--accent2); }
.nav-cta { background:var(--accent); color:#fff; border:none; padding:10px 24px; border-radius:100px; font-size:0.875rem; font-family:'DM Sans',sans-serif; font-weight:500; cursor:pointer; text-decoration:none; transition:background 0.2s,transform 0.15s; display:inline-block; text-align:center; }
.nav-cta:hover { background:var(--accent2); transform:translateY(-1px); }

/* ── Layout ── */
section { padding:100px 24px; }
.container { max-width:1100px; margin:0 auto; }
.section-label { display:inline-block; font-size:0.7rem; letter-spacing:0.15em; text-transform:uppercase; color:var(--accent2); margin-bottom:16px; font-weight:500; }
h2.section-title { font-family:'Fraunces',serif; font-size:clamp(2rem,5vw,3.5rem); font-weight:400; line-height:1.1; letter-spacing:-0.025em; max-width:600px; }
h2.section-title em { font-style:italic; color:var(--accent2); }
.section-body { color:var(--muted); max-width:540px; margin-top:20px; font-size:1rem; line-height:1.8; }

/* ── Footer (shared) ── */
footer { padding:60px 48px 40px; border-top:1px solid var(--border); display:flex; flex-direction:column; gap:32px; }
.footer-top { display:flex; justify-content:space-between; align-items:flex-start; }
.footer-brand .nav-logo { font-size:1.25rem; display:block; margin-bottom:10px; }
.footer-brand p { color:var(--muted); font-size:0.8125rem; max-width:280px; line-height:1.6; }
.footer-links { display:flex; gap:32px; list-style:none; }
.footer-links a { color:var(--muted); text-decoration:none; font-size:0.8125rem; transition:color 0.2s; }
.footer-links a:hover { color:var(--text); }
.footer-bottom { display:flex; justify-content:space-between; align-items:center; padding-top:24px; border-top:1px solid var(--border); }
.footer-bottom p { color:var(--muted2); font-size:0.75rem; }

/* ── Keyframe animations (shared) ── */
@keyframes fadeUp  { from{opacity:0;transform:translateY(24px)} to{opacity:1;transform:translateY(0)} }
@keyframes ticker  { from{transform:translateX(0)} to{transform:translateX(-50%)} }
@keyframes morphBlob { 0%,100%{border-radius:50% 40% 60% 44%/52% 44% 58% 46%} 33%{border-radius:60% 44% 50% 52%/44% 56% 46% 58%} 66%{border-radius:44% 58% 44% 60%/56% 44% 54% 46%} }
@keyframes glow    { 0%,100%{box-shadow:0 0 40px rgba(165,212,40,0.3)} 50%{box-shadow:0 0 70px rgba(165,212,40,0.5)} }


/* ══════════════════════════════════════════════
   INDEX.HTML — specific styles
══════════════════════════════════════════════ */

/* ── Top nav (index) ── */
nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 20px 48px;
    display: flex; align-items: center; justify-content: space-between;
    background: rgba(10,10,15,0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}
.nav-links { display:flex; gap:36px; list-style:none; }
.nav-links a { color:var(--muted); text-decoration:none; font-size:0.875rem; font-weight:400; letter-spacing:0.02em; transition:color 0.2s; }
.nav-links a:hover { color:var(--text); }

/* ── Hero ── */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    justify-items: center;
    gap: 60px;
    padding: 120px 8vw 80px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative; z-index: 2;
    display: flex; flex-direction: column; align-items: flex-start;
    text-align: left;
    width: 100%;
}

.hero-blob-col {
    position: relative; z-index: 2;
    display: flex; align-items: center; justify-content: center;
    animation: fadeUp 1s 0.15s ease both;
    width: 100%;
}

#moodCanvas {
    width: min(44vw, 600px);
    height: min(44vw, 600px);
    margin-left: 0;
    display: block;
}
.hero-blob-col::before {
    content: '';
    position: absolute;
    width: 70%; height: 70%;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(123,110,246,0.18) 0%, transparent 70%);
    filter: blur(40px);
    pointer-events: none;
}

.hero-eyebrow {
    display:inline-flex; align-items:center; gap:8px;
    background:rgba(123,110,246,0.12); border:1px solid rgba(123,110,246,0.25);
    border-radius:100px; padding:6px 16px;
    font-size:0.75rem; font-weight:500; letter-spacing:0.08em; text-transform:uppercase;
    color:var(--accent2); margin-bottom:32px; animation:fadeUp 0.8s ease both;
}
.hero-eyebrow::before { content:'✦'; }
h1.hero-title {
    font-family:'Fraunces',serif;
    font-size:clamp(2.8rem,5.5vw,5.5rem);
    font-weight:400; line-height:1.05; letter-spacing:-0.03em;
    animation:fadeUp 0.9s 0.1s ease both;
}
h1.hero-title em { font-style:italic; color:var(--accent2); }
h1.hero-title .gold { color:var(--gold); }
.hero-sub {
    color:var(--muted); font-size:1rem; margin-top:24px; line-height:1.8;
    max-width:420px;
    animation:fadeUp 1s 0.2s ease both;
}
.hero-mood-label {
    display:inline-flex; align-items:center; gap:10px; margin-top:28px;
    font-family:'Fraunces',serif; font-size:1rem; font-weight:400; font-style:italic;
    color:rgba(240,238,255,0.45); animation:fadeUp 1s 0.25s ease both; min-height:1.6rem;
}
.hero-mood-label .mood-dot {
    width:7px; height:7px; border-radius:50%; background:var(--accent2);
    transition:background 1.2s; flex-shrink:0;
}
.hero-actions {
    display:flex; gap:16px; align-items:center; margin-top:44px;
    animation:fadeUp 1s 0.3s ease both;
}
.btn-primary { background:var(--accent); color:#fff; padding:15px 32px; border-radius:100px; text-decoration:none; font-size:0.9375rem; font-weight:500; transition:background 0.2s,transform 0.15s,box-shadow 0.2s; box-shadow:0 4px 32px rgba(123,110,246,0.35); }
.btn-primary:hover { background:var(--accent2); transform:translateY(-2px); box-shadow:0 8px 40px rgba(123,110,246,0.45); }
.btn-secondary { color:var(--muted); text-decoration:none; font-size:0.875rem; border-bottom:1px solid var(--muted2); padding-bottom:2px; transition:color 0.2s; }
.btn-secondary:hover { color:var(--text); }

/* ── Ticker ── */
.ticker-wrap { padding:32px 0; width:100vw; overflow:hidden; position:relative; }
.ticker-wrap::before, .ticker-wrap::after { content:''; position:absolute; top:0; bottom:0; width:120px; z-index:2; }
.ticker-wrap::before { left:0; background:linear-gradient(to right, var(--bg), transparent); }
.ticker-wrap::after  { right:0; background:linear-gradient(to left,  var(--bg), transparent); }
.ticker { display:flex; gap:16px; animation:ticker 30s linear infinite; width:max-content; }
.ticker-item { display:flex; align-items:center; gap:10px; background:var(--surface); border:1px solid var(--border); border-radius:100px; padding:10px 20px; white-space:nowrap; font-size:0.8125rem; color:var(--muted); }
.ticker-item .badge { font-size:1.1rem; }

/* ── About ── */
.about-grid { display:grid; grid-template-columns:1fr 1fr; gap:60px; align-items:start; margin-top:80px; }
.about-text h3 { font-family:'Fraunces',serif; font-size:1.875rem; font-weight:400; margin-bottom:16px; line-height:1.2; }
.about-text p { color:var(--muted); line-height:1.8; font-size:0.9375rem; }
.about-text p+p { margin-top:12px; }
.feature-pills { display:flex; flex-wrap:wrap; gap:10px; margin-top:24px; }
.pill { background:var(--surface); border:1px solid var(--border); border-radius:100px; padding:7px 16px; font-size:0.8125rem; color:var(--muted); }

/* ── Screenshots / Features section ── */
.screenshots-section { background:var(--bg); border-top:1px solid var(--border); overflow:hidden; }
.screenshots-header { text-align:center; max-width:640px; margin:0 auto; }
.screenshots-header .section-body { margin:20px auto 0; }

.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    padding: 80px 0;
    border-bottom: 1px solid var(--border);
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.feature-row:last-child { border-bottom: none; }
.feature-row.visible { opacity: 1; transform: translateY(0); }
.feature-row.reverse .feature-text { order: 1; }
.feature-row.reverse .feature-media { order: 2; }

.feature-text { display:flex; flex-direction:column; justify-content:center; }
.feature-text .feature-label {
    font-size:0.7rem; letter-spacing:0.15em; text-transform:uppercase;
    color:var(--accent2); font-weight:500; margin-bottom:16px;
}
.feature-text h3 {
    font-family:'Fraunces',serif; font-size:clamp(1.75rem,3vw,2.5rem);
    font-weight:400; line-height:1.15; letter-spacing:-0.02em; margin-bottom:20px;
}
.feature-text h3 em { font-style:italic; color:var(--accent2); }
.feature-text p { color:var(--muted); font-size:0.9375rem; line-height:1.8; max-width:440px; }

/* ── devices.css integration ── */
.feature-media {
    display:flex; align-items:center; justify-content:center; position:relative;
}
.feature-media::before {
    content:'';
    position:absolute;
    width:130%; height:130%;
    border-radius:50%;
    background: radial-gradient(ellipse at center, rgba(123,110,246,0.13) 0%, transparent 65%);
    filter:blur(40px);
    pointer-events:none;
    z-index:0;
}
.device-scaler {
    --scale: 0.72;
    --device-w: 430px;
    --device-h: 932px;
    width:  calc(var(--device-w) * var(--scale));
    height: calc(var(--device-h) * var(--scale));
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}
.device-scaler .device {
    transform: scale(var(--scale));
    transform-origin: center top;
    flex-shrink: 0;
    filter: drop-shadow(0 0 28px rgba(123,110,246,0.55)) drop-shadow(0 0 60px rgba(123,110,246,0.25));
}
.device .device-screen { object-fit: cover; }
.phone-screen {
    width:100%; height:100%;
    display:flex; flex-direction:column; align-items:center; justify-content:center;
    gap:12px;
    background:linear-gradient(160deg, var(--surface2) 0%, var(--surface) 60%, var(--bg) 100%);
}
.phone-screen .ph-icon  { font-size:2.25rem; opacity:0.25; }
.phone-screen .ph-label { font-size:0.7rem; color:var(--muted2); letter-spacing:0.06em; }

/* ── Autoplay-on-scroll video ── */
.scroll-video-section { position: relative; padding: 100px 24px; }
.scroll-video-bg {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(123,110,246,0.07) 0%, transparent 70%);
    pointer-events: none;
}
.scroll-video-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    max-width: 1100px;
    width: 100%;
    padding: 0 64px;
    position: relative;
    z-index: 2;
    margin: 0 auto;
}
.video-replay-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 48px;
    background: rgba(123,110,246,0.12);
    border: 1px solid rgba(123,110,246,0.25);
    color: var(--accent2);
    border-radius: 100px;
    padding: 8px 18px;
    font-size: 0.8rem;
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.video-replay-btn:hover {
    background: rgba(123,110,246,0.22);
    border-color: rgba(123,110,246,0.45);
    transform: translateY(-1px);
}
.video-replay-btn svg { width: 13px; height: 13px; fill: currentColor; flex-shrink: 0; }
.scroll-video-text { display:flex; flex-direction:column; gap:0; }
.scroll-video-text .feature-label {
    font-size:0.7rem; letter-spacing:0.15em; text-transform:uppercase;
    color:var(--accent2); font-weight:500; margin-bottom:16px;
}
.scroll-video-caption { overflow: hidden; position: relative; min-height: 180px; }
.caption-slide {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; justify-content: flex-start;
    opacity: 0; transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
}
.caption-slide.active { opacity: 1; transform: translateY(0); pointer-events: auto; }
.caption-slide h3 {
    font-family:'Fraunces',serif;
    font-size:clamp(1.75rem,3vw,2.5rem);
    font-weight:400; line-height:1.15; letter-spacing:-0.02em; margin-bottom:16px;
}
.caption-slide h3 em { font-style:italic; color:var(--accent2); }
.caption-slide p { color:var(--muted); font-size:0.9375rem; line-height:1.8; max-width:420px; }

.scroll-progress-dots { display: flex; gap: 8px; margin-top: 32px; }
.scroll-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--muted2);
    transition: background 0.3s, width 0.3s;
}
.scroll-dot.active { background: var(--accent2); width: 24px; border-radius: 3px; }
.scroll-dot.active[style*="--dot-active"] { background: var(--dot-active, var(--accent2)); }

.sv-reverse { direction: rtl; }
.sv-reverse > * { direction: ltr; }

.scroll-video-phone {
    display:flex; align-items:flex-start; justify-content:center; position:relative;
}
.scroll-video-phone::before {
    content:''; position:absolute; width:130%; height:130%;
    border-radius:50%;
    background:radial-gradient(ellipse at center, rgba(123,110,246,0.1) 0%, transparent 65%);
    filter:blur(30px); pointer-events:none; z-index:-1;
}
.scroll-video-el { width:100%; height:100%; object-fit:cover; display:block; }
.video-placeholder {
    width:100%; height:100%;
    display:flex; flex-direction:column; align-items:center; justify-content:center; gap:16px;
    background:linear-gradient(160deg, var(--surface2) 0%, #1a1530 100%);
}
.video-placeholder .vp-icon { font-size:2.5rem; opacity:0.3; }
.video-placeholder .vp-label { font-size:0.7rem; color:var(--muted2); letter-spacing:0.06em; }
.video-placeholder .vp-bar { width:60%; height:3px; background:var(--surface); border-radius:2px; overflow:hidden; margin-top:8px; }
.video-placeholder .vp-progress { height:100%; background:var(--accent); width: 0%; transition: width 0.1s linear; border-radius:2px; }

/* ── Awards ── */
.awards-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-top:60px; }
.award-card { background:var(--surface); border:1px solid var(--border); border-radius:20px; padding:28px 20px; text-align:center; transition:transform 0.2s,border-color 0.2s; position:relative; overflow:hidden; }
.award-card::before { content:''; position:absolute; inset:0; background:radial-gradient(ellipse at 50% 0%, rgba(123,110,246,0.1), transparent 70%); opacity:0; transition:opacity 0.3s; }
.award-card:hover { transform:translateY(-4px); border-color:rgba(123,110,246,0.3); }
.award-card:hover::before { opacity:1; }
.award-icon { font-size:2.5rem; margin-bottom:14px; display:block; }
.award-name { font-size:0.875rem; font-weight:500; margin-bottom:6px; }
.award-desc { font-size:0.75rem; color:var(--muted); line-height:1.5; }
.award-count { display:inline-block; background:rgba(123,110,246,0.15); color:var(--accent2); border-radius:100px; padding:3px 10px; font-size:0.7rem; font-weight:500; margin-top:10px; }

/* ── Medal cards ── */
.medals-section { background:var(--bg); }
.medals-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 60px; }
.medal-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    display: flex; flex-direction: column; align-items: center;
    padding: 0 0 20px;
    transition:
        transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
        border-color 0.3s,
        box-shadow 0.3s;
}
.medal-card:hover {
    transform: translateY(-8px);
    border-color: rgba(123,110,246,0.35);
    box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}
.medal-img-wrap {
    width: 100%; aspect-ratio: 1; overflow: hidden; position: relative;
    background: radial-gradient(ellipse at 50% 60%, rgba(123,110,246,0.12) 0%, transparent 70%);
    display: flex; align-items: center; justify-content: center;
}
.medal-img-wrap img {
    width: 78%; height: 78%; object-fit: contain; display: block;
    transition: transform 0.5s cubic-bezier(0.34, 1.4, 0.64, 1);
    filter: drop-shadow(0 8px 24px rgba(0,0,0,0.55));
}
.medal-card:hover .medal-img-wrap img { transform: scale(1.08) translateY(-3px); }
.medal-img-wrap::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(125deg, transparent 35%, rgba(255,255,255,0.13) 50%, transparent 65%);
    transform: translateX(-100%); transition: transform 0s; pointer-events: none;
}
.medal-card:hover .medal-img-wrap::after { transform: translateX(100%); transition: transform 0.55s ease; }
.medal-placeholder {
    width: 100%; height: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
}
.medal-placeholder .ph-emoji { font-size: 2.5rem; opacity: 0.25; }
.medal-placeholder .ph-hint  { font-size: 0.7rem; color: var(--muted2); letter-spacing: 0.05em; }
.medal-name  { font-size:0.875rem; font-weight:500; margin-top:14px; text-align:center; padding:0 16px; }
.medal-desc  { font-size:0.75rem; color:var(--muted); margin-top:4px; text-align:center; padding:0 16px; line-height:1.5; }
.medal-count { display:inline-block; background:rgba(123,110,246,0.15); color:var(--accent2); border-radius:100px; padding:3px 10px; font-size:0.7rem; font-weight:500; margin-top:10px; }

/* ── Privacy section (on index page) ── */
.privacy-section { background:var(--bg2); border-top:1px solid var(--border); }
.privacy-shield { display:flex; align-items:center; gap:8px; background:rgba(61,214,200,0.08); border:1px solid rgba(61,214,200,0.2); border-radius:16px; padding:20px 24px; margin-bottom:48px; max-width:600px; }
.privacy-shield .shield-icon { font-size:1.5rem; }
.privacy-shield p { font-size:0.875rem; color:var(--teal); line-height:1.6; }
.privacy-cards { display:grid; grid-template-columns:repeat(2,1fr); gap:16px; margin-top:48px; }
.privacy-card { background:var(--surface); border:1px solid var(--border); border-radius:20px; padding:32px; }
.privacy-card h4 { font-family:'Fraunces',serif; font-size:1.125rem; font-weight:400; margin-bottom:12px; }
.privacy-card p { color:var(--muted); font-size:0.875rem; line-height:1.75; }
.privacy-policy-link { margin-top:48px; }
.privacy-policy-link a {
    display:inline-flex; align-items:center; gap:8px;
    color:var(--accent2); text-decoration:none; font-size:0.875rem; font-weight:500;
    border-bottom:1px solid rgba(165,148,249,0.3); padding-bottom:2px;
    transition:color 0.2s, border-color 0.2s;
}
.privacy-policy-link a:hover { color:var(--text); border-color:rgba(240,238,255,0.3); }

/* ── Mood divider ── */
.mood-divider { text-align:center; padding:60px 24px; }
.mood-blob { display:inline-block; width:80px; height:80px; background:radial-gradient(ellipse at 40% 40%, #c8e63a, #6b8a00); border-radius:50% 40% 60% 44%/52% 44% 58% 46%; animation:morphBlob 6s ease-in-out infinite,glow 6s ease-in-out infinite; box-shadow:0 0 40px rgba(165,212,40,0.3); }


/* ══════════════════════════════════════════════
   PRIVACY.HTML — specific styles
══════════════════════════════════════════════ */

:root { --sidebar-w: 264px; }

/* ── Sidebar (desktop) ── */
.sidebar {
    position:fixed; top:0; left:0; bottom:0; width:var(--sidebar-w);
    background:rgba(15,15,26,0.6);
    backdrop-filter:blur(20px);
    border-right:1px solid var(--border);
    padding:32px 28px;
    display:flex; flex-direction:column;
    overflow-y:auto;
    z-index:100;
}
.sidebar .nav-logo { margin-bottom:36px; }
.sidebar-section { margin-bottom:32px; }
.sidebar-label {
    font-size:0.7rem; letter-spacing:0.15em; text-transform:uppercase;
    color:var(--accent2); font-weight:500; margin-bottom:14px; display:block;
}
.sidebar-links { list-style:none; display:flex; flex-direction:column; gap:2px; }
.sidebar-links a {
    color:var(--muted); text-decoration:none; font-size:0.875rem; font-weight:400;
    padding:8px 12px; border-radius:8px; display:block; transition:color 0.2s, background 0.2s;
    border-left:2px solid transparent;
}
.sidebar-links a:hover { color:var(--text); background:rgba(255,255,255,0.04); }
.sidebar-links a.active {
    color:var(--accent2); background:rgba(123,110,246,0.1);
    border-left:2px solid var(--accent2);
}
.sidebar-links.toc a { font-size:0.8125rem; padding:6px 12px; }
.sidebar-footer { margin-top:auto; padding-top:24px; display:flex; flex-direction:column; gap:14px; }
.sidebar-back {
    color:var(--muted); text-decoration:none; font-size:0.8125rem;
    display:flex; align-items:center; gap:8px; transition:color 0.2s;
}
.sidebar-back:hover { color:var(--text); }

/* ── Topbar (mobile) ── */
.topbar {
    display:none;
    position:fixed; top:0; left:0; right:0; z-index:100;
    padding:16px 24px;
    align-items:center; justify-content:space-between;
    background:rgba(10,10,15,0.7);
    backdrop-filter:blur(20px);
    border-bottom:1px solid var(--border);
}
.nav-toggle {
    display:flex; flex-direction:column; justify-content:center; gap:5px;
    width:36px; height:36px; padding:8px;
    background:none; border:none; cursor:pointer; z-index:101;
}
.nav-toggle span { display:block; width:100%; height:2px; background:var(--text); border-radius:2px; transition:transform 0.25s ease, opacity 0.25s ease; }
.nav-toggle.open span:nth-child(1) { transform:translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity:0; }
.nav-toggle.open span:nth-child(3) { transform:translateY(-7px) rotate(-45deg); }
.nav-mobile-panel {
    display:none;
    position:fixed; top:0; left:0; right:0; bottom:0; z-index:99;
    background:rgba(10,10,15,0.97);
    backdrop-filter:blur(20px);
    padding:88px 24px 32px;
    flex-direction:column; gap:4px;
    overflow-y:auto;
    transform:translateY(-100%); opacity:0;
    transition:transform 0.3s ease, opacity 0.3s ease;
}
.nav-mobile-panel.open { transform:translateY(0); opacity:1; }
.nav-mobile-panel .sidebar-label { margin-top:20px; }
.nav-mobile-panel .sidebar-section:first-of-type .sidebar-label { margin-top:0; }
.nav-mobile-panel a {
    color:var(--muted); text-decoration:none; font-size:1rem; font-weight:400;
    padding:12px 4px; border-bottom:1px solid var(--border); transition:color 0.2s; display:block;
}
.nav-mobile-panel .sidebar-links.toc a { font-size:0.9375rem; }
.nav-mobile-panel a:hover, .nav-mobile-panel a.active { color:var(--text); }
.nav-mobile-panel .nav-cta { margin-top:24px; }

/* ── Page layout (privacy) ── */
.page-wrap { margin-left:var(--sidebar-w); }
.policy-container { max-width:760px; margin:0 auto; }

/* ── Hero header (privacy) ── */
.policy-hero {
    padding:100px 48px 64px;
    max-width:760px; margin:0 auto;
    border-bottom: 1px solid var(--border);
}
.policy-eyebrow {
    display:inline-flex; align-items:center; gap:8px;
    background:rgba(123,110,246,0.12); border:1px solid rgba(123,110,246,0.25);
    border-radius:100px; padding:6px 16px;
    font-size:0.75rem; font-weight:500; letter-spacing:0.08em; text-transform:uppercase;
    color:var(--accent2); margin-bottom:28px;
    animation:fadeUp 0.8s ease both;
}
.policy-eyebrow::before { content:'🔒'; margin-right:2px; }
.policy-hero h1 {
    font-family:'Fraunces',serif;
    font-size:clamp(2.2rem,5vw,4rem);
    font-weight:400; line-height:1.1; letter-spacing:-0.025em;
    margin-bottom:20px;
    animation:fadeUp 0.9s 0.1s ease both;
}
.policy-hero h1 em { font-style:italic; color:var(--accent2); }
.policy-meta {
    display: flex; gap: 24px; align-items: center; flex-wrap: wrap;
    margin-top: 24px; animation:fadeUp 1s 0.15s ease both;
}
.policy-meta-item { display:flex; align-items:center; gap:8px; font-size:0.8125rem; color:var(--muted); }
.policy-meta-item .dot { width:4px; height:4px; border-radius:50%; background:var(--muted2); }

/* ── Body wrapper (privacy) ── */
.policy-body { padding:64px 48px 60px; }

/* ── Summary shield (privacy) ── */
.policy-summary {
    background: rgba(61,214,200,0.07);
    border: 1px solid rgba(61,214,200,0.18);
    border-radius: 20px; padding: 28px 32px; margin-bottom: 64px;
    display: flex; gap: 20px; align-items: flex-start;
    animation:fadeUp 0.9s 0.1s ease both;
}
.policy-summary-icon { font-size:1.75rem; flex-shrink:0; margin-top:2px; }
.policy-summary-body h3 {
    font-family:'Fraunces',serif; font-size:1.125rem; font-weight:400;
    color:var(--teal); margin-bottom:10px;
}
.policy-summary-body p { font-size:0.875rem; color:rgba(61,214,200,0.75); line-height:1.7; }

/* ── Policy blocks ── */
.policy-blocks { display:flex; flex-direction:column; gap:0; }
.policy-block {
    opacity: 0; transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    padding-top:56px; scroll-margin-top:32px;
}
.policy-block:first-child { padding-top:0; }
.policy-block + .policy-block { border-top:1px solid var(--border); margin-top:56px; }
.policy-block.visible { opacity:1; transform:translateY(0); }
.policy-block-header { display:flex; align-items:center; gap:16px; margin-bottom:20px; }
.policy-block-num {
    font-size:0.7rem; font-weight:500; letter-spacing:0.1em;
    color:var(--accent2); background:rgba(123,110,246,0.12);
    border:1px solid rgba(123,110,246,0.2);
    border-radius:100px; padding:4px 12px; flex-shrink:0;
}
.policy-block h4 {
    font-family:'Fraunces',serif; font-size:1.25rem; font-weight:400;
    line-height:1.2; color:var(--text);
}
.policy-block p, .policy-block li { color:var(--muted); font-size:0.9375rem; line-height:1.8; }
.policy-block p + p { margin-top:12px; }
.policy-block ul {
    list-style:none; padding:0; margin-top:16px;
    display:flex; flex-direction:column; gap:8px;
}
.policy-block li {
    padding:10px 16px;
    background:var(--surface); border:1px solid var(--border);
    border-radius:12px; display:flex; align-items:center; gap:12px;
}
.policy-block li::before { content:'—'; color:var(--accent2); flex-shrink:0; font-weight:400; }
.policy-block a { color:var(--accent2); text-decoration:none; border-bottom:1px solid rgba(165,148,249,0.3); transition:color 0.2s; }
.policy-block a:hover { color:var(--text); }


/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */

@media(max-width:1000px){
    /* Index */
    .hero-blob-col { display: none; }
    .hero { grid-template-columns:1fr; text-align:center; padding:120px 32px 80px; gap:48px; max-width:100%; }
    .hero-blob-col { order: -1; }
    .hero-content { align-items:center; }
    .hero-sub { max-width:520px; margin-left:auto; margin-right:auto; }
    #moodCanvas { width:min(70vw,380px); height:min(70vw,380px); }
    .about-grid{grid-template-columns:1fr;gap:40px}
    .awards-grid{grid-template-columns:repeat(2,1fr)}
    .medals-grid{grid-template-columns:repeat(2,1fr)}
    .feature-row{grid-template-columns:1fr;gap:40px;padding:60px 0;}
    .feature-row .feature-text { order: 1; }
    .feature-row .feature-media { order: 2; }
    .feature-row.reverse .feature-text { order: 1; }
    .feature-row.reverse .feature-media { order: 2; }
    .scroll-video-layout{grid-template-columns:1fr;gap:40px;padding:0 32px;}
    .scroll-video-layout .scroll-video-text { order: 1; }
    .scroll-video-layout .scroll-video-phone { order: 2; }
    .sv-reverse { direction: ltr; }
    .sv-reverse .scroll-video-text { order: 1; }
    .sv-reverse .scroll-video-phone { order: 2; }
    .privacy-cards{grid-template-columns:1fr}
    .footer-top{flex-direction:column;gap:32px}
    nav{padding:16px 24px}
    .nav-links{display:none}
    .device-scaler { --scale: 0.58; }
    .device-scaler .device { filter: drop-shadow(0 0 22px rgba(123,110,246,0.5)) drop-shadow(0 0 48px rgba(123,110,246,0.2)); }
    /* Privacy */
    .sidebar { display:none; }
    .topbar { display:flex; }
    .nav-mobile-panel { display:flex; }
    .page-wrap { margin-left:0; }
    .policy-hero{padding:96px 24px 56px}
    .policy-body{padding:56px 24px 40px}
    footer{padding:48px 24px 32px}
}

@media(max-width:600px){
    /* Index */
    .video-replay-btn { margin-top: 20px; }
    .hero { padding:100px 24px 60px; gap:40px; }
    #moodCanvas { width:min(80vw,320px); height:min(80vw,320px); }
    .feature-row{padding:48px 0;}
    .awards-grid{grid-template-columns:repeat(2,1fr)}
    .medals-grid{grid-template-columns:repeat(2,1fr)}
    footer{padding:40px 24px 32px}
    .scroll-video-layout { padding: 0 20px; gap: 28px; }
    .device-scaler { --scale: 0.50; }
    .device-scaler .device { filter: drop-shadow(0 0 18px rgba(123,110,246,0.45)) drop-shadow(0 0 40px rgba(123,110,246,0.18)); }
    /* Privacy */
    .policy-hero{padding:88px 20px 40px}
    .policy-body{padding:40px 20px 32px}
    .policy-summary{flex-direction:column;gap:12px;padding:24px}
    .footer-bottom{flex-direction:column;gap:8px;align-items:flex-start}
}
/* Current medal collection */
.award-icon[src] { width: 72px; height: 72px; object-fit: contain; margin: 0 auto 14px; }
.medal-name { font-weight: 500; }
.more-medals { margin-top: 32px; }
.more-medals summary { width: fit-content; margin: auto; padding: 12px 22px; border: 1px solid var(--border); border-radius: 99px; color: var(--accent2); cursor: pointer; }
.more-medals[open] summary { color: var(--text); }
.medal-story { background: var(--bg2); border-block: 1px solid var(--border); }
.medal-story-layout { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; }
.medal-story-art { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.medal-story-art img { width: 100%; height: auto; filter: drop-shadow(0 12px 28px rgba(0,0,0,.25)); }
.medal-story-art img:last-child { grid-column: 1 / -1; width: 55%; justify-self: center; margin-top: -24px; }
.chime-label { display: block; margin: 28px 0 10px; color: var(--gold); font-size: .875rem; }
#medalChime { width: 100%; max-width: 320px; }
.availability-section { border-top: 1px solid var(--border); }
.availability-section .btn-secondary { display: inline-block; margin-top: 24px; }
section[id] { scroll-margin-top: 72px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
@media (max-width: 700px) {
    .medal-story-layout { grid-template-columns: 1fr; gap: 32px; }
    .medal-story-art { max-width: 420px; margin: auto; }
    .medals-grid { gap: 12px; }
    .medal-name, .medal-desc { padding-inline: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .feature-row { opacity: 1; transform: none; }
}

.more-medals[open] summary span { display: inline-block; transform: rotate(45deg); }

/* Keep the collection a surprise until medals are earned in the app. */
.quest-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.quest-layout { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 64px; }
.mystery-collection { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; padding: 36px 12px; }
.mystery-medal { display: grid; place-items: center; width: 100px; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(165,148,249,.3); background: radial-gradient(circle at 35% 25%, rgba(165,148,249,.16), var(--surface)); color: var(--accent2); font-family: 'Fraunces', serif; font-size: 2.8rem; box-shadow: inset 0 0 0 6px rgba(165,148,249,.04); }
.mystery-medal:nth-child(2) { transform: translateY(-20px); border-color: rgba(240,180,41,.3); color: var(--gold); }
.mystery-collection p { flex-basis: 100%; text-align: center; color: var(--muted); font-size: .875rem; margin-top: 12px; }
@media (max-width: 700px) { .quest-layout { grid-template-columns: 1fr; gap: 32px; } .quest-steps { grid-template-columns: 1fr; } .mystery-medal { width: 84px; } }
