:root {
  --paper: #FAF6EE;
  --ink: #1B2A3A;
  --muted: #4E5D6C;
  --blue: #1F5FBF;
  --green: #2E7D4F;
  --red: #C8372D;
  --yellow: #FFD84D;
  --card: #FFFFFF;
  --line: #E6DECF;
  --sale-bg: #FFFFFF;
  --sale-fg: #1B2A3A;
  --sale-accent: #1F5FBF;
  --share-bg: #FFFFFF;
  --share-fg: #1B2A3A;
  --share-border: #D9CFBD;
  --radius: 18px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 18px/1.6 "Libre Franklin", system-ui, sans-serif;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: "Newsreader", Georgia, serif; line-height: 1.1; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

.challenge { background: var(--ink); color: #fff; text-align: center; padding: 12px 16px; font-size: 17px; }
.challenge a { color: var(--yellow); font-weight: 700; }

.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 1080px; margin: 0 auto; padding: 18px 16px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 17px; }
.brand svg { width: 32px; height: 32px; flex: none; }
.top nav { display: flex; gap: 18px; font-size: 16px; }
.top nav a { color: var(--ink); text-decoration: none; }
.top nav a:hover { text-decoration: underline; }
@media (max-width: 640px) { .top nav { display: none; } }

main { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.kicker { font-size: 15px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); margin-bottom: 12px; }

/* Hero */
.hero { padding: clamp(28px, 7vw, 88px) 0 clamp(40px, 8vw, 96px); display: grid; gap: 48px; align-items: start; }
@media (min-width: 960px) { .hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); } }
.hero-art { display: none; }
@media (min-width: 960px) { .hero-art { display: block; position: sticky; top: 24px; } }
.phone {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  width: 340px; margin: 0 auto; border-radius: 46px; padding: 54px 14px 26px;
  background: linear-gradient(160deg, #24384E, #13202E 70%);
  border: 10px solid #0E1823; box-shadow: 0 50px 80px -30px rgba(27,42,58,.55), inset 0 0 0 1px rgba(255,255,255,.06);
  color: #fff; position: relative; transform: rotate(2.5deg);
}
.phone::before { content: ""; position: absolute; top: 12px; left: 50%; width: 92px; height: 26px; border-radius: 20px; background: #0E1823; transform: translateX(-50%); }
.lock-time { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", system-ui, sans-serif; font-weight: 600; font-size: 76px; text-align: center; line-height: 1; letter-spacing: -.03em; }
.lock-date { text-align: center; font-size: 15px; opacity: .7; margin: 6px 0 22px; }
.notes { display: grid; gap: 8px; }
.note { display: flex; gap: 10px; align-items: flex-start; background: rgba(255,255,255,.88); color: var(--ink); border-radius: 18px; padding: 10px 12px; font-size: 14px; line-height: 1.35; backdrop-filter: blur(8px); }
.note .ni { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: #fff; font-weight: 700; flex: none; font-size: 14px; }
.note div { min-width: 0; flex: 1; }
.note b { font-size: 14px; }
.note small { float: right; color: var(--muted); font-size: 12px; }
.note p { margin-top: 1px; }
.phone-tag { font-family: "Libre Franklin", system-ui, sans-serif; text-align: center; margin-top: 18px; font-size: 15px; font-weight: 700; color: var(--yellow); }
.phone-tag span { color: #fff; opacity: .6; font-weight: 400; }
@media (prefers-reduced-motion: no-preference) {
  .note { animation: note-in .5s cubic-bezier(.2,.9,.3,1.2) both; }
  .note:nth-child(1) { animation-delay: 2.0s; } .note:nth-child(2) { animation-delay: 1.6s; } .note:nth-child(3) { animation-delay: 1.2s; } .note:nth-child(4) { animation-delay: .8s; } .note:nth-child(5) { animation-delay: .4s; }
}
@keyframes note-in { from { opacity: 0; transform: translateY(-16px) scale(.94); } }
.hero h1 { font-size: clamp(52px, 11vw, 120px); font-weight: 700; letter-spacing: -.025em; line-height: .98; }
.hero h1 .nope { font-style: italic; color: var(--red); }
.hero h1 mark { background: linear-gradient(transparent 58%, var(--yellow) 58%, var(--yellow) 92%, transparent 92%); color: inherit; padding: 0 .06em; }
.lede { font-size: clamp(20px, 2.4vw, 24px); max-width: 34ch; margin: 22px 0 30px; color: var(--muted); }

.big {
  font: inherit; font-weight: 700; font-size: 20px;
  min-height: 60px; padding: 0 30px; border-radius: 999px; cursor: pointer;
  background: var(--blue); color: #fff; border: 0;
  box-shadow: 0 4px 0 #13417F, 0 14px 30px -10px rgba(31,95,191,.6);
  transition: transform .12s ease, box-shadow .12s ease;
}
.big:hover { transform: translateY(-2px); box-shadow: 0 6px 0 #13417F, 0 18px 34px -10px rgba(31,95,191,.6); }
.big:active { transform: translateY(3px); box-shadow: 0 1px 0 #13417F, 0 8px 20px -10px rgba(31,95,191,.6); }
@media (prefers-reduced-motion: no-preference) {
  .big:not(.done) { animation: nudge 4s ease-in-out 2s infinite; }
}
@keyframes nudge { 0%, 88%, 100% { transform: none; } 91% { transform: rotate(-2deg); } 94% { transform: rotate(2deg); } 97% { transform: rotate(-1deg); } }
@media (max-width: 480px) { .big { width: 100%; } }
.tiny { font-size: 15px; color: var(--muted); margin-top: 12px; font-style: italic; }

/* Receipt */
.receipt { margin-top: 36px; max-width: 520px; outline: none; }
.receipt-paper {
  background: var(--card); padding: 26px 24px 22px; position: relative;
  box-shadow: 0 1px 0 var(--line), 0 24px 50px -24px rgba(27,42,58,.35);
  font-size: 17px;
  --tooth: 10px;
  -webkit-mask: radial-gradient(circle at 50% 100%, transparent 5px, #000 5.5px) 0 100% / var(--tooth) 8px repeat-x, linear-gradient(#000, #000) 0 0 / 100% calc(100% - 7px) no-repeat;
          mask: radial-gradient(circle at 50% 100%, transparent 5px, #000 5.5px) 0 100% / var(--tooth) 8px repeat-x, linear-gradient(#000, #000) 0 0 / 100% calc(100% - 7px) no-repeat;
  padding-bottom: 30px;
}
.receipt-head { font-family: "Newsreader", Georgia, serif; font-weight: 800; font-size: 22px; text-align: center; padding-bottom: 14px; border-bottom: 2px dashed var(--line); margin-bottom: 8px; }
.receipt dl { margin: 0; }
.receipt dl div { display: flex; justify-content: space-between; gap: 18px; padding: 9px 0; border-bottom: 1px dotted var(--line); }
.receipt dt { color: var(--muted); flex: none; }
.receipt dd { margin: 0; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.receipt-total { display: flex; justify-content: space-between; gap: 12px; font-weight: 700; padding: 14px 0 10px; border-bottom: 2px dashed var(--line); }
.receipt-foot { font-size: 15px; color: var(--muted); padding-top: 12px; }
.after { margin-top: 20px; font-size: 19px; }
.after a { font-weight: 700; }
@media (prefers-reduced-motion: no-preference) {
  .receipt.printing .receipt-paper { animation: print .7s cubic-bezier(.2,.8,.2,1); transform-origin: top; }
  .receipt dl div.in { animation: line-in .3s ease-out both; }
}
@keyframes print { from { clip-path: inset(0 0 100% 0); transform: translateY(-14px); } to { clip-path: inset(0 0 0 0); transform: none; } }
@keyframes line-in { from { opacity: 0; transform: translateX(-6px); } }

/* Sections */
section { scroll-margin-top: 16px; }
.section-head { max-width: 640px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(38px, 6vw, 60px); font-weight: 800; margin-bottom: 12px; }
.section-head p { color: var(--muted); }

/* Quiz */
.quiz { padding: clamp(48px, 8vw, 96px) 0; border-top: 2px solid var(--line); }
.progress ol { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0 0 10px; }
.progress li { width: 26px; height: 8px; border-radius: 99px; background: var(--line); transition: background .2s; }
.progress li.now { background: var(--ink); }
.progress li.right { background: var(--green); }
.progress li.wrong { background: var(--red); }
.count { font-size: 16px; color: var(--muted); margin-bottom: 18px; font-weight: 700; }

.stage { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; max-width: 560px; }
@media (min-width: 960px) {
  .quiz { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); column-gap: 64px; align-items: start; }
  .quiz .section-head { grid-column: 1; grid-row: 1 / span 4; position: sticky; top: 24px; }
  .quiz > :not(.section-head) { grid-column: 2; }
  .quiz .stage, .quiz .result { max-width: none; }
}
.answer { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.answer button {
  font: inherit; font-weight: 700; font-size: 21px; min-height: 64px; border-radius: 16px; cursor: pointer;
  border: 2px solid currentColor; background: var(--card);
  transition: transform .1s ease, background .15s, color .15s;
}
.answer .phish { color: var(--red); }
.answer .fine { color: var(--green); }
.answer .phish:hover { background: var(--red); color: #fff; }
.answer .fine:hover { background: var(--green); color: #fff; }
.answer button:active { transform: scale(.97); }

/* Message mock-ups */
.card { outline: none; }
.device {
  background: var(--card); border-radius: 28px; padding: 18px; border: 1px solid var(--line);
  box-shadow: 0 30px 60px -30px rgba(27,42,58,.35);
}
@media (prefers-reduced-motion: no-preference) { .device { animation: card-in .35s cubic-bezier(.2,.8,.2,1); } }
@keyframes card-in { from { opacity: 0; transform: translateY(14px) rotate(-.6deg); } }
.device-bar { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; flex: none; font-size: 16px; }
.who { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.who strong { color: var(--ink); font-size: 16px; overflow-wrap: anywhere; }
.who small { font-size: 14px; overflow-wrap: anywhere; }
.chan { margin-left: auto; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; background: var(--paper); padding: 4px 9px; border-radius: 99px; flex: none; }
.bubble { background: #EDEFF3; border-radius: 20px 20px 20px 6px; padding: 13px 16px; font-size: 17px; line-height: 1.5; max-width: 92%; overflow-wrap: anywhere; }
.bubble + .bubble { margin-top: 8px; }
.mail-subj { font-weight: 700; font-size: 18px; margin-bottom: 8px; }
.mail-body { font-size: 17px; line-height: 1.55; overflow-wrap: anywhere; }
.mail-body p + p { margin-top: 10px; }
.fake-btn { display: inline-block; margin-top: 12px; background: var(--ink); color: #fff; padding: 9px 16px; border-radius: 8px; font-weight: 700; font-size: 16px; }
.fake-link { color: var(--blue); text-decoration: underline; overflow-wrap: anywhere; }
.popup { border: 3px solid var(--red); border-radius: 14px; padding: 18px; text-align: center; background: #FFF4F2; }
.popup .warn { font-family: "Newsreader", Georgia, serif; font-weight: 800; color: var(--red); font-size: 24px; line-height: 1.15; margin-bottom: 8px; }
.perm { text-align: center; padding: 6px 4px 2px; }
.perm .app-icon { width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 12px; display: grid; place-items: center; font-size: 32px; background: #20262E; }
.perm h4 { margin: 0 0 6px; font-size: 19px; }
.perm ul { list-style: none; padding: 0; margin: 12px 0; text-align: left; }
.perm li { padding: 9px 12px; border-radius: 10px; background: var(--paper); margin-bottom: 6px; font-size: 16px; }
.perm .perm-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-weight: 700; font-size: 16px; color: var(--blue); }
.perm .perm-btns span { padding: 10px; border-top: 1px solid var(--line); }
.sticker { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; background: #DCE3EA; border-radius: 14px; padding: 16px; }
.sticker .qr { width: 96px; height: 96px; background: #fff; border-radius: 6px; padding: 8px; transform: rotate(-3deg); box-shadow: 2px 3px 0 rgba(0,0,0,.15); }
.sticker .qr svg { width: 100%; height: 100%; display: block; }
.call { text-align: center; padding: 8px 0 4px; }
.call .ring { font-size: 15px; color: var(--muted); }
.call .num { font-family: "Newsreader", Georgia, serif; font-weight: 800; font-size: 26px; margin: 4px 0 14px; }
.call .said { text-align: left; }
mark.tell { background: transparent; color: inherit; transition: background .3s; border-radius: 3px; }
.revealed mark.tell { background: var(--yellow); box-shadow: 0 0 0 2px var(--yellow); }

.verdict { border-radius: var(--radius); padding: 20px 22px; background: var(--card); border-left: 6px solid var(--ink); outline: none; }
.verdict.right { border-color: var(--green); }
.verdict.wrong { border-color: var(--red); }
.verdict .v-head { font-family: "Newsreader", Georgia, serif; font-weight: 800; font-size: 26px; margin-bottom: 6px; }
.verdict.right .v-head { color: var(--green); }
.verdict.wrong .v-head { color: var(--red); }
.verdict .joke { margin-top: 10px; font-style: italic; color: var(--muted); }
.verdict .next { margin-top: 16px; }
.btn {
  font: inherit; font-weight: 700; font-size: 18px; min-height: 52px; padding: 0 26px;
  border-radius: 999px; border: 0; background: var(--ink); color: #fff; cursor: pointer;
}
.btn:hover { background: #0E1823; }
.ghost { font: inherit; font-weight: 700; font-size: 17px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 2px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; margin-top: 18px; }

.result { max-width: 640px; background: var(--card); border-radius: 24px; padding: clamp(24px, 4vw, 40px); box-shadow: 0 30px 60px -30px rgba(27,42,58,.35); outline: none; }
.result-score { font-family: "Newsreader", Georgia, serif; font-weight: 800; font-size: clamp(64px, 12vw, 104px); line-height: 1; color: var(--blue); }
.result h3 { font-size: clamp(28px, 4vw, 38px); font-weight: 800; margin: 8px 0 10px; }
.share-label { font-weight: 700; margin: 22px 0 10px; }

/* Habits */
.habits { padding: clamp(48px, 8vw, 96px) 0; border-top: 2px solid var(--line); }
.habit-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.habit-grid li { background: var(--card); border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); position: relative; }
.habit-grid .num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--yellow); font-family: "Newsreader", Georgia, serif; font-weight: 800; font-size: 20px; margin-bottom: 14px; }
.habit-grid h3 { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.habit-grid p { color: var(--muted); font-size: 18px; }

/* Already clicked */
.oops { padding: 0 0 clamp(48px, 8vw, 96px); }
.oops-box { background: var(--ink); color: #fff; border-radius: 28px; padding: clamp(26px, 5vw, 52px); }
.oops-box h2 { font-size: clamp(32px, 5vw, 50px); font-weight: 800; color: var(--yellow); margin-bottom: 10px; }
.oops-box > p { opacity: .85; max-width: 46ch; }
.oops-box ol { margin: 22px 0 0; padding-left: 1.3em; display: grid; gap: 10px; }
.oops-box li::marker { color: var(--yellow); font-weight: 700; }

/* Spread */
.spread { text-align: center; padding: clamp(40px, 7vw, 80px) 0; border-top: 2px solid var(--line); }
.spread h2 { font-size: clamp(32px, 5vw, 52px); font-weight: 800; max-width: 18ch; margin: 0 auto 10px; }
.spread > p { color: var(--muted); margin-bottom: 24px; }
.spread .share-kit { justify-content: center; }

.foot { max-width: 1080px; margin: 0 auto; padding: 28px 16px 40px; border-top: 2px solid var(--line); font-size: 15px; color: var(--muted); display: grid; gap: 8px; }

.foot-link { color: inherit; text-underline-offset: 3px; }
.foot-link:hover { color: var(--accent, inherit); }
