/* ═══════════════════════════════════════════════════════════════════════
   JOSE CASTILLO LOANS — home page layout
   Shared by index.html and es/index.html. Tokens and shared parts live in
   brand.css; this file is layout only.

   Rebuilt 2026-09-23 as one screen: a headline, a form, the compliance
   footer. Nothing else. The steps, about, reviews, FAQ and closing band
   were cut — every one of them was a reason to scroll away from the box.

   The one device on the page is the mark's roof, drawn over the headline:
   the promise sits under the roof. Everything else stays quiet.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── header: lockup, language, the direct line. No nav — nothing to nav to. */
.head-logo img { width: 196px; }
@media (max-width: 620px) {
  /* brand.css drops the number here to make room for the CTA; this page has
     no CTA in the band, so the number stays. */
  .head-tel { display: block; font-size: .8rem; }
}
@media (max-width: 520px) { .head-logo img { width: 140px; } .head-tel { font-size: .76rem; } }
@media (max-width: 400px) { .head-logo img { width: 128px; } }
/* Measured: lockup, ES and the number share the row down to 340. */
@media (max-width: 339px) { .head-tel { display: none; } }

/* ── the one screen ─────────────────────────────────────────────────── */
.hero { padding: clamp(36px, 6vw, 80px) 0 clamp(48px, 7vw, 96px); }
.hero-grid {
  max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gut);
  display: grid; gap: clamp(32px, 5vw, 64px); grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.15fr .85fr; } }

/* The roof over the headline. Same geometry as the mark (a 44/39 pitch on a
   100-unit square), stretched to the column. It is the only red on the page
   that is not a control. */
.roof-line { width: min(100%, 520px); height: clamp(34px, 4.6vw, 58px); overflow: visible; }
.roof-line path { stroke: var(--red); stroke-width: 5; fill: none; stroke-linecap: butt; stroke-linejoin: miter; }
@media (prefers-reduced-motion: no-preference) {
  .roof-line path { stroke-dasharray: 620; stroke-dashoffset: 620; animation: draw .9s cubic-bezier(.22,.61,.36,1) .1s forwards; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero .eyebrow { margin-top: 18px; }

/* Full ink for the hook, graphite for the turn. Red never tints a headline —
   the stress comes from the ink strength, not a colour. */
.hero h1 {
  margin-top: 16px;
  font-size: clamp(2.5rem, 5.6vw, 4.4rem);
  line-height: .94;
  color: var(--fg);
  max-width: 15ch;
}
.hero h1 em { font-style: normal; color: var(--fg-2); display: block; margin-top: .12em; }

.hero-lede {
  margin-top: 24px; max-width: 46ch;
  font-size: clamp(1.02rem, 1.4vw, 1.15rem); color: var(--fg-2);
}
.hero-lede strong { color: var(--fg); font-weight: 600; }

/* ── the form ───────────────────────────────────────────────────────── */
.lead-card { background: var(--surface); border: 2px solid var(--divider); padding: clamp(22px, 3vw, 34px); }
.lead-card h2 { font-size: 1.3rem; line-height: 1.15; }
.lead-card p.hint { margin-top: 8px; font-size: .88rem; color: var(--fg-2); }

.goal-pick { display: grid; grid-template-columns: 1fr 1fr; margin-top: 20px; border: 1px solid var(--rule); }
.goal-pick button {
  padding: 13px 10px; background: var(--field-bg); border: 0; cursor: pointer;
  font: inherit; font-size: .78rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--fg-2);
  transition: background .12s ease, color .12s ease;
}
.goal-pick button + button { border-left: 1px solid var(--rule); }
.goal-pick button:hover { color: var(--fg); }
.goal-pick button[aria-pressed="true"] { background: var(--red); color: var(--white); }
.goal-pick button[aria-pressed="true"]:focus-visible { outline-color: var(--fg); }

.lead-fields { display: grid; gap: 14px; margin-top: 18px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field > label { font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-2); }
.req { color: var(--red); }
.input-wrap { display: flex; border: 1px solid var(--rule); background: var(--field-bg); }
.input-wrap:focus-within { border-color: var(--fg); box-shadow: inset 0 0 0 1px var(--fg); }
.input-wrap input { flex: 1; min-width: 0; border: 0; background: none; color: var(--fg); padding: 13px 14px; font: inherit; font-size: 1rem; }
.input-wrap input:focus { outline: none; }

/* The consent line is compliance copy and stays readable — not fine print. */
.check { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; font-size: .78rem; color: var(--fg-2); line-height: 1.55; }
.check input { margin-top: 2px; flex: none; width: 19px; height: 19px; accent-color: var(--red); }

.lead-card .btn { width: 100%; margin-top: 18px; }

.err {
  display: none; margin-top: 16px; padding: 14px 16px; border-left: 5px solid var(--red);
  background: var(--ink); color: var(--white); font-size: .9rem; font-weight: 600;
}
.err[data-show="1"] { display: block; }

/* One line under the button: what the form does not do, and the proof. */
.lead-foot {
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--rule);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px;
  font-size: .76rem; color: var(--fg-2);
}
.lead-foot a { color: var(--fg); font-weight: 600; }

/* the sent state, in place of the form */
.sent .tile { width: 52px; height: 52px; margin-bottom: 20px; }
.sent h2 { font-size: 1.6rem; }
.sent p { margin-top: 14px; color: var(--fg-2); font-size: .95rem; }
.sent .call { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--rule); }
.sent .call a, .sent p a { font-weight: 700; color: var(--fg); }

/* ── footer: compliance only ────────────────────────────────────────── */
.site-foot { padding: 40px 0 36px; }
.foot-top { align-items: center; padding-bottom: 22px; }
.foot-logo img { width: 180px; }
.lic { margin-top: 22px; }
