/* ============================================================
   RemitPak — Prototype Styles
   Modern fintech look. Brand palette derived from the logo.
   ============================================================ */

:root {
  /* Brand greens (from logo) */
  --green:        #1A7F4B;
  --green-mid:    #2E8B57;
  --green-bright: #43B36A;
  --green-light:  #e8f5ee;
  --green-tint:   #f3faf6;

  /* Neutrals */
  --ink:     #15201b;
  --text:    #2c352f;
  --muted:   #6b7670;
  --line:    #e4e9e6;
  --bg:      #ffffff;
  --bg-soft: #f6f8f7;

  /* Accents */
  --gold:    #c98a16;
  --gold-bg: #fdf4e1;
  --amber:   #b26a00;
  --amber-bg:#fff3e0;
  --blue:    #1565c0;
  --blue-bg: #e9f2fd;

  --radius:   14px;
  --radius-sm: 10px;
  --shadow:   0 1px 2px rgba(20,40,30,.05), 0 8px 24px rgba(20,40,30,.06);
  --shadow-lg:0 12px 40px rgba(20,40,30,.12);
  --maxw: 1120px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; }
.logo svg { display: block; }
.logo .word { font-size: 22px; letter-spacing: .5px; line-height: 1; }
.logo .word b { color: var(--ink); }
.logo .word span { color: var(--green); }

/* ---------- Header ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
header.site .bar {
  display: flex; align-items: center; justify-content: space-between;
  height: 66px;
}
header.site nav { display: flex; align-items: center; gap: 26px; }
header.site nav a {
  color: var(--text); font-size: 14.5px; font-weight: 500;
}
header.site nav a:hover { color: var(--green); text-decoration: none; }
.nav-cta {
  background: var(--green); color: #fff !important;
  padding: 9px 16px; border-radius: 999px; font-weight: 600;
}
.nav-cta:hover { background: var(--green-mid); text-decoration: none !important; }
.menu-btn { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(67,179,106,.16), transparent 60%),
    linear-gradient(180deg, var(--green-tint), #fff 75%);
  border-bottom: 1px solid var(--line);
  padding: 54px 0 40px;
}
.hero h1 {
  font-size: clamp(28px, 4.5vw, 46px); line-height: 1.08;
  color: var(--ink); font-weight: 800; letter-spacing: -.5px;
  max-width: 720px;
}
.hero h1 .hl { color: var(--green); }
.hero .sub {
  margin-top: 14px; font-size: clamp(15px, 2vw, 18px);
  color: var(--muted); max-width: 620px;
}
.trust {
  margin-top: 18px; display: flex; flex-wrap: wrap; gap: 18px;
  font-size: 13px; color: var(--muted);
}
.trust b { color: var(--ink); }

/* ---------- Quote / selector card ---------- */
.quote-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 18px; margin-top: 28px;
}
.quote-grid {
  display: grid; gap: 14px;
  grid-template-columns: 1.1fr 1.1fr 1.3fr auto;
  align-items: end;
}
.field label {
  display: block; font-size: 12px; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: .4px; margin-bottom: 6px;
}
.field select, .field input {
  width: 100%; height: 48px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 0 12px; font-size: 15px;
  font-family: inherit; color: var(--ink); background: #fff;
  appearance: none;
}
.field select { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7670' stroke-width='2.5'><path d='M6 9l6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
.field select:focus, .field input:focus { outline: none; border-color: var(--green-bright); box-shadow: 0 0 0 3px rgba(67,179,106,.18); }
.amount-wrap { position: relative; }
.amount-wrap .cur {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  font-weight: 700; color: var(--muted); pointer-events: none;
}
.amount-wrap input { padding-left: 46px; font-weight: 600; }
.btn-go {
  height: 48px; border: 0; border-radius: var(--radius-sm); cursor: pointer;
  background: var(--green); color: #fff; font-weight: 700; font-size: 15px;
  padding: 0 22px; white-space: nowrap; font-family: inherit;
}
.btn-go:hover { background: var(--green-mid); }

/* ---------- Section scaffolding ---------- */
section.block { padding: 40px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.section-head h2 { font-size: 22px; color: var(--ink); font-weight: 800; letter-spacing: -.3px; }
.section-head .updated { font-size: 13px; color: var(--muted); }
.section-head .updated .dot { display:inline-block; width:8px; height:8px; border-radius:50%; background: var(--green-bright); margin-right:6px; vertical-align: middle; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.35} }
.lede { color: var(--muted); margin-bottom: 18px; max-width: 720px; font-size: 15px; }

/* ---------- Controls (sort/filter) ---------- */
.controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.controls .lbl { font-size: 13px; color: var(--muted); font-weight: 600; margin-right: 2px; }
.chip {
  border: 1px solid var(--line); background: #fff; color: var(--text);
  padding: 8px 14px; border-radius: 999px; font-size: 13.5px; cursor: pointer;
  font-family: inherit; font-weight: 500; transition: all .15s;
}
.chip:hover { border-color: var(--green-bright); color: var(--green); }
.chip.active { background: var(--green); color: #fff; border-color: var(--green); }
.controls .spacer { flex: 1; }

/* ---------- Rate list ---------- */
.rate-head, .rate-row {
  display: grid;
  grid-template-columns: 2.2fr 1.3fr 1fr 1.5fr 1.2fr;
  align-items: center; gap: 12px;
}
.rate-head {
  padding: 0 18px 10px; font-size: 12px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .4px;
}
.rate-head .ta-r, .rate-row .ta-r { text-align: right; }
.rate-list { display: flex; flex-direction: column; gap: 12px; }
.rate-row {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow); position: relative;
  transition: transform .12s, box-shadow .12s, border-color .12s;
}
.rate-row:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.rate-row.best { border-color: var(--green-bright); box-shadow: 0 0 0 2px rgba(67,179,106,.25), var(--shadow); }
.rate-row.sponsored { border-color: var(--gold); background: linear-gradient(180deg, var(--gold-bg), #fff 60%); }
.rate-row.stale { opacity: .92; }

.prov { display: flex; align-items: center; gap: 12px; min-width: 0; }
.prov .ava {
  width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0;
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 15px;
  letter-spacing: .3px;
}
.prov .meta { min-width: 0; }
.prov .name { font-weight: 700; color: var(--ink); font-size: 15.5px; display:flex; align-items:center; gap:7px; flex-wrap: wrap;}
.prov .method { font-size: 12.5px; color: var(--muted); }

.tag {
  font-size: 10.5px; font-weight: 800; letter-spacing: .3px; text-transform: uppercase;
  padding: 2px 7px; border-radius: 6px; white-space: nowrap;
}
.tag.best { background: var(--green); color: #fff; }
.tag.sponsored { background: var(--gold); color: #fff; }
.tag.stale { background: var(--amber-bg); color: var(--amber); }

.rate-val { font-weight: 700; color: var(--ink); font-size: 15.5px; }
.rate-val small { display:block; font-weight:500; color: var(--muted); font-size: 12px; }
.fee-val { font-weight: 600; color: var(--text); }
.fee-val.free { color: var(--green); }

.recv { text-align: right; }
.recv .amt { font-weight: 800; font-size: 18px; color: var(--ink); }
.recv .amt .unit { font-size: 12px; color: var(--muted); font-weight: 600; }
.recv .spark { margin-top: 4px; }
.recv .diff { font-size: 12px; font-weight: 600; }
.recv .diff.pos { color: var(--green); }
.recv .diff.neg { color: #c0392b; }

.send-col { text-align: right; }
.btn-send {
  display: inline-block; background: var(--green); color: #fff !important;
  padding: 10px 18px; border-radius: 10px; font-weight: 700; font-size: 14px;
  border: 0; cursor: pointer; font-family: inherit; white-space: nowrap;
}
.btn-send:hover { background: var(--green-mid); text-decoration: none !important; }
.btn-send.ghost { background: #fff; color: var(--green) !important; border: 1px solid var(--green); }
.send-col .upd { font-size: 11.5px; color: var(--muted); margin-top: 6px; }

.mob-label { display: none; font-size: 11px; text-transform: uppercase; letter-spacing:.4px; color: var(--muted); font-weight: 700; }

/* ---------- Ad slot ---------- */
.ad-slot {
  border: 1px dashed var(--line); border-radius: var(--radius);
  background: repeating-linear-gradient(45deg, #fafbfa, #fafbfa 12px, #f3f5f4 12px, #f3f5f4 24px);
  color: var(--muted); text-align: center; padding: 22px; font-size: 12.5px;
  letter-spacing: .5px; text-transform: uppercase; margin: 24px 0;
}
.ad-slot b { color: var(--text); }

/* ---------- Info cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.card .ico { width: 42px; height: 42px; border-radius: 10px; background: var(--green-light); display:grid; place-items:center; margin-bottom: 12px; }
.card h3 { font-size: 16px; color: var(--ink); margin-bottom: 6px; }
.card p { font-size: 14px; color: var(--muted); }

/* ---------- Corridors strip ---------- */
.corridors { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.corridor-pill {
  display: flex; align-items: center; gap: 10px; padding: 14px;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  box-shadow: var(--shadow); color: var(--text); font-weight: 600;
}
.corridor-pill:hover { border-color: var(--green-bright); text-decoration: none; transform: translateY(-2px); transition: .12s; }
.corridor-pill .flag { font-size: 22px; }
.corridor-pill small { display:block; color: var(--muted); font-weight: 500; font-size: 12px; }

/* ---------- Disclaimer ---------- */
.disclaimer {
  background: var(--green-tint); border: 1px solid var(--green-light);
  border-radius: var(--radius); padding: 16px 18px; font-size: 13px; color: var(--muted);
  display: flex; gap: 12px; align-items: flex-start; margin-top: 12px;
}
.disclaimer svg { flex-shrink: 0; margin-top: 1px; }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--ink); font-size: 15.5px; list-style: none; display:flex; justify-content: space-between; align-items:center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--green); font-weight: 700; font-size: 20px; }
.faq details[open] summary::after { content: "\2013"; }
.faq p { margin-top: 10px; color: var(--muted); font-size: 14.5px; }

/* ---------- Article content ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 24px; color: var(--ink); margin: 30px 0 12px; }
.prose h3 { font-size: 18px; color: var(--ink); margin: 22px 0 8px; }
.prose p { margin-bottom: 14px; color: var(--text); }
.prose ul { margin: 0 0 14px 20px; }
.prose li { margin-bottom: 6px; }

/* ---------- Footer ---------- */
footer.site { background: var(--ink); color: #c7d2cb; margin-top: 50px; padding: 44px 0 26px; }
footer.site .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; }
footer.site h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 12px; }
footer.site a { color: #c7d2cb; display: block; margin-bottom: 8px; font-size: 14px; }
footer.site a:hover { color: #fff; }
footer.site .logo .word b { color: #fff; }
footer.site .blurb { font-size: 13.5px; color: #9aa8a0; margin-top: 12px; max-width: 320px; }
footer.site .legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 30px; padding-top: 18px; font-size: 12.5px; color: #8a978f; display:flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  header.site nav { display: none; }
  header.site nav.open {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 66px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 16px;
  }
  header.site nav.open a { padding: 12px 0; border-bottom: 1px solid var(--line); width: 100%; }
  header.site nav.open .nav-cta { text-align: center; margin-top: 10px; border-bottom: 0; }
  .menu-btn { display: block; }

  .quote-grid { grid-template-columns: 1fr 1fr; }
  .quote-grid .field.amount-field { grid-column: 1 / -1; }
  .btn-go { grid-column: 1 / -1; width: 100%; }

  .cards { grid-template-columns: 1fr; }
  .corridors { grid-template-columns: repeat(2, 1fr); }
  footer.site .cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .rate-head { display: none; }
  .rate-row {
    grid-template-columns: 1fr 1fr; gap: 10px 14px;
    padding: 16px;
  }
  .prov { grid-column: 1 / -1; }
  .mob-label { display: block; margin-bottom: 2px; }
  .rate-col { display: flex; flex-direction: column; }
  .ta-r, .recv, .send-col { text-align: left; }
  .recv .spark { display: none; }
  .send-col { grid-column: 1 / -1; }
  .btn-send { width: 100%; text-align: center; padding: 12px; }
  .send-col .upd { text-align: left; }
}

@media (max-width: 480px) {
  .quote-grid { grid-template-columns: 1fr; }
  .corridors { grid-template-columns: 1fr; }
  footer.site .cols { grid-template-columns: 1fr; }
}
