/* ==========================================================
   whyiprocrastinate.com — shared styles
   ========================================================== */

@font-face { font-family: "Bricolage Grotesque"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/bricolage-grotesque-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/bricolage-grotesque-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/dm-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/dm-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/dm-sans-latin-600-normal.woff2") format("woff2"); }

:root {
  --bg: #F2F3F5;
  --surface: #FFFFFF;
  --ink: #14161B;
  --body: #2B2F38;
  --muted: #4B5160;
  --subtle: #5B6170;
  --line: #DADDE3;
  --display: "Bricolage Grotesque", "Arial Narrow", sans-serif;
  --text: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--text); font-size: 17px; line-height: 1.6; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--muted); }
img, svg { display: block; }
[hidden] { display: none !important; }

.page { min-height: 100vh; display: flex; flex-direction: column; }
.container { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header / footer ---------- */
.site-header, .site-footer { width: 100%; max-width: 1120px; margin: 0 auto; padding: 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; }
.brand { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }
.header-note { font-size: 14px; color: var(--muted); }
.header-cta { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; background: var(--ink); color: #fff; border-radius: 999px; font-size: 15px; font-weight: 600; text-decoration: none; }
.header-cta:hover { color: #fff; background: #2B2F38; }
.site-footer { padding: 24px 20px 32px; font-size: 13px; color: var(--subtle); border-top: 1px solid var(--line); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--subtle); }
main { flex: 1; }

/* ---------- Type ---------- */
.eyebrow { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.h1 { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(40px, 7vw, 76px); line-height: 1.02; letter-spacing: -0.03em; }
.h2 { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(26px, 4vw, 32px); line-height: 1.12; letter-spacing: -0.02em; }
.lead { margin: 0; font-size: 19px; line-height: 1.6; color: var(--body); max-width: 600px; }
p { margin: 0; }

/* ---------- Buttons ---------- */
.btn { font: inherit; cursor: pointer; border: none; }
.btn-primary { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 16px 32px; background: var(--ink); color: #fff; border-radius: 999px; font-size: 18px; font-weight: 600; text-decoration: none; }
.btn-primary:hover { background: #2B2F38; color: #fff; }
.btn-link { background: none; padding: 12px 0; min-height: 44px; font-size: 15px; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
:focus-visible { outline: 3px solid #1D4ED8; outline-offset: 3px; }

/* ---------- Intro ---------- */
.intro { padding: 48px 0 80px; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.intro .sub { font-family: var(--display); font-weight: 500; font-size: clamp(24px, 3.4vw, 34px); line-height: 1.15; color: var(--muted); }
.intro .meta { font-size: 14px; color: var(--muted); }
.types { width: 100%; margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.types p { font-size: 14px; font-weight: 600; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; border-radius: 999px; font-size: 15px; font-weight: 600; background: var(--tint); color: var(--ink2); border: none; font-family: inherit; }
button.chip { cursor: pointer; }

/* ---------- Quiz ---------- */
.quiz { padding: 8px 0 80px; display: flex; flex-direction: column; gap: 32px; }
.quiz-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; color: var(--ink); cursor: pointer; }
.counter { font-size: 15px; font-weight: 600; color: var(--muted); }
.progress { width: 100%; height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; margin-top: 14px; }
.progress span { display: block; height: 100%; background: var(--ink); border-radius: 999px; transition: width .3s ease; }
.question { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(28px, 4.2vw, 40px); line-height: 1.12; letter-spacing: -0.02em; }
.options { display: flex; flex-direction: column; gap: 12px; }
.option { display: flex; align-items: center; gap: 16px; width: 100%; text-align: left; padding: 16px 20px; min-height: 68px; border-radius: 16px; font: inherit; font-size: 17px; line-height: 1.45; color: var(--ink); background: var(--surface); border: 2px solid #E2E4E9; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.option:hover { border-color: #9AA0AB; }
.option.is-selected { background: #E9EBEF; border-color: var(--ink); }
.option .letter { flex: none; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid #C4C8D0; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--muted); }
.hint { font-size: 14px; color: var(--muted); }

/* ---------- Result themes ---------- */
.t-chaos       { --tint: #FFF1E8; --ink2: #9A3412; --accent: #C2410C; }
.t-overwhelmed { --tint: #EAF0FF; --ink2: #1E40AF; --accent: #1D4ED8; }
.t-drifter     { --tint: #F3EDFF; --ink2: #5B21B6; --accent: #6D28D9; }
.t-grinder     { --tint: #E7F6EF; --ink2: #065F46; --accent: #047857; }

/* ---------- Result page ---------- */
.result { padding: 8px 0 32px; display: flex; flex-direction: column; gap: 56px; }
.hero { background: var(--tint); border-radius: 28px; padding: 48px 32px; display: flex; flex-direction: column; gap: 16px; }
.hero .eyebrow { color: var(--ink2); }
.hero h1 { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(40px, 6vw, 64px); line-height: 1.02; letter-spacing: -0.03em; }
.hero .promise { font-size: clamp(20px, 2.4vw, 24px); line-height: 1.4; font-weight: 500; max-width: 600px; }
.hero .encourage { color: var(--muted); }
.block { display: flex; flex-direction: column; gap: 18px; }
.block > p { font-size: 18px; line-height: 1.65; color: var(--body); }
.pain-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.pain-list li { position: relative; padding-left: 32px; font-size: 17px; line-height: 1.55; }
.pain-list li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 16px; height: 2.5px; border-radius: 2px; background: var(--accent); }
.card { background: var(--surface); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.card h2, .card h3 { margin: 0; font-size: 19px; font-weight: 600; }
.card p { font-size: 17px; line-height: 1.65; color: var(--body); }
.block > .fix-label { color: var(--ink2); font-size: 13px; line-height: 1.6; }
.fix-title { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(32px, 4.4vw, 44px); line-height: 1.08; letter-spacing: -0.02em; }
.why-label { font-size: 16px; font-weight: 600; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.feature { background: var(--surface); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.feature .num { font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--ink2); }
.feature h3 { margin: 0; font-size: 18px; font-weight: 600; }
.feature p { font-size: 16px; line-height: 1.55; color: var(--muted); }
.first-step { background: var(--tint); border-radius: 18px; padding: 24px 28px; display: flex; flex-direction: column; gap: 6px; }
.first-step .label { font-size: 14px; font-weight: 600; color: var(--ink2); }
.cta-card { background: var(--surface); border-radius: 28px; padding: 40px 28px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.cta-card h2 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 28px; letter-spacing: -0.02em; line-height: 1.15; }
.cta-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 60px; padding: 18px 32px; background: var(--accent); color: #fff; border-radius: 999px; font-size: 18px; font-weight: 600; text-decoration: none; line-height: 1.3; }
.cta-btn:hover { color: #fff; filter: brightness(0.92); }
.cta-meta { font-size: 14px; color: var(--muted); }
.disclosure { font-size: 13px; line-height: 1.5; color: var(--subtle); max-width: 480px; margin-top: 8px; }
.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.share-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; font: inherit; font-size: 15px; font-weight: 600; color: var(--ink); cursor: pointer; }
.share-status { font-size: 14px; color: var(--muted); }
.others { margin: 24px 0 80px; padding-top: 32px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; }
.others h2 { margin: 0; font-size: 19px; font-weight: 600; }

/* ---------- Content / legal pages ---------- */
.doc { padding: 48px 0 80px; display: flex; flex-direction: column; gap: 40px; }
.doc header { display: flex; flex-direction: column; gap: 16px; }
.doc .h1 { font-size: clamp(40px, 6vw, 60px); line-height: 1.04; }
.doc .updated { font-size: 15px; color: var(--muted); }
.doc section { display: flex; flex-direction: column; gap: 12px; }
.doc section > h2 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: -0.02em; line-height: 1.2; }
.doc h3 { margin: 8px 0 0; font-size: 18px; font-weight: 600; }
.doc p, .doc li { font-size: 17px; line-height: 1.7; color: var(--body); }
.doc ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.doc .summary { background: var(--surface); border-radius: 20px; padding: 28px; }
.doc .summary h2 { font-family: var(--text); font-size: 19px; font-weight: 600; letter-spacing: 0; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.ph { background: #FFE58A; color: var(--ink); padding: 0 4px; border-radius: 4px; }

@media (max-width: 480px) {
  .hero { padding: 36px 22px; }
  .card { padding: 24px; }
  .cta-card { padding: 32px 20px; }
  .btn-primary, .cta-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* About page steps */
.steps .num { color: var(--muted); }
.doc .feature p { font-size: 16px; line-height: 1.55; color: var(--muted); }
.doc .feature h3 { margin: 0; }
