/* The obs-app's public pages. Plain CSS, no framework - the pages carry no JavaScript, except the homepage's optional pricing calculator. */
:root {
    --bg: #0b1020; --bg-alt: #0f1630; --card: #131b36; --border: #222c52;
    --text: #e8ecf8; --muted: #a3afd0; --accent: #4cc9a7; --accent-ink: #06261e; --link: #7cc4ff;
    --radius: 12px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--link); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 650; }
p { margin: 0 0 1em; color: var(--muted); }
.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.container-narrow { max-width: 780px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; z-index: 10; }
.skip-link:focus { left: 8px; top: 8px; }

.site-header { position: sticky; top: 0; z-index: 5; background: rgba(11, 16, 32, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.nav { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 750; text-decoration: none; color: var(--accent); }
.brand span { color: var(--text); }
.brand-mark { width: 30px; height: 30px; color: var(--accent); }
.nav-links { display: none; gap: 22px; margin-left: 12px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.nav-links a:hover { color: var(--text); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.nav-signin { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
@media (min-width: 820px) { .nav-links { display: flex; } }

.btn { display: inline-block; border-radius: 9px; padding: 9px 16px; font-weight: 650; font-size: 0.95rem; text-decoration: none; border: 1px solid transparent; }
.btn-lg { padding: 13px 22px; font-size: 1.02rem; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--card); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 14px; }
.cta-row-center { justify-content: center; }
.fineprint { font-size: 0.88rem; margin-top: 10px; }

.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.hero { padding: 64px 0 72px; }
.hero-simple { padding: 64px 0 48px; }
.hero-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 56px; } }
.kicker { color: var(--accent); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }

.cards { display: grid; gap: 18px; margin-top: 24px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.card p { margin: 0; font-size: 0.97rem; }
.card h3 a { color: var(--text); }
.step { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 800; margin-bottom: 12px; }

.code { background: #080c1a; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; overflow-x: auto; font: 0.86rem/1.6 ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: #cfe3ff; margin: 18px 0; }
.code code { white-space: pre; }

.table-wrap { overflow-x: auto; margin: 18px 0; border: 1px solid var(--border); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
th, td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; background: var(--card); }
tr:last-child td { border-bottom: 0; }
td:nth-child(2) { white-space: nowrap; font-weight: 650; }

.checks { list-style: none; padding: 0; margin: 18px 0 0; }
.checks li { position: relative; padding: 6px 0 6px 30px; color: var(--muted); }
.checks li::before { content: ""; position: absolute; left: 4px; top: 13px; width: 11px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

.faq details { border-bottom: 1px solid var(--border); padding: 4px 0; }
.faq summary { cursor: pointer; font-weight: 650; padding: 14px 0; list-style: none; color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--accent); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq p { margin: 0 0 16px; }

.final-cta { padding: 72px 0; text-align: center; background: linear-gradient(180deg, var(--bg-alt), var(--bg)); border-top: 1px solid var(--border); }
.site-footer { border-top: 1px solid var(--border); padding: 32px 0 44px; }
.footer-inner { display: grid; gap: 16px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 0.92rem; }
.footer-links a:hover { color: var(--text); }
.footer-credit { font-size: 0.85rem; margin: 0; }

/* the pricing calculator on the homepage - the one bit of JavaScript on the public pages (calculator.js); hidden until it loads */
.calc[hidden] { display: none; }
.calc-presets { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 18px 0; }
.calc-presets span { color: var(--muted); font-size: 0.95rem; }
.calc-presets .btn { background: transparent; cursor: pointer; font-family: inherit; padding: 7px 14px; font-size: 0.9rem; }
.calc-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .calc-grid { grid-template-columns: 1fr 1fr; } }
.calc-group { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px 6px; margin: 0; min-width: 0; }
.calc-group legend { padding: 0 6px; font-weight: 650; color: var(--text); }
.calc-group label { display: block; color: var(--muted); font-size: 0.92rem; margin-bottom: 12px; }
.calc-group input, .calc-group select { display: block; width: 100%; margin-top: 4px; padding: 8px 10px; background: #080c1a; color: var(--text); border: 1px solid var(--border); border-radius: 8px; font: inherit; }
.calc-group input:focus, .calc-group select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.calc-hint { font-size: 0.82rem; margin: 0 0 12px; }
.calc-result { margin-top: 22px; }
.calc-total { font-size: 1rem; margin: 0; color: var(--muted); }
.calc-total strong { font-size: clamp(2rem, 6vw, 2.8rem); color: var(--accent); line-height: 1.1; }
.calc-credits { font-size: 0.92rem; margin: 2px 0 6px; }
.calc-free { color: var(--text); }
.calc-error { color: #ff9b9b; }

/* the comparison with other services, under the calculator's own result */
.calc-assumptions { margin: 0 0 12px; color: var(--muted); font-size: 0.9rem; }
.calc-assumptions summary { cursor: pointer; margin-bottom: 8px; }
.calc-compare { margin-top: 26px; }
.calc-compare h3 { margin-bottom: 0.3em; }
.calc-plan { color: var(--muted); font-size: 0.85rem; font-weight: 400; }
.calc-breakdown { color: var(--muted); font-size: 0.8rem; font-weight: 400; }
.calc-compare td:nth-child(2), .calc-compare td:nth-child(3) { white-space: nowrap; vertical-align: top; }
.calc-compare td:nth-child(3) { font-weight: 400; color: var(--muted); }
.calc-notes { color: var(--muted); font-size: 0.85rem; margin: 0 0 8px; padding-left: 20px; }

/* screenshots: the hero's and the ones at the top of the How it works cards (hero-dashboard.png, how-send.png, how-see.png, how-sort.png) */
.shot { display: block; width: 100%; height: auto; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35); }
.card-shot { display: block; width: 100%; height: auto; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 18px; }

/* the curl example in the Send card - a card is a third of the page, so a smaller font, and long lines wrap (copying still gives the one real command) */
.card .card-code { margin: 0 0 18px; padding: 14px; font-size: 0.74rem; line-height: 1.55; }
.card .card-code code { white-space: pre-wrap; overflow-wrap: anywhere; }
