:root {
  --bg: #FFF8F1; --card: #fff; --ink: #1A120C; --ink2: #6B5A4C; --line: #F0E3D6;
  --brand: #FF5C1A; --brand2: #FFEDE3; --red: #D9143A; --red2: #FCE4E8; --green: #12B76A; --green2: #E3F8EE;
  --st: var(--brand); --st2: var(--brand2);
  --head: 'Bricolage Grotesque', system-ui, sans-serif; --mono: 'JetBrains Mono', ui-monospace, monospace;
}
body.broken { --st: var(--red); --st2: var(--red2); }
body.kept { --st: var(--green); --st2: var(--green2); }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 500 16px/1.55 Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); letter-spacing: -0.02em; margin: 0; }
.muted { color: var(--ink2); } .small { font-size: 13px; } .mono { font-family: var(--mono); }
main { max-width: 1160px; margin: 0 auto; padding: 0 20px 60px; }

.nav { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 24px; padding: 14px max(20px, calc(50% - 560px)); background: rgba(255,248,241,.86); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 18px var(--head); }
.brand img { width: 34px; height: 34px; }
.links { display: flex; gap: 22px; margin-left: 12px; }
.links a { text-decoration: none; color: var(--ink2); font-size: 14px; font-weight: 600; }
.links a:hover { color: var(--ink); }
.nav-end { margin-left: auto; display: flex; gap: 12px; align-items: center; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 12px; border: 0; background: var(--brand); color: #fff; font: 700 14px Inter, sans-serif; text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -8px rgba(255,92,26,.6); }
.btn.big { padding: 14px 24px; font-size: 16px; border-radius: 14px; }
.btn.line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }

.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px; background: var(--st2); color: var(--st); font: 700 12px Inter; text-transform: uppercase; letter-spacing: .06em; }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--st); animation: blink 1.6s infinite; }
.pill.big { font-size: 13px; padding: 8px 14px; }
@keyframes blink { 50% { opacity: .3; } }

.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 64px 0 40px; }
.eyebrow { color: var(--brand); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: 13px; margin: 0 0 14px; }
h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.02; }
h1 span { color: var(--brand); }
body.broken h1 span { color: var(--red); }
.sub { font-size: 18px; color: var(--ink2); max-width: 520px; margin: 20px 0 28px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.ca { display: inline-flex; align-items: center; gap: 10px; margin-top: 24px; padding: 8px 8px 8px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; max-width: 100%; }
.ca span { font-weight: 700; font-size: 12px; color: var(--ink2); }
.ca code { font-family: var(--mono); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ca button { border: 0; background: var(--ink); color: #fff; border-radius: 8px; padding: 6px 12px; font: 700 12px Inter; cursor: pointer; }
.mode { margin-top: 14px; font-size: 13px; color: var(--ink2); }

.meter { background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 22px; box-shadow: 0 30px 60px -30px rgba(26,18,12,.25); }
.meter-top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.dial { position: relative; width: min(100%, 340px); aspect-ratio: 1; margin: 14px auto; }
.dial svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.dial .track { fill: none; stroke: var(--st2); stroke-width: 16; }
.dial .prog { fill: none; stroke: var(--st); stroke-width: 16; stroke-linecap: round; stroke-dasharray: 653.45; stroke-dashoffset: 653.45; transition: stroke-dashoffset .8s, stroke .3s; }
.dial-in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.dial-in img { width: 54px; height: 54px; margin-bottom: 8px; }
body.broken .dial-in img { animation: shake .5s 2; }
@keyframes shake { 25% { transform: rotate(-12deg); } 75% { transform: rotate(12deg); } }
.count { font: 700 clamp(28px, 4vw, 38px) var(--mono); letter-spacing: -0.02em; }
.count-l { display: grid; grid-template-columns: repeat(4, 1fr); width: 76%; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink2); font-weight: 700; margin: 2px 0 8px; }
.escrow { background: var(--st); color: #fff; border-radius: 18px; padding: 16px 18px; }
.escrow div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.escrow small { font-weight: 600; opacity: .85; }
.escrow strong { font: 700 30px var(--head); }
.escrow p { margin: 4px 0 0; font-size: 13px; opacity: .85; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 64px; }
.stats div { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; display: flex; flex-direction: column; }
.stats small { color: var(--ink2); font-weight: 600; font-size: 13px; }
.stats strong { font: 700 26px var(--head); margin: 2px 0; }
.stats em { font-style: normal; font-size: 12px; color: var(--ink2); }

.how h2, .faq h2 { font-size: 34px; margin-bottom: 22px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 64px; }
.steps article { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.steps b { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--brand2); color: var(--brand); font: 700 18px var(--head); margin-bottom: 14px; }
.steps .bad b { background: var(--red2); color: var(--red); }
.steps .good b { background: var(--green2); color: var(--green); }
.steps h3 { font-size: 19px; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--ink2); font-size: 14px; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 22px; margin-bottom: 14px; min-width: 0; }
.card-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.card-h h2 { font-size: 24px; }
.card-h a { color: var(--brand); text-decoration: none; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.bar { height: 14px; background: var(--bg); border-radius: 99px; overflow: hidden; }
.bar div { height: 100%; width: 100%; background: var(--st); border-radius: 99px; transition: width .6s; }
.bar-l { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink2); margin-top: 6px; }
.bar-l b { color: var(--ink); font-family: var(--mono); }
.sub-h { font-size: 15px; margin: 20px 0 8px; }
.events { list-style: none; margin: 0; padding: 0; max-height: 260px; overflow: auto; }
.events li { display: flex; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; align-items: baseline; }
.events li time { font: 500 12px var(--mono); color: var(--ink2); min-width: 88px; }
.events li.break { color: var(--red); font-weight: 700; } .events li.kept { color: var(--green); font-weight: 700; }
.events li a { color: var(--brand); font-size: 12px; margin-left: auto; }

.check { display: flex; gap: 8px; margin-top: 10px; }
.check input { flex: 1; min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; font: 500 14px var(--mono); background: var(--bg); }
.check input:focus { outline: 2px solid var(--brand); border-color: transparent; }
.check-out { margin-top: 16px; padding: 18px; border-radius: 16px; background: var(--brand2); }
.check-out strong { display: block; font: 700 34px var(--head); color: var(--brand); }
.check-out.bad { background: var(--red2); } .check-out.bad strong { color: var(--red); }
.check-out p { margin: 4px 0 0; font-size: 14px; color: var(--ink2); }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink2); padding: 8px 10px; border-bottom: 1px solid var(--line); }
td { padding: 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td.mono, td.r { font-family: var(--mono); }
.r { text-align: right; }
td.win { color: var(--st); font-weight: 700; }
tr:hover td { background: var(--bg); }

.payout { border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; margin-bottom: 10px; }
.payout header { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.payout header strong { font: 700 20px var(--head); }
.tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 3px 8px; border-radius: 6px; background: var(--bg); color: var(--ink2); }
.empty { text-align: center; padding: 28px; color: var(--ink2); }
.empty b { display: block; color: var(--ink); font: 700 18px var(--head); }

.faq { margin-top: 50px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; margin-bottom: 10px; }
.faq summary { font: 700 17px var(--head); cursor: pointer; }
.faq p { margin: 10px 0 0; color: var(--ink2); }

.foot { display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap; padding: 30px 20px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.foot img { width: 24px; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 36px; }
  .stats, .steps { grid-template-columns: 1fr 1fr; }
  .grid2 { grid-template-columns: 1fr; }
  .links { display: none; }
}
@media (max-width: 520px) {
  .nav { gap: 10px; } .brand span { display: none; }
  .stats, .steps { grid-template-columns: 1fr; }
  .check { flex-direction: column; }
}
