:root {
  --bg: #f6f7fb;
  --text: #27304a;
  --muted: #66708a;
  --mint: #c9f0e0;
  --mint-deep: #2f9e78;
  --lilac: #e3dcff;
  --lilac-deep: #6c58d6;
  --peach: #ffe1d2;
  --peach-deep: #d9714a;
  --sky: #d6ecff;
  --sky-deep: #3a82c9;
  --white: #ffffff;
  --radius: 22px;
  --font: ui-rounded, "SF Pro Rounded", "Nunito", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.65; overflow-x: hidden; }
a { color: inherit; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: 780px; }

/* Header */
header { padding: 1.2rem 0; }
header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { height: 36px; display: block; }
.site-nav { display: flex; gap: 0.2rem; background: var(--white); padding: 0.35rem; border-radius: 999px; box-shadow: 0 2px 10px rgba(39,48,74,0.06); flex-wrap: wrap; }
.site-nav a { text-decoration: none; font-weight: 600; font-size: 0.88rem; padding: 0.45rem 0.95rem; border-radius: 999px; color: var(--muted); }
.site-nav a:hover { background: var(--bg); color: var(--text); }
.site-nav a.active { background: var(--text); color: #fff; }
.menu-btn { display: none; background: var(--white); border: none; border-radius: 12px; padding: 0.55rem 0.8rem; font-family: inherit; font-weight: 700; color: var(--text); cursor: pointer; box-shadow: 0 2px 10px rgba(39,48,74,0.08); }

/* Hero */
.hero { position: relative; padding: 4rem 0 5rem; text-align: center; }
.page-hero { position: relative; padding: 3rem 0 2.5rem; text-align: center; }
.blob { position: absolute; border-radius: 50%; filter: blur(50px); opacity: 0.75; z-index: -1; }
.b1 { width: 340px; height: 340px; background: var(--mint); top: -40px; left: 4%; }
.b2 { width: 300px; height: 300px; background: var(--lilac); top: 60px; right: 6%; }
.b3 { width: 220px; height: 220px; background: var(--peach); bottom: 0; left: 40%; }
.page-hero .b1 { width: 240px; height: 240px; }
.page-hero .b2 { width: 220px; height: 220px; top: 0; }
.pill { display: inline-block; background: var(--white); padding: 0.35rem 0.95rem; border-radius: 999px; font-size: 0.82rem; font-weight: 700; color: var(--mint-deep); margin-bottom: 1.3rem; box-shadow: 0 2px 10px rgba(39,48,74,0.06); }
h1 { font-size: clamp(2.3rem, 5.5vw, 3.8rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 1.2rem; }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h1 em { font-style: normal; background: linear-gradient(90deg, var(--mint-deep), var(--lilac-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p, .page-hero p { font-size: 1.12rem; color: var(--muted); max-width: 36rem; margin: 0 auto 2rem; }
.page-hero p { margin-bottom: 0; }
.btn { display: inline-block; border: none; cursor: pointer; font-family: inherit; font-weight: 700; font-size: 0.98rem; padding: 0.85rem 1.6rem; border-radius: 999px; text-decoration: none; transition: transform 0.15s, box-shadow 0.15s; }
.btn-main { background: var(--text); color: #fff; box-shadow: 0 8px 20px -8px rgba(39,48,74,0.55); }
.btn-soft { background: var(--white); color: var(--text); box-shadow: 0 2px 10px rgba(39,48,74,0.08); }
.btn:hover { transform: translateY(-2px); }
.btn-row { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }
.stats { display: flex; justify-content: center; gap: 2.5rem; margin-top: 3rem; flex-wrap: wrap; }
.stat strong { display: block; font-size: 1.6rem; font-weight: 800; }
.stat span { font-size: 0.85rem; color: var(--muted); }

/* Sections */
section { padding: 4rem 0; }
.head { text-align: center; max-width: 38rem; margin: 0 auto 2.6rem; }
.kicker { font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--lilac-deep); margin-bottom: 0.5rem; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 800; letter-spacing: -0.015em; line-height: 1.2; margin-bottom: 0.7rem; }
h3 { font-weight: 800; }
.head p { color: var(--muted); }
.panel { background: var(--white); border-radius: var(--radius); padding: 2rem 1.8rem; box-shadow: 0 4px 24px -10px rgba(39,48,74,0.18); }
.prose p { color: #46506a; margin-bottom: 1rem; }
.prose h3 { font-size: 1.25rem; margin: 1.6rem 0 0.5rem; }
.prose ul, .prose ol { padding-left: 1.3rem; color: #46506a; margin-bottom: 1rem; }
.prose li { margin-bottom: 0.35rem; }

/* Cards / grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.step-num { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; font-weight: 800; font-size: 1.2rem; margin-bottom: 1.1rem; }
.c-mint .step-num, .t-mint { background: var(--mint); color: var(--mint-deep); }
.c-lilac .step-num, .t-lilac { background: var(--lilac); color: var(--lilac-deep); }
.c-peach .step-num, .t-peach { background: var(--peach); color: var(--peach-deep); }
.c-sky .step-num, .t-sky { background: var(--sky); color: var(--sky-deep); }
.panel h3 { font-size: 1.18rem; margin-bottom: 0.5rem; }
.panel p { color: var(--muted); font-size: 0.96rem; }
.panel ul, .panel ol { margin-top: 0.8rem; padding-left: 1.1rem; color: var(--muted); font-size: 0.93rem; }
.panel li { margin-bottom: 0.3rem; }
.more { display: inline-block; margin-top: 1rem; font-weight: 700; font-size: 0.92rem; color: var(--lilac-deep); text-decoration: none; }
.more:hover { text-decoration: underline; }
.tag { display: inline-block; font-size: 0.75rem; font-weight: 800; padding: 0.2rem 0.65rem; border-radius: 999px; margin-bottom: 0.8rem; }

/* Subjects */
.subject { border-radius: var(--radius); padding: 1.7rem; }
.subject .emoji { font-size: 1.7rem; display: block; margin-bottom: 0.6rem; }
.subject h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.subject p { font-size: 0.93rem; color: #3f4862; }
.subject ul { margin-top: 0.7rem; padding-left: 1.1rem; font-size: 0.9rem; color: #3f4862; }
.subject li { margin-bottom: 0.3rem; }
.subject .best { margin-top: 0.9rem; font-size: 0.82rem; font-weight: 700; color: var(--text); }
.s-mint { background: var(--mint); } .s-lilac { background: var(--lilac); } .s-peach { background: var(--peach); } .s-sky { background: var(--sky); }

/* Table */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 24px -10px rgba(39,48,74,0.18); font-size: 0.93rem; }
th, td { text-align: left; padding: 0.9rem 1.1rem; }
th { background: var(--lilac); font-weight: 800; }
tr:nth-child(even) td { background: #fafaff; }

/* Flashcards */
.flash-band { background: var(--white); border-radius: 36px; padding: 3rem 2rem; box-shadow: 0 4px 30px -12px rgba(39,48,74,0.15); }
.flash-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: center; }
.flash-form label { display: block; font-weight: 700; font-size: 0.88rem; margin: 0 0 0.35rem; }
.flash-form input, .flash-form textarea { width: 100%; font-family: inherit; font-size: 0.98rem; color: var(--text); background: var(--bg); border: 2px solid transparent; border-radius: 14px; padding: 0.75rem 1rem; margin-bottom: 1rem; resize: none; }
.flash-form input:focus, .flash-form textarea:focus { outline: none; border-color: var(--lilac-deep); background: #fff; }
.flash-form .btn { width: 100%; }
.deck-info { text-align: center; font-size: 0.85rem; color: var(--muted); margin-top: 0.8rem; }
.card-stage { perspective: 1200px; }
.card { position: relative; height: 260px; cursor: pointer; transform-style: preserve-3d; transition: transform 0.55s cubic-bezier(.2,.8,.2,1); }
.card.flipped { transform: rotateY(180deg); }
.face { position: absolute; inset: 0; border-radius: 26px; backface-visibility: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 2rem; }
.front { background: linear-gradient(135deg, var(--sky), var(--lilac)); }
.back { background: linear-gradient(135deg, var(--mint), var(--sky)); transform: rotateY(180deg); }
.face small { font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 0.8rem; }
.face p { font-size: 1.35rem; font-weight: 700; line-height: 1.35; }
.card-nav { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.3rem; }
.round { width: 44px; height: 44px; border-radius: 50%; border: none; background: var(--bg); font-size: 1.1rem; cursor: pointer; font-family: inherit; color: var(--text); }
.round:hover { background: var(--lilac); }
.counter { font-weight: 700; font-size: 0.92rem; min-width: 4.5rem; text-align: center; }
.card-actions { display: flex; justify-content: center; gap: 0.6rem; margin-top: 0.8rem; flex-wrap: wrap; }
.tiny { background: none; border: none; font-family: inherit; font-size: 0.82rem; font-weight: 700; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.got { display: flex; justify-content: center; gap: 0.6rem; margin-top: 1rem; }
.got button { border: none; border-radius: 999px; padding: 0.5rem 1rem; font-family: inherit; font-weight: 700; font-size: 0.85rem; cursor: pointer; }
.got .yes { background: var(--mint); color: var(--mint-deep); }
.got .no { background: var(--peach); color: var(--peach-deep); }
.score { text-align: center; font-size: 0.85rem; color: var(--muted); margin-top: 0.6rem; }

/* FAQ */
.faq-group { margin-bottom: 2.5rem; }
.faq-group h3 { font-size: 1.1rem; margin-bottom: 0.9rem; }
details { background: var(--white); border-radius: 18px; margin-bottom: 0.8rem; box-shadow: 0 2px 12px -6px rgba(39,48,74,0.15); }
summary { cursor: pointer; list-style: none; padding: 1.15rem 1.4rem; font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.4rem; color: var(--lilac-deep); transition: transform 0.2s; flex-shrink: 0; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 1.4rem 1.25rem; color: var(--muted); font-size: 0.96rem; }

/* Contact */
.contact-card { background: linear-gradient(135deg, var(--mint), var(--lilac)); border-radius: 30px; padding: 2.5rem 2rem; text-align: center; }
.contact-card p { color: #3f4862; max-width: 30rem; margin: 0 auto 1.4rem; }
.email { display: inline-block; background: var(--white); padding: 0.85rem 1.5rem; border-radius: 999px; font-weight: 800; font-size: 1.1rem; text-decoration: none; box-shadow: 0 6px 18px -8px rgba(39,48,74,0.35); }
.email:hover { color: var(--lilac-deep); }

/* CTA + footer */
.cta { text-align: center; background: linear-gradient(135deg, var(--mint), var(--lilac)); border-radius: 36px; padding: 3.5rem 2rem; }
.cta p { color: #3f4862; max-width: 32rem; margin: 0 auto 1.6rem; }
footer { padding: 3rem 0 2.5rem; color: var(--muted); font-size: 0.9rem; border-top: 1px solid #e4e6ef; margin-top: 2rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.foot-grid h4 { color: var(--text); font-size: 0.9rem; margin-bottom: 0.7rem; }
.foot-grid ul { list-style: none; }
.foot-grid li { margin-bottom: 0.4rem; }
.foot-grid a { text-decoration: none; }
.foot-grid a:hover { color: var(--text); text-decoration: underline; }
.foot-grid img { height: 30px; margin-bottom: 0.7rem; }
.copy { margin-top: 2rem; font-size: 0.82rem; }

@media (max-width: 860px) {
  .grid-3, .grid-2, .flash-grid, .foot-grid { grid-template-columns: 1fr; }
  .menu-btn { display: block; }
  header .wrap { flex-wrap: wrap; }
  .site-nav { display: none; width: 100%; flex-direction: column; border-radius: 18px; }
  .site-nav.open { display: flex; }
  .flash-band { padding: 2.5rem 1.2rem; }
}
