/*!
 * Sheree Ip on PrivacySafe: TOKEN2049 link page
 * Copyright (C) 2026 Ivy Cyber LLC.
 * SPDX-License-Identifier: AGPL-3.0-or-later
 * Stack Sans Text: Copyright 2025 The Stack Sans Project Authors, SIL OFL 1.1
 *
 * Typography and shape follow press/brand.json (v3.1.0):
 * web_stack, editorial_scale, heading_weight 700, pill buttons and badges,
 * 8px spacing rhythm, 44px minimum tap target.
 */

@font-face {
  font-family: "Stack Sans Text";
  src: url("../fonts/StackSansText.woff2") format("woff2");
  font-weight: 200 700;
  font-display: swap;
}

:root {
  /* palette: PrivacySafe night + flame, teal from Sheree's portrait */
  --night: #1A1916;
  --ink: #FAF9F5;
  --muted: #C2C0B6;
  --quiet: #A6A49B;
  --line: rgba(250, 249, 245, .12);
  --line-strong: rgba(250, 249, 245, .22);
  --flame-a: #EF2008;
  --flame-b: #FF6428;
  --flame: #FB521F;
  --teal: #18797C;
  --teal-soft: #6FC3C2;
  --paper: #FAF9F5;

  /* brand.json typography.web_stack */
  --font: "Stack Sans Text", "Inter", "Liberation Sans", "Helvetica Neue", Helvetica, Arial, "DejaVu Sans", Roboto, "Segoe UI", system-ui, sans-serif;

  /* brand.json typography.editorial_scale */
  --fs-label: 14px;
  --fs-small: 17px;
  --fs-body: 19px;
  --fs-lead: clamp(21px, 2.2vw, 26px);
  --fs-h3: 24px;
  --fs-h2: clamp(2rem, 4.4vw, 3.8rem);
  --fs-h1: clamp(2.25rem, 4.9vw, 4.1rem);
  --fs-panel: clamp(28px, 3vw, 38px);

  --radius-pill: 999px;
  --radius-card: 12px;
  --radius-app: 20px;

  color-scheme: dark;
}

* { box-sizing: border-box; }
:root {
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
html { scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 16px); scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink);
  background:
    radial-gradient(48rem 32rem at 18% -6%, rgba(24, 121, 124, .30), transparent 70%),
    radial-gradient(40rem 30rem at 100% 70%, rgba(251, 82, 31, .14), transparent 70%),
    var(--night);
  -webkit-font-smoothing: antialiased;
  font-kerning: normal;
}
a { color: inherit; }
img, svg { max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 700; letter-spacing: -.024em; text-wrap: balance; }
p { text-wrap: pretty; }
strong { font-weight: 700; }

:focus-visible {
  outline: 3px solid var(--teal-soft);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  padding: 10px 16px;
  background: var(--paper);
  color: var(--night);
  border-radius: var(--radius-pill);
  font-size: var(--fs-small);
  font-weight: 600;
  z-index: 10;
}
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 12px); }

/* ---------- buttons (brand: pills, 2px flame outline, weight 500) ---------- */
.btn,
.copy {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 24px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--flame);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease;
}
.btn:hover,
.copy:hover { background: rgba(251, 82, 31, .12); }
.copy[data-state="done"] { background: var(--teal); border-color: var(--teal); color: var(--ink); }

/* ---------- layout ---------- */
.page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 920px) {
  .page {
    grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
    gap: 64px;
    padding-top: 56px;
    align-items: start;
  }
  .profile { position: sticky; top: 40px; }
}

/* ---------- profile column ---------- */
.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
}
.portrait {
  width: min(300px, 78vw);
  aspect-ratio: 570 / 447;
  display: block;
  margin-bottom: 4px;
}
.portrait img { width: 100%; height: auto; display: block; }
.portrait-link { display: block; border-radius: 50% 50% 12px 12px; }
.portrait-link:hover .portrait img { filter: brightness(1.06); }
.name {
  font-size: var(--fs-h1);
  line-height: 1.02;
  margin-top: 8px;
}
.role a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: rgba(250, 249, 245, .55); }
.role a:hover { text-decoration-color: var(--ink); }
.role {
  margin-top: 12px;
  color: var(--muted);
  font-size: var(--fs-small);
  line-height: 1.45;
  max-width: 34ch;
}

.address {
  margin-top: 16px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(111, 195, 194, .40);
  background: rgba(24, 121, 124, .18);
  text-align: left;
}
.address-value {
  font-size: var(--fs-small);
  font-weight: 600;
  margin-right: auto;
  min-width: 0;
  overflow-wrap: anywhere;
}
.address .copy { padding: 0 20px; flex: none; }
@container (max-width: 440px) {
  .address {
    flex-wrap: wrap;
    border-radius: var(--radius-app);
    padding: 16px;
  }
  .address-value { flex-basis: 100%; text-align: center; }
  .address .copy { width: 100%; }
}

.links {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  width: 100%;
  display: grid;
  gap: 8px;
}
.link {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 8px 24px 8px 8px;
  text-align: left;
  text-decoration: none;
  border-radius: var(--radius-pill);
  background: rgba(250, 249, 245, .045);
  border: 1px solid var(--line);
  transition: background-color .16s ease, border-color .16s ease;
}
.link:hover { background: rgba(250, 249, 245, .085); border-color: var(--line-strong); }
.link .ico {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(250, 249, 245, .08);
}
.link .ico svg { width: 20px; height: 20px; fill: currentColor; }
.link .ico svg.stroke { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; width: 22px; height: 22px; }
.link .ico svg[viewBox="0 0 800 800"] { width: 28px; height: 28px; }
.link .ico img { width: 26px; height: 26px; }
.link-text { display: flex; flex-direction: column; min-width: 0; }
.link-name { font-size: var(--fs-small); font-weight: 600; line-height: 1.25; }
.link-handle { color: var(--quiet); font-size: 16px; line-height: 1.3; overflow-wrap: anywhere; }

.link.lead {
  min-height: 72px;
  border: 0;
  color: #1A0703;
  background: linear-gradient(120deg, var(--flame-a), var(--flame-b));
  box-shadow: 0 14px 36px rgba(251, 82, 31, .25);
}
.link.lead:hover,
.link.lead:focus-visible {
  /* darker flame so white text holds 4.5:1 (white on #C41606 6.1:1, on #C2410C 5.2:1) */
  background: linear-gradient(120deg, #C41606, #C2410C);
  color: #FFFFFF;
}
.link.lead:hover .link-handle,
.link.lead:focus-visible .link-handle { color: #FFFFFF; }
.link.lead .ico { background: rgba(26, 25, 22, .92); }
.link.lead .link-name { white-space: nowrap; }
.link.lead .link-handle { color: rgba(26, 7, 3, .80); font-weight: 500; }

/* ---------- offer column ---------- */
.offer {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  container-type: inline-size;
}
@media (min-width: 920px) { .offer { margin: 0; } }

.offer-intro {
  /* one line at every width: the h2 token, capped so it never wraps */
  font-size: min(var(--fs-h2), 8.2cqi);
  line-height: 1.05;
  white-space: nowrap;
}
/* PrivacySafe wordmark gradient (#EF2008 to #FF6428); the period stays white */
.accent {
  color: var(--flame);
  background: linear-gradient(90deg, var(--flame-a), var(--flame-b));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.store-row {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.store { width: 100%; padding: 0 10px; font-size: 15px; }
@container (max-width: 340px) {
  .store-row { grid-template-columns: 1fr; }
  .store { font-size: 15px; padding: 0 12px; gap: 8px; }
  .store-ico, .store-ico svg { width: 16px; height: 16px; }
}
@container (min-width: 600px) {
  .store-row { display: flex; flex-wrap: nowrap; gap: 8px; }
  .store-row li { flex: 1 1 auto; min-width: 0; }
  .store { padding: 0 12px; font-size: 15px; gap: 7px; }
}
@container (min-width: 680px) {
  .store { padding: 0 16px; font-size: 16px; }
}
.store-ico { display: inline-flex; flex: none; width: 18px; height: 18px; }
.store-ico svg { width: 18px; height: 18px; fill: currentColor; }
.store-ico svg.stroke { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.offer-sub {
  margin-top: 24px;
  color: var(--muted);
  font-size: var(--fs-body);
}
.offer-sub strong { color: var(--ink); font-weight: 600; }

/* ---------- the pass ---------- */
.pass {
  margin-top: 32px;
  border-radius: var(--radius-app);
  background: var(--paper);
  color: var(--night);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
  overflow: hidden;
}
.pass-main { padding: 32px 24px 24px; position: relative; }
@media (min-width: 560px) { .pass-main { padding: 40px 40px 32px; } }
.pass-main::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 8px;
  background: linear-gradient(90deg, var(--flame-a), var(--flame-b));
}
.pass-event {
  display: inline-block;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--night);
  color: var(--paper);
  font-size: var(--fs-label);
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.pass-title {
  margin-top: 16px;
  font-size: var(--fs-panel);
  line-height: 1.1;
  max-width: 20ch;
}
.pass-terms {
  margin-top: 12px;
  font-size: var(--fs-body);
  line-height: 1.5;
  color: #45433D;
}
.pass-terms strong { color: var(--night); }
.pass-terms .was {
  color: #5D5B54;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--flame);
}

.code {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.code-label {
  flex-basis: 100%;
  font-size: var(--fs-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #5D5B54;
}
.code-value {
  font-size: var(--fs-panel);
  font-weight: 700;
  line-height: 1;
  letter-spacing: .04em;
  padding: 12px 20px;
  border-radius: var(--radius-card);
  border: 2px dashed rgba(26, 25, 22, .35);
  background: #FFFFFF;
  user-select: all;
  -webkit-user-select: all;
}
.pass .copy { color: var(--night); }
.pass .copy[data-state="done"] { color: var(--ink); }

.claim {
  margin-top: 24px;
  width: 100%;
  min-height: 56px;
  border: 0;
  background: linear-gradient(120deg, var(--flame-a), var(--flame-b));
  color: #1A0703;
  font-size: var(--fs-small);
  font-weight: 600;
  box-shadow: 0 12px 28px rgba(239, 32, 8, .25);
  transition: background-color .16s ease, color .16s ease;
}
.claim:hover,
.claim:focus-visible,
.claim:active { background: linear-gradient(120deg, #C41606, #C2410C); color: #FFFFFF; }
.claim:focus-visible { outline-color: var(--teal); }
/* focus ring on the light pass: dark teal keeps 4.9:1 against paper */
.pass :focus-visible { outline-color: var(--teal); }


/* Pass head: badge, title and terms in reading order, QR top right
   beside the headline at every width */
.pass-head {
  /* sized from the .offer container so the QR shrinks with the column */
  --qr: clamp(96px, 30cqi, 168px);
  --qr-min: 84px;
  --qr-gap: clamp(12px, 3.6cqi, 24px);
  container-type: inline-size;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--qr);
  grid-template-areas:
    "badge qr"
    "title qr"
    "terms terms";
  grid-template-rows: auto 1fr auto;
  column-gap: var(--qr-gap);
  align-items: start;
}
.pass-event { grid-area: badge; justify-self: start; }
.pass-event { white-space: nowrap; }
@container (max-width: 280px) {
  .pass-event { font-size: 12px; letter-spacing: .03em; padding: 5px 10px; }
}
.pass-title {
  grid-area: title;
  /* "@privacysafe.gg" is about 7.9em wide; size the headline so it fits
     the column left of the QR, capped at the brand panel size */
  font-size: min(var(--fs-panel), calc((100cqi - var(--qr) - var(--qr-gap)) / 9));
}
.pass-terms { grid-area: terms; }
.pass-qr {
  grid-area: qr;
  width: var(--qr);
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--night);
  border-radius: var(--radius-card);
}
.qr {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  padding: 7px;
  background: #FFFFFF;
  border: 1px solid rgba(26, 25, 22, .14);
  border-radius: var(--radius-card);
}
.qr svg { display: block; width: 100%; height: 100%; }
/* URL caption: always shown, one line, scaled to the QR width
   ("psafe.ly/realdeal2049" is about 10.4em wide at weight 600) */
.pass-qr-url {
  display: block;
  margin-top: 8px;
  font-size: max(10.5px, calc(var(--qr) / 10.4));
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-color: var(--flame);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
/* larger floor on wider screens, which are often 1x displays scanned from a phone */
@media (min-width: 560px) { .pass-head { --qr: clamp(112px, 26cqi, 168px); } }
@container (min-width: 440px) {
  .qr { padding: 12px; }
}


.deck {
  margin-top: 24px;
  width: 100%;
  min-height: 56px;
  font-size: var(--fs-small);
}

/* ---------- footer ---------- */
.foot {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--quiet);
  font-size: var(--fs-small);
}

/* privacysafe.app footer panels (css/privacysafe.css: .footer-community and
   friends), below the hairline under the page's own footer text */
.footer-community {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
@media (max-width: 900px) { .footer-community { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .footer-panel { padding: 22px 20px; border-radius: 22px; } }
.footer-panel {
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(251, 82, 31, .07), transparent 45%), rgba(38, 38, 36, .72);
  box-shadow: 0 14px 45px rgba(0, 0, 0, .18);
  color: var(--muted);
}
.footer-logo-link { display: block; width: min(310px, 100%); margin-bottom: 20px; border-radius: 8px; }
.footer-logo { display: block; width: 100%; height: auto; }
.footer-panel h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.12;
}
.footer-panel h3 { margin: 22px 0 10px; color: var(--ink); font-size: var(--fs-h3); }
.footer-panel p { margin: 0 0 18px; line-height: 1.55; font-size: var(--fs-small); max-width: none; }
.footer-panel p a { color: #D9824F; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; }
.footer-panel p a:hover { color: var(--ink); }
.footer-panel .footer-offered { margin: 24px 0 0; }
.social-links { display: flex; flex-wrap: wrap; gap: 10px; }
.social-link {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--flame);
  border-radius: var(--radius-pill);
  color: var(--ink);
  transition: background-color .18s ease;
}
.social-link:hover { background: rgba(251, 82, 31, .12); }
.social-link svg { width: 20px; height: 20px; fill: currentColor; }
.social-link svg.stroke { fill: none; stroke: currentColor; stroke-width: 1.8; }
.social-link svg.stroke .dot { fill: currentColor; stroke: none; }
.card-footnote::after { content: ""; display: block; clear: both; }
.newsletter-avatar {
  display: block;
  float: left;
  width: 56px;
  height: 56px;
  margin: 2px 16px 8px 0;
  border-radius: 14px;
  border: 1px solid var(--line);
}
.card-footnote-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 12px; }
.btn.small { min-height: 44px; padding: 0 16px; font-size: 16px; }
.btn.primary {
  border: 0;
  background: linear-gradient(120deg, var(--flame-a), var(--flame-b));
  color: #1A0703;
}
.btn.primary:hover,
.btn.primary:focus-visible { background: linear-gradient(120deg, #C41606, #C2410C); color: #FFFFFF; }
.ico-btn, .ico-ext { width: 18px; height: 18px; flex: none; }
.ico-ext { width: 15px; height: 15px; }
.footer-panel .newsletter-note { margin: 0; color: var(--quiet); font-size: var(--fs-small); }
.footer-community + .footer-inner { margin-top: 30px; }

/* Shared PrivacySafe site footer (privacysafe.app css/privacysafe.css):
   centred links row, full-width left-aligned legal text */
.footer-inner {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 16px;
  text-align: center;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 10px;
  align-content: start;
}
.footer-links a {
  color: #D9824F;
  padding: 8px 10px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: color .16s ease, background-color .16s ease;
}
.footer-links a:hover { color: var(--ink); background: rgba(250, 249, 245, .055); }
.fine {
  width: 100%;
  justify-self: stretch;
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-small);
  line-height: 1.62;
  text-align: left;
}
.fine a {
  color: #D9824F;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
}
.fine a.orange { color: var(--flame); }
.fine a:hover { color: var(--ink); }

.nowrap { white-space: nowrap; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

@media (max-width: 359px) {
  .pass-main { padding-left: 20px; padding-right: 20px; }
}

@media (forced-colors: active) {
  .accent { background: none; -webkit-text-fill-color: currentColor; color: LinkText; }
  .link, .btn, .copy, .address, .pass { border: 1px solid CanvasText; }
  .pass-main::before { background: CanvasText; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media print {
  body { background: #fff; color: #000; }
  .link.lead, .claim { box-shadow: none; }
}
