/* ============================================================
   GENIES PAY — Homepage
   The tap · the 20-second code · attestation gate
   the SDK · SoftPOS · the estate · ad cards
   ============================================================ */

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(56px, 7vw, 104px) clamp(56px, 7vw, 96px); }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 130%; pointer-events: none;
  background:
    radial-gradient(ellipse 40% 44% at 16% 22%, rgba(255,107,53,0.20), transparent 68%),
    radial-gradient(ellipse 36% 42% at 86% 62%, rgba(255,46,136,0.16), transparent 70%);
  filter: blur(4px);
}
.hero__in {
  position: relative; z-index: 1;
  width: min(100% - (var(--pad-x) * 2), var(--w-wide)); margin-inline: auto;
  display: grid; gap: 52px; align-items: center;
}
@media (min-width: 1040px) { .hero__in { grid-template-columns: 1.05fr 0.95fr; gap: 60px; } }
.hero h1 { max-width: 13ch; }
.hero__sub { max-width: 50ch; font-size: clamp(1.03rem, 1.45vw, 1.22rem); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* ---------- The terminal ---------- */
.dev { display: grid; place-items: center; }
.term {
  width: min(100%, 330px); border-radius: 30px;
  background: linear-gradient(168deg, #33241F, #1C1412);
  border: 1px solid var(--line-strong); box-shadow: var(--sh-3);
  padding: 16px 16px 20px; position: relative;
}
.term__cam {
  position: absolute; top: 24px; right: 26px; width: 9px; height: 9px;
  border-radius: 50%; background: #0C0806; border: 1px solid var(--line-strong);
}
.term__screen {
  border-radius: 18px; background: #0B0705; border: 1px solid var(--line);
  padding: 18px 16px 16px; min-height: 260px;
  display: flex; flex-direction: column; gap: 12px;
}
.term__top {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-faint);
}
.term__amt {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem); letter-spacing: -0.03em; color: var(--ink);
  white-space: nowrap;
}
.term__amt small { display: block; font-family: var(--font-mono); font-size: 10px;
                   letter-spacing: 0.14em; color: var(--ink-faint); font-weight: 400; }
.term__msg {
  font-family: var(--font-display); font-size: 1.02rem; font-weight: 600;
  color: var(--ink); min-height: 2.4em; line-height: 1.24;
}
.term__msg[data-state="ok"]   { color: var(--ok); }
.term__msg[data-state="stop"] { color: var(--stop); }
.term__pin { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.term__dot {
  height: 12px; border-radius: 4px; background: var(--panel-3);
  transition: background var(--dur-1) var(--ease-out);
}
.term__dot.on { background: var(--surge); }
.term__bar {
  margin-top: auto; height: 5px; border-radius: 3px; background: var(--panel-3); overflow: hidden;
}
.term__fill { display: block; height: 100%; width: 0; background: var(--grad);
              transition: width var(--dur-2) var(--ease-out); }
.term__pad {
  margin-top: 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px;
}
.term__key {
  height: 26px; border-radius: 7px; background: var(--panel-2);
  border: 1px solid var(--line);
}
.term__slot {
  margin-top: 14px; height: 6px; border-radius: 3px; background: #0C0806;
  border: 1px solid var(--line);
}

/* what is happening underneath */
.under {
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--panel); overflow: hidden;
}
.under__bar {
  padding: 11px 16px; border-bottom: 1px solid var(--line); background: var(--panel-2);
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-faint);
  display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap;
}
.under__body { padding: 12px 16px 16px; font-family: var(--font-mono); font-size: 12px; min-height: 216px; }
.under__line {
  display: grid; grid-template-columns: 18px 1fr; gap: 10px; padding: 5px 0;
  color: var(--ink-dim); opacity: 0; transform: translateX(-5px);
  transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out);
}
.under__line.in { opacity: 1; transform: none; }
.under__line i { font-style: normal; color: var(--surge); text-align: center; }
.under__line[data-k="ok"] i   { color: var(--ok); }
.under__line[data-k="stop"] i { color: var(--stop); }
.under__line[data-k="stop"] span { color: var(--stop); }

/* ---------- The 20-second code ---------- */
.qr { display: grid; gap: 18px; place-items: center; }
.qr__frame { position: relative; width: min(100%, 300px); }
.qr__svg { width: 100%; height: auto; border-radius: var(--r); background: #FDF2EC; padding: 14px; }
.qr__ring {
  position: relative; width: 54px; height: 54px; flex-shrink: 0;
  display: grid; place-items: center;
}
.qr__ring svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.qr__ring b {
  position: relative; font-family: var(--font-mono); font-size: 1.05rem;
  font-weight: 400; color: var(--surge); font-variant-numeric: tabular-nums;
}
.qr__ring circle { fill: none; stroke-width: 7; }
.qr__ring .trk { stroke: var(--panel-3); }
.qr__ring .run { stroke: var(--surge); stroke-linecap: round; transition: stroke-dashoffset 120ms linear; }
.qr__ring .run.low { stroke: var(--warn); }
.qr__count {
  font-family: var(--font-mono); font-size: 13px; color: var(--ink-dim);
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap; justify-content: center;
}

.qr__verdict {
  min-height: 2.6em; text-align: center; max-width: 34ch;
  font-size: 14.5px; color: var(--ink-dim);
}
.qr__verdict b { color: var(--ok); font-weight: 600; }
.qr__verdict u { color: var(--stop); text-decoration: none; font-weight: 600; }

/* ---------- Attestation gate ---------- */
.gate {
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel);
  box-shadow: var(--sh-2); overflow: hidden;
}
.gate__bar {
  padding: 13px 18px; border-bottom: 1px solid var(--line); background: var(--panel-2);
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-faint);
}
.gate__body { padding: 22px 20px 24px; }
.gate__rowset { display: grid; gap: 0; }
.gate__row {
  display: grid; grid-template-columns: 26px 1fr auto; gap: 14px; align-items: center;
  padding: 13px 0; border-bottom: 1px solid var(--line);
  opacity: 0.3; transition: opacity var(--dur-2) var(--ease-out);
}
.gate__row:last-child { border-bottom: 0; }
.gate__row.on { opacity: 1; }
.gate__mark {
  width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--line-strong);
  display: grid; place-items: center; font-size: 12px; color: transparent;
  transition: all var(--dur-2) var(--ease-out);
}
.gate__row.on .gate__mark { border-color: var(--ok); background: var(--ok); color: var(--on-brand); }
.gate__row[data-k="stop"].on .gate__mark { border-color: var(--stop); background: var(--stop); color: #fff; }
.gate__t { font-weight: 700; font-size: 15px; color: var(--ink); display: block;
           font-family: var(--font-display); }
.gate__d { font-size: 14px; color: var(--ink-dim); }
.gate__m { font-family: var(--font-mono); font-size: 11px; color: var(--ink-faint); white-space: nowrap; }

/* ---------- SDK ---------- */
.sdk { display: grid; gap: 22px; align-items: start; }
@media (min-width: 900px) { .sdk { grid-template-columns: 1.15fr 0.85fr; gap: 34px; } }
.code {
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  background: #0B0705; box-shadow: var(--sh-2);
}
.code__bar {
  padding: 11px 16px; border-bottom: 1px solid var(--line); background: var(--panel);
  display: flex; gap: 9px; align-items: center;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-faint);
}
.code__bar .d { width: 8px; height: 8px; border-radius: 50%; background: var(--stop); opacity: .6; }
.code__bar .d:nth-child(2) { background: var(--warn); }
.code__bar .d:nth-child(3) { background: var(--ok); }
.code__body {
  margin: 0; padding: 16px 18px; font-family: var(--font-mono); font-size: 12.5px;
  line-height: 1.85; color: var(--ink-dim); overflow-x: auto;
}
.code__body .k { color: var(--flare); }
.code__body .s { color: var(--ok); }
.code__body .c { color: var(--ink-faint); }
.code__body .f { color: var(--surge); }
.code__ln { display: block; padding: 1px 6px; margin: 0 -6px; border-radius: 4px; }
.code__ln.on { background: var(--surge-soft); }

/* ---------- Phone ---------- */
.phone {
  width: min(100%, 250px); margin-inline: auto; aspect-ratio: 9 / 18.4;
  border-radius: 36px; border: 1px solid var(--line-strong);
  background: linear-gradient(170deg, #33241F, #150E0C);
  box-shadow: var(--sh-3); padding: 12px; position: relative; overflow: hidden;
}
.phone::before {
  content: ""; position: absolute; top: 11px; left: 50%; transform: translateX(-50%);
  width: 74px; height: 19px; border-radius: 999px; background: #0A0605; z-index: 4;
}
.phone__screen {
  position: absolute; inset: 12px; border-radius: 26px; background: #0C0806;
  padding: 42px 15px 16px; display: flex; flex-direction: column; gap: 12px;
}
.phone__state {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-faint);
}
.phone__amt { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem;
              letter-spacing: -0.03em; color: var(--ink); }
.phone__msg { font-size: 13.5px; color: var(--ink-dim); min-height: 3.4em; }
.phone__msg[data-state="ok"] { color: var(--ok); }
.phone__nfc { margin-top: auto; display: grid; place-items: center; padding-bottom: 8px; }
.phone__nfc svg { width: 54px; height: 54px; color: var(--surge); }
.nfc-a { animation: nfc 2.2s ease-in-out infinite; }
.nfc-b { animation: nfc 2.2s ease-in-out infinite 0.34s; }
.nfc-c { animation: nfc 2.2s ease-in-out infinite 0.68s; }
@keyframes nfc { 0%, 100% { opacity: 0.16; } 45% { opacity: 1; } }

/* ---------- Estate ---------- */
.estate { display: grid; gap: 18px; }
.estate__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 9px; }
.tile {
  aspect-ratio: 1 / 1.05; border-radius: var(--r-sm); border: 1px solid var(--line);
  background: var(--panel); padding: 9px; display: flex; flex-direction: column;
  justify-content: space-between; transition: transform var(--dur-1), border-color var(--dur-1);
}
.tile:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.tile__id { font-family: var(--font-mono); font-size: 9.5px; color: var(--ink-faint); }
.tile__bar { height: 4px; border-radius: 2px; background: var(--panel-3); overflow: hidden; }
.tile__bar span { display: block; height: 100%; background: var(--ok); }
.tile__st { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.06em;
            text-transform: uppercase; }
.tile[data-st="ok"]   .tile__st { color: var(--ok); }
.tile[data-st="warn"] { border-color: rgba(255,193,69,0.4); }
.tile[data-st="warn"] .tile__st { color: var(--warn); }
.tile[data-st="warn"] .tile__bar span { background: var(--warn); }
.tile[data-st="stop"] { border-color: rgba(255,75,75,0.45); }
.tile[data-st="stop"] .tile__st { color: var(--stop); }
.tile[data-st="stop"] .tile__bar span { background: var(--stop); }
.tile[data-st="quiet"] { border-color: var(--line-strong); opacity: 0.62; }
.tile[data-st="quiet"] .tile__st { color: var(--ink-faint); }
.tile[data-st="quiet"] .tile__bar span { background: var(--ink-faint); }

/* ---------- At the counter ---------- */
.counter { display: grid; gap: 16px; }
.counter__row {
  display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; background: var(--panel); box-shadow: var(--sh-1);
  transition: border-color var(--dur-2), transform var(--dur-2);
}
.counter__row:hover { border-color: var(--line-strong); transform: translateY(-2px); }
@media (min-width: 900px) { .counter__row { grid-template-columns: 1fr 1.2fr auto; } }
.counter__q {
  padding: 24px; background: var(--panel-2); border-right: 1px solid var(--line);
  display: flex; align-items: center;
}
@media (max-width: 899px) { .counter__q { border-right: 0; border-bottom: 1px solid var(--line); } }
.counter__q p {
  margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 1.06rem;
  line-height: 1.3; color: var(--ink);
}
.counter__q p::before { content: "“"; color: var(--stop); }
.counter__q p::after  { content: "”"; color: var(--stop); }
.counter__a { padding: 24px; display: flex; align-items: center; }
.counter__a p { margin: 0; font-size: 15px; }
.counter__p { padding: 24px; display: flex; align-items: center; border-left: 1px solid var(--line); }
@media (max-width: 899px) { .counter__p { border-left: 0; border-top: 1px solid var(--line); } }
.counter__p span {
  font-family: var(--font-mono); font-size: 11px; color: var(--surge);
  background: var(--surge-soft); padding: 7px 12px; border-radius: 999px; white-space: nowrap;
}
@media (max-width: 899px) { .counter__p span { white-space: normal; } }

/* ---------- Ad cards ---------- */
.ads { display: grid; gap: 18px; }
@media (min-width: 760px)  { .ads { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .ads { grid-template-columns: repeat(4, 1fr); } }
.ad {
  background: linear-gradient(168deg, var(--panel), var(--bg-raise));
  border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px 24px 22px; display: flex; flex-direction: column; gap: 14px;
  min-height: 316px; box-shadow: var(--sh-1);
  transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}
.ad:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.ad__hook {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.32rem, 2vw, 1.66rem); line-height: 1.04;
  letter-spacing: -0.035em; margin: 0; color: var(--ink);
}
.ad__body { font-size: 14.5px; margin: 0; }
.ad__art { margin-top: auto; height: 88px; display: grid; place-items: center; }
.ad__art svg { width: 100%; height: 88px; overflow: visible; }
.ad__proof {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em;
  color: var(--ink-faint); border-top: 1px solid var(--line); padding-top: 12px;
}
.a-pulse { animation: gPulse 2.4s var(--ease-io) infinite; }
@keyframes gPulse { 0%,100% { opacity: .3; } 50% { opacity: 1; } }
.a-tap { animation: gTap 2.6s var(--ease-io) infinite; transform-origin: center; }
@keyframes gTap { 0%,70%,100% { transform: translateY(0); } 82% { transform: translateY(-9px); } }
.a-spin { animation: gSpin 6s linear infinite; transform-origin: center; }
@keyframes gSpin { to { transform: rotate(360deg); } }

/* ---------- Split ---------- */
/* .split and .hero__pills moved to global.css — they are layout
   primitives every page needs, not homepage furniture. */

/* ---------- Final CTA ---------- */
.cta-final { position: relative; overflow: hidden; text-align: center; }
.cta-final::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 58% at 50% 52%, rgba(255,107,53,0.18), transparent 72%);
}
.cta-final .wrap { position: relative; }
.cta-final h2 { max-width: 18ch; margin-inline: auto; }
.cta-final .lead { margin-inline: auto; }
.cta-final .hero__cta { justify-content: center; }

/* ---------- The "In the hand" act on the home page ----------
   The counter sections alternate tinted / finder. This one is
   neither: it is the moment the site turns around, so it gets
   the brand gradient as a wash and a rule above it.            */
.hand-act {
  position: relative;
  background:
    radial-gradient(900px 480px at 78% 0%, rgba(255, 46, 136, .12), transparent 68%),
    radial-gradient(700px 440px at 10% 100%, rgba(255, 107, 53, .10), transparent 72%),
    var(--bg-raise);
  border-block: 1px solid var(--line);
}
.hand-act::before {
  content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 2px;
  background: var(--grad);
}
.hand-act .card h3 a { color: inherit; }
.hand-act .card h3 a:hover { color: var(--surge); }
