/* YATR marketing site — shared styles
   Palette & type per the YATR brand guide:
   slate/deep navy base, amber action color, Space Grotesk display, Inter body. */

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

:root {
  --deep: #0F172A;
  --surface: #1E293B;
  --elevated: #334155;
  --amber: #F59E0B;
  --amber-dark: #D97706;
  --steel: #64748B;
  --warm-white: #F8FAFC;
  --text-primary: #F1F5F9;
  --text-secondary: #94A3B8;
  --success: #22C55E;
  --btc-orange: #F7931A;
  --hairline: rgba(248, 250, 252, 0.07);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--deep);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--amber); color: var(--deep); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

.section-label {
  font-size: 13px;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 16px;
}

/* ── NAV ── */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.wordmark {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.02em;
  color: var(--amber);
  text-decoration: none;
  line-height: 1;
}
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a[aria-current="page"] { color: var(--text-primary); }
.nav-links a.btn-primary {
  padding: 8px 18px;
  font-size: 14px;
  color: var(--deep);
}
.nav-links a.btn-primary:hover { color: var(--deep); }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--elevated);
  border-radius: 8px;
  color: var(--text-primary);
  padding: 8px 12px;
  font-size: 15px;
  cursor: pointer;
}

/* ── BUTTONS ── */

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  cursor: pointer;
}
.btn-primary {
  background: var(--amber);
  color: var(--deep);
  border: 1px solid var(--amber);
}
.btn-primary:hover { background: var(--amber-dark); border-color: var(--amber-dark); }
.btn-secondary {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--steel);
}
.btn-secondary:hover { border-color: var(--text-primary); color: var(--text-primary); }

/* ── HERO ── */

.hero {
  text-align: center;
  padding: 110px 24px 90px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -45%;
  left: 50%;
  transform: translateX(-50%);
  width: 820px;
  height: 820px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.09) 0%, transparent 70%);
  pointer-events: none;
}
.hero > * { position: relative; }
.hero h1 {
  font-size: clamp(42px, 7vw, 76px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  max-width: 820px;
  margin: 0 auto 24px;
}
.hero h1 .amber { color: var(--amber); }
.hero .lede {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid var(--elevated);
  background: rgba(51, 65, 85, 0.4);
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 30px;
  font-weight: 500;
}
.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
}

/* ── GRIEVANCE / PROBLEM ── */

.grievance {
  padding: 100px 24px;
  text-align: center;
  border-top: 1px solid var(--hairline);
}
.grievance h2 { font-size: clamp(30px, 4vw, 46px); margin-bottom: 24px; }
.grievance p {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 680px;
  margin: 0 auto 16px;
}
.graveyard {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 40px;
}
.tombstone {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--elevated);
  background: rgba(51, 65, 85, 0.25);
  color: var(--steel);
  font-size: 14px;
  font-weight: 500;
  text-decoration: line-through;
}

/* ── FEATURE ROWS (workflow arc) ── */

.feature-section { padding: 90px 24px; border-top: 1px solid var(--hairline); }
.feature-row {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.feature-row.reverse .feature-text { order: 2; }
.feature-row.reverse .feature-visual { order: 1; }
.feature-text h2 { font-size: clamp(26px, 3.2vw, 38px); margin-bottom: 18px; }
.feature-text > p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 22px;
}
.feature-list { list-style: none; }
.feature-list li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: 15px;
  color: var(--text-secondary);
  padding: 6px 0;
}
.feature-list li::before {
  content: '\2713';
  color: var(--success);
  font-weight: 700;
  flex-shrink: 0;
}

/* Simple browser-frame mockups */
.mockup {
  background: var(--surface);
  border: 1px solid var(--elevated);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
.mockup-topbar {
  display: flex;
  gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--elevated);
}
.mockup-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--elevated); }
.mockup-body { padding: 18px; }
.mock-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.mock-table th {
  text-align: left;
  color: var(--steel);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 8px;
  border-bottom: 1px solid var(--elevated);
}
.mock-table td {
  padding: 9px 8px;
  border-bottom: 1px solid rgba(51, 65, 85, 0.5);
  color: var(--text-secondary);
  white-space: nowrap;
}
.mock-table td:first-child { color: var(--text-primary); font-weight: 500; }
.mock-table .num { text-align: right; font-family: 'JetBrains Mono', monospace; font-size: 12px; }
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 999px;
}
.badge.green { background: rgba(34, 197, 94, 0.14); color: var(--success); }
.badge.blue { background: rgba(59, 130, 246, 0.16); color: #60A5FA; }
.badge.gray { background: rgba(100, 116, 139, 0.2); color: var(--text-secondary); }
.badge.amberish { background: rgba(245, 158, 11, 0.14); color: var(--amber); }

/* POS mockup */
.mock-pos { font-size: 13px; }
.pos-line {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(51, 65, 85, 0.5);
  color: var(--text-secondary);
}
.pos-line span:last-child { font-family: 'JetBrains Mono', monospace; font-size: 12px; }
.pos-total {
  display: flex;
  justify-content: space-between;
  padding: 14px 0 4px;
  font-weight: 700;
  font-size: 16px;
  color: var(--text-primary);
}
.pos-total span:last-child { font-family: 'Space Grotesk', sans-serif; color: var(--amber); font-size: 22px; }
.pos-charge {
  margin-top: 14px;
  background: var(--amber);
  color: var(--deep);
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  padding: 13px;
  border-radius: 8px;
}
.pos-methods {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 12px;
  font-size: 11px;
  color: var(--steel);
  font-family: 'JetBrains Mono', monospace;
}

/* ── PLATFORM GRID ── */

.grid-section { padding: 100px 24px; border-top: 1px solid var(--hairline); }
.grid-section .grid-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.grid-section h2 { font-size: clamp(28px, 3.6vw, 44px); margin-bottom: 14px; }
.grid-section .grid-head p { color: var(--text-secondary); font-size: 16px; }
.features-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.grid-item {
  background: var(--surface);
  border: 1px solid var(--elevated);
  border-radius: 12px;
  padding: 28px;
  transition: border-color 0.15s;
}
.grid-item:hover { border-color: var(--steel); }
.grid-item h3 { font-size: 17px; margin-bottom: 8px; }
.grid-item p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }
.grid-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: rgba(245, 158, 11, 0.1);
  color: var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

/* ── SOVEREIGNTY TEASER (homepage pillar) ── */

.teaser {
  padding: 100px 24px;
  border-top: 1px solid var(--hairline);
  background: var(--surface);
}
.teaser-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.teaser h2 { font-size: clamp(30px, 4vw, 46px); margin-bottom: 20px; }
.teaser p {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 32px;
}
.text-link {
  color: var(--amber);
  font-weight: 600;
  text-decoration: none;
  font-size: 16px;
}
.text-link:hover { text-decoration: underline; }

/* ── ORIGIN STORY ── */

.origin { padding: 100px 24px; border-top: 1px solid var(--hairline); }
.origin-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.origin h2 { font-size: clamp(28px, 3.6vw, 42px); margin-bottom: 20px; }
.origin p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}
.origin-photo img {
  border-radius: 12px;
  border: 1px solid var(--elevated);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

/* ── PRICING ── */

.pricing { padding: 100px 24px; border-top: 1px solid var(--hairline); }
.pricing .pricing-head { text-align: center; max-width: 680px; margin: 0 auto 24px; }
.pricing h2 { font-size: clamp(30px, 4vw, 46px); margin-bottom: 14px; }
.pricing .pricing-head p { color: var(--text-secondary); font-size: 17px; }
.monetization {
  max-width: 680px;
  margin: 0 auto 52px;
  text-align: center;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-primary);
  border-left: 3px solid var(--amber);
  padding: 4px 0 4px 20px;
  text-align: left;
  font-style: italic;
}
.pricing-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.price-card {
  background: var(--surface);
  border: 1px solid var(--elevated);
  border-radius: 12px;
  padding: 32px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.price-card.featured { border-color: var(--amber); }
.price-card .flag {
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--amber);
  color: var(--deep);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: 999px;
}
.price-card h3 { font-size: 21px; margin-bottom: 6px; }
.price-card .price-line {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--amber);
  margin: 10px 0 2px;
}
.price-card .price-note { font-size: 13px; color: var(--steel); margin-bottom: 18px; }
.price-card .desc { font-size: 14px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 14px; }
.price-card ul { list-style: none; margin: 0 0 26px; }
.price-card li {
  font-size: 14px;
  color: var(--text-secondary);
  padding: 6px 0;
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.price-card li::before {
  content: '\2713';
  color: var(--success);
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}
.price-card .btn-primary,
.price-card .btn-secondary { margin-top: auto; }

/* ── FINAL CTA ── */

.final-cta {
  padding: 120px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--hairline);
}
.final-cta::before {
  content: '';
  position: absolute;
  bottom: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.07) 0%, transparent 70%);
  pointer-events: none;
}
.final-cta > * { position: relative; }
.final-cta h2 { font-size: clamp(30px, 4vw, 48px); margin-bottom: 16px; }
.final-cta p {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 40px;
}

/* ── FOOTER ── */

.site-footer {
  padding: 44px 24px;
  border-top: 1px solid var(--hairline);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.site-footer p, .site-footer a { font-size: 13px; color: var(--steel); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--text-secondary); }
.footer-links { display: flex; gap: 24px; }

/* ── SOVEREIGNTY PAGE ── */

.thesis { padding: 90px 24px; border-top: 1px solid var(--hairline); }
.thesis h2 { font-size: clamp(28px, 3.6vw, 42px); margin-bottom: 20px; }
.thesis p {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 18px;
}
.thesis strong { color: var(--text-primary); }

.pillars {
  max-width: 1100px;
  margin: 48px auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.pillar {
  background: var(--surface);
  border: 1px solid var(--elevated);
  border-radius: 12px;
  padding: 28px;
}
.pillar h3 { font-size: 18px; margin-bottom: 10px; }
.pillar p { font-size: 14px; color: var(--text-secondary); line-height: 1.75; margin: 0; }
.pillar .mono-detail {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--steel);
  margin-top: 14px;
}

/* Terminal (static, no JS) */
.terminal-section { padding: 90px 24px; border-top: 1px solid var(--hairline); }
.terminal {
  max-width: 680px;
  margin: 0 auto;
  background: #0B1120;
  border: 1px solid var(--elevated);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}
.terminal-bar {
  display: flex;
  gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--elevated);
}
.terminal-body {
  padding: 22px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  line-height: 1.9;
  overflow-x: auto;
}
.term-prompt { color: var(--amber); }
.term-cmd { color: var(--text-primary); }
.term-output { color: var(--text-secondary); }
.term-success { color: var(--success); }
.term-comment { color: var(--steel); }

/* Manifesto */
.manifesto {
  padding: 100px 24px;
  border-top: 1px solid var(--hairline);
  background: var(--surface);
}
.manifesto-text {
  max-width: 720px;
  margin: 0 auto;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: -0.01em;
}
.manifesto-source {
  max-width: 720px;
  margin: 28px auto 0;
  color: var(--amber);
  font-size: 15px;
  font-weight: 600;
}

.btc-note {
  padding: 48px 24px;
  text-align: center;
  border-top: 1px solid var(--hairline);
  background: rgba(247, 147, 26, 0.03);
}
.btc-note p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.7;
}
.btc-note .btc { color: var(--btc-orange); font-weight: 600; }

/* ── RESPONSIVE ── */

@media (max-width: 860px) {
  .feature-row,
  .origin-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .feature-row.reverse .feature-text { order: 1; }
  .feature-row.reverse .feature-visual { order: 2; }
  .pricing-grid { grid-template-columns: 1fr; }
  .price-card.featured { order: -1; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 4px;
    padding: 12px 24px 20px;
    background: var(--deep);
    border-bottom: 1px solid var(--elevated);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 0; font-size: 16px; }
  .nav-links a.btn-primary { margin-top: 8px; padding: 12px 18px; }
  .hero { padding: 80px 20px 70px; }
  .grievance, .feature-section, .grid-section, .teaser, .origin,
  .pricing, .final-cta, .thesis, .terminal-section, .manifesto {
    padding-top: 64px;
    padding-bottom: 64px;
  }
  .footer-inner { flex-direction: column; text-align: center; }
}

/* The wink under the manifesto — quiet, discoverable, deniable */
.manifesto-aside {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--muted, #8a93a6);
  text-align: center;
}
.manifesto-aside em { color: var(--amber, #e8b04b); font-style: normal; }
