/* ============================================================================
   ROA · Plataforma para independientes
   Design language: warm editorial fintech — cream canvas, deep-green ink,
   emerald brand, gold accent. Deliberately NOT the generic dark-purple look.
   ========================================================================== */

:root {
  --cream:      #FBFAF6;
  --cream-2:    #F4F1E9;
  --ink:        #14231C;   /* deep green-black — headings, dark band */
  --ink-soft:   #38473F;
  --muted:      #5C6B62;
  --line:       #E7E3D8;
  --white:      #FFFFFF;

  --brand:      #0E7C5A;   /* confident emerald */
  --brand-700:  #0A6349;
  --brand-050:  #E6F2ED;
  --gold:       #E39B0C;   /* warm accent — "cobra" */
  --gold-050:   #FBF1DA;
  --danger:     #B4442F;

  --radius:     16px;
  --radius-sm:  10px;
  --shadow:     0 1px 2px rgba(20,35,28,.05), 0 12px 32px -12px rgba(20,35,28,.14);
  --shadow-lg:  0 24px 60px -20px rgba(20,35,28,.28);
  --maxw:       1120px;
  --font-body:  'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Fraunces', 'Georgia', serif;
}

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

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

.hidden { display: none !important; }

/* ---- Typographic scale --------------------------------------------------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.2rem; }
.eyebrow {
  font-family: var(--font-body); font-weight: 600; font-size: .78rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--brand);
}
.lead { font-size: 1.18rem; color: var(--ink-soft); }

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: .85rem 1.5rem; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px -8px rgba(14,124,90,.6); }
.btn-primary:hover { background: var(--brand-700); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-gold { background: var(--gold); color: #2a1e00; box-shadow: 0 8px 20px -8px rgba(227,155,12,.55); }
.btn-gold:hover { filter: brightness(1.04); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }

/* ---- Nav ----------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(251,250,246,.82); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.1rem; }
.brand .mark {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: var(--ink); color: var(--gold); font-family: var(--font-display); font-weight: 700;
}
.nav-links { display: flex; align-items: center; gap: 1.8rem; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: .95rem; }
.nav-links a:hover { color: var(--ink); }
@media (max-width: 760px){ .nav-links .nav-hide { display: none; } }

/* ---- Hero ---------------------------------------------------------------- */
.hero { padding: 72px 0 48px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { margin: 18px 0 20px; }
.hero h1 .u { background: linear-gradient(transparent 62%, var(--gold-050) 62%); padding: 0 .06em; }
.hero .lead { max-width: 34ch; }
.hero-cta { display: flex; gap: 14px; margin: 30px 0 22px; flex-wrap: wrap; }
.trust { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  font-size: .82rem; font-weight: 600; color: var(--ink-soft);
  background: var(--white); border: 1px solid var(--line); padding: .35rem .8rem; border-radius: 999px;
}
.pill::before { content: "✓"; color: var(--brand); font-weight: 800; margin-right: .4rem; }

/* Hero visual — a stylised "get paid" card stack */
.hero-art { position: relative; min-height: 360px; }
.card-fx {
  position: absolute; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 22px;
}
.card-invoice { inset: 20px 40px auto 0; }
.card-invoice .row { display: flex; justify-content: space-between; font-size: .9rem; color: var(--muted); padding: .35rem 0; border-bottom: 1px dashed var(--line); }
.card-invoice .row b { color: var(--ink); font-weight: 600; }
.card-invoice .total { border: none; margin-top: .4rem; font-size: 1rem; }
.card-invoice .total b { color: var(--brand); }
.card-invoice .tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--brand-700); background: var(--brand-050); padding: .25rem .6rem; border-radius: 999px; margin-bottom: 12px; }
.card-paid {
  right: 8px; bottom: 24px; display: flex; align-items: center; gap: 12px;
  background: var(--ink); color: #fff; border: none; padding: 16px 20px;
}
.card-paid .dot { width: 40px; height: 40px; border-radius: 12px; background: var(--gold); color: #2a1e00; display: grid; place-items: center; font-size: 1.3rem; }
.card-paid small { display: block; color: #9db1a6; font-size: .74rem; }
.card-paid b { font-size: 1.1rem; }

@media (max-width: 900px){
  .hero .wrap { grid-template-columns: 1fr; gap: 28px; }
  .hero-art { min-height: 300px; order: 2; }
}

/* ---- Section shell ------------------------------------------------------- */
.section { padding: 76px 0; }
.section-head { max-width: 620px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin: 12px 0 14px; }

/* ---- How it works -------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow); position: relative;
}
.step .n {
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--brand);
  width: 42px; height: 42px; border-radius: 12px; background: var(--brand-050);
  display: grid; place-items: center; margin-bottom: 18px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .96rem; }
@media (max-width: 820px){ .steps { grid-template-columns: 1fr; } }

/* ---- Benefits ------------------------------------------------------------ */
.benefits { background: var(--cream-2); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.benefit { padding: 26px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.benefit .ic { font-size: 1.5rem; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--gold-050); margin-bottom: 16px; }
.benefit h3 { font-size: 1.08rem; margin-bottom: 6px; }
.benefit p { color: var(--muted); font-size: .93rem; }
@media (max-width: 820px){ .grid-3 { grid-template-columns: 1fr; } }

/* ---- Assurance band (the quiet compliance promise) ----------------------- */
.assure { background: var(--ink); color: #ECF3EF; }
.assure .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.assure h2 { color: #fff; }
.assure .lead { color: #A9BBB1; }
.assure ul { list-style: none; margin-top: 20px; display: grid; gap: 14px; }
.assure li { display: flex; gap: 12px; align-items: flex-start; font-size: 1rem; }
.assure li::before { content: "✓"; color: var(--gold); font-weight: 800; }
.assure .note { margin-top: 22px; font-size: .82rem; color: #7f9389; }
@media (max-width: 820px){ .assure .wrap { grid-template-columns: 1fr; gap: 24px; } }

/* ---- FAQ ----------------------------------------------------------------- */
.faq { display: grid; gap: 12px; max-width: 760px; margin: 0 auto; }
details.qa { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 22px; }
details.qa summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after { content: "+"; color: var(--brand); font-size: 1.4rem; font-weight: 400; line-height: 1; }
details.qa[open] summary::after { content: "−"; }
details.qa p { color: var(--muted); margin-top: 12px; font-size: .96rem; }

/* ---- Final CTA ----------------------------------------------------------- */
.cta-final { text-align: center; }
.cta-final .box { background: linear-gradient(160deg, var(--brand) 0%, var(--brand-700) 100%); color: #fff; border-radius: 28px; padding: 60px 32px; box-shadow: var(--shadow-lg); }
.cta-final h2 { color: #fff; }
.cta-final p { color: #CDE6DB; max-width: 46ch; margin: 12px auto 26px; }

/* ---- Footer -------------------------------------------------------------- */
.footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--muted); font-size: .9rem; }
.footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }

/* ============================================================================
   Auth modal
   ========================================================================== */
.modal-scrim {
  position: fixed; inset: 0; z-index: 90; background: rgba(20,35,28,.5);
  backdrop-filter: blur(3px); display: grid; place-items: center; padding: 20px;
}
.modal {
  width: 100%; max-width: 420px; background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 32px 30px; position: relative;
}
.modal .close { position: absolute; top: 14px; right: 16px; background: none; border: none; font-size: 1.5rem; color: var(--muted); cursor: pointer; line-height: 1; }
.modal h3 { font-size: 1.5rem; margin-bottom: 6px; }
.modal .sub { color: var(--muted); font-size: .95rem; margin-bottom: 22px; }

label { display: block; font-size: .84rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
.field {
  width: 100%; padding: .8rem .9rem; margin-bottom: 16px;
  background: var(--cream); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  color: var(--ink); font-size: 1rem; font-family: inherit; transition: border-color .15s;
}
.field:focus { outline: none; border-color: var(--brand); background: #fff; }
.field::placeholder { color: #9aa79f; }

.status { font-size: .88rem; margin-top: 4px; min-height: 1.2em; }
.status.err { color: var(--danger); }
.status.ok  { color: var(--brand-700); }
.status.info { color: var(--muted); }

.fine { font-size: .78rem; color: var(--muted); margin-top: 14px; text-align: center; }

/* ============================================================================
   Dashboard (post-login)
   ========================================================================== */
.dash { min-height: 100vh; background: var(--cream-2); padding: 40px 0 80px; }
.dash-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; flex-wrap: wrap; gap: 12px; }
.dash-head .who { font-size: .95rem; color: var(--muted); }
.dash-head .who b { color: var(--ink); }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; max-width: 640px; }
.panel h2 { font-size: 1.6rem; margin-bottom: 6px; }
.panel .sub { color: var(--muted); margin-bottom: 24px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 560px){ .two-col { grid-template-columns: 1fr; } }

.badge-ok { display: inline-flex; align-items: center; gap: 8px; background: var(--brand-050); color: var(--brand-700); font-weight: 600; font-size: .9rem; padding: .5rem .9rem; border-radius: 999px; }
.done-card { text-align: center; padding: 10px 0; }
.done-card .big { font-size: 3rem; margin-bottom: 8px; }
.done-card h2 { margin-bottom: 8px; }
.done-card p { color: var(--muted); margin-bottom: 20px; }
.receipt { text-align: left; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; font-size: .82rem; color: var(--muted); margin-top: 18px; }
.receipt div { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.receipt code { font-family: ui-monospace, monospace; color: var(--ink-soft); word-break: break-all; }
