/* ══════════════════════════════════════════════════════════════════
   Reketa portal — tokens
   Palette is the logo's: three bands (teal / gold / red) and two nodes.
   Discipline: teal leads, ink does the work, gold is the only accent.
   Red, node-blue and node-green appear ONLY inside the brand mark and
   the connect animation — never as UI colour.
   ══════════════════════════════════════════════════════════════════ */
:root {
  --ink:        #16212F;
  --ink-2:      #4A5C71;
  --ink-3:      #8093A6;
  --paper:      #FBF8F1;
  --paper-2:    #F2ECE0;
  --card:       #FFFDF8;
  --teal:       #36A597;
  --teal-deep:  #1D6A62;
  --teal-ink:   #10403B;
  --gold:       #F7BC2C;
  --red:        #E5483E;
  --node-blue:  #4EA3DE;
  --node-green: #6FB03A;
  --rule:       rgba(22, 33, 47, .12);
  --rule-soft:  rgba(22, 33, 47, .07);

  --display: "Gabarito", ui-rounded, "Segoe UI", system-ui, sans-serif;
  --body:    "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono:    "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gut: clamp(20px, 5vw, 56px);
  --max: 1180px;
  --ease: cubic-bezier(.2, .7, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.05; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
a { color: inherit; }

:focus-visible {
  outline: 2.5px solid var(--teal);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--ink); color: var(--paper);
  padding: 10px 16px; border-radius: 8px; z-index: 99; text-decoration: none;
}
.skip:focus { left: 12px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }

/* ─────────────────── shared type devices ─────────────────── */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 18px;
}
.eyebrow--teal { color: var(--teal-deep); }
.eyebrow--gold { color: var(--gold); }

.head { margin-bottom: clamp(36px, 5vw, 56px); }
.head__title { font-size: clamp(30px, 4.2vw, 46px); max-width: 15em; }
.head--invert .head__title { color: var(--paper); }

/* ─────────────────── nav ─────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule-soft);
}
.nav__inner {
  width: 100%; max-width: var(--max); margin-inline: auto;
  padding: 12px var(--gut);
  display: flex; align-items: center; gap: 20px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark { width: 34px; height: 31px; display: block; }
.brand__mark svg { width: 100%; height: 100%; display: block; }
.brand__word {
  font-family: var(--display); font-weight: 800; font-size: 25px;
  letter-spacing: -.035em; color: var(--ink);
}
.brand__word--sm { font-size: 21px; color: var(--paper); }

.nav__links { margin-left: auto; display: flex; gap: 28px; }
.nav__links a {
  text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink-2);
  padding-block: 4px; border-bottom: 1.5px solid transparent; transition: color .2s, border-color .2s;
}
.nav__links a:hover { color: var(--ink); border-bottom-color: var(--teal); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--body); font-weight: 600; text-decoration: none;
  border-radius: 999px; border: 0; cursor: pointer;
  transition: transform .18s var(--ease), background .2s;
}
.btn--sm { padding: 9px 18px; font-size: 15px; }
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--teal-deep); transform: translateY(-1px); }
@media (max-width: 720px) { .nav__links { display: none; } .btn--sm { margin-left: auto; } }

/* ─────────────────── hero ─────────────────── */
.hero {
  position: relative;
  padding-block: clamp(48px, 8vw, 92px) clamp(56px, 9vw, 104px);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto 30%;
  height: 90vh;
  background: radial-gradient(50% 50% at 50% 50%, rgba(54, 165, 151, .16), transparent 70%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gut);
  display: grid; grid-template-columns: minmax(0, 1.05fr) 400px;
  gap: clamp(36px, 6vw, 76px); align-items: center;
}
.hero__title {
  font-size: clamp(44px, 7.4vw, 82px);
  font-weight: 800; letter-spacing: -.035em;
  margin-bottom: 22px;
}
.hero__title em { font-style: normal; color: var(--teal); }
.hero__lede {
  font-size: clamp(17px, 1.5vw, 19.5px);
  color: var(--ink-2); max-width: 44ch; margin-bottom: 32px;
}
.hero__fine {
  margin-top: 18px; font-family: var(--mono); font-size: 12.5px;
  letter-spacing: .02em; color: var(--ink-3);
}

/* hero entrance — one orchestrated load, nothing else animates on scroll */
.hero__copy > *, .dial { animation: rise .7s var(--ease) both; }
.hero__copy > :nth-child(1) { animation-delay: .04s; }
.hero__copy > :nth-child(2) { animation-delay: .10s; }
.hero__copy > :nth-child(3) { animation-delay: .16s; }
.hero__copy > :nth-child(4) { animation-delay: .22s; }
.hero__copy > :nth-child(5) { animation-delay: .28s; }
.dial { animation-delay: .18s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* ─────────────────── store buttons ─────────────────── */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.stores--center { justify-content: center; }
.stores--stacked { flex-direction: column; width: 100%; }
@media (max-width: 480px) { .stores .store { flex: 1 1 100%; } }

.store {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 11px 20px 11px 17px;
  background: var(--ink); color: var(--paper);
  border-radius: 14px; text-decoration: none;
  transition: transform .18s var(--ease), background .2s;
}
.store:hover { background: #0D1722; transform: translateY(-2px); }
.store__glyph { width: 24px; height: 24px; flex: none; }
.store__glyph--apple { fill: currentColor; }
.store__text { display: flex; flex-direction: column; line-height: 1.15; }
.store__text small { font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; opacity: .68; }
.store__text strong { font-family: var(--display); font-size: 17.5px; font-weight: 600; letter-spacing: -.01em; }
.store--onDark { background: var(--paper); color: var(--ink); }
.store--onDark:hover { background: #fff; }

/* ═══════════════ signature: the dial card ═══════════════ */
.dial {
  position: relative;
  background: var(--card);
  border: 1px solid var(--rule-soft);
  border-radius: 26px;
  box-shadow: 0 1px 2px rgba(22,33,47,.05), 0 22px 50px -28px rgba(22,33,47,.42);
  padding: 26px 24px 24px;
  overflow: hidden;
}
.dial__bands { position: absolute; inset: 0 0 auto 0; display: flex; flex-direction: column; height: 9px; }
.dial__bands i { flex: 1; }
.dial__bands i:nth-child(1) { background: var(--teal); }
.dial__bands i:nth-child(2) { background: var(--gold); }
.dial__bands i:nth-child(3) { background: var(--red); }

.dial__face { padding-top: 6px; }
.dial__face[hidden] { display: none; }

.dial__prompt {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-3); text-align: center;
}

.dial__readout {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 52px; margin-top: 10px;
}
.dial__number {
  font-family: var(--mono); font-weight: 500;
  font-size: clamp(24px, 3.4vw, 30px); letter-spacing: .01em;
  color: var(--ink); white-space: nowrap;
}
.dial__plus { color: var(--ink-3); }
.dial__caret {
  display: inline-block; width: 2px; height: 1.05em; vertical-align: -.14em;
  margin-left: 3px; background: var(--teal); animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.dial__back {
  flex: none; width: 34px; height: 34px; display: grid; place-items: center;
  border: 0; border-radius: 10px; background: transparent; color: var(--ink-3); cursor: pointer;
}
.dial__back[hidden] { display: none; }
.dial__back svg { width: 21px; height: 21px; fill: currentColor; }
.dial__back:hover { background: var(--paper-2); color: var(--ink); }

.dial__country {
  text-align: center; min-height: 24px; font-size: 15px; font-weight: 600; color: var(--teal-deep);
}
.dial__hint { font-weight: 400; color: var(--ink-3); }

.dial__chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; margin: 14px 0 16px; }
.dial__chips button {
  font-family: var(--mono); font-size: 12.5px;
  padding: 5px 11px; border-radius: 999px;
  border: 1px solid var(--rule); background: transparent; color: var(--ink-2);
  cursor: pointer; transition: background .18s, border-color .18s, color .18s;
}
.dial__chips button:hover { background: var(--paper-2); color: var(--ink); border-color: var(--teal); }

.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.keypad button {
  aspect-ratio: 1.42 / 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  border: 1px solid var(--rule-soft); border-radius: 14px;
  background: var(--paper); cursor: pointer;
  transition: background .12s, transform .12s var(--ease), border-color .12s;
}
.keypad button:hover { background: var(--paper-2); border-color: var(--rule); }
.keypad button:active, .keypad button.is-hit { background: #E4F3F0; border-color: var(--teal); transform: scale(.95); }
.key__d { font-family: var(--display); font-weight: 600; font-size: 22px; line-height: 1; color: var(--ink); }
.key__l { font-family: var(--mono); font-size: 8.5px; letter-spacing: .12em; color: var(--ink-3); height: 11px; }

.dial__call {
  width: 100%; margin-top: 14px;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px; border: 0; border-radius: 999px;
  background: var(--teal); color: #fff; cursor: pointer;
  font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: -.01em;
  transition: background .2s, transform .18s var(--ease), opacity .2s;
}
.dial__call svg { width: 20px; height: 20px; fill: currentColor; }
.dial__call:hover:not(:disabled) { background: var(--teal-deep); transform: translateY(-1px); }
.dial__call:disabled { background: var(--paper-2); color: var(--ink-3); cursor: not-allowed; }

/* connect face */
.dial__face--connect { display: flex; flex-direction: column; align-items: center; }
.dial__face--connect:focus, .dial__face--connect:focus-visible { outline: none; }
.connect__number {
  font-family: var(--mono); font-size: clamp(22px, 3.2vw, 28px);
  margin-top: 12px; color: var(--ink);
}
.connect__country { font-size: 15px; font-weight: 600; color: var(--teal-deep); margin-top: 2px; }

.connect__line { display: flex; align-items: center; width: 100%; margin: 26px 0 22px; }
.connect__node { width: 15px; height: 15px; border-radius: 50%; flex: none; box-shadow: 0 0 0 4px var(--card); }
.connect__node--a { background: var(--node-blue); }
.connect__node--b { background: var(--node-green); }
.connect__rail {
  position: relative; flex: 1; height: 5px; border-radius: 3px;
  background: var(--gold); overflow: hidden;
}
.connect__pulse {
  position: absolute; inset: 0 auto 0 0; width: 42%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.92), transparent);
  animation: travel 1.5s var(--ease) infinite;
}
@keyframes travel { from { transform: translateX(-100%); } to { transform: translateX(280%); } }

.connect__msg {
  text-align: center; color: var(--ink-2); font-size: 15.5px;
  max-width: 30ch; margin-bottom: 20px;
}
.dial__again {
  margin-top: 14px; background: none; border: 0; cursor: pointer;
  font-family: var(--body); font-size: 14.5px; font-weight: 500; color: var(--ink-3);
  text-decoration: underline; text-underline-offset: 3px;
}
.dial__again:hover { color: var(--ink); }

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr); }
  .dial { max-width: 400px; width: 100%; margin-inline: auto; }
}

/* ─────────────────── what you get ─────────────────── */
.what { padding-block: clamp(56px, 8vw, 104px); border-top: 1px solid var(--rule-soft); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card {
  background: var(--paper-2);
  border: 1px solid transparent;
  border-radius: 18px;
  padding: 26px 24px 28px;
  transition: border-color .2s, background .2s, transform .2s var(--ease);
}
.card:hover { background: var(--card); border-color: var(--rule); transform: translateY(-3px); }
.card--lead {
  grid-column: 1 / -1; background: var(--ink); padding: 36px 34px 40px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(20px, 4vw, 52px); align-items: start;
}
.card--lead:hover { background: #0F1B27; border-color: transparent; }
.card h3 { font-size: 21px; margin-bottom: 9px; }
.card p { color: var(--ink-2); font-size: 15.5px; }
.card--lead h3 { color: var(--paper); font-size: clamp(24px, 2.6vw, 30px); }
.card--lead p { color: rgba(251, 248, 241, .72); font-size: 17px; }
@media (max-width: 700px) { .card--lead { grid-template-columns: 1fr; gap: 10px; } }
@media (max-width: 860px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

/* ─────────────────── how it works ─────────────────── */
.how {
  background: var(--ink); color: var(--paper);
  padding-block: clamp(56px, 8vw, 104px);
}
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.step { padding: 28px 26px 30px 0; border-top: 1.5px solid rgba(251, 248, 241, .16); }
.step__n {
  display: block; font-family: var(--mono); font-size: 13px;
  letter-spacing: .12em; color: var(--gold); margin-bottom: 26px;
}
.step h3 { font-size: 22px; color: var(--paper); margin-bottom: 8px; }
.step p { color: rgba(251, 248, 241, .66); font-size: 15.5px; }
@media (max-width: 780px) { .steps { grid-template-columns: 1fr; } .step { padding-block: 22px 24px; } }

/* ─────────────────── top up ─────────────────── */
.topup { padding-block: clamp(56px, 8vw, 100px); }
.topup__inner {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px); align-items: center;
}
.topup__lede { color: var(--ink-2); margin-top: 16px; max-width: 40ch; }
.methods { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.methods li {
  font-family: var(--mono); font-size: 14px;
  padding: 11px 18px; border-radius: 999px;
  border: 1px solid var(--rule); color: var(--ink-2); background: var(--card);
}
@media (max-width: 780px) { .topup__inner { grid-template-columns: 1fr; } }

/* ─────────────────── final cta ─────────────────── */
.cta { background: var(--teal-deep); color: var(--paper); padding-block: clamp(56px, 8vw, 96px); }
.cta__inner { text-align: center; }
.cta__title { font-size: clamp(34px, 5.4vw, 58px); }
.cta__lede { color: rgba(251, 248, 241, .75); margin: 14px 0 32px; }

/* ─────────────────── footer ─────────────────── */
.foot { background: var(--ink); color: var(--paper); padding-block: clamp(44px, 6vw, 68px) 26px; }
.foot__inner {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(28px, 5vw, 56px);
}
.foot__brand p { color: rgba(251, 248, 241, .58); font-size: 15px; margin-top: 10px; max-width: 26ch; }
.foot__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.foot__col { display: flex; flex-direction: column; gap: 9px; align-items: flex-start; }
.foot__col h4 {
  font-family: var(--mono); font-weight: 400; font-size: 11.5px;
  letter-spacing: .16em; text-transform: uppercase;
  color: rgba(251, 248, 241, .45); margin-bottom: 3px;
}
.foot__col a { font-size: 15px; text-decoration: none; color: rgba(251, 248, 241, .82); transition: color .18s; }
.foot__col a:hover { color: var(--gold); }
.foot__note { font-size: 14.5px; color: rgba(251, 248, 241, .58); }

.foot__base {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: clamp(36px, 5vw, 56px); padding-top: 22px;
  border-top: 1px solid rgba(251, 248, 241, .14);
  font-size: 13.5px; color: rgba(251, 248, 241, .5);
}
.foot__mono { font-family: var(--mono); }
@media (max-width: 780px) {
  .foot__inner { grid-template-columns: 1fr; }
  .foot__cols { grid-template-columns: 1fr 1fr; }
}

/* ─────────────────── reduced motion ─────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .dial__caret { opacity: 1; }
  .connect__pulse { display: none; }
}
