/* PrepPal website (home, error pages). Self-contained: fonts come from the pay page's folder. */
@font-face { font-family: "Fredoka"; font-weight: 600; font-display: swap; src: url("/pay/assets/fonts/Fredoka-600.ttf") format("truetype"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("/pay/assets/fonts/Inter-400.ttf") format("truetype"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("/pay/assets/fonts/Inter-600.ttf") format("truetype"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("/pay/assets/fonts/Inter-700.ttf") format("truetype"); }

:root {
  --violet: #6C3BFF; --violet-deep: #4B1FD6; --violet-soft: #E9E2FF; --lime: #C6F432; --lime-soft: #EAFBC8;
  --ink: #17132B; --ink-2: #2C2647; --muted: #4A4366; --on-ink: #CFC8E8; --mist: #F7F5FF; --line: #E4DCFB;
  --orange: #F26B1D; --green: #138A43;
  --display: Fredoka, Inter, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body.site { margin: 0; background: var(--mist); color: var(--ink); font: 400 16px/1.55 Inter, system-ui, sans-serif; }
a { color: var(--violet-deep); }
a:hover { color: #2E0FA0; }
img { max-width: 100%; }
h1, h2, h3, p, ul, figure { margin: 0; }
.center { text-align: center; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 20; padding: 10px 14px; border-radius: 10px; background: var(--ink); color: #fff; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 6px; }

.site-row { max-width: 1200px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }
.site-row.narrow { max-width: 820px; }

/* Top bar */
.site-bar { position: sticky; top: 0; z-index: 10; background: rgba(247, 245, 255, 0.86); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; }
.site-bar .site-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; padding-top: 14px; padding-bottom: 14px; }
.site-brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); }
.site-mark { width: 36px; height: 36px; border-radius: 12px 12px 12px 4px; background: var(--violet); display: flex; align-items: center; justify-content: center; }
.site-word { font: 600 26px/1 var(--display); color: var(--ink); }
.site-word span { color: var(--violet); }
.site-word.small { font-size: 22px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 0 24px; flex-grow: 1; justify-content: flex-end; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; padding: 10px 0; }
.site-nav a:hover { color: var(--violet-deep); }
.site-cta { height: 44px; padding: 0 20px; border-radius: 14px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; }
.site-cta:hover { color: #fff; background: #2C2647; }
@media (max-width: 560px) {
  .site-nav { display: none; }
  .site-bar .site-row { justify-content: space-between; }
}

/* Phone: a slim Pixel-style frame around an app screenshot (1280×2856) */
.phone { --w: 280px; position: relative; width: var(--w); padding: calc(var(--w) * 0.026); border-radius: calc(var(--w) * 0.14);
  background: linear-gradient(150deg, #34343c 0%, #121216 45%, #1c1c22 100%);
  box-shadow: inset 0 0 0 1.5px #55555e, inset 0 0 0 3px #0b0b0e, 0 40px 70px -20px rgba(23, 19, 43, 0.45), 0 16px 30px -12px rgba(23, 19, 43, 0.30);
  container-type: inline-size; }
.phone::before, .phone::after { content: ""; position: absolute; right: -2px; width: 3px; border-radius: 0 3px 3px 0; background: linear-gradient(90deg, #1a1a1f, #3b3b44); }
.phone::before { top: 22%; height: 7%; }   /* power */
.phone::after { top: 32%; height: 13%; }   /* volume */
.phone-screen { position: relative; overflow: hidden; aspect-ratio: 1280 / 2856; border-radius: calc(var(--w) * 0.115); background: var(--mist); }
.phone-screen img { display: block; width: 100%; height: 100%; object-fit: cover; }
.phone-status { position: absolute; z-index: 2; top: 0; left: 0; right: 0; height: 5.4%; padding: 0 8.5cqw; display: flex; align-items: center; justify-content: space-between;
  font: 600 4cqw/1 Inter, system-ui, sans-serif; color: var(--ink); letter-spacing: 0.01em; pointer-events: none; }
.phone-icons { display: flex; gap: 1.6cqw; align-items: center; }
.phone-icons svg { width: 3.9cqw; height: 3.9cqw; fill: currentColor; }
.phone-camera { position: absolute; z-index: 3; top: 1.25%; left: 50%; width: 4.4cqw; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #2b2f45 0 18%, #07070a 40%); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06); }
.phone-lg { --w: clamp(220px, 24vw, 300px); }
.phone-md { --w: clamp(200px, 21vw, 270px); }

/* Hero */
.hero { padding: clamp(24px, 4vw, 56px) 0 clamp(56px, 7vw, 96px); overflow-x: clip; }
.hero-row { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.hero-copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.pill { align-self: flex-start; padding: 8px 14px; border-radius: 999px; background: var(--violet-soft); color: var(--violet-deep); font-weight: 700; font-size: 14px; }
.hero h1 { font: 600 clamp(42px, 5.4vw, 70px)/1.03 var(--display); letter-spacing: -0.01em; }
.hero h1 span { color: var(--violet); }
.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); max-width: 520px; }
.get { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.play { display: inline-flex; border-radius: 12px; }
.play img { display: block; height: 60px; width: auto; }
.get-note { font-size: 14px; color: var(--muted); }
.checks { padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px 26px; font-weight: 600; font-size: 15px; }
.checks li, .ticks li { display: flex; align-items: flex-start; gap: 10px; }
.checks svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; fill: none; stroke: var(--green); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

.hero-stage { flex: 1 1 440px; min-width: 0; position: relative; max-width: 540px; aspect-ratio: 540 / 640; margin: 0 auto; container-type: inline-size; }
.stage-back { position: absolute; left: 7%; right: 1%; top: 11%; bottom: 4%; border-radius: 48px; background: var(--violet); }
.stage-sun { position: absolute; right: -1%; top: 3%; width: 21%; aspect-ratio: 1; border-radius: 50%; background: var(--lime); }
.hero-phone-back { position: absolute; left: 0; top: 15%; transform: rotate(-7deg); }
.hero-phone-back .phone { --w: 41cqw; }
.hero-phone-front { position: absolute; right: 9%; top: 1%; }
.hero-phone-front .phone { --w: 47cqw; }
.chip { position: absolute; z-index: 4; box-shadow: 0 14px 30px rgba(23, 19, 43, 0.20); }
.chip-streak { left: 18%; bottom: 0; padding: 12px 16px; border-radius: 18px; background: #fff; display: flex; align-items: center; gap: 10px; line-height: 1.2; }
.chip-streak b { display: block; font-size: 15px; }
.chip-streak small { font-size: 12px; color: var(--muted); }
.chip-icon { width: 36px; height: 36px; border-radius: 12px; background: #FFF1E3; display: flex; align-items: center; justify-content: center; }
.chip-icon svg { width: 20px; height: 20px; fill: var(--orange); }
.chip-xp { right: 0; top: 47%; padding: 10px 14px; border-radius: 999px; background: var(--ink); color: var(--lime); font: 600 18px/1 var(--display); }

/* Facts strip */
.facts { background: var(--ink); color: #fff; }
.facts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 24px; padding-top: 32px; padding-bottom: 32px; }
.facts .fact { font: 600 30px/1.15 var(--display); color: var(--lime); }
.facts p:not(.fact) { margin-top: 4px; font-size: 14px; color: var(--on-ink); }

/* Feature sections */
.feature { padding-top: clamp(64px, 8vw, 112px); }
.feature-row { display: flex; flex-wrap: wrap; align-items: center; gap: 48px 72px; }
.feature-row.flip { flex-direction: row-reverse; }
.feature-art { flex: 1 1 420px; min-width: 0; max-width: 500px; margin: 0 auto; padding: 44px 0; border-radius: 40px; display: flex; justify-content: center; }
.feature-art .phone { --w: clamp(210px, 22vw, 260px); }
.art-violet { background: var(--violet-soft); }
.art-lime { background: var(--lime-soft); }
.art-ink { background: var(--ink); }
.art-ink .phone { box-shadow: inset 0 0 0 1.5px #5d5d68, inset 0 0 0 3px #0b0b0e, 0 40px 70px -20px rgba(0, 0, 0, 0.6); }
.feature-copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.eyebrow { font-weight: 700; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--violet); }
.feature h2, .cards h2, .pricing h2, .faq h2 { font: 600 clamp(32px, 3.6vw, 46px)/1.08 var(--display); }
.feature-copy > p:not(.eyebrow) { font-size: 17px; color: var(--muted); }
.ticks { margin-top: 4px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 16px; }
.ticks svg { width: 22px; height: 22px; flex-shrink: 0; fill: none; stroke: var(--violet); stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.invite { margin-top: 6px; border-radius: 22px; background: #fff; border: 2px solid var(--line); padding: 18px 20px; display: flex; align-items: center; gap: 16px; }
.invite p { font-size: 15px; }
.invite-icon { width: 48px; height: 48px; flex-shrink: 0; border-radius: 16px; background: var(--lime); display: flex; align-items: center; justify-content: center; }
.invite-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* Cards */
.cards { padding-top: clamp(72px, 9vw, 128px); }
.sub { margin: 8px auto 40px; max-width: 560px; font-size: 17px; color: var(--muted); }
.sub.small { margin: 24px auto 0; font-size: 15px; }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { border-radius: 24px; background: #fff; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.card h3 { margin-top: 4px; font-size: 18px; }
.card p { font-size: 15px; color: var(--muted); }
.card-icon { width: 44px; height: 44px; border-radius: 14px; display: flex; align-items: center; justify-content: center; }
.card-icon svg { width: 22px; height: 22px; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.card-icon svg .fill { stroke: none; }
.ic-violet { background: var(--violet-soft); } .ic-violet svg { stroke: var(--violet); }
.ic-orange { background: #FFF1E3; } .ic-orange svg .fill { fill: var(--orange); }
.ic-blue { background: #E2F3FF; } .ic-blue svg { stroke: #1F6FD1; }
.ic-green { background: var(--lime-soft); } .ic-green svg { stroke: #3F6B00; }

/* Pricing */
.pricing { padding-top: clamp(72px, 9vw, 128px); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; align-items: stretch; }
.plan { position: relative; border-radius: 28px; background: #fff; border: 2px solid var(--line); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.plan h3 { font-size: 18px; }
.plan .price { font: 600 44px/1 var(--display); }
.plan .price small { font: 500 16px Inter, sans-serif; }
.plan ul { padding: 0 0 6px; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.plan li { padding-left: 26px; background: no-repeat left 3px / 16px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12l5 5 9-10' fill='none' stroke='%23138A43' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.plan-violet { background: var(--violet); border-color: var(--violet); color: #fff; box-shadow: 0 24px 50px rgba(108, 59, 255, 0.35); }
.plan-violet .price small { color: #E4DCFF; }
.plan-ink { background: var(--ink); border-color: var(--ink); color: #fff; }
.plan-ink .price small, .plan-ink li { color: #E8E4F7; }
.plan-violet li, .plan-ink li { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12l5 5 9-10' fill='none' stroke='%23C6F432' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.tag { position: absolute; top: -14px; right: 24px; padding: 6px 12px; border-radius: 999px; background: var(--lime); color: var(--ink); font-weight: 700; font-size: 13px; }
.btn { margin-top: auto; min-height: 52px; border-radius: 16px; text-decoration: none; font-weight: 700; font-size: 16px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 16px; }
.btn-outline { border: 2px solid var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-white { background: #fff; color: var(--violet-deep); }
.btn-white:hover { color: #2E0FA0; background: #F1ECFF; }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { color: var(--ink); background: #D4FA5A; }

/* FAQ */
.faq { padding-top: clamp(72px, 9vw, 128px); }
.faq h2 { margin-bottom: 28px; }
.faq details { border-radius: 20px; background: #fff; padding: 18px 22px; margin-bottom: 12px; }
.faq summary { font-weight: 700; font-size: 17px; cursor: pointer; list-style-position: outside; }
.faq details p { margin-top: 10px; font-size: 15px; color: var(--muted); }

/* Final call */
.final { padding: clamp(72px, 9vw, 128px) 0; }
.final-box { position: relative; overflow: hidden; border-radius: 40px; background: var(--violet); color: #fff; padding: clamp(40px, 5vw, 72px) clamp(24px, 5vw, 72px); display: flex; flex-wrap: wrap; align-items: center; gap: 28px 40px; }
.final-sun { position: absolute; right: -60px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; background: var(--lime); opacity: 0.9; }
.final-copy { position: relative; flex: 1 1 420px; min-width: 0; }
.final h2 { font: 600 clamp(32px, 4vw, 52px)/1.05 var(--display); }
.final-copy p { margin-top: 12px; font-size: 17px; color: #E4DCFF; }
.final .play { position: relative; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); }
.site-foot .site-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding-top: 32px; padding-bottom: 40px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; flex-grow: 1; font-size: 14px; font-weight: 600; }
.site-foot p { font-size: 13px; color: var(--muted); }

/* Simple pages (error) */
.page { padding: 80px 0 40px; text-align: center; }
.page h1 { font: 600 clamp(32px, 4vw, 44px)/1.1 var(--display); }
.page p { margin-top: 12px; color: var(--muted); }

@media (max-width: 720px) {
  .hero-copy { gap: 18px; }
  .feature-row, .feature-row.flip { flex-direction: column-reverse; align-items: stretch; }
  .feature-art { width: 100%; }
}
.store-btn { height: 60px; padding: 0 22px; border-radius: 12px; background: #000; color: #fff; text-decoration: none; font-weight: 700; display: inline-flex; align-items: center; }
.store-btn:hover { color: #fff; }
