/* AskTomG.AI marketing site — shared design system.
   Extends the original teaser palette/typography so every page reads as
   one product. Dark navy, blue accents, Inter / Source Serif 4 / JetBrains
   Mono. Static — no build step (served by Cloudflare Pages). */

:root {
  --ink:           #0E1A2A;
  --ink-soft:      #15233A;
  --ink-card:      #142136;
  --paper:         #FFFFFF;
  --slate:         #5A6B82;
  --slate-light:   #A6B3C5;
  --line:          rgba(255, 255, 255, 0.10);
  --accent:        #2090F0;
  --accent-dark:   #4FB0F8;
  --ok:            #34C759;

  --font-sans:  'Inter', system-ui, sans-serif;
  --font-serif: 'Source Serif 4', Georgia, serif;
  --font-mono:  'JetBrains Mono', 'Courier New', monospace;

  --maxw: 1080px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--ink);
  color: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}

/* Base link color — overrides the browser's default blue/purple (and the dark
   purple :visited state) so no link can fall back to it. Component rules
   (.nav-links a, .site-footer a, etc.) still override this where needed. */
a, a:visited { color: var(--accent-dark); }

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 900px 600px at 75% 0%, rgba(32, 144, 240, 0.10) 0%, transparent 70%),
    radial-gradient(ellipse 600px 500px at 10% 90%, rgba(79, 176, 248, 0.05) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

main { position: relative; z-index: 1; flex: 1; width: 100%; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

/* ─── Top nav ─── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(14, 26, 42, 0.78);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 10px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-brand img { height: 88px; width: auto; border-radius: 7px; display: block; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  color: var(--slate-light);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.18s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--paper); }
.nav-links a.active { color: var(--accent-dark); }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.btn-primary, .btn-primary:visited {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--paper);
  box-shadow: 0 8px 24px rgba(32, 144, 240, 0.22);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(32, 144, 240, 0.32); }
.btn-ghost, .btn-ghost:visited { border-color: rgba(79, 176, 248, 0.45); color: var(--paper); }
.btn-ghost:hover { transform: translateY(-1px); border-color: var(--paper); }
.btn-sm { padding: 8px 16px; font-size: 13.5px; }
.btn .arrow { color: inherit; transition: transform 0.18s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ─── Section scaffolding ─── */
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 16px;
}
.h-xl {
  font-weight: 700;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -1px;
}
.h-lg {
  font-weight: 700;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.5px;
}
.h-md { font-weight: 600; font-size: 20px; letter-spacing: -0.2px; }
.lede {
  font-family: var(--font-serif);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.5;
  color: var(--slate-light);
}
.lede a, .lede a:visited {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.lede a:hover { color: var(--paper); }
.muted { color: var(--slate-light); }
.serif-italic { font-family: var(--font-serif); font-style: italic; }

/* ─── Hero ─── */
.hero { padding: 84px 0 64px; text-align: center; }
.hero .logo { width: 100%; max-width: 520px; height: auto; margin: 0 auto 40px; display: block; filter: drop-shadow(0 10px 40px rgba(32, 144, 240, 0.15)); }
.hero .lede { max-width: 660px; margin: 22px auto 0; }
.hero-cta { margin-top: 40px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid rgba(79, 176, 248, 0.35);
  background: rgba(32, 144, 240, 0.08);
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 1.4px;
  text-transform: uppercase; color: var(--accent-dark); margin-bottom: 28px;
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-dark); }

/* ─── Feature grid ─── */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--ink-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
}
.card .icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(32, 144, 240, 0.12);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-dark); margin-bottom: 18px; font-size: 20px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--slate-light); font-size: 14.5px; }

/* ─── Step list ─── */
.steps { display: grid; gap: 18px; max-width: 760px; }
.step { display: flex; gap: 18px; align-items: flex-start; }
.step .num {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(79, 176, 248, 0.4);
  color: var(--accent-dark); font-family: var(--font-mono); font-weight: 600;
  display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.step h3 { margin-bottom: 4px; }
.step p { color: var(--slate-light); font-size: 14.5px; }

/* ─── Callout / promise ─── */
.callout {
  border: 1px solid rgba(79, 176, 248, 0.3);
  background: linear-gradient(135deg, rgba(32, 144, 240, 0.10), rgba(79, 176, 248, 0.03));
  border-radius: 18px; padding: 40px;
  text-align: center;
}

/* ─── Founding "extended" date treatment (homepage callout) ─── */
.date-line {
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap;
  justify-content: center; margin: 0 auto 18px;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 1px; text-transform: uppercase;
}
.date-line .old {
  color: var(--slate); text-decoration: line-through;
  text-decoration-color: #ff6b6b; text-decoration-thickness: 2px;
}
.date-line .arrow-sep { color: var(--slate); }
.date-line .new {
  color: var(--paper); background: rgba(52, 199, 89, 0.16);
  border: 1px solid rgba(52, 199, 89, 0.40);
  padding: 3px 12px; border-radius: 999px;
}
.extend-note {
  font-family: var(--font-serif); font-style: italic; font-size: 16px;
  color: var(--slate-light); max-width: 560px; margin: 0 auto 22px; line-height: 1.55;
  border-top: 1px solid var(--line); padding-top: 20px;
}
.extend-note strong { color: var(--paper); font-style: normal; font-weight: 600; }

/* ─── Founders ─── */
.founder { display: grid; grid-template-columns: 1fr; gap: 18px; }
.founder-card {
  background: var(--ink-card); border: 1px solid var(--line);
  border-radius: 18px; padding: 36px;
}
.founder-top { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; }
.founder-avatar {
  width: 96px; height: 96px; border-radius: 50%;
  object-fit: cover; object-position: center 22%;
  border: 2px solid rgba(79, 176, 248, 0.4);
  flex: none; background: var(--ink-soft);
}
.founder-id h2 { margin-bottom: 5px; }
.founder-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.founder-head .creds { font-family: var(--font-mono); font-size: 12px; letter-spacing: 1px; color: var(--accent-dark); text-transform: uppercase; }
.founder-card .role { color: var(--slate); font-size: 13.5px; font-family: var(--font-mono); letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 18px; }
.founder-card p { color: var(--slate-light); margin-bottom: 14px; }
.founder-card ul.desig { list-style: none; margin: 6px 0 14px; display: grid; gap: 7px; }
.founder-card ul.desig li { color: var(--slate-light); font-size: 14.5px; display: flex; gap: 9px; align-items: flex-start; }
.founder-card ul.desig li::before { content: '▹'; color: var(--accent-dark); flex: none; }
.founder-card .links { margin-top: 18px; display: flex; gap: 18px; }
.founder-card .links a { color: var(--accent-dark); text-decoration: none; font-size: 14px; font-weight: 500; border-bottom: 1px solid rgba(79,176,248,0.3); }
.founder-card .links a:hover { color: var(--paper); border-color: var(--paper); }

/* ─── Pricing ─── */
.toggle { display: inline-flex; align-items: center; gap: 6px; padding: 5px; border-radius: 999px; background: var(--ink-soft); border: 1px solid var(--line); margin: 0 auto 36px; }
.toggle button {
  border: none; background: transparent; color: var(--slate-light);
  font-family: var(--font-sans); font-size: 14px; font-weight: 600;
  padding: 9px 20px; border-radius: 999px; cursor: pointer; transition: all 0.18s ease;
}
.toggle button.on { background: var(--accent); color: var(--paper); }
.toggle .save { font-size: 11px; color: var(--ok); margin-left: 4px; }
.toggle button.on .save { color: rgba(255,255,255,0.85); }

.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 760px; margin: 0 auto; }
.plan {
  position: relative; background: var(--ink-card); border: 1px solid var(--line);
  border-radius: 20px; padding: 32px; display: flex; flex-direction: column;
}
.plan.featured { border-color: var(--accent); box-shadow: 0 10px 40px rgba(32, 144, 240, 0.14); }
.plan .tag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: var(--paper);
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 600;
  letter-spacing: 1.2px; text-transform: uppercase; padding: 5px 14px; border-radius: 999px; white-space: nowrap;
}
.plan .plan-name { font-size: 24px; font-weight: 700; letter-spacing: -0.3px; margin-bottom: 6px; }
.plan .desc { color: var(--slate-light); font-size: 14px; min-height: 42px; margin-bottom: 14px; }
.plan .price { line-height: 1; margin-bottom: 4px; }
.plan .price .amt { font-size: 54px; font-weight: 800; letter-spacing: -1.5px; color: var(--paper); }
.plan .price .per { font-size: 16px; font-weight: 500; color: var(--slate); margin-left: 3px; }
.plan .billed { font-size: 13px; color: var(--slate-light); margin: 0 0 22px; }
.plan ul { list-style: none; margin: 22px 0 26px; display: grid; gap: 11px; align-content: start; flex: 1; text-align: left; }
.plan li { display: flex; gap: 9px; align-items: flex-start; font-size: 14px; color: var(--slate-light); }
.plan li::before { content: '✓'; color: var(--ok); font-weight: 700; flex: none; }
.plan .btn { width: 100%; justify-content: center; }

/* ─── Footer ─── */
.site-footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--line);
  padding: 32px; text-align: center;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 1.1px;
  text-transform: uppercase; color: var(--slate);
}
.site-footer .line { margin-bottom: 8px; }
.site-footer .domain { color: var(--accent-dark); }
.site-footer a { color: var(--slate); text-decoration: none; border-bottom: 1px dotted rgba(166,179,197,0.3); transition: color 0.18s; }
.site-footer a:hover { color: var(--accent-dark); }
.site-footer .sep { margin: 0 10px; color: var(--accent); opacity: 0.5; }

/* ─── Fact lists (does / does not) ─── */
.factlist { list-style: none; display: grid; gap: 14px; max-width: 780px; margin: 0; }
.factlist li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.6; color: var(--slate-light); }
.factlist li::before { flex: none; font-weight: 800; font-size: 15px; margin-top: 2px; width: 18px; }
.factlist.does li::before { content: '✓'; color: var(--ok); }
.factlist.dont li::before { content: '✕'; color: #ff6b6b; }
.factlist li strong { color: var(--paper); font-weight: 600; }
.factlist li em { color: var(--slate-light); }

/* ─── Prose (long-form body copy) ─── */
.prose { max-width: 720px; margin: 0 auto; }
.prose p { font-size: 17px; line-height: 1.75; color: var(--slate-light); margin-bottom: 22px; }
.prose p:last-child { margin-bottom: 0; }
.prose p strong { color: var(--paper); font-weight: 600; }
.prose .kicker { font-family: var(--font-mono); font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--accent-dark); margin-bottom: 10px; }

/* ─── Announcement bar (sitewide, sits directly under the nav) ─── */
.announce-bar {
  position: relative; z-index: 40; overflow: hidden;
  display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
  padding: 11px 24px; text-align: center; text-decoration: none; color: var(--paper);
  background: linear-gradient(135deg, rgba(32, 144, 240, 0.16), rgba(79, 176, 248, 0.06));
  border-bottom: 1px solid rgba(79, 176, 248, 0.30);
  animation: announcePulse 1.7s ease-in-out infinite; transition: background 0.2s ease;
}
.announce-bar:hover { background: linear-gradient(135deg, rgba(32, 144, 240, 0.28), rgba(79, 176, 248, 0.12)); }
/* moving shimmer sweep across the whole bar */
.announce-bar::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: -45%; width: 45%;
  background: linear-gradient(100deg, transparent, rgba(120, 200, 255, 0.20), transparent);
  animation: announceSweep 2.8s linear infinite; pointer-events: none;
}
@keyframes announceSweep { 0% { left: -45%; } 100% { left: 130%; } }
/* brighter, faster glow + the bottom border flares */
@keyframes announcePulse {
  0%, 100% { box-shadow: inset 0 0 0 0 rgba(32, 144, 240, 0); border-bottom-color: rgba(79, 176, 248, 0.30); }
  50%      { box-shadow: inset 0 0 80px 0 rgba(32, 144, 240, 0.34); border-bottom-color: rgba(120, 200, 255, 0.85); }
}
/* blinking red live dot — opacity + scale (NOT an outward box-shadow ring,
   which the bar's `overflow: hidden` would clip, making the dot look static) */
.announce-bar .live {
  flex: none; width: 8px; height: 8px; border-radius: 50%; background: #ff5a4d;
  animation: announceLive 1.1s ease-in-out infinite;
}
@keyframes announceLive {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.2; transform: scale(0.65); }
}
/* flashing NEW pill with a glow ring */
.announce-bar .pill {
  flex: none; font-family: var(--font-mono); font-size: 10.5px; font-weight: 700;
  letter-spacing: 1.4px; text-transform: uppercase; color: var(--ink); background: var(--accent-dark);
  padding: 3px 11px; border-radius: 999px; animation: announceFlash 0.85s steps(1, end) infinite;
}
@keyframes announceFlash {
  0%, 49%   { opacity: 1; box-shadow: 0 0 14px 2px rgba(120, 200, 255, 0.65); }
  50%, 100% { opacity: 0.5; box-shadow: 0 0 0 0 rgba(120, 200, 255, 0); }
}
.announce-bar .txt { font-size: 13.5px; font-weight: 500; color: var(--slate-light); }
.announce-bar .txt strong { color: var(--paper); font-weight: 600; }
.announce-bar .go { color: var(--accent-dark); font-weight: 700; white-space: nowrap; }
.announce-bar:hover .go { color: var(--paper); }
@media (max-width: 600px) {
  .announce-bar { padding: 9px 16px; gap: 8px; }
  .announce-bar .txt { font-size: 12.5px; }
  .announce-bar .go { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .announce-bar, .announce-bar .pill, .announce-bar .live { animation: none; }
  .announce-bar::after { display: none; }
}

/* ─── OPR / Responsible-AI page: obligation cards ─── */
.obligations { display: grid; gap: 22px; max-width: 820px; margin: 0 auto; }
.obligation {
  background: var(--ink-card); border: 1px solid var(--line);
  border-radius: 18px; padding: 32px;
}
.obligation .stat {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--accent-dark); margin-bottom: 8px;
}
.obligation h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.3px; margin-bottom: 22px; }
.obligation .block { margin-bottom: 18px; }
.obligation .block:last-child { margin-bottom: 0; }
.obligation .label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 1px;
  text-transform: uppercase; margin-bottom: 7px; display: inline-block;
}
.obligation .label.opr  { color: var(--slate); }
.obligation .label.help { color: var(--ok); }
.obligation p { color: var(--slate-light); font-size: 15.5px; line-height: 1.65; }
.obligation .block.help { border-left: 2px solid rgba(52, 199, 89, 0.40); padding-left: 16px; }
.pull-quote {
  font-family: var(--font-serif); font-style: italic; font-size: 21px; color: var(--paper);
  border-left: 2px solid var(--accent); padding-left: 22px; line-height: 1.5;
}

/* ─── Cookie notice (non-blocking) ─── */
.cookie-bar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 100;
  max-width: 720px; margin: 0 auto;
  background: var(--ink-card); border: 1px solid var(--line);
  border-radius: 14px; padding: 14px 18px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  box-shadow: 0 12px 44px rgba(0, 0, 0, 0.45);
}
.cookie-bar p { font-size: 13px; line-height: 1.5; color: var(--slate-light); margin: 0; flex: 1; min-width: 220px; }
.cookie-bar a { color: var(--accent-dark); text-decoration: none; }
.cookie-bar a:hover { text-decoration: underline; }
.cookie-bar .btn { flex: none; }
@media (max-width: 560px) { .cookie-bar { left: 10px; right: 10px; bottom: 10px; } }

/* ─── Print (for the review PDF) — force the dark theme to render ─── */
@page { margin: 0.35in; }
@media print {
  html, body { background: var(--ink) !important; }
  *, *::before, *::after {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  body::before { display: none !important; }            /* drop the fixed gradient backdrop */
  .nav { position: static !important; backdrop-filter: none !important; }
  .section, .hero { break-inside: avoid-page; }
  .card, .plan, .founder-card, .step { break-inside: avoid; }
  .hero-cta, .nav-links .btn { -webkit-print-color-adjust: exact; }
}

/* ─── Responsive ─── */
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .wrap, .nav-inner { padding-left: 20px; padding-right: 20px; }
  .section { padding: 60px 0; }
  .nav-brand img { height: 60px; }
  .nav-links { gap: 16px; }
  .nav-links a.hide-sm { display: none; }
  .plans { grid-template-columns: 1fr; }
  .plan.featured { order: -1; }
}
/* Phones (≤600px): simplify the nav to logo + primary CTA, tighten
   spacing, and let long button labels wrap instead of overflowing. */
@media (max-width: 600px) {
  .wrap, .nav-inner { padding-left: 16px; padding-right: 16px; }
  .nav-inner { gap: 12px; }
  .nav-brand img { height: 48px; }
  /* Drop the secondary text links; keep only the "Get started" button. */
  .nav-links a:not(.btn) { display: none; }
  .nav-links { gap: 0; }
  /* Long labels like "Become a Founding Member →" wrap rather than
     pushing the layout wider than the viewport. */
  .btn { white-space: normal; text-align: center; }
  .section { padding: 48px 0; }
  .hero { padding: 56px 0 44px; }
  /* Stack the hero CTAs full-width so they're easy thumb targets. */
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }
}
