/* Mood Dots — a colourful, calm mood tracker.
   Signature: tap a mood dot, and your feelings become a visible pattern.
   Palette is the app's own six moods on a clean, quiet canvas. */

:root {
  --bg:        #F7F8FC;   /* clean, faintly-cool canvas so the dots sing */
  --bg-2:      #EEF1F8;
  --card:      #FFFFFF;
  --ink:       #1E2233;   /* soft cool near-black */
  --text:      #333850;
  --muted:     #7B8298;
  --line:      #E6E9F2;

  /* the six moods, straight from the app */
  --happy:     #34C759;
  --calm:      #2F7CF6;
  --sad:       #A855E8;
  --stressed:  #F14A3E;
  --excited:   #FFC42B;
  --tired:     #9098A5;

  --accent:     var(--happy);
  --accent-ink: #1C9C46;   /* green that passes contrast as text on light */

  --radius:    22px;
  --radius-lg: 30px;
  --shadow:    0 24px 50px -28px rgba(30,34,51,.35);
  --shadow-sm: 0 12px 26px -18px rgba(30,34,51,.4);
  --maxw:      1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  font-size: 1.14rem; line-height: 1.62;
  color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-ink); text-underline-offset: 3px; }

h1, h2, h3, .display {
  font-family: 'Nunito', system-ui, sans-serif;
  font-weight: 800; line-height: 1.08; letter-spacing: -0.01em;
  color: var(--ink); margin: 0;
}

.eyebrow {
  font-weight: 700; font-size: 0.82rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent-ink); margin: 0;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 90px 0; }
.section--tint { background: var(--bg-2); }
.section-head { max-width: 620px; margin: 0 auto 50px; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 2.9rem); margin-top: 12px; }
.section-head p { color: var(--muted); font-size: 1.12rem; margin: 14px 0 0; }

/* ---------- top bar ---------- */

.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,248,252,.82); backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: 'Nunito',sans-serif; font-weight: 800; font-size: 1.28rem; color: var(--ink); text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 11px; }
.topnav { display: flex; gap: 24px; }
.topnav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 1rem; }
.topnav a:hover { color: var(--accent-ink); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: #fff;
  padding: 15px 26px; border-radius: 999px;
  font-family: 'Nunito',sans-serif; font-weight: 800; font-size: 1.05rem;
  text-decoration: none; border: 0; cursor: pointer;
  box-shadow: 0 14px 26px -12px color-mix(in srgb, var(--accent) 70%, transparent);
  transition: transform .16s ease, box-shadow .16s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn .apple { width: 19px; height: 22px; flex: 0 0 auto; }
.btn--ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }

/* ---------- hero ---------- */

.hero { position: relative; overflow: hidden; padding: 66px 0 78px; }
/* soft multi-mood blooms — a whisper of the icon's sunset, out of the way */
.hero::before {
  content: ""; position: absolute; inset: -10% -10% auto -10%; height: 120%;
  background:
    radial-gradient(38% 40% at 18% 12%, color-mix(in srgb, var(--excited) 30%, transparent), transparent 70%),
    radial-gradient(34% 38% at 82% 6%, color-mix(in srgb, var(--calm) 26%, transparent), transparent 70%),
    radial-gradient(40% 44% at 92% 60%, color-mix(in srgb, var(--sad) 22%, transparent), transparent 72%),
    radial-gradient(36% 40% at 8% 72%, color-mix(in srgb, var(--happy) 22%, transparent), transparent 72%);
  filter: blur(10px); z-index: 0; pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.02fr .98fr; gap: 54px; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4rem); font-weight: 900; max-width: 12ch; margin: 16px 0 0; }
.hero .lede { max-width: 42ch; margin: 22px 0 0; font-size: 1.2rem; color: var(--text); }

/* the mood picker — the app's core interaction */
.picker { display: flex; flex-wrap: wrap; gap: 18px 22px; margin: 34px 0 0; }
.mood { display: flex; flex-direction: column; align-items: center; gap: 9px; }
.mood .bead { width: 52px; height: 52px; border-radius: 50%; box-shadow: 0 8px 18px -8px rgba(30,34,51,.4); }
.mood .name { font-size: .82rem; font-weight: 600; color: var(--muted); }
.mood--sel .bead { outline: 3px solid #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--happy) 60%, transparent), 0 10px 22px -8px color-mix(in srgb, var(--happy) 70%, transparent); animation: breathe 2.6s ease-in-out infinite; }
.mood--sel .name { color: var(--accent-ink); font-weight: 700; }

.cta-row { margin-top: 38px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cta-row .fine { font-weight: 600; font-size: .92rem; color: var(--muted); }

/* the payoff: a month of moods as a mosaic (mirrors the app's calendar) */
.mosaic-card { background: var(--card); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 26px; border: 1px solid var(--line); }
.mosaic-card .head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; }
.mosaic-card .head b { font-family: 'Nunito',sans-serif; font-weight: 800; font-size: 1.15rem; color: var(--ink); }
.mosaic-card .head span { font-size: .86rem; color: var(--muted); font-weight: 600; }
.mosaic { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.mosaic .cell { aspect-ratio: 1; border-radius: 50%; transform: scale(0); animation: pop .5s both cubic-bezier(.2,1.4,.4,1); }
.mosaic .dow { aspect-ratio: auto; transform: none; animation: none; text-align: center; font-size: .68rem; font-weight: 700; color: var(--muted); padding-bottom: 2px; }
.mosaic-card .legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .78rem; color: var(--muted); font-weight: 600; }
.mosaic-card .legend span { display: inline-flex; align-items: center; gap: 6px; }
.mosaic-card .legend i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }

/* mood colour helpers */
.c-happy { background: var(--happy); } .c-calm { background: var(--calm); }
.c-sad { background: var(--sad); } .c-stressed { background: var(--stressed); }
.c-excited { background: var(--excited); } .c-tired { background: var(--tired); }
.c-empty { background: var(--bg-2); }

/* ---------- how it works ---------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.step { text-align: center; }
.step .num { width: 40px; height: 40px; border-radius: 50%; background: var(--card); border: 1px solid var(--line); display: grid; place-items: center; margin: 0 auto 18px; font-family: 'Nunito',sans-serif; font-weight: 800; color: var(--accent-ink); }
.step h3 { font-size: 1.35rem; margin-bottom: 8px; }
.step p { color: var(--muted); margin: 0; font-size: 1.03rem; }
.step .demo { display: flex; justify-content: center; gap: 8px; margin-bottom: 22px; }
.step .demo .d { width: 22px; height: 22px; border-radius: 50%; }

/* ---------- features ---------- */

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; transition: transform .2s ease, box-shadow .2s ease; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.feature .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; }
.feature .ico .d { width: 20px; height: 20px; border-radius: 50%; }
.feature h3 { font-size: 1.3rem; margin-bottom: 8px; }
.feature p { margin: 0; color: var(--muted); font-size: 1.03rem; line-height: 1.55; }

/* ---------- screenshots ---------- */

.shots { display: flex; justify-content: safe center; gap: 22px; overflow-x: auto; padding: 8px 24px 22px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.shots::-webkit-scrollbar { height: 8px; }
.shots::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; }
.shot { flex: 0 0 auto; width: 236px; scroll-snap-align: center; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }

/* ---------- privacy strip ---------- */

.privacy { background: var(--bg-2); }
.privacy-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; max-width: 940px; margin: 44px auto 0; }
.promise { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.promise .dot3 { display: flex; gap: 5px; margin-bottom: 14px; }
.promise .dot3 i { width: 9px; height: 9px; border-radius: 50%; }
.promise b { font-family: 'Nunito',sans-serif; color: var(--ink); font-size: 1.12rem; }
.promise p { margin: 6px 0 0; color: var(--muted); font-size: 1rem; }

/* ---------- closer ---------- */

.closer { text-align: center; }
.closer h2 { font-size: clamp(2.1rem, 5vw, 3.2rem); }
.closer .cta-row { justify-content: center; margin-top: 28px; }

/* ---------- footer ---------- */

.foot { background: var(--card); border-top: 1px solid var(--line); padding: 44px 0; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.foot nav a { color: var(--text); text-decoration: none; margin-left: 22px; font-weight: 600; }
.foot nav a:hover { color: var(--accent-ink); }
.foot .copy { width: 100%; font-size: .9rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 20px; margin-top: 4px; }

/* ---------- content pages (support / privacy) ---------- */

.page-head { text-align: center; padding: 58px 0 64px; position: relative; overflow: hidden; }
.page-head::before { content:""; position:absolute; inset:0; background: radial-gradient(50% 80% at 50% 0%, color-mix(in srgb, var(--calm) 14%, transparent), transparent 70%); }
.page-head > * { position: relative; }
.page-head img.logo { width: 84px; height: 84px; border-radius: 21px; margin: 0 auto 18px; box-shadow: var(--shadow); }
.page-head h1 { font-size: clamp(2.2rem,5.4vw,3.2rem); }
.back-link { display: inline-block; margin-top: 22px; color: var(--accent-ink); background: color-mix(in srgb, var(--accent) 12%, #fff); padding: 11px 20px; border-radius: 999px; text-decoration: none; font-weight: 700; }
.prose { max-width: 760px; margin: 0 auto; padding: 66px 24px; }
.prose h2 { font-size: 1.85rem; margin: 8px 0 22px; }
.prose h3 { font-size: 1.3rem; color: var(--ink); margin: 38px 0 12px; }
.prose p { margin: 0 0 18px; }
.prose ul { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin: 0 0 8px; }
.faq { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); margin-bottom: 14px; overflow: hidden; }
.faq summary { cursor: pointer; padding: 22px 26px; font-family:'Nunito',sans-serif; font-weight: 700; font-size: 1.12rem; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 800; font-size: 1.5rem; line-height: 1; transition: transform .2s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 26px 24px; color: var(--muted); font-size: 1.04rem; }
.callout { background: color-mix(in srgb, var(--accent) 10%, #fff); border-radius: var(--radius); padding: 24px 28px; }

/* ---------- motion ---------- */

@keyframes pop { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes breathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero h1, .hero .lede, .hero .picker, .hero .cta-row { animation: rise .6s both cubic-bezier(.2,.7,.2,1); }
.hero .lede { animation-delay: .06s; } .hero .picker { animation-delay: .12s; } .hero .cta-row { animation-delay: .18s; }

/* ---------- a11y ---------- */

a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--calm); outline-offset: 3px; border-radius: 8px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .mosaic .cell { transform: scale(1); opacity: 1; }
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .steps, .grid, .privacy-grid { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 1.08rem; }
  .section { padding: 62px 0; }
  .grid { grid-template-columns: 1fr; }
  .topnav { gap: 14px; font-size: .95rem; }
  .topnav a.hide-sm { display: none; }
  .mood .bead { width: 46px; height: 46px; }
  .foot .wrap { flex-direction: column; align-items: flex-start; }
  .foot nav a { margin: 0 22px 0 0; }
}
