/* Rápido site styles. Palette: butter ground, cornflower accent, coral action. */
:root {
  --butter: #FAF3DC; /* previous, brighter yellow: #FDF6CF */
  --paper: #FFFDF4;
  --accent: #5A79E6;
  --coral: #E3795A;
  --ink: #2D3352;
  --muted: #5F6685;
  --display: "Fraunces", "Georgia", serif;
  --body: "Quicksand", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--butter); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; margin: 0; font-weight: 500; }
img, svg { max-width: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .walk { animation: none !important; } }

h1, h2, h3 { font-family: var(--display); font-weight: 900; font-variation-settings: "SOFT" 100, "opsz" 144; line-height: 1; margin: 0; text-wrap: balance; color: var(--accent); letter-spacing: -0.015em; }
h1 { font-size: clamp(2.9rem, 9vw, 6rem); }
h2 { font-size: clamp(2rem, 5vw, 3.2rem); }
h3 { font-size: 1.35rem; color: var(--ink); }
p { margin: 0; }
a { color: var(--accent); }
strong { font-weight: 700; }

.wrap { width: 100%; max-width: 1000px; margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.center { text-align: center; }
.eyebrow { font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; color: var(--coral); }
.lede { font-size: clamp(1.1rem, 2.1vw, 1.35rem); max-width: 32em; margin-inline: auto; }
.muted { color: var(--muted); }
.prose { max-width: 38em; margin-inline: auto; text-align: left; display: grid; gap: 1.4rem; }
.prose h2 { font-size: 1.6rem; margin-top: 0.6rem; }

.nav { position: sticky; top: 0; z-index: 5; background: var(--butter); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem; }
.brand { font-family: var(--display); font-weight: 900; font-variation-settings: "SOFT" 100; font-size: 1.9rem; color: var(--accent); text-decoration: none; }

.btn { display: inline-flex; align-items: center; font-family: var(--body); font-weight: 700; font-size: 1.05rem; padding: 0.9rem 1.8rem; border-radius: 999px; text-decoration: none; border: 2.5px solid var(--ink); cursor: pointer; box-shadow: 4px 4px 0 var(--ink); transition: transform 120ms ease, box-shadow 120ms ease; }
.btn:hover, .btn:focus-visible { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); outline: none; }
.btn-coral { background: var(--coral); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.95rem; box-shadow: 3px 3px 0 var(--ink); }

section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.stack { display: grid; gap: 1.3rem; justify-items: center; }

.ill { display: block; max-width: 100%; height: auto; filter: url(#wobble); }
.ill * { vector-effect: non-scaling-stroke; }
.walkers { display: flex; justify-content: center; align-items: flex-end; gap: clamp(0.5rem, 4vw, 2.5rem); margin-top: 0.5rem; }
.walkers svg { width: clamp(84px, 18vw, 150px); }
.walk { animation: bob 1.6s ease-in-out infinite; transform-origin: 50% 100%; }
.walk:nth-child(2) { animation-delay: 0.3s; } .walk:nth-child(3) { animation-delay: 0.6s; }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-6px) rotate(1.5deg); } }
.ill-stroke { stroke: var(--accent); fill: none; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.ill-fill { fill: var(--accent); }
.ill-paper { fill: var(--paper); stroke: var(--accent); stroke-width: 4; stroke-linejoin: round; }
.ill-coral { fill: var(--coral); }

.wave { display: block; width: 100%; height: 38px; }
.wave path { fill: var(--paper); }
.wave.flip { transform: scaleY(-1); }
.band { background: var(--paper); }

.points { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.6rem; margin-top: 2rem; }
.point { display: grid; gap: 0.5rem; justify-items: center; text-align: center; min-width: 0; }
.point svg { width: 104px; }
.point p { max-width: 24em; }

.fits { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-top: 1.8rem; }
.fits span { font-weight: 700; font-size: 0.85rem; padding: 0.45rem 1rem; border-radius: 999px; color: #fff; background: var(--accent); }

.form { max-width: 520px; margin: 1.8rem auto 0; display: grid; gap: 0.9rem; text-align: left; }
.form label { display: grid; gap: 0.3rem; font-weight: 700; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; }
.form input { font: inherit; font-size: 1rem; padding: 0.8rem 1rem; border: 2.5px solid var(--ink); border-radius: 16px; background: var(--paper); color: var(--ink); width: 100%; }
.form input:focus { outline: none; box-shadow: 0 0 0 4px rgba(90,121,230,0.3); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
@media (max-width: 480px) { .two { grid-template-columns: 1fr; } }
.note { font-size: 0.85rem; color: var(--muted); }
.hidden { display: none; }

footer { padding-block: 2rem 2.5rem; font-size: 0.85rem; color: var(--muted); background: var(--paper); }
footer .wrap { display: grid; gap: 0.6rem; text-align: center; }
footer a { text-decoration: none; font-weight: 700; }

/* hero: text left, walkers right; stacks on phones */
.hero-section { padding-block: clamp(1.5rem, 4vw, 3.5rem) clamp(2rem, 5vw, 4rem); }
.hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 2rem; align-items: center; }
.hero > div { min-width: 0; }
.hero-text { display: grid; gap: 1.1rem; justify-items: start; }
.hero-text .lede { margin-inline: 0; }
.panel { display: grid; gap: 1.1rem; justify-items: start; }
.panel[hidden] { display: none; }
.hero .walkers { margin-top: 0; }
.hero .walkers svg { width: clamp(80px, 9vw, 140px); }
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; }
  .hero-text, .panel { justify-items: center; text-align: center; }
  .hero-text .lede { margin-inline: auto; }
  .hero .walkers svg { width: clamp(70px, 20vw, 110px); }
}

/* landlord / agency switch */
.switch { display: inline-flex; background: var(--paper); border: 2.5px solid var(--ink); border-radius: 999px; padding: 4px; gap: 4px; }
.switch button { font: inherit; font-weight: 700; font-size: 0.9rem; padding: 0.45rem 1rem; border-radius: 999px; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.switch button[aria-selected="true"] { background: var(--accent); color: #fff; }
.switch button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (max-width: 400px) { .switch button { font-size: 0.8rem; padding: 0.4rem 0.7rem; } }

/* three short lines */
.mini { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; font-weight: 700; }
.mini li { padding-left: 1.6rem; position: relative; }
.mini li::before { content: ""; position: absolute; left: 0; top: 0.42em; width: 0.85rem; height: 0.85rem; border-radius: 50%; background: var(--coral); }
@media (max-width: 760px) { .mini { text-align: left; justify-self: center; } }

/* calculator */
.calc { max-width: 560px; margin: 0 auto 2.6rem; background: var(--butter); border: 2.5px solid var(--ink); border-radius: 24px; padding: 1.3rem 1.3rem 1.1rem; text-align: left; display: grid; gap: 1rem; box-shadow: 6px 6px 0 var(--ink); }
.calc-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 480px) { .calc-inputs { grid-template-columns: 1fr; } }
.calc-inputs label { display: grid; gap: 0.35rem; font-weight: 700; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; min-width: 0; }
.calc-inputs output { color: var(--accent); }
.calc-inputs input[type=number] { font: inherit; font-size: 1.1rem; font-weight: 700; padding: 0.6rem 0.9rem; border: 2.5px solid var(--ink); border-radius: 14px; background: var(--paper); color: var(--ink); width: 100%; }
.calc-inputs input[type=number]:focus { outline: none; box-shadow: 0 0 0 4px rgba(90,121,230,0.3); }
.calc-inputs input[type=range] { width: 100%; accent-color: var(--accent); margin-top: 0.9rem; }
.calc-out { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.6rem; }
.calc-out > div { background: var(--paper); border-radius: 16px; padding: 0.7rem 0.9rem; min-width: 0; }
.calc-out dt { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.calc-out dd { margin: 0.15rem 0 0; font-family: var(--display); font-weight: 900; font-size: 1.5rem; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.calc-out .big { background: var(--accent); }
.calc-out .big dt { color: #fff; }
.calc-out .big dd { color: #fff; }
.calc-out .agency-only { background: var(--coral); }
.calc-out .agency-only dt, .calc-out .agency-only dd { color: #fff; }
.calc-out [hidden] { display: none; }
.calc .note { margin: 0; }

/* calculator in the hero */
.hero { grid-template-columns: 1fr 1fr; }
.hero .calc { margin: 0; width: 100%; }
.walkers-small { margin: 0 auto 1.4rem; }
.walkers-small svg { width: clamp(56px, 8vw, 84px); }
@media (max-width: 760px) { .hero .calc { text-align: left; } }

/* q&a */
#qa { padding-block: clamp(2rem, 5vw, 3.5rem); }
.qa { max-width: 640px; margin: 1.6rem auto 0; display: grid; gap: 0.6rem; text-align: left; }
details { border-radius: 18px; background: var(--paper); padding: 0 1.1rem; border: 2.5px solid var(--ink); }
summary { cursor: pointer; font-weight: 700; font-size: 1.02rem; padding: 0.85rem 0; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--display); font-weight: 900; font-size: 1.4rem; color: var(--coral); line-height: 1; }
details[open] summary::after { content: "–"; }
details p { padding-bottom: 1rem; }

@media (max-width: 760px) { .hero { grid-template-columns: 1fr; } .hero .calc { max-width: 100%; } }

/* Q&A per role */
.qa[hidden] { display: none; }

/* founder */
#why { padding-top: 0; }
.founder { max-width: 680px; margin: 0 auto; background: var(--paper); border: 2.5px solid var(--ink); border-radius: 24px; padding: 1.4rem; box-shadow: 6px 6px 0 var(--ink); display: grid; grid-template-columns: auto 1fr; gap: 1.3rem; align-items: center; text-align: left; }
.founder .avatar { width: 112px; height: 112px; border-radius: 50%; background: var(--butter); }
.founder-text { display: grid; gap: 0.6rem; min-width: 0; }
.founder .sig { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 560px) { .founder { grid-template-columns: 1fr; justify-items: center; text-align: center; } }

/* founder: stacked layout with facts */
.founder { grid-template-columns: 1fr; max-width: 820px; padding: 1.6rem; }
.founder .avatar { width: 72px; height: 72px; }
.facts { list-style: none; padding: 0; margin: 0.2rem 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.8rem; }
.facts li { background: var(--butter); border-radius: 16px; padding: 0.9rem 1rem; font-size: 0.95rem; min-width: 0; }
.facts strong { display: block; font-family: var(--display); font-weight: 900; font-size: 1.15rem; color: var(--accent); margin-bottom: 0.25rem; line-height: 1.15; }
.founder .sources { font-size: 0.78rem; color: var(--muted); }
@media (max-width: 560px) { .founder { text-align: left; justify-items: start; } }

/* calculator figures never overflow their tile */
.calc-out dd { overflow-wrap: anywhere; font-size: clamp(1.15rem, 2.4vw, 1.5rem); }
.calc-out > div { overflow: hidden; }

/* four fact tiles: two by two, one column on phones */
.facts { grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } }

/* wave colour: set on the symbol's own path, since rules scoped through .wave do not reach inside <use> */
.wave-fill { fill: var(--paper); }
.wave { fill: var(--paper); }

/* wider page on large screens */
.wrap { max-width: 1240px; }
.hero { grid-template-columns: 1fr 1.05fr; gap: clamp(1.5rem, 4vw, 4rem); }
.hero-text .lede { max-width: 30em; }

/* larger calculator */
.hero .calc { max-width: none; padding: clamp(1.3rem, 2.4vw, 2.2rem); gap: 1.3rem; border-radius: 28px; }
.calc .eyebrow { font-size: 0.85rem; }
.calc-inputs label { font-size: 0.88rem; }
.calc-inputs input[type=number] { font-size: 1.4rem; padding: 0.75rem 1rem; }
.calc-out { grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.calc-out > div { padding: 1rem 1.1rem; border-radius: 18px; }
.calc-out dt { font-size: 0.8rem; }
.calc-out dd { font-size: clamp(1.4rem, 3vw, 2.5rem); }
.calc-out .agency-only { grid-column: 1 / -1; }
.calc .note { font-size: 0.92rem; }
@media (max-width: 760px) { .hero { grid-template-columns: 1fr; } }
