/* Clam Sync site, in the Clam Sync brand (clam-sync-brand/BRIEF.md): the app's dark, professional
   surfaces with clapper yellow as the one accent. Text on yellow is always near-black, never white.
   Dark only, like the app (yellow links wouldn't be readable on a light page). */
:root {
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --bg: #15161a;
  --surface: #1d1e23;
  --surface-2: #27282e;
  --line: #2e2f36;
  --text: #ecebe6;
  --dim: #94939b;
  --faint: #62626b;
  --accent: #ffd60a;        /* clapper yellow: buttons, links, the one accent */
  --accent-hover: #ffe14d;
  --accent-text: #15161a;   /* on yellow */
  --synced: #3ccf7f;        /* the app's status colours, bright versions for dark backgrounds */
  --drifting: #ff8c42;
  --timecode: #4cc6e6;
  --clock: #a68bff;
  --unsynced: #ff6fa3;
  --radius: 12px;
  --wrap: 1120px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
code, kbd { font-family: var(--font-mono); font-size: .9em; background: var(--surface-2); padding: .1em .35em; border-radius: 5px; }
.dim { color: var(--dim); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; z-index: 10; background: var(--surface); padding: 8px 12px; border-radius: 8px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 1.05rem; }
.brand:hover { text-decoration: none; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a:not(.button) { color: var(--dim); }
.site-nav a[aria-current="page"], .site-nav a:not(.button):hover { color: var(--text); text-decoration: none; }
.menu-button { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 8px;
  padding: 6px 12px; font: inherit; }
@media (max-width: 760px) {
  .menu-button { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 60px; flex-direction: column; align-items: stretch;
    gap: 0; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 10px 0; }
  .site-nav .button { margin-top: 8px; text-align: center; }
}

/* buttons */
.button { display: inline-block; background: var(--accent); color: var(--accent-text); font-weight: 700;
  padding: 12px 20px; border-radius: 10px; border: 1px solid transparent; cursor: pointer; font: inherit; font-weight: 600; }
.button:hover { text-decoration: none; background: var(--accent-hover); }
.button.ghost:hover { background: var(--surface-2); }
.button[aria-disabled="true"] { color: var(--dim); cursor: default; }
.button[aria-disabled="true"]:hover { background: transparent; }
.launch-note { margin-bottom: 18px; border-color: var(--accent); }
.button.small { padding: 7px 14px; font-size: .95rem; }
.button.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; }

/* sections */
section { padding: 72px 0; }
section + section { border-top: 1px solid var(--line); }
.eyebrow { color: var(--accent); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.lead { font-size: 1.2rem; color: var(--dim); max-width: 46em; }
.hero { padding: 64px 0 56px; text-align: center; }
.hero-logo { margin: 0 auto 22px; border-radius: 22px; }
.hero .lead { margin: 0 auto 28px; }
.hero .buttons { justify-content: center; }
.hero-shot { margin-top: 48px; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.editors { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin-top: 22px; color: var(--dim); font-weight: 600; }
.note { color: var(--faint); font-size: .9rem; margin-top: 14px; }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }
.steps { counter-reset: step; }
.steps .card::before { counter-increment: step; content: counter(step); display: inline-grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-text); font-weight: 700; margin-bottom: 12px; }

.swatches { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 12px 0 0; padding: 0; list-style: none; color: var(--dim); }
.swatches li::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; background: var(--c); }

.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.split img { border-radius: var(--radius); border: 1px solid var(--line); }

/* pricing */
.plans { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: stretch; }
.plan { display: flex; flex-direction: column; }
.plan .price { font-size: 2.4rem; font-weight: 700; margin: 6px 0 2px; }
.plan ul { padding-left: 1.1em; color: var(--dim); flex: 1; }
.plan.featured { border-color: var(--accent); }
.local { margin: 0 0 6px; min-height: 1.4em; font-size: .9rem; color: var(--dim); }
.region-picker { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; color: var(--dim); font-size: .95rem; }
.region-picker[hidden] { display: none; }
.region-picker select { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line);
  border-radius: 8px; padding: 6px 10px; }

/* tables, FAQ, prose */
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--dim); font-weight: 600; }
.table-scroll { overflow-x: auto; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 10px 0 0; color: var(--dim); }
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; font-size: 1.5rem; }
.prose h3 { margin-top: 1.4em; }
.prose li { margin-bottom: .35em; }
.page-head { padding: 56px 0 8px; }
.page-head + section { border-top: 0; padding-top: 24px; }
.draft { border: 1px dashed var(--drifting); color: var(--drifting); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 24px; }
.guide-nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 28px; }

.center { text-align: center; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 32px; margin-top: 40px; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.footer-grid > div:first-child { grid-column: span 2; max-width: 360px; }
@media (max-width: 560px) { .footer-grid > div:first-child { grid-column: auto; } }
.footer-grid a:not(.brand) { display: block; color: var(--dim); padding: 3px 0; }
.footer-title { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); margin-bottom: 8px; }
.fine-print { color: var(--faint); font-size: .82rem; margin-top: 32px; }
