/* PrintBIM website. Plain CSS, no build step. */
:root {
  --bg: #f6f7f8;
  --surface: #ffffff;
  --surface-2: #eef1f3;
  --ink: #16202a;
  --ink-2: #3c4a57;
  --muted: #66727e;
  --line: #dfe4e8;
  --accent: #0a7e78;
  --accent-ink: #ffffff;
  --accent-soft: #e2f2f0;
  --accent-strong: #07615c;
  --good: #1f8a4c;
  --shadow: 0 1px 2px rgba(16, 24, 32, .06), 0 8px 24px rgba(16, 24, 32, .06);
  --radius: 14px;
  --max: 1160px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1418; --surface: #161c22; --surface-2: #1c242b; --ink: #e9eef1; --ink-2: #c3ccd3;
    --muted: #93a0ab; --line: #27313a; --accent: #2bb3a8; --accent-ink: #06201e; --accent-soft: #14302e;
    --accent-strong: #5fd0c6; --good: #4cc47f; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1418; --surface: #161c22; --surface-2: #1c242b; --ink: #e9eef1; --ink-2: #c3ccd3;
  --muted: #93a0ab; --line: #27313a; --accent: #2bb3a8; --accent-ink: #06201e; --accent-soft: #14302e;
  --accent-strong: #5fd0c6; --good: #4cc47f; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.25);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--font); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 750; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 720; }
h3 { font-size: 1.1rem; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: .8em; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 750; font-size: 1.15rem; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand svg { width: 30px; height: 30px; }
.brand b { color: var(--accent); font-weight: 750; }
.nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--ink-2); font-weight: 520; font-size: .95rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); text-decoration: none; }
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: var(--accent-ink); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 10px; width: 42px; height: 38px; cursor: pointer; }
@media (max-width: 820px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; align-items: stretch; gap: 0; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 20px 16px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin-top: 12px; text-align: center; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 11px; font-weight: 620; font-size: .98rem; border: 1px solid transparent; cursor: pointer; transition: transform .08s ease, background .15s ease, border-color .15s ease; }
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-strong); color: var(--accent-ink); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-small { padding: 8px 14px; font-size: .9rem; border-radius: 9px; }
.btn-block { width: 100%; }

/* Hero */
.hero { padding: 72px 0 40px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1.2fr; gap: 32px; align-items: center; }
.hero p.lead { font-size: 1.2rem; color: var(--ink-2); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 18px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .9rem; color: var(--muted); }
.hero-meta span::before { content: "✓"; color: var(--accent); font-weight: 700; margin-right: 6px; }
.hero-art { position: relative; }
.hero-art img { width: 100%; filter: drop-shadow(0 30px 40px rgba(16,24,32,.12)); }
.hero-badge { position: absolute; left: 4%; bottom: 8%; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 12px; padding: 10px 14px; font-size: .88rem; }
.hero-badge strong { display: flex; align-items: center; gap: 8px; }
.hero-badge strong::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--good); }
@media (max-width: 900px) {
  .hero { padding-top: 44px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art img { width: 100%; margin: 0; }
  .hero-badge { position: static; display: inline-block; margin-top: 8px; }
}

/* Sections */
section { padding: 72px 0; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--ink-2); font-size: 1.08rem; }
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Proof strip */
.proof { padding: 28px 0; }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.proof-item { padding: 6px 0; }
.proof-item .num { font-size: 1.6rem; font-weight: 750; letter-spacing: -0.02em; }
.proof-item .label { color: var(--muted); font-size: .9rem; }
@media (max-width: 820px) { .proof-grid { grid-template-columns: repeat(2, 1fr); } }

/* Problem / solution */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.panel h3 { display: flex; align-items: center; gap: 10px; }
.panel ul { list-style: none; padding: 0; margin: 0; }
.panel li { padding: 10px 0; border-top: 1px solid var(--line); color: var(--ink-2); }
.panel li:first-child { border-top: 0; }
.panel li b { color: var(--ink); }
.tag { font-size: .75rem; font-weight: 700; padding: 3px 9px; border-radius: 99px; letter-spacing: .02em; }
.tag-bad { background: #fde8e6; color: #a8322a; }
.tag-good { background: var(--accent-soft); color: var(--accent-strong); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tag-bad { background: #3a1d1b; color: #f2a39c; } }
:root[data-theme="dark"] .tag-bad { background: #3a1d1b; color: #f2a39c; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: relative; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: .9rem; margin-bottom: 14px; }
.step p { color: var(--ink-2); margin: 0; font-size: .95rem; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.feature .icon { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-strong); display: grid; place-items: center; margin-bottom: 14px; }
.feature .icon svg { width: 22px; height: 22px; }
.feature p { color: var(--ink-2); margin: 0; font-size: .95rem; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* Showcase */
.showcase { display: grid; grid-template-columns: 1.15fr 1fr; gap: 36px; align-items: center; }
.showcase img { border-radius: var(--radius); }
.checklist { list-style: none; padding: 0; margin: 0 0 1.4em; }
.checklist li { padding: 7px 0 7px 30px; position: relative; color: var(--ink-2); }
.checklist li::before { content: ""; position: absolute; left: 0; top: 11px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%230a7e78' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
@media (max-width: 900px) { .showcase { grid-template-columns: 1fr; } }

/* Audience */
.audience { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.audience .panel p { color: var(--ink-2); margin: 0; }
@media (max-width: 820px) { .audience { grid-template-columns: 1fr; } }

/* Pricing */
.billing-toggle { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 4px; margin-bottom: 28px; }
.billing-toggle button { border: 0; background: none; color: var(--ink-2); font: inherit; font-weight: 600; padding: 8px 16px; border-radius: 9px; cursor: pointer; }
.billing-toggle button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--accent); box-shadow: var(--shadow); position: relative; }
.plan.featured .ribbon { position: absolute; top: -12px; left: 24px; background: var(--accent); color: var(--accent-ink); font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; }
.plan .price { font-size: 2.4rem; font-weight: 760; letter-spacing: -0.03em; margin: 6px 0 0; }
.plan .price small { font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan .price-note { color: var(--muted); font-size: .9rem; min-height: 1.6em; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 22px; flex: 1; }
.plan li { padding: 6px 0 6px 26px; position: relative; color: var(--ink-2); font-size: .95rem; }
.plan li::before { content: "✓"; position: absolute; left: 2px; color: var(--accent); font-weight: 700; }
.plans-extra { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 16px; }
.plans-extra .panel { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.plans-extra .panel p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.checkout-note { margin-top: 18px; font-size: .9rem; color: var(--muted); text-align: center; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } .plans-extra { grid-template-columns: 1fr; } .plans-extra .panel { flex-direction: column; align-items: flex-start; } }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 620; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-2); margin: 0 0 16px; }

/* CTA band */
.cta-band { text-align: center; }
.cta-band .panel { padding: 48px 24px; background: linear-gradient(135deg, var(--accent-soft), var(--surface)); }
.cta-band .hero-cta { justify-content: center; margin-bottom: 0; }

/* Docs and legal pages */
.page-head { padding: 56px 0 8px; }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose p, .prose li { color: var(--ink-2); }
.prose li { margin-bottom: .4em; }
.prose code { background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: .9em; }
.docs-grid { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: start; }
.docs-nav { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 2px; font-size: .95rem; }
.docs-nav a { color: var(--ink-2); padding: 6px 10px; border-radius: 8px; }
.docs-nav a:hover { background: var(--surface-2); text-decoration: none; }
@media (max-width: 820px) { .docs-grid { grid-template-columns: 1fr; } .docs-nav { position: static; flex-direction: row; flex-wrap: wrap; } }
.req { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.req .panel ul { margin: 0; }
@media (max-width: 820px) { .req { grid-template-columns: 1fr; } }
.callout { border-left: 4px solid var(--accent); background: var(--accent-soft); border-radius: 0 12px 12px 0; padding: 14px 18px; color: var(--ink); margin: 1.2em 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 32px; margin-top: 40px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 24px; }
.footer-grid h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 10px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin: 6px 0; }
.footer-grid a { color: var(--ink-2); }
.legal-line { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* Account pages */
.narrow { max-width: 560px; }
.form { display: flex; flex-direction: column; gap: 6px; }
.form label { font-weight: 600; font-size: .92rem; margin-top: 8px; }
.form input { font: inherit; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); }
.form input:focus-visible { outline: 3px solid var(--accent); outline-offset: 0; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.link-button { background: none; border: 0; color: var(--accent); font: inherit; cursor: pointer; padding: 6px 4px; margin-left: auto; }
.link-button:hover { text-decoration: underline; }
.form-message { margin: 12px 0 0; padding: 10px 14px; border-radius: 10px; font-size: .95rem; }
.form-message.good { background: var(--accent-soft); color: var(--accent-strong); }
.form-message.bad { background: #fde8e6; color: #a8322a; }
.small { font-size: .88rem; }
.narrow .panel { margin-bottom: 16px; }
.account-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.account-row h3, .account-plan h3 { margin: 2px 0 0; word-break: break-all; }
.account-plan { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 14px; }
.machine-list { list-style: none; padding: 0; margin: 12px 0 0; }
.machine-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
