/* Tokens match the Bleu app (app/bleu/bleu.html) and the public site (public/home.css). */
:root {
  --ink: #0f1222;
  --body: #2a2e45;
  --muted: #4a4d5e;
  --paper: #fffdfb;
  --white: #ffffff;
  --blue: #2b35e6;
  --orange: #ff6a35;
  --pink: #ff4f9a;
  --coral: #ff5b4a;
  --mint: #7ee0b8;
  --yellow: #fff36b;
  --display: "Big Shoulders Display", Impact, "Arial Narrow", sans-serif;
  --sans: "Hanken Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--paper);
  background-image: linear-gradient(rgba(15, 18, 34, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(15, 18, 34, 0.045) 1px, transparent 1px);
  background-size: 22px 22px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
h1, h2, p { margin: 0; }
button, input { font: inherit; color: inherit; }
a { color: var(--blue); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
html.guide-open #gate { display: none !important; }

.skip { position: absolute; left: 12px; top: -48px; z-index: 5; background: var(--blue); color: var(--white); padding: 10px 14px; }
.skip:focus { top: 12px; }

.sheet {
  width: min(540px, 100%);
  margin: 0 auto;
  padding: 18px 16px calc(28px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.brandbar, .card, .hero, .gate-card, .sticky, .tools {
  border: 1.5px solid var(--ink);
  border-radius: 8px;
}
.brandbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  background: var(--white);
  box-shadow: 5px 5px 0 var(--ink);
}
.brand { display: flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; min-width: 0; }
.mark {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: #0b0b0b url(/assets/home/bleuprint-mark.jpg) 50% 44% / 175% no-repeat;
  flex: none;
}
.brand b { display: block; font: 800 22px/0.9 var(--display); letter-spacing: 0.03em; text-transform: uppercase; }
.brand small, .live, .kicker, .part, .tools b, .foot {
  font-family: var(--mono);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.brand small { display: block; margin-top: 2px; color: var(--muted); font-size: 8px; }
.live { display: flex; align-items: center; gap: 5px; font-size: 8px; color: var(--ink); }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); border: 1px solid var(--ink); }

.gate-card {
  background: var(--white);
  box-shadow: 6px 6px 0 var(--blue);
  padding: 18px 16px 16px;
}
.kicker { font-size: 10px; color: var(--blue); margin-bottom: 8px; }
.gate-card h1, .hero h1, .block h2, .score strong, .step-title, .sticky h2, .call h2 {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: -0.01em;
}
.gate-card h1 { font-size: clamp(34px, 10vw, 46px); }
.value { margin-top: 12px; font-size: 15px; line-height: 1.45; color: var(--body); }

form { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; font: 600 11px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.lbl { display: flex; justify-content: space-between; gap: 8px; }
.lbl em { font-style: normal; color: var(--muted); font-weight: 600; }
.field input {
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  background: var(--white);
  padding: 14px 12px;
  font: 500 16px/1.3 var(--sans);
  letter-spacing: 0;
  text-transform: none;
}
.field input:focus { box-shadow: 0 0 0 3px var(--mint); outline: none; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.err { color: #9b352b; font: 600 14px/1.4 var(--sans); letter-spacing: 0; text-transform: none; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  background: var(--orange);
  box-shadow: 4px 4px 0 var(--ink);
  color: var(--ink);
  font: 700 16px/1.2 var(--sans);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { color: var(--ink); }
.btn:active { transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--ink); }
.fine { font-size: 13px; color: var(--muted); text-align: center; }

.hero {
  background: var(--blue);
  color: var(--white);
  box-shadow: 6px 6px 0 var(--ink);
  padding: 20px 18px 18px;
}
.hero .kicker { color: var(--yellow); }
.hero h1 { font-size: clamp(42px, 12vw, 52px); margin: 8px 0 12px; }
.hero .loyal { color: var(--yellow); }
.hero p { font-size: 14px; line-height: 1.5; color: #f1f0ff; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pills span {
  font: 600 9px var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--white);
  color: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 5px 10px;
}

.part { font-size: 9px; color: var(--muted); }
.sheet section { display: flex; flex-direction: column; gap: 12px; }
.sheet section > h2 {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: -0.01em;
  font-size: 32px;
}
.intro { font-size: 13px; color: var(--muted); line-height: 1.4; }
.card { background: var(--white); box-shadow: 5px 5px 0 var(--edge, var(--ink)); padding: 16px; color: var(--ink); }
.q { display: flex; flex-direction: column; gap: 14px; }
.q-item { display: flex; flex-direction: column; gap: 8px; }
.q-item + .q-item { border-top: 1px dashed rgba(15, 18, 34, 0.2); padding-top: 12px; }
.q-item p { font-size: 14px; font-weight: 600; line-height: 1.35; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice {
  font: 700 13px var(--sans);
  padding: 8px 14px;
  min-height: 40px;
  border-radius: 6px;
  border: 1.5px solid var(--ink);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}
.choice[aria-pressed="true"] { box-shadow: 2px 2px 0 var(--ink); }
.choice[data-v="2"][aria-pressed="true"] { background: var(--mint); }
.choice[data-v="1"][aria-pressed="true"] { background: var(--yellow); }
.choice[data-v="0"][aria-pressed="true"] { background: #ffe4e0; }

.score { box-shadow: 5px 5px 0 var(--ink); }
.score-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.score-top span { font: 600 9px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.score-top b { font: 800 40px/0.9 var(--display); }
.score-top b small { font-size: 20px; }
.score strong { display: block; font-size: 26px; margin: 6px 0; }
.score p { font-size: 14px; line-height: 1.45; }
.score .btn { width: auto; margin-top: 12px; text-align: left; }

.meter { height: 12px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--white); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--mint); width: 0; }

.steps { display: flex; flex-direction: column; gap: 14px; }
.step { padding: 0; overflow: hidden; }
.step-h {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: transparent;
  border: 0;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.num {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  display: grid;
  place-items: center;
  font: 700 12px var(--mono);
}
.step-title { flex: 1 1 auto; font-size: 22px; }
.count { font: 600 9px var(--mono); letter-spacing: 0.12em; color: var(--muted); }
.step-body { padding: 0 16px 16px; }
.why { font-size: 14px; line-height: 1.45; margin-bottom: 4px; }
.task {
  width: 100%;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 9px 0;
  background: transparent;
  border: 0;
  border-top: 1px dashed rgba(15, 18, 34, 0.2);
  color: var(--ink);
  text-align: left;
  font: 400 14px/1.4 var(--sans);
  cursor: pointer;
}
.box {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  background: var(--white);
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
}
.task[aria-pressed="true"] .box { background: var(--mint); }
.task[aria-pressed="true"] span { text-decoration: line-through; }
.tools { margin-top: 10px; background: var(--white); border-style: dashed; padding: 10px 12px; box-shadow: none; }
.tools b { display: block; margin-bottom: 4px; font-size: 8px; color: var(--muted); }
.tools p { font-size: 13px; line-height: 1.4; }
.circle { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.circle p { font-size: 14px; line-height: 1.45; }
.circle .btn { width: 100%; text-align: center; }

.sticky {
  background: var(--yellow);
  box-shadow: 4px 5px 0 rgba(15, 18, 34, 0.9);
  padding: 20px 18px 16px;
  transform: rotate(0.6deg);
  position: relative;
}
.sticky::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 22px;
  width: 56px;
  height: 16px;
  background: var(--mint);
  opacity: 0.85;
  transform: rotate(-4deg);
}
.sticky h2 { font-size: 24px; margin-bottom: 8px; }
.sticky p { font-size: 14px; line-height: 1.5; }

.call h2 { font-size: 28px; margin: 6px 0 8px; }
.call p, .share p { font-size: 14px; line-height: 1.45; }
.call .btn { width: auto; margin-top: 14px; }
.call .more { margin-top: 14px; }
.share h2 { font: 800 26px/0.95 var(--display); text-transform: uppercase; margin: 6px 0 8px; }
.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 8px;
  color: var(--muted);
}
