:root {
  --accent: #0167EB;
  --accent-dark: #0148A8;
  --accent-soft: #EAF2FF;
  --text: #0a0a0a;
  --muted: #5b6472;
  --bg: #ffffff;
  --bg-soft: #F7F9FC;
  --border: #E5E7EB;
  --success: #10B981;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 12px 40px rgba(1, 103, 235, 0.12);
  --shadow-lg: 0 30px 80px rgba(1, 103, 235, 0.18);
  --radius: 18px;
  --secondary: #6B7280;
  --warning: #F59E0B;
  --tint: rgba(1, 103, 235, 0.05);
  --spring: cubic-bezier(0.22, 1, 0.36, 1);
  --spring-pop: cubic-bezier(0.34, 1.4, 0.44, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { letter-spacing: -0.025em; }

/* ─── NAV — liquid-glass floating pill ─── */
.nav-wrap {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 980px;
  z-index: 100;
  pointer-events: none;
}
.nav {
  pointer-events: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px 10px 20px;
  gap: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    0 10px 36px rgba(15, 23, 42, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08);
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
/* When scrolled off hero, switch to light glass so text is readable */
body.nav-light .nav {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(229, 231, 235, 0.8);
  box-shadow:
    0 10px 30px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  color: white;
  letter-spacing: -0.01em;
}
.brand img { filter: brightness(0) invert(1); transition: filter .25s ease; }
body.nav-light .brand { color: var(--text); }
body.nav-light .brand img { filter: none; }
.brand:hover { text-decoration: none; }
.nav-links {
  display: flex;
  gap: 24px;
  margin-left: auto;
}
.nav-links a {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
  font-size: 14px;
  transition: color .2s ease;
}
.nav-links a:hover { color: white; text-decoration: none; }
body.nav-light .nav-links a { color: #2a2f3a; }
body.nav-light .nav-links a:hover { color: var(--accent); }
.nav-cta {
  background: white;
  color: var(--accent);
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  transition: transform .15s ease, background .15s ease;
}
.nav-cta:hover { background: white; text-decoration: none; transform: translateY(-1px); }
body.nav-light .nav-cta { background: var(--text); color: white; }
body.nav-light .nav-cta:hover { background: var(--accent); }

main { max-width: 1240px; margin: 0 auto; padding: 0 32px; }

/* Shared dotted-grid texture — mirrors the SwiftUI OnboardingBackground Canvas */
.dot-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.14) 1.4px, transparent 1.6px);
  background-size: 26px 26px;
  background-position: -13px -13px;
  pointer-events: none;
}

.store-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #000;
  color: white;
  padding: 10px 20px;
  min-height: 58px;
  border-radius: 999px;
  padding: 10px 26px 10px 22px;
  text-align: left;
  line-height: 1;
  transition: transform .2s var(--spring), box-shadow .2s ease;
}
.store-btn:active, .web-btn:active, .see-all-btn:active, .nav-cta:active { transform: scale(.97); }
.store-btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 14px 32px rgba(0,0,0,0.22); }
.store-btn-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  line-height: 1;
}
.store-btn small {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.01em;
  opacity: 0.85;
  line-height: 1;
}
.store-btn strong {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
}
/* On blue hero: keep black badge (Apple's recommended style works on any bg) */
.store-btn-light {
  background: #000;
  color: white;
}

/* Web-app button — mirrors the App Store badge so the pair reads as one
   choice: get the iOS app, or use it right here in the browser. */
.web-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: var(--accent);
  padding: 10px 26px 10px 22px;
  min-height: 58px;
  border-radius: 999px;
  text-align: left;
  line-height: 1;
  font-weight: 700;
  transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}
.web-btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
}
.web-btn-text { display: flex; flex-direction: column; gap: 3px; }
.web-btn-text small { font-size: 11px; font-weight: 600; opacity: 0.75; letter-spacing: 0.01em; }
.web-btn-text strong { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
/* On the white final-CTA area the button inverts to accent-filled */
.final-cta .web-btn { background: #fff; color: var(--accent); }
.store-row { align-items: stretch; }


/* ─── SECTION HEADINGS ─── */
section h2 {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  text-align: center;
  line-height: 1.1;
}
.section-lede {
  font-size: 19px;
  color: var(--muted);
  text-align: center;
  max-width: 620px;
  margin: 0 auto 56px;
}

/* ─── WHY ─── */
.why { padding: 80px 0; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.why-card {
  background: var(--tint);
  border-radius: 24px;
  padding: 26px 26px 28px;
  transition: transform .3s var(--spring), box-shadow .3s ease, background .2s ease;
}
.why-card:hover {
  transform: translateY(-4px);
  background: rgba(1, 103, 235, 0.07);
  box-shadow: 0 16px 36px rgba(1, 103, 235, 0.10);
}
.why-icon {
  width: 92px;
  height: 92px;
  margin: -10px 0 10px -10px;
}
.why-icon img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s var(--spring-pop); filter: drop-shadow(0 8px 12px rgba(15, 23, 42, 0.10)); }
.why-card:hover .why-icon img { transform: translateY(-4px) rotate(-5deg) scale(1.06); }
.why-card h3 { font-size: 19px; margin: 0 0 8px; font-weight: 700; }
.why-card p { color: var(--secondary); margin: 0; font-size: 15px; }

/* ─── HOW ─── */
.how { padding: 100px 0; background: var(--bg-soft); margin: 60px -32px 0; padding-left: 32px; padding-right: 32px; border-radius: 32px; }
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 56px;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}
.how-step {
  text-align: center;
}
.phone {
  width: 252px;
  height: 520px;
  margin: 0 auto 28px;
  background: #111;
  border-radius: 44px;
  padding: 8px;
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px #2a2a2a;
  position: relative;
  transition: transform .5s var(--spring);
}
.how-step:hover .phone { transform: translateY(-6px) rotate(-1deg); }
.phone::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 20px;
  background: #000;
  border-radius: 999px;
  z-index: 3;
}
.phone-screen {
  background: white;
  width: 100%;
  height: 100%;
  border-radius: 37px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* ── Phone 1 · Onboarding step (matches OnboardingStepTemplate) ── */
.screen-onboard {
  background: var(--accent);
  padding: 46px 16px 22px;
}
.screen-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.14) 1.2px, transparent 1.4px);
  background-size: 18px 18px;
  background-position: -9px -9px;
  pointer-events: none;
}
.screen-topbar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  margin-bottom: 18px;
}
.chev-back {
  color: white;
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
}
.ob-progress { flex: 1; height: 4px; border-radius: 999px; background: rgba(255,255,255,0.28); margin-left: 8px; overflow: hidden; }
.ob-progress i { display: block; height: 100%; width: 18%; background: #fff; border-radius: inherit; }
.motion .how-step.revealed .ob-progress i { animation: obFill 1.4s var(--spring) .4s both; }
@keyframes obFill { from { width: 0; } to { width: 18%; } }
.ob-title {
  position: relative;
  z-index: 1;
  color: white;
  font-size: 23px;
  font-weight: 700;
  text-align: center;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.ob-subtitle {
  position: relative;
  z-index: 1;
  color: rgba(255,255,255,0.78);
  font-size: 11px;
  text-align: center;
  margin-bottom: 22px;
  font-weight: 500;
}
.ob-field {
  position: relative;
  z-index: 1;
  color: white;
  font-size: 15px;
  font-weight: 500;
  padding: 15px 18px;
  background: rgba(255,255,255,0.18);
  border-radius: 999px;
  margin-bottom: 18px;
}
.ob-cta {
  position: relative;
  z-index: 1;
  margin-top: auto;
  background: white;
  color: var(--accent);
  text-align: center;
  padding: 15px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
}

/* ── Shared in-phone chrome: centered wordmark + header buttons, floating tab bar ── */
.m-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px 8px;
}
.m-brand {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.01em;
}
.m-hbtn {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(1,103,235,0.14);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.m-hbtn-green { color: var(--success); border-color: rgba(16,185,129,0.25); }
.m-hbtn-ghost { visibility: hidden; }
.m-tabbar {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 10px;
  display: flex;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(15,23,42,0.10), inset 0 0 0 1px rgba(15,23,42,0.04);
  z-index: 2;
}
.m-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px 0 3px;
  font-size: 6.5px;
  font-weight: 600;
  color: #111;
  border-radius: 999px;
}
.m-tab i { width: 11px; height: 9px; border-radius: 2.5px; background: currentColor; display: block; }
.m-tab i.ti-person { width: 9px; height: 9px; border-radius: 50% 50% 3px 3px; }
.m-tab i.ti-list { background: repeating-linear-gradient(currentColor 0 1.5px, transparent 1.5px 3px); border-radius: 1px; }
.m-tab-on { color: var(--accent); background: rgba(15,23,42,0.06); }

/* ── Phone 2 · Swipe card (matches ScholarshipCardView + ScholarshipIdentityView) ── */
.screen-swipe {
  background: #fff;
  padding: 40px 12px 52px;
}
.sc-card {
  background: white;
  border-radius: 20px;
  padding: 8px 0 12px;
  box-shadow: 0 6px 22px rgba(15,23,42,0.09);
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  text-align: left;
}
.motion .how-step.revealed .sc-card { animation: cardNudge 3.2s var(--spring) 1s infinite; }
@keyframes cardNudge {
  0%, 60%, 100% { transform: none; }
  72% { transform: translateX(14px) rotate(2.5deg); }
  84% { transform: translateX(-3px) rotate(-.5deg); }
}
.sc-bar {
  height: 2.5px;
  background: var(--accent);
  border-radius: 2px;
  margin: 0 26px 10px;
}
.sc-amount {
  font-size: 27px;
  font-weight: 800;
  color: var(--accent);
  text-align: center;
  line-height: 1;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}
.sc-deadline {
  font-size: 10px;
  font-weight: 600;
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  margin-bottom: 10px;
}
.sc-divider {
  height: 1px;
  background: rgba(107,114,128,0.15);
  margin: 0 14px 10px;
}
.sc-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  padding: 0 14px;
  line-height: 1.22;
}
.sc-offered {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 7px 14px 0;
  padding: 6px 8px;
  border-radius: 9px;
  background: rgba(1,103,235,0.05);
}
.sc-offered img { width: 26px; height: 26px; object-fit: contain; flex: 0 0 26px; }
.sc-offered small { display: block; font-size: 7px; color: var(--secondary); line-height: 1.2; }
.sc-offered strong { display: block; font-size: 8.5px; font-weight: 600; color: var(--text); line-height: 1.25; }
.sc-desc {
  font-size: 9.5px;
  line-height: 1.42;
  color: rgba(107,114,128,0.9);
  padding: 7px 14px 0;
}
.sc-chips {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px 0;
  flex-wrap: wrap;
}
.sc-diff { display: inline-flex; align-items: center; gap: 3px; font-size: 7.5px; font-weight: 500; color: rgba(107,114,128,0.75); }
.sc-diff i { width: 4px; height: 4px; border-radius: 50%; background: var(--success); }
.sc-chip {
  font-size: 7.5px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.sc-chip-success { color: var(--success); background: rgba(16,185,129,0.15); }
.sc-tags {
  margin-top: auto;
  padding: 8px 14px 0;
  display: flex;
  gap: 4px;
}
.sc-tag {
  font-size: 8px;
  font-weight: 500;
  color: var(--accent);
  background: rgba(1,103,235,0.10);
  padding: 3px 8px;
  border-radius: 999px;
}
.sc-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.sc-pass, .sc-apply {
  height: 34px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
}
.sc-pass { flex: 0 0 34%; background: #F2F2F7; color: #4B5563; }
.sc-apply { flex: 1; background: var(--accent); color: #fff; box-shadow: 0 4px 10px rgba(1,103,235,0.25); }

/* ── Phone 3 · Applications list (matches ApplicationsListView) ── */
.screen-apps {
  background: white;
  padding: 40px 10px 16px;
  text-align: left;
}
.apps-hero {
  background: rgba(1,103,235,0.05);
  border-radius: 16px;
  padding: 10px;
  margin-bottom: 9px;
}
.apps-hero-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.apps-hero-head img { width: 34px; height: 34px; object-fit: contain; }
.apps-hero-head strong { display: block; font-size: 12px; font-weight: 700; color: var(--text); letter-spacing: -0.01em; }
.apps-hero-head small { display: block; font-size: 8px; color: var(--secondary); }
.apps-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.apps-stat { background: #fff; border-radius: 9px; padding: 6px 7px; }
.apps-stat b { display: block; font-size: 13px; font-weight: 700; line-height: 1.1; }
.apps-stat small { display: block; font-size: 7px; color: var(--secondary); margin-top: 1px; }
.c-blue { color: var(--accent); }
.c-amber { color: var(--warning); }
.apps-filters {
  display: flex;
  gap: 4px;
  padding: 0 0 8px;
  overflow: hidden;
}
.apps-filter {
  font-size: 8px;
  font-weight: 500;
  padding: 5px 9px;
  border-radius: 999px;
  background: #F2F2F7;
  color: var(--text);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.apps-filter i { font-style: normal; font-size: 6.5px; font-weight: 700; color: #fff; background: var(--warning); width: 10px; height: 10px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.apps-filter-active {
  background: var(--accent);
  color: white;
}
.apps-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  background: #F2F2F7;
  border-radius: 12px;
  margin: 0 0 6px;
  padding: 8px 10px;
}
.apps-row-action {
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.3);
}
.apps-row-main { min-width: 0; flex: 1; }
.apps-row-title {
  font-size: 10px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.2;
}
.apps-row-prov {
  font-size: 7.5px;
  color: var(--secondary);
  margin-top: 2px;
}
.apps-row-missing {
  font-size: 7.5px;
  color: var(--warning);
  margin-top: 2px;
}
.apps-row-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}
.apps-amount {
  font-size: 10px;
  font-weight: 600;
  color: var(--success);
}
.apps-badge {
  font-size: 7px;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 999px;
  white-space: nowrap;
}
.apps-badge-applied { background: rgba(16,185,129,0.15); color: var(--success); }
.apps-badge-pending { background: rgba(1,103,235,0.12); color: var(--accent); }
.apps-badge-action  { background: rgba(245,158,11,0.15); color: var(--warning); }

.step-num {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.how-step h3 { font-size: 22px; margin: 0 0 8px; font-weight: 700; }
.how-step p { color: var(--muted); font-size: 15px; max-width: 280px; margin: 0 auto; }

/* ─── TESTIMONIALS ─── */
.testimonials { padding: 120px 0 80px; }
.t-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.t-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.t-stars { color: #FFB800; font-size: 16px; letter-spacing: 2px; margin-bottom: 16px; }
.t-card p {
  font-size: 17px;
  line-height: 1.6;
  margin: 0 0 24px;
  color: var(--text);
}
.t-author { display: flex; align-items: center; gap: 12px; }
.t-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 17px;
}
.t-author small { color: var(--muted); }

/* ─── FAQ ─── */
.faq { padding: 80px 0 120px; max-width: 780px; margin: 0 auto; }
.faq-list { margin-top: 48px; }
.faq details {
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}
.faq summary {
  font-size: 19px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 28px;
  font-weight: 300;
  color: var(--accent);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

/* ─── FINAL CTA ─── */
.final-cta {
  position: relative;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: white;
  text-align: center;
  border-radius: 32px;
  padding: 80px 32px;
  margin: 40px 0 80px;
  overflow: hidden;
}
.final-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.12) 1.4px, transparent 1.6px);
  background-size: 26px 26px;
  background-position: -13px -13px;
  pointer-events: none;
}
.final-inner { position: relative; }
.final-cta .final-art { width: 120px; height: 120px; margin-bottom: 4px; filter: drop-shadow(0 16px 28px rgba(0, 20, 70, 0.35)); animation: bob 5s ease-in-out infinite alternate; }
.final-cta h2 {
  color: white;
  font-size: 56px;
  margin: 0 0 16px;
  text-align: center;
}
.final-cta p {
  color: rgba(255,255,255,0.92);
  font-size: 19px;
  max-width: 540px;
  margin: 0 auto 36px;
}
.final-cta .store-row { justify-content: center; }

/* ─── FOOTER ─── */
footer {
  border-top: 1px solid var(--border);
  padding: 64px 32px 40px;
  background: white;
}
.foot-cols {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.foot-cols h4, .foot-cols .foot-h {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 16px;
  font-weight: 700;
}
.foot-cols a {
  display: block;
  color: var(--text);
  font-size: 15px;
  margin-bottom: 10px;
}
.foot-cols a:hover { color: var(--accent); text-decoration: none; }
.muted { color: var(--muted); margin: 12px 0 0; font-size: 14px; line-height: 1.6; }
.copyright {
  max-width: 1240px;
  margin: 56px auto 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

/* ─── LEGAL PAGES ─── */
.legal {
  max-width: 760px;
  margin: 116px auto 100px;
  padding: 0 32px;
}
.legal h1 {
  font-size: 48px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
}
.legal .updated {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 32px;
}
.legal h2 {
  font-size: 22px;
  margin: 36px 0 12px;
  font-weight: 700;
}
.legal p, .legal li {
  color: #333;
  font-size: 16px;
  line-height: 1.7;
}
.legal h3 {
  font-size: 18px;
  margin: 24px 0 10px;
  font-weight: 700;
  text-align: left;
}
.legal ul { padding-left: 22px; }
.legal a { color: var(--accent); }

.foot-legal {
  text-align: center;
  padding: 16px 0;
  font-size: 14px;
}
.foot-legal a { color: var(--muted); margin: 0 4px; }
.foot-legal a:hover { color: var(--accent); }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .how-grid, .t-grid { grid-template-columns: 1fr; gap: 48px; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .why-card { padding: 22px; }
  section h2 { font-size: 36px; }
  .final-cta h2 { font-size: 38px; }
  .nav-links { display: none; }
  .why-grid { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: 1fr; gap: 32px; }
  /* Keep the web-app entry point in the header on phones — with the nav links
     hidden it is the only way in. */
  .nav-cta { margin-left: auto; padding: 8px 14px; font-size: 12px; }
  .store-row { flex-direction: column; align-items: center; }
  .store-row .store-btn, .store-row .web-btn { width: 100%; max-width: 300px; justify-content: center; }
}

/* ─── GUIDE TABLES (scholarships.html) ─── */
.legal .table-wrap { overflow-x: auto; margin: 20px 0 28px; -webkit-overflow-scrolling: touch; }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; min-width: 560px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.legal th { font-size: 13px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--muted); background: var(--bg-soft); }
.legal td strong { color: var(--text); }
.legal td.amt { white-space: nowrap; font-weight: 700; color: var(--accent); }
.legal .guide-cta { display: inline-block; margin-top: 8px; padding: 12px 20px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 600; }
.legal .guide-cta:hover { background: var(--accent-dark); text-decoration: none; }

/* ─── GUIDE PAGE ARTWORK ─── */
.legal .guide-art {
  display: block;
  width: 96px;
  height: 96px;
  object-fit: contain;
  margin: 0 0 14px -6px;
  filter: drop-shadow(0 10px 16px rgba(15, 23, 42, 0.12));
}
.legal .guide-cta {
  min-height: 54px;
  padding: 16px 28px;
  box-shadow: 0 6px 16px rgba(1, 103, 235, 0.22);
  transition: transform .2s var(--spring), background .2s ease;
}
.legal .guide-cta:hover { transform: translateY(-2px); }
.legal .table-wrap { border-radius: 18px; border: 1px solid rgba(1,103,235,0.10); }
.legal .table-wrap table { margin: 0; }
.legal .table-wrap tr:last-child td { border-bottom: 0; }
.legal th { background: rgba(1,103,235,0.05); }
.foot-cols .brand img, footer .brand img { filter: none; }
footer .brand { color: var(--text); }

/* ─── SCROLL REVEAL (only when JS enables motion) ─── */
.motion [data-reveal] {
  opacity: 0;
  translate: 0 22px;
  transition: opacity .7s var(--spring) var(--reveal-delay, 0ms), translate .8s var(--spring) var(--reveal-delay, 0ms), transform .3s var(--spring), box-shadow .3s ease, background .2s ease;
}
.motion [data-reveal].revealed { opacity: 1; translate: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.why-icon img[src*="funding"] { scale: 1.45; }

/* ═══════════════════════════════════════════════════════════════════
   HOMEPAGE (index.html) — light, calm layout. Everything is scoped to
   body.home or h-* / hp-* / s-* class names so other pages are untouched.
   ═══════════════════════════════════════════════════════════════════ */
body.home {
  --ink: #0B1220;
  --ink-2: #374151;
  --line: #E7EBF1;
  --soft: #F5F7FB;
  --green: #059669;
  --amber: #B45309;
  overflow-x: clip;
  background: #fff;
}
body.home .nav { background: rgba(255, 255, 255, 0.78); }
body.home .h-main { max-width: 1120px; padding: 0 24px; margin: 0 auto; }
body.home .h-main section { padding: 96px 0 0; }
body.home .h-main h2 {
  font-size: clamp(30px, 3.8vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 800;
  text-align: left;
  margin: 0 0 12px;
  color: var(--ink);
}
.h-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 10px;
}
.h-sub { font-size: 18px; color: var(--muted); margin: 0; max-width: 560px; }
.h-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 32px; }
body.home .h-head-center { text-align: center; }
body.home .h-head-center h2 { text-align: center; }
.h-link { font-size: 16px; font-weight: 600; white-space: nowrap; }
.h-link span, .h-web span { display: inline-block; transition: transform .2s var(--spring); }
.h-link:hover, .h-web:hover { text-decoration: none; }
.h-link:hover span, .h-web:hover span { transform: translateX(3px); }

/* ── Hero ── */
.h-hero {
  padding: 140px 24px 56px;
  background:
    radial-gradient(900px 480px at 78% 10%, rgba(1, 103, 235, 0.08), transparent 70%),
    linear-gradient(180deg, #F7FAFF 0%, #fff 100%);
}
.h-hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: center;
}
.h-hero h1 {
  font-size: clamp(44px, 6.6vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.048em;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 24px;
  max-width: 9.5ch;
}
.h-lede { font-size: 19px; line-height: 1.6; color: var(--muted); max-width: 500px; margin: 0 0 32px; }
.h-cta { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.h-cta-center { justify-content: center; }
body.home .store-btn { min-height: 56px; padding: 10px 24px 10px 20px; }
body.home .store-btn strong { font-size: 19px; }
.h-web { font-size: 16px; font-weight: 600; color: var(--accent); }
.h-rating { display: flex; align-items: center; gap: 8px; margin-top: 28px; font-size: 14.5px; color: var(--muted); }
.h-rating strong { color: var(--ink); }
.h-stars { color: #F5A524; display: inline-flex; }
.h-dot { margin: 0 4px; }

.h-visual { position: relative; display: flex; justify-content: center; padding: 8px 0; }
.h-visual::before {
  content: "";
  position: absolute;
  top: 6%; bottom: 6%; left: 8%; right: 8%;
  border-radius: 40px;
  background:
    radial-gradient(rgba(1, 103, 235, 0.16) 1.3px, transparent 1.5px) 0 0 / 22px 22px,
    linear-gradient(160deg, #E7F0FF, #F4F8FF);
  z-index: 0;
}
.hp-phone {
  position: relative;
  z-index: 1;
  width: 296px;
  height: 600px;
  padding: 10px;
  border-radius: 52px;
  background: #0E0F12;
  box-shadow: 0 40px 80px rgba(15, 23, 42, 0.20), 0 10px 24px rgba(15, 23, 42, 0.10), inset 0 0 0 1.5px #2b2d33;
}
.hp-phone::before {
  content: "";
  position: absolute;
  top: 20px; left: 50%;
  transform: translateX(-50%);
  width: 90px; height: 26px;
  border-radius: 999px;
  background: #000;
  z-index: 3;
}
.hp-screen {
  height: 100%;
  border-radius: 42px;
  background: #fff;
  padding: 58px 16px 22px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.hp-top { display: flex; justify-content: center; margin-bottom: 14px; }
.hp-brand { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 16px; color: var(--accent); letter-spacing: -0.01em; }
.hp-stack { position: relative; flex: 1; }
.hp-card { position: absolute; inset: 0; border-radius: 24px; background: #fff; box-shadow: 0 8px 28px rgba(15, 23, 42, 0.10); border: 1px solid #EEF1F5; }
.hp-card-back2 { transform: translateY(18px) scale(0.88); opacity: .5; }
.hp-card-back1 { transform: translateY(9px) scale(0.94); opacity: .8; }
.hp-card-front { padding: 22px 18px 18px; display: flex; flex-direction: column; }
.hp-amt { font-size: 38px; font-weight: 800; color: var(--accent); text-align: center; letter-spacing: -0.03em; line-height: 1.05; }
.hp-due { display: flex; justify-content: center; align-items: center; gap: 5px; color: var(--green); font-size: 13px; font-weight: 600; margin-top: 6px; }
.hp-rule { height: 1px; background: #EEF1F5; margin: 16px 0; }
.hp-name { font-size: 18px; font-weight: 700; color: var(--ink); line-height: 1.25; letter-spacing: -0.015em; }
.hp-from > span:last-child { min-width: 0; }
.hp-from { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 9px 10px; border-radius: 12px; background: rgba(1, 103, 235, 0.05); }
.hp-avatar { flex: 0 0 32px; width: 32px; height: 32px; border-radius: 10px; background: #fff; color: var(--accent); font-weight: 800; font-size: 15px; display: flex; align-items: center; justify-content: center; box-shadow: inset 0 0 0 1px rgba(1, 103, 235, 0.15); }
.hp-from small { display: block; font-size: 11px; color: var(--muted); line-height: 1.2; }
.hp-from strong { display: block; font-size: 13px; color: var(--ink); line-height: 1.25; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hp-lines { margin-top: 16px; display: grid; gap: 8px; }
.hp-lines i { display: block; height: 8px; border-radius: 4px; background: #EEF1F5; }
.hp-lines i.short { width: 62%; }
.hp-chips { margin-top: auto; display: flex; gap: 6px; padding-top: 14px; }
.hp-chips span { font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.hp-chip-g { color: var(--green); background: rgba(16, 185, 129, 0.12); }
.hp-chip-b { color: var(--accent); background: rgba(1, 103, 235, 0.09); }
.hp-actions { display: flex; gap: 10px; margin-top: 28px; }
.hp-actions span { height: 46px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 15px; }
.hp-pass { flex: 0 0 36%; background: #F2F2F7; color: #4B5563; }
.hp-apply { flex: 1; background: var(--accent); color: #fff; box-shadow: 0 6px 14px rgba(1, 103, 235, 0.28); }
.motion .hp-card-front { animation: hpNudge 5s var(--spring) 1.2s infinite; }
@keyframes hpNudge {
  0%, 64%, 100% { transform: none; }
  74% { transform: translateX(16px) rotate(2.5deg); }
  86% { transform: translateX(-3px) rotate(-.4deg); }
}
.hp-toast {
  position: absolute;
  z-index: 2;
  left: -36px;
  bottom: 214px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px 12px 12px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14), 0 0 0 1px rgba(15, 23, 42, 0.04);
}
.hp-toast-icon { width: 30px; height: 30px; border-radius: 50%; background: var(--success); color: #fff; display: flex; align-items: center; justify-content: center; flex: 0 0 30px; }
.hp-toast strong { display: block; font-size: 14px; color: var(--ink); line-height: 1.2; }
.hp-toast small { display: block; font-size: 12px; color: var(--muted); line-height: 1.3; }

/* ── Scholarship strip ── */
body.home .h-main section.h-strip { padding-top: 72px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18); }
.h-rail {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  margin: 0 calc(50% - 50vw);
  padding: 6px max(24px, calc(50vw - 536px)) 18px;
  scroll-padding: 0 max(24px, calc(50vw - 536px));
}
.h-rail::-webkit-scrollbar { display: none; }
.s-card {
  flex: 0 0 252px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  padding: 22px 22px 20px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  color: var(--ink);
  scroll-snap-align: start;
  transition: transform .25s var(--spring), box-shadow .25s ease, border-color .25s ease;
}
.s-card:hover { text-decoration: none; transform: translateY(-3px); border-color: rgba(1, 103, 235, 0.28); box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08); }
.s-amt { font-size: 24px; font-weight: 800; color: var(--accent); letter-spacing: -0.025em; line-height: 1.15; }
.s-name { margin-top: 10px; font-size: 16px; font-weight: 650; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.s-prov { margin-top: 4px; font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-tag, .s-due { margin-top: auto; padding-top: 18px; font-size: 13px; font-weight: 600; }
.s-tag { color: var(--ink-2); }
.s-tag::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: 2px; }
.s-due { display: flex; justify-content: space-between; color: #047857; }
.s-due span { color: var(--muted); font-weight: 500; }
.s-due-soon { color: var(--amber); }

/* ── How it works ── */
.h-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.h-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1.5px solid rgba(1, 103, 235, 0.35);
  color: var(--accent); font-weight: 700; font-size: 15px;
  margin-bottom: 14px;
}
.h-step h3 { font-size: 20px; font-weight: 700; margin: 0 0 6px; color: var(--ink); letter-spacing: -0.02em; }
.h-step > p { font-size: 16px; color: var(--muted); margin: 0; max-width: 34ch; }
.h-shot {
  margin-top: 24px;
  height: 400px;
  border-radius: 24px;
  background: var(--soft);
  overflow: hidden;
  padding-top: 36px;
  display: flex;
  justify-content: center;
}
.h-shot .phone { margin: 0; flex: 0 0 auto; box-shadow: 0 24px 50px rgba(15, 23, 42, 0.18), inset 0 0 0 1.5px #2a2a2a; }
.h-center { text-align: center; margin-top: 40px; }
.h-btn {
  display: inline-flex; align-items: center; min-height: 52px; padding: 0 28px;
  border-radius: 999px; background: var(--accent); color: #fff; font-weight: 600; font-size: 16px;
  box-shadow: 0 6px 16px rgba(1, 103, 235, 0.22);
  transition: transform .2s var(--spring), background .2s ease;
}
.h-btn:hover { text-decoration: none; background: var(--accent-dark); transform: translateY(-1px); }

/* ── Why ── */
body.home .h-main section.h-why { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; padding-top: 120px; }
.h-compare { display: grid; gap: 14px; }
.h-compare-col { border-radius: 22px; padding: 24px 26px; background: var(--soft); }
.h-compare-label { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.h-compare ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.h-compare li { position: relative; padding-left: 28px; font-size: 15.5px; color: var(--ink-2); line-height: 1.4; }
.h-compare li::before { content: "\2715"; position: absolute; left: 0; top: 0; width: 18px; text-align: center; color: #9CA3AF; font-size: 12px; line-height: 21px; }
.h-compare-us { background: var(--accent); box-shadow: 0 24px 50px rgba(1, 103, 235, 0.22); transform: rotate(-1.2deg); }
.h-compare-us .h-compare-label { color: rgba(255, 255, 255, 0.75); }
.h-compare-us li { color: #fff; font-weight: 500; }
.h-compare-us li::before { content: "\2713"; color: #fff; font-size: 14px; font-weight: 700; }
.h-why-copy > p:not(.h-eyebrow) { font-size: 17px; color: var(--muted); margin: 0 0 14px; max-width: 560px; }
.h-points { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.h-points li { font-size: 16px; color: var(--muted); padding-left: 18px; border-left: 2px solid rgba(1, 103, 235, 0.25); }
.h-points strong { color: var(--ink); }

/* ── Stats ── */
body.home .h-main section.h-stats {
  margin-top: 120px;
  padding: 56px 32px;
  border-radius: 28px;
  background: var(--soft);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}
.h-stat b { display: block; font-size: clamp(44px, 5vw, 60px); font-weight: 800; letter-spacing: -0.045em; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.h-stat span { display: block; margin-top: 10px; font-size: 16px; font-weight: 600; color: var(--ink); }
.h-stat small { display: block; margin-top: 2px; font-size: 14px; color: var(--muted); }

/* ── Where the money comes from ── */
.h-money-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.h-money-card { padding: 24px; border-radius: 20px; border: 1px solid var(--line); }
.h-money-card h3 { font-size: 17px; margin: 0 0 6px; color: var(--ink); letter-spacing: -0.015em; }
.h-money-card p { font-size: 15px; color: var(--muted); margin: 0; line-height: 1.5; }

/* ── FAQ ── */
body.home .h-main section.h-faq { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; padding-top: 120px; }
.h-faq-head { position: sticky; top: 110px; }
.h-faq-head > p:not(.h-eyebrow) { font-size: 16px; color: var(--muted); margin: 12px 0 0; }
.h-faq details { border-bottom: 1px solid var(--line); }
.h-faq details:first-child { border-top: 1px solid var(--line); }
.h-faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}
.h-faq summary::-webkit-details-marker { display: none; }
.h-faq summary::after { content: "+"; flex: 0 0 auto; font-size: 24px; font-weight: 300; line-height: 1; color: var(--accent); transition: transform .2s ease; }
.h-faq details[open] summary::after { transform: rotate(45deg); }
.h-faq details p { margin: -4px 0 20px; font-size: 16px; line-height: 1.65; color: var(--muted); }

/* ── Resources ── */
.h-res-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 32px; }
.h-res-col { padding: 24px; border-radius: 20px; background: var(--soft); display: flex; flex-direction: column; align-items: flex-start; }
.h-res-col h3 { font-size: 17px; margin: 0 0 12px; letter-spacing: -0.015em; }
.h-res-col h3 a { color: var(--ink); }
.h-res-col a { font-size: 15px; color: var(--ink-2); padding: 4px 0; }
.h-res-col a:hover { color: var(--accent); text-decoration: none; }
.h-res-col p { font-size: 15px; color: var(--muted); margin: 0; }
.h-res-col .h-res-all { margin-top: auto; padding-top: 14px; color: var(--accent); font-weight: 600; }

/* ── Final CTA ── */
body.home .h-main section.h-final {
  margin: 120px 0 96px;
  padding: 72px 24px;
  border-radius: 32px;
  text-align: center;
  background:
    radial-gradient(rgba(1, 103, 235, 0.12) 1.3px, transparent 1.5px) 0 0 / 22px 22px,
    linear-gradient(160deg, #E9F1FF, #F6F9FF);
}
body.home .h-final h2 { text-align: center; }
.h-final > p { font-size: 18px; color: var(--muted); max-width: 460px; margin: 0 auto 32px; }

/* ── Footer ── */
.h-footer { border-top: 1px solid var(--line); padding: 64px 24px 40px; }
.h-foot-cols { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr repeat(5, 1fr); gap: 32px; }
.h-foot-cols h4, .h-foot-cols .foot-h { font-size: 13px; font-weight: 700; color: var(--ink); margin: 4px 0 14px; letter-spacing: 0; }
.h-foot-cols > div > a:not(.brand) { display: block; font-size: 14px; color: var(--muted); margin-bottom: 9px; }
.h-foot-cols > div > a:not(.brand):hover { color: var(--accent); text-decoration: none; }
.h-footer .copyright { max-width: 1120px; text-align: left; }

/* ── Homepage responsive ── */
@media (max-width: 1000px) {
  .h-foot-cols { grid-template-columns: repeat(3, 1fr); }
  .h-foot-brand { grid-column: 1 / -1; }
  .h-res-grid, .h-money-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .h-hero { padding: 120px 16px 56px; }
  .h-hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .h-hero h1 { font-size: clamp(44px, 12.5vw, 64px); }
  .h-lede { font-size: 17.5px; }
  .h-visual { max-height: 470px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); }
  .h-visual::before { left: 0; right: 0; top: 40px; bottom: 0; }
  .hp-toast { left: 50%; margin-left: -168px; bottom: auto; top: 352px; }
  .hp-phone { width: 272px; height: 560px; }
  .h-steps { grid-template-columns: 1fr; gap: 48px; }
  .h-shot { height: 360px; }
  body.home .h-main section.h-why { grid-template-columns: 1fr; gap: 40px; }
  .h-why .h-compare { order: 2; }
  body.home .h-main section.h-faq { grid-template-columns: 1fr; gap: 24px; }
  .h-faq-head { position: static; }
}
@media (max-width: 720px) {
  body.home .h-main { padding: 0 16px; }
  body.home .h-main section { padding-top: 72px; }
  body.home .h-main section.h-why, body.home .h-main section.h-faq { padding-top: 88px; }
  .h-head-row { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 24px; }
  .h-sub { font-size: 16.5px; }
  .h-rail { padding: 6px 16px 18px; scroll-padding: 0 16px; gap: 12px; }
  .s-card { flex-basis: 240px; }
  body.home .h-main section.h-stats { grid-template-columns: 1fr; gap: 32px; padding: 44px 20px; margin-top: 88px; }
  .h-money-grid, .h-res-grid { grid-template-columns: 1fr; }
  body.home .h-main section.h-final { margin: 88px 0 72px; padding: 56px 20px; }
  .h-cta { gap: 16px; }
  .h-cta-center { flex-direction: column; }
  .h-footer { padding: 48px 16px 32px; }
  .h-foot-cols { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .h-compare-us { transform: none; }
  body.home .h-main section.h-strip { padding-top: 40px; }
  .h-steps { gap: 40px; margin-top: 36px; }
  .h-shot { height: 290px; padding-top: 28px; margin-top: 18px; }
  .h-shot .phone { transform: scale(0.82); transform-origin: top center; }
  .h-money-grid { gap: 10px; margin-top: 28px; }
  .h-money-card, .h-res-col { padding: 18px 20px; }
  .h-res-grid { gap: 10px; }
}

/* ===== Homepage (k-*): blue hero with real app screenshots and the app's 3D art ===== */
.k-home .dot-grid { z-index: 0; }
.k-hero {
  position: relative;
  background: var(--accent);
  overflow: hidden;
  isolation: isolate;
  padding: 136px 32px 72px;
}
.k-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
}
.k-hero h1 {
  color: #fff;
  font-size: clamp(44px, 5.6vw, 80px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin: 0;
  max-width: 11ch;
  text-wrap: balance;
}
.k-lede {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.45;
  max-width: 30ch;
  margin: 22px 0 0;
}
.k-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 30px; }
.k-cta-center { justify-content: center; }
.k-web {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 56px;
  padding: 0 22px;
  border-radius: 999px;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.32);
  transition: background .2s ease, transform .15s ease;
}
.k-web:hover { background: rgba(255, 255, 255, 0.22); text-decoration: none; transform: translateY(-1px); }
.k-rating { color: rgba(255, 255, 255, 0.85); font-size: 14px; margin: 20px 0 0; }
.k-rating strong { color: #fff; }
.k-stars { color: #FFD24A; letter-spacing: 1px; margin-right: 4px; }

.k-hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 600px;
  align-items: center;
}
.k-phone {
  position: relative;
  width: 300px;
  max-width: 100%;
  padding: 9px;
  border-radius: 50px;
  background: #0b0f1a;
  box-shadow: 0 40px 90px rgba(0, 25, 90, 0.38), inset 0 0 0 2px #2a3040;
}
.k-phone img { display: block; width: 100%; height: auto; border-radius: 41px; }
.k-hero-visual .k-phone { width: 310px; z-index: 2; }
.k-float {
  position: absolute;
  z-index: 3;
  height: auto;
  filter: drop-shadow(0 26px 34px rgba(0, 20, 80, 0.38));
  animation: k-bob 6s ease-in-out infinite;
}
/* Art sits in its own space around the phone; nothing covers the screen. */
.k-hero-visual { justify-content: flex-end; padding-right: 110px; }
.k-f1 { width: 176px; left: -44px; bottom: 12%; rotate: -16deg; animation-delay: -1s; }
.k-f2 { width: 148px; right: -36px; top: 10%; rotate: 14deg; animation-delay: -3s; }
.k-f3 { width: 132px; left: -6px; top: 6%; rotate: -10deg; animation-delay: -4.5s; }
@media (max-width: 1240px) {
  .k-hero-visual { padding-right: 70px; }
  .k-f1, .k-f3 { display: none; }
  .k-f2 { right: -56px; }
}
@keyframes k-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }

/* Sections */
.k-head { text-align: center; margin-bottom: 40px; }
.k-head h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; margin: 0; text-wrap: balance; }
.k-how, .k-kinds { padding-block: 96px 24px; }

.k-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; isolation: isolate; }
.k-step { display: flex; flex-direction: column; align-items: center; text-align: center; }
.k-step-shot {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 8px 0 4px;
}
.k-step-shot::before {
  content: "";
  position: absolute;
  inset: 12% 6% 6%;
  border-radius: 40px;
  background: var(--accent-soft);
  z-index: -1;
}
.k-step-shot .k-phone { width: 236px; box-shadow: 0 24px 50px rgba(1, 103, 235, 0.22), inset 0 0 0 2px #2a3040; }
.k-step-text { padding: 22px 12px 0; }
.k-num {
  display: inline-grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 14px;
}
.k-step-text h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.01em; margin: 12px 0 6px; }
.k-step-text p { color: var(--muted); margin: 0; font-size: 16px; }

.k-tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.k-tile {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 22px 10px 18px;
  border-radius: 24px;
  background: var(--bg-soft);
  border: 1px solid #eef1f6;
  color: var(--text);
  font-weight: 700;
  font-size: 15px;
  transition: transform .2s var(--spring), box-shadow .2s ease, border-color .2s ease;
}
.k-tile img { width: 88px; height: 88px; object-fit: contain; }
.k-tile:hover { text-decoration: none; transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }

.k-band, .k-final { position: relative; background: var(--accent); overflow: hidden; isolation: isolate; color: #fff; margin-top: 96px; }
.k-band-inner {
  position: relative; z-index: 1;
  max-width: 1180px; margin: 0 auto;
  padding: 64px 32px;
  display: flex; align-items: center; gap: 48px;
}
.k-band-art { width: 210px; height: auto; flex: none; filter: drop-shadow(0 18px 30px rgba(0, 20, 80, 0.3)); }
.k-band-stats { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.k-band-stats b { display: block; font-size: clamp(40px, 5vw, 62px); font-weight: 800; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.k-band-stats span { display: block; margin-top: 8px; color: rgba(255, 255, 255, 0.82); font-size: 15px; }

.k-final { margin-top: 64px; }
.k-final-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; padding: 72px 32px 80px; text-align: center; }
.k-final-art { width: 130px; height: auto; display: block; margin: 0 auto 12px; filter: drop-shadow(0 18px 30px rgba(0, 20, 80, 0.3)); }
.k-final h2 { color: #fff; font-size: clamp(34px, 4.4vw, 54px); font-weight: 800; letter-spacing: -0.035em; margin: 0; }
.k-final p { color: rgba(255, 255, 255, 0.85); font-size: 18px; margin: 12px 0 0; }
.k-final + .h-footer { margin-top: 0; }

@media (max-width: 960px) {
  .k-hero { padding: 116px 20px 56px; }
  .k-hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .k-hero h1 { max-width: none; }
  .k-hero-visual { min-height: 0; padding-block: 12px 8px; }
  .k-hero-visual .k-phone { width: 260px; }
  .k-hero-visual { justify-content: center; padding-right: 0; }
  .k-f1 { display: block; width: 150px; left: calc(50% - 130px - 170px); bottom: 12%; }
  .k-f2 { width: 128px; right: calc(50% - 130px - 150px); top: 8%; }
  .k-f3 { display: block; width: 116px; left: calc(50% - 130px - 140px); top: 6%; }
  .k-steps { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .k-steps { gap: 48px; }
  .k-tiles { grid-template-columns: repeat(3, 1fr); }
  .k-band-inner { flex-direction: column; text-align: center; gap: 24px; padding: 52px 20px; }
  .k-band-art { width: 150px; }
  .k-band-stats { width: 100%; }
  .k-how, .k-kinds { padding-block: 72px 8px; }
}
@media (max-width: 720px) {
  .k-float, .k-f1, .k-f3 { display: none; }
}
@media (max-width: 520px) {
  .k-band-stats { grid-template-columns: 1fr; gap: 18px; }
  .k-tiles { gap: 10px; }
  .k-tile { padding: 16px 6px 14px; font-size: 14px; }
  .k-tile img { width: 64px; height: 64px; }
  .k-cta .store-btn, .k-cta .k-web { flex: 1 1 auto; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .k-float { animation: none; } }
/* Win over the body.home base rules above. */
body.k-home:not(.nav-light) .nav {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
}
body.k-home .h-main section.k-how,
body.k-home .h-main section.k-kinds { padding: 96px 0 0; }
body.k-home .h-main .k-head h2 { text-align: center; margin: 0; }
body.k-home .k-step-text h3 { color: var(--ink); }
@media (max-width: 960px) {
  body.k-home .h-main section.k-how,
  body.k-home .h-main section.k-kinds { padding-top: 72px; }
}

/* Hero deck: real app cards floating above the phone screen. */
.k-hero-visual .k-phone { position: relative; }
.k-screen { position: relative; }
.k-deck {
  position: absolute;
  z-index: 4;
  /* exactly where the app draws its card (measured from the iOS screenshot) */
  left: 4.48%;
  width: 91.04%;
  top: 12.43%;
  aspect-ratio: 720 / 1164;
}
.k-card {
  position: absolute;
  inset: 0;
  transform: translateY(calc(var(--pos, 0) * 8px)) scale(calc(1 - var(--pos, 0) * 0.04));
  transition: transform .55s var(--spring), opacity .45s ease;
}
.k-card img { display: block; width: 100%; height: auto; border-radius: 6.4% / 3.96%; box-shadow: 0 2px 14px rgba(15, 23, 42, 0.08); }
.k-card.tilt { transform: translateX(9%) rotate(4deg); transition: transform .45s cubic-bezier(.3,.7,.4,1); }
.k-card.out { transform: translateX(165%) translateY(4%) rotate(18deg); opacity: 0; transition: transform .62s cubic-bezier(.55,.05,.8,.3), opacity .5s ease-in .12s; }
.k-stamp {
  position: absolute;
  top: 26px;
  left: 22px;
  padding: 4px 12px;
  border: 4px solid var(--accent);
  border-radius: 10px;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.9);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: 2px;
  rotate: -16deg;
  opacity: 0;
  transition: opacity .25s ease;
}
.k-card.tilt .k-stamp, .k-card.out .k-stamp { opacity: 1; }
/* Brief press on the phone's Apply button as the card leaves. */
.k-tap {
  position: absolute;
  left: 52%; right: 5%; top: 81.6%; height: 5.6%;
  border-radius: 999px;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.0);
  pointer-events: none;
}
.k-tap.on { animation: k-tap .6s ease-out; }
@keyframes k-hover { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@keyframes k-tap {
  0% { background: rgba(255, 255, 255, 0); box-shadow: 0 0 0 0 rgba(1, 103, 235, 0.45); }
  30% { background: rgba(255, 255, 255, 0.28); }
  100% { background: rgba(255, 255, 255, 0); box-shadow: 0 0 0 14px rgba(1, 103, 235, 0); }
}
@media (prefers-reduced-motion: reduce) { .k-deck { animation: none; } }

/* Landmark wrapper for article pages; adds no layout of its own. */
main.page-main { max-width: none; margin: 0; padding: 0; }
