/* ==========================================================
   HUSTLE DNA · Painted Signboard world
   Galvanised corrugated iron, enamel-painted plywood boards,
   sign-painter caps with drop-shade, brush script for the human word.
   ========================================================== */
:root {
  --ink: #111111;
  --ink-2: #3A3A38;
  --paint-white: #FFFDF6;
  --yellow: #F7C600;
  --yellow-deep: #D9A900;
  --blue: #1452A6;
  --red: #E2231A;
  --green: #1F8A4C;
  --orange: #F26B1D;
  --pink: #D6246E;
  --iron-hi: #E2E5E7;
  --iron-mid: #C6CBCF;
  --iron-lo: #A9AFB4;

  --sign: "Bungee", "Arial Black", sans-serif;
  --script: "Yellowtail", cursive;
  --body: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-board: 7px;
  --gutter: 16px;
  --shade: 0.055em;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --board-shadow: 0 14px 28px -12px rgba(17, 17, 17, .45), 0 3px 6px -2px rgba(17, 17, 17, .25);
  --enamel: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='260'%3E%3Cfilter id='b'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.0048 .2' numOctaves='3' seed='5' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 .32 0 0 0 -.13'/%3E%3C/filter%3E%3Cfilter id='c'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.05' numOctaves='2' seed='9' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .07 0 0 0 0 .07 0 0 0 0 .07 9 0 0 0 -6.1'/%3E%3C/filter%3E%3Crect width='420' height='260' filter='url(%23b)'/%3E%3Crect width='420' height='260' filter='url(%23c)' opacity='.14'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--ink) var(--iron-mid); }
body {
  margin: 0;
  color: var(--ink);
  font: 400 17px/1.55 var(--body);
  caret-color: var(--red);
  /* galvanised corrugated iron: ridges + spangle + nail rows (tile), mottling, sheet seams, rust bloom */
  background-color: var(--iron-mid);
  background-image:
    repeating-linear-gradient(90deg, rgba(0,0,0,0) 0 758px, rgba(17,17,17,.22) 758px 760px, rgba(255,255,255,.35) 760px 762px, rgba(0,0,0,0) 762px 1520px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='300'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' x2='1'%3E%3Cstop offset='0' stop-color='%239CA2A7'/%3E%3Cstop offset='.24' stop-color='%23C8CDD1'/%3E%3Cstop offset='.43' stop-color='%23EEF0F1'/%3E%3Cstop offset='.56' stop-color='%23D2D6D9'/%3E%3Cstop offset='.82' stop-color='%23A6ACB1'/%3E%3Cstop offset='1' stop-color='%239CA2A7'/%3E%3C/linearGradient%3E%3Cfilter id='s'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .28 0 0 0 0 .3 0 0 0 0 .32 0 0 0 .5 -.12'/%3E%3C/filter%3E%3C/defs%3E%3Crect width='40' height='300' fill='url(%23g)'/%3E%3Crect width='40' height='300' filter='url(%23s)'/%3E%3Ccircle cx='17' cy='16' r='2.4' fill='%23767C83'/%3E%3Ccircle cx='16.6' cy='15.4' r='1.2' fill='%23F1F3F4'/%3E%3C/svg%3E");
}
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 2px; }
p { margin: 0 0 14px; }
strong, b { font-weight: 800; }
.nowrap { white-space: nowrap; }
.ico { width: 1.1em; height: 1.1em; flex-shrink: 0; }
[hidden] { display: none !important; }

/* ---------- lettering ---------- */
.sign-title, .sign-h2, .sign-h3, .close-sign {
  font-family: var(--sign);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.02;
  text-wrap: balance;
  margin: 0 0 16px;
}
.sign-title {
  font-size: clamp(2.35rem, 10.5vw, 4.4rem);
  text-shadow: var(--shade) var(--shade) 0 var(--red);
}
.sign-h2 {
  font-size: clamp(1.9rem, 7.4vw, 3rem);
  text-shadow: 0.05em 0.05em 0 var(--paint-white);
  margin-top: 0;
}
.sign-h3 { font-size: clamp(1.25rem, 4.8vw, 1.6rem); }
.script {
  font-family: var(--script);
  font-weight: 400;
  color: var(--red);
  font-size: 1.22em;
  letter-spacing: 0;
  text-shadow: 0.04em 0.04em 0 var(--ink);
  display: inline-block;
  padding: 0 .08em;
}
.lede { font-size: 18px; max-width: 60ch; }

/* ---------- boards: enamel paint on plywood, screwed to the wall ---------- */
.board {
  position: relative; isolation: isolate;
  border-radius: 3px;
  padding: 30px 22px 26px;
  --paint: var(--paint-white);
}
.board::after { /* the painted plywood itself: wobbly hand-cut edge, brush grain, chips, cast shadow */
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 3px;
  background-color: var(--paint);
  background-image: var(--enamel);
  background-size: 100% 100%;
  filter: url(#board-edge);
}
.board::before { /* four drawn screws, turned at different angles */
  content: ""; position: absolute; inset: 7px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14'%3E%3Ccircle cx='7' cy='7' r='5.6' fill='%23C9CDD0' stroke='%23585E64' stroke-width='1.1'/%3E%3Cpath d='M4.3 7h5.4M7 4.3v5.4' stroke='%23464C52' stroke-width='1.4' stroke-linecap='round' transform='rotate(24 7 7)'/%3E%3C/svg%3E") 0 0/13px no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14'%3E%3Ccircle cx='7' cy='7' r='5.6' fill='%23C9CDD0' stroke='%23585E64' stroke-width='1.1'/%3E%3Cpath d='M4.3 7h5.4M7 4.3v5.4' stroke='%23464C52' stroke-width='1.4' stroke-linecap='round' transform='rotate(-37 7 7)'/%3E%3C/svg%3E") 100% 0/13px no-repeat,
              url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14'%3E%3Ccircle cx='7' cy='7' r='5.6' fill='%23C9CDD0' stroke='%23585E64' stroke-width='1.1'/%3E%3Cpath d='M4.3 7h5.4M7 4.3v5.4' stroke='%23464C52' stroke-width='1.4' stroke-linecap='round' transform='rotate(-37 7 7)'/%3E%3C/svg%3E") 0 100%/13px no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14'%3E%3Ccircle cx='7' cy='7' r='5.6' fill='%23C9CDD0' stroke='%23585E64' stroke-width='1.1'/%3E%3Cpath d='M4.3 7h5.4M7 4.3v5.4' stroke='%23464C52' stroke-width='1.4' stroke-linecap='round' transform='rotate(24 7 7)'/%3E%3C/svg%3E") 100% 100%/13px no-repeat;
}
.board--yellow { --paint: var(--yellow); }
.board--blue   { --paint: var(--blue); color: var(--paint-white); }
.board--red    { --paint: var(--red);  color: var(--paint-white); }
.board--white  { --paint: var(--paint-white); }

/* brush-roughened sign lettering */
.sign-title, .sign-h2, .close-sign, .brand-word, .plate-letter, .price-r, .pain-turn, .steps li::before { filter: url(#brush); }
.sign-title { transform: rotate(-.6deg); transform-origin: left center; }
.pre { display: inline; }
.ico.flip { transform: scaleX(-1); }

/* ---------- planks (primary action buttons) ---------- */
.plank {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  width: 100%; min-height: 64px;
  padding: 16px 20px;
  border: 0; border-radius: 3px;
  background: var(--ink) var(--enamel) 0 0/100% 100%; color: var(--paint-white);
  font: 400 16px/1.2 var(--sign); letter-spacing: .01em; text-align: left; text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 16px -8px rgba(17,17,17,.6);
  transition: transform .18s var(--ease-out), box-shadow .18s var(--ease-out);
}
.plank::before { /* the paint sweep */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--red);
  clip-path: inset(0 100% 0 0);
  transition: clip-path .45s var(--ease-out);
}
@media (hover: hover) {
  .plank:hover { transform: translateY(-2px); box-shadow: 0 12px 20px -8px rgba(17,17,17,.6); }
  .plank:hover::before { clip-path: inset(0 0 0 0); }
  .opt:hover { transform: translateY(-1px); }
  .opt:hover::before { clip-path: inset(0 96% 0 0); }
  }
.plank.is-picked::before { clip-path: inset(0 0 0 0); }
.plank .ico { width: 24px; height: 24px; }
.plank span { filter: url(#brush); }
.planks .plank:nth-child(1) { transform: rotate(-.6deg); }
.planks .plank:nth-child(2) { transform: rotate(.5deg); }
.plank--light { background: var(--paint-white) var(--enamel); color: var(--ink); }
.plank--light::before { background: var(--yellow); }
.planks { display: grid; gap: 10px; }

/* ---------- landing layout ---------- */
#landing, #app { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); overflow-x: clip; }
.wall-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0 14px; }
.brand { display: inline-flex; align-items: baseline; gap: 6px; text-decoration: none; }
.brand-word { font-family: var(--sign); font-size: 22px; text-shadow: 2px 2px 0 var(--yellow); }
.brand-dna { font-family: var(--sign); font-size: 15px; background: var(--red); color: var(--paint-white); padding: 3px 7px 1px; border-radius: 4px; }
.made-in { display: inline-flex; align-items: center; gap: 8px; font: 800 13px/1 var(--body); background: var(--paint-white) var(--enamel); padding: 8px 11px; border-radius: 2px; transform: rotate(1.2deg); box-shadow: 0 3px 0 #5A4128, 0 8px 12px -6px rgba(0,0,0,.4); }
.flag { width: 21px; height: 14px; border-radius: 2px; }

.hero { display: grid; gap: 18px; padding-bottom: 8px; }
.hero-board { padding: 34px 22px 24px; }
.hero-sub { font-size: 18px; max-width: 46ch; margin-bottom: 22px; }
.hero-q { margin-top: 4px; }
.hero-q-label { font: 800 17px/1.3 var(--body); margin-bottom: 12px; }
.hero-meta { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px 16px; font: 600 14px/1.2 var(--body); color: var(--ink-2); }
.hero-meta li { display: inline-flex; align-items: center; gap: 6px; }
.hero-preview { margin: 0; }
.hero-preview figcaption { font-size: 13px; color: var(--ink-2); text-align: center; margin-top: 4px; }

section { padding: 30px 0; }
/* gene wall */
.gene-wall { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.plate {
  position: relative; aspect-ratio: 1 / 1.08;
  border: 0; border-radius: 6px; cursor: pointer;
  background: var(--g) var(--enamel); color: var(--gi);
  display: grid; place-items: center; align-content: center; gap: 2px;
  box-shadow: var(--board-shadow);
  transition: transform .2s var(--ease-out);
}
.plate[aria-pressed="true"] { transform: translateY(-3px); box-shadow: 0 0 0 4px var(--ink), var(--board-shadow); }
.plate-letter { font-family: var(--sign); font-size: clamp(3rem, 15vw, 5rem); line-height: .9; text-shadow: 0.05em 0.05em 0 rgba(17,17,17,.35); }
.plate-name { font: 800 13px/1 var(--body); letter-spacing: .06em; text-transform: uppercase; }
.gene-detail { margin-top: 14px; }
.gene-detail .board { padding: 22px; }
.gene-detail h3 { font-family: var(--sign); font-weight: 400; font-size: 22px; margin: 0 0 6px; }
.gene-hint { font-size: 14px; color: var(--ink-2); margin-top: 10px; }

/* pain */
.board--blue .sign-h2.on-blue { color: var(--paint-white); text-shadow: 0.05em 0.05em 0 var(--ink); }
.struck { list-style: none; padding: 0; margin: 6px 0 22px; display: grid; gap: 12px; }
.struck li {
  text-wrap: pretty;
  font: 800 clamp(1.05rem, 4.6vw, 1.35rem)/1.45 var(--body);
  text-decoration: line-through; text-decoration-color: var(--red); text-decoration-thickness: .09em; text-decoration-skip-ink: none;
}
.pain-turn { font: 400 clamp(1.6rem, 7vw, 2.4rem)/1.1 var(--sign); margin: 4px 0 12px; }
.pain-turn .script { color: var(--yellow); }
.pain-copy { max-width: 62ch; color: #E8EEF8; }
.rp-open { position: relative; max-width: 440px; margin: 0 auto; background: var(--paint-white); border-radius: 3px; padding: 26px 24px 22px; transform: rotate(-1.2deg); box-shadow: 0 20px 34px -16px rgba(17,17,17,.55), 0 2px 5px rgba(17,17,17,.2); font-size: 15px; }
.rp-open-head { display: flex; justify-content: space-between; gap: 10px; font: 800 11px/1.2 var(--body); letter-spacing: .1em; text-transform: uppercase; border-bottom: 2px solid var(--ink); padding-bottom: 8px; margin-bottom: 14px; }
.rp-open h4 { font-family: var(--sign); font-weight: 400; font-size: 24px; line-height: 1.05; margin: 0 0 10px; }
.rp-open h5 { font: 800 15px/1.3 var(--body); margin: 14px 0 6px; }
.rp-open ol { padding-left: 20px; margin: 0 0 10px; }
.rp-open li { margin-bottom: 4px; }
.rp-open-sum { font-family: var(--sign); font-size: 18px; line-height: 1.15; background: var(--ink); color: var(--yellow); padding: 12px; border-radius: 3px; }
.rp-open-more { font-size: 13px; color: var(--ink-2); margin: 0; }
.rp-open .rp-sample { font-size: 11px; right: 14px; bottom: 12px; }
.offer-preview figcaption { font-size: 13px; text-align: center; margin-top: 10px; }

/* offer */
.offer-grid { display: grid; gap: 16px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 32px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7' fill='none' stroke='%23F7C600' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/15px no-repeat;
}
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin: -4px 0 16px; }
.price-r { font-family: var(--sign); font-size: 3.4rem; line-height: 1; color: var(--red); text-shadow: 0.05em 0.05em 0 var(--ink); font-variant-numeric: tabular-nums; }
.price-note { font: 600 14px/1.3 var(--body); }
.guarantee { display: inline-flex; align-items: center; gap: 8px; margin: 16px 0 0; font: 800 14px/1.2 var(--body); background: var(--ink); color: var(--yellow); padding: 8px 12px; border-radius: 999px; }
.offer-preview { margin: 18px 0 0; }

/* profiles */
.profile-rail { display: grid; grid-auto-flow: column; grid-auto-columns: min(82%, 340px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 18px; margin-top: 10px; overscroll-behavior-x: contain; }
.profile-rail::-webkit-scrollbar { height: 8px; }
.profile-rail::-webkit-scrollbar-thumb { background: var(--ink); border-radius: 8px; }
.profile-card { scroll-snap-align: start; --paint: var(--g); color: var(--gi); }
.profile-card .duo { display: flex; gap: 6px; margin-bottom: 12px; }
.duo span { font-family: var(--sign); width: 44px; height: 44px; display: grid; place-items: center; border-radius: 5px; font-size: 24px; background: var(--d); color: var(--di); box-shadow: 0 2px 0 rgba(17,17,17,.25); }
.profile-card h3 { font-family: var(--sign); font-weight: 400; font-size: 24px; line-height: 1.05; margin: 0 0 8px; }
.profile-card p { margin-bottom: 10px; }
.profile-card .fits { font: 600 14px/1.4 var(--body); }

/* steps */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 10px 0 0; display: grid; gap: 14px; }
.how-board { padding: 22px 20px; }
.steps li { counter-increment: s; position: relative; padding: 12px 0 12px 64px; min-height: 58px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--sign); font-size: 20px; background: var(--yellow); color: var(--ink); box-shadow: inset 0 0 0 3px var(--ink);
}

/* faq */
.faq-board { padding: 8px 22px; }
.faq details { border-bottom: 2px dashed rgba(17,17,17,.2); }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative; font: 800 17px/1.3 var(--body); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 0; top: 50%; width: 22px; height: 22px; transform: translateY(-50%); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' stroke='%23E2231A' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.faq details[open] summary::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14' stroke='%23E2231A' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.faq details p { padding-bottom: 16px; max-width: 65ch; }

/* close */
.close .board { text-align: center; padding: 40px 22px 30px; }
.close-sign { font-size: clamp(2.1rem, 9vw, 3.6rem); color: var(--paint-white); text-shadow: var(--shade) var(--shade) 0 var(--ink); }
.close-sign .script { color: var(--yellow); }
.close .plank { max-width: 420px; margin: 8px auto 0; }
.close-meta { margin: 14px 0 0; font: 600 14px/1.3 var(--body); color: #FFE3E1; }

.site-footer { max-width: 1120px; margin: 0 auto; padding: 10px var(--gutter) 40px; text-align: center; font-size: 13px; color: var(--ink); }
.site-footer p { max-width: 70ch; margin: 0 auto 8px; }

/* ==========================================================
   Report preview: three fanned pages (shared by landing + paywall)
   ========================================================== */
.fan { position: relative; height: clamp(250px, 72vw, 400px); margin: 6px auto 0; max-width: 520px; }
.fan--wide { max-width: 560px; }
.rp {
  position: absolute; top: 4%; left: 50%;
  width: 47%; aspect-ratio: 210 / 297;
  background: var(--paint-white); border-radius: 3px;
  box-shadow: 0 18px 30px -14px rgba(17,17,17,.55), 0 2px 5px rgba(17,17,17,.2);
  padding: 7% 7% 6%;
  font-size: clamp(5.5px, 1.6vw, 8px); line-height: 1.45; overflow: hidden;
  transition: transform .5s var(--ease-out);
}
.rp-back  { transform: translateX(-100%) rotate(-7deg); }
.rp-mid   { transform: translateX(-50%) translateY(2%) rotate(1.5deg); }
.rp-front { transform: translateX(-4%) translateY(8%) rotate(6deg); }
.fan:hover .rp-back { transform: translateX(-104%) rotate(-11deg); }
.fan:hover .rp-front { transform: translateX(0%) translateY(8%) rotate(10deg); }
.rp-cover { background-color: var(--yellow); display: flex; flex-direction: column; }
.rp-cover .rp-brand { font-family: var(--sign); font-size: 2.1em; line-height: 1; text-shadow: .06em .06em 0 var(--red); }
.rp-cover .rp-kind { font: 800 1.15em/1 var(--body); letter-spacing: .14em; text-transform: uppercase; margin-top: .6em; }
.rp-cover .rp-name { font-family: var(--script); color: var(--red); font-size: 3.4em; line-height: 1; margin-top: auto; text-shadow: .04em .04em 0 var(--ink); }
.rp-cover .rp-pair { font-family: var(--sign); font-size: 1.7em; line-height: 1.05; margin-top: .3em; }
.rp-cover .rp-letters { display: flex; gap: .35em; margin-top: 1.1em; }
.rp-letters i { box-shadow: inset 0 0 0 .12em var(--ink); font-style: normal; font-family: var(--sign); width: 2.4em; height: 2.4em; display: grid; place-items: center; border-radius: .3em; font-size: 1.2em; }
.rp h4 { font-family: var(--sign); font-weight: 400; font-size: 1.75em; line-height: 1.05; margin: 0 0 .6em; }
.rp h5 { font: 800 1.2em/1.2 var(--body); margin: 1em 0 .3em; }
.rp p { margin: 0 0 .5em; }
.rp .blur { filter: blur(2.4px); user-select: none; }
.rp-genes { display: grid; grid-template-columns: repeat(6, 1fr); gap: .35em; margin: .4em 0 .9em; }
.rp-genes i { font-style: normal; font-family: var(--sign); aspect-ratio: 1; display: grid; place-items: center; border-radius: .3em; font-size: 1.5em; position: relative; }
.rp-genes i.drain { background: #D4D4CF !important; color: var(--ink) !important; }
.rp-genes i.power { box-shadow: 0 0 0 .18em var(--ink); }
.rp-sample { position: absolute; right: 6%; bottom: 4%; font: 800 .95em/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--red); border: .15em solid var(--red); padding: .3em .5em; transform: rotate(-8deg); border-radius: .3em; }

/* ==========================================================
   Quiz app
   ========================================================== */
#app { max-width: 680px; padding-top: 8px; padding-bottom: 30px; }
.qhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 6px 0 12px; }
.qback { display: inline-flex; align-items: center; gap: 6px; background: var(--paint-white) var(--enamel); border: 0; border-radius: 2px; padding: 9px 14px; font: 800 14px/1 var(--body); cursor: pointer; box-shadow: 0 3px 0 #5A4128, 0 8px 12px -6px rgba(0,0,0,.4); color: var(--ink); transform: rotate(-1deg); }
.qback:disabled { visibility: hidden; }
.parts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 14px; }
.parts span { height: 10px; border-radius: 3px; background: rgba(17,17,17,.18); overflow: hidden; position: relative; }
.parts span i { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .35s var(--ease-out); }
.part-label { font-family: var(--sign); font-size: 15px; background: var(--ink); color: var(--yellow); padding: 6px 10px 4px; border-radius: 5px; }
.qboard { padding: 30px 20px 22px; }
.qtitle { font: 800 clamp(1.35rem, 5.6vw, 1.8rem)/1.25 var(--body); margin: 0 0 20px; text-wrap: balance; }
.qhint { font-size: 15px; color: var(--ink-2); margin: -10px 0 16px; }
.opts { display: grid; gap: 10px; }
.opt {
  position: relative; overflow: hidden; isolation: isolate;
  width: 100%; min-height: 58px; text-align: left; cursor: pointer;
  padding: 14px 18px; border-radius: 6px;
  background: var(--paint-white); color: var(--ink);
  border: 3px solid var(--ink);
  font: 700 17px/1.3 var(--body);
  transition: transform .15s var(--ease-out);
}
.opt::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--yellow); clip-path: inset(0 100% 0 0); transition: clip-path .32s var(--ease-out); }
.opt.on::before { clip-path: inset(0 0 0 0); }
.opt-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opt-row .opt { min-height: 96px; text-align: center; display: grid; place-items: center; }
.scale .opt { text-align: center; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 11px 14px; border-radius: 999px; border: 3px solid var(--ink); background: var(--paint-white); font: 700 15px/1.1 var(--body); cursor: pointer; color: var(--ink); }
.chip.on { background: var(--ink); color: var(--yellow); }
.chip:disabled { opacity: .4; cursor: not-allowed; }
.check .opt { padding-left: 52px; }
.check .opt::after { content: ""; position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; border-radius: 4px; box-shadow: inset 0 0 0 3px var(--ink); background: var(--paint-white); }
.check .opt.on::after { background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7' fill='none' stroke='%23F7C600' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.qnext { margin-top: 16px; }
.counter { font: 600 14px/1 var(--body); color: var(--ink-2); margin-top: 12px; }

/* interlude */
.interlude { text-align: center; }
.interlude .sign-h2 { margin-bottom: 10px; }
.decode { display: flex; justify-content: center; gap: 6px; margin: 18px 0; }
.decode i { font-style: normal; font-family: var(--sign); width: 46px; height: 52px; display: grid; place-items: center; border-radius: 5px; font-size: 28px; background: var(--g); color: var(--gi); opacity: var(--o, 1); transform: translateY(var(--y, 0)); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }

/* forms */
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 800; margin-bottom: 6px; }
.field input { width: 100%; padding: 15px 16px; font: 17px var(--body); border-radius: 6px; border: 3px solid var(--ink); background: #fff; color: var(--ink); }
.field input::placeholder { color: #6b6b67; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); margin: 6px 0 18px; }
.consent input { width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0; accent-color: var(--ink); }
.error { color: #A3150F; font-weight: 700; font-size: 14px; min-height: 20px; }

/* ==========================================================
   Results + report
   ========================================================== */
.res-hero { text-align: left; --paint: var(--g); color: var(--gi); }
.res-hero .sign-title { color: inherit; font-size: clamp(2.2rem, 10vw, 3.6rem); text-shadow: var(--shade) var(--shade) 0 rgba(17,17,17,.35); }
.res-hero .line { font-size: 19px; font-weight: 600; margin: 0; }
.stack { display: grid; gap: 16px; margin-top: 16px; }
.genemap { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin: 20px 0 14px; }
.gm { position: relative; border-radius: 6px; padding: 10px 2px 8px; text-align: center; background: var(--g); color: var(--gi); }
.gm b { display: block; font-family: var(--sign); font-weight: 400; font-size: clamp(1.6rem, 7vw, 2.4rem); line-height: 1; }
.gm small { display: block; font: 800 9.5px/1.1 var(--body); text-transform: uppercase; letter-spacing: .04em; margin-top: 4px; }
.gm.power { box-shadow: 0 0 0 3px var(--ink); }
.gm.power::before { content: "POWER"; position: absolute; top: -9px; left: 50%; transform: translateX(-50%) rotate(-4deg); background: var(--ink); color: var(--yellow); font: 800 9px/1 var(--body); letter-spacing: .08em; padding: 3px 5px; border-radius: 3px; }
.gm.drain { background: #D4D4CF; color: var(--ink); }
.gm.drain::before { content: "DRAIN"; position: absolute; top: -9px; left: 50%; transform: translateX(-50%) rotate(3deg); background: #8E8E88; color: #fff; font: 800 9px/1 var(--body); letter-spacing: .08em; padding: 3px 5px; border-radius: 3px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font: 600 13px/1.2 var(--body); color: var(--ink-2); }
.duo-desc { display: grid; gap: 12px; }
.duo-desc h3, .stack h3 { font-family: var(--sign); font-weight: 400; font-size: 21px; line-height: 1.1; margin: 0 0 8px; }
.gene-tag { display: inline-block; font-family: var(--sign); font-size: 14px; padding: 4px 8px 2px; border-radius: 4px; background: var(--g); color: var(--gi); margin-right: 6px; vertical-align: middle; }
.match-board h2 { font-family: var(--sign); font-weight: 400; font-size: clamp(1.6rem, 6.6vw, 2.2rem); line-height: 1.05; margin: 0 0 10px; }
.sliders { display: grid; gap: 10px; }
.slider { display: grid; grid-template-columns: 1fr 2fr 1fr; align-items: center; gap: 8px; font: 700 13px/1.1 var(--body); }
.slider span:last-child { text-align: right; }
.slider .track { position: relative; height: 10px; border-radius: 5px; background: rgba(17,17,17,.15); }
.slider .dot { position: absolute; top: 50%; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 3px var(--yellow); transform: translate(-50%, -50%); }
.paywall { --paint: var(--ink); color: var(--paint-white); }
.paywall .sign-h2 { color: var(--yellow); text-shadow: 0.05em 0.05em 0 var(--red); }
.paywall .ticks li::before { background-color: var(--yellow); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7' fill='none' stroke='%23111111' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.paywall .price-r { color: var(--yellow); text-shadow: 0.05em 0.05em 0 var(--red); }
.paywall .plank { background: var(--yellow); color: var(--ink); margin-top: 6px; }
.paywall .plank::before { background: var(--paint-white); }
.paywall .guarantee { background: var(--paint-white); color: var(--ink); }
.linkbtn { background: none; border: 0; color: inherit; text-decoration: underline; text-underline-offset: 3px; font: 600 15px var(--body); cursor: pointer; padding: 12px 0 0; }
.code-row { display: flex; gap: 8px; margin-top: 10px; }
.code-row input { flex: 1; min-width: 0; padding: 13px 14px; border-radius: 6px; border: 0; font: 16px var(--body); }
.code-row button { border: 0; border-radius: 6px; padding: 0 16px; font: 800 15px var(--body); background: var(--yellow); color: var(--ink); cursor: pointer; }
.row-actions { display: grid; gap: 10px; margin: 6px 0; }
.ghost { background: var(--paint-white) var(--enamel); color: var(--ink); border: 0; border-radius: 3px; padding: 16px; font: 400 16px var(--sign); cursor: pointer; width: 100%; box-shadow: 0 4px 0 #5A4128, 0 10px 16px -8px rgba(0,0,0,.45); }

/* report pages */
.page { padding: 28px 22px; }
.page + .page { margin-top: 16px; }
.page h2 { font-family: var(--sign); font-weight: 400; font-size: clamp(1.5rem, 6vw, 2rem); line-height: 1.05; margin: 0 0 14px; }
.page h3 { font: 800 18px/1.25 var(--body); margin: 18px 0 6px; }
.page ul, .page ol { padding-left: 22px; margin: 0 0 12px; }
.page li { margin-bottom: 6px; }
.cover { --paint: var(--yellow); min-height: 340px; display: flex; flex-direction: column; }
.cover .rp-brand { font-family: var(--sign); font-size: 34px; text-shadow: 2px 2px 0 var(--red); }
.cover .rp-name { font-family: var(--script); color: var(--red); font-size: 64px; line-height: 1; margin-top: auto; text-shadow: 2px 2px 0 var(--ink); }
.cover .rp-pair { font-family: var(--sign); font-size: 28px; line-height: 1.05; margin-top: 6px; }
.why { border-radius: 6px; padding: 16px; margin-bottom: 12px; background: #F1EFE7; }
.why h3 { margin-top: 0; }
.why .reasons { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.why .reasons span { font: 700 13px/1 var(--body); background: var(--ink); color: var(--paint-white); padding: 6px 9px; border-radius: 999px; }
.thousand { font-family: var(--sign); font-size: clamp(1.4rem, 6vw, 2rem); line-height: 1.1; background: var(--ink); color: var(--yellow); padding: 16px; border-radius: 6px; margin: 4px 0 12px; }
.today { background: var(--yellow); padding: 16px; border-radius: 6px; font-weight: 600; }
.week { padding: 12px 0; border-top: 2px dashed rgba(17,17,17,.2); }
.week:first-of-type { border-top: 0; }
.script-box { background: #F1EFE7; border-radius: 6px; padding: 14px 16px; white-space: pre-wrap; }
.tracker { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.tracker th, .tracker td { border: 2px solid var(--ink); padding: 8px; text-align: left; }
.tracker th { background: var(--yellow); }
.small { font-size: 14px; }
.muted { color: var(--ink-2); }

/* ---------- paint-on motion (content visible by default; JS opts in) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .sign-title .script { animation: paint-on .9s var(--ease-out) .25s both; }
  .js .gene-wall.will-paint .plate { clip-path: inset(0 0 100% 0); }
  .js .gene-wall.in .plate { animation: paint-down .7s var(--ease-out) both; animation-delay: calc(var(--i) * 90ms); }
}
@keyframes paint-on { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes paint-down { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }

/* ---------- desktop ---------- */
@media (min-width: 900px) {
  :root { --gutter: 28px; }
  .hero { grid-template-columns: 1.12fr .88fr; align-items: center; gap: 28px; }
  .hero-board { padding: 46px 40px 34px; }
  .planks { grid-template-columns: 1fr 1fr; }
  .gene-wall { grid-template-columns: repeat(6, 1fr); }
  .offer-grid { grid-template-columns: 1fr 1.15fr; align-items: start; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps li { padding: 64px 12px 8px 0; }
  .steps li::before { left: 0; top: 6px; transform: none; }
  section { padding: 48px 0; }
  .pain .board { padding: 44px 40px 36px; }
  .pain-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
  .pain-grid .struck { margin-bottom: 0; }
  .pain-turn { font-size: 2.8rem; }
  .profile-rail { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; }
  .fan { height: 440px; }
  .rp { font-size: 8.2px; width: 54%; }
  .rp-back { transform: translateX(-96%) rotate(-8deg); }
  .rp-front { transform: translateX(-6%) translateY(8%) rotate(7deg); }
}

/* ---------- print: one report page per sheet ---------- */
@media print {
  body { background: #fff; font-size: 11pt; }
  #landing, .site-footer, .row-actions, .no-print, .qhead { display: none !important; }
  #app { max-width: none; padding: 0; }
  .board { box-shadow: none; }
  .board::before { display: none; }
  .board::after { filter: none; }
  .page { break-before: page; border: 0; }
  .page:first-child { break-before: auto; }
  .cover, .gm, .thousand, .today, .tracker th, .res-hero { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
