/* ============== Pages — shared section styles ============== */
.page-hero { padding: 72px 0 40px; }
.page-hero .hero-title { font-size: clamp(40px, 5.6vw, 64px); }
.page-hero .hero-sub { max-width: 640px; }

/* Alternating two-col rows */
.alt-row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.alt-row.flip { direction: rtl; }
.alt-row.flip > * { direction: ltr; }
.alt-row + .alt-row { margin-top: 96px; }
.alt-eyebrow { font-size: 12px; font-weight: 800; color: var(--berry); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.alt-row h2 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 14px; }
.alt-row p { font-size: 17px; margin-bottom: 18px; }
.alt-bullets { display: flex; flex-direction: column; gap: 10px; margin: 18px 0 24px; }
.alt-bullets li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; color: var(--ink); list-style: none; font-size: 15px; }
.alt-bullets .check-circ { width: 22px; height: 22px; border-radius: 50%; background: var(--lime-deep); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
@media (max-width: 900px) {
  .alt-row { grid-template-columns: 1fr; gap: 32px; }
  .alt-row.flip { direction: ltr; }
}

/* Steps strip */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step {
  background: var(--paper); border-radius: var(--radius-card);
  border: 2px solid var(--border); padding: 32px;
  position: relative; transition: transform .25s ease;
}
.step:hover { transform: translateY(-6px); }
.step-num {
  width: 56px; height: 56px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 26px; color: #fff;
  margin-bottom: 18px; box-shadow: 0 4px 0 rgba(0,0,0,.12);
  font-family: 'JetBrains Mono', monospace;
}
.step h3 { font-size: 22px; margin-bottom: 10px; }
.step p { font-size: 15px; }
.step-mock {
  margin-top: 22px; padding: 14px;
  border-radius: 14px; background: var(--cream);
  border: 1.5px solid var(--border);
}
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

/* Trust strip */
.trust-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 28px; background: var(--paper); border-radius: 22px; border: 2px solid var(--border); }
.trust { display: flex; gap: 12px; align-items: flex-start; }
.trust-icon { width: 36px; height: 36px; border-radius: 11px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.trust b { font-size: 14px; font-weight: 800; display: block; }
.trust span { font-size: 13px; color: var(--ink-soft); font-weight: 600; }
@media (max-width: 800px) { .trust-strip { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 800px; margin: 0 auto; }
.faq details {
  background: var(--paper); border: 2px solid var(--border);
  border-radius: 16px; padding: 0; margin-bottom: 12px;
  transition: border-color .2s;
}
.faq details[open] { border-color: var(--berry); }
.faq summary {
  list-style: none; cursor: pointer;
  padding: 22px 26px;
  font-weight: 800; font-size: 17px;
  display: flex; justify-content: space-between; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 26px; color: var(--berry); font-weight: 700; }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding: 0 26px 22px; font-size: 15px; }

/* Quad grid (rewards) */
.quad { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.quad-card { background: var(--paper); border-radius: var(--radius-card); padding: 32px; border: 2px solid var(--border); position: relative; overflow: hidden; transition: transform .25s ease; }
.quad-card:hover { transform: translateY(-4px); }
.quad-card .pillar-mark { width: 56px; height: 56px; }
.quad-card h3 { font-size: 24px; margin-bottom: 8px; }
.quad-card p { font-size: 15px; }
.quad-card .visual { margin-top: 22px; }
@media (max-width: 800px) { .quad { grid-template-columns: 1fr; } }

/* Streak preview */
.streak-mock { display: flex; gap: 6px; margin-top: 14px; }
.streak-day { width: 32px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 11px; }
.streak-day.on { background: var(--sun); color: #fff; box-shadow: 0 3px 0 #c97f10; }
.streak-day.off { background: var(--berry-light); color: var(--berry); }
.streak-day.today { background: var(--berry); color: #fff; box-shadow: 0 3px 0 var(--berry-deep); }

/* Coin row */
.coin-row { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.coin-pill { padding: 8px 14px; border-radius: 999px; background: var(--cream); border: 2px solid var(--border); font-weight: 800; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.coin-pill .coin { color: var(--sun); font-size: 14px; }

/* Badge wall */
.badge-wall { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 14px; }
.badge { aspect-ratio: 1; border-radius: 14px; display: flex; align-items: center; justify-content: center; color: #fff; box-shadow: 0 3px 0 rgba(0,0,0,.12); }
.badge.locked { background: var(--cream); color: var(--ink-soft); border: 2px dashed var(--border); box-shadow: none; }

/* Leaderboard */
.lb { background: var(--cream); border-radius: 14px; padding: 12px; margin-top: 14px; border: 1.5px solid var(--border); }
.lb-row { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 8px; }
.lb-row.me { background: var(--berry-light); }
.lb-rank { width: 24px; font-weight: 900; font-size: 14px; color: var(--ink-soft); text-align: center; }
.lb-name { flex: 1; font-weight: 800; font-size: 13px; }
.lb-score { font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 13px; color: var(--berry); }

/* Bank cards (community) */
.bank-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.bank-card { background: var(--paper); border: 2px solid var(--border); border-radius: 18px; padding: 22px; transition: transform .2s, border-color .2s; }
.bank-card:hover { transform: translateY(-4px); border-color: var(--berry); }
.bank-subj { font-size: 11px; font-weight: 800; color: var(--berry); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
.bank-title { font-size: 17px; font-weight: 900; margin-bottom: 6px; }
.bank-meta { display: flex; gap: 12px; font-size: 12px; color: var(--ink-soft); font-weight: 700; margin-bottom: 12px; }
.bank-creator { display: flex; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid var(--border); }
.bank-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--berry); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 12px; }
.bank-card .stars { color: var(--sun); font-size: 13px; letter-spacing: 1px; margin-left: auto; }
@media (max-width: 900px) { .bank-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .bank-grid { grid-template-columns: 1fr; } }

/* Avatar circle with letter (creator) */
.avatar-c { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 900; font-size: 24px; box-shadow: 0 4px 0 rgba(0,0,0,.1); }

/* Notify page form */
.notify-page { max-width: 720px; margin: 0 auto; padding: 0 24px; }
.notify-card {
  background: var(--paper); border-radius: 28px; padding: 48px;
  border: 2px solid var(--border); box-shadow: 0 24px 60px rgba(43,16,32,.1);
  position: relative; overflow: hidden;
}
.notify-card::before {
  content: ''; position: absolute; top: -100px; right: -100px;
  width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, var(--berry-light), transparent 70%);
  pointer-events: none;
}
.notify-form-page { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-weight: 800; font-size: 14px; }
.field input, .field select {
  padding: 16px 20px; border-radius: 14px;
  border: 2px solid var(--border);
  font-family: inherit; font-size: 15px; font-weight: 600;
  background: var(--cream); color: var(--ink);
}
.field input:focus, .field select:focus { outline: 0; border-color: var(--berry); background: #fff; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.check-pill { padding: 10px 16px; border-radius: 12px; background: var(--cream); border: 2px solid var(--border); font-weight: 700; font-size: 14px; cursor: pointer; user-select: none; transition: all .15s; }
.check-pill.on { background: var(--berry); color: #fff; border-color: var(--berry); box-shadow: 0 3px 0 var(--berry-deep); }
.check-pill input { display: none; }
.notify-perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 32px 0; }
.notify-perk { padding: 20px; border-radius: 16px; background: var(--cream); border: 1.5px solid var(--border); }
.notify-perk-icon { width: 36px; height: 36px; border-radius: 11px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; color: #fff; }
.notify-perk b { font-size: 14px; font-weight: 800; display: block; margin-bottom: 4px; }
.notify-perk span { font-size: 13px; color: var(--ink-soft); font-weight: 600; line-height: 1.4; }
@media (max-width: 700px) {
  .notify-card { padding: 32px 24px; }
  .notify-perks { grid-template-columns: 1fr; }
}
.success-state {
  text-align: center; padding: 24px;
}
.success-mark {
  width: 80px; height: 80px; border-radius: 50%; background: var(--lime-deep);
  color: #fff; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; box-shadow: 0 6px 0 #3a7a39;
  font-size: 40px;
  animation: pop .5s cubic-bezier(.6,0,.3,1.4);
}

/* Pricing-ish row for sync table */
.sync-table { display: grid; grid-template-columns: 1fr repeat(3, 80px); gap: 0; background: var(--paper); border-radius: 18px; border: 2px solid var(--border); overflow: hidden; }
.sync-table > div { padding: 14px 18px; border-bottom: 1px solid var(--border); display: flex; align-items: center; }
.sync-table > div:nth-last-child(-n+4) { border-bottom: 0; }
.sync-table .header { background: var(--cream); font-weight: 900; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; justify-content: center; }
.sync-table .row-label { font-weight: 700; font-size: 14px; }
.sync-table .y { color: var(--lime-deep); font-weight: 900; font-size: 18px; justify-content: center; }
.sync-table .n { color: var(--ink-soft); justify-content: center; }
@media (max-width: 600px) {
  .sync-table { grid-template-columns: 1fr 60px 60px 60px; }
  .sync-table > div { padding: 10px 12px; font-size: 13px; }
}

/* Coming soon banner inside hero */
.coming-banner { display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; border-radius: 999px; background: linear-gradient(135deg, #fff3d4, #ffd581); color: #b76d00; font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }

/* Nav active state */
.nav-links a.on { color: var(--berry); background: var(--berry-light); }


/* ============== Three ways to study ============== */
.three-ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tw-card {
  background: var(--paper);
  border: 2px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  position: relative;
  transition: transform .25s ease;
  display: flex; flex-direction: column;
}
.tw-card:hover { transform: translateY(-6px); }
.tw-mark {
  width: 56px; height: 56px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 26px;
  margin-bottom: 18px; box-shadow: 0 4px 0 rgba(0,0,0,.12);
}
.tw-eyebrow {
  font-size: 11px; font-weight: 800;
  color: var(--berry); letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 8px;
  font-family: 'JetBrains Mono', monospace;
}
.tw-card h3 { font-size: 22px; margin-bottom: 8px; }
.tw-card p { font-size: 14px; margin-bottom: 18px; }
.tw-mock {
  margin-top: auto; padding: 18px;
  border-radius: 16px; background: var(--cream);
  border: 1.5px solid var(--border);
  min-height: 140px;
  display: flex; flex-direction: column; justify-content: center;
}
.tw-flash-q { font-weight: 800; font-size: 14px; line-height: 1.4; }
.tw-flash-hint { font-size: 11px; color: var(--ink-soft); font-weight: 700; margin-top: 12px; }
.tw-mc-q { font-weight: 800; font-size: 13px; margin-bottom: 10px; }
.tw-mc-row {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700; padding: 8px 10px;
  border-radius: 8px; margin-bottom: 4px;
  background: rgba(255,255,255,.5);
}
.tw-mc-letter {
  width: 22px; height: 22px; border-radius: 6px;
  background: var(--paper); border: 1.5px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; flex-shrink: 0;
}
.tw-mc-text { flex: 1; line-height: 1.3; }
.tw-mc-row.right { background: #dff5d9; color: #3a7a39; }
.tw-mc-row.right .tw-mc-letter { background: var(--lime-deep); color: #fff; border-color: var(--lime-deep); }
.tw-mc-row.right em { font-style: normal; font-weight: 900; flex-shrink: 0; }
.tw-game-row {
  display: flex; justify-content: space-between;
  font-size: 13px; font-weight: 700;
  padding: 6px 8px; border-radius: 8px;
  font-family: 'JetBrains Mono', monospace;
}
.tw-game-row.me { background: var(--berry-light); color: var(--berry); }
.tw-game-bar {
  height: 6px; background: var(--paper); border-radius: 99px;
  margin-top: 10px; overflow: hidden;
}
.tw-game-bar span {
  display: block; height: 100%;
  background: linear-gradient(90deg, #f5a524, #c3195d);
  border-radius: 99px;
}
.tw-tag {
  position: absolute; top: 22px; right: 22px;
  padding: 4px 10px; border-radius: 99px;
  background: var(--berry-light); color: var(--berry);
  font-size: 11px; font-weight: 800; letter-spacing: .04em;
}

.tw-foot {
  margin-top: 36px; padding: 24px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--cream), var(--berry-light));
  border: 2px solid var(--border);
  display: flex; gap: 20px; align-items: center;
}
.tw-foot-arrow {
  width: 56px; height: 56px; border-radius: 18px;
  background: var(--berry); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 900;
  flex-shrink: 0; box-shadow: 0 4px 0 var(--berry-deep);
}
.tw-foot p { margin: 0; font-size: 16px; line-height: 1.5; }

@media (max-width: 900px) {
  .three-ways { grid-template-columns: 1fr; }
}


/* ============== Page-level vertical rhythm ============== */
main > section { margin-bottom: 0; }
main > section + section { margin-top: 24px; }
main > section:first-child { padding-top: 32px; }
main > section:last-child { padding-bottom: 88px; }
.section { padding-top: 72px; padding-bottom: 72px; }
@media (max-width: 900px) {
  .section { padding-top: 52px; padding-bottom: 52px; }
}
.section-head { margin-bottom: 40px; }
.section-head .section-title { margin: 6px 0 10px; }
.section-head .section-sub { margin: 0; }
