/*
 * LedgerLearn Pro — Shared Styles (ll-shared.css)
 * ================================================
 * Import this in every page:
 *   <link rel="stylesheet" href="/ll-shared.css">
 */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,400&family=Playfair+Display:ital,wght@0,700;0,800;1,600&display=swap');

/* ── Tokens ── */
:root {
  --navy:       #0B1F3A;
  --navy-mid:   #132d52;
  --navy-light: #1a3a6b;
  --gold:       #D4A843;
  --gold-light: #f0c860;
  --gold-pale:  #fdf3dc;
  --gold-dim:   #a07c2a;
  --teal:       #1DA98A;
  --teal-light: #26c9a5;
  --teal-pale:  #e1f7f2;
  --white:      #ffffff;
  --off-white:  #f8f7f4;
  --text-dark:  #0B1F3A;
  --text-mid:   #3d5a7a;
  --text-muted: #6b87a3;
  --border:     rgba(11,31,58,0.1);
  --border-dark:rgba(255,255,255,0.08);
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: var(--off-white); color: var(--text-dark); overflow-x: hidden; }
img  { max-width: 100%; display: block; }
a    { color: inherit; }

/* ── Shared Nav ── */
.ll-nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(11,31,58,0.97);
  backdrop-filter: blur(14px);
  height: 62px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem;
  border-bottom: 1px solid rgba(212,168,67,0.18);
}

.ll-nav-logo { display: flex; align-items: center; gap: 9px; text-decoration: none; }

.ll-hex {
  clip-path: polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);
  background: var(--gold);
}
.ll-hex-lg { width: 34px; height: 34px; }
.ll-hex-sm { width: 22px; height: 22px; }
.ll-hex-xs { width: 16px; height: 16px; }

.ll-nav-brand {
  font-family: 'Syne', sans-serif;
  font-weight: 700; font-size: 1.05rem;
  color: var(--white); letter-spacing: -0.02em;
}
.ll-nav-brand span { color: var(--gold); }

.ll-nav-links { display: flex; align-items: center; gap: 1.75rem; list-style: none; }
.ll-nav-links a {
  color: rgba(255,255,255,0.65);
  text-decoration: none; font-size: 0.85rem;
  transition: color 0.2s;
}
.ll-nav-links a:hover, .ll-nav-links a.active { color: var(--white); }

.ll-nav-cta {
  background: var(--gold); color: var(--navy) !important;
  font-weight: 700 !important; font-size: 0.85rem;
  padding: 8px 18px; border-radius: var(--radius-sm);
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
}
.ll-nav-cta:hover { background: var(--gold-light) !important; transform: translateY(-1px); }

/* ── Shared Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 0.95rem;
  cursor: pointer; text-decoration: none; border: none;
  transition: all 0.2s;
}
.btn-gold  { background: var(--gold); color: var(--navy); }
.btn-gold:hover  { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(212,168,67,0.35); }
.btn-teal  { background: var(--teal); color: var(--white); }
.btn-teal:hover  { background: var(--teal-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(29,169,138,0.3); }
.btn-ghost { background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.75); border: 1px solid rgba(255,255,255,0.14); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); color: var(--white); }
.btn-ghost-dark { background: transparent; color: var(--text-mid); border: 1px solid var(--border); }
.btn-ghost-dark:hover { border-color: var(--teal); color: var(--teal); }
.btn-li { background: #0A66C2; color: var(--white); }
.btn-li:hover { background: #0d77db; transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }
.btn-full { width: 100%; justify-content: center; }

/* ── Section base ── */
.ll-section { padding: 80px 2rem; }
.ll-section-inner { max-width: 1100px; margin: 0 auto; }
.ll-section-narrow { max-width: 720px; margin: 0 auto; }

.ll-label {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--teal); font-weight: 600; margin-bottom: 0.6rem; display: block;
}
.ll-label-light { color: var(--teal-light); }
.ll-label-gold  { color: var(--gold); }

.ll-h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 800; color: var(--navy);
  letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 0.9rem;
}
.ll-h2-white { color: var(--white); }
.ll-h2 span  { color: var(--gold); }

.ll-lead {
  font-size: 1rem; color: var(--text-muted);
  line-height: 1.75; font-weight: 300; max-width: 540px;
}
.ll-lead-white { color: rgba(255,255,255,0.55); }

/* ── Cards ── */
.ll-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
}
.ll-card-dark {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
}

/* ── Input ── */
.ll-input {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-family: 'DM Sans', sans-serif; font-size: 0.9rem; color: var(--white);
  outline: none; transition: border-color 0.2s;
}
.ll-input::placeholder { color: rgba(255,255,255,0.28); }
.ll-input:focus { border-color: rgba(29,169,138,0.55); }
.ll-input.error { border-color: rgba(255,100,100,0.6); }
.ll-input-light {
  background: var(--white); border: 1px solid var(--border);
  color: var(--text-dark);
}
.ll-input-light::placeholder { color: var(--text-muted); }
.ll-input-light:focus { border-color: var(--teal); }

/* ── Pill / badge ── */
.ll-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.72rem; font-weight: 600; padding: 4px 12px;
  border-radius: 100px;
}
.ll-pill-teal { background: var(--teal-pale); color: var(--teal); border: 1px solid rgba(29,169,138,0.3); }
.ll-pill-gold { background: var(--gold-pale); color: var(--gold-dim); border: 1px solid rgba(212,168,67,0.3); }
.ll-pill-dark { background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.55); border: 1px solid var(--border-dark); }

/* ── Upsell strip (shared across pages) ── */
.ll-upsell {
  background: linear-gradient(135deg, #0d2744, #0a1f38);
  border: 1px solid rgba(212,168,67,0.2);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  display: flex; align-items: center; gap: 2rem; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.ll-upsell::after {
  content: '';
  position: absolute; right: 0; top: 0; bottom: 0; width: 40%;
  background: radial-gradient(ellipse at right, rgba(212,168,67,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.ll-upsell-text { flex: 1; position: relative; z-index: 1; }
.ll-upsell-badge {
  display: inline-block;
  background: rgba(212,168,67,0.15); color: var(--gold);
  font-size: 0.62rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.07em; padding: 2px 8px; border-radius: 3px; margin-bottom: 0.4rem;
}
.ll-upsell-text h3 {
  font-family: 'Syne', sans-serif; font-size: 1.05rem; font-weight: 700;
  color: var(--white); margin-bottom: 0.25rem; letter-spacing: -0.01em;
}
.ll-upsell-text p { font-size: 0.82rem; color: rgba(255,255,255,0.5); font-weight: 300; }
.ll-upsell-code { font-size: 0.7rem; color: rgba(255,255,255,0.3); margin-top: 4px; }
.ll-upsell-code strong { color: var(--gold); }
.ll-upsell-actions { flex-shrink: 0; position: relative; z-index: 1; }

/* ── Footer ── */
.ll-footer {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 2.5rem 2rem;
}
.ll-footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1.5rem;
}
.ll-footer-brand {
  font-family: 'Syne', sans-serif; font-size: 1rem; font-weight: 700; color: var(--white);
}
.ll-footer-brand span { color: var(--gold); }
.ll-footer-links { display: flex; gap: 1.5rem; list-style: none; flex-wrap: wrap; }
.ll-footer-links a { font-size: 0.8rem; color: rgba(255,255,255,0.35); text-decoration: none; transition: color 0.2s; }
.ll-footer-links a:hover { color: rgba(255,255,255,0.7); }
.ll-footer-disclaimer {
  width: 100%; font-size: 0.7rem; color: rgba(255,255,255,0.18); line-height: 1.6;
  border-top: 1px solid rgba(255,255,255,0.05); padding-top: 1.25rem; margin-top: 0.25rem;
}

/* ── Animations ── */
@keyframes ll-fade-up   { from { opacity:0; transform:translateY(20px) } to { opacity:1; transform:translateY(0) } }
@keyframes ll-fade-in   { from { opacity:0 } to { opacity:1 } }
@keyframes ll-pulse     { 0%,100%{opacity:1} 50%{opacity:0.4} }
@keyframes ll-spin      { to { transform: rotate(360deg) } }
@keyframes ll-shimmer   { 0%,100%{opacity:1} 50%{opacity:0.6} }

.ll-animate { animation: ll-fade-up 0.5s ease both; }
.ll-delay-1 { animation-delay: 0.1s; }
.ll-delay-2 { animation-delay: 0.2s; }
.ll-delay-3 { animation-delay: 0.3s; }
.ll-delay-4 { animation-delay: 0.4s; }

/* ── Spinner ── */
.ll-spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.25); border-top-color: var(--white);
  border-radius: 50%; animation: ll-spin 0.7s linear infinite; display: none;
}
.ll-spinner-dark {
  border-color: rgba(11,31,58,0.2); border-top-color: var(--navy);
}

/* ── Responsive helpers ── */
@media (max-width: 768px) {
  .ll-nav-links { display: none; }
  .ll-section { padding: 60px 1.25rem; }
  .hide-mobile { display: none !important; }
}
@media (max-width: 480px) {
  .ll-section { padding: 48px 1rem; }
}
