:root {
  --paper: #F6F7F9;
  --sheet: #FFFFFF;
  --ink: #17181D;
  --muted: #5B5F6B;
  --line: #DADDE3;
  --pen: #D92D27;
  --marker: #FFE45C;
  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --hand: "Shantell Sans", "Comic Sans MS", cursive;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
}

a { color: inherit; }
:focus-visible { outline: 3px solid var(--pen); outline-offset: 3px; border-radius: 4px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { font-family: var(--display); letter-spacing: -0.03em; line-height: 1; margin: 0; }
h2 { font-size: clamp(34px, 4.4vw, 52px); font-weight: 800; }
h3 { font-size: 30px; font-weight: 800; }

.pen { font-family: var(--hand); font-weight: 700; color: var(--pen); }

.button {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  font-size: 16px;
  padding: 15px 22px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}
.button.ghost { background: transparent; color: var(--ink); }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px clamp(16px, 4vw, 48px); max-width: 1320px; margin: 0 auto; }
.logo { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; text-decoration: none; }
.logo span { color: var(--pen); }
.top nav { display: flex; gap: 26px; }
.top nav a { text-decoration: none; font-weight: 600; font-size: 15px; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: center;
  padding: 36px clamp(16px, 4vw, 48px) 72px;
  max-width: 1320px;
  margin: 0 auto;
}
.hero h1 { font-size: clamp(46px, 6.2vw, 84px); font-weight: 800; line-height: 0.98; letter-spacing: -0.035em; margin-bottom: 22px; }
.lede { font-size: 20px; line-height: 1.5; color: var(--muted); max-width: 34ch; margin: 0 0 30px; }

.check { display: flex; gap: 10px; max-width: 580px; }
.check input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 16px;
  padding: 15px 18px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
}
.check button {
  font: inherit;
  font-weight: 600;
  font-size: 16px;
  padding: 15px 22px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
}
.check button[disabled] { opacity: 0.6; cursor: progress; }
.check-status { min-height: 24px; margin: 12px 0 0; font-weight: 600; }
.check-status.error { color: var(--pen); }
.fine { margin: 6px 0 0; font-size: 14px; color: var(--muted); }

/* The marked-up phone */
.stage-wrap { display: flex; justify-content: center; }
.stage { position: relative; width: 580px; height: 600px; flex: none; }
.phone {
  position: absolute; left: 140px; top: 30px; width: 300px;
  transform: rotate(-2deg);
  background: #fff; border: 2px solid var(--ink); border-radius: 36px;
  padding: 26px 20px; box-shadow: 10px 12px 0 var(--ink);
}
.app-row { display: flex; gap: 14px; align-items: center; }
.fake-icon { width: 64px; height: 64px; border-radius: 16px; background: linear-gradient(140deg, #3B82F6, #7C3AED); }
.fake-name { font-weight: 600; font-size: 17px; }
.fake-dev { font-size: 13px; color: var(--muted); }
.fake-stats { display: flex; gap: 18px; margin: 18px 0; font-size: 13px; color: var(--muted); }
.fake-stats b { display: block; color: var(--ink); font-size: 15px; }
.fake-install { background: var(--ink); color: #fff; text-align: center; border-radius: 10px; padding: 10px; font-weight: 600; font-size: 14px; }
.fake-shots { display: flex; gap: 8px; margin-top: 16px; }
.fake-shots div { flex: 0 0 82px; height: 160px; border-radius: 10px; background: #EEF0F4; border: 1px solid var(--line); }
.fake-shots .empty { background: repeating-linear-gradient(45deg, #fff, #fff 6px, #F1F2F5 6px, #F1F2F5 12px); }
.fake-line { margin-top: 14px; height: 8px; background: #EEF0F4; border-radius: 4px; width: 80%; }
.fake-line.short { width: 55%; }

.ring { position: absolute; border: 3px solid var(--pen); border-radius: 50%; }
.ring-name { left: 232px; top: 66px; width: 104px; height: 52px; transform: rotate(-6deg); }
.ring-ratings { left: 150px; top: 150px; width: 92px; height: 52px; }
.ring-shots { left: 338px; top: 258px; width: 104px; height: 196px; transform: rotate(3deg); }
.stage .pen { position: absolute; font-size: 19px; line-height: 1.15; }
.note-name { left: 0; top: 52px; width: 128px; }
.note-ratings { left: 0; top: 176px; width: 128px; }
.note-shots { left: 462px; top: 316px; width: 118px; }
.stage .grade { left: 470px; top: 0; font-size: 64px; transform: rotate(8deg); }
.stage .grade::after { content: ""; position: absolute; inset: -10px -18px; border: 4px solid var(--pen); border-radius: 50%; }

/* The one moment of motion: the pen draws the rings on first load. */
@media (prefers-reduced-motion: no-preference) {
  .stage .ring, .stage .pen { animation: pen-in 0.5s ease-out both; }
  .ring-name, .note-name { animation-delay: 0.3s !important; }
  .ring-ratings, .note-ratings { animation-delay: 0.7s !important; }
  .ring-shots, .note-shots { animation-delay: 1.1s !important; }
  .stage .grade { animation-delay: 1.6s !important; }
  /* The negative insets keep the score's ring, drawn outside its box, from being clipped. */
  @keyframes pen-in { from { opacity: 0; clip-path: inset(-40px 100% -40px -40px); } to { opacity: 1; clip-path: inset(-40px -40px -40px -40px); } }
}

/* Results */
.results { max-width: 1000px; margin: 0 auto 40px; padding: 40px clamp(16px, 4vw, 48px); background: var(--sheet); border: 2px solid var(--ink); border-radius: 24px; box-shadow: 10px 12px 0 var(--ink); }
.results[hidden] { display: none; }
.results-head { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; margin-bottom: 26px; }
.result-icon { width: 72px; height: 72px; border-radius: 18px; border: 1px solid var(--line); object-fit: cover; background: #EEF0F4; }
.results-head h2 { font-size: clamp(26px, 3.4vw, 38px); }
.result-meta { margin: 6px 0 0; color: var(--muted); }
.result-score { text-align: center; position: relative; padding: 6px 18px; }
.score-number { display: block; font-size: 60px; line-height: 1; transform: rotate(6deg); }
.score-number::after { content: ""; position: absolute; left: 0; right: 0; top: -6px; height: 84px; border: 4px solid var(--pen); border-radius: 50%; }
.score-note { display: block; font-size: 16px; margin-top: 22px; max-width: 16ch; }

.marks { list-style: none; margin: 0; padding: 0; }
.marks li { display: grid; grid-template-columns: 170px 1fr; gap: 6px 24px; padding: 18px 0; border-top: 1px solid var(--line); }
.mark-label { font-weight: 600; justify-self: start; position: relative; }
.mark-detail { color: var(--ink); }
.mark-fix { grid-column: 2; margin: 0; color: var(--muted); }
.mark-service { grid-column: 2; font-family: var(--hand); font-weight: 700; font-size: 15px; color: var(--pen); }
.marks .fail .mark-label { padding: 0 8px; }
.marks .fail .mark-label::after { content: ""; position: absolute; inset: -6px -4px; border: 2.5px solid var(--pen); border-radius: 50%; transform: rotate(-3deg); }
.marks .warn .mark-label { background: linear-gradient(transparent 45%, var(--marker) 45%, var(--marker) 90%, transparent 90%); padding: 0 4px; }
.marks .pass .mark-label::before { content: "\2713"; font-family: var(--hand); color: var(--ink); margin-right: 8px; }
.marks .pass .mark-detail { color: var(--muted); }

.results-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 26px; padding-top: 22px; border-top: 2px solid var(--ink); }
.results-cta p { margin: 0; font-size: 19px; }

/* How it works */
.how, .packages, .faq, .request { max-width: 1120px; margin: 0 auto; padding: 72px clamp(16px, 4vw, 48px); }
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; padding: 0; margin: 32px 0 0; }
.steps li { counter-increment: step; position: relative; padding-top: 58px; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; font-family: var(--hand); font-weight: 700; font-size: 40px; color: var(--pen); line-height: 1; }
.steps strong { display: block; font-size: 19px; margin-bottom: 4px; }

/* Packages: three sheets of paper */
.section-lede { color: var(--muted); font-size: 19px; margin: 12px 0 0; max-width: 46ch; }
/* Four packages, two by two. */
.sheets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 36px; margin-top: 40px; align-items: stretch; }
.sheet { background: var(--sheet); border: 2px solid var(--ink); border-radius: 6px; padding: 28px 26px; box-shadow: 6px 7px 0 var(--ink); display: flex; flex-direction: column; gap: 14px; min-height: 100%; }
.sheet.tilt { transform: rotate(0.8deg); }
.sheet ul { margin: 0; padding-left: 20px; flex: 1; }
.sheet li { margin-bottom: 8px; }
.sheet .button { align-self: flex-start; }
.price { margin: 0; color: var(--muted); font-weight: 600; }
.price .pen { font-size: 30px; margin-right: 6px; }
.price .circled { position: relative; padding: 0 8px; }
.price .circled::after { content: ""; position: absolute; inset: -4px -6px; border: 3px solid var(--pen); border-radius: 50%; transform: rotate(-4deg); }

/* FAQ */
.faq dl { margin: 28px 0 0; max-width: 70ch; }
.faq dt { font-weight: 600; font-size: 19px; margin-top: 22px; }
.faq dd { margin: 6px 0 0; color: var(--muted); }

/* Request form */
.request-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; margin-top: 30px; max-width: 760px; }
.request-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 15px; }
.request-form .wide { grid-column: 1 / -1; }
.request-form input, .request-form select, .request-form textarea {
  font: inherit; font-weight: 400; font-size: 16px; padding: 13px 14px;
  border: 2px solid var(--ink); border-radius: 10px; background: #fff; color: var(--ink);
}
.request-form input, .request-form select { min-height: 54px; }
.request-form button { justify-self: start; font: inherit; font-weight: 600; font-size: 16px; padding: 15px 26px; border: 2px solid var(--ink); border-radius: 12px; background: var(--ink); color: #fff; cursor: pointer; }
.request-form button[disabled] { opacity: 0.6; cursor: progress; }
.request-form .trap { position: absolute; left: -9999px; }
.request-status { margin: 0; min-height: 24px; font-weight: 600; }
.request-status.error { color: var(--pen); }

/* Footer */
.bottom { max-width: 1320px; margin: 0 auto; padding: 36px clamp(16px, 4vw, 48px) 48px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 15px; border-top: 1px solid var(--line); }
.bottom p { margin: 0; }
.bottom nav { display: flex; gap: 20px; }

/* Legal pages */
.doc { max-width: 720px; margin: 0 auto; padding: 40px clamp(16px, 4vw, 48px) 80px; }
.doc h1 { font-size: clamp(38px, 5vw, 56px); font-weight: 800; margin-bottom: 18px; }
.doc h2 { font-size: 26px; margin-top: 36px; margin-bottom: 8px; }
.doc p, .doc li { color: #2A2C33; }

/* Narrower screens */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; gap: 12px; }
  .stage-wrap { height: 450px; }
  .stage { transform: scale(0.75); transform-origin: top center; }
  .sheets { grid-template-columns: 1fr; max-width: 560px; }
  .sheet.tilt { transform: none; }
}
@media (max-width: 640px) {
  .top nav a:not(.nav-check) { display: none; }
  .check { flex-direction: column; }
  .stage-wrap { height: 330px; overflow: hidden; }
  .stage { transform: scale(0.55); }
  .results { border-radius: 16px; box-shadow: 6px 7px 0 var(--ink); }
  .results-head { grid-template-columns: auto 1fr; }
  .result-score { grid-column: 1 / -1; justify-self: start; text-align: left; }
  .marks li { grid-template-columns: 1fr; }
  .mark-fix, .mark-service { grid-column: 1; }
  .request-form { grid-template-columns: 1fr; }
}
