/* ===== moooooood website: dark aubergine, mood colours as accents, big type ===== */

@font-face {
  font-family: "Bricolage";
  src: url("/fonts/bricolage-grotesque.woff2") format("woff2-variations"), url("/fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}

:root {
  --bg: #110c1f;
  --bg-2: #181128;
  --lilac: #c4a6ff;
  --pink: #ff80a8;
  --lemon: #ffd23f;
  --sky: #66c7ff;
  --mint: #3dd6c2;
  --orange: #ff8f2e;
  --ink: #160f26;
  --card: rgba(255, 255, 255, 0.045);
  --card-2: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.18);
  --text: rgba(255, 255, 255, 0.94);
  --text-2: rgba(255, 255, 255, 0.64);
  --text-3: rgba(255, 255, 255, 0.42);
  --shadow: rgba(4, 2, 12, 0.45);
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 40px;
  --display: "Bricolage", ui-rounded, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --serif: "Instrument Serif", ui-serif, Georgia, serif;
}

/* ===== Reset & base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { background: var(--bg); scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--display);
  font-optical-sizing: auto;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

ul, ol { list-style: none; }
a { color: var(--lilac); }
img, svg { display: block; }
h1, h2, h3 { font-weight: 750; letter-spacing: -0.03em; line-height: 1.08; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  padding: 10px 16px; border-radius: var(--r-sm);
  background: var(--lilac); color: var(--ink); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* Shared gradients for the marbles; the SVG itself takes no space. */
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ===== Background: soft glows and a little film grain ===== */
.bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: linear-gradient(180deg, #140e25, var(--bg) 40%, #0d0918); }
.glow { position: absolute; border-radius: 50%; filter: blur(20px); animation: drift 26s ease-in-out infinite; will-change: transform; }
.glow-1 { width: 720px; height: 720px; top: -260px; left: -200px; background: radial-gradient(circle, rgba(140, 80, 230, 0.42), transparent 62%); }
.glow-2 { width: 640px; height: 640px; top: 10%; right: -260px; background: radial-gradient(circle, rgba(255, 110, 160, 0.20), transparent 62%); animation-delay: -9s; }
.glow-3 { width: 560px; height: 560px; bottom: -220px; left: 30%; background: radial-gradient(circle, rgba(70, 150, 255, 0.16), transparent 62%); animation-delay: -17s; }
.grain {
  position: absolute; inset: 0; opacity: 0.07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(60px, -30px) scale(1.06); }
  66%      { transform: translate(-40px, 40px) scale(0.95); }
}

/* ===== Layout ===== */
.page { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.section { padding: 110px 0; }
@media (max-width: 720px) { .section { padding: 72px 0; } .container, .container-narrow { padding: 0 16px; } }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* ===== Wordmark: the seven o's in mood colours ===== */
.wordmark { font-weight: 800; letter-spacing: -0.04em; }
.wordmark .o-joyful { color: var(--lemon); }
.wordmark .o-energized { color: var(--orange); }
.wordmark .o-grateful { color: var(--pink); }
.wordmark .o-lonely { color: #a37af0; }
.wordmark .o-calm { color: var(--sky); }
.wordmark .o-anxious { color: var(--mint); }

/* ===== Nav ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 12px 24px;
  background: rgba(17, 12, 31, 0.7);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  border-bottom: 1px solid var(--line);
}
.nav-inner { max-width: 1160px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav-brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-size: 1.25rem; }
.nav-brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { display: flex; gap: 6px; }
.nav-links a { display: block; padding: 7px 14px; border-radius: 999px; color: var(--text-2); text-decoration: none; font-size: 0.93rem; font-weight: 600; transition: color 0.2s, background 0.2s; }
.nav-links a:hover { color: var(--text); background: var(--card-2); }
.nav-right { display: flex; align-items: center; gap: 8px; }

.lang-menu { position: relative; }
.lang-menu summary {
  list-style: none; cursor: pointer; user-select: none;
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--card);
  color: var(--text-2); font-size: 0.85rem; font-weight: 700;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu[open] summary, .lang-menu summary:hover { color: var(--text); }
.lang-menu ul {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 160px; padding: 6px;
  background: #1d1532; border: 1px solid var(--line-2); border-radius: var(--r-md);
  box-shadow: 0 16px 40px var(--shadow);
}
.lang-menu a { display: block; padding: 8px 12px; border-radius: var(--r-sm); color: var(--text-2); text-decoration: none; font-size: 0.92rem; }
.lang-menu a:hover, .lang-menu a[aria-current] { background: var(--card-2); color: var(--text); }

.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.5rem; cursor: pointer; padding: 2px 6px; }

@media (max-width: 900px) {
  .nav { padding: 12px 16px; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px 0;
    background: rgba(17, 12, 31, 0.97); border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 24px; border-radius: 0; font-size: 1rem; }
}

/* ===== Type helpers ===== */
.pill {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px;
  padding: 6px 14px 6px 10px; border-radius: 999px;
  background: var(--card-2); border: 1px solid var(--line-2);
  color: var(--text-2); font-size: 0.88rem; font-weight: 600;
}
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); }
.section-title { text-align: center; font-size: clamp(2.3rem, 5.6vw, 4rem); margin-bottom: 16px; }
.section-title em, .statement h2 em, .care h2 em { color: var(--lilac); }
.section-sub { text-align: center; color: var(--text-2); font-size: 1.14rem; max-width: 580px; margin: 0 auto 56px; }
.section-title.left, .section-sub.left { text-align: left; margin-left: 0; }
.text-link { display: inline-block; margin-top: 26px; font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* ===== Call to action ===== */
.cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px;
  background: var(--lilac);
  color: var(--ink); font-weight: 750; font-size: 1.02rem; text-decoration: none;
  box-shadow: 0 0 0 4px rgba(196, 166, 255, 0.16), 0 14px 34px rgba(140, 90, 255, 0.32);
}
.cta svg { width: 21px; height: 21px; margin-top: -2px; }
a.cta { transition: transform 0.2s, box-shadow 0.2s; }
a.cta:hover { transform: translateY(-2px); }
.cta.small { padding: 11px 20px; font-size: 0.95rem; margin-top: 16px; }

/* ===== Hero ===== */
.hero { padding: 150px 0 80px; }
.hero-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 48px; }
.hero h1 { font-size: clamp(3.3rem, 8.4vw, 7.2rem); font-weight: 800; line-height: 0.95; letter-spacing: -0.055em; margin-bottom: 28px; }
.hero h1 em {
  padding-right: 0.06em;
  background: linear-gradient(100deg, var(--lemon), var(--pink) 50%, var(--lilac));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub { color: var(--text-2); font-size: 1.2rem; max-width: 520px; margin-bottom: 36px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.hero-meta li { padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); font-size: 0.86rem; font-weight: 600; }

@media (max-width: 900px) {
  .hero { padding: 116px 0 56px; }
  .hero-inner { grid-template-columns: 1fr; gap: 56px; }
}

/* ===== The phone in the hero ===== */
.hero-visual { position: relative; display: flex; justify-content: center; padding: 20px 0; }
.hero-visual::before {
  content: ""; position: absolute; inset: 10% 0; border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 166, 255, 0.30), transparent 62%);
}
.phone {
  position: relative; width: 300px; padding: 10px; border-radius: 52px;
  background: linear-gradient(145deg, #2c2440, #0b0814);
  box-shadow: 0 40px 80px rgba(4, 2, 12, 0.6), inset 0 0 0 1.5px rgba(255, 255, 255, 0.12);
  transform: rotate(3deg);
}
.phone-screen {
  border-radius: 42px; padding: 14px 18px 22px; overflow: hidden;
  background: radial-gradient(circle at 20% 0%, #4b2775, transparent 55%), linear-gradient(170deg, #1c1438, #140f29 55%, #0d0a1c);
}
.ps-status { display: flex; justify-content: space-between; align-items: center; font-size: 0.78rem; font-weight: 700; padding: 0 8px; margin-bottom: 18px; }
.ps-island { width: 86px; height: 26px; border-radius: 14px; background: #000; }
.ps-batt { width: 22px; height: 11px; border-radius: 3px; border: 1.5px solid rgba(255, 255, 255, 0.8); position: relative; }
.ps-batt::after { content: ""; position: absolute; inset: 1.5px 5px 1.5px 1.5px; border-radius: 1px; background: #fff; }
.ps-date { color: var(--text-3); font-size: 0.76rem; font-weight: 600; }
.ps-q { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; margin: 2px 0 16px; }
.ps-moods { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px 4px; margin-bottom: 16px; }
.ps-moods li { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 0.56rem; font-weight: 600; color: var(--text-3); }
.ps-moods li.on { color: var(--text); }
.ps-moods li.on svg { border-radius: 50%; box-shadow: 0 0 0 2.5px #140f29, 0 0 0 4.5px var(--sky), 0 0 18px rgba(102, 199, 255, 0.6); }
.ps-strength { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 0.6rem; color: var(--text-3); font-weight: 600; margin-bottom: 12px; }
.ps-strength .pips { display: flex; gap: 4px; }
.ps-strength .pip { width: 20px; height: 8px; }
.ps-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 12px; }
.ps-tag { padding: 4px 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); font-size: 0.64rem; font-weight: 600; color: var(--text-2); }
.ps-tag.on { background: rgba(102, 199, 255, 0.2); color: #d6efff; }
.ps-note { padding: 11px 13px; border-radius: 16px; background: rgba(255, 255, 255, 0.07); font-size: 0.8rem; margin-bottom: 14px; }
.caret { display: inline-block; width: 1.5px; height: 0.95em; margin-left: 2px; vertical-align: -2px; background: var(--sky); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.ps-save { display: block; text-align: center; padding: 11px; border-radius: 999px; background: var(--lilac); color: var(--ink); font-weight: 750; font-size: 0.88rem; }

.sticker {
  position: absolute; z-index: 2; padding: 9px 15px; border-radius: 999px;
  font-weight: 750; font-size: 0.92rem; white-space: nowrap; color: var(--ink);
  box-shadow: 0 14px 30px rgba(4, 2, 12, 0.45);
  animation: bob 6s ease-in-out infinite;
}
.st-streak { top: 9%; left: -4%; background: var(--lemon); rotate: -7deg; }
.st-tag { top: 44%; right: -6%; background: var(--pink); rotate: 6deg; animation-delay: -2s; }
.st-calm { bottom: 9%; left: -2%; background: var(--sky); rotate: 4deg; animation-delay: -4s; }
.st-pixels {
  top: 18%; right: -10%; width: 150px; padding: 12px; border-radius: 18px; white-space: normal;
  background: rgba(28, 20, 48, 0.92); border: 1px solid var(--line-2); color: var(--text-2); font-size: 0.7rem;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); rotate: -4deg; animation-delay: -3s;
}
.st-pixels span { display: block; margin-bottom: 7px; }
.mini-pixels { width: 100%; height: auto; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

@media (max-width: 520px) {
  .phone { width: 264px; }
  .st-streak { left: 0; }
  .st-pixels { display: none; }
  .st-tag { right: 0; top: 62%; }
  .st-calm { left: 2%; }
}

/* ===== Mood marquee ===== */
.marquee { display: flex; overflow: hidden; padding: 18px 0; border-block: 1px solid var(--line); background: rgba(255, 255, 255, 0.025); }
.marquee-track { display: flex; flex: none; gap: 12px; padding-right: 12px; animation: marquee 38s linear infinite; }
.marquee-track li { display: flex; align-items: center; gap: 10px; padding: 7px 18px 7px 8px; border-radius: 999px; background: var(--card-2); font-weight: 650; font-size: 1.05rem; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ===== Steps ===== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { position: relative; display: flex; flex-direction: column; padding: 30px 28px; overflow: hidden; }
.step::before { content: ""; position: absolute; width: 220px; height: 220px; top: -90px; right: -70px; border-radius: 50%; opacity: 0.32; filter: blur(10px); }
.step-1::before { background: radial-gradient(circle, var(--lemon), transparent 65%); }
.step-2::before { background: radial-gradient(circle, var(--pink), transparent 65%); }
.step-3::before { background: radial-gradient(circle, var(--sky), transparent 65%); }
.step-number { position: relative; font-family: var(--serif); font-style: italic; font-size: 3.2rem; line-height: 1; color: var(--text-3); margin-bottom: 18px; }
.step h3 { position: relative; font-size: 1.45rem; margin-bottom: 8px; }
.step p { position: relative; color: var(--text-2); flex: 1; }
.step-demo { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 26px; min-height: 84px; padding: 14px; border-radius: var(--r-md); background: rgba(0, 0, 0, 0.22); }
.step-demo.picker svg:nth-child(2) { transform: scale(1.3); filter: drop-shadow(0 0 10px rgba(102, 199, 255, 0.7)); }
.step-demo .strength { display: flex; gap: 6px; }
.pip { width: 30px; height: 12px; border-radius: 6px; background: rgba(255, 255, 255, 0.1); }
.pip.on { background: linear-gradient(90deg, var(--lemon), var(--orange)); }
.strength-cap { display: flex; justify-content: space-between; width: 100%; color: var(--text-3); font-size: 0.78rem; font-weight: 600; }
.mini-month { display: grid; grid-template-columns: repeat(4, 13px); gap: 3px; padding: 7px; border-radius: 12px; border: 1px solid var(--line-2); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

/* ===== Two-column sections ===== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split .section-sub { margin-bottom: 36px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px; } .split-reverse > :first-child { order: 2; } }

.point-list { display: grid; gap: 22px; }
.point-list li { display: flex; gap: 16px; }
.feature-icon { flex: none; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 16px; background: var(--card-2); border: 1px solid var(--line); font-size: 1.4rem; }
.point-list h3 { font-size: 1.12rem; letter-spacing: -0.02em; margin-bottom: 3px; }
.point-list p { color: var(--text-2); }

/* ===== Journal ===== */
.journal-card {
  padding: 22px; border-radius: var(--r-xl); rotate: -1.5deg;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--line-2); box-shadow: 0 30px 60px var(--shadow);
}
.journal-head { font-weight: 800; font-size: 1.3rem; letter-spacing: -0.03em; padding: 4px 6px 14px; }
.journal-card ul { display: grid; gap: 10px; }
.entry { display: flex; gap: 14px; padding: 16px; border-radius: 22px; background: rgba(10, 6, 22, 0.5); }
.entry svg { flex: none; }
.entry > div { flex: 1; min-width: 0; }
.entry-head { display: flex; justify-content: space-between; gap: 10px; font-size: 0.92rem; }
.entry-head span { color: var(--text-3); font-weight: 600; }
.entry-note { font-family: var(--serif); font-style: italic; font-size: 1.25rem; line-height: 1.25; margin: 4px 0 8px; }
.entry-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.entry-tags span { padding: 3px 10px; border-radius: 999px; background: var(--card-2); color: var(--text-2); font-size: 0.78rem; font-weight: 600; }

/* ===== Insights bento ===== */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.insight { display: flex; flex-direction: column; padding: 26px; }
.i-flow, .i-pixels { grid-column: span 4; }
.i-streak, .i-mix, .i-cal, .i-lift, .i-week { grid-column: span 2; }
.insight h3 { font-size: 1.2rem; letter-spacing: -0.02em; margin-bottom: 4px; }
.insight > p { color: var(--text-2); font-size: 0.94rem; }
.insight-visual { margin-top: 22px; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.chart { width: 100%; height: auto; }
.cal-head { fill: rgba(255, 255, 255, 0.42); font: 700 11px var(--display); }
.mix-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin-top: 16px; font-size: 0.88rem; color: var(--text-2); }
.mix-legend li { display: flex; align-items: center; gap: 8px; }
.mix-legend b { margin-left: auto; color: var(--text); }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot.calm { background: var(--sky); } .dot.joyful { background: #ffcc2e; } .dot.grateful { background: var(--pink); } .dot.energized { background: var(--orange); }
.i-streak { background: linear-gradient(160deg, rgba(255, 210, 63, 0.14), rgba(255, 143, 46, 0.04)); }
.streak { display: flex; align-items: baseline; gap: 10px; }
.streak-num { font-size: 5rem; font-weight: 800; line-height: 1; letter-spacing: -0.06em; color: var(--lemon); }
.streak-unit { color: var(--text-2); font-weight: 700; }
.week { margin-top: 18px; max-width: 240px; }
.streak-best { margin-top: 14px; color: var(--text-3); font-size: 0.88rem; font-weight: 600; }
.lift li { display: grid; grid-template-columns: 7.5em 1fr 2.6em; align-items: center; gap: 10px; padding: 5px 0; font-size: 0.88rem; }
.lift-tag { color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lift-bar { width: 100%; height: 12px; }
.lift-bar.up rect { fill: var(--mint); }
.lift-bar.down rect { fill: #f54545; opacity: 0.8; }
.lift b { text-align: right; }
.brightest { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-weight: 700; font-size: 0.92rem; }

@media (max-width: 980px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .i-flow, .i-pixels { grid-column: span 2; }
  .i-streak, .i-mix, .i-cal, .i-lift, .i-week { grid-column: span 1; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .bento > * { grid-column: auto !important; }
}

/* ===== Share cards ===== */
.share-row { display: flex; justify-content: center; align-items: flex-end; gap: 22px; }
.share-item { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.share-item:first-child .share-card { rotate: -4deg; }
.share-item:last-child .share-card { rotate: 3deg; }
.share-item figcaption { padding: 5px 13px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); font-size: 0.82rem; font-weight: 650; }
.share-card {
  display: flex; flex-direction: column; padding: 18px; border-radius: 26px;
  border: 1px solid var(--line-2); box-shadow: 0 30px 60px var(--shadow);
}
.share-story { width: 220px; aspect-ratio: 9 / 16; }
.share-post { width: 260px; aspect-ratio: 4 / 5; }
.share-top { display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; color: var(--text-2); font-weight: 650; }
.share-top .wordmark { font-size: 0.95rem; color: var(--text); }
.share-month { font-family: var(--serif); font-style: italic; font-size: 2.6rem; line-height: 1; margin: auto 0 14px; }
.share-post .share-month { margin-top: 18px; }
.share-grid { width: 100%; height: auto; }
.share-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; padding-top: 14px; font-size: 0.74rem; font-weight: 650; color: var(--text-2); }
.share-top-mood { display: flex; align-items: center; gap: 6px; color: var(--text); }
.share-story .share-foot { margin-top: 18px; }
@media (max-width: 520px) {
  .share-row { gap: 12px; }
  .share-story { width: 150px; padding: 12px; }
  .share-post { width: 170px; padding: 12px; }
  .share-month { font-size: 1.8rem; }
  .share-top .wordmark { font-size: 0.75rem; }
  .share-top { font-size: 0.65rem; }
  .share-foot { font-size: 0.6rem; flex-direction: column; align-items: flex-start; gap: 4px; }
}

/* ===== Themes (colours from Shared/AppTheme.swift) ===== */
.theme-wrap { position: relative; }
.st-free { top: -18px; right: 4%; background: var(--lemon); rotate: 8deg; }
.theme-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.theme { display: flex; flex-direction: column; justify-content: space-between; min-height: 170px; padding: 18px; border-radius: var(--r-lg); border: 1px solid var(--line-2); box-shadow: 0 16px 36px var(--shadow); }
.theme-swatch { display: flex; gap: 4px; }
.theme-name { font-weight: 750; font-size: 1.05rem; letter-spacing: -0.02em; }
.theme-dusk     { background: radial-gradient(circle at 30% 20%, #52297a, transparent 60%), linear-gradient(160deg, #140f29, #1c1438 50%, #0d0a1c); }
.theme-midnight { background: radial-gradient(circle at 30% 20%, #1a2659, transparent 60%), linear-gradient(160deg, #0f1224, #141a33 50%, #0a0d1a); }
.theme-emerald  { background: radial-gradient(circle at 30% 20%, #14472e, transparent 60%), linear-gradient(160deg, #0a1a14, #0f241a 50%, #08120d); }
.theme-sunset   { background: radial-gradient(circle at 30% 20%, #59261a, transparent 60%), linear-gradient(160deg, #240f1a, #2e140f 50%, #1a0a14); }
.theme-arctic   { background: radial-gradient(circle at 30% 20%, #263859, transparent 60%), linear-gradient(160deg, #121724, #1a2133 50%, #0d121f); }
.theme-rose     { background: radial-gradient(circle at 30% 20%, #661f40, transparent 60%), linear-gradient(160deg, #240d1a, #2e1221 50%, #170812); }
.theme-dusk .theme-name { color: #b88fff; } .theme-midnight .theme-name { color: #64d2ff; } .theme-emerald .theme-name { color: #33e699; }
.theme-sunset .theme-name { color: #ff9933; } .theme-arctic .theme-name { color: #99d9ff; } .theme-rose .theme-name { color: #ff80b3; }
@media (max-width: 900px) { .theme-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .theme-grid { grid-template-columns: repeat(2, 1fr); } .theme { min-height: 130px; } }

/* ===== Always at hand ===== */
.hand-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.hand-item { padding: 24px; }
.hand-item .feature-icon { margin-bottom: 16px; }
.hand-item h3 { font-size: 1.1rem; letter-spacing: -0.02em; margin-bottom: 4px; }
.hand-item p { color: var(--text-2); font-size: 0.94rem; }
@media (max-width: 900px) { .hand-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .hand-grid { gap: 10px; }
  .hand-item { padding: 18px 16px; }
  .hand-item .feature-icon { width: 40px; height: 40px; font-size: 1.2rem; margin-bottom: 12px; }
  .hand-item p { font-size: 0.86rem; }
}

/* ===== Statements: privacy and free ===== */
.statement { border-radius: var(--r-xl); padding: 64px; }
.statement h2 { font-size: clamp(2.2rem, 5.4vw, 4.2rem); max-width: 900px; margin-bottom: 20px; }
.statement-text { font-size: 1.18rem; max-width: 620px; }
.privacy-card { background: linear-gradient(150deg, rgba(61, 214, 194, 0.12), rgba(255, 255, 255, 0.03) 60%); border: 1px solid var(--line-2); }
.privacy-card .statement-text { color: var(--text-2); }
.privacy-points { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.privacy-points li { display: flex; align-items: center; gap: 10px; padding: 10px 18px 10px 12px; border-radius: 999px; background: rgba(0, 0, 0, 0.25); border: 1px solid var(--line); font-weight: 650; }
.privacy-points span { font-size: 1.2rem; }

.free-card { position: relative; overflow: hidden; background: linear-gradient(120deg, #c4a6ff, #ff9ac0 55%, #ffd56b); color: var(--ink); text-align: center; }
.free-card h2 { margin: 0 auto 18px; }
.free-card h2 em { color: inherit; }
.free-card .statement-text { margin: 0 auto; color: rgba(22, 15, 38, 0.78); }
.free-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 32px; }
.free-list li { padding: 9px 18px; border-radius: 999px; background: rgba(22, 15, 38, 0.1); border: 1px solid rgba(22, 15, 38, 0.16); font-weight: 700; }
.free-list li::before { content: "✓ "; }
@media (max-width: 720px) { .statement { padding: 36px 22px; border-radius: var(--r-lg); } }

/* ===== Care ===== */
.care { text-align: center; }
.care h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); margin-bottom: 16px; }
.care p { color: var(--text-2); font-size: 1.08rem; }
#care { padding-top: 40px; }

/* ===== Final call ===== */
.final-inner { text-align: center; }
.final-icon { margin: 0 auto 30px; border-radius: 26px; rotate: -6deg; box-shadow: 0 0 70px rgba(196, 166, 255, 0.35), 0 14px 30px var(--shadow); }
.final .section-sub { margin-bottom: 34px; }

/* ===== Text pages: privacy, terms, support, 404 ===== */
.text-page { padding: 140px 0 80px; }
.text-page h1 { font-size: clamp(2.6rem, 6vw, 4rem); font-weight: 800; letter-spacing: -0.045em; line-height: 1; margin-bottom: 12px; }
.page-sub { color: var(--text-2); font-size: 1.12rem; margin-bottom: 32px; }
.text-page > .container-narrow > .card { margin-top: 28px; }
.prose { padding: 36px; }
.prose h2 { font-size: 1.3rem; letter-spacing: -0.02em; margin: 30px 0 8px; }
.prose h2:first-of-type { margin-top: 8px; }
.prose p, .prose li { color: var(--text-2); }
.prose ul { list-style: disc; padding-left: 22px; }
.prose li { margin: 8px 0; }
.prose strong { color: var(--text); }
.updated { font-size: 0.9rem; color: var(--text-3) !important; }
.contact-card { display: flex; gap: 18px; align-items: flex-start; }
.contact-card h2 { font-size: 1.3rem; margin-bottom: 4px; }
.contact-card p { color: var(--text-2); }
.faq-title { font-size: 1.8rem; margin: 56px 0 16px; }
.faq-list { display: grid; gap: 10px; }
.faq-item { padding: 0; border-radius: var(--r-md); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; font-weight: 700; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .arrow { color: var(--lilac); transition: transform 0.2s; }
.faq-item[open] .arrow { transform: rotate(180deg); }
.faq-item p { padding: 0 24px 22px; color: var(--text-2); }
.text-page.center { text-align: center; }
.lost { display: flex; justify-content: center; margin: 32px 0 20px; }
.lost svg { animation: wobble 2.4s ease-in-out infinite; }
@keyframes wobble { 0%, 100% { transform: translateX(-40px) rotate(-120deg); } 50% { transform: translateX(40px) rotate(120deg); } }
@media (max-width: 560px) { .prose { padding: 24px 20px; } .contact-card { flex-direction: column; } }

/* ===== Footer ===== */
.footer { padding: 36px 0 44px; border-top: 1px solid var(--line); background: rgba(8, 5, 18, 0.4); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-size: 1.1rem; }
.footer-brand img { border-radius: 7px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { color: var(--text-2); text-decoration: none; font-size: 0.92rem; }
.footer-links a:hover { color: var(--lilac); }
.footer-note { margin-left: auto; color: var(--text-3); font-size: 0.88rem; }
@media (max-width: 720px) { .footer-inner { flex-direction: column; text-align: center; } .footer-note { margin-left: 0; } .footer-links { justify-content: center; } }

/* ===== Accessibility ===== */
:focus-visible { outline: 2px solid var(--lilac); outline-offset: 3px; border-radius: 6px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .marquee { overflow-x: auto; }
}
