/* Bluconta public landing: the hero (copy on the left, the phone in front of the paper crane on the right,
   all of it under a sky that fades into the white page) and the strip of verifiable facts under it. */

/* A vertical gradient with its stops in percent: statusbar_sync.js reads it to tint the phone's status bar. */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #D9ECFF 0%, #EAF4FF 46%, #FFFFFF 92%); padding-top: calc(var(--topbar-h) + 56px + env(safe-area-inset-top, 0px)); padding-bottom: 72px; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) 680px; gap: 32px; align-items: center; }
.hero-copy { position: relative; z-index: 3; display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; justify-items: start; padding-bottom: 44px; }
/* Sized so each half of the headline ("Tu contabilidad" / "inteligente.") keeps to one line beside the stage. */
.hero .h-display { font-size: clamp(42px, 4.9vw, 62px); }
.hero .h-display > span { display: block; white-space: nowrap; }
.hero-lede { margin: 0; max-width: 22em; font-size: clamp(19px, 1.7vw, 23px); line-height: 1.42; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero-cta .btn { padding-inline: 24px; }
.hero-cta .btn-wa { padding-left: 18px; }
/* The next filing date, set by landing.js: a calm fact, not a countdown. */
.hero-due { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 15px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink-2); }
.hero-due::before { content: ""; flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px rgba(47, 123, 233, 0.16); }
.hero-due[hidden] { display: none; }
/* With JS its line is kept free from the start, so filling it in does not push the headline down. */
.js .hero-due { min-height: 1.5em; }
.js .hero-due[hidden] { display: flex; visibility: hidden; }

/* Stage: the phone in the middle, the crane behind it, and a job card at each corner once it is done. */
.stage { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 22px; min-width: 0; }
.showcase-stage { position: relative; z-index: 1; }
.stage-crane { position: absolute; z-index: 0; left: 60%; top: 322px; width: 900px; max-width: none; transform: translate(-50%, -50%); pointer-events: none; }
.stage-crane polygon { stroke: #E3F0FF; stroke-width: 0.5; stroke-linejoin: round; transform-box: fill-box; transform-origin: center; }
.stage-crane .fa { fill: var(--white); }
.stage-crane .fb { fill: #B9DBFF; }

.sats { position: absolute; z-index: 2; inset: 0; margin: 0; padding: 0; list-style: none; pointer-events: none; }
.sat {
  position: absolute; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 1px 10px; width: 204px; padding: 12px 14px 13px 12px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: var(--shadow-card);
  font-size: 13.5px; line-height: 1.35;
}
.sat--1 { left: 0; top: 78px; }
.sat--2 { right: 0; top: 196px; }
.sat--3 { left: 0; top: 366px; }
.sat--4 { right: 0; top: 478px; }
.sat b { font-weight: 600; letter-spacing: -0.015em; }
/* Both states share a cell, so ticking a card never changes its height. */
.sat-todo, .sat-done { grid-area: 2 / 2; color: var(--ink-2); }
.sat-done .mono { font-size: 12.5px; color: var(--ink); }
.sat-ck { grid-row: 1 / span 2; align-self: start; display: grid; place-items: center; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: var(--ink); color: var(--white); transition: background-color 300ms ease, box-shadow 300ms ease; }
.sat-ck svg { width: 13px; height: 13px; transition: transform 420ms cubic-bezier(0.2, 0.9, 0.25, 1.4), opacity 200ms ease; }
.sat-todo { visibility: hidden; }
/* Pending until the phone finishes the scene that does this job (landing-scenes.js). */
.sats.is-live .sat { transition: border-color 400ms ease, box-shadow 400ms ease, transform 500ms var(--ease); }
.sats.is-live .sat:not(.is-done) { box-shadow: none; }
.sats.is-live .sat:not(.is-done) .sat-ck { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-2); }
.sats.is-live .sat:not(.is-done) .sat-ck svg { opacity: 0; transform: scale(0.4); }
.sats.is-live .sat:not(.is-done) .sat-done { visibility: hidden; }
.sats.is-live .sat:not(.is-done) .sat-todo { visibility: visible; color: var(--ink-3); }
.sats.is-live .sat:not(.is-done) b { color: var(--ink-2); }
/* Beside the phone a job only shows up once it is done, so the stage starts clean and fills in. */
@media (min-width: 744px) {
  .sats.is-live .sat:not(.is-done) { opacity: 0; transform: translateY(10px) scale(0.96); }
  .sats.is-live .sat { transition: opacity 320ms ease, border-color 400ms ease, box-shadow 400ms ease, transform 500ms var(--ease); }
}
.sat.is-pulse { animation: sat-pulse 900ms var(--ease); }
@keyframes sat-pulse { 30% { transform: scale(1.045); border-color: var(--blue); } }

/* Buttons under the phone: one per screen, the pressed one's bar fills over the screen's time. */
.showcase-tabs { display: none; position: relative; z-index: 2; }
.js .showcase-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; width: 440px; max-width: 100%; }
.showcase-tabs button {
  display: grid; gap: 8px; padding: 4px 0 0; border: 0; background: none; cursor: pointer; text-align: left;
  font-size: 13px; font-weight: 500; color: var(--ink-3); white-space: nowrap; transition: color 200ms ease;
}
.showcase-tabs button:hover, .showcase-tabs button[aria-pressed="true"] { color: var(--ink); }
.showcase-tabs button:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 4px; }
.tab-bar { display: block; height: 3px; overflow: hidden; border-radius: 3px; background: var(--line); }
.tab-bar > span { display: block; height: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.showcase-tabs [aria-pressed="true"] .tab-bar > span { transform: scaleX(1); }
/* landing-scenes.js sets the duration and its own timer moves on, so nothing here can pause the rotation. */
.stage.is-auto [aria-pressed="true"] .tab-bar > span { animation: fill 4000ms linear both; }
@keyframes fill { from { transform: scaleX(0); } }
.lbl-s { display: none; }

/* One entrance, on load: the copy settles, the crane unfolds facet by facet, the phone rises. */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }
@keyframes unfold { from { opacity: 0; transform: scale(0.82); } }
@keyframes phone-in { from { opacity: 0; transform: translateY(64px) rotate(3deg); } }
.js .hero-copy > * { animation: rise 800ms var(--ease) both; }
.js .hero-copy > :nth-child(2) { animation-delay: 60ms; }
.js .hero-copy > :nth-child(3) { animation-delay: 140ms; }
.js .hero-copy > :nth-child(4) { animation-delay: 220ms; }
.js .stage-crane polygon { animation: unfold 900ms var(--ease) both; }
.js .stage-crane polygon:nth-child(2) { animation-delay: 80ms; }
.js .stage-crane polygon:nth-child(3) { animation-delay: 160ms; }
.js .stage-crane polygon:nth-child(4) { animation-delay: 240ms; }
.js .stage-crane polygon:nth-child(5) { animation-delay: 320ms; }
.js .stage-crane polygon:nth-child(6) { animation-delay: 120ms; }
.js .showcase-stage .phone { animation: phone-in 1100ms var(--ease) 180ms both; }
.js .sat { animation: rise 700ms var(--ease) both; }
.js .sat--1 { animation-delay: 700ms; }
.js .sat--2 { animation-delay: 800ms; }
.js .sat--3 { animation-delay: 900ms; }
.js .sat--4 { animation-delay: 1000ms; }
.js .showcase-tabs { animation: rise 800ms var(--ease) 900ms both; }
/* The pulse replaces the entrance once a card has been ticked. */
.js .sat.is-pulse { animation: sat-pulse 900ms var(--ease); }

/* Facts under the hero: four things anyone can check, separated by hairlines like a ledger row. */
.trust { padding-block: 0 8px; }
.trust-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-row li { display: grid; gap: 4px; align-content: start; padding: 22px 24px 24px; border-left: 1px solid var(--line); font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.trust-row li:first-child { padding-left: 0; border-left: 0; }
.trust-row b { font-size: 16px; font-weight: 600; letter-spacing: -0.015em; color: var(--ink); }

@media (max-width: 1220px) {
  /* Copy on top, the stage centred under it. */
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .hero-copy { padding-bottom: 0; max-width: 720px; }
  .hero .h-display { font-size: clamp(42px, 7vw, 68px); }
  .stage { width: 680px; max-width: 100%; margin-inline: auto; }
  .stage-crane { left: 50%; }
}
@media (max-width: 960px) {
  .trust-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-row li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .trust-row li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 743px) {
  /* Narrower than the stage needs for a card on each side of the phone: under it, one card at a time,
     the job of the screen that is playing. They share a cell, so changing screens never moves the page. */
  .stage { gap: 16px; }
  .stage-crane { top: 280px; width: 720px; }
  .sats { position: relative; inset: auto; order: 3; display: grid; width: 100%; max-width: 440px; }
  .sat { position: static; grid-area: 1 / 1; width: auto; padding: 11px 14px 12px 12px; box-shadow: none; opacity: 0; }
  .sats .sat, .sats.is-live .sat { transition: opacity 260ms ease, border-color 400ms ease, transform 500ms var(--ease); }
  .sat.is-current { opacity: 1; }
  .js .sat { animation: none; }
  .js .sats { animation: rise 800ms var(--ease) 1000ms both; }
}
@media (max-width: 640px) {
  .hero { padding-top: calc(var(--topbar-h) + 28px + env(safe-area-inset-top, 0px)); padding-bottom: 56px; }
  .hero-inner { gap: 40px; }
  .hero-copy { gap: 20px; }
  .hero .h-display { font-size: clamp(34px, 10.6vw, 44px); }
  .hero-cta { width: 100%; }
  .hero-cta .btn { flex: 1 1 100%; }
  .hero-due { font-size: 13.5px; letter-spacing: -0.015em; }
  .lbl-l { display: none; }
  .lbl-s { display: inline; }
  /* A taller target for a thumb. */
  .showcase-tabs button { padding-top: 12px; font-size: 13.5px; }
  .trust-row li { padding: 16px 14px 18px; font-size: 13.5px; }
  .trust-row b { font-size: 15px; }
}
