/* JamRadar — landing page only. Load after site.css. */

/* ---------- Top bar: logo + sign-in on row 1, links + invert on row 2 (phone) ---------- */
.lp-header .site-header__row { row-gap: 2px; }
.lp-header .site-logo { order: 1; }
.lp-signin { order: 2; margin-left: auto; }
.lp-nav { order: 3; width: 100%; justify-content: space-between; }
.lp-nav__links { display: flex; flex-wrap: wrap; gap: 0 18px; }
.lp-invert { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 8px; border: var(--stroke-control) var(--ink); cursor: pointer; }
.lp-invert .jr-switch { width: 44px; height: 26px; }
.lp-invert .jr-switch::after { top: 3px; left: 3px; width: 16px; height: 16px; }
.lp-invert .jr-switch[aria-checked="true"]::after { left: 21px; }
.lp-invert__label { font-family: var(--font-type); font-size: 14px; color: var(--ink); }
@media (max-width: 479px) { .lp-invert__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }
@media (min-width: 900px) {
  .lp-nav { order: 2; width: auto; margin-left: auto; gap: 18px; }
  .lp-signin { order: 3; margin-left: 8px; }
}

/* ---------- Hero ---------- */
.lp-hero { padding: 28px 0 48px; }
.lp-hero__grid { display: grid; gap: 36px; }
.lp-aside { font-size: clamp(18px, 2.4vw, 22px); margin-bottom: 10px; transform: rotate(-1.5deg); transform-origin: left; }
.lp-h1 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; color: var(--ink); line-height: 0.86; letter-spacing: -0.5px; font-size: clamp(60px, 16.5vw, 150px); }
.lp-h1 > span { display: block; }
/* Phones have room for bigger lines; from 1024px up the two lines are half the display size */
.lp-h1__small { font-size: min(0.85em, 13vw); line-height: 1; margin-top: 0.06em; }
.lp-nearby { position: relative; width: -moz-fit-content; width: fit-content; margin-top: 0.12em; }
.lp-nearby .jr-stencil-strip { display: block; font-size: 0.62em; line-height: 0.86; padding: 0.06em 0.18em 0.12em; }
/* The hand-drawn oval is sticker yellow in both themes */
.lp-nearby svg { position: absolute; inset: -14% -7%; width: 114%; height: 128%; color: var(--sticker); pointer-events: none; overflow: visible; }
.lp-who-title { margin: 36px 0 6px; font-size: 20px; }
.lp-who { list-style: none; padding: 0; font-family: var(--font-display); text-transform: uppercase; font-size: clamp(26px, 4.4vw, 38px); line-height: 1.12; }
.lp-who li::before { content: "\2022\00a0"; }
.lp-who li:last-child { width: -moz-fit-content; width: fit-content; border-bottom: 3px solid var(--ink); }
.lp-hero__text { margin-top: 22px; padding-top: 18px; border-top: var(--stroke-rule) var(--ink); max-width: 460px; font-family: var(--font-type); font-size: 16px; line-height: 1.6; }

/* The stamp: three facts and the main action */
.lp-stamp { position: relative; align-self: end; max-width: 440px; padding: 10px 10px 54px; background: var(--ink-block); color: var(--ink); }
.lp-stamp dl { margin: 0; background: var(--ground); }
.lp-stamp__row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 10px 14px; font-family: var(--font-type); font-size: 14px; }
.lp-stamp__row + .lp-stamp__row { border-top: var(--stroke-rule) var(--ink); }
.lp-stamp dt { text-transform: uppercase; letter-spacing: 1px; }
.lp-stamp dd { margin: 0; text-align: right; }
.lp-stamp__free { font-family: var(--font-display); font-size: 40px; line-height: 1; text-transform: uppercase; }
.lp-stamp .jr-sticker-wrap { position: absolute; left: 50%; bottom: -22px; width: max-content; max-width: calc(100% - 16px); margin-left: 0; transform: translateX(-50%) rotate(var(--jr-tilt, -2deg)); }
.lp-cta { font-size: clamp(22px, 5.6vw, 30px); min-height: 64px; padding: 14px 24px; }

@media (min-width: 1024px) {
  .lp-hero { padding: 36px 0 72px; }
  .lp-hero__grid { grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; }
  .lp-h1 { font-size: clamp(120px, 12.5vw, 190px); }
  .lp-h1__small { font-size: 0.5em; }
}

/* ---------- "See who's nearby" band ---------- */
.lp-band { background: var(--ink-block); color: var(--on-ink); padding: 44px 0 52px; }
.lp-band__grid { display: grid; gap: 28px; align-items: center; }
.lp-stencil { font-family: var(--font-stencil); font-weight: 700; text-transform: uppercase; font-size: clamp(52px, 10vw, 108px); line-height: 0.86; }
.lp-band p { margin-top: 16px; max-width: 360px; font-family: var(--font-type); font-size: 16px; line-height: 1.55; }
@media (min-width: 800px) { .lp-band__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; } }

/* ---------- Sections ---------- */
.lp-section { padding: 56px 0 20px; }
.lp-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 18px; margin-bottom: 22px; }
.lp-title h2 { font-family: var(--font-stencil); font-weight: 700; text-transform: uppercase; font-size: clamp(52px, 10vw, 104px); line-height: 0.86; color: var(--ink); }
.lp-title .jr-hand { font-size: 18px; transform: rotate(-2deg); }

/* How it works */
.lp-steps { list-style: none; padding: 0; border-bottom: var(--stroke-rule) var(--ink); }
.lp-step { display: grid; gap: 4px 24px; padding: 18px 0 20px; border-top: var(--stroke-rule) var(--ink); }
.lp-step__n { font-family: var(--font-type); font-size: 13px; letter-spacing: 2px; text-transform: uppercase; }
.lp-step h3 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(32px, 6vw, 52px); line-height: 1; }
.lp-step p { margin-top: 6px; max-width: 720px; font-family: var(--font-type); font-size: 16px; line-height: 1.55; }
.lp-step p a { color: var(--ink); font-weight: 400; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
@media (min-width: 800px) { .lp-step { grid-template-columns: 150px minmax(0, 1fr); align-items: center; } .lp-step__n { grid-row: span 2; } }

/* Features */
.lp-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.lp-feature { padding: 22px 20px 24px; border: var(--stroke-control) var(--ink); }
.lp-feature:nth-child(2) { background: var(--ink-block); color: var(--on-ink); border-color: var(--ink-block); }
.lp-feature:nth-child(3) { border-style: dashed; }
.lp-feature h3 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 30px; line-height: 1.02; margin-bottom: 12px; }
.lp-feature ul { list-style: none; padding: 0; font-family: var(--font-type); font-size: 15px; line-height: 1.5; }
.lp-feature li { padding: 4px 0 4px 16px; position: relative; }
.lp-feature li::before { content: "\2022"; position: absolute; left: 0; }

/* FAQ */
.lp-faq { display: grid; gap: 24px 48px; padding-top: 28px; border-top: var(--stroke-rule) var(--ink); }
.lp-faq .lp-title { display: block; margin: 0; }
.lp-faq dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px 40px; }
.lp-faq dt { font-family: var(--font-display); text-transform: uppercase; font-size: 22px; line-height: 1.1; margin-bottom: 6px; }
.lp-faq dd { margin: 0; font-family: var(--font-type); font-size: 15px; line-height: 1.55; }
@media (min-width: 1024px) { .lp-faq { grid-template-columns: 300px minmax(0, 1fr); } }

/* Closing band */
.lp-close { margin-top: 56px; background: var(--ink-block); color: var(--on-ink); padding: 52px 0 60px; text-align: center; }
.lp-close h2 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(52px, 11vw, 112px); line-height: 0.9; }
.lp-close__actions { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 28px; }
.lp-close__actions a:not(.jr-sticker) { color: var(--on-ink); font-family: var(--font-type); font-size: 16px; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; display: inline-flex; align-items: center; min-height: 44px; }
.lp-close :focus-visible { outline-color: var(--on-ink); }

/* ---------- Sign-in sheet (phone) / dialog (desktop) ---------- */
.modal-overlay { display: none; position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, 0.6); align-items: flex-end; justify-content: center; }
.modal-overlay.active { display: flex; }
.modal-content {
  position: relative; width: 100%; max-width: 560px; max-height: calc(100dvh - 56px); overflow: auto;
  background: var(--ground-raised); color: var(--ink); border-top: var(--stroke-frame) var(--ink);
  padding: 24px 20px calc(28px + env(safe-area-inset-bottom)); animation: jr-sheet-in 220ms cubic-bezier(.2,.8,.2,1);
}
.modal-content::after { z-index: 0; }
.modal-content > * { position: relative; z-index: 1; }
.modal-title { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 28px; line-height: 1.05; padding: 6px 56px 16px 0; margin-bottom: 14px; border-bottom: var(--stroke-rule) var(--ink); }
.modal-lead { margin-top: 0; font-size: 16px; line-height: 1.5; }
.modal-content .jr-sticker-wrap { display: block; margin: 26px 0 22px; }
.modal-subtitle, .modal-legal { font-size: 14px; line-height: 20px; color: var(--ink-soft); }
.modal-subtitle { padding-top: 16px; border-top: var(--stroke-rule) var(--ink); color: var(--ink); }
.modal-legal { margin-top: 12px; }
.modal-legal a { color: var(--ink); font-weight: 600; }
.modal-error { margin-top: 12px; color: var(--signal-error); font-size: 14px; font-weight: 600; }
/* Above the title, whose box spans the full width and would otherwise take the click */
.close-modal { position: absolute !important; top: 18px; right: 16px; z-index: 2 !important; }
@media (min-width: 1024px) {
  .modal-overlay { align-items: center; }
  .modal-content { max-width: 460px; border: var(--stroke-frame) var(--ink); padding: 28px 28px 30px; animation: jr-fade-in 160ms ease-out; }
}

@media (prefers-reduced-motion: reduce) {
  .lp-aside, .lp-title .jr-hand { transform: none; }
  .lp-stamp .jr-sticker-wrap { transform: translateX(-50%); }
}

.lp-band.jr-tex, .lp-close.jr-tex, .lp-feature.jr-tex { --jr-tex: var(--texture-browse); }
.modal-content { outline: none; }
