@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;600;700;800&family=Nunito:ital,wght@0,400;0,600;0,700;0,800;1,400&display=swap');

:root {
  --bg:          #FFF1F6;
  --bg-card:     #FFFFFF;
  --bg-soft:     #FFE3EE;
  --bg-section:  #FFF7FB;
  --ink:         #3A2E36;
  --ink-soft:    #7A6B73;
  --ink-hint:    #B49AA6;
  --primary:     #FF6B9D;
  --primary-dark:#E14B82;
  --accent:      #00B4D8;
  --accent-dark: #0090AE;
  --ok:          #2BB673;
  --ok-soft:     #E2F7EC;
  --warn:        #F4A62A;
  --line:        #F2D6E2;
  --pt-green:    #006600;
  --shadow:      rgba(225, 75, 130, 0.18);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* ── TYPOGRAPHY ───────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Baloo 2', 'Nunito', cursive;
  color: var(--ink);
  line-height: 1.2;
  font-weight: 800;
}
h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); color: var(--primary-dark); }
h3 { font-size: 1.25rem; }
p  { color: var(--ink-soft); margin-bottom: 1rem; }
a  { color: var(--primary-dark); text-decoration: none; }
a:hover { color: var(--primary); }

/* ── NAV ──────────────────────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 0 clamp(1rem, 5vw, 3rem);
  display: flex; align-items: center; justify-content: space-between;
  height: 66px;
}
.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-brand img { width: 40px; height: 40px; border-radius: 12px; box-shadow: 0 3px 10px var(--shadow); }
.nav-brand-text { font-family: 'Baloo 2', cursive; font-size: 1.25rem; color: var(--primary-dark); font-weight: 800; letter-spacing: 0.3px; }
.nav-brand-sub { font-size: 0.6rem; letter-spacing: 3px; color: var(--ink-hint); display: block; margin-top: -4px; font-weight: 700; }
.nav-links { display: flex; gap: 1.8rem; list-style: none; align-items: center; }
.nav-links a { font-size: 0.85rem; letter-spacing: 0.5px; color: var(--ink-soft); font-weight: 700; }
.nav-links a:hover { color: var(--primary); }
.nav-cta {
  background: var(--primary); color: #fff !important;
  padding: 9px 20px; border-radius: 22px; font-size: 0.82rem !important;
  letter-spacing: 0.5px; box-shadow: 0 4px 14px var(--shadow);
  transition: all 0.2s;
}
.nav-cta:hover { background: var(--primary-dark); color: #fff !important; transform: translateY(-1px); }

/* ── ORNAMENT ─────────────────────────────────────────────── */
.ornament { color: var(--primary); letter-spacing: 8px; font-size: 0.9rem; text-align: center; margin: 0.5rem 0; }

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 5vw, 3rem) clamp(4rem, 9vw, 7rem);
  background:
    radial-gradient(circle at 18% 20%, rgba(0,180,216,0.16), transparent 42%),
    radial-gradient(circle at 82% 12%, rgba(255,107,157,0.22), transparent 45%),
    linear-gradient(160deg, #FFF1F6 0%, #FFE3EE 55%, #E8F7FB 100%);
}
.hero-emoji {
  position: absolute; opacity: 0.5; font-size: 2rem; user-select: none; pointer-events: none;
  animation: float 6s ease-in-out infinite;
}
.hero-emoji.e1 { top: 12%; left: 8%; animation-delay: 0s; }
.hero-emoji.e2 { top: 22%; right: 10%; animation-delay: 1.2s; font-size: 2.6rem; }
.hero-emoji.e3 { bottom: 18%; left: 14%; animation-delay: 2.4s; font-size: 2.4rem; }
.hero-emoji.e4 { bottom: 24%; right: 16%; animation-delay: 0.6s; }
.hero-emoji.e5 { top: 50%; left: 4%; animation-delay: 1.8s; }
@keyframes float { 0%,100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-16px) rotate(4deg); } }

.hero-content { position: relative; z-index: 1; text-align: center; max-width: 820px; margin: 0 auto; }
.hero-icon {
  width: 132px; height: 132px; border-radius: 36px;
  border: 4px solid #fff;
  box-shadow: 0 16px 40px var(--shadow);
  margin-bottom: 1.4rem;
}
.hero-title { letter-spacing: 0.5px; margin-bottom: 0.4rem; }
.hero-title .pt { color: var(--pt-green); }
.hero-title .accent { color: var(--accent); }
.hero-tagline { font-size: clamp(1.05rem, 2.4vw, 1.4rem); color: var(--ink-soft); margin: 0 auto 0.6rem; max-width: 560px; font-weight: 600; }
.hero-brand { font-size: 0.72rem; letter-spacing: 4px; color: var(--ink-hint); font-weight: 800; margin-bottom: 1.4rem; }
.hero-badge {
  display: inline-block; background: rgba(0,180,216,0.12);
  border: 1.5px solid rgba(0,180,216,0.4); border-radius: 22px;
  padding: 0.3rem 1rem; font-size: 0.78rem; letter-spacing: 1px;
  color: var(--accent-dark); font-weight: 800; margin-bottom: 1.6rem;
}
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── STAT STRIP ───────────────────────────────────────────── */
.stat-strip {
  display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(1rem, 5vw, 3.5rem);
  max-width: 900px; margin: 2.6rem auto 0; position: relative; z-index: 1;
}
.stat { text-align: center; }
.stat-num { font-family: 'Baloo 2', cursive; font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; color: var(--primary-dark); line-height: 1; }
.stat-lbl { font-size: 0.78rem; color: var(--ink-soft); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 0.3rem; }

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 15px 30px; border-radius: 50px;
  font-family: 'Baloo 2', cursive;
  font-size: 1rem; font-weight: 700; letter-spacing: 0.4px;
  transition: all 0.2s; cursor: pointer; text-decoration: none; border: none;
}
.btn-primary {
  background: linear-gradient(135deg, #FF8FB5, #FF6B9D, #E14B82);
  color: #fff;
  box-shadow: 0 8px 24px var(--shadow);
}
.btn-primary:hover { box-shadow: 0 12px 32px rgba(225,75,130,0.35); transform: translateY(-2px); color: #fff; }
.btn-outline {
  border: 2px solid var(--accent); color: var(--accent-dark);
  background: rgba(0,180,216,0.06);
}
.btn-outline:hover { background: rgba(0,180,216,0.14); color: var(--accent-dark); }
.btn-store {
  background: #fff; border: 2px solid var(--line); color: var(--ink);
  box-shadow: 0 6px 18px var(--shadow);
}
.btn-store:hover { border-color: var(--primary); transform: translateY(-2px); }
.btn-store .store-label { display: flex; flex-direction: column; text-align: left; line-height: 1.1; }
.btn-store .store-sub { font-size: 0.65rem; font-weight: 600; letter-spacing: 0.5px; color: var(--ink-soft); font-family: 'Nunito', sans-serif; }
.btn-store .store-name { font-size: 1.05rem; font-weight: 700; color: var(--ink); }

/* ── SECTIONS ─────────────────────────────────────────────── */
section { padding: clamp(3rem, 8vw, 5.5rem) clamp(1rem, 5vw, 3rem); }
.container { max-width: 1100px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header p { max-width: 620px; margin: 0.75rem auto 0; }
.bg-section { background: var(--bg-section); }

/* ── FEATURES GRID ────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 24px; padding: 1.8rem;
  box-shadow: 0 6px 20px rgba(225,75,130,0.07);
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px var(--shadow); }
.feature-icon {
  font-size: 1.8rem; width: 58px; height: 58px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--bg-soft), #fff);
  margin-bottom: 1rem;
}
.feature-card h3 { color: var(--primary-dark); margin-bottom: 0.5rem; }
.feature-card p { margin: 0; font-size: 0.92rem; }

/* ── FLOW (topic steps) ───────────────────────────────────── */
.flow-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 1.2rem; }
.flow-card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 22px;
  padding: 1.6rem 1.4rem; text-align: center; position: relative;
  box-shadow: 0 6px 20px rgba(225,75,130,0.07);
}
.flow-num {
  width: 38px; height: 38px; border-radius: 50%; margin: 0 auto 0.8rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary); color: #fff; font-weight: 800; font-family: 'Baloo 2', cursive;
}
.flow-card h3 { color: var(--ink); font-size: 1.1rem; margin-bottom: 0.4rem; }
.flow-card p { font-size: 0.88rem; margin: 0; }

/* ── DOWNLOAD ─────────────────────────────────────────────── */
.download { text-align: center; }
.download .container { max-width: 700px; }

/* ── MANUAL ───────────────────────────────────────────────── */
.manual-grid { display: grid; grid-template-columns: 250px 1fr; gap: 2.2rem; align-items: start; }
.manual-toc {
  position: sticky; top: 84px; background: var(--bg-card);
  border: 1px solid var(--line); border-radius: 20px; padding: 1.4rem;
  box-shadow: 0 6px 20px rgba(225,75,130,0.07);
}
.manual-toc h4 { font-size: 0.72rem; letter-spacing: 2px; text-transform: uppercase; color: var(--ink-hint); margin-bottom: 1rem; }
.manual-toc ul { list-style: none; }
.manual-toc li + li { margin-top: 0.55rem; }
.manual-toc a { font-size: 0.88rem; color: var(--ink-soft); font-weight: 600; transition: color 0.15s; }
.manual-toc a:hover { color: var(--primary); }
.manual-block { margin-bottom: 2.6rem; scroll-margin-top: 84px; }
.manual-block h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 1rem; font-size: 1.2rem; color: var(--primary-dark); }
.manual-block h3 .step-num {
  width: 32px; height: 32px; background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; color: #fff; font-weight: 800; flex-shrink: 0; font-family: 'Baloo 2', cursive;
}
.manual-block p { font-size: 0.95rem; }
.manual-block ul { margin: 0.5rem 0 1rem 1.5rem; }
.manual-block li { font-size: 0.93rem; color: var(--ink-soft); margin-bottom: 0.4rem; }
.tip-box {
  background: rgba(0,180,216,0.07); border-left: 4px solid var(--accent);
  border-radius: 0 14px 14px 0; padding: 1rem 1.25rem; margin: 1rem 0;
}
.tip-box p { margin: 0; font-size: 0.92rem; }
.tip-box strong { color: var(--accent-dark); }
.tip-box.pink { background: rgba(255,107,157,0.08); border-left-color: var(--primary); }
.tip-box.pink strong { color: var(--primary-dark); }

/* ── LEGAL ────────────────────────────────────────────────── */
.legal-content { max-width: 780px; margin: 0 auto; }
.legal-content h3 { color: var(--primary-dark); font-size: 1rem; margin: 1.75rem 0 0.5rem; text-transform: uppercase; letter-spacing: 0.5px; }
.legal-content p { font-size: 0.92rem; margin-bottom: 0.75rem; }
.legal-content ul { margin: 0.5rem 0 0.75rem 1.5rem; }
.legal-content li { font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 0.4rem; }
.legal-date { font-size: 0.82rem; color: var(--ink-hint); margin-bottom: 2rem; font-weight: 700; }

/* ── TABS ─────────────────────────────────────────────────── */
.tabs { display: flex; gap: 5px; margin-bottom: 2rem; background: var(--bg-soft); border-radius: 16px; padding: 5px; flex-wrap: wrap; }
.tab-btn {
  flex: 1; min-width: 130px; padding: 11px 16px; border: none; cursor: pointer;
  border-radius: 12px; font-family: 'Baloo 2', cursive; font-size: 0.9rem; font-weight: 700;
  background: transparent; color: var(--ink-soft); transition: all 0.2s;
}
.tab-btn.active { background: var(--primary); color: #fff; box-shadow: 0 4px 12px var(--shadow); }
.tab-btn:hover:not(.active) { color: var(--primary-dark); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ── FOOTER ───────────────────────────────────────────────── */
footer { background: var(--bg-card); border-top: 1px solid var(--line); padding: clamp(2.5rem, 5vw, 3.5rem) clamp(1rem, 5vw, 3rem) 2rem; }
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2rem; align-items: start; margin-bottom: 2rem; }
.footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.footer-brand img { width: 56px; height: 56px; border-radius: 16px; box-shadow: 0 4px 12px var(--shadow); }
.footer-brand h3 { font-size: 1.15rem; color: var(--primary-dark); margin-bottom: 0.1rem; }
.footer-brand .sub { font-size: 0.68rem; letter-spacing: 2px; color: var(--ink-hint); font-weight: 800; margin-bottom: 0.5rem; }
.footer-brand p { font-size: 0.85rem; margin: 0; max-width: 360px; }
.footer-links { display: flex; flex-direction: column; gap: 0.55rem; text-align: right; }
.footer-links a { font-size: 0.88rem; color: var(--ink-soft); font-weight: 600; }
.footer-links a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid var(--line); padding-top: 1.4rem;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
}
.footer-copy { font-size: 0.82rem; color: var(--ink-hint); font-weight: 600; }
.footer-octo { display: flex; align-items: center; gap: 8px; }
.footer-octo img { width: 22px; height: 22px; }

/* ── HIGHLIGHT ────────────────────────────────────────────── */
.highlight { color: var(--primary-dark); font-weight: 800; }
kbd { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; font-size: 0.82rem; color: var(--primary-dark); font-family: 'Nunito', monospace; font-weight: 700; }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 860px) {
  .nav-links { gap: 1rem; }
  .nav-links li:not(:last-child) { display: none; }
  .manual-grid { grid-template-columns: 1fr; }
  .manual-toc { position: static; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-links { text-align: left; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
