/* SteamTicket Marketing — site.css
   Palette + font stack aligned with app/styles.css
   accent: #1a6ee0 | dark mode via prefers-color-scheme
*/

/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --accent:       #1a6ee0;
  --accent-dark:  #1458b8;
  --accent-light: #e8f0fd;
  --bg:           #ffffff;
  --bg-alt:       #f5f7fa;
  --bg-card:      #ffffff;
  --border:       #e2e6ed;
  --text:         #1a1d23;
  --text-muted:   #5a6170;
  --text-inv:     #ffffff;
  --shadow-sm:    0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:    0 4px 12px rgba(0,0,0,.10), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg:    0 8px 32px rgba(0,0,0,.12), 0 4px 8px rgba(0,0,0,.06);
  --radius:       10px;
  --radius-sm:    6px;
  --radius-lg:    16px;
  --max-w:        1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:         #0f1117;
    --bg-alt:     #161b25;
    --bg-card:    #1c2130;
    --border:     #2a3147;
    --text:       #e8eaf0;
    --text-muted: #8b95a8;
    --accent-light: #1a2d52;
    --shadow-sm:  0 1px 3px rgba(0,0,0,.3);
    --shadow-md:  0 4px 12px rgba(0,0,0,.4);
    --shadow-lg:  0 8px 32px rgba(0,0,0,.5);
  }
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { display: block; max-width: 100%; }

/* ── Layout helpers ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.section    { padding: 5rem 0; }
.section--alt { background: var(--bg-alt); }

/* ── Typography ── */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; color: var(--text); }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }
p  { color: var(--text); }
.lead { font-size: 1.2rem; color: var(--text-muted); line-height: 1.7; }
.muted { color: var(--text-muted); }
.small { font-size: 0.85rem; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .4rem;
  padding: .7rem 1.5rem;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background .15s, box-shadow .15s, transform .1s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn--primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); box-shadow: var(--shadow-md); }

.btn--outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn--outline:hover { background: var(--accent-light); }

.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}
.btn--ghost:hover { background: var(--bg-alt); color: var(--text); }

.btn--lg { padding: .9rem 2rem; font-size: 1.1rem; border-radius: var(--radius); }
.btn--sm { padding: .45rem 1rem; font-size: .875rem; }

/* ── Nav ── */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px; max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem;
}
.nav-logo { display: flex; align-items: center; gap: .6rem; color: var(--text); font-weight: 700; font-size: 1.1rem; }
.nav-logo img, .nav-logo svg { height: 28px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 1.75rem; list-style: none; }
.nav-links a { color: var(--text-muted); font-size: .9375rem; font-weight: 500; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-cta { margin-left: .5rem; }

@media (max-width: 700px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
}

/* ── Hero ── */
.hero {
  padding: 6rem 0 5rem;
  text-align: center;
  background: linear-gradient(160deg, var(--bg) 60%, var(--accent-light) 100%);
}
.hero h1 { max-width: 800px; margin: 0 auto .75rem; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero .lead { max-width: 620px; margin: 0 auto 2rem; }
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--accent-light); color: var(--accent);
  font-size: .825rem; font-weight: 600;
  padding: .3rem .75rem; border-radius: 100px;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(26,110,224,.2);
}

/* ── Stats strip ── */
.stats-strip {
  display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap;
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat-item { text-align: center; }
.stat-item .stat-num { font-size: 2rem; font-weight: 800; color: var(--accent); line-height: 1; }
.stat-item .stat-label { font-size: .825rem; color: var(--text-muted); margin-top: .25rem; }

/* ── Cards ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.card-grid { display: grid; gap: 1.5rem; }
.card-grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card-grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* ── Steps ── */
.steps { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: step; }
.step { display: flex; flex-direction: column; gap: .75rem; }
.step-num {
  width: 40px; height: 40px;
  background: var(--accent); color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 800; flex-shrink: 0;
}
.step h3 { margin: 0; }

/* ── Pricing ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  align-items: start;
}
.price-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  transition: box-shadow .2s;
}
.price-card:hover { box-shadow: var(--shadow-lg); }
.price-card--highlight {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-md);
}
.price-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff;
  font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  padding: .3rem .85rem; border-radius: 100px;
  white-space: nowrap;
}
.price-title { font-size: 1.1rem; font-weight: 700; margin-bottom: .25rem; }
.price-amount { font-size: 2.75rem; font-weight: 800; color: var(--accent); line-height: 1; margin: .75rem 0 .25rem; }
.price-amount sup { font-size: 1.25rem; vertical-align: super; }
.price-amount sub { font-size: 1rem; color: var(--text-muted); font-weight: 500; }
.price-desc { color: var(--text-muted); font-size: .9rem; margin-bottom: 1.25rem; }
.price-features { list-style: none; margin: 1rem 0 1.5rem; display: flex; flex-direction: column; gap: .5rem; }
.price-features li { display: flex; align-items: flex-start; gap: .5rem; font-size: .9rem; }
.price-features li::before { content: "✓"; color: var(--accent); font-weight: 800; flex-shrink: 0; margin-top: 1px; }
.price-card .btn { width: 100%; }
.price-coming-soon {
  text-align: center;
  padding: 2.5rem 2rem;
  color: var(--text-muted);
}
.price-coming-soon .price-title { color: var(--text-muted); }

/* ── Feature list ── */
.feature-list { list-style: none; display: flex; flex-direction: column; gap: .6rem; margin: 1rem 0; }
.feature-list li { display: flex; gap: .6rem; align-items: flex-start; }
.feature-list li::before { content: "✓"; color: var(--accent); font-weight: 700; flex-shrink: 0; margin-top: 2px; }

/* ── Testimonial ── */
.testimonial {
  max-width: 640px; margin: 0 auto;
  text-align: center; padding: 2.5rem;
  background: var(--accent-light);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(26,110,224,.15);
}
.testimonial blockquote {
  font-size: 1.25rem; font-weight: 500; color: var(--text);
  line-height: 1.5; margin-bottom: .75rem;
}
.testimonial blockquote::before { content: "\201C"; }
.testimonial blockquote::after  { content: "\201D"; }
.testimonial cite { font-size: .875rem; color: var(--text-muted); font-style: normal; }

/* ── FAQ ── */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: .5rem; }
details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
details[open] { border-color: var(--accent); }
summary {
  padding: 1.1rem 1.5rem;
  font-weight: 600; font-size: 1rem;
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 1.25rem; font-weight: 400; flex-shrink: 0; }
details[open] summary::after { content: "−"; }
.faq-answer { padding: 0 1.5rem 1.25rem; color: var(--text-muted); line-height: 1.7; }

/* ── Province grid ── */
.province-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .75rem; }
.province-link {
  display: block; padding: .75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .9rem; font-weight: 500; color: var(--text);
  transition: border-color .15s, background .15s;
  text-decoration: none;
}
.province-link:hover { border-color: var(--accent); background: var(--accent-light); color: var(--accent); text-decoration: none; }

/* ── Unit list ── */
.unit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .6rem; margin: 1.5rem 0; }
.unit-item {
  display: flex; gap: .6rem; align-items: flex-start;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: .65rem .9rem;
  font-size: .875rem;
}
.unit-id { color: var(--accent); font-weight: 700; flex-shrink: 0; min-width: 2.5rem; }

/* ── Breadcrumb ── */
.breadcrumb { display: flex; gap: .4rem; align-items: center; font-size: .85rem; color: var(--text-muted); margin-bottom: 2rem; flex-wrap: wrap; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--border); }

/* ── CTA band ── */
.cta-band {
  background: var(--accent);
  color: #fff;
  text-align: center;
  padding: 4rem 1.5rem;
}
.cta-band h2 { color: #fff; margin-bottom: .75rem; }
.cta-band p  { color: rgba(255,255,255,.8); margin-bottom: 1.75rem; font-size: 1.1rem; }
.cta-band .btn--inv {
  background: #fff; color: var(--accent);
  border-color: #fff;
}
.cta-band .btn--inv:hover { background: rgba(255,255,255,.9); }

/* ── Legal pages ── */
.legal { max-width: 760px; margin: 0 auto; padding: 3rem 1.5rem; }
.legal h1 { margin-bottom: 2rem; }
.legal h2 { margin: 2.5rem 0 .75rem; font-size: 1.2rem; }
.legal p, .legal li { color: var(--text-muted); line-height: 1.8; margin-bottom: .75rem; }
.legal ul, .legal ol { padding-left: 1.5rem; }
.legal a { color: var(--accent); }
.review-notice {
  background: #fffbe6;
  border: 1px solid #ffe566;
  border-radius: var(--radius-sm);
  padding: .75rem 1rem;
  font-size: .85rem;
  color: #7a5f00;
  margin-bottom: 2rem;
}
@media (prefers-color-scheme: dark) {
  .review-notice { background: #2a2200; border-color: #5a4800; color: #d4a800; }
}

/* ── Province page ── */
.province-hero {
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
}
.regulator-box {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--accent-light);
  border: 1px solid rgba(26,110,224,.2);
  border-radius: var(--radius-sm);
  padding: .5rem 1rem;
  font-size: .9rem; color: var(--accent); font-weight: 500;
  text-decoration: none; margin-top: .75rem;
}
.regulator-box:hover { background: var(--accent); color: #fff; text-decoration: none; }
.exam-format-table { border-collapse: collapse; width: 100%; margin: 1.25rem 0; }
.exam-format-table th,
.exam-format-table td { padding: .6rem 1rem; text-align: left; border: 1px solid var(--border); font-size: .9rem; }
.exam-format-table th { background: var(--bg-alt); font-weight: 600; color: var(--text); }
.exam-format-table td { color: var(--text-muted); }
.sopeec-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: #e6f4ea; color: #1a7a3c;
  font-size: .8rem; font-weight: 600;
  padding: .25rem .65rem; border-radius: 100px;
  border: 1px solid rgba(26,122,60,.2);
}
@media (prefers-color-scheme: dark) {
  .sopeec-badge { background: #0d2e1a; color: #4dc97e; border-color: rgba(77,201,126,.2); }
}
.disclaimer-box {
  background: var(--bg-alt);
  border-left: 3px solid var(--border);
  padding: .9rem 1.2rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: .85rem; color: var(--text-muted);
  margin: 1.5rem 0;
}

/* ── Footer ── */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  font-size: .875rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 2rem;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .nav-logo { margin-bottom: .75rem; }
.footer-brand p { color: var(--text-muted); font-size: .85rem; max-width: 280px; }
.footer-col h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin-bottom: .85rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .45rem; }
.footer-col a { color: var(--text-muted); font-size: .875rem; }
.footer-col a:hover { color: var(--text); text-decoration: none; }
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: .75rem;
  color: var(--text-muted); font-size: .8rem;
}
.disclaimer-footer {
  font-size: .75rem; color: var(--text-muted);
  margin-top: .5rem;
  line-height: 1.5;
}

/* ── Tooltip (pricing pre-launch) ── */
.has-tooltip { position: relative; cursor: help; }
.tooltip-text {
  display: none;
  position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  background: var(--text); color: var(--bg);
  font-size: .78rem; font-weight: 500; white-space: nowrap;
  padding: .4rem .8rem; border-radius: var(--radius-sm);
  pointer-events: none; z-index: 10;
}
.has-tooltip:hover .tooltip-text { display: block; }

/* ── Plausible analytics (uncommented at launch) ── */
/* <script defer data-domain="steamticket.ca" src="https://plausible.io/js/script.js"></script> */

/* ── Responsive utilities ── */
@media (max-width: 768px) {
  .section { padding: 3.5rem 0; }
  .hero    { padding: 4rem 0 3rem; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-grid  { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .stats-strip { gap: 1.5rem; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
}

.nav-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.nav-wordmark { font-size: 1.15rem; font-weight: 600; color: var(--text); letter-spacing: -0.02em; }
.nav-wordmark b { font-weight: 800; color: var(--accent); }

/* ── Announcement bar (promotes the free sample) ── */
.announce-bar { background: var(--accent); color: #fff; font-size: .875rem; }
.announce-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: .5rem 1.5rem;
  display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap;
}
.announce-bar b { font-weight: 700; }
.announce-cta { color: #fff; font-weight: 700; text-decoration: underline; white-space: nowrap; }
.announce-cta:hover { color: #fff; text-decoration: none; }
.announce-close {
  background: transparent; border: 0; color: rgba(255,255,255,.85);
  font-size: 1.25rem; line-height: 1; cursor: pointer; padding: 0 .25rem; margin-left: .25rem;
}
.announce-close:hover { color: #fff; }
@media (max-width: 600px) {
  .announce-inner { gap: .5rem; padding: .5rem 1rem; font-size: .8rem; }
}
