/* AbhiLeads — landing layout around the license gate (#root).
   body.al-gate is a grid: nav / [hero | sign-in card] / stage / sections.
   Landing nodes exist only while the gate shows (abhi-ui.js toggles .al-gate). */

#al-nav, #al-hero, #al-stage, #al-more { display: none; }
html:has(> body.al-gate) { background: var(--al-white) !important; }
body.al-gate { --al-g: 20px; display: grid; align-content: start; height: auto !important; min-height: 100vh; overflow: visible !important; background: var(--al-white) !important;
  grid-template-columns: [full-start] minmax(var(--al-g), 1fr) [main-start] min(660px, (100% - 2 * var(--al-g)) * .56) [split] min(520px, (100% - 2 * var(--al-g)) * .44) [main-end] minmax(var(--al-g), 1fr) [full-end]; }
body.al-gate > * { grid-column: full; }
body.al-gate > #al-nav { display: flex; grid-column: main; grid-row: 1; }
body.al-gate > #al-hero { display: block; grid-column: main-start / split; grid-row: 2; }
body.al-gate > #root { grid-column: split / main-end; grid-row: 2; align-self: center; position: static; height: auto; background: transparent !important; }
body.al-gate > #al-stage { display: block; grid-row: 3; }
body.al-gate > #al-more { display: block; grid-row: 4; }

/* ── hero ── */
#al-hero { padding: clamp(40px, 9vh, 104px) clamp(0px, 4vw, 64px) clamp(44px, 8vh, 88px) 0; font-family: var(--al-font); }
#al-hero .al-lede { margin-top: 26px; }
#al-hero .al-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 34px; font-size: 15px; }

/* ── sign-in card: restyle of the app's own gate (React keeps the DOM) ── */
body.al-gate #root > .h-screen { height: auto !important; min-height: 0; padding: 0 !important; background: transparent !important; display: block; }
body.al-gate #root .max-w-lg {
  max-width: none; margin: 0; padding: 28px 28px 24px; background: var(--al-white); border: 1px solid var(--al-rule); border-radius: 24px;
  opacity: 0; translate: 0 14px; animation: al-enter .8s var(--al-ease) .35s forwards;
}
body.al-gate #root .max-w-lg > * + * { margin-top: 18px !important; }
body.al-gate #root .text-center.space-y-4 { text-align: left; }
body.al-gate #root .text-center.space-y-4 > div:first-child { display: none; }
body.al-gate #root h1 { font-size: 22px !important; font-weight: 800 !important; font-stretch: 108%; letter-spacing: -0.02em; text-align: left; }
body.al-gate #root .text-center.space-y-4 p { margin-top: 4px !important; text-align: left; font-size: 14px !important; color: var(--al-ink-3) !important; }
body.al-gate #root .card { padding: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; }
body.al-gate #root .card.p-8 > * + * { margin-top: 12px !important; }
body.al-gate #root .card label { margin-bottom: 8px !important; font-size: 13px !important; color: var(--al-ink-2) !important; }
body.al-gate #root .card input { padding-top: 13px !important; padding-bottom: 13px !important; border-radius: 14px !important; border-color: var(--al-rule-2) !important; font-size: 15px !important; letter-spacing: .04em; }
body.al-gate #root .card input:focus { border-color: var(--al-ink) !important; box-shadow: 0 0 0 4px var(--al-yellow-wash) !important; }
body.al-gate #root .card button { padding: 14px 18px !important; border-radius: 999px !important; background: var(--al-ink) !important; color: var(--al-white) !important; font-weight: 600 !important; font-size: 15px !important; transition: background-color .2s, scale .15s var(--al-ease) !important; }
body.al-gate #root .card button:active { scale: .97; }
body.al-gate #root .card button:disabled { background: var(--al-band) !important; color: var(--al-ink-3) !important; }
body.al-gate #root .card button svg { display: none; }
body.al-gate #root .grid.grid-cols-2 { display: none !important; }
body.al-gate #root p.text-center.text-xs { text-align: left; font-size: 14px !important; color: var(--al-ink-3) !important; }
body.al-gate #root p.text-center.text-xs button { margin-left: 4px; color: var(--al-ink) !important; font-weight: 600 !important; text-decoration: underline; text-decoration-color: var(--al-yellow-2); text-decoration-thickness: 2px; text-underline-offset: 4px; }
body.al-gate.al-callout #root .max-w-lg { animation: al-ring 1.4s var(--al-ease); opacity: 1; translate: 0 0; }

#al-google:empty { display: none; }
#al-google .al-or { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; color: var(--al-ink-3); font: 400 13px/1 var(--al-font); }
#al-google .al-or::before, #al-google .al-or::after { content: ""; flex: 1; border-top: 1px solid var(--al-rule); }
#al-google .al-gbtn { display: flex; justify-content: center; min-height: 44px; }
#al-google .al-gnote { margin: 12px 0 0; font: 400 13px/1.5 var(--al-font); color: var(--al-ink-2); }
#al-google .al-gnote b { color: var(--al-ink); }
#al-google .al-gnote a, #al-google .al-linkbtn { color: var(--al-ink); font: inherit; font-weight: 700; text-decoration: underline; text-decoration-color: var(--al-yellow-2); text-decoration-thickness: 2px; text-underline-offset: 3px; background: none; border: 0; padding: 0; cursor: pointer; }

/* ── sections below the stage ── */
.al-sec { padding: clamp(64px, 9vw, 120px) 0; font-family: var(--al-font); }
.al-sec-band { background: var(--al-band); }
.al-sec .al-h2 { margin-bottom: clamp(28px, 4vw, 48px); }

/* sources: names widen from condensed as they arrive (Archivo wdth axis) */
.al-groups { display: grid; gap: 0; border-top: 1px solid var(--al-rule-2); }
.al-group { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--al-rule-2); }
.al-group h3 { margin: 6px 0 0; font-size: 14px; font-weight: 600; color: var(--al-ink-3); }
.al-names { display: flex; flex-wrap: wrap; gap: 4px 26px; }
.al-names span { font-size: clamp(24px, 2.7vw, 38px); line-height: 1.15; font-weight: 750; font-stretch: 112%; letter-spacing: -0.025em; color: var(--al-ink); }
.al-js .al-groups .al-names span { opacity: 0; font-stretch: 62%; }
.al-js .al-groups.in .al-names span { animation: al-widen 1s var(--al-ease) forwards; animation-delay: calc(var(--i) * 55ms); }
.al-names-more { align-self: end; padding-bottom: 6px; font-size: 15px; color: var(--al-ink-3); }

/* plans teaser */
.al-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.al-plan { display: flex; flex-direction: column; padding: 28px; border-radius: 24px; background: var(--al-white); border: 1px solid var(--al-rule); }
.al-plan-pro { border: 2px solid var(--al-ink); padding: 27px; }
.al-plan h3 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 22px; font-weight: 800; font-stretch: 110%; }
.al-plan h3 small { padding: 4px 10px; border-radius: 999px; background: var(--al-yellow); font-size: 12px; font-weight: 600; font-stretch: 100%; }
.al-price { display: flex; align-items: baseline; gap: 8px; margin: 14px 0 4px; }
.al-price b { font-size: 48px; line-height: 1; font-weight: 850; font-stretch: 112%; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.al-price span { color: var(--al-ink-3); font-size: 14px; }
.al-plan ul { list-style: none; margin: 18px 0 26px; padding: 0; flex: 1; }
.al-plan li { position: relative; padding: 9px 0 9px 28px; font-size: 15px; line-height: 1.45; color: var(--al-ink-2); border-top: 1px solid var(--al-rule); }
.al-plan li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 12px; height: 6px; border-left: 2px solid var(--al-ink); border-bottom: 2px solid var(--al-ink); rotate: -45deg; }
.al-plan .al-btn { align-self: flex-start; }
.al-trial { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 20px; padding: 20px 24px; border-radius: 20px; background: var(--al-white); border: 1px solid var(--al-rule); font-size: 15px; line-height: 1.5; color: var(--al-ink-2); }
.al-trial b { color: var(--al-ink); }

/* closing line */
.al-end { text-align: center; }
.al-end .al-h2 { max-width: 16ch; margin-inline: auto; margin-bottom: 18px; font-size: clamp(36px, 4.6vw, 68px); }
.al-end .al-lede { margin-inline: auto; }
.al-end .al-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }

@keyframes al-widen { from { opacity: 0; font-stretch: 62%; } to { opacity: 1; font-stretch: 112%; } }
@keyframes al-ring { 0% { outline: 0 solid var(--al-yellow); } 30% { outline: 6px solid var(--al-yellow); } 100% { outline: 6px solid transparent; } }

@media (max-width: 1000px) {
  body.al-gate { grid-template-columns: [full-start] var(--al-g) [main-start] minmax(0, 1fr) [split main-end] var(--al-g) [full-end]; }
  body.al-gate > #al-hero { grid-column: main; }
  body.al-gate > #root { grid-column: main; grid-row: 3; max-width: 560px; }
  body.al-gate > #al-stage { grid-row: 4; padding-top: 56px; }
  body.al-gate > #al-more { grid-row: 5; }
  body.al-gate > #root { margin-bottom: 48px; }
  #al-hero { padding: 28px 0 36px; }
  .al-group { grid-template-columns: minmax(0, 1fr); gap: 10px; }
}
@media (max-width: 680px) {
  body.al-gate { --al-g: 16px; }
  #al-hero .al-lede { margin-top: 18px; }
  #al-hero .al-cta { margin-top: 26px; }
  #al-hero .al-cta .al-btn { flex: 1 1 100%; }
  body.al-gate #root .max-w-lg { padding: 22px 18px 20px; border-radius: 20px; }
  .al-plans { grid-template-columns: minmax(0, 1fr); }
  .al-plan { padding: 22px; } .al-plan-pro { padding: 21px; }
  .al-plan .al-btn { align-self: stretch; }
  .al-names { gap: 2px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  body.al-gate #root .max-w-lg { opacity: 1; translate: none; animation: none !important; }
  .al-js .al-groups .al-names span { opacity: 1; font-stretch: 112%; animation: none !important; }
}
