/* ---------------------------------------------------------------
   Tokens — same palette as docs/mockup/mockup.html ("blueprint ledger")
--------------------------------------------------------------- */
:root {
  --paper: #F2F0EA;
  --surface: #FFFFFF;
  --surface-sunk: #EBE8E1;
  --ink: #1E2124;
  --ink-soft: #5B5F5A;
  --ink-faint: #8B8D87;
  --line: #DEDAD0;
  --line-strong: #C9C4B6;

  --blueprint: #2C4A66;
  --blueprint-strong: #1E3549;
  --blueprint-tint: #E3EAEF;

  --clay: #B1602F;
  --clay-strong: #8F4B23;
  --clay-tint: #F3E4D8;

  --good: #2E7D4F;
  --good-tint: #DFEEE3;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-card: 0 1px 2px rgba(30, 33, 36, .06), 0 1px 1px rgba(30, 33, 36, .04);

  --font-display: system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", sans-serif;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #14171A;
    --surface: #1B1F23;
    --surface-sunk: #121517;
    --ink: #EDEAE2;
    --ink-soft: #A3A69D;
    --ink-faint: #767970;
    --line: #2A2F33;
    --line-strong: #3A4045;

    --blueprint: #8FB2CF;
    --blueprint-strong: #B7D0E4;
    --blueprint-tint: #223140;

    --clay: #E0925C;
    --clay-strong: #EFB081;
    --clay-tint: #3A2A1F;

    --good: #5FBE8B;
    --good-tint: #1C3327;

    color-scheme: dark;
  }
}

/* ---------------------------------------------------------------
   Reset & base
--------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
a { color: var(--blueprint); }
img, svg { max-width: 100%; }
:focus-visible { outline: 2px solid var(--blueprint); outline-offset: 2px; border-radius: 4px; }

.shell { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ---------------------------------------------------------------
   Nav
--------------------------------------------------------------- */
.nav { border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; text-decoration: none; color: inherit; }
.brand-logo { height: 40px; width: auto; display: block; }
.brand-logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
  .brand-logo-light { display: none; }
  .brand-logo-dark { display: block; }
}
.brand-name { font-weight: 700; font-size: 16px; letter-spacing: .01em; }
.nav-ctas { display: flex; align-items: center; gap: 10px; }

/* ---------------------------------------------------------------
   Buttons
--------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; border-radius: var(--radius-sm);
  padding: 9px 16px; font-weight: 600; font-size: 14px; border: 1px solid transparent; white-space: nowrap;
  text-decoration: none; cursor: pointer;
}
.btn-lg { padding: 12px 22px; font-size: 15px; }
.btn-primary { background: var(--blueprint); color: #fff; }
.btn-primary:hover { background: var(--blueprint-strong); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { background: var(--surface-sunk); }
.btn-ghost { background: none; color: var(--ink-soft); }
.btn-ghost:hover { color: var(--ink); }

/* ---------------------------------------------------------------
   Hero
--------------------------------------------------------------- */
.hero {
  padding: 64px 20px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center; gap: 40px; max-width: 1080px; margin: 0 auto;
}
.hero-copy { max-width: 560px; }
.eyebrow {
  display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--clay-strong); background: var(--clay-tint); border-radius: 999px; padding: 4px 12px; margin-bottom: 18px;
}
.hero h1 { font-family: var(--font-display); font-weight: 700; font-size: 42px; line-height: 1.15; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--blueprint); }
.lead { font-size: 17px; color: var(--ink-soft); line-height: 1.6; margin-bottom: 28px; }
.hero-ctas { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.fineprint { font-size: 12.5px; color: var(--ink-faint); }
.hero-art { width: 100%; }
.hero-art svg { display: block; width: 100%; height: auto; }

/* Staggered entrance: house sketch, then the ledger card, each budget-line
   bar filling in turn, then the funding coin and the "on track" seal — the
   sequence mirrors the product's own story (plan the build, track the
   budget, get confirmation), not just decoration. */
@keyframes art-fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes art-pop { 0% { opacity: 0; transform: scale(.5); } 70% { opacity: 1; transform: scale(1.08); } 100% { opacity: 1; transform: scale(1); } }
@keyframes art-reveal { from { clip-path: inset(0 100% 0 0) fill-box; } to { clip-path: inset(0 0% 0 0) fill-box; } }
@keyframes art-draw { from { stroke-dashoffset: 40; } to { stroke-dashoffset: 0; } }

.hero-art .art-house,
.hero-art .art-card-body,
.hero-art .art-row { opacity: 0; animation: art-fade-up .55s ease-out forwards; }
.hero-art .art-house { animation-delay: .05s; }
.hero-art .art-card-body { animation-delay: .4s; }
.hero-art .art-row-1 { animation-delay: .55s; }
.hero-art .art-row-2 { animation-delay: .68s; }
.hero-art .art-row-3 { animation-delay: .81s; }

.hero-art .art-row-fill {
  clip-path: inset(0 100% 0 0) fill-box;
  animation: art-reveal .5s ease-out forwards;
}
.hero-art .art-row-1 .art-row-fill { animation-delay: .75s; }
.hero-art .art-row-2 .art-row-fill { animation-delay: .88s; }
.hero-art .art-row-3 .art-row-fill { animation-delay: 1.01s; }

.hero-art .art-coin,
.hero-art .art-seal {
  opacity: 0; transform-box: fill-box; transform-origin: center;
  animation: art-pop .5s cubic-bezier(.34, 1.56, .64, 1) forwards;
}
.hero-art .art-coin { animation-delay: 1.15s; }
.hero-art .art-seal { animation-delay: 1.3s; }

.hero-art .art-check {
  stroke-dasharray: 40; stroke-dashoffset: 40;
  animation: art-draw .35s ease-out 1.55s forwards;
}

@media (prefers-reduced-motion: reduce) {
  .hero-art * { animation: none !important; opacity: 1 !important; clip-path: none !important; stroke-dashoffset: 0 !important; }
}

/* ---------------------------------------------------------------
   Sections
--------------------------------------------------------------- */
.section { padding: 56px 0; border-top: 1px solid var(--line); }
.section-head { max-width: 620px; margin: 0 auto 36px; text-align: center; }
.section-head h2 { font-family: var(--font-display); font-weight: 700; font-size: 26px; margin-bottom: 10px; }
.section-head p { color: var(--ink-soft); font-size: 15px; line-height: 1.6; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step-visual {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 14px; margin-bottom: 16px; box-shadow: var(--shadow-card);
}
.step-visual svg { display: block; width: 100%; height: auto; }
.step-number { color: var(--clay-strong); }
.step h3 { font-family: var(--font-display); font-weight: 700; font-size: 16px; margin-bottom: 6px; }
.step p { font-size: 14px; color: var(--ink-soft); line-height: 1.55; }

.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 18px; box-shadow: var(--shadow-card); text-align: left;
}
.card-icon {
  width: 36px; height: 36px; border-radius: 9px; background: var(--blueprint-tint); color: var(--blueprint);
  display: flex; align-items: center; justify-content: center; margin-bottom: 12px;
}
.card h3 { font-family: var(--font-display); font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.card p { font-size: 13px; color: var(--ink-soft); line-height: 1.55; }

.free-banner {
  background: var(--blueprint-tint); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 36px 30px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
}
.stamp {
  display: inline-flex; flex-direction: column; align-items: center; gap: 3px; border: 3px solid var(--good);
  border-radius: 10px; padding: 10px 22px 8px; transform: rotate(-3deg); flex: none;
}
.stamp-code { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--good); }
.stamp-label { font-size: 10px; letter-spacing: 1.3px; text-transform: uppercase; color: var(--good); }
.free-body { flex: 1 1 320px; min-width: 240px; }
.free-body h2 { font-family: var(--font-display); font-weight: 700; font-size: 22px; margin-bottom: 8px; }
.free-body p { color: var(--ink-soft); font-size: 14px; line-height: 1.6; max-width: 52ch; }

/* ---------------------------------------------------------------
   Footer
--------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding: 22px 0; }
.footer-inner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--ink-faint); font-size: 12.5px; }
.footer-inner a { color: inherit; }

/* ---------------------------------------------------------------
   Legal pages (mentions-legales.html)
--------------------------------------------------------------- */
.legal { padding: 48px 0 72px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; text-decoration: none; margin-bottom: 28px; }
.legal-header h1 { font-family: var(--font-display); font-weight: 700; font-size: 32px; margin-bottom: 8px; }
.legal-updated { font-size: 12.5px; color: var(--ink-faint); }
.legal-body { max-width: 720px; margin-top: 32px; }
.legal-body h2 { font-family: var(--font-display); font-weight: 700; font-size: 19px; margin: 36px 0 12px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p { font-size: 15px; line-height: 1.65; color: var(--ink-soft); margin-bottom: 12px; }
.legal-body ul { margin: 0 0 12px; padding-left: 20px; }
.legal-body li { font-size: 15px; line-height: 1.65; color: var(--ink-soft); margin-bottom: 4px; }
.legal-body strong { color: var(--ink); }

/* ---------------------------------------------------------------
   Responsive
--------------------------------------------------------------- */
@media (max-width: 860px) {
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { max-width: 560px; margin: 0 auto; }
  .hero-ctas { justify-content: center; }
  .hero-art { max-width: 480px; margin: 8px auto 0; }
}
@media (max-width: 720px) {
  .steps { grid-template-columns: 1fr; gap: 22px; }
  .hero h1 { font-size: 32px; }
}
@media (max-width: 480px) {
  .benefits { grid-template-columns: 1fr; }
  .hero-art { margin-top: 32px; }
  .brand-logo { height: 32px; }
}
@media (max-width: 400px) {
  .brand-logo { height: 24px; }
}
