/* ==========================================================================
   Canada Prospector — canadaprospector.ca
   One stylesheet, no build step, no external fonts or CDNs.
   Palette is taken from the app icon: navy #1C2A44 + prospector gold.
   ========================================================================== */

:root {
  /* Brand */
  --navy-900: #0d1524;
  --navy-850: #121d31;
  --navy-800: #1c2a44;
  --navy-700: #26374f;
  --line:     #2c3d58;

  --gold-400: #e3be72;
  --gold-500: #d4a24c;
  --gold-600: #b8862f;

  --text:     #eef2f8;
  --text-dim: #a9b8ce;
  --text-mute:#7f90aa;

  --green:    #58c08a;
  --blue:     #6aa9f0;

  /* Type */
  --display: ui-serif, Georgia, "Times New Roman", Times, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Metrics */
  --gutter: 24px;
  --maxw: 1120px;
  --readw: 760px;
  --radius: 14px;
  --radius-lg: 20px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--navy-900);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-400); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold-500); }

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.35rem); }
h3 { font-size: 1.18rem; font-family: var(--sans); font-weight: 650; letter-spacing: 0; }
p  { margin: 0 0 1.1em; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.narrow { max-width: var(--readw); }

.eyebrow {
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin: 0 0 .7em;
}

.lede { font-size: 1.15rem; color: var(--text-dim); }
.muted { color: var(--text-mute); font-size: .92rem; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--gold-500); color: #121a2a; padding: 10px 16px; z-index: 100; border-radius: 0 0 8px 0;
  font-weight: 600;
}
.skip:focus { left: 0; }

:focus-visible { outline: 2px solid var(--gold-400); outline-offset: 3px; border-radius: 4px; }

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

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 21, 36, .82);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 20px;
  min-height: 64px;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--text); flex: 0 0 auto; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.brand span { font-family: var(--display); font-size: 1.18rem; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a {
  color: var(--text-dim); text-decoration: none; font-size: .94rem; font-weight: 500;
  padding: 8px 12px; border-radius: 8px;
}
.nav a:hover { color: var(--text); background: rgba(255,255,255,.06); }
.nav a[aria-current="page"] { color: var(--gold-400); }

@media (max-width: 640px) {
  .site-header .wrap { flex-wrap: wrap; padding-block: 10px; gap: 8px; }
  .nav { margin-left: 0; width: 100%; justify-content: flex-start; gap: 0; }
  .nav a { padding: 6px 10px; font-size: .88rem; }
}

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

.hero {
  position: relative;
  background:
    radial-gradient(1100px 520px at 78% 8%, rgba(212,162,76,.16), transparent 62%),
    linear-gradient(180deg, var(--navy-800) 0%, var(--navy-900) 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero .wrap {
  display: grid; grid-template-columns: 1.06fr .94fr; gap: 48px; align-items: center;
  padding-block: clamp(48px, 8vw, 92px);
}
.hero h1 { margin-bottom: .35em; }
.hero h1 .gold { color: var(--gold-400); }
.hero .lede { font-size: 1.22rem; max-width: 34ch; }

.hero-art { position: relative; display: flex; justify-content: center; }

/* Phone bezel around a raw device screenshot */
.phone {
  --phone-w: 268px;
  width: var(--phone-w);
  border-radius: 34px;
  padding: 9px;
  background: linear-gradient(160deg, #35465f, #131e30);
  box-shadow: 0 28px 60px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.07) inset;
  flex: 0 0 auto;
}
.phone img { border-radius: 26px; display: block; width: 100%; }
.phone.tilt { transform: rotate(-2.2deg); }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; text-align: left; }
  .hero .lede { max-width: none; }
  .phone { --phone-w: 240px; }
  .phone.tilt { transform: none; }
}

/* ------------------------------------------------------------------ badges */

.badges { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 14px; }

.badge {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 11px 18px 11px 15px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--text);
  text-decoration: none;
  min-width: 194px;
}
.badge:hover { border-color: var(--gold-600); background: rgba(255,255,255,.07); color: var(--text); }
.badge svg { width: 26px; height: 26px; flex: 0 0 auto; fill: currentColor; }
.badge b { display: block; font-size: 1.02rem; font-weight: 650; line-height: 1.2; font-family: var(--sans); }
.badge small { display: block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-mute); }

/* A badge with no store link yet: same shape, clearly not a button */
.badge.soon { opacity: .78; cursor: default; }
.badge.soon:hover { border-color: var(--line); background: rgba(255,255,255,.04); }
.badge.soon small { color: var(--gold-600); }

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

section { padding-block: clamp(56px, 7vw, 88px); }
section + section { border-top: 1px solid var(--line); }
.section-head { max-width: 62ch; margin-bottom: 44px; }
.section-head p { color: var(--text-dim); margin-bottom: 0; }

.alt { background: var(--navy-850); }

/* ------------------------------------------------------------- stat strip */

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border-block: 1px solid var(--line);
}
.stats div { background: var(--navy-850); padding: 26px 22px; text-align: center; }
.stats b { display: block; font-family: var(--display); font-size: 1.9rem; color: var(--gold-400); line-height: 1.1; }
.stats span { font-size: .84rem; color: var(--text-dim); }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ------------------------------------------------------------------ cards */

.grid { display: grid; gap: 20px; }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid.c3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid.c2, .grid.c3 { grid-template-columns: 1fr; } }

.card {
  background: var(--navy-850);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.alt .card { background: var(--navy-800); }
.card h3 { margin-bottom: .45em; }
.card p { color: var(--text-dim); font-size: .97rem; margin-bottom: 0; }
.card .ico {
  width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(212,162,76,.14);
  border: 1px solid rgba(212,162,76,.3);
  margin-bottom: 16px;
  font-size: 1.2rem;
}

/* Feature list with gold rules */
.features { list-style: none; margin: 0; padding: 0; }
.features li { padding: 16px 0 16px 30px; border-bottom: 1px solid var(--line); position: relative; }
.features li:last-child { border-bottom: 0; }
.features li::before {
  content: ""; position: absolute; left: 4px; top: 26px;
  width: 8px; height: 8px; border-radius: 2px; background: var(--gold-500); transform: rotate(45deg);
}
.features b { font-weight: 650; }
.features span { display: block; color: var(--text-dim); font-size: .96rem; }

/* ------------------------------------------------------------ screenshots */

.shots {
  display: flex; gap: 22px; overflow-x: auto; padding: 6px 0 22px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.shots figure { margin: 0; scroll-snap-align: center; flex: 0 0 auto; width: 244px; }
.shots .phone { --phone-w: 244px; }
.shots figcaption { margin-top: 14px; font-size: .9rem; color: var(--text-dim); text-align: center; }
.shots figcaption b { display: block; color: var(--text); font-weight: 650; }

/* --------------------------------------------------------------- province */

.prov { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .prov { grid-template-columns: 1fr; } }
.prov .card { display: flex; flex-direction: column; }
.prov .tag {
  align-self: flex-start;
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700;
  color: var(--navy-900); background: var(--gold-400);
  padding: 3px 9px; border-radius: 999px; margin-bottom: 14px;
}
.prov dl { margin: 14px 0 0; font-size: .93rem; }
.prov dt { color: var(--text-mute); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; margin-top: 12px; }
.prov dd { margin: 2px 0 0; color: var(--text-dim); }

/* -------------------------------------------------------------------- pro */

.pro-wrap { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
@media (max-width: 900px) { .pro-wrap { grid-template-columns: 1fr; } }

.price-card {
  background: linear-gradient(165deg, var(--navy-800), var(--navy-850));
  border: 1px solid var(--gold-600);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  position: sticky; top: 90px;
}
@media (max-width: 900px) { .price-card { position: static; } }
.price-card h3 { font-family: var(--display); font-size: 1.5rem; margin-bottom: 4px; }
.price-row { display: flex; align-items: baseline; gap: 8px; margin: 18px 0 2px; }
.price-row b { font-family: var(--display); font-size: 2.4rem; color: var(--gold-400); line-height: 1; }
.price-row span { color: var(--text-dim); font-size: .95rem; }
.price-card hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.price-card ul { margin: 0; padding-left: 1.1em; color: var(--text-dim); font-size: .93rem; }
.price-card li { margin-bottom: 6px; }

/* --------------------------------------------------------------- callouts */

.note {
  border-left: 3px solid var(--gold-500);
  background: rgba(212,162,76,.07);
  padding: 16px 20px;
  border-radius: 0 10px 10px 0;
  margin: 26px 0;
}
.note p:last-child { margin-bottom: 0; }
.note strong { color: var(--gold-400); }

/* ------------------------------------------------------------------- legal */

.doc { padding-block: clamp(40px, 6vw, 72px); }
.doc-inner {
  max-width: var(--readw);
  margin: 0 auto;
  background: var(--navy-850);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 56px);
}
.doc-inner h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: .2em; }
.doc-inner h3 {
  font-family: var(--sans); font-size: 1.06rem; font-weight: 700;
  margin: 2.2em 0 .6em; padding-top: 1.2em; border-top: 1px solid var(--line);
  color: var(--gold-400); letter-spacing: .01em;
}
.doc-inner h3:first-of-type { border-top: 0; padding-top: 0; margin-top: 1.6em; }
.doc-inner p, .doc-inner li { color: var(--text-dim); }
.doc-inner strong { color: var(--text); }
.doc-inner ul { padding-left: 1.2em; }
.doc-inner li { margin-bottom: .5em; }
.doc-date {
  display: inline-block; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-mute); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px;
  margin-bottom: 1.6em;
}
.doc-sub { color: var(--text-dim); font-size: 1.02rem; }

/* table (support / data sources) */
.tbl-scroll { overflow-x: auto; margin: 24px 0; }
table { border-collapse: collapse; width: 100%; font-size: .94rem; min-width: 460px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--gold-400); font-weight: 650; font-size: .82rem; text-transform: uppercase; letter-spacing: .07em; }
td { color: var(--text-dim); }

/* ---------------------------------------------------------------- details */

.faq { border: 1px solid var(--line); border-radius: var(--radius); background: var(--navy-850); margin-bottom: 12px; }
.faq summary {
  cursor: pointer; padding: 17px 22px; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold-500); font-size: 1.35rem; line-height: 1; flex: 0 0 auto; }
.faq[open] summary::after { content: "\2013"; }
.faq .faq-body { padding: 0 22px 20px; color: var(--text-dim); }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------------- CTA */

.cta {
  text-align: center;
  background:
    radial-gradient(700px 300px at 50% 0%, rgba(212,162,76,.16), transparent 65%),
    var(--navy-800);
}
.cta .badges { justify-content: center; }
.cta h2 { margin-bottom: .3em; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold-500); color: #14203a;
  font-weight: 650; text-decoration: none;
  padding: 12px 22px; border-radius: 10px;
  border: 1px solid var(--gold-400);
}
.btn:hover { background: var(--gold-400); color: #14203a; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.ghost:hover { background: rgba(255,255,255,.06); color: var(--text); }

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

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--navy-900);
  padding-block: 48px 36px;
  font-size: .93rem;
}
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 780px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
.foot-grid h4 {
  font-size: .78rem; text-transform: uppercase; letter-spacing: .12em;
  color: var(--text-mute); margin: 0 0 14px; font-weight: 700;
}
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: 9px; }
.foot-grid a { color: var(--text-dim); text-decoration: none; }
.foot-grid a:hover { color: var(--gold-400); text-decoration: underline; }
.foot-brand p { color: var(--text-mute); font-size: .9rem; max-width: 34ch; }
.foot-bottom {
  margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between;
  color: var(--text-mute); font-size: .86rem;
}

/* ------------------------------------------------------------------ print */

@media print {
  .site-header, .site-footer, .badges, .cta, .skip { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .doc-inner { background: #fff; border: 0; padding: 0; max-width: none; }
  .doc-inner p, .doc-inner li, td { color: #000; }
  .doc-inner h3 { color: #000; }
  a { color: #000; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #444; }
}
