/* The home page (public/index.html). Colors and fonts come from the tokens in
   app.css; this file names none. Layout: a 12-column grid, 1200px at most,
   thin rules instead of cards and shadows. */
.home { font-size: 18px; }
.home main { display: block; }
.home .grid { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.home .label { font: 600 12px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--subtle); }
.home h2.section-title { grid-column: 1 / 13; font-weight: 600; font-size: clamp(28px, 3vw, 36px); line-height: 1.15; letter-spacing: -.02em; }
.home h3 { font-weight: 600; font-size: 22px; line-height: 1.3; letter-spacing: -.01em; margin: 0; }
.home p { max-width: 38em; }
.site.home .btn, .site.home .btn:hover { text-decoration: none; }
.home .btn { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; }
.home .btn.biz, .home .btn.biz:hover { background: var(--orange-text-dark); color: var(--accent-text); }

.skip { position: absolute; left: 16px; top: -100px; z-index: 10; padding: 12px 16px; background: var(--text); color: var(--surface); border-radius: var(--radius-control); }
.site .skip:focus { top: 12px; color: var(--surface); }

/* 1 Header */
.home-header { border-bottom: 1px solid var(--line); }
.home-header .grid { align-items: center; min-height: 72px; }
.home .brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: 17px; letter-spacing: -.01em; white-space: nowrap; }
.home .brand:hover { color: var(--text); text-decoration: none; }
.home-header .brand { grid-column: 1 / 4; }
.home-nav { grid-column: 4 / 13; white-space: nowrap; display: flex; justify-content: flex-end; align-items: center; gap: 24px; font-size: 15px; }
.home .home-nav a.plain { color: var(--text); font-weight: 500; padding: 12px 0; }
.home .home-nav .btn { font-size: 15px; padding: 10px 20px; min-height: 44px; }
.home-nav .lang-switch { flex: none; }
/* The switch's room, kept until site.js puts it in, so the links don't move:
   44px buttons, as everywhere else on the site, plus the 1px border. */
.home-nav [data-lang-switch] { flex: none; width: 75px; height: 46px; }

/* 2 Hero: navy band; the arcs run in from both sides, the orange one off the edge. */
.home-hero { background: var(--text); color: var(--surface); overflow: hidden; }
.home-hero .grid { align-items: end; }
.hero-text { grid-column: 1 / 8; padding: 112px 0 96px; display: flex; flex-direction: column; gap: 20px; }
.home h1 { font-weight: 600; font-size: clamp(40px, 4.6vw, 56px); line-height: 1.05; letter-spacing: -.025em; text-wrap: balance; }
.home .second { font-weight: 400; font-size: clamp(26px, 3vw, 36px); line-height: 1.2; letter-spacing: -.015em; margin-top: -8px; }
.home .sub { font-size: 18px; line-height: 1.6; color: var(--footer-text); max-width: 34em; }
.hero-doors { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.site .hero-doors .btn { font-size: 16px; padding: 12px 22px; }
.home-hero :focus-visible { outline-color: var(--accent-on-dark); }
.hero-art { grid-column: 8 / 13; align-self: stretch; position: relative; margin: 0; }
.hero-art .arcs { position: absolute; left: 24px; bottom: -2px; width: calc(100% - 24px + var(--gutter) + 120px); height: auto; }
.arcs path, .icon path { fill: none; stroke-linecap: round; }
.arcs .np, .icon .np { stroke: var(--accent); }
.arcs .biz, .icon .biz { stroke: var(--orange); }
.icon circle { fill: var(--text); }
.home-hero .arcs .np { stroke: var(--accent-on-dark); }
.home-hero .arcs circle { fill: var(--surface); }

/* 3 The good so far: tint band, a colored rule over each figure. */
.home-good { background: var(--tint); border-bottom: 1px solid var(--line); }
.home-good .grid { padding-top: 72px; padding-bottom: 64px; row-gap: 32px; }
.home-good h2 { grid-column: 1 / 13; font-weight: 600; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; letter-spacing: -.02em; }
.good-list { grid-column: 1 / 13; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; gap: 0; }
.good-list .fig { padding: 28px 24px 8px; display: flex; flex-direction: column; gap: 10px; border-left: 1px solid var(--line); border-top: 3px solid var(--text); }
.good-list .fig:first-child { border-left: 0; padding-left: 0; }
.good-list .fig.biz { border-top-color: var(--orange); }
.good-list .fig.np { border-top-color: var(--accent); }
.good-list dt { color: var(--text); font-size: 20px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
.good-list dd { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.4; }
.good-list .since .month { display: block; white-space: nowrap; }
/* Two lines, the height it has once home.js puts the month in. */
.good-list .since { min-height: 2.8em; }
.good-list dd[data-figure] { order: -1; color: var(--text); font-weight: 600; font-size: clamp(40px, 4.6vw, 64px); line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.good-list .np dd[data-figure] { color: var(--accent); }
.good-list dd[data-figure]:empty, .home-good[data-state="numbers"] .since { display: none; }
.home-good .method { grid-column: 1 / 13; font-size: 16px; line-height: 1.6; color: var(--muted); max-width: none; }
.site .home-good .method a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

/* 4 Why we built it */
.home-why .grid { padding-top: 112px; padding-bottom: 32px; row-gap: 32px; }
.home .home-why h2.section-title { grid-column: 1 / 11; text-wrap: balance; }
.home .lead { grid-column: 1 / 9; color: var(--muted); line-height: 1.6; }
.gaps-intro { grid-column: 1 / 13; margin-top: 16px; }
.site .gaps { grid-column: 1 / 13; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.gaps li { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 3px solid var(--text); }
.gaps li.np { border-top-color: var(--accent); }
.gaps li.biz { border-top-color: var(--orange); }
.gaps h3 { font-size: 20px; }
.gaps p { color: var(--muted); line-height: 1.6; }

/* 5 Three doors: equal size, one color each. */
.home-doors .grid { padding-top: 96px; padding-bottom: 112px; row-gap: 40px; }
.door { grid-column: span 4; border: 2px solid var(--line); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 16px; scroll-margin-top: 24px; }
.door.np { border-color: var(--accent); }
.door.np .label { color: var(--accent); }
.door.biz { border-color: var(--orange); }
.door.biz .label { color: var(--orange-text-dark); }
.door.chamber { border-color: var(--text); }
.door.chamber .label { color: var(--text); }
.site .door ul { flex: 1; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 17px; line-height: 1.5; color: var(--muted); }
.door .btn { align-self: flex-start; margin-top: 8px; }

/* 6 How it works */
.home-how { background: var(--tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.home-how .grid { padding-top: 112px; padding-bottom: 112px; row-gap: 48px; }
.steps { grid-column: 1 / 13; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.step { display: flex; flex-direction: column; gap: 12px; padding-top: 24px; border-top: 1px solid var(--dashed); }
.step .icon { width: 48px; height: 48px; margin-bottom: 8px; }
.home .step h3.label { color: var(--text); font-size: 13px; }
.step p { color: var(--muted); line-height: 1.6; }

/* The two videos: the label beside the video, one line of what it covers
   before anyone presses play; above it on narrow screens. */
.home-video { grid-column: 1 / 13; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px 48px; align-items: start; }
.home-video figcaption { padding-top: 20px; border-top: 3px solid var(--accent); color: var(--muted); font-size: 16px; line-height: 1.6; }
.home-video.chamber figcaption { border-top-color: var(--text); }
.home-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--text); border: 1px solid var(--line); border-radius: var(--radius); }

/* 7 How we count */
.home-count .grid { padding-top: 112px; padding-bottom: 112px; row-gap: 32px; }
.home .home-count h2.section-title { grid-column: 1 / 6; align-self: start; }
.home-count .lead { grid-column: 6 / 13; }

/* 8 Who's behind it */
.home-behind { background: var(--tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.home-behind .grid { padding-top: 112px; padding-bottom: 112px; row-gap: 32px; }
.home .home-behind h2.section-title { grid-column: 1 / 6; align-self: start; }
.behind-text { grid-column: 6 / 13; display: flex; flex-direction: column; gap: 20px; }
.behind-text > p { color: var(--muted); line-height: 1.6; }
.behind-text .next { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 8px; padding-top: 24px; border-top: 1px solid var(--line); }
.behind-text .next p { font-size: 20px; font-weight: 600; color: var(--text); }

/* 9 Participating chambers (staging only) */
.home-chambers .grid { padding-top: 56px; padding-bottom: 56px; row-gap: 20px; align-items: center; }
.home-chambers h2 { grid-column: 1 / 13; }
.chamber-list { grid-column: 1 / 13; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 16px 48px; }
.chamber-list .wordmark { font-weight: 600; font-size: 22px; letter-spacing: -.01em; color: var(--subtle); }

/* 10 Sign in */
.home-signin .grid { padding-top: 24px; padding-bottom: 112px; }
.home-chambers[hidden] + .home-signin .grid { padding-top: 96px; }
.signin-strip { grid-column: 1 / 13; padding: 32px 0; border-top: 1px solid var(--text); border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px 40px; }
.signin-strip > div { display: flex; flex-direction: column; gap: 6px; }
.signin-strip h2 { font-weight: 600; font-size: 24px; letter-spacing: -.01em; }
.signin-strip p { font-size: 17px; color: var(--muted); }

/* 11 Footer */
.home-footer { background: var(--text); color: var(--footer-text); font-size: 15px; }
.home-footer .grid { padding-top: 48px; padding-bottom: 40px; row-gap: 28px; align-items: center; }
.home-footer .brand { grid-column: 1 / 5; color: var(--surface); }
.home-footer .brand:hover { color: var(--surface); }
.footer-nav { grid-column: 5 / 13; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 28px; }
.site .home-footer a:not(.brand) { color: var(--surface); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.site .home-footer a:not(.brand):hover { color: var(--surface); text-decoration-thickness: 2px; }
.footer-nav a { display: inline-block; padding: 12px 0; }
.home-footer .credit { grid-column: 1 / 13; max-width: none; padding-top: 24px; border-top: 1px solid var(--footer-line); color: var(--footer-fine); }
.home-footer :focus-visible { outline-color: var(--accent-on-dark); }

/* Tablet */
/* The header's text links need the room, in Spanish most. */
@media (max-width: 1100px) {
  .home-nav a.plain { display: none; }
}

@media (max-width: 1000px) {
  .door { grid-column: 1 / 13; }
  .site .door ul { flex: none; }
  .steps, .site .gaps { grid-template-columns: 1fr; gap: 32px; }
  .home-video { grid-template-columns: 1fr; }
  .home .home-why h2.section-title, .home .lead, .home .home-count h2.section-title, .home-count .lead, .home .home-behind h2.section-title, .behind-text { grid-column: 1 / 13; }
}

/* Phone and narrow tablet */
@media (max-width: 900px) {
  .hero-text { grid-column: 1 / 13; padding: 8px 0 56px; }
  .home-hero .grid { display: flex; flex-direction: column-reverse; align-items: stretch; }
  .hero-art { margin: 0 calc(-1 * var(--gutter)); }
  .hero-art .arcs { position: static; display: block; width: 100%; height: auto; margin-top: 32px; }
  .hero-doors { flex-direction: column; align-items: stretch; }
  .site .hero-doors .btn { width: 100%; }
  .home-good .grid { padding-top: 56px; padding-bottom: 56px; row-gap: 24px; }
  .good-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* "noviembre de 2026" is wider than a column at 320 px: let it wrap there. */
  .good-list .since .month { white-space: normal; }
  .good-list .fig { padding: 20px 16px 24px; }
  .good-list .fig:nth-child(odd) { border-left: 0; padding-left: 0; }
  .good-list dt { font-size: 18px; }
  .home-why .grid { padding-top: 72px; padding-bottom: 16px; }
  .home-doors .grid { padding-top: 56px; padding-bottom: 72px; }
  .home-how .grid, .home-count .grid, .home-behind .grid { padding-top: 72px; padding-bottom: 72px; }
  .home-signin .grid { padding-bottom: 72px; }
  .home-chambers[hidden] + .home-signin .grid { padding-top: 56px; }
  .door { padding: 24px; }
  .home-footer .brand, .footer-nav { grid-column: 1 / 13; justify-content: flex-start; }
}

/* Small phones: the header holds the logo mark, the language switch and
   Sign in; the link keeps the product's name for screen readers. */
@media (max-width: 480px) {
  .home-nav { gap: 12px; }
  .site.home .home-nav .btn { padding: 10px 14px; }
  .home-header .brand span { display: none; }
}
