/* FedOps landing v3 — the original idea, refined:
   ONE centered stage. A circle of concentric rings = the whole register.
   Each answer collapses the outermost ring inward — the circle visibly
   closes into a target around the live count. Warm Register paper theme. */

:root {
  --paper: #f6f4ee;
  --paper-deep: #efece3;
  --card: #fbfaf6;
  --ink: #191c19;
  --ink-soft: #4c5350;
  --ink-faint: #8a9089;
  --rule: #d9d4c6;
  --rule-dark: #b9b2a0;
  --green: #1e6b4f;
  --green-bright: #279968;
  --green-hot: #2eb37c;
  --green-wash: #e4efe7;
  --red: #b3372b;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Libre Franklin", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: var(--sans); color: var(--ink); background: var(--paper);
  background-image: radial-gradient(rgba(25,28,25,.03) 1px, transparent 1px);
  background-size: 22px 22px; min-height: 100vh; display: flex; flex-direction: column;
  font-size: 15px; line-height: 1.5;
}
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; }
.mono { font-family: var(--mono); }
.green { color: var(--green); }

/* ------------------------------------------------------------- top */
.top {
  display: flex; align-items: center; gap: 20px; padding: 14px 28px;
  border-bottom: 3px double var(--rule-dark);
}
.brand { font-family: var(--serif); font-size: 21px; }
.brand b { font-weight: 700; }
.seal { color: var(--green); margin-right: 6px; }
.ticker { flex: 1; text-align: center; font-size: 11px; letter-spacing: 1.2px; color: var(--ink-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.signin {
  font-weight: 700; font-size: 13px; color: var(--green); text-decoration: none;
  border: 1.5px solid var(--green); border-radius: 3px; padding: 7px 18px; transition: all .15s;
}
.signin:hover { background: var(--green); color: #fff; }

/* ------------------------------------------------------------- stage */
.stage {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  padding: 34px 20px 80px; width: 100%;
}

/* the circle */
.target-wrap { position: relative; width: min(440px, 82vw); aspect-ratio: 1; }
.target { width: 100%; height: 100%; display: block; }
.ring {
  fill: none; stroke: var(--green); stroke-width: 1.1; opacity: .35;
  transform-origin: 240px 240px;
  transition: transform 1.1s cubic-bezier(.25,.85,.3,1), opacity 1s ease,
              stroke-width .6s, stroke .6s;
}
.ring.closing { transform: scale(.30); opacity: 0; }
.ring.locked {
  opacity: .95; stroke: var(--green-bright); stroke-width: 2;
  filter: drop-shadow(0 0 5px rgba(46,179,124,.35));
}
.cross line { stroke: var(--green-bright); stroke-width: 2; opacity: 0; transition: opacity .8s ease .4s; }
.cross.on line { opacity: 1; filter: drop-shadow(0 0 6px rgba(46,179,124,.45)); }

.target-core {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 5px; text-align: center;
  pointer-events: none;
}
.core-count {
  font-size: clamp(46px, 9vw, 84px); font-weight: 600; line-height: .95;
  transition: color .3s;
}
.core-count.bump { color: var(--green-bright); }
.core-label { font-size: 10.5px; letter-spacing: 2.6px; color: var(--ink-faint); max-width: 200px; }
.core-sum { font-size: 17px; font-weight: 600; color: var(--green); min-height: 22px; }

/* ------------------------------------------------------------- question card */
.qcard {
  position: relative; width: min(680px, 94vw); margin-top: 26px;
  background: var(--card); border: 1px solid var(--rule);
  border-top: 5px solid var(--green); border-radius: 6px;
  box-shadow: 0 16px 50px rgba(25,28,25,.09);
  padding: 30px 36px 34px; text-align: center;
}
.qs { display: none; }
.qs.active { display: block; animation: rise .4s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.h { font-family: var(--serif); font-weight: 600; font-size: clamp(26px, 4vw, 38px); line-height: 1.12; margin-bottom: 12px; }
.h em { font-style: italic; color: var(--green); }
.h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(22px, 3vw, 30px); margin-bottom: 16px; }
.p { color: var(--ink-soft); font-size: 15.5px; max-width: 52ch; margin: 0 auto 22px; }
.p.small { font-size: 13px; margin-bottom: 14px; }
.p b { color: var(--ink); }
.eyebrow { font-size: 10.5px; letter-spacing: 3px; color: var(--green); margin-bottom: 10px; }
.opt-note { font-size: 14px; color: var(--ink-faint); font-family: var(--sans); font-weight: 500; }

.opts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 18px; }
.opts button {
  font: 600 13.5px var(--sans); color: var(--ink-soft); background: var(--paper);
  border: 1px solid var(--rule-dark); border-radius: 999px; padding: 9px 17px;
  transition: all .14s;
}
.opts button:hover { border-color: var(--green); color: var(--green); transform: translateY(-1px); }
.opts button.sel { background: var(--green); border-color: var(--green); color: #fff; }

.row { display: flex; gap: 10px; margin: 0 auto 18px; max-width: 480px; flex-wrap: wrap; justify-content: center; }
.row.tight { margin-bottom: 10px; }
.field {
  font-size: 14.5px; color: var(--ink); background: #fff;
  border: 1px solid var(--rule-dark); border-radius: 4px; padding: 11px 13px;
  flex: 1; min-width: 150px;
}
.field:focus { outline: 2px solid var(--green); outline-offset: -1px; }
.area { width: 100%; max-width: 480px; resize: vertical; margin-bottom: 16px; }
select.field option { color: var(--ink); }

.go {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 14.5px var(--sans); color: #fff; background: var(--green);
  border: none; border-radius: 4px; padding: 12px 26px; text-decoration: none;
  transition: all .15s; box-shadow: 0 5px 18px rgba(30,107,79,.25);
}
.go:hover { background: var(--green-bright); transform: translateY(-1px); }
.go.big { font-size: 15.5px; padding: 13px 26px; }
.err { color: var(--red); font-size: 11.5px; min-height: 14px; }
.claim-note { margin-bottom: 12px; }

.dots { display: flex; gap: 7px; justify-content: center; margin-top: 22px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--rule-dark); transition: background .3s; }
.dots i.on { background: var(--green); }

/* ------------------------------------------------------------- tiers (the reveal) */
.tiers { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; text-align: left; }
.tier {
  display: grid; grid-template-columns: 64px 1fr auto auto; gap: 14px; align-items: center;
  border: 1px solid var(--rule); border-radius: 5px; padding: 13px 16px;
  background: var(--paper); animation: rise .5s ease both;
}
.tier:nth-child(2) { animation-delay: .14s; } .tier:nth-child(3) { animation-delay: .28s; }
.tier.locked { border-color: var(--green); background: var(--green-wash); }
.tier-pct {
  font-family: var(--mono); font-weight: 600; font-size: 17px; color: var(--green);
  border: 2px solid var(--green); border-radius: 50%; width: 52px; height: 52px;
  display: grid; place-items: center; background: var(--card);
}
.tier.range .tier-pct { opacity: .75; border-style: dashed; }
.tier.radar .tier-pct { opacity: .5; border-style: dotted; }
.tier-name { font-weight: 700; font-size: 14px; }
.tier-name small { display: block; font-weight: 500; color: var(--ink-faint); font-size: 11.5px; }
.tier-n { font-family: var(--mono); font-size: 22px; font-weight: 600; text-align: right; }
.tier-n small { display: block; font-size: 10px; color: var(--ink-faint); letter-spacing: 1px; font-weight: 500; }
.tier-sum { font-family: var(--mono); color: var(--green); font-weight: 600; font-size: 16px; min-width: 80px; text-align: right; }

/* ------------------------------------------------------------- glimpse */
.glimpse { width: min(680px, 94vw); margin-top: 18px; }
.glimpse-head { font-size: 10px; letter-spacing: 2px; color: var(--ink-faint); padding: 0 4px 8px; text-align: center; }
.g-row {
  display: flex; justify-content: space-between; gap: 16px; align-items: baseline;
  padding: 9px 14px; border-bottom: 1px dotted var(--rule-dark);
  font-size: 13px; animation: rise .4s ease both; background: var(--card);
}
.g-row:first-of-type { border-top: 1px dotted var(--rule-dark); }
.g-row .t { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-row .m { font-family: var(--mono); color: var(--green); font-weight: 600; flex: none; }
.g-row.lockrow { color: var(--ink-faint); font-weight: 700; letter-spacing: .6px; justify-content: center; cursor: pointer; }
.g-row.lockrow:hover { color: var(--green); }

.foot { text-align: center; padding: 15px; font-size: 10.5px; letter-spacing: 1.6px; color: var(--ink-faint); border-top: 3px double var(--rule-dark); }

@media (max-width: 560px) {
  .qcard { padding: 22px 18px 26px; }
  .tier { grid-template-columns: 48px 1fr auto; }
  .tier-sum { display: none; }
}
