/* ==========================================================
   YEAR 1 by BITRAGE.AI — design system v3
   Palette: Alberta flag (blue, gold, wild rose, pine, cream)
   Tone: measured, semi-professional, considered
   Imported by every page via:
   <link rel="stylesheet" href="/widgets/design-tokens.css">
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* ===== Alberta flag palette ===== */
  --ab-blue:        #003DA5;   /* Ultramarine — primary brand */
  --ab-blue-deep:   #002171;   /* Deeper for sections + hover */
  --ab-blue-soft:   #E6EDF8;   /* Tinted background for callouts */

  --ab-gold:        #E5B33B;   /* Wheat sheaf gold — accent + numbers */
  --ab-gold-deep:   #B88A1A;   /* Hover for gold elements */
  --ab-gold-soft:   #FBF3DC;   /* Tinted bg for highlight rows */

  --ab-rose:        #B8262E;   /* Wild rose — used sparingly for warnings/emphasis */
  --ab-rose-deep:   #8C1820;
  --ab-rose-soft:   #FBE8E8;

  --ab-pine:        #2D5739;   /* Forest green from coat of arms — secondary accent */
  --ab-pine-soft:   #E5EDE7;

  /* ===== Surfaces ===== */
  --paper:          #FAF8F3;   /* Warm cream — main page background */
  --paper-2:        #FFFFFF;   /* Pure white — card surfaces */
  --paper-3:        #F0EDE5;   /* Soft section divider */

  --ink:            #0F1A33;   /* Deep blue-black — body text */
  --ink-dim:        #4A5468;   /* Secondary text, captions */
  --ink-mute:       #828BA0;   /* Tertiary, metadata */

  --line:           rgba(15, 26, 51, 0.12);
  --line-soft:      rgba(15, 26, 51, 0.06);

  /* ===== Type ===== */
  --font-display:   'Fraunces', 'Newsreader', Georgia, serif;
  --font-sans:      'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono:      'JetBrains Mono', 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --t-hero:         clamp(40px, 6vw, 64px);
  --t-display:      clamp(32px, 4.5vw, 48px);
  --t-h2:           clamp(26px, 3.2vw, 36px);
  --t-h3:           20px;
  --t-body:         17px;
  --t-mono-big:     clamp(40px, 5vw, 56px);
  --t-eyebrow:      12px;

  /* ===== Layout ===== */
  --section-pad:    96px;
  --max-w:          1100px;
  --gap:            24px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--t-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-weight: 400;
}
body::before { content: ""; display: block; height: 4px; background: var(--ab-blue); }
a { color: var(--ab-blue); text-decoration: none; transition: color .15s; }
a:hover { color: var(--ab-blue-deep); }

/* Layout primitives */
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.stack { display: flex; flex-direction: column; }
.stack > * + * { margin-top: var(--gap); }
.row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
section { padding: var(--section-pad) 0; border-bottom: 1px solid var(--line-soft); }
section:first-of-type { padding-top: 32px; }
section.tight { padding: 56px 0; }
section.dark { background: var(--ab-blue-deep); color: var(--paper); border-bottom: none; }
section.dark a { color: var(--ab-gold); }
section.dark .ink, section.dark h1, section.dark h2, section.dark h3 { color: var(--paper); }
section.dark .sub { color: rgba(244, 241, 232, 0.85); }
section.dark .eyebrow { color: var(--ab-gold); }
section.cream { background: var(--paper-3); }

/* Type primitives */
.eyebrow { font-family: var(--font-mono); font-size: var(--t-eyebrow); font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ab-blue); }
.eyebrow-dim { font-family: var(--font-mono); font-size: var(--t-eyebrow); font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute); }
h1, .hero-h1 { font-family: var(--font-display); font-size: var(--t-hero); line-height: 1.05; letter-spacing: -0.015em; font-weight: 600; color: var(--ink); }
h2, .h2 { font-family: var(--font-display); font-size: var(--t-h2); line-height: 1.15; letter-spacing: -0.01em; font-weight: 600; color: var(--ink); }
h3 { font-family: var(--font-sans); font-size: var(--t-h3); font-weight: 600; line-height: 1.3; color: var(--ink); }
.sub { font-size: 19px; color: var(--ink-dim); line-height: 1.55; max-width: 60ch; font-weight: 400; }
.brand-line { font-family: var(--font-display); font-size: clamp(28px, 3.5vw, 40px); font-weight: 500; color: var(--ab-blue); letter-spacing: 0.01em; }
.brand-line .gold { color: var(--ab-gold-deep); }

.price-big { font-family: var(--font-mono); font-size: var(--t-mono-big); font-weight: 500; color: var(--ab-blue); line-height: 1; letter-spacing: -0.02em; }
.price-meta { font-family: var(--font-mono); font-size: 14px; color: var(--ink-dim); margin-top: 8px; }
.num { font-family: var(--font-mono); font-weight: 500; color: var(--ink); }
.num-hi { font-family: var(--font-mono); font-weight: 500; color: var(--ab-blue); }

/* Buttons */
.btn { display: inline-block; padding: 14px 26px; font-family: var(--font-sans); font-size: 16px; font-weight: 500; border-radius: 4px; cursor: pointer; transition: all .15s; border: 1.5px solid transparent; text-align: center; }
.btn-primary { background: var(--ab-blue); color: var(--paper-2); border-color: var(--ab-blue); }
.btn-primary:hover { background: var(--ab-blue-deep); border-color: var(--ab-blue-deep); color: var(--paper-2); }
.btn-secondary { background: transparent; color: var(--ab-blue); border-color: var(--ab-blue); }
.btn-secondary:hover { background: var(--ab-blue-soft); }
.btn-gold { background: var(--ab-gold); color: var(--ink); border-color: var(--ab-gold); }
.btn-gold:hover { background: var(--ab-gold-deep); border-color: var(--ab-gold-deep); color: var(--paper-2); }
section.dark .btn-secondary { color: var(--paper); border-color: var(--paper); }
section.dark .btn-secondary:hover { background: rgba(255,255,255,0.1); }

/* Nav */
nav.top { padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; max-width: var(--max-w); margin: 0 auto; border-bottom: 1px solid var(--line-soft); }
nav.top .brand { font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
nav.top .brand .ai { color: var(--ab-blue); }
nav.top .brand .by { font-family: var(--font-sans); font-size: 13px; font-weight: 400; color: var(--ink-mute); margin: 0 6px; }
nav.top .links { display: flex; gap: 24px; align-items: center; }
nav.top .links a { font-family: var(--font-sans); font-size: 14px; font-weight: 500; color: var(--ink-dim); }
nav.top .links a:hover { color: var(--ab-blue); }
nav.top .links a.cta { color: var(--paper-2); background: var(--ab-blue); padding: 10px 18px; border-radius: 4px; font-weight: 500; }
nav.top .links a.cta:hover { background: var(--ab-blue-deep); color: var(--paper-2); }

/* Hero */
.hero { padding-top: 64px; padding-bottom: 56px; }
.hero .eyebrow { margin-bottom: 24px; }
.hero h1 { margin-bottom: 16px; max-width: 18ch; }
.hero .brand-line { margin-bottom: 24px; }
.hero .sub { margin-bottom: 40px; max-width: 56ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 32px; }
.hero .price-block { padding: 24px 28px; background: var(--paper-2); border: 1px solid var(--line); border-left: 4px solid var(--ab-gold); display: inline-flex; flex-direction: column; }
.hero .price-meta-tight { font-family: var(--font-mono); font-size: 13px; color: var(--ink-dim); margin-top: 8px; line-height: 1.4; }
.hero .price-meta-tight .num-hi { color: var(--ab-blue); }

/* Founders */
.proof { background: var(--paper-3); padding: 40px 0; }
.proof-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.founder-card { display: flex; gap: 14px; align-items: center; padding: 16px; background: var(--paper-2); border: 1px solid var(--line-soft); border-radius: 4px; }
.founder-card .avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--ab-blue); color: var(--paper-2); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 20px; font-weight: 600; flex-shrink: 0; }
.founder-card .meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.founder-card .name { font-weight: 600; font-size: 15px; color: var(--ink); }
.founder-card .biz { font-family: var(--font-mono); font-size: 12px; color: var(--ink-dim); }
.founder-card .hood { font-family: var(--font-mono); font-size: 12px; color: var(--ink-mute); }

/* How-it-works steps */
.howsteps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 40px; }
.howstep { padding: 28px 24px; background: var(--paper-2); border: 1px solid var(--line-soft); border-top: 3px solid var(--ab-blue); border-radius: 4px; }
.howstep .day { font-family: var(--font-mono); font-size: 12px; color: var(--ab-gold-deep); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 12px; font-weight: 500; }
.howstep h3 { margin-bottom: 8px; font-size: 17px; color: var(--ink); }
.howstep p { font-size: 14.5px; color: var(--ink-dim); line-height: 1.5; }

/* Cards / vehicle paths / template grid */
.paths, .grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 32px; }
.path, .grid-card { padding: 24px; background: var(--paper-2); border: 1px solid var(--line-soft); border-radius: 4px; transition: all .15s; }
.path:hover, .grid-card:hover { border-color: var(--ab-blue); transform: translateY(-1px); }
.path .tag, .grid-card .tag { font-family: var(--font-mono); font-size: 11px; padding: 4px 8px; border-radius: 2px; display: inline-block; margin-bottom: 12px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 500; }
.tag.cheap { background: var(--ab-pine-soft); color: var(--ab-pine); }
.tag.middle { background: var(--ab-blue-soft); color: var(--ab-blue); }
.tag.spend { background: var(--ab-gold-soft); color: var(--ab-gold-deep); }
.tag.warn { background: var(--ab-rose-soft); color: var(--ab-rose); }
.path h3, .grid-card h3 { margin-bottom: 8px; font-size: 17px; color: var(--ink); }
.path .price-row { display: flex; justify-content: space-between; align-items: baseline; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.path .price-row .label { font-size: 14px; color: var(--ink-dim); }
.path .price-row .value { font-family: var(--font-mono); font-weight: 500; color: var(--ink); }

/* Numbers strip */
.numbers { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-top: 40px; }
.number-card { padding: 24px; background: var(--paper-2); border: 1px solid var(--line-soft); border-left: 3px solid var(--ab-gold); border-radius: 4px; }
.number-card .big { font-family: var(--font-mono); font-size: 28px; font-weight: 500; color: var(--ab-blue); line-height: 1.1; margin-bottom: 8px; }
.number-card .label { font-size: 13.5px; color: var(--ink-dim); line-height: 1.5; }
section.dark .number-card { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); border-left-color: var(--ab-gold); }
section.dark .number-card .big { color: var(--ab-gold); }
section.dark .number-card .label { color: rgba(244, 241, 232, 0.75); }

/* Feature grid */
.included { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 32px; }
.feature { padding: 22px; background: var(--paper-2); border: 1px solid var(--line-soft); border-radius: 4px; }
.feature .check { color: var(--ab-blue); font-family: var(--font-mono); margin-right: 8px; font-weight: 600; }
.feature h3 { font-size: 16px; margin-bottom: 6px; color: var(--ink); }
.feature p { font-size: 14px; color: var(--ink-dim); line-height: 1.5; }

/* Pricing tiers */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 32px; }
.tier { padding: 32px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 4px; display: flex; flex-direction: column; }
.tier.featured { border-color: var(--ab-blue); border-width: 2px; box-shadow: 0 4px 16px rgba(0, 61, 165, 0.08); }
.tier.featured::before { content: "MOST PICKED"; display: block; font-family: var(--font-mono); font-size: 11px; color: var(--ab-blue); letter-spacing: 0.12em; margin-bottom: 12px; font-weight: 500; }
.tier .name { font-size: 13px; font-family: var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 8px; font-weight: 500; }
.tier .price { font-family: var(--font-mono); font-size: 36px; font-weight: 500; color: var(--ink); line-height: 1; }
.tier.featured .price { color: var(--ab-blue); }
.tier .price-meta { font-size: 13px; color: var(--ink-dim); margin-top: 4px; margin-bottom: 24px; }
.tier ul { list-style: none; flex: 1; }
.tier li { padding: 8px 0; font-size: 14.5px; color: var(--ink); border-bottom: 1px solid var(--line-soft); }
.tier li::before { content: "+ "; color: var(--ab-blue); font-family: var(--font-mono); font-weight: 600; }
.tier .btn { margin-top: 24px; }

/* Agent badges */
.agents { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; margin-top: 32px; }
.agent-badge { padding: 18px 20px; background: var(--paper-2); border: 1px solid var(--line-soft); border-left: 3px solid var(--ab-blue); border-radius: 4px; display: flex; flex-direction: column; gap: 4px; }
.agent-badge .a-name { font-family: var(--font-mono); font-size: 13px; color: var(--ab-blue); letter-spacing: 0.04em; font-weight: 500; }
.agent-badge .a-job { font-size: 14px; color: var(--ink-dim); line-height: 1.5; }
section.dark .agent-badge { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); border-left-color: var(--ab-gold); }
section.dark .agent-badge .a-name { color: var(--ab-gold); }
section.dark .agent-badge .a-job { color: rgba(244, 241, 232, 0.85); }

/* Q&A */
.qa { margin-top: 32px; }
.qa details { padding: 20px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.qa summary { font-weight: 600; font-size: 16.5px; list-style: none; display: flex; justify-content: space-between; gap: 16px; color: var(--ink); }
.qa summary::after { content: "+"; color: var(--ab-blue); font-family: var(--font-mono); flex-shrink: 0; font-weight: 500; }
.qa details[open] summary::after { content: "−"; }
.qa details p { margin-top: 12px; color: var(--ink-dim); font-size: 15px; line-height: 1.65; }

/* Closer */
.closer { background: var(--ab-blue-soft); }
.closer h2 { margin-bottom: 16px; }
.closer .sub { margin-bottom: 32px; color: var(--ink-dim); }

/* Footer */
footer { padding: 48px 0 64px; background: var(--paper-3); }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
footer .meta { font-family: var(--font-mono); font-size: 12px; color: var(--ink-mute); letter-spacing: 0.04em; }
footer .links { display: flex; gap: 20px; flex-wrap: wrap; }
footer .links a { font-family: var(--font-sans); font-size: 13px; color: var(--ink-dim); }
footer .links a:hover { color: var(--ab-blue); }

/* Pack list (full inventory grid) */
.pack-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-top: 32px; }
.pack-list a { display: block; padding: 18px 20px; background: var(--paper-2); border: 1px solid var(--line-soft); border-radius: 4px; transition: all .12s; text-decoration: none; }
.pack-list a:hover { border-color: var(--ab-blue); background: var(--ab-blue-soft); }
.pack-list .pack-num { font-family: var(--font-mono); font-size: 11px; color: var(--ab-gold-deep); letter-spacing: 0.06em; }
.pack-list .pack-name { font-family: var(--font-display); font-size: 17px; font-weight: 500; color: var(--ink); margin-top: 4px; line-height: 1.25; }
.pack-list .pack-tagline { font-size: 13px; color: var(--ink-dim); margin-top: 6px; line-height: 1.4; }

@media (max-width: 640px) {
  :root { --section-pad: 64px; }
  .hero { padding-top: 40px; padding-bottom: 40px; }
  nav.top .links a:not(.cta) { display: none; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
}
