/* App Shots Studio — shared site styles (all pages except the studio) */

:root {
    --ink: #0F172A;
    --ink-2: #334155;
    --muted: #475569;
    --line: #E2E8F0;
    --line-strong: #CBD5E1;
    --ground: #FFFFFF;
    --ground-2: #F6F7F9;
    --accent: #2563EB;
    --accent-ink: #1D4ED8;
    --accent-soft: #EFF6FF;
    --accent-soft-2: #DBEAFE;
    --radius: 14px;
    --wrap: 1180px;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--ground);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent-ink); }
a:hover { color: #1E3A8A; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.01em; margin: 0; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

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

.skip-link {
    position: absolute; left: -9999px; top: 8px;
    background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100;
}
.skip-link:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 0 24px; border-radius: 12px;
    font: 600 16px/1 var(--font-body); text-decoration: none; cursor: pointer;
    border: 1px solid transparent; transition: background-color .15s, border-color .15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); color: #fff; }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--accent-soft); color: var(--ink); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 15px; border-radius: 10px; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: #fff; }
.header-row {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 12px 24px; padding-top: 14px; padding-bottom: 14px;
}
.brand {
    display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
    color: var(--ink); text-decoration: none;
    font: 700 18px/1 var(--font-display);
}
.brand:hover { color: var(--ink); }
.brand-mark {
    width: 28px; height: 28px; border-radius: 8px; background: var(--accent);
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 26px; font-size: 15px; font-weight: 500; }
.site-nav a:not(.btn) { color: var(--ink-2); text-decoration: none; padding: 8px 0; }
.site-nav a:not(.btn):hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--accent-ink); font-weight: 600; }

@media (max-width: 640px) {
    .site-nav { width: 100%; justify-content: space-between; gap: 4px 12px; }
    .site-nav .btn { display: none; }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 0; }
.footer-row {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
    padding-top: 32px; padding-bottom: 32px; font-size: 14px; color: var(--muted);
}
.footer-row nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-row a { color: var(--muted); text-decoration: none; }
.footer-row a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Homepage ---------- */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 88px; padding-bottom: 72px; }
.hero-copy { flex: 1 1 440px; min-width: 0; }
.hero h1 { font-size: clamp(38px, 5.4vw, 56px); line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 20px; }
.hero .lede { font-size: 19px; color: var(--muted); margin: 0 0 32px; max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { font-size: 14px; color: var(--muted); margin: 24px 0 0; }
.hero-art { flex: 1 1 480px; min-width: 0; display: flex; justify-content: center; gap: 16px; }
.hero-art img {
    width: calc((100% - 32px) / 3); max-width: 180px; border-radius: 16px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .14);
}
.hero-art img:nth-child(odd) { margin-top: 28px; }

.band { background: var(--ground-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section { padding-top: 72px; padding-bottom: 72px; }
.section-title { font-size: 34px; margin-bottom: 8px; }
.section-intro { font-size: 17px; color: var(--muted); margin: 0 0 36px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step-num {
    width: 32px; height: 32px; border-radius: 16px; background: var(--accent-soft-2); color: var(--accent-ink);
    font-weight: 700; display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.steps h3 { font-family: var(--font-body); font-size: 18px; margin-bottom: 6px; }
.steps p { font-size: 15px; color: var(--muted); margin: 0; }

.reasons { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; }
.reasons h3 { font-family: var(--font-body); font-size: 19px; margin-bottom: 8px; }
.reasons p { font-size: 16px; color: var(--muted); margin: 0; }

.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.section-head .section-title { margin: 0; }
.byline-small { font-size: 14px; color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.card {
    display: block; text-decoration: none; color: var(--ink);
    border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
    transition: border-color .15s, box-shadow .15s;
}
.card:hover { color: var(--ink); border-color: var(--line-strong); box-shadow: 0 4px 16px rgba(15, 23, 42, .06); }
.card-meta { font-size: 13px; color: var(--muted); }
.card h3 { font-family: var(--font-body); font-size: 20px; margin: 8px 0; }
.card p { font-size: 15px; color: var(--muted); margin: 0; }

.cta-band { background: var(--ink); color: #fff; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: 64px; padding-bottom: 64px; }
.cta-row h2 { font-size: 32px; }

/* ---------- Article pages (Specs, Guide, FAQ, About, legal) ---------- */
.page { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; padding-top: 48px; padding-bottom: 80px; }
.article { flex: 999 1 600px; min-width: 0; max-width: 740px; }
.article.narrow { max-width: 720px; margin: 0 auto; flex-basis: 100%; }
.sidebar { flex: 1 1 260px; max-width: 300px; position: sticky; top: 24px; }
@media (max-width: 960px) { .sidebar { position: static; max-width: none; } }

.article h1 { font-size: clamp(32px, 4.4vw, 44px); line-height: 1.1; margin-bottom: 16px; }
.article h2 { font-size: 28px; margin: 48px 0 14px; scroll-margin-top: 16px; }
.article h3 { font-family: var(--font-body); font-size: 19px; margin: 28px 0 8px; }
.article p, .article li { font-size: 17px; line-height: 1.7; }
.article p { margin: 0 0 18px; }
.article ul, .article ol { margin: 0 0 24px; padding-left: 22px; }
.article li { margin-bottom: 10px; }
.article .lede { font-size: 19px; color: var(--ink-2); }

.byline { display: flex; align-items: center; gap: 12px; margin-bottom: 32px; }
.avatar {
    width: 40px; height: 40px; border-radius: 20px; background: var(--line); color: var(--muted);
    display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex-shrink: 0;
}
.byline-text { font-size: 14px; color: var(--muted); line-height: 1.45; }

.toc { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.toc-title, .eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.toc a { display: block; font-size: 15px; padding: 6px 0; text-decoration: none; }
.toc a:hover { text-decoration: underline; }

.table-box { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; margin: 0 0 28px; }
.table-box table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.table-box th { background: var(--ground-2); text-align: left; font-weight: 600; }
.table-box th, .table-box td { padding: 12px 16px; vertical-align: top; }
.table-box tr + tr td, .table-box tbody tr td { border-top: 1px solid var(--line); }
.table-box td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.table-box td.note { color: var(--muted); }

.callout { background: var(--ground-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin: 0 0 28px; }
.callout p:last-child { margin-bottom: 0; }

.studio-cta {
    background: var(--ground-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin: 40px 0 0;
}
.studio-cta strong { display: block; font-size: 18px; margin-bottom: 4px; }
.studio-cta span { font-size: 15px; color: var(--muted); }

.figure { margin: 8px 0 28px; }
.figure-row { display: flex; gap: 16px; }
.figure-row img { flex: 1; min-width: 0; border-radius: 12px; border: 1px solid var(--line); }
.figure figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
    list-style: none; cursor: pointer; padding: 18px 36px 18px 0; position: relative;
    font-size: 17px; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: ''; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px;
    border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
    transform: translateY(-70%) rotate(45deg); transition: transform .15s;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > div { padding: 0 0 18px; }
.faq details p { margin: 0 0 12px; }

/* Contact */
.form-frame { width: 100%; min-height: 760px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }

/* Code samples in guides */
.article code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; background: var(--ground-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 5px; overflow-wrap: anywhere; }
.article pre { background: #0F172A; color: #E2E8F0; border-radius: 12px; padding: 16px 18px; margin: 0 0 24px; overflow-x: auto; font-size: 14px; line-height: 1.6; }
.article pre code { background: none; border: 0; padding: 0; font-size: inherit; color: inherit; overflow-wrap: normal; }

/* Related guides at the end of an article */
.related { border-top: 1px solid var(--line); margin-top: 48px; padding-top: 24px; }
.related h2 { font-size: 20px; margin: 0 0 12px; }
.related ul { list-style: none; padding: 0; margin: 0; }
.related li { margin: 0 0 8px; }

/* Guides index */
.guide-list { display: grid; gap: 16px; margin: 8px 0 0; }
.guide-list .card h3 { font-size: 21px; }
