/* Ironimo — shared stylesheet
   Replaces the per-page inline <style> blocks. Brand tokens are unchanged:
   dark slate ground, copper accent, Public Sans. */

:root {
    --bg: #0F172A;
    --bg-secondary: #1E293B;
    --bg-raised: #243449;
    --text: #E5E7EB;
    --text-muted: #9ca3af;
    --accent: #C08457;
    --accent-hover: #A8703D;
    --accent-glow: rgba(192, 132, 87, 0.15);
    --border: #334155;
    --critical: #ef4444;
    --high: #f97316;
    --medium: #eab308;
    --low: #22c55e;
    --max-width: 1100px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Nav ---------- */

nav {
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(8px);
    z-index: 100;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 28px;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.logo span { color: var(--accent); }

.logo .logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--accent);
    color: var(--bg);
    border-radius: 6px;
    font-size: 18px;
    margin-right: 8px;
    vertical-align: middle;
}

.nav-links {
    display: flex;
    gap: 22px;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.15s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--text); }

nav a.cta-link {
    color: var(--bg);
    background: var(--accent);
    padding: 9px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: background 0.15s;
}

nav a.cta-link:hover { background: var(--accent-hover); }

/* ---------- Typography ---------- */

h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.12;
    margin-bottom: 20px;
    letter-spacing: -1.5px;
    color: #fff;
}

h1 em {
    font-style: normal;
    color: var(--accent);
}

h2 {
    font-size: clamp(1.6rem, 3.2vw, 2.1rem);
    font-weight: 700;
    margin-bottom: 16px;
    color: #fff;
    letter-spacing: -0.6px;
    line-height: 1.25;
}

h3 {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 8px;
}

.section-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 12px;
    font-weight: 600;
}

.lead {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 680px;
}

.section {
    padding: 80px 0;
    border-top: 1px solid var(--border);
}

.section-tight { padding: 56px 0; }

/* ---------- Buttons ---------- */

.btn-primary {
    display: inline-block;
    padding: 15px 32px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, transform 0.15s;
    white-space: nowrap;
    font-family: inherit;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.btn-outline {
    display: inline-block;
    padding: 14px 28px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 0.98rem;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: border-color 0.15s, color 0.15s;
    font-family: inherit;
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-full {
    display: block;
    width: 100%;
    padding: 13px;
    background: var(--accent);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 0.98rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background 0.15s;
    font-family: inherit;
}

.btn-full:hover { background: var(--accent-hover); }

.btn-outline.btn-block {
    display: block;
    width: 100%;
    padding: 13px;
}

.cta-cluster {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
}

.cta-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 14px;
}

/* ---------- Hero ---------- */

.hero {
    padding: 96px 0 72px;
    text-align: center;
}

.hero .lead { margin: 0 auto 36px; }

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--accent-glow);
    border: 1px solid rgba(192, 132, 87, 0.3);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 24px;
}

.page-header {
    padding: 72px 0 8px;
}

.page-header h1 {
    font-size: clamp(2rem, 4.2vw, 2.9rem);
}

/* ---------- Terminal proof block ---------- */

.terminal {
    background: #0B1220;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    text-align: left;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.86rem;
    line-height: 1.75;
    max-width: 760px;
    margin: 0 auto;
}

.terminal-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}

.terminal-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--border);
}

.terminal-title {
    margin-left: 8px;
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 0.4px;
}

.terminal-body {
    padding: 18px 20px;
    overflow-x: auto;
    white-space: pre;
    color: var(--text-muted);
}

.terminal-body .t-cmd { color: var(--accent); }
.terminal-body .t-ok { color: var(--low); }
.terminal-body .t-crit { color: var(--critical); }
.terminal-body .t-high { color: var(--high); }
.terminal-body .t-med { color: var(--medium); }
.terminal-body .t-dim { color: #64748b; }

/* ---------- Stat row ---------- */

.stat-row {
    display: flex;
    justify-content: space-around;
    text-align: center;
    flex-wrap: wrap;
    gap: 32px;
}

.stat-value {
    font-size: 2.4rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
}

.stat-value .unit {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-muted);
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 6px;
}

/* ---------- Cards ---------- */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.card {
    padding: 26px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.65;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--accent-glow);
    border: 1px solid rgba(192, 132, 87, 0.3);
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 16px;
}

/* ---------- Tool grid ---------- */

.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
}

.tool-card {
    padding: 18px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    text-align: center;
}

.tool-card code {
    display: block;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 6px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.tool-card span {
    font-size: 0.84rem;
    color: var(--text-muted);
}

/* ---------- Comparison table ---------- */

.table-scroll { overflow-x: auto; }

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.94rem;
    min-width: 720px;
}

.comparison-table th,
.comparison-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.comparison-table th {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.comparison-table td:first-child { color: var(--text-muted); }

.comparison-table .highlight {
    color: var(--accent);
    font-weight: 600;
}

.comparison-table .ironimo-col { background: rgba(192, 132, 87, 0.05); }

/* ---------- Pricing ---------- */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    align-items: start;
}

.price-card {
    padding: 30px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.price-card.featured {
    border-color: var(--accent);
    position: relative;
}

.price-card.featured::before {
    content: 'Most popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 16px;
    background: var(--accent);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.price-card h3 {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.price-card .plan-for {
    color: var(--text-muted);
    font-size: 0.9rem;
    min-height: 42px;
}

.price-card .price {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    margin: 16px 0 4px;
}

.price-card .price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
}

.price-card .price-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 22px;
}

.price-card ul {
    list-style: none;
    margin-bottom: 26px;
}

.price-card ul li {
    padding: 6px 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.price-card ul li::before {
    content: '\2713';
    color: var(--accent);
    margin-right: 8px;
    font-weight: 700;
}

/* ---------- FAQ ---------- */

.faq-list { max-width: 800px; }

.faq-list details {
    border-bottom: 1px solid var(--border);
    padding: 18px 0;
}

.faq-list summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 1.03rem;
    color: #fff;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
    content: '+';
    color: var(--accent);
    font-size: 1.3rem;
    line-height: 1;
    flex-shrink: 0;
}

.faq-list details[open] summary::after { content: '\2212'; }

.faq-list details p {
    margin-top: 12px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ---------- Prose (legal / long-form pages) ---------- */

.prose {
    color: var(--text-muted);
    line-height: 1.75;
}

.prose h2 {
    font-size: 1.35rem;
    margin: 40px 0 12px;
    letter-spacing: -0.3px;
}

.prose h3 {
    font-size: 1.05rem;
    margin: 26px 0 8px;
}

.prose p { margin-bottom: 14px; }

.prose ul, .prose ol {
    margin: 0 0 16px 22px;
}

.prose li { margin-bottom: 7px; }

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

.prose a:hover { text-decoration: underline; }

.prose code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.9em;
    background: var(--bg-secondary);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--accent);
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
    margin-bottom: 20px;
}

.prose th, .prose td {
    padding: 11px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.prose th {
    color: var(--text);
    font-weight: 600;
}

.updated-stamp {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 8px;
}

/* ---------- Callout ---------- */

.callout {
    padding: 20px 24px;
    background: var(--accent-glow);
    border: 1px solid rgba(192, 132, 87, 0.3);
    border-left-width: 3px;
    border-radius: 8px;
    margin: 24px 0;
}

.callout p { margin-bottom: 0; color: var(--text); }

/* ---------- CTA band ---------- */

.cta-bottom {
    padding: 80px 0;
    border-top: 1px solid var(--border);
    text-align: center;
}

.cta-bottom .lead { margin: 0 auto 28px; }

/* ---------- Footer ---------- */

footer {
    padding: 48px 0 40px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.88rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 36px;
}

.footer-col h4 {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text);
    margin-bottom: 14px;
    font-weight: 600;
}

.footer-col a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    padding: 4px 0;
    transition: color 0.15s;
}

.footer-col a:hover { color: var(--accent); }

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

/* ---------- Cookie consent ---------- */

#cookieConsent {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 16px 24px;
    z-index: 9999;
    text-align: center;
}

#cookieConsent p {
    margin: 0 0 12px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

#cookieConsent button {
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-family: inherit;
}

#cookieConsent .cc-accept {
    background: var(--accent);
    color: #fff;
    border: none;
    margin-right: 8px;
}

#cookieConsent .cc-decline {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
}

/* ---------- Responsive ---------- */

@media (max-width: 880px) {
    .pricing-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
    nav .container { flex-wrap: wrap; row-gap: 12px; }
    .nav-left { gap: 18px; }
    .nav-links { gap: 16px; }
    .nav-links a { font-size: 0.9rem; }
    .hero { padding: 64px 0 56px; }
    .section { padding: 60px 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .cta-cluster { flex-direction: column; align-items: stretch; }
    .cta-cluster .btn-primary,
    .cta-cluster .btn-outline { text-align: center; }
    .terminal-body { font-size: 0.78rem; }
}
