/* A terminal-first reading area beside a pixel-art night (assets/js/hero-field.js).
   The copy uses the page's own system (code.css tokens, mono headings with an accent line, 1px rules), so the
   hero reads as the first section, not a different site; the pixels live in the artwork only.
   The content shares the nav's grid (1440px cap, --gutter inset), so the headline, the logo and the bottom bar start on one line. */
.pc-hero {
    --hero-inline: max(var(--gutter), calc((100% - 1440px) / 2 + var(--gutter)));
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--bg);
    color: var(--ink);
}

.pc-hero__scene { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
/* JS sizes the canvas to whole art pixels; the browser only ever scales it by an integer, nearest neighbour. */
.pc-hero__art {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

.pc-hero__inner {
    position: relative;
    display: flex;
    align-items: center;
    min-height: max(760px, 100svh);
    padding: 132px var(--hero-inline) 128px;
}

.pc-hero__content { width: 100%; max-width: 860px; }

/* Same voice as .pc-label, with puqqy's blue square as the bullet. */
.pc-hero__eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 32px;
    font: 400 13.5px/1 var(--mono);
    letter-spacing: 0.02em;
    text-transform: none;
    color: var(--ink-3);
}
.pc-hero__eyebrow i { width: 8px; height: 8px; background: var(--accent); animation: pc-ping 2.4s ease-out infinite; }
.pc-hero__eyebrow > span { color: var(--ink-3); }

/* The section headings' type (.pc-h2) at hero scale: mono, ink line, then the accent line. */
.pc-hero .pc-title {
    margin: 0;
    font: 400 clamp(44px, min(5.6vw, 9.6vh), 84px)/1.08 var(--mono);
    letter-spacing: -0.045em;
    color: var(--ink);
    text-wrap: balance;
}
.pc-hero .pc-title > span { display: block; }
.pc-title__ink { color: var(--accent); }
.pc-title__period { color: var(--accent); }
.pc-title__caret {
    display: inline-block;
    width: 0.5em;
    height: 0.74em;
    margin-left: 0.08em;
    vertical-align: -0.04em;
    background: var(--ink);
    animation: pc-caret 1.1s steps(1) infinite;
}

.pc-hero__sub {
    max-width: 32em;
    margin: 28px 0 0;
    color: var(--ink-2);
    font: 400 18px/1.6 var(--sans);
    text-wrap: pretty;
}

/* Paired with the install pill above it: same width and 60px height, square hairline frame, Ledger-style mono numeral. */
.pc-hero__saving {
    display: flex;
    align-items: center;
    gap: 18px;
    box-sizing: border-box;
    width: 100%;
    height: 60px;
    margin-top: 16px;
    padding: 0 20px;
    border: 1px solid var(--line-strong);
    border-left: 2px solid var(--accent);
    background: var(--raised);
    color: var(--ink);
    text-decoration: none;
    transition: border-color 0.3s ease;
}
.pc-hero__saving b { color: var(--accent); font: 400 30px/1 var(--mono); letter-spacing: -0.05em; white-space: nowrap; }
.pc-hero__saving > span { display: flex; flex-direction: column; gap: 3px; min-width: 0; font: 400 14.5px/1.3 var(--sans); color: var(--ink-2); }
.pc-hero__saving small { color: var(--ink-3); font: 400 10.5px/1.3 var(--mono); letter-spacing: 0.02em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-hero__saving > i { margin-left: auto; color: var(--accent); font: normal 400 15px/1 var(--mono); transition: transform 0.25s ease; }

.pc-hero__setup { width: 100%; max-width: 820px; margin-top: 36px; }
.pc-hero__setup-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 12px;
    font: 400 12.5px/1.4 var(--mono);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--ink-3);
}
.pc-hero__setup-head > span { padding-block: 5px; color: var(--ink-2); text-transform: none; }
.pc-hero__setup-head > span > span { margin-right: 10px; color: var(--accent); }
.pc-hero .puq-brand { margin: 0; color: inherit; }
.pc-hero__setup-head a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin: -10px 0; color: var(--ink-3); text-decoration: none; transition: color 0.2s ease; }
.pc-hero__setup-head a > span { color: var(--accent); }

/* The base .pc-install pill, letting the full command wrap at its slashes (<wbr> in the markup) instead of scrolling. */
.pc-hero .pc-install { min-height: 60px; }
.pc-hero .pc-install__cmd {
    align-self: center;
    padding: 16px 20px;
    overflow: visible;
    white-space: normal;
    overflow-wrap: break-word;
    font-size: 13px !important;
    line-height: 1.7;
}
.pc-hero .pc-install__cmd > span[aria-hidden] { margin-right: 8px; }
.pc-hero .pc-install__cmd .pc-install__head { color: inherit; }
.pc-hero .pc-install__cmd .pc-install__tail { color: inherit; white-space: nowrap; }
.pc-hero .pc-install__cmd.is-clipped { mask-image: none; -webkit-mask-image: none; }
.pc-hero .pc-install__copy { touch-action: manipulation; }

.pc-hero__after {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 24px;
    margin-top: 14px;
    color: var(--ink-3);
    font: 400 12.5px/1.5 var(--mono);
}
.pc-hero__after p { margin: 0; }
.pc-hero__after code { color: var(--ink-2); font-size: 1em; }

.pc-hero__bottom {
    position: absolute;
    z-index: 3;
    inset: auto 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px var(--hero-inline) 22px;
    border-top: 1px solid var(--line);
    color: var(--ink-3);
    font: 400 12.5px/1.4 var(--mono);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.pc-hero__explore { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: var(--ink-2); text-decoration: none; transition: color 0.2s ease; }
.pc-hero__explore > span { color: var(--accent); transition: transform 0.25s ease; }
.pc-hero__privacy { display: inline-flex; align-items: center; gap: 10px; }
.pc-hero__privacy i { width: 6px; height: 6px; background: var(--accent); }
.pc-hero a:focus-visible,
.pc-hero button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
#pc-session-title { scroll-margin-top: 110px; }

@media (hover: hover) {
    .pc-hero a:hover { color: var(--ink); }
    .pc-hero__explore:hover > span { transform: translateY(3px); }
    .pc-hero__saving:hover { border-color: var(--accent); }
    .pc-hero__saving:hover > i { transform: translateX(3px); }
}

@media (min-width: 761px) and (max-width: 1100px) {
    .pc-hero__content { max-width: 640px; }
    .pc-hero .pc-title { font-size: clamp(40px, min(6.4vw, 9vh), 64px); }
}

/* Phones: copy on top, the night runs in its own band below the install box instead of behind it. */
@media (max-width: 760px) {
    .pc-hero { display: flex; flex-direction: column; min-height: 100svh; }
    .pc-hero__inner { min-height: 0; align-items: flex-start; padding: 124px var(--gutter) 0; }
    .pc-hero__eyebrow { margin-bottom: 26px; gap: 10px; font-size: 11.5px; }
    .pc-hero__eyebrow i { width: 6px; height: 6px; }
    .pc-hero .pc-title { font-size: clamp(30px, 9vw, 52px); line-height: 1.1; }
    .pc-hero__sub { max-width: 30em; margin-top: 20px; font-size: 16px; }
    .pc-hero__setup { margin-top: 32px; }
    .pc-hero__setup-head { font-size: 11.5px; }
    /* One line, as tall as the saving card below: the head ellipsizes in the middle of the command, the tail stays whole. */
    .pc-hero .pc-install__cmd { display: flex; align-items: baseline; padding: 14px; white-space: nowrap; font-size: 12px !important; }
    .pc-hero .pc-install__cmd > span[aria-hidden] { flex: none; }
    /* Monospace: rounding the head down to whole characters puts the ellipsis flush against the tail. 1ch + 8px is the "$" prompt;
       the extra 1px absorbs ch-vs-advance rounding, which otherwise makes the ellipsis drop one more character and leave a gap. */
    .pc-hero .pc-install__cmd .pc-install__head { min-width: 0; max-width: calc(round(down, 100% - (var(--tail) + 1) * 1ch - 9px, 1ch) + 1px); overflow: hidden; text-overflow: ellipsis; }
    .pc-hero .pc-install__cmd wbr { display: none; }
    .pc-hero .pc-install__cmd .pc-install__tail { flex: none; }
    .pc-hero .pc-install__copy { min-width: 70px; padding-inline: 12px; font-size: 15px; }
    .pc-hero__after { flex-direction: column; align-items: flex-start; gap: 10px; font-size: 11.5px; }
    .pc-hero__saving { gap: 14px; margin-top: 12px; padding-inline: 14px; }
    .pc-hero__saving b { font-size: 26px; }
    .pc-hero__saving > span { font-size: 13.5px; }
    .pc-hero__saving small { font-size: 9.5px; }
    .pc-hero__scene { position: relative; order: 1; inset: auto; flex: 1 0 auto; width: 100%; height: clamp(240px, 72vw, 340px); margin-top: 28px; }
    .pc-hero__bottom { position: relative; order: 2; gap: 16px; padding-block: 14px 16px; font-size: 11px; white-space: nowrap; }
}

@media (max-width: 360px) {
    .pc-hero__inner { padding-top: 112px; }
    .pc-hero__eyebrow { font-size: 10px; }
    .pc-hero__sub { font-size: 15px; }
    .pc-hero .pc-install__cmd { font-size: 11px !important; }
    .pc-hero__privacy { display: none; }
}
