:root {
  --teal: #004358;
  --teal-deep: #002735;
  --teal-bright: #0a6b8a;
  --ice: #b2d6e0;
  --paper: #f3f6f7;
  --ink: #12282f;
  --muted: #5a6f76;
  --line: #d6e1e5;
  --radius: 18px;
  /* WattReach tokens, for the powered-by surfaces */
  --wr-cream: #f4ede0;
  --wr-cream-dark: #e8dcc4;
  --wr-canyon: #b04a3c;
  --wr-dusk: #2a2724;
  --wr-mist: #6b665f;
  --grad-aluminum: linear-gradient(180deg, #f6f7f9 0%, #d8dade 28%, #aab0b8 55%, #d8dade 78%, #f6f7f9 100%);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Raleway, "Helvetica Neue", Arial, sans-serif;
  font-weight: 500;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}
a { color: var(--teal-bright); }
img { max-width: 100%; height: auto; }

.top {
  background: linear-gradient(135deg, #005a74 0%, var(--teal) 55%, var(--teal-deep) 100%);
  padding: 28px 20px 26px;
  text-align: center;
}
.wordmark { width: 220px; height: auto; display: block; margin: 0 auto; }
.powered-pill {
  display: inline-block; margin-top: 16px; padding: 6px 14px;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif; font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--wr-dusk); background: var(--wr-cream); border-radius: 999px; text-decoration: none;
  box-shadow: inset 0 0 0 1px var(--wr-cream-dark);
}
.powered-pill strong { font-family: Fraunces, Georgia, serif; font-weight: 600; font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--wr-canyon); }

main { max-width: 1040px; margin: 0 auto; padding: 0 16px 48px; }

.hero { padding: 40px 0 8px; max-width: 640px; }
.eyebrow {
  margin: 0 0 6px;
  font-size: 13px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase;
  color: var(--teal-bright);
}
h1 { margin: 0 0 12px; font-size: clamp(30px, 5.4vw, 46px); font-weight: 800; line-height: 1.08; letter-spacing: -.01em; color: var(--teal-deep); }
.lede { margin: 0; font-size: 18px; color: var(--muted); }
.lede strong { color: var(--ink); }

.builder {
  display: grid; gap: 28px; align-items: start;
  margin-top: 28px;
}
@media (min-width: 820px) {
  .builder { grid-template-columns: 340px 1fr; gap: 40px; }
  .preview { position: sticky; top: 24px; }
}

/* the Wallet mock */
.pass {
  width: 100%; max-width: 340px; margin: 0 auto;
  background: var(--teal); color: #fff;
  border-radius: var(--radius);
  box-shadow: 0 24px 60px -20px rgba(0, 39, 53, .55), 0 2px 8px rgba(0, 39, 53, .2);
  overflow: hidden;
}
.pass-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px 10px; }
.pass-head img { width: 44px; height: auto; }
.pass-brand { font-weight: 700; font-size: 17px; flex: 1; }
.pass-kind { text-align: right; font-size: 15px; font-weight: 600; line-height: 1.15; }
.pass-kind small, .pass-fields small { display: block; font-size: 10px; letter-spacing: .12em; color: var(--ice); font-weight: 700; }
.pass-strip {
  height: 112px; padding: 14px 16px; display: flex; align-items: flex-end;
  background:
    url("/mark-white.png") right -30px bottom -26px / 190px auto no-repeat,
    linear-gradient(135deg, #005a74, var(--teal-deep));
  background-blend-mode: soft-light, normal;
}
.pass-name { font-size: 24px; font-weight: 700; letter-spacing: -.01em; text-shadow: 0 1px 2px rgba(0,0,0,.25); }
.pass-fields { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 12px 16px 0; font-size: 15px; }
.pass-fields div:last-child:not(:first-child) { text-align: right; }
.pass-fields + .pass-fields { padding-top: 8px; padding-bottom: 4px; }
.pass-code { margin: 14px 12px 14px; background: #fff; border-radius: 10px; padding: 12px 12px 8px; text-align: center; color: #111; }
.pass-code svg { display: block; height: 60px; }
.pv-2d { display: grid; grid-template-columns: repeat(21, 1fr); gap: 0; width: 126px; height: 126px; margin: 0 auto; }
.pv-2d i { display: block; background: #111; }
.pv-2d i.o { background: transparent; }
.pass-alt { display: block; margin-top: 6px; font-size: 13px; letter-spacing: .12em; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.preview-note { text-align: center; font-size: 13px; color: var(--muted); margin: 14px 0 0; }

/* the form */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: grid; gap: 18px;
  box-shadow: 0 10px 30px -18px rgba(0, 39, 53, .35);
}
label > span { display: block; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--teal-deep); margin-bottom: 6px; }
label > span em { font-style: normal; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--muted); margin-left: 6px; }
input[type="text"], input:not([type]), input[type="search"], select {
  width: 100%; font: inherit; font-size: 17px; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: 12px; background: #fbfdfd; color: var(--ink);
}
input:focus, select:focus { outline: none; border-color: var(--teal-bright); box-shadow: 0 0 0 4px rgba(10, 107, 138, .15); }
input:invalid:not(:placeholder-shown) { border-color: #c0392b; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--teal-deep); margin-bottom: 8px; padding: 0; }
.chip { display: inline-flex; margin: 0 8px 8px 0; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--teal); background: #fff; cursor: pointer; }
.chip input:checked + span { background: var(--teal); border-color: var(--teal); color: #fff; }
.chip input:focus-visible + span { box-shadow: 0 0 0 4px rgba(10, 107, 138, .25); }
.hint { margin: 2px 0 0; font-size: 13px; color: var(--muted); }

.wallet-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 16px 20px;
  font: inherit; font-size: 18px; font-weight: 700; letter-spacing: .01em;
  color: #fff; background: #111; border: 0; border-radius: 14px; cursor: pointer;
}
.wallet-btn:hover { background: #000; }
.wallet-btn:active { transform: translateY(1px); }
.fine { margin: 0; font-size: 13px; color: var(--muted); text-align: center; }

.how, .faq { max-width: 640px; margin-top: 56px; }
h2 { font-size: 24px; font-weight: 800; color: var(--teal-deep); margin: 0 0 14px; }
.how ol { padding-left: 22px; margin: 0; }
.how li { margin-bottom: 10px; }
dl { margin: 0; }
dt { font-weight: 700; margin-top: 14px; }
dd { margin: 4px 0 0; color: var(--muted); }

/* the WattReach band: cream paper, serif wordmark, canyon accent, aluminum rule */
footer.wr {
  background: var(--wr-cream); color: var(--wr-dusk);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  padding: 0 20px 44px; text-align: center;
}
.wr-rule { height: 3px; background: var(--grad-aluminum); }
.wr-eyebrow { margin: 36px 0 6px; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--wr-canyon); font-weight: 600; }
.wr-lockup-link { display: inline-block; }
.wr-lockup { width: 300px; max-width: 80vw; height: auto; display: block; }
.wr-blurb { max-width: 520px; margin: 14px auto 0; font-family: Fraunces, Georgia, serif; font-size: 18px; line-height: 1.45; color: var(--wr-dusk); }
.wr-blurb a { color: var(--wr-canyon); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.wr-fine { max-width: 520px; margin: 18px auto 0; font-size: 12px; color: var(--wr-mist); line-height: 1.5; }

.problem { max-width: 560px; margin: 60px auto; padding: 0 20px; }
