/* Twisted Pair site (twistedpair.app). No scripts, no external resources (see _headers). */
:root {
  color-scheme: light dark;
  --ink: #14202f; --muted: #56657a; --line: #e2e7ee; --paper: #ffffff; --soft: #f4f7fa;
  --accent: #2563c9; --deep-1: #1a2a4d; --deep-2: #3a5c8f;
  --radius: 14px; --wide: 68rem; --narrow: 40rem;
}
@media (prefers-color-scheme: dark) {
  :root { --ink: #e8eef6; --muted: #9fb0c6; --line: #263447; --paper: #0f1622; --soft: #162131; --accent: #7fb0ff; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 1.5rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 85%, transparent);
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 3.25rem; }
.brand { font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.site-header nav a { color: var(--muted); margin-left: 1.5rem; font-size: 0.95rem; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--ink); text-decoration: none; }

/* Hero */
.hero { background: linear-gradient(135deg, var(--deep-1), var(--deep-2)); color: #fff; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: center; padding-top: 5.5rem; padding-bottom: 5.5rem; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.8rem; font-weight: 600; color: #bcd3f5; margin: 0 0 1rem; }
.hero h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 1.25rem; }
.hero .lead { font-size: 1.2rem; color: #d6e2f2; max-width: 30rem; margin: 0 0 2rem; }
.badge { display: block; margin: 0; }
.store-link { display: block; width: max-content; }
.fineprint { margin: 0.4rem 0 0; font-size: 0.9rem; color: #b3c4dc; }

/* A small desktop with a menu bar, holding the real menu capture */
.desk { position: relative; border-radius: var(--radius); background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  padding: 0 0 3.5rem; box-shadow: 0 30px 80px rgba(0,0,0,0.35); }
.menubar { display: flex; justify-content: flex-end; gap: 1rem; align-items: center; height: 1.9rem; padding: 0 1rem;
  background: rgba(255,255,255,0.14); border-radius: var(--radius) var(--radius) 0 0; font-size: 0.8rem; color: #e6eefa; }
.menubar .active { background: rgba(255,255,255,0.25); border-radius: 5px; padding: 0.05rem 0.5rem; font-weight: 600; }
.desk img { display: block; margin: 1.1rem 3rem 0 auto; border-radius: 9px; box-shadow: 0 14px 34px rgba(0,0,0,0.4); }
.section.tight { padding-top: 0; }

/* Before and after */
.section { padding: 2.5rem 0; }
.section h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 0.75rem; }
.section .intro { color: var(--muted); max-width: 36rem; margin: 0 0 2.5rem; font-size: 1.1rem; }
.compare { margin-top: 1.5rem; display: grid; grid-template-columns: 1fr auto 1fr; gap: 1.25rem; align-items: stretch; }
.card { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.card .label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); font-weight: 600; margin: 0 0 0.75rem; }
.copied p { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.25rem; color: #b3261e; }
.copied strong { font-size: 1.6rem; color: #1a5fb4; }
.copied em { background: #fff3a8; color: #6b3d00; padding: 0 0.2rem; }
.pasted p { margin: 0; font-size: 1.05rem; }
.arrow { align-self: center; font-size: 1.6rem; color: var(--muted); }
.note { color: var(--muted); font-size: 0.9rem; margin-top: 1rem; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.features h3 { margin: 0 0 0.4rem; font-size: 1.1rem; }
.features p { margin: 0; color: var(--muted); }

/* Screens */
.screens { padding: 4rem 0; background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.screen-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.screen-grid figure { margin: 0; text-align: center; }
.screen-grid img { border-radius: 10px; box-shadow: 0 18px 50px rgba(20,20,60,0.18); }
.screen-grid figcaption { margin-top: 1.25rem; color: var(--muted); }
.screen-grid figcaption strong { display: block; color: var(--ink); }

/* FAQ */
.faq { max-width: 46rem; }
.faq details { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--muted); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); margin: 0.6rem 0 0; }

/* Plain document pages (privacy, support, 404) */
.doc { max-width: var(--narrow); margin: 0 auto; padding: 3.5rem 1.5rem 4rem; }
.doc h1 { font-size: 2.2rem; letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 0.5rem; }
.doc .meta { color: var(--muted); margin: 0 0 2rem; }
.doc h2 { font-size: 1.15rem; margin: 2rem 0 0.4rem; }
.doc h3 { font-size: 1rem; margin: 1.5rem 0 0.3rem; }
.doc p, .doc li { color: var(--ink); }
.contact { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin: 0 0 2rem; }
.contact p { margin: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 2rem; padding-bottom: 2.5rem; }
.site-footer p { margin: 0; }
.site-footer p:last-child { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.site-footer a { color: var(--muted); overflow-wrap: anywhere; }

@media (max-width: 820px) {
  .hero .wrap, .screen-grid, .features { grid-template-columns: 1fr; }
  .hero .wrap { padding-top: 3.5rem; padding-bottom: 3.5rem; }
  .compare { grid-template-columns: 1fr; }
  .arrow { transform: rotate(90deg); justify-self: center; }
  .site-header nav a { margin-left: 1rem; }
}
.hero .wrap > *, .compare > *, .features > *, .screen-grid > * { min-width: 0; }
.screen-grid figure img { display: block; margin: 0 auto; }
address { font-style: normal; color: var(--muted); }

/* Twisted Pair additions */
.store-link { display: inline-block; }
.states { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.states .card { text-align: center; }
.states .glyph { font-size: 2.2rem; line-height: 1; margin: 0 0 0.75rem; }
.states h3 { margin: 0 0 0.4rem; font-size: 1.1rem; }
.states p { margin: 0; color: var(--muted); }
.app-icon { display: block; border-radius: 22%; margin: 0 0 1.5rem; }
code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.9em; background: var(--soft); border: 1px solid var(--line); border-radius: 6px; padding: 0.05rem 0.35rem; overflow-wrap: anywhere; }
@media (max-width: 820px) { .states { grid-template-columns: 1fr; } }
.states img { display: block; margin: 0 auto 0.75rem; }
@media (prefers-color-scheme: dark) { .states img { filter: invert(1); } }
/* Window captures already carry macOS's own shadow on a transparent margin: no extra frame. */
.desk img, .screen-grid img { box-shadow: none; border-radius: 0; }
.desk img { margin-top: 0.4rem; }
.screen-grid figure img[src$="icon.png"] { filter: drop-shadow(0 14px 28px rgba(20, 30, 60, 0.25)); }
