/* Ping My Lab · css/home.css · the home page only (index.html), on top of css/site.css and css/premium.css.
   Tokens only (no literal colours). The worked example of the premium kit: docs/design/premium.md.

   The scroll story: the promise (Configure it. Break it. Fix it., with a real lab doing exactly that), what is open
   now (show batches and the cards), how a firewall thinks (the packet scene), how joining works, the worries, who it
   fits, and the free courses.

   The one orchestrated moment: the hero's headline and its lab console tell one story from Lab 6 of the PAN-OS 12.1
   course (the App-ID interview page, question 10). ssh on TCP 22 is allowed by allow-trust-dmz-ssh; on TCP 2222 it
   falls to interzone-default and is denied ("Break it." tips over); a narrow rule lets it through ("Fix it."). The
   resting state is the end of the story, so with no JavaScript or with reduced motion the console shows all three
   results at once and nothing moves. Clock (0 = the moment js/motion.js sets pr-motion):
     0.35 s packet 1 (port 22) leaves LNX-CLIENT   0.95 s allowed, row 1   1.55 s reaches LNX-WEB
     1.30 s packet 2 (port 2222) leaves            1.90 s denied at PA-FW1, row 2, "Break it." tips
     2.70 s "Fix it."   2.75 s packet 3 (2222)     3.35 s allowed, row 3    3.95 s reaches LNX-WEB
     4.60 s a calm packet every 3.6 s (paused while the hero is off screen) */

/* ================================================================ rhythm */
.home .home-hero + .section { padding-top: clamp(24px, 3vw, 40px); }

/* ================================================================ hero */
.home-hero { padding: clamp(20px, 3.2vw, 48px) 0 clamp(64px, 7vw, 112px); }
.home-hero::after { background: radial-gradient(860px 560px at 84% 20%, var(--pr-glow-teal), transparent 62%), radial-gradient(760px 520px at -6% 104%, var(--pr-glow-blue), transparent 64%); }
.home-hero .hero-grid { align-items: center; }
.hero-copy { min-width: 0; }

.hero-start { margin: 0 0 20px; }
.hero-start-link { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: var(--ink); font-size: 1rem; font-weight: 600; line-height: 1.4; text-decoration: underline; text-decoration-color: var(--pr-link-line); text-decoration-thickness: 1px; text-underline-offset: .3em; transition: color .2s ease, text-decoration-color .2s ease; }
.hero-start-link:hover { color: var(--ink-max); text-decoration-color: currentColor; }
.hero-start-link .pr-led { width: 7px; height: 7px; }

.home-hero .display { font-size: min(14.4vw, 6rem); line-height: .98; margin-bottom: 26px; }
@media (min-width: 980px) { .home-hero .display { font-size: var(--pr-fs-display); } }
.home-hero .lead { max-width: 34em; margin-bottom: 30px; }
/* A low laptop screen (1366 x 768 shows about 650 px of page): the headline is one step smaller and the gaps tighter, so the
   main button is on the first screen. */
@media (min-width: 1000px) and (max-height: 760px) {
  .home-hero .display { font-size: clamp(3rem, 1.2rem + 3.9vw, 4.4rem); margin-bottom: 20px; }
  .home-hero .hero-start { margin-bottom: 10px; }
  .home-hero .kicker { margin-bottom: 16px; }
  .home-hero .lead { margin-bottom: 22px; }
}
.hero-ctas { gap: 12px; }
.home-hero .hero-note { margin-top: 22px; }
/* The free Palo Alto masterclasses: one line under the buttons until Sun 29 Nov 2026, 1 PM IST (site.js hides it after its
   data-until, and the page is then as it was without it). */
.hero-mc { margin: 22px 0 0; max-width: 54ch; font-size: .9375rem; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.hero-mc .pr-led { margin: -2px 10px 0 1px; }
.hero-mc a { font-weight: 600; white-space: nowrap; }
.home-hero .hero-mc:not([hidden]) + .hero-note { margin-top: 12px; }
.hero-my { margin: 8px 0 0; font-size: .9375rem; color: var(--ink-3); }
@media (max-width: 520px) {
  .home-hero .hero-ctas .btn { width: 100%; }
}

/* The lab console */
.hero-lab { position: relative; margin: 0; min-width: 0; }
.hero-lab::before { content: ""; position: absolute; inset: 8% -6% -4%; z-index: -1; pointer-events: none; background: radial-gradient(closest-side, var(--pr-glow-teal), transparent); }
.lab { font-size: .8125rem; border-radius: var(--pr-r-l); box-shadow: var(--term-shadow), var(--pr-lift-2); }
.lab .pr-term-title { color: var(--ink-2); }
.lab-state { display: grid; flex: none; font-weight: 600; letter-spacing: .02em; }
.lab-st { grid-area: 1 / 1; display: inline-flex; align-items: center; justify-content: flex-end; gap: 8px; }
.lab-st--allow { color: var(--green); }
.lab-st--deny { color: var(--err); opacity: 0; }
.lab-body { container-type: inline-size; padding: clamp(18px, 2.4vw, 26px) clamp(14px, 2.4vw, 26px) clamp(16px, 2vw, 22px); }
.lab-flow { margin: 6px 0 22px; }
.lab-flow .pr-flow-icon > i { position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; opacity: 0; }
.lab-deny { border: 1.5px solid var(--pr-red); background: var(--pr-wash-red); box-shadow: 0 0 26px var(--pr-glow-red); }
.lab-burst { border: 1.5px solid var(--pr-red); }
.lab-ok { border: 1.5px solid var(--pr-green); box-shadow: 0 0 22px var(--pr-glow-green); }
.lab-leds { display: inline-flex; gap: 5px; align-items: center; height: 15px; }
.lab-leds i { width: 5px; height: 5px; border-radius: 50%; background: var(--pr-hair-3); }
.lab-leds i:nth-child(1) { background: var(--pr-green); box-shadow: 0 0 6px var(--pr-glow-green); }
.lab-leds i:nth-child(2) { background: var(--pr-teal); box-shadow: 0 0 6px var(--pr-glow-teal-2); }
@container (max-width: 430px) { .lab-flow .pr-flow-port { display: none; } }

.lab-log { width: 100%; border-collapse: collapse; font-size: .8125rem; line-height: 1.45; }
.lab-log caption { caption-side: top; padding: 0 0 10px; text-align: left; font-size: .75rem; color: var(--ink-3); }
.lab-cmd { color: var(--teal); font-weight: 600; }
.lab-log th { padding: 0 12px 8px 0; border-bottom: 1px dashed var(--pr-hair-2); text-align: left; font-size: .75rem; font-weight: 500; color: var(--ink-3); white-space: nowrap; }
.lab-log td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--pr-hair); color: var(--ink); vertical-align: middle; }
.lab-log tr:last-child td { border-bottom: 0; }
.lab-log td:first-child { width: 3.6em; font-variant-numeric: tabular-nums; }
.lab-log th:last-child, .lab-log td:last-child { width: 1%; padding-right: 0; text-align: right; }
.lab-act { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; white-space: nowrap; }
.lab-act::before { content: ""; width: 7px; height: 7px; border-radius: 50%; flex: none; }
.lab-act--allow { color: var(--green); }
.lab-act--allow::before { background: var(--pr-green); box-shadow: 0 0 8px var(--pr-glow-green); }
.lab-act--deny { color: var(--err); }
.lab-act--deny::before { background: var(--pr-red); box-shadow: 0 0 8px var(--pr-glow-red); }
.hero-lab-cap { margin-top: 16px; font-size: .875rem; line-height: 1.55; color: var(--ink-3); max-width: 60ch; }
@media (max-width: 560px) { .lab-log { font-size: .75rem; } .lab-log td { padding-right: 8px; } }

/* ---------- the story (only with pr-motion; the resting state above is its last frame) ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.pr-motion .home-hero .hero-start { animation: pr-rise .7s var(--pr-ease-out) both; }
  html.pr-motion .home-hero .kicker { animation: pr-rise .7s var(--pr-ease-out) .06s both; }
  html.pr-motion .home-hero .lead { animation: pr-rise .7s var(--pr-ease-out) .34s both; }
  html.pr-motion .home-hero .hero-ctas { animation: pr-rise .7s var(--pr-ease-out) .42s both; }
  html.pr-motion .home-hero .hero-mc, html.pr-motion .home-hero .hero-note, html.pr-motion .home-hero .hero-my { animation: pr-rise .7s var(--pr-ease-out) .5s both; }
  html.pr-motion .home-hero .hero-lab { animation: pr-rise .9s var(--pr-ease-out) .1s both; }

  html.pr-motion .home-hero .display .line { animation: line-in .6s var(--pr-ease-out) .04s both; }
  html.pr-motion .home-hero .display .line:nth-child(2) { transform-origin: 0 100%; animation: home-break 3.4s var(--pr-ease) .2s both; }
  html.pr-motion .home-hero .display .line:nth-child(3) { animation-delay: 2.7s; }

  html.pr-motion .lab-p--a1 { animation: lab-go .6s var(--pr-ease) .35s both; }
  html.pr-motion .lab-p--a2 { animation: lab-go .6s var(--pr-ease) .95s both; }
  html.pr-motion .lab-p--b1 { animation: lab-go .6s var(--pr-ease) 1.3s both; }
  html.pr-motion .lab-p--c1 { animation: lab-go .6s var(--pr-ease) 2.75s both; }
  html.pr-motion .lab-p--c2 { animation: lab-go .6s var(--pr-ease) 3.35s both; }
  html.pr-motion .lab-p--l1 { animation: pr-hop 3.6s linear 4.6s infinite; }
  html.pr-motion .lab-p--l2 { animation: pr-hop 3.6s linear 5.5s infinite; }
  html.pr-motion .lab-deny { animation: lab-flash 1.25s ease 1.9s both; }
  html.pr-motion .lab-burst { animation: lab-burst .8s var(--pr-ease-out) 1.9s; }
  html.pr-motion .lab-ok { animation: lab-burst .9s var(--pr-ease-out) 1.55s, lab-burst .9s var(--pr-ease-out) 3.95s; }
  html.pr-motion .lab-st--allow { animation: lab-allow 3.45s linear both; }
  html.pr-motion .lab-st--deny { animation: lab-deny-pill 3.45s linear both; }
  html.pr-motion .lab-row--1 { animation: pr-rise .5s var(--pr-ease-out) .95s both; }
  html.pr-motion .lab-row--2 { animation: pr-rise .5s var(--pr-ease-out) 1.9s both; }
  html.pr-motion .lab-row--3 { animation: pr-rise .5s var(--pr-ease-out) 3.35s both; }
  html.pr-motion .lab-leds i:nth-child(2) { animation: pr-blink 1.6s steps(1) 4.6s infinite; }
}
@keyframes home-break {
  0% { opacity: 0; transform: translateY(.28em); }
  10% { opacity: 1; transform: none; }
  49% { transform: none; }
  53% { transform: rotate(4deg) translateY(.05em); }
  76% { transform: rotate(4deg) translateY(.05em); }
  86% { transform: rotate(-.8deg); }
  94%, 100% { opacity: 1; transform: none; }
}
@keyframes lab-go { 0% { transform: translateX(-101%); opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { transform: translateX(0); opacity: 0; } }
@keyframes lab-flash { 0% { opacity: 0; } 10%, 66% { opacity: 1; } 100% { opacity: 0; } }
@keyframes lab-burst { 0% { opacity: .95; transform: scale(1); } 100% { opacity: 0; transform: scale(1.55); } }
@keyframes lab-allow { 0%, 27% { opacity: 0; } 29%, 54% { opacity: 1; } 56%, 95% { opacity: 0; } 97%, 100% { opacity: 1; } }
@keyframes lab-deny-pill { 0%, 54% { opacity: 0; } 56%, 95% { opacity: 1; } 97%, 100% { opacity: 0; } }


/* ================================================================ live batches */
.home-batches { position: relative; isolation: isolate; }
.home-batches::before { content: ""; position: absolute; inset: 0 0 auto; height: 520px; z-index: -1; pointer-events: none; background: radial-gradient(60% 70% at 18% 0%, var(--pr-glow-amber), transparent 70%); }
.home-batches-top { display: grid; gap: 28px; margin-bottom: clamp(32px, 4vw, 52px); }
.home-batches-top .pr-head { margin-bottom: 0; }
@media (min-width: 1000px) {
  .home-batches-top { grid-template-columns: minmax(0, 1fr) minmax(0, 540px); align-items: end; gap: 56px; }
}
.glance { font-size: .875rem; }
.glance .pr-term-bar { color: var(--ink-3); }
.glance .term-body { padding: 16px 20px 18px; }
.glance table { margin: 10px 0 12px; }
.glance td.st-open::before, .glance td.st-wait::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; vertical-align: 1px; }
.glance td.st-open::before { background: var(--pr-green); box-shadow: 0 0 8px var(--pr-glow-green); }
.glance td.st-wait::before { background: var(--pr-amber); box-shadow: 0 0 8px var(--pr-glow-amber-2); }
@media (max-width: 560px) { .glance { font-size: .75rem; } .glance .term-body { padding: 14px 14px 16px; } }
@media (max-width: 360px) {
  .glance { font-size: .65rem; }
  .glance .term-body { padding: 12px 10px 14px; }
  .glance th, .glance td { padding-right: 8px; }
  .glance td.st-open::before, .glance td.st-wait::before { width: 6px; height: 6px; margin-right: 5px; }
}

.home .batches { gap: 18px; }
.home .batch-card { border-color: var(--pr-hair); background: linear-gradient(180deg, var(--pr-panel-hi), var(--pr-panel)); box-shadow: var(--pr-lift); }
.home .batch-card.is-open { border-color: var(--pr-hair-amber); background: radial-gradient(900px 380px at 50% 0%, var(--pr-wash-amber), transparent 70%), linear-gradient(180deg, var(--pr-panel-hi), var(--pr-panel)); box-shadow: var(--pr-lift), 0 40px 110px -64px var(--pr-glow-amber-2); }
.home .batch-card:hover { border-color: var(--pr-hair-teal); box-shadow: var(--pr-lift-2); }
.home .batch-card.is-open:hover { border-color: var(--pr-amber); }
.home .batch-card .vendor { font-family: var(--f-mono); font-size: .8125rem; font-weight: 600; letter-spacing: .01em; color: var(--ink-3); }
.home .batch-card h3 { letter-spacing: -.035em; }
.home .bc-facts { border-top-color: var(--pr-hair); }
.home .bc-facts dd { font-family: var(--f-head); font-size: 1rem; letter-spacing: -.01em; }
.home .bc-buy { border-color: var(--pr-hair); }


/* ================================================================ the packet scene */
.home-scene .scene { box-shadow: var(--pr-lift-2), 0 0 90px -40px var(--pr-glow-teal-2); }


/* ================================================================ how it works: three steps on one cable */
.how-steps .pr-tl p { max-width: 40ch; }
@media (min-width: 800px) {
  .how-steps .pr-tl:not(:last-child)::after { content: ""; position: absolute; left: calc(var(--pr-tl-node) + 12px); right: -28px; top: calc(var(--pr-tl-node) / 2 - 5px); height: 11px; pointer-events: none; background: radial-gradient(circle at calc(100% - 6px) 50%, var(--pr-teal) 0 2.5px, var(--pr-glow-teal-2) 3.5px, transparent 8px); transform: translateX(-100%); opacity: 0; }
  html.pr-motion .how-steps.pr-on .pr-tl:nth-child(1)::after { animation: pr-seam 1.1s var(--pr-ease) .9s both; }
  html.pr-motion .how-steps.pr-on .pr-tl:nth-child(2)::after { animation: pr-seam 1.1s var(--pr-ease) 1.9s both; }
}


/* ================================================================ worries: each answer with what resolves it */
.worries { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 56px; margin: 0; padding: 0; border-top: 1px solid var(--pr-hair); }
.worries li { display: grid; align-content: start; justify-items: start; gap: 12px; padding: 26px 0 28px; border-bottom: 1px solid var(--pr-hair); }
.worries b { font-family: var(--f-head); font-size: clamp(1.15rem, 1.05rem + .45vw, 1.375rem); font-weight: 600; line-height: 1.3; letter-spacing: -.02em; color: var(--ink); }
.worry-fix { display: inline-flex; align-items: center; gap: 8px; padding: 4px 11px 4px 9px; border: 1px solid var(--pr-hair-green); border-radius: 999px; background: var(--pr-wash-green); font-family: var(--f-mono); font-size: .75rem; font-weight: 600; line-height: 1.3; color: var(--green); }
.worry-fix::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--pr-green); box-shadow: 0 0 8px var(--pr-glow-green); }
.worry-a { color: var(--ink-2); max-width: 58ch; }
@media (min-width: 760px) { .worries { grid-template-columns: repeat(2, minmax(0, 1fr)); } }


/* ================================================================ who it fits: "fits" and "not yet" */
.fit-rules { display: grid; gap: 18px; }
@media (min-width: 900px) { .fit-rules { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: stretch; } }
.fit-col { position: relative; padding: clamp(22px, 3vw, 32px); border: 1px solid var(--pr-hair); border-radius: var(--pr-r-l); background: linear-gradient(180deg, var(--pr-panel-hi), var(--pr-panel)); box-shadow: var(--pr-lift); }
.fit-col::before { content: ""; position: absolute; left: 24px; right: 24px; top: -1px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--pr-green), transparent); opacity: .8; }
.fit-not::before { background: linear-gradient(90deg, transparent, var(--pr-amber), transparent); }
.fit-tag { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 8px; font-family: var(--f-mono); font-size: .8125rem; font-weight: 600; letter-spacing: .07em; font-variant-caps: all-small-caps; color: var(--green); }
.fit-not .fit-tag { color: var(--amber); }
.fit-col h3 { margin-bottom: 14px; font-size: var(--pr-fs-h3); }
.fit-col .ticks { gap: 0; }
.fit-col .ticks li { padding: 11px 0 11px 28px; border-top: 1px solid var(--pr-hair); }
.fit-col .ticks li::before { top: calc(11px + .52em); border-color: var(--green); }
.fit-not .ticks li::before { width: 11px; height: 2px; border: 0; background: var(--amber); transform: none; top: calc(11px + .8em); }


/* ================================================================ free and recorded courses */
.home .course-col h3 { font-size: 1.1875rem; }
.home .link-list { border-bottom-color: var(--pr-hair); }
.home .link-list li { border-top-color: var(--pr-hair); }
.home .link-list a { align-items: center; padding: 14px 6px; border-radius: 10px; transition: background-color .2s ease, color .2s ease; }
.home .link-list a:hover { background: var(--pr-wash-teal); }
.home .link-list .meta { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: .8125rem; }
/* An arrow up and out (the link leaves for www.pingmylab.in): a corner with its diagonal. */
.home .link-list .meta::after { content: ""; flex: none; width: 8px; height: 8px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; background: linear-gradient(to top right, transparent calc(50% - .8px), currentColor calc(50% - .8px), currentColor calc(50% + .8px), transparent calc(50% + .8px)); opacity: .75; transition: transform .2s var(--pr-ease); }
.home .link-list a:hover .meta::after { transform: translate(2px, -2px); }

/* Small phones (360 x 640 and the like): the gaps of the hero one step tighter, so the main button is on the first screen
   (it ended at 655 px of 640). */
@media (max-width: 379px) and (max-height: 700px) {
  .home-hero .hero-start { margin-bottom: 12px; }
  .home-hero .kicker { margin-bottom: 16px; }
  .home-hero .display { margin-bottom: 20px; }
  .home-hero .lead { margin-bottom: 24px; }
}
