/* Prep Bull "Mojza" style: pink paper, DM Serif + Poppins, outlined cards with a hard pink shadow. */
@font-face { font-family: 'DM Serif Display'; src: url(../assets/fonts/DMSerifDisplay-Regular.ttf) format('truetype'); font-display: swap; }
@font-face { font-family: 'DM Serif Display'; font-style: italic; src: url(../assets/fonts/DMSerifDisplay-Italic.ttf) format('truetype'); font-display: swap; }
@font-face { font-family: Poppins; font-weight: 400; src: url(../assets/fonts/Poppins-Regular.ttf) format('truetype'); font-display: swap; }
@font-face { font-family: Poppins; font-weight: 500; src: url(../assets/fonts/Poppins-Medium.ttf) format('truetype'); font-display: swap; }
@font-face { font-family: Poppins; font-weight: 600; src: url(../assets/fonts/Poppins-SemiBold.ttf) format('truetype'); font-display: swap; }
@font-face { font-family: Poppins; font-weight: 700; src: url(../assets/fonts/Poppins-Bold.ttf) format('truetype'); font-display: swap; }

:root {
  --pink: #FF1F5A; --deep: #D0174E; --blush: #FFE3EA; --tab: #FFD3DE; --paper: #FFF5F7;
  --ink: #141414; --muted: #5f5f5f; --sun: #FFC93C; --line: 3px solid var(--ink);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); font: 400 16px/1.6 Poppins, system-ui, sans-serif;
  background-color: #FFF4F6;
  background-image:
    linear-gradient(90deg, rgba(255,31,90,.075) 50%, transparent 50%),
    linear-gradient(rgba(255,31,90,.075) 50%, transparent 50%);
  background-size: 64px 64px;
}
a { color: var(--deep); font-weight: 500; }

.top { display: flex; justify-content: space-between; align-items: center; max-width: 720px; margin: 0 auto; padding: 14px 18px; }
.brand { display: flex; align-items: center; gap: 10px; font: 400 21px 'DM Serif Display', serif; color: var(--ink); text-decoration: none; }
.badge { display: grid; place-items: center; width: 46px; height: 46px; background: #fff; border: var(--line); border-radius: 50%; overflow: hidden; }
.top-note { font-size: 12px; color: var(--muted); }

main { max-width: 720px; margin: 0 auto; padding: 8px 18px 36px; }

/* Type */
.kicker { font-weight: 700; font-size: 15px; margin: 18px 0 6px; }
.display { font: 400 clamp(50px, 13vw, 84px)/1.02 'DM Serif Display', serif; color: var(--deep); margin: 0 0 14px; }
.display em, h2 em { color: var(--ink); font-style: italic; }
h2 { font: 400 clamp(28px, 7vw, 38px)/1.14 'DM Serif Display', serif; color: var(--deep); margin: 0 0 16px; outline: none; }
h3 { font: 400 23px/1.2 'DM Serif Display', serif; color: var(--deep); margin: 26px 0 10px; }
.lede { font-size: 18px; margin: 0 0 16px; max-width: 34em; }
.note { margin: 0 0 16px; }
.hint { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.step-label { font-size: 13px; font-weight: 600; margin: 0 0 6px; color: var(--muted); }

/* Parts */
.card { position: relative; background: #fff; border: var(--line); border-radius: 26px; padding: 24px 20px; box-shadow: 8px 8px 0 var(--pink); }
.pill { display: inline-block; background: #fff; border: var(--line); border-radius: 999px; padding: 8px 18px; font-weight: 600; box-shadow: 5px 5px 0 var(--pink); }
.btn { font: 600 16px Poppins, sans-serif; cursor: pointer; color: #fff; background: var(--deep); border: var(--line); border-radius: 999px; padding: 13px 26px; box-shadow: 4px 4px 0 var(--ink); text-decoration: none; display: inline-block; text-align: center; transition: transform .08s, box-shadow .08s; }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-ghost { color: var(--ink); background: #fff; }
.btn-wide { width: 100%; margin-top: 8px; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }

.bully { display: block; height: auto; }
.intro-cta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; }
.intro-cta .btn { white-space: nowrap; padding: 13px 22px; }
.bully-intro { width: 120px; margin-bottom: -6px; flex: none; }
.facts { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0; padding: 14px; background: #fff; border: var(--line); border-radius: 20px; box-shadow: 6px 6px 0 var(--pink); }
.facts strong { display: block; font: 400 clamp(18px, 5vw, 26px)/1.15 'DM Serif Display', serif; color: var(--deep); }
.facts span { font-size: 12px; line-height: 1.3; display: block; margin-top: 3px; }

/* Forms */
.field { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
label, legend { font-weight: 600; font-size: 15px; display: block; padding: 0; margin-bottom: 6px; }
input[type=number], input[type=email], input[type=tel], input:not([type]), select, textarea {
  width: 100%; font: 400 16px Poppins, sans-serif; color: var(--ink); background: var(--paper);
  border: 2px solid var(--ink); border-radius: 12px; padding: 11px 12px; min-height: 48px;
}
textarea { resize: vertical; line-height: 1.5; }
.invalid { border-color: var(--deep) !important; background: #fff0f3 !important; }
.err { color: #B00F3E; font-size: 13px; font-weight: 500; margin: 6px 0 0; }
.count { font-size: 13px; color: var(--muted); margin: 4px 0 0; text-align: right; }
.count.good { color: var(--ink); font-weight: 600; }

.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices.stack { flex-direction: column; }
.choice { margin: 0; font-weight: 500; cursor: pointer; flex: 1 1 auto; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span { display: block; text-align: center; padding: 11px 14px; background: var(--paper); border: 2px solid var(--ink); border-radius: 12px; min-height: 48px; }
.choices.stack .choice span { text-align: left; }
.choice input:checked + span { background: var(--tab); box-shadow: 3px 3px 0 var(--pink); font-weight: 600; }
.choice input:focus-visible + span { outline: 3px solid var(--sun); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; margin: 0 0 14px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--deep); }

.grades-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.grades-grid.three { grid-template-columns: repeat(3, 1fr); }
.grades-grid label { font-size: 14px; text-align: center; margin: 0; }
.grades-grid input, .grades-grid select { text-align: center; padding: 10px 4px; margin-top: 4px; }
.hp { position: absolute; left: -9999px; height: 1px; overflow: hidden; }

.progress { height: 12px; background: #fff; border: var(--line); border-radius: 999px; margin: 8px 0 18px; overflow: hidden; }
.progress-bar { height: 100%; width: 20%; background: var(--pink); transition: width .25s; }
.nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; }

/* Result */
.score-card { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; }
.score-num { font: 400 clamp(90px, 25vw, 136px)/.9 'DM Serif Display', serif; color: var(--deep); }
.score-num small { font-size: .32em; color: var(--ink); }
.band { display: inline-block; font-weight: 700; background: var(--tab); border: var(--line); border-radius: 12px; padding: 4px 14px; margin: 10px 0 8px; }
.band-below-minimum { background: var(--ink); color: #fff; }
.score-card .bully { width: clamp(110px, 28vw, 170px); }
.meta { font-size: 14px; margin: 0; color: var(--muted); }
.result-title { margin-bottom: 14px; }

.elig { list-style: none; margin: 0; padding: 0; }
.elig li { display: flex; gap: 10px; margin-bottom: 8px; font-size: 15px; line-height: 1.45; }
.mark { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: 13px; font-weight: 700; border: 2px solid var(--ink); }
.mark-ok { background: #fff; }
.mark-warn { background: var(--sun); }
.mark-fail { background: var(--deep); color: #fff; }

.bar-row { margin-bottom: 14px; }
.bar-head { display: flex; justify-content: space-between; font-weight: 600; font-size: 15px; }
.bar { height: 14px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; overflow: hidden; margin: 4px 0; }
.bar i { display: block; height: 100%; background: var(--pink); }
.bar-detail { font-size: 13px; color: var(--muted); line-height: 1.4; }
.bar-row.missing .bar-head span:last-child { color: var(--muted); font-weight: 400; }

.lead { margin-top: 30px; background: #fff; }
.section-card { margin-top: 24px; }
.section-card > h3:first-child { margin-top: 0; }

.empty-actions { margin-top: 12px; }

/* Writing */
.writing { text-align: center; margin-top: 30px; }
.writing .bully { margin: 0 auto 12px; width: 170px; }
.dots { display: flex; justify-content: center; gap: 8px; }
.dots span { width: 12px; height: 12px; background: var(--pink); border-radius: 50%; animation: bob 1s infinite ease-in-out; }
.dots span:nth-child(2) { animation-delay: .15s; }
.dots span:nth-child(3) { animation-delay: .3s; }
@keyframes bob { 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .dots span { animation: none; } .btn { transition: none; } .progress-bar { transition: none; } }

/* Report */
.report-head { margin-top: 12px; }
.report-head h1 { font: 400 clamp(32px, 8vw, 46px)/1.1 'DM Serif Display', serif; margin: 6px 0 12px; }
.report-item { background: var(--paper); border: 2px solid var(--ink); border-radius: 14px; padding: 12px 14px; margin-bottom: 12px; }
.report-item strong { display: block; }
.report-item p { margin: 4px 0 0; font-size: 15px; line-height: 1.5; }
.report-item ul { margin: 6px 0 0; padding-left: 20px; font-size: 15px; line-height: 1.5; }
.rating { color: var(--deep); font-family: 'DM Serif Display', serif; font-size: 20px; float: right; font-weight: 400; }
.example { font-style: italic; border-left: 4px solid var(--pink); padding-left: 10px; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { margin-bottom: 8px; }
.timeline b { color: var(--deep); }
.closing { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 10px; margin-top: 18px; font-weight: 600; font-size: 17px; }
.closing .bully { width: 110px; }
.offer { margin-top: 26px; text-align: center; background: var(--tab); }
.offer h3 { color: var(--ink); margin-top: 0; }
.sent { background: #fff; border: 2px solid var(--ink); border-radius: 12px; padding: 8px 14px; margin: 0 0 10px; font-size: 14px; font-weight: 500; }
.share { text-align: center; margin-top: 18px; }

.foot { max-width: 720px; margin: 0 auto; padding: 8px 18px 28px; font-size: 12px; color: var(--muted); line-height: 1.5; }

@media (min-width: 620px) {
  .card { padding: 32px 30px; }
  .bully-intro { width: 180px; }
}
@media (max-width: 420px) {
  .top-note { font-size: 11px; }
  .grades-grid { grid-template-columns: repeat(3, 1fr); }
  .grades-grid.three label { font-size: 12px; }
}
