/* Movecash site (2026 redesign). Used by views/site_*.erb only; the legacy pages keep main.css. */

:root {
  --teal: #0B8A83;          /* logo teal, main colour */
  --teal-dark: #08615C;
  --teal-soft: #E6F4F3;
  --pink: #EC2960;          /* call to action only */
  --pink-dark: #C81D4F;
  --ink: #15302E;           /* text, dark bands, footer */
  --muted: #5B6B69;
  --line: #E3EAE9;
  --bg: #FFFFFF;
  --bg-soft: #F5F9F8;
  --ok-bg: #DFF5E8;
  --ok-fg: #1E7A45;
  --due-bg: #FDE4EB;
  --radius: 16px;
  --font: 'Plus Jakarta Sans', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Base ---------- */

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

html { scroll-behavior: smooth; }

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

img { max-width: 100%; height: auto; }

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

h1, h2, h3 {
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  background: var(--pink);
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  font-family: inherit;
  padding: 14px 26px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(236, 41, 96, .25);
  text-align: center;
}
.btn:hover, .btn:focus { background: var(--pink-dark); color: #fff; text-decoration: none; }
.btn-sm { padding: 9px 18px; font-size: 15px; box-shadow: none; }
.btn-block { display: block; width: 100%; }

.btn-link { font-weight: 700; color: var(--teal-dark); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }

.site-logo img { display: block; height: 34px; width: auto; }

.site-menu { display: flex; gap: 30px; font-size: 15px; font-weight: 500; }
.site-menu a { color: var(--muted); }
.site-menu a:hover { color: var(--ink); text-decoration: none; }
.site-menu a.active { color: var(--teal-dark); font-weight: 700; }
.site-menu .site-login { display: none; }

.site-nav-right { display: flex; align-items: center; gap: 20px; font-size: 15px; font-weight: 600; }
.site-login-desktop { color: var(--ink); }

.site-burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.site-burger span, .site-burger span:before, .site-burger span:after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
}
.site-burger span:before, .site-burger span:after { content: ""; position: absolute; left: 0; }
.site-burger span:before { top: -6px; }
.site-burger span:after { top: 6px; }

/* ---------- Hero ---------- */

.hero {
  background:
    radial-gradient(1200px 500px at 85% 20%, #D7F0EE 0%, rgba(215, 240, 238, 0) 60%),
    linear-gradient(180deg, var(--bg-soft), var(--bg));
  padding: 72px 0 88px;
  overflow: hidden;
}

.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero-text { min-width: 0; }

.eyebrow {
  display: inline-block;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .02em;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 { font-size: 50px; font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--teal); }

.hero-sub { font-size: 19px; color: var(--muted); margin: 22px 0 32px; max-width: 580px; }

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }

.hero-trust { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--muted); }
.hero-trust i { color: var(--teal); margin-right: 4px; }

/* App illustration (example data) */
.hero-visual { position: relative; height: 520px; }

.phone {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 270px;
  height: 520px;
  border-radius: 40px;
  background: #0F2423;
  padding: 12px;
  box-shadow: 0 30px 60px rgba(8, 97, 92, .25);
}
.phone-screen { background: #F7FAFA; border-radius: 30px; height: 100%; padding: 22px 16px; overflow: hidden; }
.phone-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; font-size: 15px; }
.phone-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--teal-soft); }
.phone-kpi { background: var(--teal); color: #fff; border-radius: 16px; padding: 14px 16px; margin-bottom: 14px; }
.phone-kpi small { opacity: .8; font-size: 12px; }
.phone-kpi div { font-size: 24px; font-weight: 800; }
.phone-kpi .phone-bar { height: 6px; background: rgba(255, 255, 255, .25); border-radius: 6px; margin-top: 8px; }
.phone-bar i { display: block; height: 100%; width: 68%; background: #fff; border-radius: 6px; }
.phone-row {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
.phone-row span { color: var(--muted); }

.tag { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.phone-row .tag-ok { background: var(--ok-bg); color: var(--ok-fg); }
.phone-row .tag-due { background: var(--due-bg); color: var(--pink-dark); }

.float {
  position: absolute;
  background: var(--bg);
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: 0 16px 40px rgba(21, 48, 46, .14);
  font-size: 14px;
  line-height: 1.35;
  display: flex;
  gap: 12px;
  align-items: center;
}
.float small { display: block; color: var(--muted); font-size: 12px; }
.float-icon { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.float-paid { left: -30px; top: 300px; }
.float-paid .float-icon { background: var(--ok-bg); color: var(--ok-fg); }
.float-order { right: -30px; top: 8px; }
.float-order .float-icon { background: var(--teal-soft); color: var(--teal-dark); }
.float-rebuy { right: -10px; bottom: 30px; }
.float-rebuy .float-icon { background: var(--due-bg); color: var(--pink-dark); }

/* ---------- Sections ---------- */

.section { padding: 88px 0; }
.section-soft { background: var(--bg-soft); }
.section-tight { padding-top: 0; }
.section-top-0 { padding-top: 0; }

.section h2 { font-size: 36px; font-weight: 800; margin-bottom: 18px; }

.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-head p { color: var(--muted); font-size: 18px; margin: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split > * { min-width: 0; }
.split p { color: var(--muted); }

/* Flow: clientes > pedidos > pagamentos > estoque > recompra */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; position: relative; }
.flow:before {
  content: "";
  position: absolute;
  top: 32px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--teal) 0 8px, transparent 8px 16px);
}
.flow-step { text-align: center; position: relative; }
.flow-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: var(--bg);
  border: 2px solid var(--teal);
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  position: relative;
}
.flow-step:last-child .flow-icon { background: var(--teal); color: #fff; }
.flow-step h3 { font-size: 18px; margin: 16px 0 6px; }
.flow-step p { font-size: 15px; color: var(--muted); margin: 0; }

/* Brands */
.brands { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.brands li { background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: 15px; }

/* Advantages */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15.5px; margin: 0; }
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
}
.card-price { background: var(--teal-soft); border-color: transparent; }
.card-price h3 { font-size: 26px; }
.card-price p { margin-bottom: 16px; }

/* Testimonial */
.quote { margin: 0; background: var(--teal); color: #fff; border-radius: 28px; padding: 56px; text-align: center; }
.quote figcaption { font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .85; font-size: 13px; }
.quote blockquote { font-size: 26px; font-weight: 600; line-height: 1.45; margin: 18px auto 0; max-width: 760px; }

/* Why Movecash */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.why > div { border-top: 3px solid var(--teal); padding-top: 18px; }
.why h3 { font-size: 17px; margin-bottom: 8px; }
.why p { font-size: 15px; color: var(--muted); margin: 0; }

/* Closing call to action */
.cta-band {
  margin-top: 64px;
  background: var(--ink);
  color: #fff;
  border-radius: 28px;
  padding: 48px 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.section .cta-band h2 { font-size: 30px; margin: 0; }
.cta-band p { margin: 8px 0 0; opacity: .75; }

/* ---------- Inner pages ---------- */

.page-hero { padding: 72px 0 48px; background: linear-gradient(180deg, var(--bg-soft), var(--bg)); }
.page-hero h1 { font-size: 44px; font-weight: 800; max-width: 820px; }
.page-hero .hero-sub { margin-bottom: 0; }
.page-hero-center { text-align: center; }
.page-hero-center h1, .page-hero-center .hero-sub { margin-left: auto; margin-right: auto; }

.prose p { color: var(--muted); }
.prose .lead { color: var(--ink); font-size: 21px; font-weight: 600; line-height: 1.45; }

.split-text { align-items: start; grid-template-columns: 1.4fr 1fr; }

.facts { display: grid; gap: 14px; }
.facts > div { background: var(--teal-soft); border-radius: var(--radius); padding: 20px 24px; }
.facts b { display: block; font-size: 22px; color: var(--teal-dark); }
.facts span { font-size: 15px; color: var(--muted); }

/* Pricing */
.plan {
  max-width: 460px;
  margin: 0 auto;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(21, 48, 46, .10);
  padding: 32px;
}
.plan-head { background: var(--teal); color: #fff; border-radius: 16px; padding: 24px; text-align: center; }
.section .plan-head h2 { font-size: 22px; margin: 0 0 8px; }
.plan-price { margin: 0; font-size: 18px; }
.plan-price b { font-size: 44px; font-weight: 800; letter-spacing: -0.02em; }
.plan-note { margin: 0; opacity: .85; font-size: 14px; }
.plan-terms { text-align: center; font-weight: 700; font-size: 14px; color: var(--teal-dark); margin: 20px 0 8px; }
.plan-list { list-style: none; margin: 0 0 28px; padding: 0; }
.plan-list li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.plan-list li:last-child { border-bottom: 0; }
.plan-list i { color: var(--teal); margin-top: 5px; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary {
  cursor: pointer;
  list-style: none;
  font-size: 18px;
  font-weight: 700;
  position: relative;
  padding-right: 36px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:after {
  content: "\f067"; /* fa-plus */
  font-family: FontAwesome;
  font-weight: normal;
  position: absolute;
  right: 4px;
  top: 2px;
  color: var(--pink);
}
.faq details[open] summary:after { content: "\f068"; /* fa-minus */ }
.faq details p { color: var(--muted); margin: 12px 0 0; }
.faq-more { margin-top: 28px; color: var(--muted); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: start; }
.contact-grid > * { min-width: 0; }

.contact-form { background: var(--bg); border: 1px solid var(--line); border-radius: 24px; padding: 32px; display: grid; gap: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal); background: var(--bg); box-shadow: 0 0 0 3px var(--teal-soft); }
.contact-form .btn { justify-self: start; }
.contact-form .form_status p { margin: 0; }

.contact-side { display: grid; gap: 20px; }
.contact-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.contact-card h2 { font-size: 20px; margin-bottom: 8px; }
.contact-card p { color: var(--muted); }
.contact-card p:last-child { margin-bottom: 0; }
.contact-card-soft { background: var(--bg-soft); border-color: transparent; }
.contact-number { font-size: 22px; font-weight: 800; color: var(--ink); }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: rgba(255, 255, 255, .75); font-size: 15px; padding: 56px 0 28px; }
.site-footer a { color: #fff; }
.site-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; align-items: start; }
.site-footer-brand img { height: 30px; width: auto; margin-bottom: 14px; }
.site-footer-brand p { margin-bottom: 8px; }
.site-footer-links { display: grid; gap: 8px; }
.site-footer-apps { display: flex; flex-wrap: wrap; gap: 10px; }
.site-footer-apps img { display: block; height: 40px; width: auto; }
.site-footer-legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; }
.site-release { opacity: .5; margin-left: 6px; }

/* ---------- Tablet ---------- */

@media (max-width: 1024px) {
  .hero h1 { font-size: 42px; }
  .why { grid-template-columns: repeat(2, 1fr); }
  .site-footer-grid { grid-template-columns: 1fr 1fr; }
  .site-footer-apps { grid-column: 1 / -1; }
}

/* ---------- Phone ---------- */

@media (max-width: 860px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }

  .site-nav { height: 64px; gap: 12px; }
  .site-logo img { height: 28px; }
  .site-login-desktop { display: none; }
  .site-burger { display: inline-flex; }
  .site-nav-right { gap: 10px; }

  .site-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(21, 48, 46, .08);
    padding: 8px 18px 16px;
    font-size: 17px;
  }
  .site-menu.open { display: flex; }
  .site-menu a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .site-menu a:last-child { border-bottom: 0; }
  .site-menu .site-login { display: block; color: var(--ink); font-weight: 600; }

  .hero { padding: 40px 0 56px; }
  .hero-grid, .split, .split-text, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero h1 { font-size: 34px; }
  .hero-sub { font-size: 17px; }
  .hero-actions .btn { display: block; width: 100%; }
  .hero-actions { justify-content: center; }

  .hero-visual { height: 440px; max-width: 420px; margin: 0 auto; width: 100%; }
  .phone { width: 230px; height: 440px; }
  .float-paid { left: 0; top: 250px; }
  .float-order { right: 0; }
  .float-rebuy { right: 0; bottom: 20px; }

  .section { padding: 56px 0; }
  .section h2 { font-size: 28px; }
  .section-tight, .section-top-0 { padding-top: 0; }
  .section-head { margin-bottom: 32px; }

  .flow { grid-template-columns: 1fr; gap: 0; }
  .flow:before {
    top: 10px;
    bottom: 10px;
    left: 31px;
    right: auto;
    width: 2px;
    height: auto;
    background: repeating-linear-gradient(180deg, var(--teal) 0 8px, transparent 8px 16px);
  }
  .flow-step { display: flex; align-items: flex-start; gap: 16px; text-align: left; padding-bottom: 22px; }
  .flow-icon { flex: 0 0 64px; }
  .flow-step h3 { margin: 8px 0 2px; }

  .cards, .why { grid-template-columns: 1fr; }

  .quote { padding: 36px 24px; border-radius: 22px; }
  .quote blockquote { font-size: 20px; }

  .cta-band { flex-direction: column; text-align: center; padding: 36px 24px; border-radius: 22px; margin-top: 48px; }
  .cta-band .btn { width: 100%; }

  .page-hero { padding: 40px 0 32px; }
  .page-hero h1 { font-size: 32px; }

  .plan { padding: 22px; }
  .plan-price b { font-size: 38px; }

  .contact-form { padding: 22px; }
  .field-row { grid-template-columns: 1fr; }
  .contact-form .btn { justify-self: stretch; }

  .site-footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
