/* Hallmark · shape: Narrative Workflow · genre: modern-minimal · theme: Furrow (deal 3/3, seed crm-con-inteligencia-artificial-cf00·194d533e·2026-11-17·r0) · brand: Habitix (spec 2026-11-17) · job: sign up · draw: fc7d36
 * hero: Stage, the real Lectura con IA capture on 7 columns · nav: edge-aligned bar, logo, four section links and one quiet action, a menu under 60rem · footer: mast, the brand signature large over one line and the links · imagery: screenshots 9 (user supplied, cropped) · signature: the Para hacer primero list from the product, and the brand thread tying conversation, contact, property and next step
 * axes: light/grotesk-sans/warm · posture: committed (orange field band, cacao band; accent stays a fill with cacao on it) · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R4 V4 · weakest: S, a CRM page could drift generic; every head and caption uses the product's own nouns (ficha, bandeja, cartera, boleto, escritura) and the demo's own people */
/* Hallmark · waive 77 · five accordion rows across the full container, ruled top and bottom · the Preguntas render measures only the short questions; each answer opens under its row */
/* Hallmark · dismissed 58 · the 900px window at y 1200 straddles the thread diagram and the six feature rows, two sections counted together at 88 words */
@import url("./tokens.css");
@import url("./base.css");

:root {
  --nav-h: 76px;
  --hero-max: 960px;
  --stage-max: 720px;
  --frame-h: 600px;
}

/* ---------- Skip link ---------- */
.skip { position: absolute; left: var(--space-md); top: calc(-1 * var(--space-3xl)); z-index: var(--z-toast); padding: var(--space-xs) var(--space-md); background: var(--color-ink); color: var(--color-paper); border-radius: var(--radius-pill); }
.skip:focus-visible { top: var(--space-md); }

/* ---------- Type ---------- */
body { line-height: 1.5; }
h1, h2, h3 { color: var(--color-ink); }
h1 { line-height: 1.12; max-width: 12ch; }
h2 { line-height: 1.12; }
.lead { color: var(--color-ink-2); }
a { text-decoration-color: var(--color-accent); }

/* ---------- Buttons: moulded keys ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: 52px; padding: 0 var(--space-lg); border: var(--rule-hair) solid color-mix(in oklab, var(--color-ink) 28%, transparent); border-radius: var(--radius-pill); background: var(--color-paper-2); color: var(--color-ink); font: 600 var(--text-md)/1 var(--font-body); white-space: nowrap; text-decoration: none; cursor: pointer; box-shadow: inset 0 1px 0 var(--color-paper-2), 0 1px 1px var(--color-rule); transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn:hover { background: var(--color-paper-3); border-color: color-mix(in oklab, var(--color-ink) 45%, transparent); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; transition: none; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn[aria-busy="true"] { cursor: progress; }
.btn--primary { background: var(--color-accent); color: var(--color-accent-ink); border-color: color-mix(in oklab, var(--color-accent) 70%, var(--color-ink)); box-shadow: inset 0 1px 0 color-mix(in oklab, var(--color-paper-2) 40%, transparent), inset 0 -1px 0 color-mix(in oklab, var(--color-ink) 14%, transparent); }
.btn--primary:hover { background: color-mix(in oklab, var(--color-accent) 88%, var(--color-ink)); border-color: color-mix(in oklab, var(--color-accent) 60%, var(--color-ink)); }
.btn--quiet { background: transparent; box-shadow: none; }
.btn--quiet:hover { background: var(--color-paper-3); }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: var(--z-sticky-nav); background: color-mix(in oklab, var(--color-paper) 92%, transparent); backdrop-filter: blur(10px); border-bottom: var(--rule-hair) solid var(--color-rule); }
.nav__bar { display: flex; align-items: center; gap: var(--space-xl); min-height: var(--nav-h); }
.nav__logo { display: block; flex-shrink: 0; border-radius: var(--radius-pill); }
.nav__logo img { width: 150px; height: auto; }
.nav__links { display: flex; gap: var(--space-lg); margin-left: auto; }
.nav__links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--color-ink-2); text-decoration: none; white-space: nowrap; border-radius: var(--radius-pill); transition: color var(--dur-short) var(--ease-out); }
.nav__links a:hover { color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-accent); text-decoration-thickness: 2px; text-underline-offset: 0.3em; }
.nav__links a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.nav__end { display: flex; align-items: center; gap: var(--space-xs); }
.nav__cta { min-height: 44px; }
.nav__toggle { display: none; min-height: 44px; padding: 0 var(--space-md); border: var(--rule-hair) solid color-mix(in oklab, var(--color-ink) 28%, transparent); border-radius: var(--radius-pill); background: transparent; color: var(--color-ink); font-weight: 600; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out); }
.nav__toggle:hover { background: var(--color-paper-3); }
.nav__toggle:active { transform: translateY(1px); }
.nav__toggle:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

/* ---------- Product captures ---------- */
.shot { margin: 0; border-radius: var(--radius-entry); background: var(--color-screen); box-shadow: 0 0 0 1px var(--color-ink), var(--shadow-lift); overflow: hidden; }
.shot > img { width: 100%; height: auto; }
.shot[data-slot] > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left top; filter: none; }

/* ---------- Hero: Stage ---------- */
.hero { display: grid; align-items: center; min-height: min(calc(100dvh - var(--nav-h)), var(--hero-max)); padding-block: var(--space-xl) var(--space-2xl); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-2xl); align-items: center; }
.hero__text { display: grid; gap: var(--space-lg); }
.hero__text .actions { margin-top: var(--space-xs); }
.shot--hero { aspect-ratio: 808 / 640; }

/* ---------- Qué es: statement and the thread ---------- */
.what { padding-block: var(--section-gap-s) var(--section-gap); }
.statement { max-width: 26ch; font-size: var(--text-display-s); line-height: 1.08; }
.hilo { position: relative; margin: var(--space-2xl) 0 0; }
.hilo__line { width: 100%; height: 72px; overflow: visible; }
.hilo__line path { fill: none; stroke: var(--color-accent); stroke-width: 5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.hilo__nodes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap-columns); margin: var(--space-lg) 0 0; padding: 0; list-style: none; }
.hilo__nodes li { display: grid; gap: var(--space-xs); align-content: start; padding-top: var(--space-md); border-top: var(--rule-hair) solid var(--color-ink); }
.hilo__nodes b { font-size: var(--text-title); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
.hilo__nodes span { color: var(--color-muted); }
.icon { width: 32px; height: 32px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hilo .icon { color: var(--color-accent-deep); }

/* the one reveal: the thread draws, the knots settle */
.js .hilo .hilo__line { clip-path: inset(0 100% 0 0); transition: clip-path 900ms var(--ease-out); }
.js .hilo .hilo__nodes li { opacity: 0; transform: translateY(8px); transition: opacity var(--dur-long) var(--ease-out), transform var(--dur-long) var(--ease-out); transition-delay: calc(200ms + var(--i, 0) * 80ms); }
.js .hilo.is-in .hilo__line { clip-path: inset(0 0 0 0); }
.js .hilo.is-in .hilo__nodes li { opacity: 1; transform: none; }

/* ---------- Funcionalidades: rows ---------- */
.features { padding-block: 0 var(--section-gap); }
.features__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gap-columns); align-items: start; }
.features__head { position: sticky; top: calc(var(--nav-h) + var(--space-xl)); }
.features__head h2 { max-width: 10ch; }
.rows { margin: 0; padding: 0; list-style: none; border-top: var(--rule-hair) solid var(--color-ink); }
.rows li { display: grid; grid-template-columns: 32px minmax(0, 5fr) minmax(0, 5fr); gap: var(--space-lg); align-items: start; padding-block: var(--space-lg); border-bottom: var(--rule-hair) solid var(--color-rule); }
.rows h3 { font-size: var(--text-xl); letter-spacing: -0.01em; }
.rows p { color: var(--color-muted); padding-top: var(--space-2xs); }

/* ---------- Cómo funciona: the pinned run ---------- */
.how { padding-block: var(--section-gap-s) var(--section-gap); border-top: var(--rule-hair) solid var(--color-rule); }
.how__grid { display: grid; gap: var(--space-2xl); margin-top: var(--space-2xl); }
.how__steps { margin: 0; padding: 0; list-style: none; counter-reset: paso; display: grid; gap: var(--space-3xl); }
.how__step { counter-increment: paso; display: grid; gap: var(--space-md); align-content: center; }
.how__step::before { content: counter(paso); display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--color-ink); font: 600 var(--text-lg)/1 var(--font-display); font-variant-numeric: tabular-nums; color: var(--color-ink); transition: background-color var(--dur-short) var(--ease-out); }
.how__step h3 { font-size: var(--text-2xl); max-width: 18ch; }
.how__step p { color: var(--color-ink-2); max-width: 46ch; }
.shot--inline { max-width: 560px; margin-top: var(--space-xs); }
.how__stage { display: none; }

@media (min-width: 60rem) {
  .js .how__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-2xl); }
  .js .how__steps { gap: 0; }
  .js .how__step { min-height: min(78dvh, 680px); }
  .js .how__step.is-active::before { background: var(--color-accent); border-color: var(--color-accent-ink); }
  .js .shot--inline { display: none; }
  .js .how__stage { display: block; position: sticky; top: calc(var(--nav-h) + var(--space-xl)); height: min(calc(100dvh - var(--nav-h) - var(--space-3xl)), var(--stage-max)); align-self: start; }
  .js .shot--stage { position: absolute; inset: 0; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; background: transparent; box-shadow: none; border-radius: 0; overflow: visible; opacity: 0; transform: translateY(12px); transition: opacity var(--dur-long) var(--ease-out), transform var(--dur-long) var(--ease-out); }
  .js .shot--stage.is-active { opacity: 1; transform: none; }
  .shot--stage > img { width: auto; height: auto; max-width: 100%; max-height: 100%; border-radius: var(--radius-entry); box-shadow: 0 0 0 1px var(--color-ink), var(--shadow-lift); }
}

/* ---------- Beneficios: the orange field ---------- */
.gains { padding-block: var(--section-gap-s); background: var(--color-accent); color: var(--color-accent-ink); }
.gains__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap-columns); align-items: start; }
.gains h2 { color: var(--color-accent-ink); font-size: var(--text-display-s); max-width: 11ch; }
.gains__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2xl) var(--gap-columns); margin: 0; }
.gains__list div { display: grid; gap: var(--space-xs); padding-top: var(--space-md); border-top: 2px solid var(--color-accent-ink); }
.gains__list dt { font-size: var(--text-title); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
.gains__list dd { margin: 0; color: var(--color-accent-ink); max-width: 36ch; }

/* ---------- Por dentro: the cacao band ---------- */
.inside { padding-block: var(--section-gap-s); background: var(--color-dark); color: var(--color-on-ink); }
.inside h2 { color: var(--color-on-ink); max-width: 14ch; }
.inside__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--space-lg); }
.tabs { display: flex; gap: var(--space-2xs); padding: var(--space-2xs); border: var(--rule-hair) solid var(--color-rule-ink); border-radius: calc(var(--radius-pill) + var(--space-2xs)); overflow-x: auto; max-width: 100%; }
.tabs button { min-height: 44px; padding: 0 var(--space-md); border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--color-on-ink-2); font-weight: 600; white-space: nowrap; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.tabs button:hover { color: var(--color-on-ink); background: var(--color-ink-2); }
.tabs button:active { transform: translateY(1px); }
.tabs button[aria-selected="true"] { color: var(--color-on-ink); box-shadow: inset 0 -2px 0 var(--color-accent); }
.tabs button:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.inside__panels { margin-top: var(--space-2xl); }
.panel { display: grid; gap: var(--space-lg); justify-items: center; border-radius: var(--radius-entry); }
.panel:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 4px; }
.frame { display: grid; justify-items: center; width: 100%; margin: 0; }
.frame > img { width: auto; height: auto; max-width: 100%; max-height: var(--frame-h); border-radius: var(--radius-card); outline: 1px solid var(--color-rule-ink); outline-offset: -1px; }
.panel__cap { color: var(--color-on-ink-2); font-size: var(--text-lg); text-align: center; max-width: 52ch; }
html:not(.js) .panel[hidden] { display: grid !important; margin-top: var(--space-3xl); }

/* ---------- Preguntas ---------- */
.faq { padding-block: var(--section-gap) var(--section-gap-s); }
.faq__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-2xl); }
.faq h2 { max-width: 20ch; }
.faq__list { border-top: var(--rule-hair) solid var(--color-ink); }
.faq details { border-bottom: var(--rule-hair) solid var(--color-rule); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); min-height: 72px; padding-block: var(--space-md); font-size: var(--text-xl); font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; cursor: pointer; list-style: none; border-radius: var(--radius-pill); transition: color var(--dur-short) var(--ease-out); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex-shrink: 0; display: grid; place-items: center; width: 32px; height: 32px; border: var(--rule-hair) solid var(--color-rule); border-radius: 50%; font-weight: 400; color: var(--color-accent-deep); transition: transform var(--dur-short) var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--color-accent-deep); }
.faq summary:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.faq details p { padding-bottom: var(--space-lg); color: var(--color-ink-2); max-width: 62ch; font-size: var(--text-lg); }

/* ---------- Cierre: form ---------- */
.close { padding-block: var(--section-gap-s); background: var(--color-paper-3); }
.close__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap-columns); align-items: start; }
.close__head { display: grid; gap: var(--space-md); }
.close__head h2 { max-width: 12ch; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-lg) var(--space-md); padding: var(--space-xl); border-radius: var(--radius-entry); background: var(--color-paper-2); box-shadow: 0 0 0 1px var(--color-ink), var(--shadow-lift); }
.field { display: grid; gap: var(--space-xs); min-width: 0; }
.field:first-child { grid-column: 1 / -1; }
.field label, .seg legend { font-size: var(--text-sm); font-weight: 600; color: var(--color-ink-2); }
.field input { min-height: 52px; padding: 0 var(--space-md); border: var(--rule-hair) solid var(--color-muted); border-radius: var(--radius-pill); background: var(--color-paper-2); color: var(--color-ink); outline: 2px solid transparent; outline-offset: -3px; }
.field input:hover { border-color: var(--color-ink-2); }
.field input:focus-visible { outline-color: var(--color-focus); }
.field input[aria-invalid] { border-color: var(--color-error); }
.field input:disabled { opacity: 0.55; cursor: not-allowed; }
.seg { grid-column: 1 / -1; margin: 0; padding: 0; border: 0; min-width: 0; }
.seg legend { padding: 0; margin-bottom: var(--space-xs); }
.seg__opts { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg label { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-md); border: var(--rule-hair) solid var(--color-muted); border-radius: var(--radius-pill); background: var(--color-paper-2); cursor: pointer; white-space: nowrap; transition: background-color var(--dur-short) var(--ease-out); }
.seg label:hover { background: var(--color-paper-3); }
.seg input:checked + label { background: var(--color-ink); border-color: var(--color-ink); color: var(--color-paper); }
.seg input:focus-visible + label { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md); margin-top: var(--space-xs); }
.form__help { min-height: 1lh; color: var(--color-ink-2); }
.form__help.is-error { color: var(--color-error); }

/* ---------- Footer: mast ---------- */
.foot { padding-block: var(--space-3xl) var(--space-xl); border-top: var(--rule-hair) solid var(--color-ink); }
.foot__logo { width: clamp(220px, 28vw, 380px); height: auto; margin-left: calc(-1 * var(--space-md)); }
.foot__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--space-lg); margin-top: var(--space-lg); padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); }
.foot__line { font-size: var(--text-lg); color: var(--color-ink-2); }
.foot__links { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); }
.foot__links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--color-ink); text-decoration: none; white-space: nowrap; border-radius: var(--radius-pill); }
.foot__links a:hover { text-decoration: underline; text-decoration-color: var(--color-accent); text-decoration-thickness: 2px; text-underline-offset: 0.3em; }
.foot__links a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.foot__legal { margin-top: var(--space-xl); color: var(--color-muted); }

/* ---------- Under 60rem ---------- */
@media (max-width: 60rem) {
  :root { --nav-h: 64px; --frame-h: auto; }
  .nav__logo img { width: 140px; }
  .nav__bar { gap: var(--space-md); }
  .nav__end { margin-left: auto; }
  .js .nav__toggle { display: inline-flex; align-items: center; }
  .js .nav__links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; margin: 0; padding: var(--space-xs) var(--gutter) var(--space-md); background: var(--color-paper); border-bottom: var(--rule-hair) solid var(--color-rule); }
  .js .nav__links.is-open { display: flex; }
  .js .nav__links a { min-height: 52px; font-size: var(--text-lg); border-bottom: var(--rule-hair) solid var(--color-rule); border-radius: 0; }
  html:not(.js) .nav__bar { flex-wrap: wrap; }
  html:not(.js) .nav__links { order: 3; width: 100%; margin-left: 0; overflow-x: auto; }
  .hero { min-height: 0; padding-block: var(--space-xl) var(--space-2xl); }
  .hero__grid, .features__grid, .gains__grid, .faq__grid, .close__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .hilo__nodes { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--space-xl); }
  .features__head { position: static; }
  .features__head h2 { max-width: 20ch; }
  .how__steps { gap: var(--space-2xl); }
  .frame > img { max-height: none; }
  .inside__head { align-items: start; }
}
@media (max-width: 40rem) {
  .nav__cta { display: none; }
  .hilo__line { height: 48px; }
  .hilo__nodes, .gains__list { grid-template-columns: minmax(0, 1fr); }
  .gains__list { gap: var(--space-xl); }
  .rows li { grid-template-columns: 32px minmax(0, 1fr); gap: var(--space-xs) var(--space-md); }
  .rows p { grid-column: 2; padding-top: 0; }
  .form { grid-template-columns: minmax(0, 1fr); padding: var(--space-lg); }
  .faq summary { font-size: var(--text-lg); }
  .actions .btn { flex: 1 1 auto; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .btn, .nav__toggle, .tabs button, .seg label, .faq summary, .faq summary::after, .shot--stage, .how__step::before { transition: none; }
  .js .hilo .hilo__line { clip-path: none; transition: none; }
  .js .hilo .hilo__nodes li { opacity: 1; transform: none; transition: none; }
  .shot--stage { transform: none; }
  .btn:active, .nav__toggle:active, .tabs button:active { transform: none; }
}
.faq__note { margin-top: var(--space-md); color: var(--color-muted); font-size: var(--text-xs); }
.faq__note a { color: inherit; }
