/* ============================================================
   Solar Guide Landing - shared design system
   Style ported from ai.andrewtomin.com (AI Sandbox): warm paper
   palette, Inter + JetBrains Mono, terracotta accent, soft pills.
   No em-dashes, no chevron quotes, no emojis. RU.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@500;600&display=swap');

:root {
  --bg: #F4EDDC;
  --bg2: #FAF6EB;
  --bg3: #ECE3CB;
  --accent: #C24E2E;
  --accent-hover: #A03E22;
  --accent-dim: rgba(194,78,46,0.10);
  --accent-glow: rgba(194,78,46,0.20);
  --accent-2: #C18A47;
  --sage: #6E8763;
  --sage-dim: rgba(110,135,99,0.12);
  --lavender: #8A7E9B;
  --text: #2E2B25;
  --muted: #7A6F5E;
  --border: rgba(46,43,37,0.12);
  --paper: rgba(250,246,235,0.92);
  --paper-shadow: 0 4px 24px rgba(46,43,37,0.06);
  --danger: #B23A2E;
  --danger-dim: rgba(178,58,46,0.08);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.container--narrow { max-width: 760px; }

/* ---------- NAV ---------- */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(244,237,220,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.nav-inner {
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
}
.logo {
  font-size: 1rem; font-weight: 800; color: var(--text);
  letter-spacing: 0.05em; text-transform: uppercase; text-decoration: none;
}
.logo span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-link {
  font-size: 0.85rem; font-weight: 700; color: var(--text);
  text-decoration: none; letter-spacing: 0.02em; transition: color 0.2s;
}
.nav-link:hover, .nav-link.active { color: var(--accent); }
.nav-cta {
  background: var(--accent); color: #FAF6EB; border: none;
  padding: 8px 20px; border-radius: 100px; font-weight: 700;
  font-size: 0.85rem; cursor: pointer; letter-spacing: 0.03em; text-decoration: none;
}
.nav-cta:hover { background: var(--accent-hover); }
@media (max-width: 620px) { .nav-link { display: none; } }

/* ---------- ECHO BANNER ---------- */
.banner {
  background: linear-gradient(90deg, rgba(193,138,71,0.18), rgba(110,135,99,0.18));
  border-bottom: 1px solid var(--border);
  text-align: center; padding: 10px; font-size: 0.85rem;
  color: var(--text); letter-spacing: 0.04em; font-weight: 600;
}
.banner a { color: var(--accent); border-bottom: 1px solid rgba(194,78,46,0.4); }

/* ---------- HERO ---------- */
.hero { padding: 92px 0 72px; position: relative; }
.hero--photo { background-size: cover; background-position: center 35%; text-align: left; }
.hero--photo::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(244,237,220,0.55) 0%, rgba(244,237,220,0.72) 50%,
    rgba(244,237,220,0.94) 85%, var(--bg) 100%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }

.eyebrow {
  display: inline-block; background: var(--paper); border: 1px solid var(--border);
  color: var(--text); font-size: 0.78rem; letter-spacing: 0.15em;
  text-transform: uppercase; padding: 8px 18px; border-radius: 100px;
  margin-bottom: 22px; backdrop-filter: blur(6px); font-weight: 600;
}
.author-mark {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', monospace; font-size: 0.78rem;
  letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700;
  color: var(--text); text-decoration: none; margin-bottom: 16px; transition: color 0.2s;
}
.author-mark:hover { color: var(--accent); }
.author-mark svg { width: 15px; height: 15px; fill: currentColor; }

h1 {
  font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; line-height: 1.08;
  margin-bottom: 24px; letter-spacing: -0.025em; color: var(--text); max-width: 860px;
}
h1 span { color: var(--accent); }

.hero-lead {
  max-width: 660px; margin: 0 0 30px;
  font-size: clamp(1rem, 1.8vw, 1.18rem); color: var(--text);
  font-weight: 500; line-height: 1.62;
}
.hero-lead b { font-weight: 800; }

.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; max-width: 720px; margin: 0 0 30px; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 9px; background: var(--paper);
  border: 1px solid var(--border); border-radius: 100px; padding: 9px 16px;
  font-weight: 600; font-size: 0.9rem; color: var(--text); backdrop-filter: blur(6px);
}
.hero-tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- BUTTONS ---------- */
.btn-primary {
  background: var(--accent); color: #FAF6EB; border: none;
  padding: 14px 32px; border-radius: 100px; font-weight: 700; font-size: 1rem;
  cursor: pointer; text-decoration: none; letter-spacing: 0.02em; display: inline-block;
  box-shadow: 0 6px 24px rgba(194,78,46,0.28); transition: background .2s, box-shadow .2s, transform .2s;
}
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 10px 32px rgba(194,78,46,0.38); transform: translateY(-1px); }
.btn-secondary {
  border: 1px solid var(--border); background: var(--paper); color: var(--text);
  padding: 14px 32px; border-radius: 100px; font-weight: 600; font-size: 1rem;
  cursor: pointer; text-decoration: none; backdrop-filter: blur(6px); display: inline-block; transition: border-color .2s, color .2s;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- SECTIONS ---------- */
section { padding: 64px 0; }
section.alt { background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-label {
  font-family: 'JetBrains Mono', monospace; font-size: 0.74rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 14px;
}
h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 800; line-height: 1.16;
  letter-spacing: -0.02em; color: var(--text); margin-bottom: 18px;
}
h2 span { color: var(--accent); }
h3 { font-size: 1.2rem; font-weight: 700; color: var(--text); margin-bottom: 10px; line-height: 1.3; }
.section-lead { font-size: clamp(1rem, 1.6vw, 1.12rem); color: var(--muted); max-width: 680px; margin-bottom: 36px; line-height: 1.6; }
p { margin-bottom: 16px; }
.prose { max-width: 720px; }
.prose ul, .prose ol { margin: 0 0 18px 22px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--text); font-weight: 700; }

/* ---------- CARD GRID ---------- */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 800px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--bg2); border: 1px solid var(--border); border-radius: 14px;
  padding: 24px; box-shadow: var(--paper-shadow);
}
.card .num {
  font-family: 'JetBrains Mono', monospace; font-size: 1.1rem; font-weight: 700;
  color: var(--accent); display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px; background: var(--accent-dim); margin-bottom: 14px;
}
.card p { color: var(--muted); margin-bottom: 0; font-size: 0.96rem; }
.card .ask { margin-top: 12px; font-size: 0.9rem; color: var(--text); font-weight: 600; }

/* ---------- QUOTE / CALLOUT ---------- */
blockquote, .callout {
  margin: 22px 0; padding: 18px 22px; background: var(--paper);
  border-left: 3px solid var(--accent); border-radius: 0 12px 12px 0;
}
blockquote p { font-style: italic; color: var(--text); margin: 0; }
.callout p:last-child { margin-bottom: 0; }

/* ---------- RED FLAGS ---------- */
.flag {
  display: flex; gap: 14px; padding: 16px 18px; border-radius: 12px;
  background: var(--danger-dim); border: 1px solid rgba(178,58,46,0.18); margin-bottom: 12px;
}
.flag .mark { color: var(--danger); font-weight: 800; flex: none; font-size: 1.1rem; line-height: 1.4; }
.flag b { color: var(--danger); }
.flag p { margin: 0; color: var(--text); font-size: 0.96rem; }

/* ---------- TABLE ---------- */
table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 0.95rem;
  background: var(--bg2); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--bg3); color: var(--text); font-weight: 700; }
tr:last-child td { border-bottom: none; }
td .term { font-weight: 700; color: var(--accent); }

/* ---------- CHECKLIST ---------- */
.checklist {
  background: var(--bg2); border: 1px solid var(--border); border-radius: 14px;
  padding: 26px; box-shadow: var(--paper-shadow);
}
.checklist .row { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--border); align-items: flex-start; }
.checklist .row:last-child { border-bottom: none; }
.checklist .box {
  width: 20px; height: 20px; border: 2px solid var(--accent); border-radius: 5px;
  flex: none; margin-top: 2px;
}
.checklist .row span { font-size: 0.96rem; color: var(--text); }

/* ---------- FIGURE ---------- */
figure { margin: 26px 0; }
figure img { width: 100%; height: auto; display: block; border-radius: 14px; border: 1px solid var(--border); box-shadow: var(--paper-shadow); }
figcaption { margin-top: 10px; font-size: 0.9rem; line-height: 1.5; color: var(--muted); text-align: center; font-style: italic; }

/* ---------- YOUTUBE EMBED ---------- */
.video {
  position: relative; width: 100%; padding-top: 56.25%; border-radius: 14px;
  overflow: hidden; border: 1px solid var(--border); box-shadow: var(--paper-shadow); background: var(--bg3);
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column; gap: 10px;
  align-items: center; justify-content: center; color: var(--muted); text-align: center; padding: 20px;
}
.video-placeholder .play {
  width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: #FAF6EB;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 24px rgba(194,78,46,0.3);
}
.video-placeholder .play svg { width: 26px; height: 26px; fill: currentColor; margin-left: 3px; }

/* ---------- TELEGRAM CARD (subscribe) ---------- */
.tg-card {
  display: flex; gap: 20px; align-items: center; flex-wrap: wrap;
  background: var(--bg2); border: 1px solid var(--border); border-radius: 16px;
  padding: 28px; box-shadow: var(--paper-shadow);
}
.tg-card .tg-ic {
  width: 56px; height: 56px; border-radius: 16px; background: var(--accent); color: #FAF6EB;
  display: flex; align-items: center; justify-content: center; flex: none;
}
.tg-card .tg-ic svg { width: 30px; height: 30px; }
.tg-card .tg-body { flex: 1; min-width: 220px; }
.tg-card .tg-handle { font-family: 'JetBrains Mono', monospace; font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 6px; }
.tg-card h3 { margin-bottom: 6px; }
.tg-card p { color: var(--muted); margin: 0; font-size: 0.95rem; }

/* ---------- FLOATING TG BUTTON ---------- */
.tg-fab {
  position: fixed; right: 24px; bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 999; display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px 14px 18px; border-radius: 100px; background: var(--accent);
  color: #FAF6EB; font-weight: 700; font-size: 0.98rem; text-decoration: none;
  box-shadow: 0 6px 24px rgba(194,78,46,0.32); transition: background .2s, box-shadow .2s, transform .2s;
}
.tg-fab svg { width: 22px; height: 22px; flex-shrink: 0; }
.tg-fab:hover { background: var(--accent-hover); box-shadow: 0 10px 32px rgba(194,78,46,0.42); transform: translateY(-2px); }
@media (max-width: 600px) { .tg-fab { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom,0px)); padding: 13px; gap: 0; } .tg-fab span { display: none; } .tg-fab svg { width: 24px; height: 24px; } }

/* ---------- FOOTER ---------- */
footer { padding: 64px 0 48px; background: var(--bg2); border-top: 1px solid var(--border); }
.author-block { display: flex; gap: 28px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 32px; }
.author-photo { width: 120px; height: 120px; border-radius: 16px; object-fit: cover; border: 1px solid var(--border); flex: none; }
.author-copy { flex: 1; min-width: 260px; }
.author-copy h2 { font-size: 1.5rem; margin-bottom: 12px; }
.author-copy h2 span { color: var(--muted); font-weight: 600; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; margin: 18px 0 0; }
.footer-links a { font-weight: 700; color: var(--text); border-bottom: 1px solid rgba(194,78,46,0.35); }
.footer-links a:hover { color: var(--accent); }
.footer-note { font-size: 0.85rem; color: var(--muted); border-top: 1px solid var(--border); padding-top: 22px; line-height: 1.6; }

/* ---------- UTIL ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.divider { height: 1px; background: var(--border); border: none; margin: 8px 0; }

/* ---------- SUBSCRIBE MODULE (TG first, or email) ---------- */
.subscribe {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center;
  background: var(--bg2); border: 1px solid var(--border); border-radius: 16px;
  padding: 32px; box-shadow: var(--paper-shadow);
}
.subscribe .tg-handle { font-family: 'JetBrains Mono', monospace; font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 6px; }
.subscribe h3 { margin-bottom: 8px; }
.subscribe p { color: var(--muted); font-size: 0.95rem; margin-bottom: 14px; }
.sub-col { min-width: 0; }
.sub-or { display: flex; align-items: center; justify-content: center; }
.sub-or span {
  font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--muted); border: 1px solid var(--border);
  border-radius: 100px; padding: 6px 14px; background: var(--bg);
}
.email-form { display: flex; gap: 10px; flex-wrap: wrap; }
.email-form input {
  flex: 1; min-width: 180px; padding: 13px 18px; border: 1px solid var(--border);
  border-radius: 100px; background: var(--bg); color: var(--text); font: inherit; font-size: 0.95rem;
}
.email-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
.email-form button { white-space: nowrap; }
.form-msg { margin: 14px 0 0; font-size: 0.92rem; font-weight: 600; }
.form-msg.ok { color: var(--sage); }
.form-msg.err { color: var(--danger); }
@media (max-width: 760px) {
  .subscribe { grid-template-columns: 1fr; gap: 18px; }
  .sub-or span { display: inline-block; }
}

/* ---------- FIRM RECOMMENDATION CTA BAND (every page) ---------- */
.cta-band { background: var(--accent); padding: 58px 0; }
.cta-band .section-label { color: rgba(250,246,235,0.85); }
.cta-band h2 { color: #FAF6EB; max-width: 720px; }
.cta-band h2 span { color: #FAF6EB; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.cta-band p { color: rgba(250,246,235,0.92); max-width: 640px; font-size: 1.06rem; margin-bottom: 26px; }
.btn-light {
  display: inline-flex; align-items: center; gap: 10px; background: #FAF6EB; color: var(--accent);
  padding: 15px 32px; border-radius: 100px; font-weight: 700; font-size: 1rem; text-decoration: none;
  box-shadow: 0 6px 24px rgba(46,43,37,0.20); transition: transform .2s, box-shadow .2s;
}
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(46,43,37,0.28); }
.btn-light svg { width: 20px; height: 20px; }
