/* Shared title emphasis for the public information pages. */
.page-hero h1 em {
    font-style: italic;
    color: inherit;
}

/* Layout shared by the public information pages (support, about, contact,
   developers, pricing, 404). A page-specific <style> after the link wins. */
:root {
    --ink: #08070f;
    --violet: #7c5cff;
    --violet-deep: #5b3df5;
    --cyan: #22d3ee;
    --paper: #fdfcff;
    --card: #ffffff;
    --line: #eae6f6;
    --text: #17141f;
    --muted: #5f5a6e;
    --radius: 20px;
    --grad: linear-gradient(120deg, #7c5cff, #22d3ee);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    background: var(--paper);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--violet-deep); }
kbd { font-family: inherit; font-size: .95em; background: var(--card); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: .05em .45em; color: var(--text); white-space: nowrap; }
.wrap { max-width: 820px; margin: 0 auto; padding: 0 clamp(1.1rem, 4vw, 2rem); }

/* ============ NAV ============ */
.nav {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(253, 252, 255, .88);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
}
.nav-inner { max-width: 1160px; margin: 0 auto; padding: .8rem clamp(1.1rem, 4vw, 2rem); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav-logo img { height: 34px; width: auto; display: block; }
.nav-links { display: flex; gap: 1.4rem; list-style: none; align-items: center; }
.nav-links a { text-decoration: none; font-size: .92rem; font-weight: 500; color: var(--muted); white-space: nowrap; }
.nav-links a:hover { color: var(--violet-deep); }
@media (max-width: 560px) { .nav-links { gap: 1rem; } .nav-links li[data-optional] { display: none; } }

/* ============ HEADER ============ */
.page-hero { padding: 3.6rem 0 1.6rem; text-align: center; }
.page-hero h1 { font-family: 'Instrument Serif', 'Iowan Old Style', 'Palatino', Georgia, serif; font-weight: 400; font-size: clamp(2.3rem, 6vw, 3.4rem); line-height: 1.1; letter-spacing: -.01em; }
.page-hero p { margin-top: 1rem; color: var(--muted); font-size: 1.05rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.page-hero .note { display: inline-block; margin-top: 1.3rem; font-size: .85rem; color: var(--muted); background: var(--card); border: 1px solid var(--line); border-radius: 50px; padding: .45rem 1.1rem; }

/* ============ CONTACT ============ */
.contact-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem clamp(1.2rem, 4vw, 2rem); margin-top: 1.6rem; text-align: center; scroll-margin-top: 90px; }
.contact-card h2 { font-family: 'Instrument Serif', 'Iowan Old Style', 'Palatino', Georgia, serif; font-weight: 400; font-size: 1.7rem; margin-bottom: .5rem; }
.contact-card p { color: var(--muted); margin-bottom: 1.1rem; }
.contact-card a.btn {
    display: inline-block; text-decoration: none; font-weight: 600; color: #fff;
    background: var(--grad); border-radius: 50px; padding: .8rem 1.7rem; font-size: 1.02rem;
}
.contact-card .addr { margin-top: .9rem; margin-bottom: 0; font-size: .95rem; }
.contact-card .addr a { word-break: break-all; }

/* ============ BODY ============ */
.doc-body { padding: 1.2rem 0 4.5rem; }
.doc-body section { margin-top: 3.2rem; scroll-margin-top: 90px; }
.doc-body h2 { font-family: 'Instrument Serif', 'Iowan Old Style', 'Palatino', Georgia, serif; font-weight: 400; font-size: 1.85rem; letter-spacing: -.01em; margin-bottom: .4rem; }
.doc-body h3 { font-size: 1.05rem; font-weight: 600; margin: 1.8rem 0 .5rem; color: var(--text); }
.doc-body p { color: var(--muted); margin-bottom: .9rem; }
.doc-body ul, .doc-body ol { margin: .6rem 0 1rem 1.4rem; color: var(--muted); }
.doc-body li { margin-bottom: .45rem; }
.doc-body strong { color: var(--text); font-weight: 600; }
.lede { font-size: 1.02rem; }

.faq { list-style: none; margin: 1rem 0 0; }
.faq > li { border-top: 1px solid var(--line); padding: 1.2rem 0; margin: 0; }
.faq > li:last-child { border-bottom: 1px solid var(--line); }
.faq h3 { margin: 0 0 .5rem; }
.faq p:last-child { margin-bottom: 0; }
.faq ol { margin-top: .4rem; }

.callout {
    background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--violet);
    border-radius: 14px; padding: 1.2rem 1.4rem; margin: 1.2rem 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout h3 { margin-top: 0; }

.status { display: flex; align-items: center; gap: .6rem; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.2rem; margin-top: 1rem; color: var(--text); }
.status::before { content: ""; width: .7rem; height: .7rem; border-radius: 50%; background: #22c55e; flex: none; }

/* ============ FOOTER ============ */
.footer { background: var(--ink); border-top: 1px solid rgba(255,255,255,.07); padding: 2.4rem 0 2rem; color: #8f88ad; }
.footer .wrap { max-width: 1160px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.4rem; }
.footer-logo img { height: 30px; width: auto; display: block; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.6rem; list-style: none; font-size: .88rem; }
.footer-links a { text-decoration: none; color: #8f88ad; }
.footer-links a:hover { color: #fff; }
.footer-bottom { margin-top: 1.6rem; font-size: .8rem; color: #5f5a78; }

/* Reference pages (developers, pricing): tables and code blocks. */
.doc-body .intro { margin-top: 1.6rem; }
.doc-body code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; background: #f3f0fb; border-radius: 6px; padding: .08em .35em; color: var(--text); overflow-wrap: anywhere; }
.doc-body pre { background: var(--ink); color: #e9e6f5; border-radius: 14px; padding: 1rem 1.2rem; margin: .8rem 0 1.1rem; overflow-x: auto; font-size: .88rem; line-height: 1.55; }
.doc-body pre code { background: none; padding: 0; color: inherit; font-size: inherit; overflow-wrap: normal; }
.doc-body table { width: 100%; border-collapse: collapse; margin: .9rem 0 1.2rem; font-size: .94rem; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: block; overflow-x: auto; }
.doc-body th, .doc-body td { text-align: left; vertical-align: top; padding: .65rem .85rem; border-bottom: 1px solid var(--line); color: var(--muted); }
.doc-body th { color: var(--text); font-weight: 600; background: #f8f6fe; white-space: nowrap; }
.doc-body tr:last-child td { border-bottom: 0; }
.doc-body td:first-child { color: var(--text); font-weight: 500; }
@media (max-width: 560px) {
    .doc-body table { font-size: .84rem; }
    .doc-body th, .doc-body td { padding: .5rem .55rem; }
}
