:root {
  --canvas: #F7F3EA;
  --surface: #FFFDFC;
  --surface-alt: #EEF6F4;
  --surface-blue: #EDF3FA;
  --surface-warm: #FFF0E7;
  --sidebar: #0B3D46;
  --sidebar-hover: #14545F;
  --sidebar-active: #1E6873;
  --text: #183238;
  --muted: #587079;
  --primary: #E86F45;
  --primary-hover: #D65E36;
  --primary-pressed: #B94B29;
  --border: #D6E2DF;
  --border-strong: #AFC7C2;
  --success: #2F7D63;
  --focus: #3C83A6;
  --shadow: 0 18px 50px rgba(11, 61, 70, 0.10);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--canvas);
  color: var(--text);
  line-height: 1.6;
}

a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; }

.container {
  width: min(1140px, calc(100% - 40px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 1000;
  background: var(--surface);
  padding: 10px 14px;
  border-radius: 10px;
}
.skip-link:focus { left: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(247, 243, 234, 0.90);
  border-bottom: 1px solid rgba(175, 199, 194, 0.65);
}

.nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--sidebar);
  color: #fff;
  box-shadow: 0 8px 20px rgba(11, 61, 70, 0.18);
  font-size: 20px;
}
.brand-mark::after { content: "F"; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 650;
  font-size: 0.95rem;
}
.nav-links a:hover { color: var(--sidebar); }

.nav-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 14px;
  padding: 12px 18px;
  min-height: 46px;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  transition: transform .16s ease, background-color .16s ease, box-shadow .16s ease;
}
.nav-cta,
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 24px rgba(232, 111, 69, 0.24);
}
.nav-cta:hover,
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); }
.nav-cta:active,
.btn-primary:active { background: var(--primary-pressed); transform: translateY(0); }
.btn-secondary {
  background: var(--surface);
  color: var(--sidebar);
  border: 1px solid var(--border-strong);
}
.btn-secondary:hover { background: var(--surface-alt); transform: translateY(-1px); }

.hero {
  padding: 76px 0 54px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 54px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--success);
  padding: 7px 12px;
  border-radius: 999px;
  font-size: .84rem;
  font-weight: 800;
}
.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--success);
}
h1 {
  margin: 18px 0 18px;
  font-size: clamp(2.45rem, 6vw, 4.9rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
  max-width: 760px;
}
.hero p {
  margin: 0;
  max-width: 650px;
  color: var(--muted);
  font-size: clamp(1.02rem, 2vw, 1.18rem);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.hero-note {
  margin-top: 18px;
  font-size: .9rem;
  color: var(--muted);
}

.app-preview {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 14px;
  box-shadow: var(--shadow);
}
.app-shell {
  min-height: 420px;
  display: grid;
  grid-template-columns: 118px 1fr;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.preview-sidebar {
  background: var(--sidebar);
  color: #fff;
  padding: 22px 14px;
}
.preview-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .86rem;
  font-weight: 800;
  margin-bottom: 26px;
}
.preview-logo span:first-child {
  width: 30px;
  height: 30px;
  background: var(--primary);
  border-radius: 10px;
  display: grid;
  place-items: center;
}
.preview-nav-item {
  height: 36px;
  border-radius: 10px;
  margin: 7px 0;
  background: rgba(255,255,255,.08);
}
.preview-nav-item.active { background: var(--sidebar-active); }
.preview-main {
  padding: 24px;
  background: var(--canvas);
}
.preview-topline {
  width: 58%;
  height: 18px;
  border-radius: 7px;
  background: var(--text);
  opacity: .9;
}
.preview-subline {
  width: 72%;
  height: 10px;
  margin-top: 11px;
  border-radius: 99px;
  background: var(--border-strong);
}
.preview-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}
.preview-card {
  min-height: 112px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 17px;
  padding: 16px;
}
.preview-card.orange { background: var(--surface-warm); }
.preview-card.blue { background: var(--surface-blue); }
.preview-card.green { background: var(--surface-alt); }
.preview-chip {
  width: 42px;
  height: 10px;
  border-radius: 999px;
  background: var(--primary);
  margin-bottom: 16px;
}
.preview-line {
  height: 9px;
  border-radius: 99px;
  background: var(--border-strong);
  margin: 8px 0;
}
.preview-line.short { width: 62%; }
.preview-action {
  margin-top: 16px;
  width: 52%;
  height: 34px;
  border-radius: 11px;
  background: var(--primary);
}
.preview-badge {
  position: absolute;
  right: -14px;
  bottom: 22px;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(11, 61, 70, 0.12);
  font-size: .84rem;
  font-weight: 800;
  color: var(--success);
}

.section { padding: 68px 0; }
.section-tight { padding: 44px 0; }
.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}
.section-heading h2 {
  margin: 0 0 10px;
  font-size: clamp(1.95rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}
.section-heading p { margin: 0; color: var(--muted); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 8px 26px rgba(11, 61, 70, 0.04);
}
.card h3 { margin: 14px 0 8px; line-height: 1.2; }
.card p { margin: 0; color: var(--muted); }
.icon-box {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--surface-alt);
  color: var(--sidebar);
  font-weight: 900;
  font-size: 1.15rem;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.step {
  position: relative;
  padding: 22px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.step-number {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--sidebar);
  color: #fff;
  font-weight: 900;
}
.step h3 { margin: 14px 0 8px; font-size: 1rem; }
.step p { margin: 0; color: var(--muted); font-size: .94rem; }

.plan-wrap {
  display: grid;
  grid-template-columns: .88fr 1.12fr;
  gap: 26px;
  align-items: stretch;
}
.plan-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.plan-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.035em;
  line-height: 1.08;
}
.plan-copy p { margin: 0; color: var(--muted); }
.price-card {
  background: var(--sidebar);
  color: #fff;
  border-radius: 28px;
  padding: 30px;
  box-shadow: 0 22px 55px rgba(11, 61, 70, 0.2);
}
.plan-label {
  color: #BFE6DE;
  font-weight: 800;
  font-size: .9rem;
}
.price {
  margin: 12px 0 6px;
  font-size: clamp(2.7rem, 7vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.055em;
  font-weight: 900;
}
.price small { font-size: 1rem; letter-spacing: 0; color: #CDE4E0; }
.plan-list {
  list-style: none;
  padding: 0;
  margin: 22px 0;
  display: grid;
  gap: 11px;
}
.plan-list li {
  display: flex;
  gap: 10px;
  color: #E8F4F1;
}
.plan-list li::before {
  content: "✓";
  color: #F6B69D;
  font-weight: 900;
}
.price-card .btn-primary { width: 100%; }
.plan-fineprint {
  margin-top: 14px;
  color: #BFD6D2;
  font-size: .84rem;
}

.legal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.legal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px;
}
.legal-card h3 { margin: 0 0 7px; }
.legal-card p { margin: 0 0 12px; color: var(--muted); }
.text-link { color: var(--focus); font-weight: 800; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

.site-footer {
  margin-top: 30px;
  background: var(--sidebar);
  color: #E9F5F2;
  padding: 34px 0;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}
.footer-muted { color: #BFD6D2; font-size: .9rem; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: #D7ECE8; text-decoration: none; font-weight: 700; }
.footer-links a:hover { color: #fff; }

.legal-page {
  padding: 64px 0 90px;
}
.legal-page article {
  max-width: 860px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: clamp(26px, 6vw, 52px);
  box-shadow: var(--shadow);
}
.legal-page h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.legal-page h2 { margin-top: 32px; line-height: 1.2; }
.legal-page p, .legal-page li { color: var(--muted); }
.legal-page strong { color: var(--text); }
.back-link {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--focus);
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 900px) {
  .hero-grid, .plan-wrap { grid-template-columns: 1fr; }
  .hero { padding-top: 54px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .how-grid { grid-template-columns: 1fr 1fr; }
  .app-preview { max-width: 660px; margin: 0 auto; }
}

@media (max-width: 680px) {
  .container { width: min(100% - 28px, 1140px); }
  .nav { min-height: 66px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .nav-cta { padding: 10px 13px; font-size: .86rem; }
  .brand { font-size: .96rem; }
  .brand-mark { width: 38px; height: 38px; }
  .hero { padding: 42px 0 34px; }
  .feature-grid, .how-grid, .legal-grid { grid-template-columns: 1fr; }
  .app-shell { grid-template-columns: 82px 1fr; min-height: 360px; }
  .preview-main { padding: 16px; }
  .preview-sidebar { padding: 16px 10px; }
  .preview-logo span:last-child { display: none; }
  .preview-cards { grid-template-columns: 1fr; }
  .preview-card:nth-child(3), .preview-card:nth-child(4) { display: none; }
  .preview-badge { right: 8px; bottom: 10px; }
  .section { padding: 50px 0; }
  .footer-grid { flex-direction: column; }
}

/* Download reuses the existing palette, cards and responsive grids. */
[hidden] { display: none !important; }
#download, #instalacao { scroll-margin-top: 100px; }
.download-card p { margin-top: 12px; }
.download-card .hero-actions { align-items: center; }
.download-help { margin-top: 28px; }
.download-help summary { cursor: pointer; font-weight: 800; }
.btn:disabled { cursor: not-allowed; opacity: .75; }
.btn:disabled:hover { transform: none; }
.plan-download-note { color: #E8F4F1; }
.plan-download-note a { color: inherit; }
