/* Ayanam Learn — marketing site design system.
   Shares the same tokens as the app (src/App.jsx GlobalStyle) so the
   marketing site and the product feel like one brand, not two.
   v2: premium reboot — glass nav, hero mockup, dark contrast sections,
   stats bar, comparison table, hover-lift cards. Teal/indigo brand kept
   to stay consistent with the app icons, favicon, and PWA. */

:root {
  --ay-brand:        #2F7A73;
  --ay-brand-dark:   #245D57;
  --ay-brand-dim:    #EAF4F2;
  --ay-brand-text:   #24645F;
  --ay-brand-border: #BFDDD8;

  --ay-accent:        #5352C2;
  --ay-accent-dim:    #EEEEFA;
  --ay-accent-text:   #46459E;
  --ay-accent-border: #D2D1F2;

  --ay-success-text: #1B6B49;
  --ay-warning-text: #8A5E0C;
  --ay-danger-text:  #9E3225;

  /* accent tints used for feature icon badges + compare table */
  --ay-amber-dim: #FCF3E3;
  --ay-rose-dim:  #FBEAEA;
  --ay-blue-dim:  #E7F0FC;
  --ay-blue-text: #2F6FB0;
  --ay-green-dim: #E6F5EC;
  --ay-green-text: #1F7A54;

  --ay-bg:        #F6F7F9;
  --ay-surface:   #FFFFFF;
  --ay-surface-2: #F0F1F4;
  --ay-text:   #13161C;
  --ay-text-2: #454B57;
  --ay-text-3: #868C99;
  --ay-border: #E5E7EB;

  /* dark, teal-tinted contrast sections (problem, footer) */
  --ay-dark:        #10221E;
  --ay-dark-2:       #17302B;
  --ay-dark-border: rgba(255,255,255,0.09);
  --ay-dark-text:   #F3F6F5;
  --ay-dark-text-2: #A9C9C4;
  --ay-dark-text-3: #6E8F89;

  --ay-r-sm:   6px;
  --ay-r-md:   8px;
  --ay-r-lg:   12px;
  --ay-r-xl:   16px;
  --ay-r-2xl:  22px;
  --ay-r-pill: 999px;
  --ay-shadow-sm: 0 1px 2px rgba(15,18,26,0.04), 0 1px 3px rgba(15,18,26,0.05);
  --ay-shadow-md: 0 2px 6px rgba(15,18,26,0.05), 0 6px 16px rgba(15,18,26,0.06);
  --ay-shadow-lg: 0 8px 24px rgba(15,18,26,0.09), 0 2px 6px rgba(15,18,26,0.05);
  --ay-shadow-xl: 0 24px 70px rgba(15,18,26,0.14), 0 6px 20px rgba(15,18,26,0.07);

  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 16px; --sp-4: 24px;
  --sp-5: 32px; --sp-6: 48px; --sp-7: 64px; --sp-8: 96px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  margin: 0;
  background: var(--ay-bg);
  color: var(--ay-text);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--ay-brand-text); }
.container { max-width: 1100px; margin: 0 auto; padding: 0 var(--sp-4); }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 var(--sp-4); }

section { padding: var(--sp-8) 0; }
section.tight { padding: var(--sp-7) 0; }
@media (max-width: 640px) {
  section { padding: var(--sp-6) 0; }
  .container, .container-narrow { padding: 0 var(--sp-3); }
}

.eyebrow {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.09em; color: var(--ay-brand-text); margin: 0 0 var(--sp-2);
}
h1, h2, h3, h4 { font-weight: 800; letter-spacing: -0.025em; margin: 0; color: var(--ay-text); }
h1 { font-size: clamp(34px, 5.5vw, 56px); line-height: 1.06; }
h2 { font-size: clamp(26px, 4vw, 38px); line-height: 1.15; }
h3 { font-size: 20px; line-height: 1.3; font-weight: 700; }
p { color: var(--ay-text-2); margin: 0; }
p.lead { font-size: 18px; line-height: 1.6; color: var(--ay-text-2); }
.center { text-align: center; }
.section-head { max-width: 640px; margin: 0 auto var(--sp-6); text-align: center; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-weight: 600; font-size: 15px; text-decoration: none;
  border-radius: var(--ay-r-md); padding: 13px 26px; cursor: pointer; border: none;
  transition: transform 0.12s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ay-brand); color: #fff; box-shadow: var(--ay-shadow-sm); }
.btn-primary:hover { background: var(--ay-brand-dark); box-shadow: 0 6px 20px rgba(47,122,115,0.28); transform: translateY(-1px); }
.btn-ghost { background: var(--ay-surface); color: var(--ay-text); border: 1px solid var(--ay-border); }
.btn-ghost:hover { border-color: var(--ay-text-3); background: var(--ay-surface-2); }
.btn-lg { padding: 15px 32px; font-size: 16px; }
.cta-row { display: flex; gap: var(--sp-3); flex-wrap: wrap; align-items: center; }
.center .cta-row, .cta-row.center { justify-content: center; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50; background: rgba(246,247,249,0.82);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ay-border);
  box-shadow: 0 1px 0 rgba(15,18,26,0.02);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ay-text); }
.nav-brand img { width: 30px; height: 30px; }
.nav-brand span { font-weight: 800; font-size: 16px; letter-spacing: -0.01em; }
.nav-links { display: flex; align-items: center; gap: var(--sp-5); }
.nav-links a:not(.btn) { color: var(--ay-text-2); text-decoration: none; font-size: 14px; font-weight: 500; transition: color .15s; }
.nav-links a:not(.btn):hover { color: var(--ay-text); }
.nav-cta { display: flex; align-items: center; gap: var(--sp-3); }
@media (max-width: 720px) {
  .nav-links-desktop { display: none; }
}

/* Hero */
.hero {
  padding: var(--sp-8) 0 var(--sp-7);
  text-align: center;
  background: radial-gradient(60% 100% at 50% 0%, var(--ay-brand-dim) 0%, var(--ay-bg) 62%);
  border-bottom: 1px solid var(--ay-border);
}
.hero h1 { margin-bottom: var(--sp-3); }
.hero p.lead { max-width: 640px; margin: 0 auto var(--sp-5); }
.hero-badge {
  display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700;
  color: var(--ay-brand-text); background: var(--ay-surface); border: 1px solid var(--ay-brand-border);
  border-radius: var(--ay-r-pill); padding: 7px 16px; margin-bottom: var(--sp-4);
  box-shadow: var(--ay-shadow-sm);
}

/* Hero product mockup */
.hero-mockup {
  margin: var(--sp-7) auto 0; max-width: 860px; text-align: left;
  background: var(--ay-surface); border: 1px solid var(--ay-border); border-radius: var(--ay-r-2xl);
  box-shadow: var(--ay-shadow-xl); overflow: hidden;
}
.hero-mockup-bar {
  background: var(--ay-surface-2); border-bottom: 1px solid var(--ay-border);
  padding: 12px 20px; display: flex; align-items: center; gap: 8px;
}
.hero-mockup-dot { width: 11px; height: 11px; border-radius: 50%; }
.hero-mockup-url {
  flex: 1; background: var(--ay-surface); border: 1px solid var(--ay-border); border-radius: 6px;
  height: 26px; max-width: 260px; margin: 0 auto; display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: var(--ay-text-3); font-family: 'DM Mono', monospace;
}
.hero-mockup-body { padding: var(--sp-5); background: var(--ay-bg); }
.hm-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-3); }
.hm-title { font-size: 15px; font-weight: 800; color: var(--ay-text); }
.hm-badge {
  font-size: 12px; font-weight: 700; color: var(--ay-brand-text); background: var(--ay-brand-dim);
  border: 1px solid var(--ay-brand-border); border-radius: var(--ay-r-pill); padding: 3px 12px;
}
.hm-group { margin-bottom: var(--sp-3); }
.hm-group:last-child { margin-bottom: 0; }
.hm-group-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--ay-text-3); margin-bottom: 8px; display: flex; align-items: center; gap: 8px;
}
.hm-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.hm-card {
  background: var(--ay-surface); border: 1px solid var(--ay-border); border-radius: var(--ay-r-md);
  padding: 12px 14px; margin-bottom: 8px; box-shadow: var(--ay-shadow-sm);
}
.hm-card:last-child { margin-bottom: 0; }
.hm-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.hm-card-name { font-size: 13px; font-weight: 700; color: var(--ay-text); }
.hm-status {
  font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: var(--ay-r-pill);
}
.hm-status.due { background: var(--ay-accent-dim); color: var(--ay-accent-text); }
.hm-status.overdue { background: var(--ay-rose-dim); color: var(--ay-danger-text); }
.hm-card-meta { font-size: 11px; color: var(--ay-text-3); font-family: 'DM Mono', monospace; }
.hm-card-ideas { font-size: 12px; color: var(--ay-text-2); margin-top: 4px; }

/* Cards */
.card {
  background: var(--ay-surface); border: 1px solid var(--ay-border); border-radius: var(--ay-r-lg);
  padding: var(--sp-4); box-shadow: var(--ay-shadow-sm);
}

/* Problem / solution lists */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-6); align-items: start; }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; gap: var(--sp-5); } }
.check-list, .cross-list { list-style: none; margin: var(--sp-3) 0 0; padding: 0; display: flex; flex-direction: column; gap: var(--sp-2); }
.check-list li, .cross-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: var(--ay-text-2); }
.check-list li::before { content: '✓'; color: var(--ay-brand-text); font-weight: 700; flex: none; }
.cross-list li::before { content: '×'; color: var(--ay-danger-text); font-weight: 700; flex: none; }

/* Dark, teal-tinted contrast section (Problem, etc.) */
.section-dark { background: var(--ay-dark); color: var(--ay-dark-text); }
.section-dark .eyebrow { color: #8FE0D4; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p, .section-dark p.lead { color: var(--ay-dark-text-2); }
.section-dark strong { color: #fff; }
.section-dark .check-list li, .section-dark .cross-list li { color: var(--ay-dark-text-2); }
.section-dark .cross-list li::before { color: #E8998C; }
.section-dark .check-list li::before { color: #8FE0D4; }
.section-dark .card {
  background: var(--ay-dark-2); border: 1px solid var(--ay-dark-border); box-shadow: none;
}
.section-dark .card .eyebrow { color: #8FE0D4; }

/* How it works — vertical step timeline */
.timeline { display: flex; flex-direction: column; max-width: 560px; margin: 0 auto; }
.timeline-step { display: flex; gap: var(--sp-4); position: relative; padding-bottom: var(--sp-5); }
.timeline-step:last-child { padding-bottom: 0; }
.timeline-num {
  flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--ay-brand-dim);
  color: var(--ay-brand-text); font-weight: 700; font-size: 16px; display: flex; align-items: center;
  justify-content: center; position: relative; z-index: 1; border: 1px solid var(--ay-brand-border);
}
.timeline-step:not(:last-child)::before {
  content: ''; position: absolute; left: 20px; top: 40px; bottom: 0; width: 2px; background: var(--ay-border);
}
.timeline-body h3 { margin-bottom: 4px; }
.timeline-body p { font-size: 15px; }

/* The Ayanam Method — brand flow */
.method-flow { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0; margin-top: var(--sp-5); }
.method-node {
  display: flex; flex-direction: column; align-items: center; gap: 8px; width: 108px;
}
.method-dot {
  width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; color: #fff; box-shadow: var(--ay-shadow-md);
}
.method-node span.label { font-size: 13px; font-weight: 600; color: var(--ay-text); }
.method-arrow { color: var(--ay-text-3); font-size: 20px; padding: 0 2px; }
@media (max-width: 720px) {
  .method-flow { flex-direction: column; }
  .method-arrow { transform: rotate(90deg); padding: 4px 0; }
}

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-card { display: flex; flex-direction: column; gap: 10px; transition: box-shadow .2s, transform .2s, border-color .2s; }
.feature-card:hover { box-shadow: var(--ay-shadow-md); border-color: var(--ay-brand-border); transform: translateY(-3px); }
.feature-icon {
  width: 42px; height: 42px; border-radius: var(--ay-r-md); background: var(--ay-brand-dim);
  color: var(--ay-brand-text); display: flex; align-items: center; justify-content: center; font-size: 18px;
}

/* Comparison table */
.compare-wrap { overflow-x: auto; margin-top: var(--sp-6); }
.compare-table {
  width: 100%; border-collapse: collapse; background: var(--ay-surface); border-radius: var(--ay-r-lg);
  overflow: hidden; border: 1px solid var(--ay-border); box-shadow: var(--ay-shadow-sm); min-width: 640px;
}
.compare-table th {
  background: var(--ay-surface-2); padding: 14px 18px; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--ay-text-3);
  border-bottom: 1px solid var(--ay-border); text-align: left;
}
.compare-table th.highlight { background: var(--ay-brand-dim); color: var(--ay-brand-text); }
.compare-table td {
  padding: 15px 18px; font-size: 14px; color: var(--ay-text-2); border-bottom: 1px solid var(--ay-surface-2);
  vertical-align: top; line-height: 1.5;
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table td.highlight { background: #FAFEFD; font-weight: 600; color: var(--ay-text); }
.compare-check { color: var(--ay-success-text); font-weight: 700; }
.compare-cross { color: var(--ay-text-3); }

/* Stats bar */
.stats { background: var(--ay-brand); padding: var(--sp-6) 0; }
.stats-inner {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--sp-4); text-align: center;
}
.stat-num {
  font-size: 38px; font-weight: 800; color: #fff; font-family: 'DM Mono', monospace;
  letter-spacing: -0.02em; line-height: 1; margin-bottom: 6px;
}
.stat-label { font-size: 14px; color: rgba(255,255,255,0.85); font-weight: 500; }

/* Category pills (Learning Hub) */
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pill {
  font-size: 13px; font-weight: 600; color: var(--ay-accent-text); background: var(--ay-accent-dim);
  border: 1px solid var(--ay-accent-border); border-radius: var(--ay-r-pill); padding: 6px 14px; text-decoration: none;
  transition: background-color .15s, border-color .15s;
}
.pill:hover { background: #E4E3F8; border-color: #B9B7EC; }

/* Video embeds */
.video-wrap { position: relative; width: 100%; padding-top: 56.25%; border-radius: var(--ay-r-lg); overflow: hidden; background: #000; }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-credit { font-size: 13px; color: var(--ay-text-3); margin-top: var(--sp-2); }
.video-credit a { color: var(--ay-text-2); font-weight: 600; }

/* Blog cards */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
@media (max-width: 900px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .blog-grid { grid-template-columns: 1fr; } }
.blog-card {
  text-decoration: none; display: flex; flex-direction: column; gap: 8px; padding: var(--sp-4);
  border: 1px solid var(--ay-border); border-radius: var(--ay-r-lg); background: var(--ay-surface);
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.blog-card:hover { box-shadow: var(--ay-shadow-md); border-color: var(--ay-brand-border); transform: translateY(-3px); }
.blog-card .tag { font-size: 12px; font-weight: 700; color: var(--ay-brand-text); text-transform: uppercase; letter-spacing: 0.06em; }
.blog-card h3 { color: var(--ay-text); }
.blog-card p { font-size: 14px; }
.blog-card.stub { opacity: 0.6; cursor: default; }
.blog-card.stub:hover { box-shadow: none; border-color: var(--ay-border); transform: none; }
.blog-card.stub .tag { color: var(--ay-text-3); }

/* Article page */
.article-hero { padding: var(--sp-7) 0 var(--sp-4); }
article.prose { max-width: 720px; margin: 0 auto; }
article.prose h2 { margin-top: var(--sp-6); margin-bottom: var(--sp-2); font-size: 24px; }
article.prose p { font-size: 17px; color: var(--ay-text-2); margin-bottom: var(--sp-3); }
article.prose ul, article.prose ol { color: var(--ay-text-2); font-size: 17px; padding-left: 22px; }
article.prose li { margin-bottom: 8px; }
article.prose blockquote {
  border-left: 3px solid var(--ay-brand); margin: var(--sp-4) 0; padding: var(--sp-2) var(--sp-4);
  background: var(--ay-brand-dim); border-radius: 0 var(--ay-r-md) var(--ay-r-md) 0; font-style: italic; color: var(--ay-text-2);
}
.article-meta { font-size: 13px; color: var(--ay-text-3); margin-top: var(--sp-2); }

/* Philosophy section */
.philosophy-card { background: var(--ay-text); color: #fff; border-radius: var(--ay-r-xl); padding: var(--sp-6) var(--sp-5); text-align: center; }
.philosophy-card .eyebrow { color: #9FD8CF; }
.philosophy-card h2 { color: #fff; }
.philosophy-card p.lead { color: #C9CDD6; max-width: 640px; margin: var(--sp-3) auto 0; }
.philosophy-not { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-3); margin-top: var(--sp-4); }
.philosophy-not span { font-size: 14px; color: #E7E9ED; border: 1px solid #383D48; border-radius: var(--ay-r-pill); padding: 6px 14px; }

/* Roadmap / future AI */
.roadmap-note {
  border: 1px dashed var(--ay-accent-border); background: var(--ay-accent-dim); border-radius: var(--ay-r-lg);
  padding: var(--sp-4); font-size: 14px; color: var(--ay-accent-text); max-width: 640px; margin: var(--sp-4) auto 0;
}

/* Final CTA — soft gradient */
.cta-final {
  background: linear-gradient(135deg, var(--ay-brand-dim) 0%, var(--ay-bg) 55%, var(--ay-accent-dim) 100%);
  border-top: 1px solid var(--ay-border);
  text-align: center;
}

/* Footer — dark, matches problem/contrast sections */
footer { background: var(--ay-dark); padding: var(--sp-6) 0; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-4); align-items: center; }
.footer-links { display: flex; gap: var(--sp-4); flex-wrap: wrap; }
.footer-links a { color: var(--ay-dark-text-2); text-decoration: none; font-size: 14px; transition: color .15s; }
.footer-links a:hover { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: 8px; color: var(--ay-dark-text-2); font-size: 13px; font-weight: 600; }
.footer-brand img { width: 20px; height: 20px; }

section.alt { background: var(--ay-surface); border-top: 1px solid var(--ay-border); border-bottom: 1px solid var(--ay-border); }
