/**
 * gpacket.com — marketing site.
 * Paper, ink, and copper. The panel keeps its own UI.
 */

:root {
  color-scheme: light;
  --canvas: #f4efe6;
  --surface: #fbf7f0;
  --surface-2: #f3ecdf;
  --raised: #efe6d4;
  --hover: #e9dfcc;
  --border: #e4d9c6;
  --border-strong: #cfc3ad;
  --text: #1c1612;
  --text-2: #5e564c;
  --text-3: #7a7166;
  --text-on-accent: #f4efe6;
  --accent: #c2410c;
  --accent-strong: #9a3412;
  --accent-solid: #1c1612;
  --accent-quiet: rgba(194, 65, 12, 0.1);
  --accent-line: rgba(194, 65, 12, 0.45);
  --ok: #1b7a45;
  --ok-quiet: rgba(27, 122, 69, 0.12);
  --ok-line: rgba(27, 122, 69, 0.35);
  --danger: #b42318;
  --font: Outfit, "Segoe UI", system-ui, sans-serif;
  --display: Fraunces, Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
  --max: 1120px;
  --rail: 300px;
  --night: #12100e;
  --paper: #f4efe6;
  --ink: #1c1612;
  --copper: #e85d2c;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(900px 420px at 100% -8%, rgba(232, 93, 44, 0.07), transparent 55%),
    var(--canvas);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
}
body.home { background: var(--canvas); }
a { color: inherit; }
::selection { background: #f0c2a4; color: var(--ink); }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--paper);
  color: var(--ink);
  padding: 8px 12px;
  z-index: 20;
}
.skip:focus { top: 12px; }
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.wrap { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }
.mono { font-family: var(--mono); font-size: 0.92em; }

header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 22px 0;
  position: relative;
  z-index: 2;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-size: 17px;
}
.mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--ink);
  color: #f0b088;
}
nav.site { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
nav.site a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 999px;
}
nav.site a:hover { color: var(--text); background: var(--hover); }
nav.site a[aria-current="page"] { color: var(--text); }
nav.site a.cta {
  color: var(--text-on-accent);
  background: var(--ink);
  margin-left: 6px;
}
nav.site a.cta:hover { background: #2c2622; color: var(--text-on-accent); }

h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 560;
  font-optical-sizing: auto;
  font-size: clamp(40px, 5.6vw, 68px);
  letter-spacing: -0.035em;
  line-height: 0.98;
}
.lede {
  max-width: 42rem;
  margin: 18px 0 0;
  color: var(--text-2);
  font-size: 18px;
  line-height: 1.55;
}
.kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--hover); }
.btn.primary {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.btn.primary:hover { background: #2c2622; border-color: #2c2622; }
.btn.block { width: 100%; }

.band { padding: 88px 0; }
.band.tight { padding-top: 8px; }
.home h2 {
  margin: 0;
  max-width: 14em;
  font-family: var(--display);
  font-weight: 560;
  font-optical-sizing: auto;
  font-size: clamp(34px, 4.4vw, 56px);
  letter-spacing: -0.03em;
  line-height: 1.02;
}
.home h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.stage {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(800px 420px at 78% 0%, rgba(232, 93, 44, 0.2), transparent 55%),
    var(--night);
  color: var(--paper);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.stage .brand { color: var(--paper); }
.stage .mark { background: var(--paper); color: #c2410c; }
.stage nav.site a { color: rgba(244, 239, 230, 0.72); }
.stage nav.site a:hover { color: var(--paper); background: rgba(244, 239, 230, 0.08); }
.stage nav.site a.cta { background: var(--paper); color: var(--ink); }
.stage nav.site a.cta:hover { background: #fff; color: var(--ink); }
.stage .kicker { color: #f0b088; }
.stage main { flex: 1; display: flex; align-items: center; padding-bottom: 72px; }
.trace {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 150px;
  z-index: 0;
  pointer-events: none;
}
.trace path {
  fill: none;
  stroke: var(--copper);
  stroke-width: 1.25;
  stroke-dasharray: 7 16;
  opacity: 0.85;
  animation: drift 2.6s linear infinite;
}
@keyframes drift { to { stroke-dashoffset: -92; } }

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 48px;
  align-items: center;
  width: min(var(--max), calc(100% - 48px));
  padding: 12px 0 36px;
}
.hero-copy h1 em {
  font-style: italic;
  font-weight: 500;
  color: #f0b088;
}
.stage .lede { color: rgba(244, 239, 230, 0.74); max-width: 36rem; }
.hero-copy .btn.primary {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}
.hero-copy .btn.primary:hover { background: #fff; border-color: #fff; }
.hero-copy .btn.ghost {
  background: transparent;
  border-color: rgba(244, 239, 230, 0.28);
  color: var(--paper);
}
.hero-copy .btn.ghost:hover { background: rgba(244, 239, 230, 0.08); }

.ticket {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  border-radius: 18px;
  padding: 26px 26px 22px 34px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}
.ticket::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 22px;
  bottom: 22px;
  width: 1px;
  background: repeating-linear-gradient(to bottom, #c9bfb0 0 4px, transparent 4px 10px);
}
.ticket-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--ok);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.ticket-kicker i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px var(--ok-quiet);
}
.ticket-kicker.out { color: var(--danger); }
.ticket-kicker.out i { background: var(--danger); box-shadow: none; }
.ticket-cpu {
  margin: 0;
  font-family: var(--display);
  font-weight: 560;
  font-size: clamp(32px, 3vw, 42px);
  letter-spacing: -0.03em;
  line-height: 1;
}
.ticket-where { margin: 8px 0 0; color: var(--text-2); font-size: 14px; }
.ticket-plan { margin: 16px 0 0; font-size: 14px; font-weight: 600; }
.ticket-kv { margin: 12px 0 0; }
.ticket-kv div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-top: 1px solid var(--border);
  font-size: 14px;
}
.ticket-kv dt { color: var(--text-3); }
.ticket-kv dd { margin: 0; font-weight: 500; }
.ticket-price {
  margin: 16px 0 14px;
  font-family: var(--display);
  font-weight: 560;
  font-size: 40px;
  letter-spacing: -0.03em;
  line-height: 1;
}
.ticket-price small {
  margin-left: 2px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-3);
}
.ticket .btn.primary { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.ticket .btn.primary:hover { background: #2c2622; }
.ticket-fine { margin: 12px 0 0; color: var(--text-3); font-size: 12px; line-height: 1.45; }
.ticket-fallback { margin: 0; color: var(--text-2); }
.ticket-fallback a { color: var(--accent); }

.ribbon {
  overflow: hidden;
  background: var(--night);
  color: rgba(244, 239, 230, 0.62);
  border-top: 1px solid rgba(244, 239, 230, 0.08);
  padding: 16px 0 18px;
}
.ribbon-track {
  display: flex;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.ribbon span {
  padding: 0 28px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.ribbon span::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 28px;
  border-radius: 50%;
  background: var(--copper);
  vertical-align: middle;
  transform: translateY(-1px);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 36px;
}
.pair article {
  padding: 28px 28px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
}
.pair .idx {
  margin: 0 0 18px;
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  color: var(--accent);
}
.pair p:last-child { margin: 0; color: var(--text-2); }

.invert {
  background: var(--night);
  color: var(--paper);
}
.invert .kicker { color: #f0b088; }
.invert .lede { color: rgba(244, 239, 230, 0.74); }

.poster { padding: 96px 0 100px; }
.hostname {
  margin: 0;
  font-family: var(--display);
  font-weight: 560;
  font-size: clamp(42px, 6.6vw, 84px);
  letter-spacing: -0.04em;
  line-height: 0.96;
  text-wrap: balance;
}
.hostname .you {
  font-style: italic;
  font-weight: 500;
  color: #f0b088;
}
.poster .lede { margin-top: 22px; max-width: 38rem; }

.path-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}
.path-list li {
  padding-top: 18px;
  border-top: 1px solid var(--border-strong);
}
.path-list span {
  display: block;
  margin-bottom: 12px;
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}
.path-list h3 { margin: 0 0 8px; }
.path-list p { margin: 0; color: var(--text-2); }

.panel-band { background: #efe8db; }
.caps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 36px;
}
.caps article {
  padding: 26px 28px 28px 0;
  border-top: 1px solid #d9d0c0;
}
.caps article:nth-child(even) {
  padding-left: 28px;
  border-left: 1px solid #d9d0c0;
}
.caps p { margin: 0; color: var(--text-2); }
.note { margin: 22px 0 0; max-width: 68ch; color: var(--text-3); font-size: 14px; }

.shelf .offers { margin-top: 32px; }
.offers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 320px));
  gap: 12px;
}
.offer {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 190px;
  padding: 22px;
  border-radius: 16px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  transition: transform 160ms ease;
}
.offer:hover { transform: translateY(-3px); }
.offer-mem {
  font-family: var(--display);
  font-weight: 560;
  font-size: 40px;
  letter-spacing: -0.03em;
  line-height: 1;
}
.offer-price { color: var(--text-2); font-size: 15px; }
.offer-price small { font-size: 13px; }
.offer-meta { margin-top: auto; color: var(--text-2); font-size: 13px; }
.offer-go {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ok);
}
.offer.is-out .offer-go { color: var(--danger); }
.offer-wait { margin: 0; color: rgba(244, 239, 230, 0.72); }
.offer-wait a, .shelf-more a { color: #f0b088; }
.shelf-more { margin: 18px 0 0; font-size: 14px; }
.shelf-more a { text-underline-offset: 3px; }

.steps-how {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps-how li {
  padding: 18px 18px 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  counter-increment: step;
}
.steps-how li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font-family: var(--display);
  font-style: italic;
  font-size: 20px;
}
.steps-how strong { display: block; margin-bottom: 4px; font-weight: 600; }
.steps-how span { color: var(--text-2); font-size: 14px; }

footer.site { padding: 12px 0 36px; color: var(--text-3); font-size: 14px; }
footer.site .wrap {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  border-top: 1px solid var(--border);
  padding-top: 22px;
}
footer.site strong {
  display: block;
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.02em;
}
footer.site p { margin: 4px 0 0; }
footer.site a { color: var(--text-2); text-decoration: none; }
footer.site a:hover { color: var(--text); }
footer.site nav { display: flex; gap: 16px; }

body.plans h1 { max-width: 12ch; }
body.plans h2 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
body.plans .hero { padding: 28px 0 8px; display: block; }
body.plans .lede { font-size: 17px; }

.shop {
  display: grid;
  grid-template-columns: 1fr var(--rail);
  gap: 28px;
  align-items: start;
  padding: 12px 0 72px;
}
.host { margin: 28px 0; }
.host-head { margin-bottom: 14px; }
.host-head h2 { margin-bottom: 4px; }
.host-meta { margin: 0; color: var(--text-3); font-size: 13px; }
.host-meta .mono { color: var(--text-2); }
.sub { margin: 8px 0 0; max-width: 62ch; color: var(--text-2); font-size: 15px; }

.sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  border: 0;
}
.sizes legend {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.size, .dedi {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  cursor: pointer;
}
.size { width: 132px; }
.size:hover, .dedi:hover { border-color: var(--border-strong); }
.size:has(input:checked), .dedi:has(input:checked) {
  border-color: var(--accent-line);
  background: var(--accent-quiet);
}
.size input, .dedi input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.size:focus-within, .dedi:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.size .mem {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 560;
  letter-spacing: -0.03em;
}
.size .amt, .dedi .amt { color: var(--text-2); font-size: 13px; }
.size .flag, .dedi .flag {
  color: var(--danger);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.picked { margin: 12px 0 0; color: var(--text-2); font-size: 14px; }
.picked strong { color: var(--text); font-weight: 600; }

.dedis { display: flex; flex-direction: column; gap: 8px; }
.dedi {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 16px;
  align-items: center;
}
.dedi .who { font-weight: 600; }
.dedi .meta { grid-column: 1; color: var(--text-3); font-size: 13px; }
.dedi .amt { grid-column: 2; grid-row: 1 / span 2; text-align: right; color: var(--text); font-size: 15px; }
.dedi .amt span { color: var(--text-3); font-size: 12px; }
.dedi .flag { grid-column: 1; }

.empty {
  padding: 16px;
  border: 1px dashed var(--border-strong);
  border-radius: 12px;
  color: var(--text-2);
  font-size: 14px;
}
.empty a { color: var(--accent); }

.rail {
  position: sticky;
  top: 20px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}
.rail h2 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}
.rail .product {
  margin: 8px 0 4px;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 560;
  letter-spacing: -0.03em;
}
.rail .where { margin: 0 0 14px; color: var(--text-2); font-size: 13px; }
.kv { margin: 0; }
.kv div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--border);
  font-size: 13px;
}
.kv dt { color: var(--text-3); }
.kv dd { margin: 0; text-align: right; }
.total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 14px 0;
  font-size: 14px;
}
.total b {
  font-family: var(--display);
  font-size: 32px;
  font-weight: 560;
  letter-spacing: -0.03em;
}
.fine { margin: 10px 0 0; color: var(--text-3); font-size: 12px; line-height: 1.45; }
.stock {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.stock i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px var(--ok-quiet);
}
.stock.out { color: var(--danger); }
.stock.out i { background: var(--danger); box-shadow: none; }

@media (max-width: 900px) {
  .hero, .pair, .path-list, .steps-how { grid-template-columns: 1fr; }
  .caps { grid-template-columns: 1fr; }
  .caps article:nth-child(even) {
    padding-left: 0;
    border-left: 0;
  }
  .stage main { align-items: stretch; }
  .shop { grid-template-columns: 1fr; }
  body.plans { padding-bottom: 176px; }
  .rail {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    z-index: 5;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -16px 40px rgba(28, 22, 18, 0.12);
  }
  .rail .kv { display: none; }
  footer.site .wrap { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .wrap, header.site { width: min(var(--max), calc(100% - 32px)); }
  .band { padding: 64px 0; }
  header.site { align-items: flex-start; flex-direction: column; }
  nav.site a.cta { margin-left: 0; }
  .hostname { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .trace path, .ribbon-track { animation: none; }
  .ribbon-track { width: auto; flex-wrap: wrap; justify-content: center; row-gap: 8px; }
  .ribbon span[data-clone] { display: none; }
  .offer { transition: none; }
}
