/* ============================================================
   TITLE NAVIGATOR — MARKETING SITE STYLES
   Reuses the funnel tn- design tokens (colors, type, buttons)
   so the site + funnel + portal read as one product family.
   Palette + button system sourced from brand.md and the
   SpurONE funnel head tracking code.
   ============================================================ */

:root {
  --tn-bg:        #0A1628; /* Midnight page background */
  --tn-card:      #162244; /* card background */
  --tn-border:    #1e3a6b; /* borders, progress track */
  --tn-teal:      #38A0A8; /* primary accent */
  --tn-teal-lt:   #7ec4d8; /* hint / subtext */
  --tn-teal-mut:  #5a8eaa; /* trust row, secondary text */
  --tn-body:      #c8dce8; /* body text in lists/callouts */
  --tn-orange:    #F05828; /* primary CTA */
  --tn-orange-dk: #D84822; /* CTA hover */
  --tn-navy:      #204888; /* secondary accent */
  --tn-stone:     #7E8EA6; /* brand neutral — secondary text, nav default */
  --tn-white:     #ffffff;
  --tn-maxw:      1080px;
  --tn-gradient:  linear-gradient(90deg, #F05828 0%, #38A0A8 55%, #204888 100%);
}

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

html {
  background-color: var(--tn-bg);
  background-image:
    linear-gradient(rgba(59,191,209,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,191,209,0.03) 1px, transparent 1px),
    radial-gradient(ellipse 70% 60% at 80% 50%, rgba(36,85,164,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(59,191,209,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 70% 20%, rgba(232,98,42,0.06) 0%, transparent 50%);
  background-size: 48px 48px, 48px 48px, cover, cover, cover;
  background-attachment: scroll, scroll, fixed, fixed, fixed;
  background-repeat: repeat, repeat, no-repeat, no-repeat, no-repeat;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Barlow', system-ui, sans-serif;
  color: var(--tn-body);
  line-height: 1.6;
  min-height: 100vh;
  /* Burst glow layer over the navy — gives the solid background texture.
     (Grid lives on <html>; these radial bursts add the translucent bloom.) */
  background-color: var(--tn-bg);
  background-image:
    radial-gradient(ellipse 70% 60% at 80% 30%, rgba(36,85,164,0.22) 0%, transparent 70%),
    radial-gradient(ellipse 55% 45% at 15% 75%, rgba(56,160,168,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 45% 35% at 65% 90%, rgba(240,88,40,0.07) 0%, transparent 55%),
    linear-gradient(rgba(59,191,209,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,191,209,0.03) 1px, transparent 1px);
  background-size: cover, cover, cover, 48px 48px, 48px 48px;
  background-attachment: fixed, fixed, fixed, scroll, scroll;
  background-repeat: no-repeat, no-repeat, no-repeat, repeat, repeat;
}

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

.tn-wrap { width: 100%; max-width: var(--tn-maxw); margin: 0 auto; padding: 0 24px; }

/* ── TYPOGRAPHY ────────────────────────────────────────────── */
/* Display = Montserrat, UPPERCASE, tight leading (per brand book).
   Body = Barlow. Mono = JetBrains Mono. */
h1, h2, h3 { font-family: 'Montserrat', system-ui, sans-serif; color: var(--tn-white); font-weight: 800; text-transform: uppercase; line-height: 0.98; }
h1 { font-size: clamp(36px, 6.2vw, 66px); font-weight: 900; letter-spacing: -0.01em; }
h2 { font-size: clamp(26px, 4vw, 42px); margin-bottom: 16px; letter-spacing: -0.005em; }
h3 { font-size: clamp(18px, 2.2vw, 22px); margin-bottom: 8px; line-height: 1.05; }
p  { margin-bottom: 16px; font-size: 17px; }
.tn-lead { font-size: 19px; color: var(--tn-teal-lt); }
.tn-eyebrow {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 14px;
  /* brand gradient: orange -> teal -> blue */
  background: var(--tn-gradient);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
/* larger, more prominent eyebrow for section headers */
.tn-eyebrow--lg { font-size: 15px; letter-spacing: 0.18em; }
section p a { text-decoration: underline; text-underline-offset: 2px; }

/* ── UNDER-CONSTRUCTION BANNER ─────────────────────────────── */
.tn-banner {
  width: 100%; text-align: center; padding: 9px 16px;
  background: var(--tn-gradient); color: #fff;
  font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
}

/* ── NAV ───────────────────────────────────────────────────── */
.tn-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,22,40,0.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(30,58,107,0.6);
}
.tn-nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.tn-nav-logo img { height: 38px; width: auto; }
.tn-nav-links { display: flex; align-items: center; gap: 28px; }
.tn-nav-links a {
  position: relative;
  font-family: 'Barlow', system-ui, sans-serif; font-size: 14px; font-weight: 500;
  color: var(--tn-stone); letter-spacing: 0.01em;
}
/* current section / hover: white text + teal bar underneath */
.tn-nav-links a:hover,
.tn-nav-links a[aria-current="page"] { color: var(--tn-white); }
.tn-nav-links a:not(.tn-btn-primary)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px;
  background: var(--tn-teal); transform: scaleX(0); transform-origin: left; transition: transform 0.18s ease;
}
.tn-nav-links a:not(.tn-btn-primary):hover::after,
.tn-nav-links a[aria-current="page"]:not(.tn-btn-primary)::after { transform: scaleX(1); }
.tn-nav-links a.tn-btn-primary { color: #fff; } /* keep button text white over nav-link color */
.tn-nav-toggle { display: none; background: none; border: 0; color: var(--tn-white); font-size: 26px; cursor: pointer; }

@media (max-width: 820px) {
  .tn-nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--tn-bg);
    border-bottom: 1px solid var(--tn-border); max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  }
  .tn-nav-links.open { max-height: 420px; }
  .tn-nav-links a { width: 100%; padding: 16px 24px; border-top: 1px solid rgba(30,58,107,0.4); }
  .tn-nav-toggle { display: block; }
}

/* ── BUTTONS (funnel tn-btn system) ────────────────────────── */
.tn-btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--tn-orange); color: #fff; border: none; border-radius: 4px;
  height: 48px; padding: 0 28px;
  font-family: 'Barlow', system-ui, sans-serif; font-size: 15px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase; cursor: pointer;
  box-shadow: 0 2px 8px rgba(240,88,40,0.35); transition: background 0.15s ease, box-shadow 0.15s ease;
}
.tn-btn-primary:hover { background: var(--tn-orange-dk); color: #fff; box-shadow: 0 4px 12px rgba(240,88,40,0.45); }
/* Secondary = orange translucent, orange text -> fills solid orange on hover */
.tn-btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: rgba(240,88,40,0.10); color: #FF7A4F;
  border: 1.5px solid rgba(240,88,40,0.55); border-radius: 4px; height: 48px; padding: 0 28px;
  font-family: 'Barlow', system-ui, sans-serif; font-size: 15px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase; cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.tn-btn-secondary:hover {
  background: var(--tn-orange); color: #fff; border-color: var(--tn-orange);
  box-shadow: 0 4px 12px rgba(240,88,40,0.35);
}
.tn-btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }

/* ── HERO ──────────────────────────────────────────────────── */
.tn-hero { padding: 72px 0 56px; }
.tn-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.tn-hero h1 { margin-bottom: 18px; }
.tn-hero .tn-lead { margin-bottom: 28px; }
@media (max-width: 860px) { .tn-hero-grid { grid-template-columns: 1fr; gap: 32px; } .tn-hero { padding: 48px 0 40px; } }

/* ── SECTIONS ──────────────────────────────────────────────── */
.tn-section { padding: 56px 0; }
.tn-section--alt { background: rgba(22,34,68,0.5); border-block: 1px solid rgba(30,58,107,0.5); }
.tn-section-head { max-width: 720px; margin: 0 auto 36px; text-align: center; }
.tn-section-head p { color: var(--tn-teal-lt); }

/* ── CARDS / GRID ──────────────────────────────────────────── */
.tn-grid { display: grid; gap: 20px; }
.tn-grid-2 { grid-template-columns: repeat(2, 1fr); }
.tn-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 780px) { .tn-grid-2, .tn-grid-3 { grid-template-columns: 1fr; } }

.tn-panel {
  background: var(--tn-card); border: 1.5px solid var(--tn-border);
  border-radius: 12px; padding: 28px;
}
.tn-panel h3 { color: #fff; }
.tn-panel .tn-icon { font-size: 28px; color: var(--tn-teal); margin-bottom: 12px; display: block; }

/* accent panels (mirror funnel special cards) */
.tn-panel--roadmap { background: rgba(32,72,136,0.20); border: 1px solid rgba(32,72,136,0.50); border-left: 3px solid var(--tn-navy); }
.tn-panel--success { background: rgba(56,160,168,0.06); border: 1px solid rgba(56,160,168,0.25); border-left: 3px solid var(--tn-teal); }
.tn-panel--alert   { background: rgba(240,88,40,0.05); border: 1px solid rgba(240,88,40,0.25); border-left: 3px solid var(--tn-orange); }

.tn-list { list-style: none; }
.tn-list li { position: relative; padding-left: 28px; margin-bottom: 10px; color: var(--tn-body); }
.tn-list li::before { content: "\ea5e"; font-family: 'tabler-icons'; position: absolute; left: 0; top: 1px; color: var(--tn-teal); font-size: 17px; }

/* price tag */
.tn-price { font-family: 'Montserrat', sans-serif; font-size: 40px; font-weight: 700; color: #fff; line-height: 1; }
.tn-price small { font-family: 'Barlow', sans-serif; font-size: 13px; font-weight: 500; color: var(--tn-teal-mut); text-transform: uppercase; letter-spacing: 0.06em; }

/* ── VIDEO EMBED (degrades via .tn-novideo) ────────────────── */
.tn-video { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; border: 1.5px solid var(--tn-border); background: #0d1a30; }
.tn-video iframe, .tn-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tn-novideo .tn-video { display: none; }

/* ── CONTENT PAGES (hero, prose, answer block, table) ─────── */
.tn-page-hero { padding: 64px 0 8px; }
.tn-page-hero h1 { margin-bottom: 18px; max-width: 900px; }
.tn-prose { max-width: 780px; }
.tn-prose h2 { margin-top: 44px; }
.tn-prose h3 { margin-top: 26px; }
.tn-prose ul { list-style: none; margin: 0 0 18px; }

/* AEO direct-answer block — first, extractable, self-contained */
.tn-answer {
  background: rgba(56,160,168,0.07); border: 1px solid rgba(56,160,168,0.28);
  border-left: 3px solid var(--tn-teal); border-radius: 8px; padding: 20px 22px;
  font-size: 19px; line-height: 1.55; color: #fff; margin: 8px 0 26px;
}
.tn-answer strong { color: var(--tn-teal-lt); }

.tn-table { width: 100%; border-collapse: collapse; margin: 10px 0 22px; }
.tn-table th, .tn-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid rgba(30,58,107,0.6); font-size: 15px; }
.tn-table th { font-family: 'Barlow', sans-serif; color: var(--tn-teal-mut); text-transform: uppercase; font-size: 12px; letter-spacing: 0.06em; font-weight: 600; }
.tn-table td { color: var(--tn-body); }
.tn-table td:last-child, .tn-table th:last-child { text-align: right; }

/* article meta (blog byline/date) */
.tn-article-meta { font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--tn-stone); margin: 6px 0 22px; }
/* clickable panel (Learning Center cards) */
a.tn-panel { text-decoration: none; transition: border-color 0.15s ease, background 0.15s ease; }
a.tn-panel:hover { border-color: var(--tn-teal); background: rgba(22,34,68,0.85); }
a.tn-panel h3 { color: #fff; }
a.tn-panel .tn-readmore { color: var(--tn-teal); font-weight: 600; font-size: 14px; }
.tn-eyebrow-tag { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tn-teal-mut); }

/* ── FAQ ───────────────────────────────────────────────────── */
.tn-faq { max-width: 760px; margin: 0 auto; }
.tn-faq details { border-bottom: 1px solid rgba(30,58,107,0.6); padding: 18px 0; }
.tn-faq summary { font-family: 'Montserrat', sans-serif; font-size: 21px; font-weight: 600; color: #fff; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.tn-faq summary::-webkit-details-marker { display: none; }
.tn-faq summary::after { content: "\ea61"; font-family: 'tabler-icons'; color: var(--tn-teal); transition: transform 0.2s ease; }
.tn-faq details[open] summary::after { transform: rotate(180deg); }
.tn-faq details p { margin-top: 12px; margin-bottom: 0; color: var(--tn-teal-lt); }

/* ── CTA BLOCK ─────────────────────────────────────────────── */
.tn-cta-block { text-align: center; padding: 56px 0; }
.tn-cta-block h2 { margin-bottom: 10px; }
.tn-cta-block p { color: var(--tn-teal-lt); max-width: 560px; margin: 0 auto 24px; }
.tn-cta-block .tn-btn-row { justify-content: center; }

/* ── CONTACT FORM ──────────────────────────────────────────── */
.tn-form { display: flex; flex-direction: column; gap: 16px; }
.tn-field { display: flex; flex-direction: column; gap: 6px; }
.tn-field label { font-size: 14px; color: var(--tn-teal-lt); font-weight: 500; }
.tn-field .req { color: var(--tn-orange); }
.tn-input, .tn-textarea {
  width: 100%; background: #0d1a30; border: 1.5px solid var(--tn-border); border-radius: 8px;
  padding: 12px 14px; color: #fff; font-family: 'Barlow', system-ui, sans-serif; font-size: 15px;
}
.tn-input:focus, .tn-textarea:focus { outline: none; border-color: var(--tn-teal); }
.tn-textarea { min-height: 130px; resize: vertical; }
.tn-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 520px) { .tn-checks { grid-template-columns: 1fr; } }
.tn-check { display: flex; align-items: center; gap: 10px; background: #162244; border: 1.5px solid var(--tn-border); border-radius: 8px; padding: 12px 14px; cursor: pointer; font-size: 14px; color: var(--tn-body); }
.tn-check:hover { border-color: var(--tn-teal); }
.tn-check input { accent-color: var(--tn-teal); width: 16px; height: 16px; flex-shrink: 0; }
.tn-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.tn-form-msg { font-size: 14px; padding: 12px 14px; border-radius: 8px; display: none; }
.tn-form-msg.ok { display: block; background: rgba(56,160,168,0.10); border: 1px solid rgba(56,160,168,0.4); color: var(--tn-teal-lt); }
.tn-form-msg.err { display: block; background: rgba(240,88,40,0.08); border: 1px solid rgba(240,88,40,0.4); color: #ff9b78; }

/* ── FOOTER ────────────────────────────────────────────────── */
.tn-footer { border-top: 1px solid rgba(30,58,107,0.6); padding: 48px 0 32px; margin-top: 24px; }
.tn-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.tn-footer-logo img { height: 40px; margin-bottom: 14px; }
.tn-footer h4 { font-family: 'Barlow', sans-serif; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--tn-teal-mut); margin-bottom: 14px; }
.tn-footer a { display: block; font-size: 14px; color: var(--tn-teal-lt); margin-bottom: 8px; }
.tn-footer a:hover { color: #fff; }
.tn-disclaimer { font-size: 12.5px; color: var(--tn-teal-mut); line-height: 1.6; border-top: 1px solid rgba(30,58,107,0.4); padding-top: 20px; }
@media (max-width: 780px) { .tn-footer-grid { grid-template-columns: 1fr; gap: 24px; } }

/* ── PATH TILES (Two Real Paths — more pronounced) ─────────── */
.tn-path { padding: 32px; }
.tn-path .tn-path-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(56,160,168,0.12); border: 1px solid rgba(56,160,168,0.4);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.tn-path .tn-path-icon i { font-size: 28px; color: var(--tn-teal); }
.tn-path h3 { font-size: clamp(22px, 2.6vw, 28px); }
.tn-path .tn-btn-secondary { margin-top: 18px; }

/* ── SEQUENCE (Step 1 -> Step 2 flow, not two equal paths) ── */
.tn-sequence { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: stretch; margin-top: 12px; }
.tn-seq-arrow { display: flex; align-items: center; justify-content: center; color: var(--tn-teal); font-size: 32px; }
.tn-step-card { position: relative; padding: 34px 32px 32px; }
.tn-step-badge { position: absolute; top: -16px; left: 28px; width: 40px; height: 40px; border-radius: 50%; background: var(--tn-gradient); color: #fff; font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 17px; display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 10px rgba(10,22,40,0.5); }
.tn-cond { margin-top: 12px; margin-bottom: 0; font-size: 12px; color: var(--tn-stone); font-family: 'JetBrains Mono', monospace; letter-spacing: 0.06em; text-transform: uppercase; }
.tn-seq-note { text-align: center; margin: 26px auto 0; max-width: 640px; color: var(--tn-teal-lt); }
@media (max-width: 780px) {
  .tn-sequence { grid-template-columns: 1fr; }
  .tn-seq-arrow { transform: rotate(90deg); padding: 4px 0; }
}

/* ── MEDIA + CTA (Amy intro video beside primary CTA) ─────── */
.tn-media-cta { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.tn-media-cta h2 { margin-bottom: 12px; }
@media (max-width: 860px) { .tn-media-cta { grid-template-columns: 1fr; gap: 28px; } }

/* ── VIDEO PLACEHOLDER (poster until the real video lands) ── */
.tn-video--ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: var(--tn-stone); background: radial-gradient(ellipse at center, rgba(32,72,136,0.35), #0d1a30 70%); }
.tn-video--ph .tn-play { width: 64px; height: 64px; border-radius: 50%; background: var(--tn-orange); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 28px; box-shadow: 0 4px 16px rgba(240,88,40,0.4); }
.tn-video--ph .tn-play i { margin-left: 3px; }
.tn-video--ph span { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }

/* ── VIDEO POSTER (real poster frame + play button) ───────── */
.tn-video--poster { background-size: cover; background-position: center; position: relative; }
.tn-video--poster::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,22,40,0.10), rgba(10,22,40,0.55)); }
.tn-play-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 68px; height: 68px; border-radius: 50%; background: var(--tn-orange); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 30px; box-shadow: 0 4px 18px rgba(240,88,40,0.5); z-index: 2; transition: transform 0.15s ease, background 0.15s ease; }
.tn-play-btn:hover { background: var(--tn-orange-dk); color: #fff; transform: translate(-50%,-50%) scale(1.06); }
.tn-play-btn i { margin-left: 3px; }
.tn-video-cap { position: absolute; bottom: 12px; left: 16px; z-index: 2; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; }

/* ── PHOTO PLACEHOLDER (hero imagery slot) ────────────────── */
.tn-photo-ph { position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: 12px; border: 1.5px dashed rgba(126,142,166,0.5); background: rgba(22,34,68,0.5); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--tn-stone); text-align: center; padding: 20px; }
.tn-photo-ph i { font-size: 40px; color: var(--tn-teal); }
.tn-photo-ph span { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; max-width: 260px; line-height: 1.5; }

/* ── UTIL ──────────────────────────────────────────────────── */
.tn-center { text-align: center; }
.tn-mt-24 { margin-top: 24px; }
.tn-disq { font-size: 15px; color: var(--tn-teal-mut); font-style: italic; }
