/* Card Glance website. Navy ground, teal accents, gold for money — the app's palette.
   Jost stands in for the app's Futura wordmark; it's the closest geometric sans on Google Fonts. */

:root {
  --navy: #0B1F2B;
  --navy-2: #102C3B;
  --card: rgba(255, 255, 255, 0.06);
  --line: rgba(79, 195, 195, 0.22);
  --ink: #E8F1F4;
  --dim: #A9BCC6;
  --dimmer: #7B909B;
  --teal: #4FC3C3;
  --teal-dark: #2E8F8F;
  --gold: #FFD166;
  --radius: 16px;
  --wrap: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--navy);
  color: var(--ink);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, .wordmark, .display {
  font-family: Jost, "Futura", "Avenir Next", -apple-system, sans-serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); margin: 0 0 14px; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); margin: 0 0 12px; }
h3 { font-size: 1.15rem; margin: 0 0 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 720px; }

/* ---------- Header ---------- */

header.site {
  position: sticky; top: 0; z-index: 20;
  background: rgba(11, 31, 43, 0.86);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
header.site .wrap { display: flex; align-items: center; gap: 18px; height: 62px; }

.wordmark { display: flex; align-items: center; gap: 9px; color: var(--ink); font-size: 1.22rem; }
.wordmark:hover { text-decoration: none; }
/* The mark is the card, scan line and coin on clear ground — no tile, so no radius.
   Its card reads at roughly the cap height of the wordmark's "C". */
.wordmark img.mark { width: 31px; height: 33px; border-radius: 0; position: relative; top: 1px; }

nav.site { margin-left: auto; display: flex; align-items: center; gap: 22px; }
nav.site a { color: var(--dim); font-size: 0.94rem; }
nav.site a:hover, nav.site a[aria-current="page"] { color: var(--ink); text-decoration: none; }

@media (max-width: 620px) {
  nav.site { gap: 14px; }
  nav.site a { font-size: 0.86rem; }
  nav.site .hide-sm { display: none; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 0;
  font: 600 0.98rem/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--teal); color: #04222A; cursor: pointer;
}
.btn:hover { background: #63d3d3; text-decoration: none; }
.btn.ghost { background: transparent; color: var(--teal); box-shadow: inset 0 0 0 1.5px var(--teal-dark); }
.btn.ghost:hover { background: rgba(79, 195, 195, 0.12); }
.btn[disabled] { opacity: 0.55; cursor: default; }

/* ---------- Sections & cards ---------- */

section { padding: 58px 0; }
section.tight { padding: 38px 0; }
.eyebrow {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--teal); margin: 0 0 10px;
}
.lede { font-size: 1.12rem; color: var(--dim); max-width: 62ch; }
/* In a column that is already narrow, the 62ch measure just makes it narrower again. */
.narrow .lede { max-width: none; }

.grid { display: grid; gap: 18px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .g3, .g2 { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius); padding: 22px;
}
.card p { color: var(--dim); margin: 0; }
.card .icon { color: var(--teal); margin-bottom: 12px; }
.card .icon svg { width: 26px; height: 26px; display: block; }

/* ---------- Hero ---------- */

.hero { padding: 66px 0 34px; position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: -30% 40% 40% -10%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(79, 195, 195, 0.16), transparent);
}
.hero .cols { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; position: relative; }
@media (max-width: 900px) { .hero .cols { grid-template-columns: 1fr; } }

/* Screenshots sit in a plain rounded frame rather than a phone bezel, so crops of a screen
   (rather than whole screens) still look deliberate. */
.shot {
  border-radius: 18px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.5);
  background: #0E2733;
}
.shot.hero-shot { max-width: 330px; margin: 0 auto; }
.shot.wide { max-width: 520px; margin: 26px auto 0; }
.shot.tall { max-width: 300px; margin: 30px auto 0; }
/* Two screenshots side by side — front and back of the same card. */
.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 560px; margin: 30px auto 0; align-items: start; }
.two-up.wide-two { max-width: 660px; }
@media (max-width: 560px) { .two-up { grid-template-columns: 1fr; max-width: 300px; } }
figure.shot-fig { margin: 0; }
figure.shot-fig figcaption { color: var(--dimmer); font-size: 0.86rem; text-align: center; margin-top: 10px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; align-items: center; }
.note { color: var(--dimmer); font-size: 0.88rem; }

/* ---------- Steps ---------- */

ol.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { ol.steps { grid-template-columns: 1fr; } }
ol.steps li { counter-increment: s; background: var(--card); border: 1px solid rgba(255,255,255,0.09); border-radius: var(--radius); padding: 22px; }
ol.steps li::before {
  content: counter(s); display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%; margin-bottom: 12px;
  background: var(--teal); color: #04222A; font-weight: 700; font-size: 0.95rem;
}
ol.steps h3 { margin-bottom: 4px; }
ol.steps p { color: var(--dim); margin: 0; }

/* ---------- Pricing ---------- */

.plans { display: grid; gap: 18px; grid-template-columns: repeat(4, 1fr); align-items: start; }
@media (max-width: 1000px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .plans { grid-template-columns: 1fr; } }

.plan { position: relative; background: var(--card); border: 1px solid rgba(255,255,255,0.09); border-radius: var(--radius); padding: 22px; }
.plan.lead { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal); }
.plan .tag {
  position: absolute; top: -11px; left: 20px; background: var(--teal); color: #04222A;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
}
.plan .name { font-family: Jost, Futura, sans-serif; font-size: 1.3rem; font-weight: 500; }
.plan .price { font-size: 1.9rem; font-variant-numeric: tabular-nums; margin: 6px 0 2px; font-family: Jost, Futura, sans-serif; }
.plan .per { color: var(--dimmer); font-size: 0.85rem; }
.plan .scans { color: var(--teal); font-weight: 600; margin: 12px 0 2px; }
.plan ul { list-style: none; padding: 0; margin: 12px 0 0; }
.plan li { color: var(--dim); font-size: 0.94rem; padding-left: 22px; position: relative; margin-bottom: 6px; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 700; }

/* ---------- Signup ---------- */

form.signup { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0 8px; }
form.signup input {
  flex: 1 1 260px; min-width: 0; padding: 12px 16px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18); background: rgba(0,0,0,0.28); color: var(--ink);
  font-size: 1rem;
}
form.signup input:focus { outline: 2px solid var(--teal); outline-offset: 1px; }
.form-msg { min-height: 1.4em; font-size: 0.92rem; color: var(--teal); }
.form-msg.bad { color: #FF9E80; }

/* ---------- Tables (leaderboard) ---------- */

.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 20px; }
.tab {
  padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.14);
  background: transparent; color: var(--dim); font: 600 0.9rem/1 inherit; cursor: pointer;
}
.tab[aria-selected="true"] { background: var(--teal); border-color: var(--teal); color: #04222A; }

table.board { width: 100%; border-collapse: collapse; }
table.board th, table.board td { padding: 12px 10px; border-bottom: 1px solid rgba(255,255,255,0.08); text-align: left; }
table.board th { color: var(--dimmer); font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; }
table.board td.rank { width: 46px; color: var(--dimmer); font-variant-numeric: tabular-nums; }
table.board.ranked tbody tr:first-child td.rank { color: var(--gold); font-weight: 700; }
table.board td.count { text-align: right; font-variant-numeric: tabular-nums; }
table.board .lvl {
  font-size: 0.74rem; color: var(--teal); border: 1px solid var(--line);
  border-radius: 999px; padding: 2px 8px; margin-left: 8px; white-space: nowrap;
}
.anon { font-style: italic; color: var(--dim); }
.empty { color: var(--dimmer); padding: 26px 0; }

/* ---------- Prose (legal, support) ---------- */

.prose { max-width: 74ch; }
.prose h2 { margin-top: 38px; }
.prose h3 { margin-top: 26px; }
.prose p, .prose li { color: var(--dim); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 6px; }
.updated { color: var(--dimmer); font-size: 0.9rem; }

/* ---------- Footer ---------- */

footer.site { border-top: 1px solid rgba(255,255,255,0.08); padding: 34px 0 46px; margin-top: 40px; }
footer.site .cols { display: flex; flex-wrap: wrap; gap: 18px 40px; align-items: center; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 18px; margin-left: auto; }
footer.site a { color: var(--dim); font-size: 0.92rem; }
footer.site .fine { color: var(--dimmer); font-size: 0.84rem; width: 100%; margin: 0; }

/* Steps that carry a screenshot. A two-column grid so the number and the step's name sit on
   one line at the top, with the screenshot and the copy spanning both columns beneath. */
ol.steps.shots li {
  display: grid;
  grid-template-columns: 30px 1fr;
  column-gap: 12px;
  align-items: center;    /* the number and the step's name share a baseline */
  align-content: start;   /* ...and the rows pack to the top, so all three cards line up */
}
ol.steps.shots li::before { grid-column: 1; grid-row: 1; margin-bottom: 0; }
ol.steps.shots h3 { grid-column: 2; grid-row: 1; margin: 0; }
ol.steps.shots .shot {
  grid-column: 1 / -1; grid-row: 2;
  margin: 16px 0 14px; background: #0E2733;
}
ol.steps.shots .shot img { width: 100%; }
ol.steps.shots p { grid-column: 1 / -1; grid-row: 3; }

/* A two-up where each shot carries its own caption. */
.two-up figure.shot-fig { margin: 0; }
.two-up figure.shot-fig figcaption { margin-top: 8px; font-size: 0.82rem; }

/* Cookie choice bar — sits above the page, never over the nav, and stacks on narrow screens. */
.consent {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 16px;
  z-index: 60;
  width: calc(100% - 32px);
  max-width: 720px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
  background: #102E3D;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}
.consent p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--dim);
}
.consent p a { color: var(--teal); }
.consent-btns {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}
.consent .btn {
  padding: 9px 14px;
  font-size: 0.84rem;
  white-space: nowrap;
}
.consent .btn.ghost {
  background: transparent;
  color: var(--dim);
  border: 1px solid var(--line);
}
.consent .btn.ghost:hover { color: var(--ink); }
@media (max-width: 620px) {
  .consent { flex-direction: column; align-items: stretch; gap: 12px; }
  .consent-btns { justify-content: stretch; }
  .consent .btn { flex: 1; }
}
@media (prefers-reduced-motion: no-preference) {
  .consent { animation: consent-in 0.28s ease-out both; }
  @keyframes consent-in {
    from { opacity: 0; transform: translateX(-50%) translateY(10px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
  }
}
