/* Vibe Or Bye — /testler
   Tokens inherited from the homepage (/index.html) so the two never drift.
   Single warm light theme on purpose: the homepage commits to it, and a dark
   /testler would break identity as users move between the two. */

/* Static 700 only (33 KB across both subsets). The variable cut is 60 KB and we
   never need a second weight: display contrast comes from size and tracking.
   Never set font-weight above 700 on .display text or browsers synthesise it. */
@font-face {
  font-family: 'Bricolage';
  src: url('/assets/testler/bricolage.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Bricolage';
  src: url('/assets/testler/bricolage-ext.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --coral: #ff7a59;
  --rose: #e95776;
  --mint: #40c4b4;
  --ink: #2b2422;
  --muted: #7a6f6b;
  --faint: #9a8f8a;
  --bg: #fff8f5;
  --card: #ffffff;
  --line: #f0e6e1;
  --line-2: #e6d8d1;

  --display: 'Bricolage', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --shadow: 0 6px 20px rgba(190, 90, 60, .07);
  --shadow-up: 0 14px 34px rgba(190, 90, 60, .14);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* grid/flex components ignore the plain hidden attribute without this */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: rgba(255, 122, 89, .22); }

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 0 0 10px 0;
}
.skip:focus { left: 0; }

.wrap { width: min(1080px, 100% - 44px); margin-inline: auto; }
.wrap.narrow { width: min(720px, 100% - 44px); }

h1, h2, h3, .tcard-title, .res-name {
  font-family: var(--display);
  letter-spacing: -.022em;
  text-wrap: balance;
  font-weight: 700;
}

/* ---------- top bar ---------- */

.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 248, 245, .88);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; gap: 9px; font-weight: 700; letter-spacing: -.015em; }
.brand img { border-radius: 8px; }
.topnav { display: flex; align-items: center; gap: 6px; }
/* min-height 44px on every control: below that, thumbs miss on phones. */
.topnav > a {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 8px 12px; border-radius: 10px; font-weight: 600; font-size: 15px; color: var(--muted);
  transition: color .16s, background .16s;
}
.topnav > a:hover { color: var(--ink); background: rgba(255, 122, 89, .08); }
.topnav > a.on { color: var(--ink); }
.topnav > a.topcta {
  background: var(--ink); color: #fff; padding: 9px 15px;
}
.topnav > a.topcta:hover { background: #3d3330; color: #fff; }
@media (max-width: 520px) {
  .topnav > a.topcta { font-size: 14px; padding: 8px 12px; }
  .brand span { display: none; }
}

/* ---------- hub hero ---------- */

.hero {
  position: relative;
  background: linear-gradient(135deg, #ff8a65 0%, #ff7a59 42%, #e95776 100%);
  color: #fff;
  padding: 64px 0 78px;
  text-align: center;
  overflow: hidden;
}
/* Soft glows, not discs: a flat-fill circle clipped by overflow reads as a
   smudge with a hard edge. Radial falloff keeps them as light. */
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
}
.hero::before {
  left: -150px; bottom: -210px; width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(64, 196, 180, .30), rgba(64, 196, 180, 0) 68%);
}
.hero::after {
  right: -170px; top: -190px; width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(255, 255, 255, .20), rgba(255, 255, 255, 0) 68%);
}
.hero .wrap { position: relative; z-index: 1; }
.kicker {
  text-transform: uppercase; letter-spacing: .13em; font-size: 12px; font-weight: 700;
  opacity: .85; margin-bottom: 14px;
}
.hero h1 { font-size: clamp(38px, 8.4vw, 62px); line-height: 1.03; letter-spacing: -.032em; }
.hero h1 em { font-style: normal; color: #fff5b8; }
.hero-sub {
  max-width: 34rem; margin: 18px auto 0; font-size: clamp(16px, 3.9vw, 18px);
  opacity: .95;
}
.hero-sub strong { font-weight: 700; }
.hero-chips {
  list-style: none; display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; margin-top: 26px;
}
.hero-chips li {
  background: rgba(255, 255, 255, .17); border: 1px solid rgba(255, 255, 255, .26);
  padding: 7px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
}
/* ---------- sections ---------- */

.section { padding: 62px 0; }
.section-alt { background: linear-gradient(180deg, #fff3ee, #fff8f5); }
.sec-head { margin-bottom: 28px; }
.sec-head h2 { font-size: clamp(25px, 5.4vw, 34px); }
.sec-sub { color: var(--muted); margin-top: 7px; max-width: 44rem; }

.prose h2 { font-size: clamp(24px, 5vw, 31px); margin-bottom: 14px; }
.prose h3 { font-size: 19px; margin: 30px 0 8px; }
.prose p { color: var(--muted); margin-bottom: 14px; }

/* ---------- filter chips ---------- */

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chip {
  padding: 8px 15px; border-radius: 999px; font-size: 14px; font-weight: 600;
  border: 1px solid var(--line-2); color: var(--muted); background: var(--card);
  transition: all .16s var(--ease);
}
.chip:hover { border-color: var(--coral); color: var(--ink); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- test cards ---------- */

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }

.tcard {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 15px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 17px 18px; box-shadow: var(--shadow);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s;
}
.tcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-up); border-color: #f3d9cf; }
.tcard:active { transform: translateY(-1px); }
.tcard-emoji {
  width: 50px; height: 50px; flex: none; border-radius: 14px; font-size: 25px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #fff1ec, #ffe3dc);
}
.tcard-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tcard-title { font-size: 17.5px; font-weight: 700; letter-spacing: -.015em; }
/* Pinned to two lines so titles and meta rows align across the whole grid,
   whatever the description length. */
.tcard-line {
  font-size: 14px; color: var(--muted); line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 2.9em;
}
.tcard-sm .tcard-line { min-height: 0; }
.tcard-meta { font-size: 12.5px; color: var(--faint); display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.tcard-meta i { width: 3px; height: 3px; border-radius: 50%; background: currentColor; display: block; }
.tcard-go { color: var(--coral); width: 20px; height: 20px; transition: transform .18s var(--ease); }
.tcard-go svg { width: 100%; height: 100%; }
.tcard:hover .tcard-go { transform: translateX(3px); }
.tcard-sm { grid-template-columns: auto 1fr; }
.tcard.hide { display: none; }
.tcard.is-done { border-left: 3px solid var(--mint); }
.tcard-done { color: #1f8f83; font-weight: 800; }

/* ---------- style article pages ---------- */

.shero { background: var(--st); border-bottom: 3px solid var(--sa); padding: 30px 0 32px; }
.shero-eyebrow {
  text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 800;
  color: var(--sa); margin-bottom: 10px;
}
.shero h1 { font-size: clamp(31px, 6.6vw, 46px); line-height: 1.06; }
.shero-tagline { margin-top: 11px; font-size: clamp(16px, 3.9vw, 18px); color: #4a403c; max-width: 36rem; }

.lead-p { font-size: clamp(17px, 4vw, 19px); line-height: 1.6; margin-bottom: 26px; }
.prose h2 { margin-top: 34px; }
.prose h2:first-of-type { margin-top: 0; }

.steps { padding-left: 0; list-style: none; counter-reset: step; display: grid; gap: 11px; margin-bottom: 8px; }
.steps li {
  counter-increment: step; position: relative; padding-left: 40px;
  color: var(--muted); line-height: 1.55;
}
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 1px;
  width: 27px; height: 27px; border-radius: 50%; display: grid; place-items: center;
  background: var(--sa, var(--coral)); color: #fff; font-size: 13px; font-weight: 800;
}

.style-cta {
  background: var(--st); border: 1px solid var(--line); border-left: 4px solid var(--sa);
  border-radius: var(--r-md); padding: 20px 22px; margin: 32px 0;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.style-cta p { color: var(--ink); margin: 0; flex: 1 1 260px; font-size: 15.5px; }
.style-cta .btn-go { width: auto; max-width: none; flex: none; }

.linklist { list-style: none; display: grid; gap: 9px; }
.linklist li { color: var(--muted); font-size: 15px; line-height: 1.5; }
.linklist a { color: var(--coral); font-weight: 700; }
.linklist a:hover { text-decoration: underline; }

.pitem h3 a { color: inherit; }
.pitem h3 a:hover { color: var(--coral); }

/* ---------- partner-only tests (app CTA, not playable here) ---------- */

.partner {
  margin-top: 26px; background: var(--card); border: 1px dashed var(--line-2);
  border-radius: var(--r-md); padding: 22px;
}
.partner-head h3 { font-size: 18px; }
.partner-head p { color: var(--muted); font-size: 14.5px; margin-top: 5px; max-width: 46rem; }
.partner-list { list-style: none; display: grid; gap: 12px; margin: 18px 0; }
.partner-list li { display: grid; grid-template-columns: auto 1fr; gap: 13px; align-items: center; }
.partner-list li > span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.partner-list strong { font-size: 15.5px; }
.partner-list li span span { color: var(--muted); font-size: 14px; line-height: 1.45; }
.partner-emoji {
  width: 42px; height: 42px; flex: none; border-radius: 12px; font-size: 21px;
  display: grid; place-items: center; background: linear-gradient(135deg, #fff1ec, #ffe3dc);
}
.partner-cta {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--coral); font-weight: 700; font-size: 15px;
}
.partner-cta::after { content: " →"; white-space: pre; }
.partner-cta:hover { text-decoration: underline; }

/* ---------- five profiles list ---------- */

.plist { list-style: none; display: grid; gap: 10px; counter-reset: none; }
.pitem {
  display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start;
  background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--pa);
  border-radius: var(--r-sm); padding: 15px 17px;
}
.pdot {
  width: 26px; height: 26px; border-radius: 50%; background: var(--pt);
  border: 2px solid var(--pa); margin-top: 2px;
}
.pitem h3 { font-size: 17px; margin-bottom: 2px; }
.pitem p { color: var(--muted); font-size: 14.5px; line-height: 1.5; }

/* ---------- test page hero ---------- */

.thero { padding: 34px 0 8px; }
.crumbs { font-size: 13px; color: var(--faint); display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 22px; }
.crumbs a:hover { color: var(--coral); }
.thero-emoji {
  display: grid; place-items: center; width: 62px; height: 62px; font-size: 32px;
  border-radius: 18px; background: linear-gradient(135deg, #fff1ec, #ffe3dc); margin-bottom: 16px;
}
.thero h1 { font-size: clamp(31px, 6.6vw, 46px); line-height: 1.06; }
.thero-intro { color: var(--muted); margin-top: 12px; font-size: clamp(16px, 3.8vw, 17.5px); }
.thero-meta { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.thero-meta li {
  font-size: 13px; font-weight: 600; color: var(--muted);
  background: #fff; border: 1px solid var(--line-2); padding: 5px 12px; border-radius: 999px;
}

/* ---------- quiz ---------- */

.quiz-section { padding-top: 26px; }

/* Explicit start step. It buys the quiz a full screen on phones (the intro
   above it costs ~330px, which is two answer options) and an intentional tap
   beats dropping people straight into question one. */
.quiz-start { display: none; flex-direction: column; align-items: center; gap: 11px; }
.quiz-start.on { display: flex; }
.btn-go {
  background: linear-gradient(135deg, var(--coral), var(--rose)); color: #fff;
  font-size: 17px; padding: 16px 24px; min-height: 56px;
  width: 100%; max-width: 380px; /* full width on phones, not stretched on desktop */
  box-shadow: 0 10px 26px rgba(233, 87, 118, .26);
}
.btn-go:hover { filter: brightness(1.05); }
.quiz-start-note { text-align: center; font-size: 13.5px; color: var(--faint); }

.quiz {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 22px 22px 18px; box-shadow: var(--shadow);
}
.quiz:focus { outline: none; }
.quiz.pending { display: none; }
.qbar { height: 6px; border-radius: 999px; background: #f5e7e1; overflow: hidden; }
.qbar-fill {
  display: block; height: 100%; width: 10%; border-radius: 999px;
  background: linear-gradient(90deg, var(--coral), var(--rose));
  transition: width .34s var(--ease);
}
.qcount {
  font-size: 12.5px; font-weight: 700; color: var(--faint); margin-top: 10px;
  font-variant-numeric: tabular-nums; letter-spacing: .04em;
}

.q { border: 0; min-width: 0; padding: 0; margin: 16px 0 0; }
.q-text {
  display: block; width: 100%; padding: 0; float: none;
  font-size: clamp(19px, 4.4vw, 25px); line-height: 1.34; font-weight: 700;
  font-family: var(--display); letter-spacing: -.02em; text-wrap: balance;
  margin-bottom: 18px;
}
.q-opts { display: grid; gap: 9px; }

.opt {
  display: grid; grid-template-columns: auto 1fr; gap: 13px; align-items: center;
  text-align: left; width: 100%; min-height: 56px;
  padding: 13px 16px 13px 13px;
  background: #fffdfc; border: 1.5px solid var(--line-2); border-radius: 15px;
  font-size: 15.5px; line-height: 1.45; color: var(--ink);
  transition: border-color .16s, background .16s, transform .12s var(--ease);
}
.opt:hover { border-color: var(--coral); background: #fff6f2; }
.opt:active { transform: scale(.99); }
.opt-key {
  width: 30px; height: 30px; flex: none; border-radius: 9px;
  display: grid; place-items: center;
  background: #fff1ec; color: var(--coral);
  font-size: 13px; font-weight: 800; letter-spacing: .02em;
  transition: background .16s, color .16s;
}
.opt:hover .opt-key { background: var(--coral); color: #fff; }
.opt.picked { border-color: var(--coral); background: #fff1ec; }
.opt.picked .opt-key { background: var(--coral); color: #fff; }

/* Swipe tests: two answers, so they get equal weight side by side rather than
   a lettered list. Hover/selected tints follow the same cool->warm ramp the
   result bands use — it marks which end of the axis you picked, not which
   answer is better. */
.q-opts-2 { grid-template-columns: 1fr 1fr; gap: 11px; }
.opt-swipe {
  grid-template-columns: 1fr; place-items: center; text-align: center;
  min-height: 96px; padding: 16px 12px;
  font-family: var(--display); font-weight: 700; font-size: 16px; letter-spacing: -.01em;
  line-height: 1.25; hyphens: auto;
}
.opt-swipe:first-child:hover { border-color: #5f639a; background: #f3f3fa; }
.opt-swipe:last-child:hover { border-color: #d1492a; background: #fff4ef; }
.opt-swipe.picked:first-child { border-color: #5f639a; background: #eeeef8; color: #4a4e82; }
.opt-swipe.picked:last-child { border-color: #d1492a; background: #fdeee9; color: #b03d1f; }
@media (max-width: 380px) { .opt-swipe { font-size: 15px; min-height: 88px; } }

/* Swipe prompts are short phrases, so they can carry more size. */
.quiz-swipe .q-text { font-size: clamp(21px, 5.2vw, 28px); }

.qfoot {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.qback {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 14px; font-weight: 600; color: var(--muted); padding: 6px 2px;
}
.qback:hover:not(:disabled) { color: var(--coral); }
.qback:disabled { opacity: .35; cursor: default; }
.qhint { font-size: 13px; color: var(--faint); }

/* one question at a time, only once JS is running */
.quiz.js-on .q { display: none; }
.quiz.js-on .q.on { display: block; animation: qin .3s var(--ease); }
@keyframes qin { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }

.qloading { text-align: center; padding: 46px 0; color: var(--muted); }
.spinner {
  width: 30px; height: 30px; display: block; margin: 0 auto 14px;
  border: 3px solid #f2ddd5; border-top-color: var(--coral); border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.qerror {
  background: #fff2f2; border: 1px solid #f4cfcf; border-radius: var(--r-md);
  padding: 18px; text-align: center; color: #9d3f32;
}
.qerror .btn { margin-top: 12px; }

/* ---------- result ---------- */

.result {
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  background: var(--card); box-shadow: var(--shadow-up);
  animation: resin .45s var(--ease);
}
@keyframes resin { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.res-top {
  background: var(--res-tint, #fff1ec);
  border-bottom: 3px solid var(--res-accent, var(--coral));
  padding: 30px 24px 26px;
}
.res-eyebrow {
  text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 800;
  color: var(--res-accent, var(--coral)); margin-bottom: 10px;
}
.res-name { font-size: clamp(28px, 6.4vw, 42px); line-height: 1.06; letter-spacing: -.03em; }
.res-tagline { margin-top: 10px; font-size: clamp(15.5px, 3.8vw, 17px); color: #4a403c; }
.res-share-line { margin-top: 14px; font-size: 13px; font-weight: 700; color: var(--res-accent, var(--coral)); font-variant-numeric: tabular-nums; }

.res-body { padding: 24px; display: grid; gap: 26px; }
.res-summary { font-size: 16.5px; }
.res-flavour {
  font-size: 15.5px; color: var(--muted); border-left: 3px solid var(--res-accent, var(--coral));
  padding-left: 14px; margin-top: -14px;
}
.res-flavour:empty { display: none; }

.res-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.res-col { border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; }
.res-col h3 { font-size: 14px; margin-bottom: 10px; letter-spacing: 0; }
.res-col ul { list-style: none; display: grid; gap: 9px; }
.res-col li { font-size: 14.5px; color: var(--muted); line-height: 1.5; padding-left: 20px; position: relative; }
.res-col li::before { position: absolute; left: 0; top: 0; font-weight: 800; }
.res-good { background: #f3fbf9; border-color: #d6efe9; }
.res-good h3 { color: #1f8f83; }
.res-good li::before { content: "+"; color: #1f8f83; }
.res-watch { background: #fff8f4; border-color: #f4ded2; }
.res-watch h3 { color: #b0763f; }
.res-watch li::before { content: "!"; color: #b0763f; }
@media (max-width: 560px) { .res-cols { grid-template-columns: 1fr; } }

.res-bars h3, .res-second h3 { font-size: 14px; margin-bottom: 12px; }
.bar-row { display: grid; grid-template-columns: 1fr auto; gap: 10px 12px; align-items: center; margin-bottom: 9px; }
.bar-name { font-size: 14px; font-weight: 600; grid-column: 1; }
.bar-val { font-size: 13px; color: var(--faint); font-variant-numeric: tabular-nums; grid-column: 2; }
.bar-track { grid-column: 1 / -1; height: 8px; border-radius: 999px; background: #f5e7e1; overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: 999px; width: 0; transition: width .7s var(--ease); }
.bar-row.is-dom .bar-name { font-weight: 800; }

.res-second { background: #fbf7f5; border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; }
.res-second p { font-size: 14.5px; color: var(--muted); }
.res-second strong { color: var(--ink); }

.res-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 13px; font-weight: 700; font-size: 15px;
  transition: transform .14s var(--ease), background .16s, border-color .16s;
}
.btn:active { transform: scale(.98); }
.btn-line { border: 1.5px solid var(--line-2); color: var(--ink); background: #fff; }
.btn-line:hover { border-color: var(--coral); color: var(--coral); }

/* ---------- completed wall ---------- */

.wall {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 30px 24px; box-shadow: var(--shadow); text-align: center;
}
.wall-tick {
  display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 14px;
  border-radius: 50%; background: #e8f7f4; color: #1f8f83; font-size: 25px; font-weight: 800;
}
.wall h2 { font-size: clamp(23px, 5vw, 30px); }
.wall > p { color: var(--muted); margin: 8px auto 0; max-width: 34rem; }
.wall-actions {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 22px;
}
.wall-actions .btn-go { width: auto; max-width: none; }
.wall-next { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); text-align: left; }
.wall-next-h { font-weight: 700; font-size: 15px; margin-bottom: 12px; }

/* ---------- auth modal ---------- */

.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 18px; }
.modal-back { position: absolute; inset: 0; background: rgba(43, 36, 34, .55); backdrop-filter: blur(3px); }
.modal-card {
  position: relative; z-index: 1; width: min(420px, 100%);
  background: var(--card); border-radius: var(--r-lg); padding: 28px 24px 22px;
  box-shadow: 0 26px 60px rgba(80, 30, 20, .32);
  max-height: calc(100vh - 36px); overflow-y: auto;
  animation: modalin .26s var(--ease);
}
@keyframes modalin { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-x {
  position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border-radius: 12px;
  font-size: 26px; line-height: 1; color: var(--faint);
}
.modal-x:hover { background: #f7efec; color: var(--ink); }
.modal-card h2 { font-size: 23px; padding-right: 30px; }
.modal-sub { color: var(--muted); font-size: 14.5px; margin: 8px 0 20px; }

.gsi { display: flex; justify-content: center; min-height: 44px; }
.gsi-fallback { font-size: 13px; color: var(--faint); text-align: center; }

.modal-or {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
  margin: 18px 0; color: var(--faint); font-size: 13px;
}
.modal-or::before, .modal-or::after { content: ""; height: 1px; background: var(--line); }

.modal-card form { display: grid; gap: 9px; }
.modal-card label { font-size: 13.5px; font-weight: 700; }
.modal-card input {
  width: 100%; min-height: 52px; padding: 13px 15px; font-size: 16px; /* 16px: iOS won't zoom */
  border: 1.5px solid var(--line-2); border-radius: 13px; background: #fffdfc;
  color: var(--ink); font-family: inherit;
}
.modal-card input:focus { outline: none; border-color: var(--coral); background: #fff; }
#authCode { letter-spacing: .5em; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.modal-card .btn-go { max-width: none; margin-top: 3px; }

.linkbtn {
  font-size: 13.5px; font-weight: 600; color: var(--muted);
  min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
}
.linkbtn:hover { color: var(--coral); }

.modal-err {
  margin-top: 14px; padding: 11px 14px; border-radius: 11px;
  background: #fff2f2; border: 1px solid #f4cfcf; color: #9d3f32; font-size: 14px;
}
.modal-fine { margin-top: 16px; font-size: 12px; color: var(--faint); line-height: 1.5; }
.modal-fine a { color: var(--muted); text-decoration: underline; }

body.modal-open { overflow: hidden; }

/* ---------- next up ---------- */

.nextup { margin-top: 30px; }
.nextup h2 { font-size: clamp(22px, 5vw, 28px); }
.nextup-sub { color: var(--muted); margin: 6px 0 16px; }
.nextup-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }

/* ---------- faq ---------- */

.faq-h, .rel-h { font-size: clamp(24px, 5.2vw, 31px); margin-bottom: 18px; }
.faq { display: grid; gap: 9px; }
.faq details {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 4px 18px;
}
.faq summary {
  list-style: none; cursor: pointer; padding: 14px 26px 14px 0; position: relative;
  font-weight: 700; font-size: 16px; line-height: 1.45;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 2px; top: 50%; width: 9px; height: 9px;
  border-right: 2.2px solid var(--coral); border-bottom: 2.2px solid var(--coral);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details p { color: var(--muted); padding: 0 0 16px; font-size: 15px; }

.rel-all { margin-top: 12px; }
.rel-all a { display: inline-flex; align-items: center; min-height: 44px; color: var(--coral); font-weight: 700; }

/* ---------- app band ---------- */

.appband { padding: 12px 0 62px; }
.appband-in {
  background: linear-gradient(135deg, #e95776, #ff7a59); color: #fff;
  border-radius: var(--r-lg); padding: 34px 30px;
  display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap;
}
.appband-txt { flex: 1 1 300px; }
.appband h2 { font-size: clamp(23px, 5vw, 30px); }
.appband p { opacity: .95; margin-top: 7px; max-width: 30rem; font-size: 15.5px; }
.stores { display: flex; gap: 11px; flex-wrap: wrap; }
.store {
  display: inline-flex; align-items: center; gap: 10px; background: #1c1c1e; color: #fff;
  padding: 12px 19px; border-radius: 14px; font-weight: 600; position: relative;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .18); transition: transform .14s var(--ease);
}
.store:active { transform: scale(.97); }
.store svg { width: 24px; height: 24px; flex: none; }
.store .st-top { font-size: 11.5px; opacity: .82; line-height: 1.1; font-weight: 500; display: block; }
.store .st-big { font-size: 16px; line-height: 1.2; font-weight: 700; display: block; }
.store.soon { opacity: .62; cursor: default; }
.store.soon::after {
  content: "Çok Yakında"; position: absolute; top: -9px; right: -6px; background: var(--mint);
  color: #fff; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
}

/* ---------- footer ---------- */

.foot { padding: 34px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 14px; }
.foot-links a { color: var(--coral); font-weight: 600; }
.foot-links a:hover { text-decoration: underline; }
.foot-note { font-size: 13.5px; }
.foot-fine { font-size: 12.5px; color: var(--faint); margin-top: 6px; max-width: 42rem; }

/* ---------- motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

@media (max-width: 600px) {
  .section { padding: 46px 0; }
  .quiz { padding: 18px 14px 12px; border-radius: 20px; }
  .opt { padding: 11px 12px; font-size: 15px; min-height: 52px; }
  /* must follow .opt: equal specificity, so source order decides */
  .opt-swipe { min-height: 92px; padding: 14px 10px; font-size: 15.5px; }
  .res-top, .res-body { padding-inline: 18px; }
  .appband-in { padding: 26px 20px; }

  /* Every pixel above the first question costs an answer option on screen.
     Phones are where this quiz gets taken, so the intro pays the rent. */
  .thero { padding: 18px 0 2px; }
  .crumbs { margin-bottom: 13px; }
  .thero-emoji { width: 50px; height: 50px; font-size: 26px; border-radius: 15px; margin-bottom: 11px; }
  .thero-intro { margin-top: 9px; font-size: 15.5px; }
  .thero-meta { margin-top: 13px; }
  .quiz-section { padding-top: 16px; }
  .q { margin-top: 13px; }
  .q-text { margin-bottom: 14px; }
  .qfoot { margin-top: 12px; padding-top: 10px; }
}
