/* Marketing site (landing + /guides/) styles. Shared by index.html and the pages
   emitted by scripts/build-guides.js. The app UI uses styles.css, not this file. */

/* Brand tokens — mirror of styles.css :root; keep in sync. */
:root {
  --bg: #0f0f11; --surface: #17171a; --surface2: #1e1e22; --border: #2e2e36; --border2: #3a3a44;
  --accent: #e8c547; --text: #f0ede8; --text2: #9e9b96; --text3: #5e5c58;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'DM Sans', system-ui, sans-serif; background: var(--bg); color: var(--text); line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* Header / nav (shared) */
.site-header { padding: 20px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo svg { width: 34px; height: 34px; flex-shrink: 0; }
.logo span { font-family: 'Instrument Serif', serif; font-size: 1.5rem; color: var(--accent); }
.site-nav { display: flex; align-items: center; gap: 20px; }
.site-nav a:not(.btn) { color: var(--text2); text-decoration: none; font-weight: 500; }
.site-nav a:not(.btn):hover { color: var(--accent); }

.btn { display: inline-block; background: var(--accent); color: var(--bg); font-weight: 600; text-decoration: none; padding: 11px 20px; border-radius: 8px; }
.btn:hover { background: #f0d369; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--surface2); }

/* Landing */
.hero { padding: 72px 0 56px; text-align: center; }
.hero h1 { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.05; letter-spacing: -0.01em; }
.hero p { color: var(--text2); font-size: clamp(1.05rem, 2.5vw, 1.3rem); max-width: 640px; margin: 22px auto 32px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.section { padding: 40px 0; }
.section h2 { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 2rem; text-align: center; margin-bottom: 8px; }
.section .lede { color: var(--text2); text-align: center; max-width: 560px; margin: 0 auto 36px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 22px; display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 14px; row-gap: 8px; }
.card h3 { font-size: 1.05rem; margin: 0; }
.card p { color: var(--text2); font-size: 0.95rem; grid-column: 1 / -1; }
.card-ico { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; padding: 10px; background: var(--surface2); border: 1px solid var(--border2); border-radius: 10px; color: var(--accent); }
.card-ico svg { width: 100%; height: 100%; display: block; fill: currentColor; }
.strip { display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--text2); font-size: 1.05rem; padding: 8px 0 4px; }
.strip b { color: var(--text); font-weight: 600; }
.cta-band { text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 48px 24px; margin: 24px 0; }
.cta-band h2 { margin-bottom: 20px; }
.band-phone { margin-top: 18px; color: var(--text2); font-size: 0.95rem; }

/* Hero product screenshot + phone CTA */
.hero-shot { display: block; width: 980px; max-width: 100%; height: auto; margin: 48px auto 0; border-radius: 12px; border: 1px solid var(--border); box-shadow: 0 12px 44px rgba(0, 0, 0, 0.5); }
.hero-phone { margin-top: 18px; color: var(--text2); font-size: 0.95rem; }
.hero-phone a, .band-phone a, .site-footer a[href^="tel:"] { color: var(--accent); text-decoration: none; font-weight: 600; }
.hero-phone a:hover, .band-phone a:hover { text-decoration: underline; }

/* Testimonials */
.testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.quote { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 24px; margin: 0; }
.quote p { color: var(--text); font-size: 1.02rem; line-height: 1.6; margin: 0 0 14px; }
.quote cite { color: var(--accent); font-style: normal; font-weight: 600; font-size: 0.9rem; }

/* FAQ accordion (native <details>, no JS) */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 10px; padding: 0 18px; }
.faq summary { cursor: pointer; padding: 16px 28px 16px 0; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 14px; color: var(--accent); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { color: var(--text2); margin: 0 0 16px; line-height: 1.6; }
.faq details a { color: var(--accent); }

/* Guides index */
.breadcrumb { color: var(--text3); font-size: 0.85rem; padding: 10px 0 0; }
.breadcrumb a { color: var(--text2); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { margin: 0 6px; color: var(--text3); }
.guides-hero { padding: 36px 0 18px; text-align: center; }
.guides-hero h1 { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: clamp(2.2rem, 5vw, 3.2rem); }
.guides-hero p { color: var(--text2); max-width: 600px; margin: 14px auto 0; }
.guides-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; padding: 16px 0 48px; }
.guide-card { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 22px; text-decoration: none; color: var(--text); transition: border-color 0.15s; }
.guide-card:hover { border-color: var(--accent); }
.guide-card h2 { font-size: 1.15rem; margin-bottom: 6px; }
.guide-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.guide-card-head h2 { margin: 0; }
.guide-ico { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex-shrink: 0; padding: 9px; background: var(--surface2); border: 1px solid var(--border2); border-radius: 10px; color: var(--accent); }
.guide-ico svg { width: 100%; height: 100%; display: block; fill: currentColor; }
.guide-card p { color: var(--text2); font-size: 0.95rem; margin-bottom: 10px; }
.guide-meta { color: var(--text3); font-size: 0.8rem; font-family: 'DM Mono', monospace; }

/* Article */
.article { max-width: 720px; margin: 0 auto; padding: 16px 0 48px; }
.article h1 { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; margin-bottom: 8px; }
.article-meta { color: var(--text3); font-size: 0.9rem; margin-bottom: 28px; }
.article-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--border); }
.back-link { color: var(--text2); text-decoration: none; }
.back-link:hover { color: var(--accent); }

/* Article prose (rendered Markdown) */
.prose { font-size: 1.05rem; line-height: 1.7; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 1.7rem; margin: 34px 0 10px; }
.prose h3 { font-size: 1.2rem; font-weight: 600; margin: 26px 0 8px; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 16px 1.4em; }
.prose li { margin-bottom: 6px; }
.prose li > ul, .prose li > ol { margin-top: 6px; margin-bottom: 0; }
.prose a { color: var(--accent); text-decoration: underline; }
.prose strong { color: var(--text); font-weight: 600; }
.prose code { font-family: 'DM Mono', monospace; background: var(--surface2); padding: 1px 5px; border-radius: 4px; font-size: 0.9em; }
.prose pre { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 14px; overflow: auto; margin: 0 0 16px; }
.prose pre code { background: none; padding: 0; }
.prose blockquote { border-left: 3px solid var(--accent); padding-left: 14px; color: var(--text2); margin: 0 0 16px; }
.prose img { display: block; max-width: 100%; margin: 10px auto 22px; border-radius: 10px; border: 1px solid var(--border); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35); }
.prose hr { border: none; border-top: 1px solid var(--border); margin: 28px 0; }

/* Inline button-icon chips (authored as [[set-scale]] etc.) — a mini toolbar button. */
.ico { display: inline-flex; align-items: center; justify-content: center; width: 1.55em; height: 1.55em; padding: 0.18em; margin: 0 0.12em; vertical-align: -0.42em; background: var(--surface2); border: 1px solid var(--border2); border-radius: 5px; color: var(--accent); }
.ico svg { width: 100%; height: 100%; display: block; fill: currentColor; }

/* Footer (shared) */
.site-footer { border-top: 1px solid var(--border); margin-top: 40px; padding: 32px 0; color: var(--text3); font-size: 0.9rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.site-footer a { color: var(--text2); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.fam { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

@media (max-width: 480px) {
  .logo svg { width: 28px; height: 28px; }
  .logo span { font-size: 1.25rem; }
  .site-nav { gap: 12px; }
  .site-header .btn { padding: 9px 14px; }
}
