/* Harmonize landing - palette and type pulled straight from the app theme. */
:root {
  --sky: #c2def4;
  --lavender: #cfbfee;
  --surface: #ffffff;
  --accent: #7fb0e6;
  --hit: #5fb56a;
  --amber: #cf8a2e;
  --ink: #3a3550;
  --ink-dim: #6b6480;
  --rose: #c8447e;   /* "third" interval color */
  --teal: #127e8c;   /* "fifth" interval color */
  --tint-cool: #eaf3fb;
  --tint-warm: #eee9f9;
  --shadow: 0 18px 40px -18px rgba(58, 53, 80, 0.35);
  --shadow-sm: 0 8px 20px -10px rgba(58, 53, 80, 0.3);
  --radius: 22px;
  --maxw: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  line-height: 1.6;
  background: linear-gradient(160deg, var(--sky) 0%, var(--lavender) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand-name {
  font-family: "Comfortaa", -apple-system, sans-serif;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.15;
}

a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* --- Drifting clouds (whole-page ambient background) --- */
.sky-clouds { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.sky-clouds img { position: absolute; opacity: 0.55; will-change: transform; }
.cloud-a { top: 12%; width: 220px; animation: drift 90s linear infinite; }
.cloud-b { top: 38%; width: 300px; opacity: 0.4; animation: drift 130s linear infinite; animation-delay: -40s; }
.cloud-c { top: 68%; width: 180px; opacity: 0.45; animation: drift 110s linear infinite; animation-delay: -70s; }
@keyframes drift {
  from { transform: translateX(-340px); }
  to   { transform: translateX(calc(100vw + 340px)); }
}

/* --- Header --- */
header {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.45);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 38px; height: 38px; border-radius: 10px; box-shadow: var(--shadow-sm); }
.brand-name { font-size: 1.25rem; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--ink-dim); font-weight: 500; font-size: 0.95rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--ink); }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: 1rem;
  padding: 13px 24px; border-radius: 999px;
  border: none; cursor: pointer; transition: transform 0.15s, box-shadow 0.2s;
}
.btn-primary { background: var(--ink); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 22px 44px -16px rgba(58, 53, 80, 0.5); }
.btn-ghost { background: rgba(255, 255, 255, 0.7); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { transform: translateY(-2px); background: #fff; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* --- Hero --- */
.hero { position: relative; z-index: 1; padding: 70px 0 90px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, 0.65); color: var(--ink-dim);
  font-size: 0.85rem; font-weight: 600; padding: 7px 15px; border-radius: 999px;
  box-shadow: var(--shadow-sm); margin-bottom: 22px;
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hit); }
.hero h1 { font-size: clamp(2.5rem, 5.5vw, 4rem); margin-bottom: 18px; }
.hero h1 .grad {
  background: linear-gradient(110deg, var(--rose), var(--accent) 55%, var(--teal));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p.lead { font-size: 1.2rem; color: var(--ink-dim); max-width: 30ch; margin-bottom: 32px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.cta-note { font-size: 0.85rem; color: var(--ink-dim); margin-top: 16px; }

/* Hero art: app icon on a soft card with balloons floating up around it */
.hero-art { position: relative; height: 420px; display: flex; align-items: center; justify-content: center; }
.icon-card {
  width: 200px; height: 200px; border-radius: 46px;
  box-shadow: 0 30px 60px -20px rgba(58, 53, 80, 0.55);
  position: relative; z-index: 2; animation: bob 6s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.float-balloon { position: absolute; width: 64px; z-index: 1; animation: rise 9s ease-in-out infinite; }
.float-balloon.b1 { left: 6%;  top: 8%;  width: 54px; animation-delay: -1s; }
.float-balloon.b2 { right: 4%; top: 18%; width: 72px; animation-delay: -4s; }
.float-balloon.b3 { left: 14%; bottom: 6%; width: 48px; animation-delay: -2.5s; }
.float-balloon.b4 { right: 12%; bottom: 12%; width: 60px; animation-delay: -6s; }
@keyframes rise {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50%      { transform: translateY(-26px) rotate(4deg); }
}

/* --- Sections --- */
section.band { position: relative; z-index: 1; padding: 80px 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 52px; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 14px; }
.section-head p { color: var(--ink-dim); font-size: 1.1rem; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: rgba(255, 255, 255, 0.82); border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card .ic {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center;
  font-size: 1.5rem; margin-bottom: 18px;
}
.card h3 { font-size: 1.2rem; margin-bottom: 9px; }
.card p { color: var(--ink-dim); font-size: 0.98rem; }
.ic-mic   { background: var(--tint-cool); }
.ic-lesson { background: linear-gradient(135deg, rgba(200,68,126,0.14), rgba(127,176,230,0.16)); }
.ic-range { background: var(--tint-warm); }
.ic-streak{ background: rgba(207, 138, 46, 0.14); }
.ic-balloon { background: rgba(127, 176, 230, 0.18); }
.ic-lock  { background: rgba(95, 181, 106, 0.16); }
/* Line-icon SVGs: stroke color is set per card below. */
.card .ic svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic-mic    { color: var(--accent); }
.ic-lesson { color: var(--rose); }
.ic-range  { color: var(--teal); }
.ic-lock   { color: var(--hit); }
/* Illustrated PNG icons keep their real (portrait) aspect ratio. The balloon is
   cropped from the top so the faint string at the bottom falls away. */
.ic-streak img { height: 40px; width: auto; display: block; }
.ic-balloon img { width: 42px; height: 42px; object-fit: cover; object-position: top; display: block; }

/* Interval color chips used in copy */
.chip { display: inline-block; padding: 1px 9px; border-radius: 999px; font-weight: 600; font-size: 0.92em; color: #fff; }
.chip-third { background: var(--rose); }
.chip-fifth { background: var(--teal); }

/* --- How it works --- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { text-align: center; padding: 0 12px; }
.step .num {
  counter-increment: step; width: 52px; height: 52px; margin: 0 auto 18px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--ink); color: #fff; font-family: "Comfortaa", sans-serif; font-weight: 700; font-size: 1.25rem;
}
.step .num::before { content: counter(step); }
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { color: var(--ink-dim); font-size: 0.98rem; }

/* --- Privacy callout --- */
.privacy-band { z-index: 1; position: relative; }
.privacy-card {
  background: rgba(255, 255, 255, 0.85); border-radius: 28px; padding: 52px 44px;
  box-shadow: var(--shadow); text-align: center; max-width: 760px; margin: 0 auto;
  border: 1px solid rgba(255,255,255,0.7);
}
.privacy-card .ic { margin-bottom: 14px; color: var(--hit); line-height: 0; }
.privacy-card .ic svg { width: 44px; height: 44px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.privacy-card h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-bottom: 14px; }
.privacy-card p { color: var(--ink-dim); font-size: 1.08rem; max-width: 52ch; margin: 0 auto 10px; }
.privacy-card .pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 24px; }
.pill { background: var(--tint-cool); color: var(--ink); font-weight: 600; font-size: 0.9rem; padding: 8px 16px; border-radius: 999px; }

/* --- Final CTA --- */
.final-cta { z-index: 1; position: relative; }
.final-cta-card {
  position: relative; overflow: hidden; text-align: center;
  background: linear-gradient(150deg, rgba(255,255,255,0.92), rgba(238,233,249,0.92));
  border: 1px solid rgba(255,255,255,0.7); border-radius: 30px;
  padding: 64px 44px; box-shadow: var(--shadow); max-width: 760px; margin: 0 auto;
}
.final-cta-card h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 14px; }
.final-cta-card p { color: var(--ink-dim); font-size: 1.1rem; max-width: 44ch; margin: 0 auto 28px; }
.final-balloon {
  position: absolute; width: 70px; top: -18px; right: 38px; opacity: 0.9;
  animation: rise 9s ease-in-out infinite;
}
@media (max-width: 600px) {
  .final-cta-card { padding: 48px 24px; }
  .final-balloon { width: 52px; right: 16px; }
}

/* --- Footer --- */
footer { position: relative; z-index: 1; padding: 50px 0 40px; border-top: 1px solid rgba(255,255,255,0.5); margin-top: 40px; }
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.foot .brand-name { font-size: 1.05rem; }
.foot-links { display: flex; gap: 22px; }
.foot-links a { color: var(--ink-dim); font-size: 0.92rem; transition: color 0.2s; }
.foot-links a:hover { color: var(--ink); }
.foot-copy { width: 100%; color: var(--ink-dim); font-size: 0.82rem; opacity: 0.8; }

/* --- Scroll reveal --- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* --- Responsive --- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 10px; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }
  .hero-art { height: 340px; order: -1; }
  .icon-card { width: 158px; height: 158px; border-radius: 38px; }
  .features { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .nav-links { display: none; }
}

/* --- Privacy policy page --- */
.doc { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; padding: 56px 24px 80px; }
.doc-card { background: rgba(255,255,255,0.9); border-radius: var(--radius); padding: 48px 44px; box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,0.7); }
.doc-card h1 { font-size: 2.2rem; margin-bottom: 6px; }
.doc-card .updated { color: var(--ink-dim); font-size: 0.9rem; margin-bottom: 28px; }
.doc-card h2 { font-size: 1.35rem; margin: 32px 0 12px; }
.doc-card p { color: #4a4560; margin-bottom: 14px; }
.doc-card ul { margin: 0 0 16px 22px; color: #4a4560; }
.doc-card li { margin-bottom: 8px; }
.doc-card a { color: var(--teal); text-decoration: underline; }
.doc-card strong { color: var(--ink); }
.back-link { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-dim); font-weight: 500; margin-bottom: 22px; }
.back-link:hover { color: var(--ink); }

@media (max-width: 600px) {
  .doc-card { padding: 32px 22px; }
  .privacy-card { padding: 40px 24px; }
}
