:root {
  --blue: #123f8c;
  --blue-dark: #092e68;
  --blue-light: #dce8f7;
  --paper: #f8f7f2;
  --white: #fff;
  --ink: #15253d;
  --muted: #506078;
  --whatsapp: #1f8f5f;
  --hand: "Patrick Hand", "Comic Sans MS", cursive;
  --sans: "Inter", Arial, sans-serif;
  --shadow: 0 18px 50px rgba(9, 46, 104, .11);
  --border: 2px solid var(--blue-dark);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 18% 25%, rgba(18, 63, 140, .025) 0 1px, transparent 1.5px),
    radial-gradient(circle at 76% 70%, rgba(21, 37, 61, .02) 0 1px, transparent 1.5px),
    linear-gradient(92deg, rgba(255, 255, 255, .4), transparent 45%, rgba(18, 63, 140, .015));
  background-size: 17px 19px, 23px 21px, 100% 100%;
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
svg { display: block; }
.container { width: min(100% - 32px, 1160px); margin-inline: auto; }
.narrow { max-width: 860px; }
.section { padding: 76px 0; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 10px 15px; transform: translateY(-150%); color: var(--white); background: var(--blue-dark); border-radius: 5px; }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; z-index: 50; top: 0; background: rgba(248, 247, 242, .94); border-bottom: 1px solid rgba(9, 46, 104, .14); backdrop-filter: blur(10px); }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; }
.brand-name { color: var(--blue-dark); font: 28px/1 var(--hand); }
.brand-project { margin-top: 4px; color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 22px; border: 2px solid var(--blue-dark); border-radius: 5px 9px 6px 8px; font: 700 15px/1.2 var(--sans); text-align: center; text-decoration: none; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease; }
.button:hover { transform: translateY(-2px) rotate(-.3deg); box-shadow: 4px 5px 0 rgba(9, 46, 104, .2); }
.button:focus-visible, button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #ec9f20; outline-offset: 3px; }
.button-small { min-height: 44px; padding: 10px 14px; color: var(--white); background: var(--blue); font-size: 13px; }
.button-primary { color: var(--white); background: var(--blue); }

.hero { position: relative; overflow: hidden; padding: 58px 0 70px; }
.hero::after { content: ""; position: absolute; z-index: -1; right: -80px; bottom: 15%; width: 240px; height: 240px; border: 2px dashed rgba(18, 63, 140, .15); border-radius: 50%; }
.hero-grid { display: grid; gap: 46px; }
.eyebrow { margin: 0 0 12px; color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.hero h1, h2 { margin: 0; color: var(--blue-dark); font-family: var(--hand); font-weight: 400; letter-spacing: -.01em; line-height: .98; }
.hero h1 { max-width: 750px; font-size: clamp(3rem, 14vw, 5.6rem); }
h2 { font-size: clamp(2.5rem, 10vw, 4.4rem); }
.marked { position: relative; z-index: 0; display: inline-block; white-space: nowrap; }
.marked.underline::after { content: ""; position: absolute; z-index: -1; right: -2%; bottom: .02em; left: -2%; height: .17em; background: #91b7e9; border-radius: 50%; transform: rotate(-1.5deg); }
.marked.circle::after { content: ""; position: absolute; z-index: -1; inset: -.06em -.1em -.02em; border: .025em solid var(--blue); border-radius: 50% 45% 48% 42%; transform: rotate(-2deg); }
.hero-lead { max-width: 650px; margin: 28px 0; color: var(--muted); font-size: 17px; }
.hero-visual { position: relative; max-width: 520px; margin-inline: auto; }
.hero-photo { position: relative; overflow: hidden; min-height: 380px; background: var(--blue-light); border: 2px solid var(--blue); border-radius: 47% 46% 9px 8px; transform: rotate(1deg); }
.hero-photo::after { content: ""; position: absolute; inset: 11px; border: 1.5px dashed rgba(18, 63, 140, .45); border-radius: inherit; pointer-events: none; }
.hero-photo img { width: 100%; height: 100%; min-height: 380px; display: block; object-fit: cover; object-position: 50% 18%; }
.profile-notes { position: relative; z-index: 2; margin: -28px 8px 0; padding: 18px; display: grid; gap: 10px; list-style: none; background: var(--white); border: var(--border); box-shadow: 6px 7px 0 rgba(18, 63, 140, .13); transform: rotate(-1deg); }
.profile-notes li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; }
.profile-notes svg { width: 22px; height: 22px; fill: none; stroke: var(--blue); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.doodle-arrow { position: absolute; right: -10px; bottom: 30px; width: 80px; fill: none; stroke: var(--blue); stroke-linecap: round; stroke-width: 2; transform: rotate(8deg); }

.neighborhood-section { padding: 76px 0; color: var(--white); background: var(--blue-dark); }
.neighborhood-layout { display: grid; gap: 34px; align-items: center; }
.section-intro .eyebrow, .neighborhood-section h2 { color: var(--white); }
.section-intro > p:not(.eyebrow) { max-width: 470px; color: #dce8f7; }
.map-doodle { width: 180px; margin-top: 24px; fill: none; stroke: #8eb5e6; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; opacity: .8; }
.selection-card { position: relative; padding: 30px 20px 24px; color: var(--ink); background: var(--paper); border: 2px solid #061f47; box-shadow: 9px 10px 0 rgba(0, 0, 0, .18); transform: rotate(.25deg); }
.tape { position: absolute; top: -13px; left: 50%; width: 92px; height: 27px; background: rgba(220, 232, 247, .88); transform: translateX(-50%) rotate(-2deg); }
.card-label { margin: 0 0 14px; color: var(--blue-dark); font: 25px/1 var(--hand); }
.neighborhoods { display: grid; gap: 10px; }
.neighborhood-option { min-height: 50px; padding: 11px 14px; display: flex; align-items: center; justify-content: space-between; color: var(--ink); background: var(--white); border: 1.5px solid #b7c4d4; border-radius: 4px 7px 5px 6px; font: 700 15px var(--sans); text-align: left; cursor: pointer; transition: transform .15s ease, background-color .15s ease, border-color .15s ease; }
.neighborhood-option:hover { border-color: var(--blue); transform: translateX(2px); }
.neighborhood-option[aria-pressed="true"] { color: var(--blue-dark); background: var(--blue-light); border: 2px solid var(--blue); transform: rotate(-.3deg); }
.option-check { width: 25px; height: 25px; display: grid; place-items: center; color: transparent; border: 1.5px solid #8696a9; border-radius: 50%; }
[aria-pressed="true"] .option-check { color: var(--white); background: var(--blue); border-color: var(--blue); }
.button-whatsapp { width: 100%; margin-top: 18px; color: var(--white); background: #176f49; border-color: #0c5636; box-shadow: inset 5px 0 0 var(--whatsapp); }
.button-whatsapp svg { width: 23px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.button-whatsapp:disabled { color: #6d7784; background: #e2e4e3; border-color: #aeb4b1; box-shadow: none; cursor: not-allowed; transform: none; }
.selection-note { margin: 14px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; text-align: center; }
.form-status { min-height: 0; margin: 0; color: #8c351d; font-size: 13px; font-weight: 700; text-align: center; }
.form-status:not(:empty) { min-height: 42px; margin-top: 12px; padding: 9px; background: #fff0e9; border: 1px solid #d6a08f; }

.about { background: var(--white); }
.about h2 { margin-bottom: 34px; }
.quick-facts { display: grid; gap: 12px; }
.quick-facts p { margin: 0; padding: 18px 20px; background: var(--paper); border-left: 4px solid var(--blue); }
.trajectory { margin-top: 20px; border-top: 2px solid var(--blue-dark); border-bottom: 2px solid var(--blue-dark); }
.trajectory summary { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--blue-dark); font-weight: 800; cursor: pointer; list-style: none; }
.trajectory summary::-webkit-details-marker { display: none; }
.trajectory summary span { font-size: 24px; transition: transform .2s ease; }
.trajectory[open] summary span { transform: rotate(45deg); }
.trajectory-content { padding: 0 0 18px; color: var(--muted); }

.section-heading { margin-bottom: 34px; }
.cards-grid { display: grid; gap: 18px; }
.priority-card { position: relative; padding: 28px 24px; background: var(--white); border: var(--border); box-shadow: 5px 6px 0 var(--blue-light); }
.priority-card:nth-child(2) { transform: rotate(.4deg); }
.priority-card svg { width: 48px; margin-bottom: 22px; fill: none; stroke: var(--blue); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.priority-card h3, .steps h3 { margin: 0 0 9px; color: var(--blue-dark); font-size: 16px; line-height: 1.25; text-transform: uppercase; }
.priority-card p, .steps p { margin: 0; color: var(--muted); }
.how { background: var(--blue-light); }
.steps { margin: 0; padding: 0; display: grid; list-style: none; }
.steps li { position: relative; padding: 22px 0; display: grid; grid-template-columns: 58px 1fr; gap: 15px; border-bottom: 1px solid rgba(9, 46, 104, .24); }
.steps li:last-child { border-bottom: 0; }
.step-number { color: var(--blue); font: 38px/1 var(--hand); }

.credibility { padding: 24px 0; color: var(--white); background: var(--blue); }
.credibility-list { display: grid; gap: 7px; text-align: center; }
.credibility p { margin: 0; font-size: 13px; }
.final-cta { color: var(--white); background: var(--blue-dark); text-align: center; }
.final-cta-inner { position: relative; max-width: 850px; }
.closing-line { margin: 0 0 12px; color: #bcd3f1; font: 25px/1.2 var(--hand); }
.final-cta h2 { color: var(--white); }
.final-cta p:not(.closing-line) { max-width: 650px; margin: 24px auto; color: #dce8f7; }
.marked.underline.light::after { background: #2d65ad; }
.button-light { color: var(--blue-dark); background: var(--white); border-color: var(--white); }
.rio-doodle { width: 100px; margin: 0 auto 22px; fill: none; stroke: #7fa9df; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }

.privacy { padding: 45px 0; background: #edf1f5; }
.privacy h2 { font: 800 19px/1.2 var(--sans); }
.privacy p { margin-bottom: 0; color: var(--muted); font-size: 14px; }
.site-footer { padding: 48px 0; color: var(--white); background: #061f47; }
.footer-grid { display: grid; gap: 30px; }
.footer-grid p { max-width: 540px; margin: 8px 0; color: #dce8f7; font-size: 13px; }
.footer-name { color: var(--white) !important; font: 32px/1 var(--hand) !important; }
.legal { opacity: .75; }
.site-footer nav { display: grid; align-content: start; gap: 12px; }
.site-footer nav a { min-height: 44px; display: flex; align-items: center; color: var(--white); font-size: 14px; font-weight: 700; }

@media (min-width: 600px) {
  .container { width: min(100% - 48px, 1160px); }
  .neighborhoods { grid-template-columns: 1fr 1fr; }
  .neighborhood-option:last-child { grid-column: 1 / -1; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .priority-card:last-child { grid-column: 1 / -1; }
  .credibility-list { grid-template-columns: repeat(3, 1fr); align-items: center; }
  .credibility p + p { border-left: 1px solid rgba(255, 255, 255, .35); }
  .footer-grid { grid-template-columns: 1fr auto; }
  .site-footer nav { min-width: 220px; }
}

@media (min-width: 850px) {
  .section { padding: 105px 0; }
  .hero { min-height: calc(100vh - 72px); min-height: calc(100svh - 72px); padding: 62px 0; display: grid; align-items: center; }
  .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(330px, .75fr); align-items: center; gap: 60px; }
  .hero h1 { font-size: clamp(4rem, 6.1vw, 5.6rem); }
  .hero-photo, .hero-photo img { min-height: 465px; }
  .neighborhood-layout { grid-template-columns: .85fr 1.15fr; gap: 80px; }
  .selection-card { padding: 38px; }
  .cards-grid { grid-template-columns: repeat(6, 1fr); }
  .priority-card { grid-column: span 2; }
  .priority-card:nth-child(-n + 2) { grid-column: span 3; }
  .priority-card:last-child { grid-column: span 2; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 35px; }
  .steps li { grid-template-columns: 1fr; border-right: 1px solid rgba(9, 46, 104, .24); border-bottom: 0; }
  .steps li:last-child { border-right: 0; }
}

@media (min-width: 1200px) {
  .hero::before { content: "RIO"; position: absolute; z-index: -1; left: -25px; bottom: 4%; color: rgba(18, 63, 140, .035); font: 240px/1 var(--hand); transform: rotate(-8deg); }
}

@media (max-width: 374px) {
  .container { width: min(100% - 24px, 1160px); }
  .header-inner { min-height: 66px; }
  .brand-name { font-size: 24px; }
  .brand-project { font-size: 8px; }
  .button-small { padding: 9px 11px; font-size: 12px; }
  .hero { padding-top: 42px; }
  .hero h1 { font-size: 2.75rem; }
  .marked { white-space: normal; }
  .marked.circle::after { display: none; }
  .hero-photo, .hero-photo img { min-height: 330px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
