/* CalcIQ Embed Pages — Shared Dark Theme
   Used by: /embed, /embed/wordpress, /embed/webflow, /embed/squarespace, /embed/wix */

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #0f172a; color: #e2e8f0; line-height: 1.6; }
a { color: #93c5fd; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.header { background: #2563eb; color: white; padding: 0.75rem 0; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); }
.hdr-container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.header-content { display: flex; justify-content: space-between; align-items: center; }
.brand { cursor: pointer; }
.brand:hover { opacity: 0.8; }
.logo { font-size: 1.8rem; font-weight: 700; margin: 0; color: white; }
.tagline { font-size: 0.8rem; opacity: 0.9; margin: 0.25rem 0 0 0; color: white; }
.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.header-actions a { color: #fff; text-decoration: none; font-weight: 600; margin-right: 16px; opacity: 0.9; display: flex; align-items: center; gap: 4px; font-size: 0.9rem; }
.header-actions a:hover { opacity: 1; text-decoration: none; }

/* Breadcrumb */
.crumb { max-width: 1100px; margin: 0 auto; padding: 16px 20px 0; font-size: 0.85rem; color: #64748b; }
.crumb a { color: #93c5fd; }
.crumb span { margin: 0 8px; }

/* Hero */
.hero { text-align: center; padding: 48px 20px 40px; }
.hero h1 { font-size: 2.4rem; font-weight: 800; margin-bottom: 16px; background: linear-gradient(135deg, #38bdf8, #818cf8); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: 1.15rem; color: #94a3b8; max-width: 650px; margin: 0 auto 24px; }
.hero-steps { display: flex; gap: 32px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.hero-step { text-align: center; }
.hero-step .step-num { display: inline-block; width: 32px; height: 32px; line-height: 32px; border-radius: 50%; background: #38bdf8; color: #0f172a; font-weight: 700; font-size: 0.9rem; margin-bottom: 8px; }
.hero-step .step-text { font-size: 0.9rem; color: #cbd5e1; }

/* Layout */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px 60px; }
.narrow { max-width: 800px; }

/* Section titles */
.category-title { font-size: 1.3rem; font-weight: 700; color: #f1f5f9; margin: 40px 0 20px; padding-bottom: 8px; border-bottom: 2px solid #334155; }
.category-title span { color: #94a3b8; font-weight: 400; font-size: 0.9rem; margin-left: 8px; }

/* Cards / grid */
.embed-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.embed-card { background: #1e293b; border: 1px solid #334155; border-radius: 12px; padding: 24px; transition: border-color 0.2s; }
.embed-card:hover { border-color: #475569; }
.embed-card h3 { font-size: 1.1rem; margin-bottom: 8px; color: #f1f5f9; }
.embed-card .desc { font-size: 0.85rem; color: #94a3b8; margin-bottom: 16px; }

/* Code blocks */
.code-block { background: #0f172a; border: 1px solid #334155; border-radius: 8px; padding: 12px; font-family: 'SF Mono', 'Fira Code', monospace; font-size: 0.75rem; color: #7dd3fc; word-break: break-all; line-height: 1.5; position: relative; margin-bottom: 12px; }
.copy-btn { position: absolute; top: 8px; right: 8px; background: #334155; color: #cbd5e1; border: none; padding: 4px 10px; border-radius: 6px; font-size: 0.75rem; cursor: pointer; }
.copy-btn:hover { background: #475569; }
code { color: #7dd3fc; font-family: 'SF Mono', 'Fira Code', monospace; font-size: 0.9em; }

.preview-link { font-size: 0.8rem; color: #64748b; }
.preview-link:hover { color: #93c5fd; }

/* Note / content boxes */
.note { background: #1e293b; border: 1px solid #334155; border-radius: 12px; padding: 24px; margin: 40px 0; }
.note h2, .note h3 { color: #f1f5f9; margin-bottom: 8px; }
.note h2 { font-size: 1.35rem; }
.note p, .note li { font-size: 0.9rem; color: #94a3b8; }
.note ul, .note ol { padding-left: 20px; margin-top: 8px; }
.note li { margin-bottom: 6px; }
.note p + p { margin-top: 12px; }

/* Numbered steps */
.step { background: #1e293b; border: 1px solid #334155; border-left: 3px solid #38bdf8; border-radius: 0 12px 12px 0; padding: 20px 24px; margin: 20px 0; }
.step h3 { color: #f1f5f9; font-size: 1.05rem; margin-bottom: 8px; }
.step h3 .n { display: inline-block; width: 26px; height: 26px; line-height: 26px; text-align: center; border-radius: 50%; background: #38bdf8; color: #0f172a; font-size: 0.8rem; font-weight: 700; margin-right: 10px; }
.step p, .step li { font-size: 0.9rem; color: #94a3b8; }
.step ul, .step ol { padding-left: 20px; margin-top: 8px; }

/* Platform cards */
.plat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-top: 20px; }
.plat-card { background: #1e293b; border: 1px solid #334155; border-radius: 10px; padding: 18px; text-align: center; transition: border-color 0.2s; }
.plat-card:hover { border-color: #38bdf8; }
.plat-card a { font-weight: 600; font-size: 0.95rem; }
.plat-card p { font-size: 0.8rem; color: #64748b; margin-top: 4px; }

/* Tables */
.tbl { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 0.88rem; }
.tbl th { background: #0f172a; color: #f1f5f9; padding: 10px 12px; text-align: left; border-bottom: 2px solid #334155; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid #334155; color: #94a3b8; }

/* CTA */
.cta { background: linear-gradient(135deg, #1e3a8a, #1e293b); border: 1px solid #38bdf8; border-radius: 12px; padding: 32px 24px; text-align: center; margin: 40px 0; }
.cta h2 { color: #f1f5f9; font-size: 1.4rem; margin-bottom: 10px; }
.cta p { color: #94a3b8; margin-bottom: 20px; font-size: 0.95rem; }
.btn { display: inline-block; background: #38bdf8; color: #0f172a; padding: 12px 26px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.btn:hover { background: #0ea5e9; text-decoration: none; }

/* Footer */
.footer { background: #1e293b; border-top: 1px solid #334155; padding: 32px 20px; text-align: center; margin-top: 40px; }
.footer p { color: #64748b; font-size: 0.85rem; }
.footer a { color: #94a3b8; }

@media (max-width: 600px) {
    .hero h1 { font-size: 1.7rem; }
    .hero { padding: 32px 16px 24px; }
    .embed-grid, .plat-grid { grid-template-columns: 1fr; }
    .logo { font-size: 1.4rem; }
    .tagline { display: none; }
    .link-text { display: none; }
    .link-emoji { font-size: 1.3rem; }
    .header-actions a { margin-right: 8px !important; }
    .note, .step { padding: 16px; }
    .tbl { font-size: 0.8rem; }
    .tbl th, .tbl td { padding: 8px; }
}
