/* Recharge4Me — site styles.
   Tokens mirror the app so the site and the product feel continuous. */

:root {
  --ink:        #0E1116;
  --surface:    #171C24;
  --surface-2:  #1F2630;
  --line:       #2C3440;
  --text:       #EDF1F6;
  --dim:        #8A94A3;
  --amber:      #F5B72E;
  --amber-deep: #C98F14;
  --foil-1:     #E3E8ED;
  --foil-2:     #B4BEC8;
  --foil-3:     #8492A0;
  --success:    #3DD68C;

  --display: 'Archivo', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --body:    ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono:    ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1080px;
  --r: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }

a { color: var(--amber); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 0 0 12px;
}

h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -.02em; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(38px, 6.2vw, 64px); }
h2 { font-size: clamp(26px, 3.6vw, 38px); }
h3 { font-size: 19px; letter-spacing: -.01em; }

p { margin: 0 0 16px; }
.lede { font-size: clamp(16px, 2vw, 19px); color: var(--dim); max-width: 54ch; }

/* ── Header ─────────────────────────────────────────────── */
.site-head {
  position: sticky; top: 0; z-index: 40;
  background: rgba(14,17,22,.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 17px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand .glyph {
  width: 26px; height: 26px; border-radius: 7px;
  background: linear-gradient(135deg, var(--foil-1), var(--foil-3));
  position: relative; flex: none;
}
.brand .glyph::after {
  content: ""; position: absolute; inset: 4px 5px auto auto;
  width: 8px; height: 8px; border-radius: 2px; background: var(--amber);
}
.nav { margin-left: auto; display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--dim); font-size: 14.5px; font-weight: 600; }
.nav a:hover { color: var(--text); text-decoration: none; }
@media (max-width: 700px) { .nav a.hide-sm { display: none; } }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding: 0 24px; border-radius: var(--r);
  font-family: var(--body); font-size: 15.5px; font-weight: 700;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--amber); color: #1A1204; }
.btn-primary:hover { background: #FFC64A; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--dim); }
.btn small { display: block; font-size: 11.5px; font-weight: 600; opacity: .72; letter-spacing: .02em; }
.btn .stack { text-align: left; line-height: 1.25; }

/* ── Hero ───────────────────────────────────────────────── */
.hero { padding: 74px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }
.hero h1 { margin-bottom: 18px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .fineprint { margin-top: 16px; font-size: 13px; color: var(--dim); }

/* ── Scratch card (the signature element) ───────────────── */
.card-stage { perspective: 1200px; }
.scratch {
  position: relative;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 20px;
  box-shadow: 0 30px 60px rgba(0,0,0,.5);
  transform: rotate(-1.4deg);
}
.scratch .card-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 16px;
}
.scratch .denom { font-family: var(--display); font-weight: 800; font-size: 20px; }
.panel-wrap { position: relative; border-radius: 10px; overflow: hidden; }
.panel-pin {
  display: flex; align-items: center; justify-content: center;
  height: 96px;
  background: var(--surface-2);
  font-family: var(--mono);
  font-size: clamp(15px, 2.6vw, 21px);
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--text);
  padding: 0 10px;
  text-align: center;
}
#scratch-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  touch-action: none; cursor: grab; display: block;
}
#scratch-canvas.gone { opacity: 0; transition: opacity .45s ease; pointer-events: none; }
.scratch .hint {
  margin-top: 14px; font-size: 12.5px; color: var(--dim);
  display: flex; align-items: center; gap: 8px; min-height: 20px;
}
.scratch .hint .dot { width: 7px; height: 7px; border-radius: 2px; background: var(--amber); flex: none; }
.dial-out {
  margin-top: 14px; padding: 13px 14px;
  border-radius: 10px; background: var(--ink);
  border-left: 3px solid var(--amber);
  font-family: var(--mono); font-weight: 700;
  font-size: clamp(14px, 2.4vw, 18px);
  color: var(--amber);
  opacity: 0; transform: translateY(6px);
  transition: opacity .4s ease, transform .4s ease;
}
.dial-out.on { opacity: 1; transform: none; }
.reveal-btn {
  margin-top: 12px; background: none; border: 1px solid var(--line);
  color: var(--dim); font-family: var(--body); font-size: 13px; font-weight: 600;
  padding: 8px 14px; border-radius: 9px; cursor: pointer;
}
.reveal-btn:hover { color: var(--text); border-color: var(--dim); }

/* ── Sections ───────────────────────────────────────────── */
section { padding: 68px 0; border-top: 1px solid var(--line); }
section.plain { border-top: 0; }
.section-head { max-width: 60ch; margin-bottom: 34px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 22px;
}
.step .num {
  font-family: var(--mono); font-size: 12px; font-weight: 700;
  color: var(--amber); letter-spacing: .1em; margin-bottom: 12px; display: block;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--dim); font-size: 14.5px; margin: 0; }

.nets { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (max-width: 700px) { .nets { grid-template-columns: 1fr; } }
.net {
  display: flex; align-items: center; gap: 14px;
  border-radius: var(--r); padding: 18px 18px;
  border-left: 4px solid var(--net, var(--line));
  background: var(--surface);
}
.net .name { font-weight: 700; font-size: 16px; }
.net .country { font-size: 12.5px; color: var(--dim); }
.net .code { margin-left: auto; font-family: var(--mono); font-size: 13px; color: var(--dim); }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 800px) { .facts { grid-template-columns: 1fr; } }
.fact { border-top: 2px solid var(--amber); padding-top: 16px; }
.fact h3 { margin-bottom: 8px; font-size: 17px; }
.fact p { color: var(--dim); font-size: 14.5px; margin: 0; }

.get { text-align: center; }
.get .actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.checksum {
  margin-top: 22px; font-family: var(--mono); font-size: 12px; color: var(--dim);
  word-break: break-all;
}

/* ── Long-form pages ────────────────────────────────────── */
.doc { padding: 56px 0 80px; }
.doc .wrap { max-width: 760px; }
.doc h1 { margin-bottom: 10px; }
.doc .updated { font-family: var(--mono); font-size: 12px; color: var(--dim); margin-bottom: 40px; }
.doc h2 { font-size: 22px; margin: 40px 0 12px; }
.doc h3 { font-size: 16px; margin: 26px 0 8px; }
.doc p, .doc li { color: #C6CDD6; font-size: 15.5px; }
.doc ul { padding-left: 20px; margin: 0 0 16px; }
.doc li { margin-bottom: 8px; }
.doc strong { color: var(--text); }
.callout {
  background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  border-radius: 10px; padding: 16px 18px; margin: 22px 0;
}
.callout p:last-child { margin: 0; }

/* ── FAQ ────────────────────────────────────────────────── */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; padding: 18px 0; font-weight: 700; font-size: 16px;
  list-style: none; display: flex; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "+"; font-family: var(--mono); color: var(--amber);
  font-weight: 700; flex: none; width: 14px;
}
.faq details[open] summary::before { content: "\2212"; }
.faq .answer { padding: 0 0 20px 26px; color: var(--dim); font-size: 15px; }
.faq .answer p:last-child { margin: 0; }

/* ── Footer ─────────────────────────────────────────────── */
.site-foot { border-top: 1px solid var(--line); padding: 40px 0 56px; }
.foot-grid { display: flex; flex-wrap: wrap; gap: 26px; align-items: flex-start; }
.foot-grid nav { display: flex; gap: 20px; flex-wrap: wrap; margin-left: auto; }
.foot-grid nav a { color: var(--dim); font-size: 14px; }
.foot-note { margin-top: 26px; font-size: 12.5px; color: var(--dim); max-width: 70ch; }


/* ── Branded network cards, in the app's own language ────── */
.netgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 760px) { .netgrid { grid-template-columns: 1fr; } }

.netcard {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  min-height: 150px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--fg, #fff);
  background: linear-gradient(135deg, var(--g1), var(--g2) 55%, var(--g3));
  box-shadow: 0 14px 30px rgba(0,0,0,.35);
}
/* The same diagonal sheen the app paints across each card. */
.netcard::after {
  content: "";
  position: absolute;
  top: -46px; right: -34px;
  width: 210px; height: 150px;
  transform: rotate(-28deg);
  background: linear-gradient(90deg,
              rgba(255,255,255,var(--sheen, .10)), rgba(255,255,255,0));
  pointer-events: none;
}
.netcard .mark {
  position: relative; z-index: 1;
  display: flex; align-items: flex-start; min-height: 50px;
}
.netcard .mark img { height: var(--logoh, 32px); width: auto; display: block; }
.netcard .wordmark { line-height: 1; }
.netcard .wordmark b {
  display: block; font-family: var(--display);
  font-weight: 800; font-size: 23px; letter-spacing: .02em;
}
.netcard .wordmark span { font-size: 12px; font-weight: 700; opacity: .85; }
.netcard .foot {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.netcard .code {
  font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: .04em;
  background: var(--pill, rgba(0,0,0,.24));
  padding: 7px 11px; border-radius: 8px;
}
.netcard .country { font-size: 13.5px; font-weight: 700; opacity: .9; }

/* Real logo in place of the CSS glyph */
.brand img.glyph { width: 28px; height: 28px; display: block; flex: none; border-radius: 0; background: none; }


/* ── Contact form ────────────────────────────────────────── */
.contact-form { max-width: 560px; margin-top: 26px; }
.contact-form .field { margin-bottom: 16px; }
.contact-form label {
  display: block; font-family: var(--mono); font-size: 11px;
  font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--dim); margin-bottom: 7px;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%; padding: 13px 14px;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-radius: 10px;
  font-family: var(--body); font-size: 15px;
}
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none; border-color: var(--amber);
}
.contact-form .hp { position: absolute; left: -9999px; }
.form-note { font-size: 12.5px; color: var(--dim); margin-top: 14px; }
.form-status { margin-top: 16px; font-size: 14.5px; display: none; }
.form-status.on { display: block; }
.form-status.ok { color: var(--success); }
.form-status.bad { color: #FF6B5E; }


/* ── Newsletter signup ───────────────────────────────────── */
.subscribe {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  border-radius: var(--r);
  padding: 30px;
  max-width: 620px;
}
.subscribe h2 { font-size: clamp(22px, 3vw, 28px); margin-bottom: 10px; }
.subscribe p.sub-lede { color: var(--dim); font-size: 15px; margin-bottom: 20px; }
.sub-row { display: flex; gap: 10px; flex-wrap: wrap; }
.sub-row input[type="email"] {
  flex: 1 1 260px;
  padding: 15px 16px;
  background: var(--ink);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 11px;
  font-family: var(--body);
  font-size: 15.5px;
}
.sub-row input[type="email"]:focus { outline: none; border-color: var(--amber); }
.sub-row button { flex: 0 0 auto; }
.sub-fine { margin-top: 16px; font-size: 12.5px; color: var(--dim); line-height: 1.6; }
.sub-hp { position: absolute; left: -9999px; }
