/* ═══════════════════════════════════════════════════════════
   Ghost Logger pre-order, pain, app features, updates, comparison,
   about, reservation and FAQ sections. Namespaced (.gx-*) so nothing in
   styles.css is affected. Uses the same tokens as styles.css.
   ═══════════════════════════════════════════════════════════ */

/* Numbered eyebrows beyond the five styles.css defines. */
.section-eyebrow[data-n]::before { content: attr(data-n) ' / '; }

.gx-accent { color: var(--sage-light); }
.gx-red { color: var(--red-accent); }

/* ─── HERO additions ─── */
.gx-hero-trust {
  display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(245,245,242,0.6);
  opacity: 0; animation: fadeUp 0.8s ease 1s forwards;
}
.gx-hero-trust span::before { content: '✓ '; color: var(--sage); }

.btn-outline {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--sage-light);
  border: 1px solid rgba(139,168,152,0.45); padding: 15px 30px;
  text-decoration: none; border-radius: 2px; display: inline-block;
  transition: border-color 0.2s, color 0.2s, transform 0.15s;
}
.btn-outline:hover { border-color: var(--sage-light); color: var(--white); transform: translateY(-2px); }

/* ─── PAIN ─── */
#pain { padding: 120px 48px; }
.gx-pain-head { display: grid; grid-template-columns: 1fr 1fr; gap: 96px; align-items: end; margin-bottom: 64px; }
.gx-cost-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(139,168,152,0.12); border: 1px solid rgba(139,168,152,0.12); }
.gx-cost { background: var(--black); padding: 32px 28px; }
.gx-cost-val { font-family: var(--display); font-size: 48px; letter-spacing: 0.02em; color: var(--white); line-height: 1; }
.gx-cost-val small { font-size: 0.45em; color: rgba(245,245,242,0.4); margin-left: 4px; }
.gx-cost-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage); margin: 14px 0 8px; }
.gx-cost-text { font-family: var(--body); font-weight: 400; font-size: 14px; line-height: 1.7; color: rgba(245,245,242,0.6); }
.gx-cost.gx-cost-hit .gx-cost-val { color: var(--red-accent); }

.gx-gap { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 48px; background: rgba(139,168,152,0.12); border: 1px solid rgba(139,168,152,0.12); }
.gx-gap-side { background: var(--gray-dark); padding: 36px 32px; }
.gx-gap-side h3 { font-family: var(--display); font-size: 30px; letter-spacing: 0.03em; margin-bottom: 14px; }
.gx-gap-side ul { list-style: none; display: grid; gap: 10px; }
.gx-gap-side li { font-family: var(--body); font-weight: 400; font-size: 14px; line-height: 1.6; color: rgba(245,245,242,0.6); padding-left: 22px; position: relative; }
.gx-gap-side.them li::before { content: '✓'; position: absolute; left: 0; color: var(--green-accent); font-family: var(--mono); font-size: 12px; }
.gx-gap-side.you li::before { content: '✕'; position: absolute; left: 0; color: var(--red-accent); font-family: var(--mono); font-size: 12px; }
.gx-gap-tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(245,245,242,0.35); margin-bottom: 10px; }
.gx-punch {
  margin-top: 56px; text-align: center;
  font-family: var(--display); font-size: clamp(32px, 4.2vw, 58px); letter-spacing: 0.03em; line-height: 1.05;
}
.gx-punch em { font-style: normal; color: var(--sage-light); }

/* ─── LOGGER (product) ─── */
#logger { padding: 120px 48px; }
.gx-product { display: grid; grid-template-columns: 1.05fr 1fr; gap: 80px; align-items: start; }
.gx-device-card {
  position: relative; background: var(--gray-dark);
  border: 1px solid rgba(139,168,152,0.15); border-radius: 4px; padding: 24px; overflow: hidden;
  position: sticky; top: 96px;
}
.gx-device-card::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(135deg, rgba(139,168,152,0.08) 0%, transparent 55%);
}
.gx-badge {
  position: absolute; top: 18px; right: 18px; z-index: 3;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--amber-accent); border: 1px solid rgba(249,115,22,0.4); background: rgba(249,115,22,0.08);
  padding: 6px 12px; border-radius: 2px;
}
.gx-stage {
  position: relative; aspect-ratio: 4 / 3; border-radius: 3px;
  background:
    radial-gradient(circle at 50% 45%, rgba(139,168,152,0.12), transparent 60%),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.012) 0 10px, transparent 10px 20px);
  border: 1px dashed rgba(139,168,152,0.3);
  display: flex; align-items: center; justify-content: center;
}
.gx-stage.has-model { border-style: solid; border-color: rgba(139,168,152,0.15); }
.gx-stage model-viewer { width: 100%; height: 100%; --poster-color: transparent; background: transparent; }
.gx-tick { position: absolute; width: 12px; height: 12px; border-color: var(--sage); opacity: 0.5; pointer-events: none; }
.gx-tick.tl { top: 10px; left: 10px; border-top: 1px solid; border-left: 1px solid; }
.gx-tick.tr { top: 10px; right: 10px; border-top: 1px solid; border-right: 1px solid; }
.gx-tick.bl { bottom: 10px; left: 10px; border-bottom: 1px solid; border-left: 1px solid; }
.gx-tick.br { bottom: 10px; right: 10px; border-bottom: 1px solid; border-right: 1px solid; }
.gx-device-svg { width: 72%; max-width: 360px; height: auto; }
.gx-stage-hint {
  position: absolute; bottom: 14px; left: 0; right: 0; text-align: center;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(245,245,242,0.3);
}
.gx-led { animation: gx-blink 1.35s steps(1) infinite; }
@keyframes gx-blink { 0%, 60% { opacity: 1; } 61%, 100% { opacity: 0.15; } }
.gx-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; position: relative; z-index: 2; }
.gx-chip {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(216,234,224,0.7); border: 1px solid rgba(139,168,152,0.22); padding: 6px 10px; border-radius: 2px;
}

.gx-name { font-family: var(--display); font-size: clamp(52px, 6vw, 92px); letter-spacing: 0.03em; line-height: 0.92; margin-bottom: 18px; }
.gx-price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px 18px; margin: 8px 0 22px; }
.gx-price { font-family: var(--display); font-size: 64px; letter-spacing: 0.02em; color: var(--sage-light); line-height: 1; }
.gx-price small { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; color: rgba(245,245,242,0.6); margin-left: 6px; }
.gx-anchor { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: rgba(245,245,242,0.6); }
.gx-firstrun { display: block; margin: 6px 0 8px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber-accent); }
.gx-anchor s { color: rgba(248,113,113,0.8); }
.gx-lead { font-family: var(--body); font-weight: 400; font-size: 16px; line-height: 1.8; color: rgba(245,245,242,0.65); max-width: 560px; }

.gx-specs { margin: 36px 0; border-top: 1px solid rgba(139,168,152,0.15); }
.gx-spec { display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid rgba(139,168,152,0.1); }
.gx-spec-n { font-family: var(--mono); font-size: 11px; color: var(--sage); padding-top: 3px; }
.gx-spec-title { font-family: var(--body); font-weight: 600; font-size: 15px; color: var(--white); margin-bottom: 4px; }
.gx-spec-text { font-family: var(--body); font-weight: 400; font-size: 14px; line-height: 1.65; color: rgba(245,245,242,0.6); }

.gx-buy { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.gx-assure { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px; }
.gx-assure div {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.5;
  color: rgba(245,245,242,0.6); border-left: 2px solid var(--sage); padding: 4px 0 4px 10px;
}

/* ─── HOW (10 laps) ─── */
#how { padding: 120px 48px; }
.gx-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; counter-reset: step; }
.gx-step { border-top: 2px solid var(--sage); padding-top: 22px; }
.gx-step-n { font-family: var(--display); font-size: 56px; color: rgba(139,168,152,0.35); line-height: 1; }
.gx-step h3 { font-family: var(--display); font-size: 28px; letter-spacing: 0.03em; margin: 8px 0 10px; }
.gx-step p { font-family: var(--body); font-weight: 400; font-size: 14px; line-height: 1.75; color: rgba(245,245,242,0.6); }
.gx-step .gx-time { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage); margin-top: 12px; display: block; }

/* ─── APP FEATURES ─── */
#app-features { padding: 120px 48px; }
.gx-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 56px; background: rgba(139,168,152,0.12); border: 1px solid rgba(139,168,152,0.12); }
.gx-feature { background: var(--black); padding: 32px 28px; position: relative; }
.gx-feature:hover { background: #0b0d0c; }
.gx-feature-tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sage); }
.gx-feature-tag.new { color: var(--amber-accent); }
.gx-feature h3 { font-family: var(--display); font-size: 27px; letter-spacing: 0.03em; margin: 10px 0 10px; }
.gx-feature p { font-family: var(--body); font-weight: 400; font-size: 14px; line-height: 1.7; color: rgba(245,245,242,0.6); }
.gx-gapmap { width: 100%; height: auto; margin-top: 18px; display: block; }

/* ─── UPDATES ─── */
#updates { padding: 120px 48px; }
.gx-updates { display: grid; grid-template-columns: 1fr 1fr; gap: 96px; align-items: start; }
.gx-log { border: 1px solid rgba(139,168,152,0.18); border-radius: 3px; background: #000; font-family: var(--mono); font-size: 12px; overflow: hidden; }
.gx-log-head { display: flex; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid rgba(139,168,152,0.15); font-size: 11px; letter-spacing: 0.14em; color: var(--sage); }
.gx-log-body { padding: 14px; display: grid; gap: 6px; line-height: 1.55; }
.gx-log-body .t { color: #3d3d3d; }
.gx-log-body .ok { color: var(--green-accent); }
.gx-log-body .in { color: var(--sage-light); }
.gx-log-body .dim { color: rgba(245,245,242,0.6); }
.gx-bar { height: 6px; background: rgba(255,255,255,0.05); margin: 4px 0 2px; }
.gx-bar i { display: block; height: 100%; width: 100%; background: var(--sage); animation: gx-fill 3.2s ease-in-out infinite; transform-origin: left; }
@keyframes gx-fill { 0% { transform: scaleX(0); } 70%, 100% { transform: scaleX(1); } }
.gx-promise { list-style: none; display: grid; gap: 18px; margin-top: 32px; }
.gx-promise li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; font-family: var(--body); font-weight: 400; font-size: 15px; line-height: 1.65; color: rgba(245,245,242,0.6); }
.gx-promise li::before { content: '↻'; color: var(--sage); font-family: var(--mono); }
.gx-promise strong { color: var(--white); font-weight: 600; }

/* ─── COMPARISON ─── */
#compare { padding: 120px 48px; }
.gx-table-wrap { overflow-x: auto; margin-top: 48px; border: 1px solid rgba(139,168,152,0.15); }
.gx-table { width: 100%; min-width: 680px; border-collapse: collapse; font-family: var(--body); font-size: 14px; }
.gx-table th, .gx-table td { padding: 16px 18px; text-align: left; border-bottom: 1px solid rgba(139,168,152,0.1); vertical-align: top; }
.gx-table thead th { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(245,245,242,0.6); font-weight: 400; }
.gx-table thead th.us { color: var(--black); background: var(--sage); }
.gx-table td { color: rgba(245,245,242,0.6); font-weight: 400; }
.gx-table td.us { color: var(--white); background: rgba(139,168,152,0.07); font-weight: 400; }
.gx-table td:first-child { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(245,245,242,0.6); }
.gx-y { color: var(--green-accent); font-family: var(--mono); }
.gx-n { color: var(--red-accent); font-family: var(--mono); }

/* ─── ABOUT ─── */
#about { padding: 120px 48px; }
.gx-about { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 96px; align-items: start; }
.gx-about-side { position: sticky; top: 110px; }
.gx-quote {
  font-family: var(--display); font-size: clamp(34px, 3.6vw, 52px); letter-spacing: 0.03em; line-height: 1.02;
  border-left: 3px solid var(--sage); padding-left: 24px; margin-top: 8px;
}
.gx-quote cite { display: block; font-family: var(--mono); font-style: normal; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage); margin-top: 18px; }
.gx-path { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 36px; }
.gx-path div { border: 1px solid rgba(139,168,152,0.15); padding: 12px 14px; }
.gx-path b { display: block; font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sage); margin-bottom: 4px; }
.gx-path span { font-family: var(--body); font-size: 13px; color: rgba(245,245,242,0.7); }
.gx-bio p { font-family: var(--body); font-weight: 400; font-size: 16px; line-height: 1.85; color: rgba(245,245,242,0.65); margin-bottom: 22px; }
.gx-bio strong { color: var(--white); font-weight: 500; }
.gx-bio-photo { margin: 0 0 32px; }
.gx-bio-photo img { display: block; width: 100%; height: auto; border-radius: 3px; border: 1px solid rgba(139,168,152,0.18); }
.gx-bio-photo figcaption { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(245,245,242,0.45); margin-top: 10px; }

/* ─── RESERVE ─── */
#reserve { padding: 120px 48px; background: linear-gradient(180deg, transparent, rgba(139,168,152,0.04)); }
.gx-reserve { display: grid; grid-template-columns: 1fr 1fr; gap: 96px; align-items: start; }
.gx-form { background: var(--gray-dark); border: 1px solid rgba(139,168,152,0.18); border-radius: 4px; padding: 32px; }
.gx-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 22px; }
.gx-choice label {
  display: block; cursor: pointer; border: 1px solid rgba(139,168,152,0.2); border-radius: 3px; padding: 14px;
  transition: border-color 0.2s, background 0.2s;
}
.gx-choice input { position: absolute; opacity: 0; pointer-events: none; }
.gx-choice input:checked + label { border-color: var(--sage); background: rgba(139,168,152,0.08); }
.gx-choice input:focus-visible + label { outline: 2px solid var(--sage-light); outline-offset: 2px; }
.gx-choice-title { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--white); }
.gx-choice-sub { font-family: var(--body); font-size: 12px; color: rgba(245,245,242,0.6); margin-top: 4px; }
.gx-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.gx-fields .full { grid-column: 1 / -1; }
.gx-submit {
  width: 100%; margin-top: 18px; border: none; cursor: pointer;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--black); background: var(--sage); padding: 17px 24px; border-radius: 2px;
  transition: background 0.2s, transform 0.15s;
}
.gx-submit:hover { background: var(--sage-light); transform: translateY(-2px); }
.gx-submit:disabled { opacity: 0.6; cursor: wait; transform: none; }
.gx-note { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; line-height: 1.6; color: rgba(245,245,242,0.35); margin-top: 14px; }
.gx-error { font-family: var(--body); font-size: 13px; color: var(--red-accent); margin-top: 12px; min-height: 1em; }
.gx-success { display: none; border: 1px solid rgba(139,168,152,0.3); background: rgba(139,168,152,0.06); border-radius: 4px; padding: 28px; }
.gx-success.show { display: block; animation: gx-fade 0.4s ease; }
@keyframes gx-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.gx-success-title { font-family: var(--display); font-size: 34px; letter-spacing: 0.03em; color: var(--sage-light); margin-bottom: 8px; }
.gx-success-text { font-family: var(--body); font-weight: 400; font-size: 15px; line-height: 1.7; color: rgba(245,245,242,0.65); }
.gx-queue { font-family: var(--display); font-size: 72px; color: var(--white); line-height: 1; margin: 12px 0 4px; }
.gx-live {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 26px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(245,245,242,0.6);
}
.gx-live::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--green-accent);
  box-shadow: 0 0 0 4px rgba(74,222,128,0.15); animation: gx-pulse 2s ease-in-out infinite;
}
@keyframes gx-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.gx-checklist { list-style: none; display: grid; gap: 12px; margin-top: 32px; }
.gx-checklist li { font-family: var(--body); font-weight: 400; font-size: 15px; color: rgba(245,245,242,0.65); padding-left: 26px; position: relative; }
.gx-checklist li::before { content: '✓'; position: absolute; left: 0; color: var(--sage); font-family: var(--mono); }

/* ─── FAQ ─── */
#faq { padding: 120px 48px; }
.gx-faq { max-width: 860px; margin-top: 40px; border-top: 1px solid rgba(139,168,152,0.15); }
.gx-faq details { border-bottom: 1px solid rgba(139,168,152,0.12); }
.gx-faq summary {
  cursor: pointer; list-style: none; padding: 22px 36px 22px 0; position: relative;
  font-family: var(--body); font-weight: 600; font-size: 16px; color: var(--white);
}
.gx-faq summary::-webkit-details-marker { display: none; }
.gx-faq summary::after { content: '+'; position: absolute; right: 4px; top: 18px; font-family: var(--mono); font-size: 20px; color: var(--sage); transition: transform 0.2s; }
.gx-faq details[open] summary::after { transform: rotate(45deg); }
.gx-faq details p { font-family: var(--body); font-weight: 400; font-size: 15px; line-height: 1.8; color: rgba(245,245,242,0.6); padding: 0 36px 24px 0; }

/* ─── STICKY MOBILE CTA ─── */
.gx-sticky {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 90;
  display: none; align-items: center; justify-content: space-between; gap: 12px;
  background: rgba(6,6,6,0.94); backdrop-filter: blur(12px);
  border: 1px solid rgba(139,168,152,0.3); border-radius: 3px; padding: 10px 10px 10px 16px;
  transform: translateY(140%); transition: transform 0.3s ease;
}
.gx-sticky.show { transform: translateY(0); }
.gx-sticky-text { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: rgba(245,245,242,0.75); }
.gx-sticky-text b { color: var(--sage-light); font-weight: 500; }
.gx-sticky .btn-primary { padding: 12px 16px; font-size: 11px; white-space: nowrap; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
  #pain, #logger, #how, #app-features, #updates, #compare, #about, #reserve, #faq { padding: 96px 32px; }
  .gx-pain-head, .gx-product, .gx-updates, .gx-about, .gx-reserve { gap: 48px; }
  .gx-cost-grid { grid-template-columns: repeat(2, 1fr); }
  .gx-feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  #pain, #logger, #how, #app-features, #updates, #compare, #about, #reserve, #faq { padding: 72px 24px; }
  .gx-pain-head, .gx-product, .gx-updates, .gx-about, .gx-reserve, .gx-gap { grid-template-columns: 1fr; }
  .gx-pain-head { gap: 16px; margin-bottom: 40px; }
  .gx-device-card, .gx-about-side { position: relative; top: 0; }
  .gx-steps { grid-template-columns: 1fr; }
  .gx-feature-grid { grid-template-columns: 1fr; }
  .gx-assure { grid-template-columns: 1fr; }
  .gx-fields { grid-template-columns: 1fr; }
  .gx-sticky { display: flex; }
  .gx-price { font-size: 52px; }
  footer { padding-bottom: 96px; }
}
@media (max-width: 480px) {
  #pain, #logger, #how, #app-features, #updates, #compare, #about, #reserve, #faq { padding: 56px 20px; }
  .gx-cost-grid { grid-template-columns: 1fr; }
  .gx-choice { grid-template-columns: 1fr; }
  .gx-form { padding: 22px 18px; }
  .gx-path { grid-template-columns: 1fr; }
  .gx-buy .btn-primary, .gx-buy .btn-outline { width: 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .gx-led, .gx-bar i, .gx-live::before { animation: none; }
}

/* Pre-existing fix: the lap table's min-width stretched its grid column on
   phones, scrolling the whole page sideways. Let the column shrink so the
   table scrolls inside its own wrapper instead. */
.analysis-layout > * { min-width: 0; }
.gx-live[hidden] { display: none; }
.gx-choice-title, .gx-choice-sub { display: block; }

/* Real board render in the product card (until a 3D model replaces it). */
.gx-device-img { width: 86%; max-width: 460px; height: auto; display: block; filter: drop-shadow(0 18px 40px rgba(0,0,0,0.6)); }
/* Badge sits above the board render rather than over its corner. */
.gx-device-card .gx-badge { position: static; display: inline-block; margin-bottom: 14px; }
.gx-device-img { width: auto; max-width: 80%; max-height: 80%; margin-top: -18px; }

/* ─── ENGRAVING (reservation form) ─── */
.gx-engrave { border: none; margin: 22px 0 0; padding: 18px 0 0; border-top: 1px solid rgba(139,168,152,0.15); }
.gx-engrave[hidden] { display: none; }
.gx-engrave legend { padding: 0; margin-bottom: 12px; }
.gx-engrave-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: center; margin-top: 12px; }
.gx-engrave-fields { display: grid; gap: 12px; }
.gx-plate {
  position: relative; aspect-ratio: 3 / 2; border-radius: 12px;
  background: linear-gradient(160deg, #2b302d 0%, #121413 70%);
  border: 1px solid rgba(216,234,224,0.35);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 14px 28px rgba(0,0,0,0.45);
  display: flex; flex-direction: column; justify-content: center; padding: 0 18px; gap: 2px; overflow: hidden;
}
.gx-plate-brand { font-family: var(--display); font-size: 13px; letter-spacing: 0.3em; color: rgba(216,234,224,0.35); }
/* Engraved look: dark text with a light lower edge, as if cut into the lid. */
.gx-plate-num, .gx-plate-name {
  color: #0d0f0e; text-shadow: 0 1px 0 rgba(216,234,224,0.35), 0 -1px 0 rgba(0,0,0,0.6);
  white-space: nowrap; overflow: hidden; text-overflow: clip;
}
.gx-plate-num { font-family: var(--display); font-size: 48px; line-height: 0.95; letter-spacing: 0.02em; }
.gx-plate-name { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; }
.gx-plate.is-empty .gx-plate-num, .gx-plate.is-empty .gx-plate-name { opacity: 0.45; }
.gx-plate-led { position: absolute; top: 14px; right: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 8px rgba(139,168,152,0.8); }
@media (max-width: 480px) {
  .gx-engrave-grid { grid-template-columns: 1fr; }
}
/* Laser marking on a black lid reads light grey, not dark. */
.gx-plate-num, .gx-plate-name { color: rgba(226,232,228,0.88); text-shadow: 0 0 1px rgba(255,255,255,0.25), 0 1px 0 rgba(0,0,0,0.7); }
.gx-plate.is-empty .gx-plate-num, .gx-plate.is-empty .gx-plate-name { opacity: 0.3; }
.gx-engrave-grid { margin-top: 0; }

/* ─── REAL SESSION (app showcase) ─── */
#session { padding: 120px 48px; }
.gx-session-head { display: grid; grid-template-columns: 1fr 1fr; gap: 96px; align-items: end; margin-bottom: 36px; }
.gx-facts { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: rgba(139,168,152,0.12); border: 1px solid rgba(139,168,152,0.12); margin-bottom: 28px; }
.gx-facts div { background: var(--black); padding: 14px 16px; }
.gx-facts b, .gx-kpis b { display: block; font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sage); margin-bottom: 4px; }
.gx-facts span { font-family: var(--mono); font-size: 13px; color: var(--white); }
.gx-tablist { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 1px solid rgba(139,168,152,0.18); margin-bottom: 22px; }
.gx-tablist button {
  background: none; border: none; cursor: pointer; padding: 12px 18px; margin-bottom: -1px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(245,245,242,0.6); border-bottom: 2px solid transparent; transition: color 0.2s, border-color 0.2s;
}
.gx-tablist button:hover { color: var(--white); }
.gx-tablist button[aria-selected="true"] { color: var(--sage-light); border-bottom-color: var(--sage); }
.gx-panel[hidden] { display: none; }
.gx-panel-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 28px; align-items: start; }
.gx-shot { width: 100%; height: auto; display: block; border: 1px solid rgba(139,168,152,0.18); border-radius: 3px; }
.gx-panel-side { display: grid; gap: 16px; }
.gx-panel-title { font-family: var(--display); font-size: 30px; letter-spacing: 0.03em; }
.gx-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gx-kpis div { border: 1px solid rgba(139,168,152,0.15); padding: 12px 14px; }
.gx-kpis span { font-family: var(--mono); font-size: 17px; color: var(--white); }
.gx-corner-table { margin-top: 0; }
.gx-corner-table table { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 12px; }
.gx-corner-table th { text-align: left; font-weight: 400; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(245,245,242,0.4); padding: 10px 10px 8px; border-bottom: 1px solid rgba(139,168,152,0.15); }
.gx-corner-table td { padding: 8px 10px; border-bottom: 1px solid rgba(139,168,152,0.07); color: rgba(245,245,242,0.85); white-space: nowrap; }
.gx-corner-table td.bar { width: 26%; }
.gx-corner-table td.bar i { display: block; height: 5px; }
.gx-corner-table td.bar i.lose { background: var(--red-accent); }
.gx-corner-table td.bar i.gain { background: var(--green-accent); }
.dim { color: rgba(245,245,242,0.4); }
.gx-cap { font-family: var(--body); font-weight: 400; font-size: 13px; line-height: 1.65; color: rgba(245,245,242,0.6); }
.gx-chart { border: 1px solid rgba(139,168,152,0.15); padding: 16px 18px 12px; margin-top: 18px; background: rgba(255,255,255,0.01); }
.gx-chart-title { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(245,245,242,0.6); margin-bottom: 10px; }
.gx-svg { width: 100%; height: 110px; display: block; }
.gx-svg.tall { height: 190px; }
.gx-axis { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: rgba(245,245,242,0.3); margin-top: 6px; }
.gx-laps { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 28px; margin-bottom: 14px; }
.gx-lap { display: grid; grid-template-columns: 36px 64px 1fr 64px; gap: 10px; align-items: center; font-family: var(--mono); font-size: 12px; color: rgba(245,245,242,0.75); padding: 4px 0; }
.gx-lap .b { height: 6px; background: rgba(255,255,255,0.04); }
.gx-lap .b i { display: block; height: 100%; background: rgba(139,168,152,0.55); }
.gx-lap .d { text-align: right; color: rgba(245,245,242,0.4); font-size: 11px; }
.gx-lap.best { color: var(--sage-light); }
.gx-lap.best .b i { background: var(--sage-light); }
.gx-lap.best .d { color: var(--sage-light); }
.gx-lap.out { opacity: 0.45; }
.gx-credit { font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; color: rgba(245,245,242,0.3); margin-top: 22px; }
@media (max-width: 1024px) {
  #session { padding: 96px 32px; }
  .gx-facts { grid-template-columns: repeat(3, 1fr); }
  .gx-panel-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  #session { padding: 72px 24px; }
  .gx-session-head { grid-template-columns: 1fr; gap: 16px; }
  .gx-facts { grid-template-columns: repeat(2, 1fr); }
  .gx-laps { grid-template-columns: 1fr; }
  .gx-tablist { overflow-x: auto; flex-wrap: nowrap; }
  .gx-tablist button { white-space: nowrap; padding: 12px 14px; }
}
@media (max-width: 480px) {
  #session { padding: 56px 20px; }
  .gx-kpis { grid-template-columns: 1fr 1fr; }
}
.gx-turns { position: relative; height: 14px; margin-bottom: -6px; }
.gx-turns span { position: absolute; transform: translateX(-50%); font-family: var(--mono); font-size: 11px; color: rgba(245,245,242,0.6); }
.gx-turns { height: 24px; }
.gx-turns span.low { top: 11px; }
@media (max-width: 768px) {
  .gx-corner-table th:nth-child(3), .gx-corner-table td.bar { display: none; }
}

/* Keep the hero clear of the fixed nav when its content is taller than the screen. */
#hero { padding-top: 128px; }
@media (max-width: 768px) { #hero { padding-top: 104px; } }
@media (max-width: 480px) { #hero { padding-top: 96px; } }

/* ─── SUBSCRIBE ─── */
#subscribe { padding: 120px 48px; }
.gx-sub { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 96px; align-items: center; }
.gx-sub .section-body { margin-bottom: 32px; }
.gx-sub-list {
  list-style: none; display: grid; gap: 1px; background: rgba(139,168,152,0.12);
  border: 1px solid rgba(139,168,152,0.18); border-radius: 12px; overflow: hidden;
}
.gx-sub-list li {
  background: #0b0d0c; padding: 16px 20px 16px 48px; position: relative;
  font-family: var(--body); font-size: 16px; color: rgba(245,245,242,0.85);
}
.gx-sub-list li::before { content: '✓'; position: absolute; left: 20px; color: var(--green-accent); font-weight: 600; }
@media (max-width: 1024px) { #subscribe { padding: 96px 32px; } .gx-sub { gap: 48px; } }
@media (max-width: 768px) { #subscribe { padding: 72px 24px; } .gx-sub { grid-template-columns: 1fr; } }
@media (max-width: 480px) { #subscribe { padding: 56px 20px; } }

/* ─── WHERE THE TIME WENT (opener) ─── */
#time { padding: 120px 48px; }
.gx-time-head { display: grid; grid-template-columns: 1fr 1fr; gap: 96px; align-items: end; margin-bottom: 40px; }
.gx-time-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.gx-time-fig { margin: 0; }
.gx-time-fig figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-top: 14px; font-family: var(--mono); font-size: 12px; color: rgba(245,245,242,0.6); }
.gx-time-fig figcaption b { font-family: var(--display); font-weight: 400; font-size: 24px; letter-spacing: 0.03em; color: var(--white); }
.gx-time-gap { color: var(--red-accent); font-size: 14px; }
.gx-time-gap em { font-style: normal; color: rgba(245,245,242,0.6); font-size: 12px; margin-left: 6px; }

/* ─── KEY FEATURES ─── */
.gx-kf { display: grid; grid-template-columns: 1fr 1.15fr; gap: 72px; align-items: center; padding: 72px 0; border-top: 1px solid rgba(139,168,152,0.1); }
.gx-kf:first-of-type { margin-top: 48px; }
.gx-kf.flip .gx-kf-text { order: 2; }
.gx-kf.flip .gx-kf-visual { order: 1; }
.gx-kf-num { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; color: var(--sage); }
.gx-kf h3 { font-family: var(--display); font-weight: 400; font-size: 48px; letter-spacing: 0.02em; line-height: 1; margin: 10px 0 18px; }
.gx-kf-text p { font-family: var(--body); font-size: 17px; line-height: 1.7; color: rgba(245,245,242,0.75); }
.gx-kf-list { list-style: none; margin-top: 22px; display: grid; gap: 10px; }
.gx-kf-list li { font-family: var(--body); font-size: 15px; color: rgba(245,245,242,0.8); padding-left: 22px; position: relative; }
.gx-kf-list li::before { content: '✓'; position: absolute; left: 0; color: var(--sage); }
.gx-kf-note { margin-top: 18px; font-size: 15px !important; color: var(--sage-light) !important; }
.gx-kf-note em { font-style: normal; color: var(--white); }

.gx-mock { background: #0b0d0c; border: 1px solid rgba(139,168,152,0.18); border-radius: 12px; padding: 22px 22px 18px; box-shadow: 0 30px 60px -30px rgba(0,0,0,0.8); }
.gx-mock-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 16px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
.gx-mock-head span:first-child { color: var(--white); font-weight: 600; }
.gx-tips { list-style: none; display: grid; gap: 18px; }
.gx-tips li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; }
.gx-tip-turn { font-family: var(--mono); font-size: 14px; color: var(--sage); padding-top: 2px; }
.gx-tip-title { font-family: var(--body); font-weight: 600; font-size: 16px; color: var(--white); display: flex; justify-content: space-between; gap: 12px; }
.gx-tip-gain { font-family: var(--mono); font-weight: 500; font-size: 14px; color: var(--white); white-space: nowrap; }
.gx-tip-body { font-family: var(--body); font-size: 14px; line-height: 1.6; color: rgba(245,245,242,0.8); margin-top: 4px; }
.gx-tip-ev { font-family: var(--mono); font-size: 11px; line-height: 1.6; color: rgba(245,245,242,0.45); margin-top: 6px; }
.gx-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.gx-chip { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--green-accent); color: var(--green-accent); border-radius: 999px; padding: 6px 12px; font-family: var(--body); font-weight: 600; font-size: 13px; }
.gx-chip i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.gx-chip:not(.ok) { border-color: rgba(139,168,152,0.4); color: var(--sage-light); }
.gx-setup-diag { font-family: var(--body); font-weight: 600; font-size: 16px; line-height: 1.5; color: var(--white); }
.gx-setup-actions { list-style: none; display: grid; gap: 8px; margin: 12px 0 4px; }
.gx-setup-actions li { font-family: var(--body); font-size: 14px; line-height: 1.55; color: rgba(245,245,242,0.8); padding-left: 16px; position: relative; }
.gx-setup-actions li::before { content: '•'; position: absolute; left: 2px; color: var(--sage); }
.gx-mock .gx-kpis { margin-bottom: 10px; }
.gx-post-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.gx-post-head div { display: grid; gap: 2px; }
.gx-post-head b { font-family: var(--body); font-weight: 600; font-size: 15px; color: var(--white); }
.gx-post-head .dim { font-family: var(--mono); font-size: 11px; }
.gx-avatar { width: 40px; height: 40px; border-radius: 50%; background: rgba(139,168,152,0.18); border: 1px solid rgba(139,168,152,0.4); color: var(--sage-light); display: grid; place-items: center; font-family: var(--body); font-weight: 600; }
.gx-post-map { width: 100%; height: auto; background: #050605; border: 1px solid rgba(139,168,152,0.12); border-radius: 8px; display: block; }
.gx-post-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(139,168,152,0.12); border: 1px solid rgba(139,168,152,0.12); margin-top: 12px; }
.gx-post-stats div { background: #0b0d0c; padding: 10px 12px; }
.gx-post-stats b { display: block; font-family: var(--mono); font-weight: 400; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage); margin-bottom: 3px; }
.gx-post-stats span { font-family: var(--mono); font-size: 14px; color: var(--white); }
.gx-post-actions { display: flex; gap: 20px; margin-top: 14px; font-family: var(--body); font-weight: 600; font-size: 13px; color: rgba(245,245,242,0.6); }
.gx-post-actions .go { margin-left: auto; color: var(--sage-light); }
.gx-feature-grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  #time { padding: 96px 32px; }
  .gx-kf { grid-template-columns: 1fr; gap: 36px; padding: 56px 0; }
  .gx-kf.flip .gx-kf-text, .gx-kf.flip .gx-kf-visual { order: 0; }
  .gx-feature-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  #time { padding: 72px 24px; }
  .gx-time-head { grid-template-columns: 1fr; gap: 16px; }
  .gx-time-grid { grid-template-columns: 1fr; }
  .gx-kf h3 { font-size: 40px; }
  .gx-post-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  #time { padding: 56px 20px; }
  .gx-feature-grid--4 { grid-template-columns: 1fr; }
  .gx-mock { padding: 18px 16px 14px; }
  .gx-tips li { grid-template-columns: 34px 1fr; }
}

/* ─── APPLE HIG LAYER ───────────────────────────────────────────────
   Typography and interaction rules from Apple's Human Interface
   Guidelines, applied over the base styles:
   - Text in the system face (SF Pro / SF Mono on Apple devices);
     Bebas Neue only for display headings, never synthesised bold.
   - Buttons: title case, SF semibold 17, rounded-rect, ≥44 px target,
     immediate press feedback (scale-down on :active).
   - Visible keyboard focus, and Reduce Motion honoured everywhere. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}
h1, h2, h3, h4, .section-title, .cta-title, .gx-title { font-synthesis: none; }

.btn-primary, .btn-outline, .btn-modal-primary, .nav-links .nav-cta, .gx-submit {
  font-family: var(--body);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
  border-radius: 12px;
  min-height: 50px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.12s cubic-bezier(.2,.9,.3,1.2);
  -webkit-user-select: none; user-select: none;
  touch-action: manipulation;
}
.btn-primary, .btn-outline { font-size: 17px; padding: 0 28px; }
.btn-modal-primary, .gx-submit { font-size: 17px; padding: 0 20px; display: flex; width: 100%; }
.nav-links .nav-cta { font-size: 15px; min-height: 44px; padding: 0 18px; }
.gx-sticky .btn-primary { font-size: 15px; min-height: 44px; padding: 0 16px; }
.btn-ghost {
  font-family: var(--body); font-size: 17px; font-weight: 500;
  letter-spacing: -0.01em; text-transform: none; min-height: 44px;
}
.btn-primary:active, .btn-outline:active, .btn-modal-primary:active, .nav-links .nav-cta:active, .gx-submit:active {
  transform: scale(0.97); transition-duration: 0.05s;
}
.btn-ghost:active { opacity: 0.6; }
.btn-modal-primary:disabled, .btn-primary[aria-disabled="true"] { opacity: 0.4; transform: none; cursor: default; }

/* Tab and segment controls get a 44 px row height. */
.gx-tablist [role="tab"], .gx-tablist button { min-height: 44px; }

a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--sage-light) 80%, transparent);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Form fields: 16 px+ text so iOS Safari never zooms on focus. */
input, select, textarea { font-family: var(--body); font-size: max(16px, 1em); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
