/* Qummo — shared styles.
   Tokens mirror the app's design system (Qummo/DesignSystem/QummoColor.swift).
   No external fonts or scripts: the site makes zero third-party requests, which keeps
   the "no tracking" promise literally true.
   Motion: everything animated is decorative and is fully disabled under
   prefers-reduced-motion — this audience includes sensory-sensitive families. */

:root {
  --brand: #6C6BEF;
  --brand-soft: #E7E6FF;
  --sky: #7FC8F8;
  --coral: #FF8A7A;
  --reward: #F6B335;
  --success: #37B883;
  --bg: #FBF7F0;
  --surface: #FFFFFF;
  --sunken: #F1ECE3;
  --ink: #2A2740;
  --ink-2: #6E6A85;
  --hairline: rgba(42, 39, 64, 0.08);
  --shadow: 0 18px 50px rgba(42, 39, 64, 0.10);
  --radius: 24px;
  --starfield: #1E1B2B;
  --font: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI",
          system-ui, "Helvetica Neue", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #8E8CFF;
    --brand-soft: #322F55;
    --sky: #5EA8DC;
    --coral: #FF9E90;
    --reward: #FFC24B;
    --success: #4FD3A0;
    --bg: #141220;
    --surface: #252134;
    --sunken: #1A1726;
    --ink: #F3F1FA;
    --ink-2: #B4AFC9;
    --hairline: rgba(255, 255, 255, 0.08);
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
    --starfield: #0F0D1A;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }

a { color: var(--brand); }

/* ---------- Header ---------- */

.site-head {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--hairline);
}
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.wordmark {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em;
  color: var(--ink); text-decoration: none;
}
.wordmark svg { width: 34px; height: 34px; }
.head-links { display: flex; gap: 22px; align-items: center; }
.head-links a {
  color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .95rem;
}
.head-links a:hover { color: var(--brand); }
@media (max-width: 640px) { .head-links .hide-sm { display: none; } }

/* ---------- Hero ---------- */

.hero {
  position: relative; overflow: hidden;
  padding: 76px 0 48px;
  text-align: center;
}
.hero::before {
  content: ""; position: absolute; inset: -40% 0 auto 0; height: 640px;
  background:
    radial-gradient(closest-side, color-mix(in srgb, var(--brand) 20%, transparent), transparent 100%);
  filter: blur(10px); pointer-events: none;
}

/* Floating background orbs — the site's version of the app's QummoBackground. */
.orbs { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(46px); opacity: .5; mix-blend-mode: multiply;
}
@media (prefers-color-scheme: dark) { .orb { mix-blend-mode: screen; opacity: .32; } }
.orb-1 { width: 340px; height: 340px; background: var(--brand); top: -60px; left: -80px;
         animation: drift-a 26s ease-in-out infinite alternate; }
.orb-2 { width: 280px; height: 280px; background: var(--sky); top: 120px; right: -90px;
         animation: drift-b 31s ease-in-out infinite alternate; }
.orb-3 { width: 220px; height: 220px; background: var(--coral); bottom: -40px; left: 16%;
         animation: drift-c 24s ease-in-out infinite alternate; opacity: .32; }
.orb-4 { width: 180px; height: 180px; background: var(--reward); bottom: 60px; right: 22%;
         animation: drift-a 36s ease-in-out infinite alternate-reverse; opacity: .3; }
@keyframes drift-a { from { transform: translate(0,0) scale(1); } to { transform: translate(60px, 44px) scale(1.15); } }
@keyframes drift-b { from { transform: translate(0,0) scale(1.1); } to { transform: translate(-70px, 36px) scale(0.95); } }
@keyframes drift-c { from { transform: translate(0,0); } to { transform: translate(50px, -34px) scale(1.12); } }

/* The mascot: breathes, floats, blinks, waves — same personality as the app. */
.hero-mascot { width: 190px; height: 190px; margin: 0 auto 4px; position: relative; }
.hero-mascot svg { overflow: visible; }
.mascot-float { animation: floaty 6s ease-in-out infinite; transform-origin: 100px 100px; }
.mascot-breathe { animation: breathe 4.2s ease-in-out infinite; transform-origin: 100px 100px; }
.mascot-glow { animation: glow-pulse 4.2s ease-in-out infinite; transform-origin: 100px 100px; }
.mascot-eyes { animation: blink 5.4s infinite; transform-origin: 100px 96px; }
.mascot-arm-r { animation: wave 7s ease-in-out infinite; transform-origin: 154px 102px; }
.mascot-arm-l { animation: bob 3.4s ease-in-out infinite; transform-origin: 46px 102px; }
.mascot-shadow { animation: shadow-squash 6s ease-in-out infinite; transform-origin: 100px 178px; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes breathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.035); } }
@keyframes glow-pulse { 0%,100% { opacity: .85; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes blink { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(0.08); } }
@keyframes wave {
  0%, 12%, 100% { transform: rotate(0deg); }
  3% { transform: rotate(-26deg); } 6% { transform: rotate(14deg); } 9% { transform: rotate(-18deg); }
}
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(3px); } }
@keyframes shadow-squash { 0%,100% { transform: scaleX(1); opacity:.5; } 50% { transform: scaleX(0.82); opacity:.32; } }

/* Sparkles around the mascot */
.spark { position: absolute; font-size: 20px; opacity: 0; animation: spark 5.5s ease-in-out infinite; }
.spark-1 { top: 8%; left: 12%; animation-delay: 0s; }
.spark-2 { top: 18%; right: 8%; animation-delay: 1.8s; font-size: 15px; }
.spark-3 { bottom: 12%; left: 4%; animation-delay: 3.4s; font-size: 16px; }
@keyframes spark {
  0%, 100% { opacity: 0; transform: scale(.4) rotate(0deg); }
  12% { opacity: 1; transform: scale(1) rotate(18deg); }
  24% { opacity: 0; transform: scale(.5) rotate(32deg); }
}

h1 {
  font-size: clamp(2.3rem, 6vw, 3.6rem);
  line-height: 1.08; letter-spacing: -0.03em; font-weight: 800;
  margin: 12px auto 14px; max-width: 16ch;
  position: relative;
}
/* Self-drawing underline under the key phrase */
.hl { position: relative; white-space: nowrap; }
.hl svg { position: absolute; left: 0; right: 0; bottom: -0.18em; width: 100%; height: 0.32em; overflow: visible; }
.hl path {
  fill: none; stroke: url(#hlgrad); stroke-width: 7; stroke-linecap: round;
  stroke-dasharray: 320; stroke-dashoffset: 320;
  animation: draw-line 1s ease-out 1s forwards;
}
@keyframes draw-line { to { stroke-dashoffset: 0; } }

.lede {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--ink-2); max-width: 54ch; margin: 0 auto 28px;
}
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; }

/* Load-in choreography for the hero (only when JS confirms motion is allowed) */
.js-anim .rise { opacity: 0; transform: translateY(22px); animation: rise .8s cubic-bezier(.2,.7,.2,1) forwards; }
.js-anim .rise-1 { animation-delay: .05s; }
.js-anim .rise-2 { animation-delay: .18s; }
.js-anim .rise-3 { animation-delay: .32s; }
.js-anim .rise-4 { animation-delay: .46s; }
.js-anim .rise-5 { animation-delay: .60s; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 700; font-size: 1rem; text-decoration: none;
  border: 0; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--sky));
  box-shadow: 0 10px 26px color-mix(in srgb, var(--brand) 38%, transparent);
}
.btn-primary:hover { transform: translateY(-2px) scale(1.02); }
.btn-primary svg { animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 0%,100% { transform: translateX(0); } 50% { transform: translateX(4px); } }
.btn-ghost {
  color: var(--ink); background: var(--surface);
  border: 1px solid var(--hairline);
}
.btn-ghost:hover { transform: translateY(-2px); }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.cta-note { font-size: .88rem; color: var(--ink-2); margin-top: 16px; }

/* ---------- Trust strip ---------- */

.pills { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.pill {
  background: var(--brand-soft); color: var(--brand);
  border-radius: 999px; padding: 6px 14px;
  font-size: .85rem; font-weight: 700;
}

/* ---------- Sections + scroll reveals ---------- */

section { padding: 68px 0; }
.section-head { text-align: center; max-width: 62ch; margin: 0 auto 44px; }
h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  letter-spacing: -0.02em; font-weight: 800; margin: 0 0 12px;
}
.section-head p { color: var(--ink-2); margin: 0; font-size: 1.05rem; }

/* Reveals are transform-only on purpose: if transitions never run (old browser,
   throttled tab, no JS), the content is still fully visible — just 18px lower. */
.js-anim .reveal { transform: translateY(18px); transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.js-anim .reveal.in { transform: none; }
.js-anim .stagger > * { transform: translateY(16px); transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.js-anim .stagger.in > * { transform: none; }
.js-anim .stagger.in > :nth-child(1) { transition-delay: .04s; }
.js-anim .stagger.in > :nth-child(2) { transition-delay: .12s; }
.js-anim .stagger.in > :nth-child(3) { transition-delay: .20s; }
.js-anim .stagger.in > :nth-child(4) { transition-delay: .28s; }
.js-anim .stagger.in > :nth-child(5) { transition-delay: .36s; }
.js-anim .stagger.in > :nth-child(6) { transition-delay: .44s; }

/* ---------- Shots ---------- */

.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 860px) { .shots { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .shots { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; } }
.shot { position: relative; }
.shot figure { margin: 0; }
.shot img {
  width: 100%; height: auto; display: block;
  border-radius: 28px;
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow);
  background: var(--surface);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease;
}
.shot:hover img {
  transform: translateY(-10px) rotate(-0.6deg) scale(1.015);
  box-shadow: 0 30px 70px rgba(42, 39, 64, 0.18);
}
.shot:nth-child(even):hover img { transform: translateY(-10px) rotate(0.6deg) scale(1.015); }
.shot figcaption {
  margin-top: 14px; text-align: center;
  font-size: .95rem; color: var(--ink-2);
}
.shot figcaption strong { display: block; color: var(--ink); font-size: 1rem; }

/* ---------- Pillars ---------- */

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 820px) { .pillars { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--radius); padding: 30px;
  box-shadow: 0 2px 14px rgba(42, 39, 64, 0.04);
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease;
}
.pillars .card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card .ico {
  width: 52px; height: 52px; border-radius: 16px;
  display: grid; place-items: center; margin-bottom: 16px;
  background: var(--brand-soft);
  transition: transform .3s ease;
}
.pillars .card:hover .ico { transform: rotate(-6deg) scale(1.08); }
.card .ico svg { width: 26px; height: 26px; stroke: var(--brand); fill: none; stroke-width: 2; }
.card h3 { margin: 0 0 8px; font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--ink-2); }

/* ---------- Live timers showcase ---------- */

.timers-band { background: var(--sunken); position: relative; overflow: hidden; }
.timer-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 880px; margin: 0 auto; }
@media (max-width: 760px) { .timer-row { grid-template-columns: 1fr; max-width: 320px; } }
.timer-card {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--radius); padding: 26px 22px 20px; text-align: center;
  box-shadow: 0 2px 14px rgba(42,39,64,0.04);
}
.timer-card h3 { margin: 16px 0 4px; font-size: 1.05rem; }
.timer-card p { margin: 0; color: var(--ink-2); font-size: .9rem; }
.timer-stage { height: 170px; display: grid; place-items: center; position: relative; }

/* Ring timer: depleting stroke, warms to coral at the end (like the app). */
.t-ring { transform: rotate(-90deg); }
.t-ring .track { stroke: var(--brand-soft); }
.t-ring .prog {
  stroke: var(--brand); stroke-dasharray: 302; stroke-linecap: round;
  animation: ring-deplete 8s linear infinite;
}
@keyframes ring-deplete {
  0% { stroke-dashoffset: 0; stroke: var(--brand); }
  70% { stroke: var(--brand); }
  92% { stroke: var(--coral); }
  100% { stroke-dashoffset: 302; stroke: var(--coral); }
}
.t-ring-dot { animation: ring-pop 8s linear infinite; transform-origin: 60px 60px; }
@keyframes ring-pop { 0%,96% { opacity: 1; } 98% { opacity: 0; } 100% { opacity: 1; } }

/* Balloon timer: inflates from the knot, sways, lifts at the end. */
.t-balloon { animation: balloon-cycle 8s ease-in-out infinite; transform-origin: 60px 132px; }
@keyframes balloon-cycle {
  0%   { transform: scale(.5) translateY(0); }
  78%  { transform: scale(1) translateY(0); }
  90%  { transform: scale(1.04) translateY(-14px); }
  97%  { transform: scale(1.04) translateY(-14px); opacity: 1; }
  99%  { transform: scale(1.2) translateY(-18px); opacity: 0; }
  100% { transform: scale(.5) translateY(0); opacity: 1; }
}
.t-balloon-sway { animation: balloon-sway 3.2s ease-in-out infinite; transform-origin: 60px 132px; }
@keyframes balloon-sway { 0%,100% { transform: rotate(-2.4deg); } 50% { transform: rotate(2.4deg); } }

/* Rocket timer: starfield + climbing rocket with flickering flame. */
.rocket-stage {
  width: 120px; height: 170px; border-radius: 20px; background: var(--starfield);
  position: relative; overflow: hidden; margin: 0 auto;
}
.star { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff; opacity: .8;
        animation: star-fall linear infinite; }
@keyframes star-fall { from { transform: translateY(-14px); } to { transform: translateY(184px); } }
.t-rocket { position: absolute; left: 50%; bottom: 0; margin-left: -17px;
            animation: rocket-climb 8s cubic-bezier(.45,0,.55,1) infinite; }
@keyframes rocket-climb {
  0% { transform: translateY(-6px); }
  92% { transform: translateY(-118px); }
  98% { transform: translateY(-190px); }
  100% { transform: translateY(-6px); }
}
.t-flame { animation: flicker .22s ease-in-out infinite alternate; transform-origin: 17px 44px; }
@keyframes flicker { from { transform: scaleY(1) scaleX(1); } to { transform: scaleY(1.45) scaleX(.82); } }

/* ---------- Steps ---------- */

.steps { counter-reset: step; display: grid; gap: 18px; max-width: 640px; margin: 0 auto; }
.step {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: 20px; padding: 22px 24px;
  transition: transform .3s ease;
}
.step:hover { transform: translateX(6px); }
.step::before {
  counter-increment: step; content: counter(step);
  flex: 0 0 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--sky));
  color: #fff; font-weight: 800;
}
.step h3 { margin: 4px 0 4px; font-size: 1.05rem; }
.step p { margin: 0; color: var(--ink-2); font-size: .97rem; }

/* ---------- For-whom ---------- */

.for-whom { background: var(--sunken); }
.tags { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 26px; }
.tag {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: 999px; padding: 9px 18px; font-weight: 600; font-size: .95rem;
  transition: transform .25s ease, border-color .25s ease;
}
.tag:hover { transform: translateY(-3px) rotate(-1deg); border-color: var(--brand); }
.disclaimer {
  margin: 30px auto 0; max-width: 60ch; text-align: center;
  font-size: .88rem; color: var(--ink-2);
}

/* ---------- Privacy band ---------- */

.privacy-band .card { text-align: center; padding: 44px 30px; }
.privacy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
@media (max-width: 720px) { .privacy-grid { grid-template-columns: 1fr; } }
.privacy-grid div { padding: 18px; }
.privacy-grid strong { display: block; font-size: 1.6rem; color: var(--brand); }
.privacy-grid span { color: var(--ink-2); font-size: .95rem; }

/* ---------- Pricing ---------- */

.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 760px; margin: 0 auto; }
@media (max-width: 720px) { .plans { grid-template-columns: 1fr; } }
.plan h3 { font-size: 1.15rem; margin: 0 0 4px; }
.plan .price { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; margin: 6px 0 4px; }
.plan .price small { font-size: .95rem; font-weight: 600; color: var(--ink-2); }
.plan ul { margin: 16px 0 0; padding: 0; list-style: none; }
.plan li { padding: 7px 0 7px 26px; position: relative; color: var(--ink-2); }
.plan li::before {
  content: ""; position: absolute; left: 0; top: 15px;
  width: 14px; height: 8px; border-left: 2.5px solid var(--success);
  border-bottom: 2.5px solid var(--success); transform: rotate(-45deg);
}
.plan-featured { border-color: color-mix(in srgb, var(--brand) 40%, transparent); position: relative; }
.js-anim .plan-featured { animation: featured-glow 3.6s ease-in-out infinite; }
@keyframes featured-glow {
  0%,100% { box-shadow: 0 2px 14px rgba(42,39,64,.04); }
  50% { box-shadow: 0 8px 40px color-mix(in srgb, var(--brand) 26%, transparent); }
}
.badge {
  display: inline-block; background: var(--reward); color: #3A2A00;
  border-radius: 999px; padding: 3px 11px; font-size: .78rem; font-weight: 800;
  margin-bottom: 10px;
}

/* ---------- Confetti (spawned by JS on celebration moments) ---------- */

.cf {
  position: absolute; width: 8px; height: 13px; border-radius: 2px;
  pointer-events: none; z-index: 5; top: 0; left: 0;
  background: var(--clr);
  animation: cf-fly 1.5s cubic-bezier(.2,.6,.4,1) forwards;
}
@keyframes cf-fly {
  0% { transform: translate(var(--x0), var(--y0)) rotate(0turn); opacity: 1; }
  100% { transform: translate(var(--x1), var(--y1)) rotate(var(--r)); opacity: 0; }
}

/* ---------- Footer ---------- */

.site-foot {
  border-top: 1px solid var(--hairline);
  padding: 44px 0 60px; margin-top: 20px;
  color: var(--ink-2); font-size: .93rem;
}
.foot-row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }
.site-foot a { color: var(--ink-2); text-decoration: none; }
.site-foot a:hover { color: var(--brand); }

/* ---------- Legal pages ---------- */

.legal { padding: 56px 0 80px; }
.legal h1 { text-align: left; max-width: none; font-size: clamp(2rem, 5vw, 2.6rem); margin-bottom: 6px; }
.legal .updated { color: var(--ink-2); font-size: .9rem; margin: 0 0 30px; }
.legal h2 { font-size: 1.25rem; margin: 34px 0 10px; }
.legal p, .legal li { color: var(--ink-2); }
.legal strong { color: var(--ink); }
.legal ul { padding-left: 22px; }
.legal li { margin: 6px 0; }

/* ---------- Reduced motion: kill everything decorative ---------- */

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js-anim .rise { opacity: 1 !important; }
  .js-anim .rise, .js-anim .reveal, .js-anim .stagger > * { transform: none !important; }
  .hl path { stroke-dashoffset: 0; }
  .cf { display: none; }
}
