/* phasmastrap.com - "Midnight". No inline styles anywhere (the Content-Security-Policy forbids them). */

@font-face { font-family: "Geist"; src: url("/assets/fonts/geist.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/assets/fonts/geistmono.woff2") format("woff2"); font-weight: 400 500; font-display: swap; }

:root {
    --bg: #0a0a0b;
    --surface: #111113;
    --surface-2: #18181b;
    --line: #1f1f23;
    --line-strong: #2a2a2e;
    --text: #f4f4f5;
    --text-2: #a1a1aa;   /* 7.3:1 on --bg */
    --text-3: #8b8b93;   /* 5.6:1 on --bg */
    --accent: #e5484d;
    --accent-text: #ff6b70;   /* accent used as small text: 6.2:1 on --bg */
    --ok: #4ade80;
    --radius: 12px;
    --wrap: 1200px;
    --gutter: 24px;
    --font: "Geist", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
    --mono: "Geist Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; text-wrap: balance; }
p { margin: 0; }
a { color: var(--text-2); text-decoration: none; }
a:hover { color: var(--text); }
p a, li a, .prose a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
p a:hover, li a:hover, .prose a:hover { text-decoration-color: var(--text); }
code, .mono { font-family: var(--mono); }

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

.skip-link { position: absolute; left: 16px; top: -48px; z-index: 10; padding: 8px 14px; border-radius: 8px; background: var(--text); color: var(--bg); font-weight: 500; }
.skip-link:focus { top: 12px; color: var(--bg); }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- header */
.site-header { border-bottom: 1px solid #1c1c1f; }
.site-header .wrap { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: 16px; }
.brand:hover { color: var(--text); }
.brand img { width: 28px; height: 28px; }
.nav { display: flex; align-items: center; gap: 32px; font-size: 14px; }
.nav a[aria-current="page"] { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.nav-mobile { display: none; position: relative; }
.nav-mobile summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-strong); color: var(--text); }
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile[open] summary { background: var(--surface-2); }
.nav-mobile .panel { position: absolute; right: 0; top: 52px; z-index: 5; width: min(280px, calc(100vw - 32px)); padding: 8px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--surface); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); display: flex; flex-direction: column; }
.nav-mobile .panel a { padding: 12px 14px; border-radius: 8px; font-size: 16px; color: var(--text); }
.nav-mobile .panel a:hover, .nav-mobile .panel a[aria-current="page"] { background: var(--surface-2); }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 10px; font-weight: 500; font-size: 15px; line-height: 1.2; white-space: nowrap; transition: background-color 0.15s, border-color 0.15s; }
.btn svg { flex-shrink: 0; }
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { background: #d9d9de; color: var(--bg); }
.btn-secondary { border: 1px solid var(--line-strong); color: var(--text); }
.btn-secondary:hover { border-color: #45454c; color: var(--text); }
.btn-small { min-height: 36px; padding: 7px 14px; font-size: 14px; border-radius: 8px; }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- common text */
.eyebrow { font-size: 14px; font-weight: 500; color: var(--accent-text); }
.lead { font-size: 19px; color: var(--text-2); max-width: 640px; }
.muted { color: var(--text-2); }
.fine { font-size: 13px; color: var(--text-3); }

/* ---------- hero */
.hero { padding: 112px 0 72px; display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.hero h1 { font-size: 68px; letter-spacing: -0.035em; max-width: 900px; }
.pill { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; padding: 6px 12px 6px 6px; border-radius: 999px; border: 1px solid #26262a; font-size: 13px; color: #d4d4d8; }
.pill:hover { border-color: var(--line-strong); color: var(--text); }
.pill .tag { padding: 2px 8px; border-radius: 999px; background: #1f1f23; font-family: var(--mono); font-size: 12px; white-space: nowrap; }
.pill .text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero .buttons { justify-content: center; margin-top: 8px; }

/* ---------- screenshots */
.shot { border-radius: 14px; border: 1px solid #26262a; overflow: hidden; background: var(--surface); box-shadow: 0 40px 120px rgba(0, 0, 0, 0.55); }
.shot img { width: 100%; }
.shot-caption { margin-top: 14px; text-align: center; }

/* ---------- sections */
.section { padding-top: 140px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 48px; }
.section-head .text { display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.section-head h2 { font-size: 44px; }

.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.feature-grid > div { padding: 32px 32px 40px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.feature-grid > div:nth-child(3n) { border-right: 0; padding-right: 0; }
.feature-grid > div:nth-child(3n + 1) { padding-left: 0; }
.feature-grid h3 { font-size: 16px; font-weight: 500; letter-spacing: 0; }
.feature-grid p { font-size: 15px; color: var(--text-2); }

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: center; }
.split .text { display: flex; flex-direction: column; gap: 16px; }
.split h2 { font-size: 36px; line-height: 1.15; }

.cta { margin-top: 140px; padding: 64px 72px; border-radius: 20px; border: 1px solid #26262a; background: var(--surface); display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.cta h2 { font-size: 40px; }
.cta .text { display: flex; flex-direction: column; gap: 10px; }

/* ---------- inner pages */
.page-intro { padding: 104px 0 56px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; }
.page-intro h1 { font-size: 56px; max-width: 820px; }

.detail { padding: 72px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.detail .text { grid-column: span 5; display: flex; flex-direction: column; gap: 12px; }
.detail h2 { font-size: 32px; line-height: 1.15; }
.detail .body { grid-column: 7 / span 6; display: flex; flex-direction: column; gap: 28px; }
.checks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.checks li { display: flex; gap: 12px; font-size: 15px; color: #d4d4d8; }
.checks svg { flex-shrink: 0; margin-top: 4px; color: var(--text-3); }
.detail .shot { box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45); }

/* changelog */
.release { padding: 48px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; scroll-margin-top: 24px; }
.release .meta { grid-column: span 3; display: flex; flex-direction: column; gap: 6px; }
.release .version { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 20px; font-weight: 500; }
.badge { font-family: var(--font); font-size: 12px; font-weight: 500; padding: 2px 8px; border-radius: 999px; background: #1f1f23; color: #d4d4d8; }
.release .notes { grid-column: 5 / span 8; color: var(--text-2); font-size: 15px; }
.notes h3 { margin: 18px 0 6px; font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--text); }
.notes h3:first-child { margin-top: 0; }
.notes ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 10px; }
.notes ul ul { margin-top: 10px; }
.notes strong { color: var(--text); font-weight: 500; }
.notes p + ul, .notes ul + p { margin-top: 10px; }
.notes code { font-size: 13px; }
.more-link { padding: 40px 0 0; }

/* faq */
.faq-group { padding-top: 56px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.faq-group h2 { grid-column: span 4; padding-top: 22px; font-size: 22px; letter-spacing: -0.02em; }
.faq-list { grid-column: 5 / span 8; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 44px; padding: 20px 0; font-size: 17px; font-weight: 500; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary svg { flex-shrink: 0; color: var(--text-3); transition: transform 0.2s; }
.faq-list details[open] summary svg { transform: rotate(45deg); }
.faq-list .answer { padding: 0 48px 24px 0; color: var(--text-2); font-size: 15px; display: flex; flex-direction: column; gap: 10px; }

/* download */
.download-top { padding: 104px 0 72px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: start; }
.download-top .text { grid-column: span 6; display: flex; flex-direction: column; gap: 20px; }
.download-top h1 { font-size: 56px; }
.release-card { grid-column: 8 / span 5; padding: 28px; border-radius: 16px; border: 1px solid #26262a; background: var(--surface); }
.release-card h2 { font-size: 15px; font-weight: 500; letter-spacing: 0; padding-bottom: 14px; }
.release-card dl { margin: 0; }
.release-card .row { display: flex; justify-content: space-between; gap: 24px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 14px; }
.release-card dt { color: var(--text-3); }
.release-card dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.release-card .row.stack { flex-direction: column; gap: 8px; }
.release-card .row.stack dd { text-align: left; font-family: var(--mono); font-size: 12px; color: #d4d4d8; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { padding: 28px; border-radius: 14px; border: 1px solid var(--line); background: #0e0e10; display: flex; flex-direction: column; gap: 10px; counter-increment: step; }
.steps li::before { content: "Step " counter(step); font-family: var(--mono); font-size: 13px; color: var(--text-3); }
.steps h3 { font-size: 18px; font-weight: 500; letter-spacing: 0; }
.steps p { font-size: 15px; color: var(--text-2); }
.note { margin-top: 20px; padding: 18px 20px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 15px; color: var(--text-2); }
.note strong { color: var(--text); font-weight: 500; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 64px 0 88px; border-bottom: 1px solid var(--line); }

/* privacy / plain text */
.prose { max-width: 720px; padding: 56px 0 0; display: flex; flex-direction: column; gap: 16px; color: var(--text-2); font-size: 16px; }
.prose h2 { margin-top: 28px; font-size: 24px; letter-spacing: -0.02em; color: var(--text); }
.prose ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.prose strong { color: var(--text); font-weight: 500; }

/* 404 */
.not-found { padding: 160px 0 120px; display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.not-found .code { font-family: var(--mono); color: var(--text-3); font-size: 15px; }
.not-found h1 { font-size: 48px; }

/* ---------- footer */
.site-footer { margin-top: 140px; border-top: 1px solid #1c1c1f; }
.site-footer .wrap { padding-top: 56px; padding-bottom: 48px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.site-footer .about { grid-column: span 6; display: flex; flex-direction: column; gap: 10px; }
.site-footer .col { grid-column: span 2; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.site-footer .col h2 { font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--text); }
.site-footer .col a { display: inline-block; padding: 2px 0; }

/* ---------- tablet */
@media (max-width: 1080px) {
    .hero { padding: 88px 0 56px; }
    .hero h1 { font-size: 54px; }
    .section { padding-top: 104px; }
    .section-head h2 { font-size: 36px; }
    .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .feature-grid > div, .feature-grid > div:nth-child(3n), .feature-grid > div:nth-child(3n + 1) { padding: 28px 28px 32px; border-right: 1px solid var(--line); }
    .feature-grid > div:nth-child(2n) { border-right: 0; padding-right: 0; }
    .feature-grid > div:nth-child(2n + 1) { padding-left: 0; }
    .split { gap: 40px; }
    .cta { padding: 48px; }
    .cta h2 { font-size: 32px; }
    .page-intro { padding: 80px 0 48px; }
    .page-intro h1, .download-top h1 { font-size: 46px; }
    .detail .text { grid-column: span 12; }
    .detail .body { grid-column: span 12; }
    .release .meta { grid-column: span 12; flex-direction: row; align-items: baseline; gap: 16px; }
    .release .notes { grid-column: span 12; }
    .faq-group h2, .faq-list { grid-column: span 12; }
    .faq-group h2 { padding-top: 0; }
    .download-top .text, .release-card { grid-column: span 12; }
    .steps { grid-template-columns: 1fr; }
    .site-footer .about { grid-column: span 12; }
    .site-footer .col { grid-column: span 4; }
}

/* ---------- phone */
@media (max-width: 720px) {
    :root { --gutter: 20px; }
    .nav, .header-actions .btn { display: none; }
    .nav-mobile { display: block; }
    .hero { padding: 64px 0 40px; gap: 20px; }
    .hero h1 { font-size: 40px; }
    .lead { font-size: 17px; }
    .hero .buttons, .buttons { flex-direction: column; align-items: stretch; width: 100%; }
    .pill .text { max-width: 60vw; }
    .shot { border-radius: 10px; }
    .section { padding-top: 80px; }
    .section-head { flex-direction: column; align-items: flex-start; margin-bottom: 32px; }
    .section-head h2 { font-size: 30px; }
    .feature-grid { grid-template-columns: 1fr; }
    .feature-grid > div, .feature-grid > div:nth-child(n) { padding: 24px 0; border-right: 0; }
    .split { grid-template-columns: 1fr; gap: 28px; }
    .split h2 { font-size: 28px; }
    .cta { margin-top: 88px; padding: 32px 24px; flex-direction: column; align-items: stretch; }
    .cta h2 { font-size: 28px; }
    .page-intro { padding: 56px 0 36px; }
    .page-intro h1, .download-top h1 { font-size: 36px; }
    .detail { padding: 48px 0; }
    .detail h2 { font-size: 26px; }
    .release { padding: 36px 0; }
    .faq-list .answer { padding-right: 0; }
    .download-top { padding: 56px 0 48px; }
    .release-card { padding: 20px; }
    .row-between { padding: 48px 0 64px; }
    .not-found { padding: 96px 0 72px; }
    .not-found h1 { font-size: 36px; }
    .site-footer { margin-top: 88px; }
    .site-footer .col { grid-column: span 6; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

.shot-figure { margin: 0; }
