/* Residential Build Timeline — «Hiladas»: limewash paper, brick red, timeline bars as brick courses. */

@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/bricolage-grotesque-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/bricolage-grotesque-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/bricolage-grotesque-latin-800-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/bricolage-grotesque-latin-ext-800-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --paper: #f7f3ec;
  --sunk: #efe8dc;
  --card: #ffffff;
  --ink: #2b2321;
  --soft: #5f5550;
  --line: #e0d6c8;
  --red: #c62b27;
  --red-dark: #9b1f1c;
  --signal: #f23431;
  --orange: #f38a2c;
  --green: #3f7d4e;
  --slate: #3e5a70;
  --display: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
  --text: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--text); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red-dark); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.05; letter-spacing: -0.01em; margin: 0; }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.2; }
p { margin: 0; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 10; }
.skip:focus { left: 16px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.kicker { font-weight: 600; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); margin-bottom: 14px; }
.muted { color: var(--soft); font-size: 0.95rem; }

/* Course of bars: the brand motif (header, closing band). */
.course {
  height: 16px;
  background:
    linear-gradient(90deg, var(--red-dark) 0 46px, transparent 46px 52px, var(--red-dark) 52px 140px, transparent 140px 146px, var(--red-dark) 146px 180px, transparent 180px 186px, var(--orange) 186px 306px, transparent 306px 312px, var(--red-dark) 312px 370px, transparent 370px 392px) 0 0 / 392px 6px repeat-x,
    linear-gradient(90deg, transparent 0 18px, var(--line) 18px 88px, transparent 88px 94px, var(--line) 94px 148px, transparent 148px 154px, var(--ink) 154px 250px, transparent 250px 256px, var(--line) 256px 300px, transparent 300px 306px, var(--line) 306px 386px, transparent 386px 392px) 0 9px / 392px 6px repeat-x;
}

/* Header */
.top { background: var(--paper); position: relative; z-index: 2; }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 800 1.15rem/1.1 var(--display); }
.nav { display: flex; flex-wrap: wrap; gap: 4px 6px; list-style: none; margin: 0; padding: 0; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--ink); text-decoration: none; font-weight: 500; border-radius: 22px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--sunk); color: var(--red); }

/* Hero */
.hero { padding: 56px 0 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: end; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 4.9rem); line-height: 0.98; }
.hero h1 .line { display: block; }
.hero h1 .accent { color: var(--red); }
.lead { font-size: 1.15rem; color: var(--soft); margin-top: 22px; max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 30px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.facts li { padding: 6px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-weight: 500; font-size: 0.95rem; }
.hero-visual { display: flex; justify-content: center; }
.shot { margin: 0; }
.shot img { border-radius: 26px; border: 6px solid var(--ink); background: var(--ink); box-shadow: 0 18px 40px rgba(43, 35, 33, 0.2); }
.shot-hero { width: min(360px, 78vw); margin-bottom: -120px; position: relative; z-index: 1; }
.shot-hero img { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }

/* Stage courses (decorative, labelled) */
.courses { list-style: none; margin: 0; padding: 150px 0 56px; display: grid; gap: 10px; border-top: 2px solid var(--ink); position: relative; }
.course-row { display: grid; grid-template-columns: minmax(130px, 220px) 1fr; gap: 16px; align-items: center; }
.course-name { font-weight: 600; font-size: 0.95rem; }
.course-track { display: grid; grid-template-columns: repeat(12, 1fr); height: 22px; background: repeating-linear-gradient(90deg, transparent 0 calc(100% / 12 - 1px), var(--line) calc(100% / 12 - 1px) calc(100% / 12)); }
.course-bar { grid-column: calc(var(--s) + 1) / span var(--l); border-radius: 999px; background: var(--slate); }
.course-bar.done { background: var(--green); opacity: 0.55; }
.course-bar.now { background: var(--red); box-shadow: inset 0 0 0 3px var(--ink); }
.course-bar.next { background: var(--orange); opacity: 0.85; }

/* How */
.how { background: var(--ink); color: #fff; padding: 72px 0; }
.how h2 { color: #fff; }
.how .intro { color: #e7ddd6; margin-top: 14px; max-width: 40em; }
.steps { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 14px; }
.step { display: flex; gap: 18px; align-items: flex-start; background: rgba(255, 255, 255, 0.06); border-radius: 999px 18px 18px 999px; padding: 14px 22px 14px 14px; margin-left: calc(var(--i) * 4%); max-width: 820px; }
.step-num { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--signal); font: 800 1.15rem/1 var(--display); color: #fff; }
.step h3 { color: #fff; margin-top: 4px; }
.step p { color: #e7ddd6; margin-top: 4px; }

/* Gallery */
.gallery { padding: 72px 0 40px; }
.strip { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 28px max(20px, calc((100vw - var(--wrap)) / 2 + 20px)) 28px; }
.strip .shot { flex: none; width: min(260px, 62vw); scroll-snap-align: center; }
.strip .shot img { border-width: 5px; border-radius: 22px; }
.strip figcaption { margin-top: 12px; font-weight: 600; text-align: center; }
.strip:focus-visible { outline-offset: -4px; }

/* Features */
.features { padding: 40px 0 72px; }
.tiles { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: 1fr; gap: 18px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.tile-bar { display: block; height: 12px; width: var(--w); border-radius: 999px; background: linear-gradient(90deg, var(--red) 0 60%, var(--orange) 60%); margin-bottom: 18px; }
.tile p { color: var(--soft); margin-top: 8px; }

/* Split */
.split { padding: 0 0 72px; }
.split-grid { display: grid; gap: 18px; }
.split-block { border-radius: 14px; padding: 30px; background: var(--sunk); }
.split-block h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.split-block p { margin-top: 14px; }
.split-block.dark { background: var(--red); color: #fff; }
.split-block.dark a { color: #fff; font-weight: 600; }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.ticks li { padding-left: 34px; position: relative; font-weight: 500; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 22px; height: 8px; border-radius: 4px; background: var(--red); }

/* FAQ */
.faq { padding: 0 0 72px; }
.faq h2 { margin-bottom: 20px; }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; min-height: 52px; display: flex; align-items: center; font-weight: 600; font-size: 1.05rem; padding: 10px 0; }
details p { color: var(--soft); padding-bottom: 18px; }

/* Closing */
.closing { background: var(--red); color: #fff; padding: 48px 0; }
.closing-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.closing h2 { color: #fff; }
.closing p { margin-top: 10px; color: #ffe3df; }
.closing a { color: #fff; }

/* Google Play button */
.play { display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 20px 8px 14px; border-radius: 12px; background: var(--ink); color: #fff; text-decoration: none; }
a.play:hover { color: #fff; background: #000; }
.play-mark { width: 26px; height: 28px; background: conic-gradient(from 210deg, var(--orange), var(--signal), var(--orange)); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.play-text { display: flex; flex-direction: column; line-height: 1.1; }
.play-small { font-size: 0.75rem; letter-spacing: 0.04em; }
.play-big { font: 700 1.2rem/1.1 var(--display); }
.play-soon { opacity: 0.85; cursor: default; }
.closing .play { background: #fff; color: var(--ink); }

/* Footer */
.foot { background: var(--sunk); padding: 36px 0 28px; }
.foot-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.foot-brand { display: flex; gap: 12px; align-items: center; }
.foot-name { font: 800 1.1rem/1.2 var(--display); }
.foot-small { color: var(--soft); font-size: 0.9rem; }
.foot-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot-links a { display: inline-flex; min-height: 44px; align-items: center; }
.foot-note { color: var(--soft); font-size: 0.88rem; margin-top: 22px; border-top: 1px solid var(--line); padding-top: 16px; }

/* Privacy and other pages */
.page { padding: 56px 0 72px; }
.page h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.prose h2 { font-size: 1.45rem; margin-top: 34px; }
.prose p { margin-top: 12px; }
.prose .lead { margin-top: 18px; }

@media (min-width: 720px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .split-grid { grid-template-columns: 1.2fr 1fr; }
}

@media (min-width: 960px) {
  .hero { padding-top: 72px; }
  .hero-grid { grid-template-columns: 1.25fr 0.75fr; }
  .shot-hero { margin-bottom: -170px; }
  .courses { padding-top: 190px; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 560px) {
  .course-row { grid-template-columns: 1fr; gap: 4px; }
  .step { border-radius: 18px; margin-left: 0; }
  .brand span { font-size: 1rem; }
}
