/* ============================================================
   GTOLens landing — design tokens lifted from the app (css/app.css)
   mobile-first · charcoal · gold accent · no JS, no external origins
   ============================================================ */

/* Archivo is a variable-weight font: one latin woff2 covers 400–800
   (same file the app serves; self-hosted, no CDN). */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/archivo-latin.woff2?v=1) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* surfaces */
  --bg-0: #121417;
  --panel: #15181c;
  --panel-2: #1a1d22;
  --line: #23272e;
  --line-soft: #1f232a;

  /* ink */
  --ink: #e7e9ec;
  --ink-dim: #aab2bc;
  --muted: #7e8893;

  /* brand */
  --gold: #c4b04a;
  --gold-deep: #aa9436;
  --gold-glow: rgba(196, 176, 74, .16);

  --radius: 14px;
  --radius-s: 9px;
  --pad: clamp(16px, 4.5vw, 28px);
  --content: 1100px;

  --f-body: 'Archivo', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100dvh;
  background:
    radial-gradient(1100px 640px at 50% -160px, #1b222a 0%, transparent 60%),
    var(--bg-0);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--gold-deep); color: #0a0f0c; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

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

h1, h2, h3 { line-height: 1.18; margin: 0 0 .5em; letter-spacing: -.015em; }
p { margin: 0 0 1em; }
a { color: var(--gold); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: var(--radius-s);
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}
.btn-gold {
  background: linear-gradient(150deg, var(--gold), var(--gold-deep));
  color: #15130a;
  box-shadow: 0 6px 22px var(--gold-glow);
}
.btn-gold:hover { filter: brightness(1.07); }
.btn-ghost {
  color: var(--ink);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel-2) 70%, transparent);
}
.btn-ghost:hover { border-color: var(--gold-deep); }
.btn-lg { min-height: 50px; padding: 12px 28px; font-size: 17px; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px var(--pad);
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: var(--ink);
  text-decoration: none;
  font-weight: 750;
  font-size: 19px;
  letter-spacing: -.01em;
  min-height: 44px;
}
/* poker-chip mark — same logo as the app topbar (plo.gtolens.com), sized
   via --s so every proportion scales together on small screens */
.brand-mark {
  --s: 30px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--s); height: var(--s);
  border-radius: calc(var(--s) * .3);
  background: linear-gradient(150deg, var(--gold), #aa9436);
  box-shadow: 0 4px 14px rgba(196, 176, 74, .16);
}
.brand-mark::before {
  content: "";
  width: calc(var(--s) * .6); height: calc(var(--s) * .6);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #2b313a, #14161a 72%);
  box-shadow: inset 0 0 0 calc(var(--s) * .05) rgba(18, 20, 24, .6);
}
.brand-mark::after {
  content: "";
  position: absolute;
  top: calc(var(--s) * .27); left: calc(var(--s) * .3);
  width: calc(var(--s) * .13); height: calc(var(--s) * .13);
  border-radius: 50%;
  background: rgba(255, 255, 255, .5);
}
.brand-mark.small { --s: 24px; display: inline-flex; vertical-align: -6px; }
@media (max-width: 480px) {
  .brand-mark { --s: 26px; }
  .brand-mark.small { --s: 22px; }
}

/* ---------- hero ---------- */

.hero {
  max-width: var(--content);
  margin: 0 auto;
  padding: clamp(44px, 9vw, 96px) var(--pad) clamp(28px, 5vw, 56px);
  text-align: center;
}
.hero h1 {
  font-size: clamp(30px, 6.4vw, 54px);
  font-weight: 780;
  margin-bottom: .45em;
}
.hero-sub {
  max-width: 620px;
  margin: 0 auto 1.6em;
  color: var(--ink-dim);
  font-size: clamp(16px, 2.4vw, 19px);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: clamp(32px, 6vw, 56px);
}

.hero-shot {
  margin: 0 auto;
  max-width: 860px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 18px;
}
.hero-shot img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 50px -18px rgba(0, 0, 0, .8);
}
.hero-shot .hero-phone { display: none; }

.step img {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
}

/* ---------- sections ---------- */

.section {
  max-width: var(--content);
  margin: 0 auto;
  padding: clamp(30px, 6vw, 64px) var(--pad);
  scroll-margin-top: 62px; /* keep anchored headings clear of the sticky header */
}
.section h2 {
  font-size: clamp(23px, 4vw, 34px);
  font-weight: 760;
  margin-bottom: clamp(18px, 3.5vw, 32px);
}

/* features */
.feature-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
.feature-card {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.feature-card h3 { font-size: 17px; font-weight: 700; color: var(--gold); }
.feature-card p { margin: 0; color: var(--ink-dim); font-size: 15px; }

/* steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
  counter-reset: step;
}
.step {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.step h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--gold), var(--gold-deep));
  color: #15130a;
  font-size: 15px;
  font-weight: 750;
}
.step p { margin: 0; color: var(--ink-dim); font-size: 15px; }

/* FAQ */
.faq-item {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-s);
  margin-bottom: 10px;
}
.faq-item summary {
  cursor: pointer;
  padding: 14px 18px;
  font-weight: 650;
  min-height: 44px;
  display: flex;
  align-items: center;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+" / "";
  margin-left: auto;
  color: var(--gold);
  font-size: 20px;
  font-weight: 400;
}
.faq-item[open] summary::after { content: "\2212" / ""; }
.faq-item p { margin: 0; padding: 0 18px 16px; color: var(--ink-dim); font-size: 15px; }

/* closing CTA */
.closing { text-align: center; }
.closing p { color: var(--ink-dim); margin-bottom: 1.4em; }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: clamp(24px, 5vw, 48px);
  padding: 26px var(--pad) 34px;
  max-width: var(--content);
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  text-align: center;
}
.footer-brand { margin: 0; font-weight: 700; }
.footer-nav { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.footer-nav a { color: var(--ink-dim); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.footer-nav a:hover { color: var(--gold); }
.footer-note { margin: 0; color: var(--muted); font-size: 13px; }

/* ---------- prose (privacy) ---------- */

.prose { max-width: 720px; }
.prose h1 { font-size: clamp(28px, 5vw, 40px); font-weight: 770; }
.prose h2 { font-size: 20px; font-weight: 720; margin-top: 1.8em; color: var(--gold); }
.prose p, .prose li { color: var(--ink-dim); font-size: 15.5px; }
.prose strong { color: var(--ink); }
.prose ul { padding-left: 22px; margin: 0 0 1em; }
.prose li { margin-bottom: .5em; }
.prose-updated { color: var(--muted); font-size: 14px; }

/* ---------- spot pages (L5, generated by tools/spot-pages) ---------- */

.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--ink-dim); text-decoration: none; }
.crumbs a:hover { color: var(--gold); }

.spot-page h1 { font-size: clamp(26px, 5vw, 40px); font-weight: 770; }
.spot-badge {
  display: inline-block;
  padding: 3px 12px;
  border: 1px solid var(--gold-deep);
  border-radius: 999px;
  color: var(--gold);
  font-size: 13.5px;
  font-weight: 650;
  vertical-align: middle;
  margin-left: 12px;
  white-space: nowrap;
}
.spot-intro { color: var(--ink-dim); max-width: 720px; }

.spot-meta { border-collapse: collapse; margin: 18px 0 26px; font-size: 15px; }
.spot-meta th { text-align: left; color: var(--muted); font-weight: 600; padding: 5px 22px 5px 0; }
.spot-meta td { padding: 5px 0; }

.spot-shot { margin: 0 0 30px; max-width: 720px; }
.spot-shot img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.pos-block {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 14px;
}
.pos-block h3 { font-size: 17px; font-weight: 700; color: var(--gold); }
.pos-block p { color: var(--ink-dim); font-size: 15px; }
.act-table { width: 100%; max-width: 520px; border-collapse: collapse; font-size: 15px; }
.act-table th {
  text-align: left;
  color: var(--muted);
  font-weight: 600;
  border-bottom: 1px solid var(--line);
  padding: 6px 8px 6px 0;
}
.act-table td { padding: 7px 8px 7px 0; border-bottom: 1px solid var(--line-soft); }
.act-table th:nth-child(n+2), .act-table td:nth-child(n+2) { text-align: right; }

.spot-cta { text-align: center; margin: 34px 0 26px; }
.spot-cta .cta-note { color: var(--muted); font-size: 14px; margin: 10px 0 0; }
.spot-pager { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.spot-pager a { text-decoration: none; color: var(--ink-dim); min-height: 44px; display: inline-flex; align-items: center; }
.spot-pager a:hover { color: var(--gold); }

/* spot library index */
.spot-grid { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 14px; grid-template-columns: 1fr; }
.spot-grid a {
  display: block;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 16px 18px;
  text-decoration: none;
}
.spot-grid a:hover { border-color: var(--gold-deep); }
.spot-grid h3 { font-size: 17px; font-weight: 700; color: var(--ink); margin: 0 0 4px; }
.spot-grid p { margin: 0; color: var(--ink-dim); font-size: 14.5px; }

@media (min-width: 640px) { .spot-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .spot-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- 404 ---------- */

.error-page {
  min-height: calc(100dvh - 140px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px var(--pad);
}
.error-code {
  font-size: clamp(64px, 16vw, 120px);
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 12px;
}
.error-page p { color: var(--ink-dim); margin-bottom: 1.6em; }

/* ---------- breakpoints ---------- */

@media (min-width: 480px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .site-footer { flex-direction: row; justify-content: space-between; text-align: left; }
}

@media (min-width: 920px) {
  /* desktop hero: app shot + phone frame side by side */
  .hero-shot .hero-phone { display: block; width: 200px; flex: none; }
}

@media (min-width: 1100px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: 1fr 1fr; }
}
