/* 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 { list-style: none; padding: 0; color: var(--dim); flex: 1; margin: 14px 0 22px; }
.plan.featured { border-color: var(--accent); }  /* (overridden below: the yellow Solo card) */
.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; }

/* launch email list (partials/notify.html) */
.notify { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; max-width: 560px; }
.notify input[type=email] { flex: 1 1 240px; min-width: 0; font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--line); border-radius: 8px; padding: 11px 14px; }
.notify input[type=email]:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.notify .note { flex-basis: 100%; margin: 0; }
.notify.done input, .notify.done button { display: none; }
.notify.done .note { color: var(--synced); font-size: 1rem; }
.center .notify { margin: 0 auto; justify-content: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; color: var(--dim); font-size: .95rem; margin: 18px 0 0; padding: 0; list-style: none; }
.trust li::before { content: "✓ "; color: var(--synced); font-weight: 700; }
.hero .notify { margin: 0 auto; justify-content: center; }

/* screenshots in guides */
.prose figure { margin: 18px 0 26px; }
.prose figure img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); }
.prose figcaption { color: var(--faint); font-size: .9rem; margin-top: 8px; }

/* download cards: buttons along the bottom, whatever the text above them */
.downloads .card { display: flex; flex-direction: column; }
.downloads .card .button { margin-top: auto; align-self: flex-start; }
.downloads .card p:last-of-type { margin-bottom: 22px; }
.badge-experimental { display: inline-block; vertical-align: middle; margin-left: 6px; padding: 3px 10px; border-radius: 999px;
  border: 1px solid var(--drifting); color: var(--drifting); font-size: .8rem; font-weight: 700; letter-spacing: .02em; }
.site-nav a.button[aria-current="page"], .site-nav a.button:hover { color: var(--bg); }

/* home page animation (assets/hero-anim.js); the screenshot inside is the no-JavaScript fallback */
.hero-anim { overflow: hidden; background: #15161a; aspect-ratio: 1200 / 720; }
.hero-anim img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-anim svg { width: 100%; height: 100%; display: block; }
.status-anim { margin-top: 0; overflow: hidden; background: #1d1e23; aspect-ratio: 640 / 430; }
.status-anim img { width: 100%; height: 100%; object-fit: cover; display: block; }
.status-anim svg { width: 100%; height: 100%; display: block; }

/* feature card icons (home page) */
.feature-icon { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px;
  border-radius: 11px; background: rgba(255, 214, 10, .1); color: var(--accent); margin-bottom: 14px; }
.feature-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; }

/* home: comparison table with the Clam Sync column picked out */
table.compare { border-collapse: separate; border-spacing: 0; }
table.compare th[scope=row] { color: var(--text); font-weight: 600; }
table.compare th, table.compare td { padding: 14px 16px; }
table.compare td { color: var(--dim); }
table.compare .us { background: rgba(255, 214, 10, .06); color: var(--text); border-left: 2px solid var(--accent);
  border-right: 2px solid var(--accent); font-weight: 600; }
table.compare thead .us { border-top: 2px solid var(--accent); border-radius: 12px 12px 0 0; color: var(--text);
  font-size: 1.05rem; }
table.compare thead .us img { vertical-align: -5px; margin-right: 8px; border-radius: 5px; }
table.compare tbody tr:last-child .us { border-bottom: 2px solid var(--accent); border-radius: 0 0 12px 12px; }
table.compare .yes { color: var(--synced); font-weight: 800; margin-right: 10px; }
table.compare .no { color: var(--faint); margin-right: 10px; }

/* home: real-shoot results as big numbers */
.stat { border-top: 3px solid var(--accent); }
.stat .stat-num { font-size: 3.2rem; font-weight: 800; line-height: 1; color: var(--accent); margin: 4px 0 8px;
  letter-spacing: -0.02em; }
.stat .stat-num span { font-size: 1.2rem; font-weight: 700; color: var(--text); letter-spacing: 0; }
.stat .stat-sub { font-weight: 600; margin: 0 0 12px; color: var(--text); }
table.compare thead .us { white-space: nowrap; }

/* pricing cards: ticks, prices lined up, Solo as the one yellow card (partials/plans.html) */
.plans { align-items: stretch; padding-top: 10px; }
.plan { padding: 26px; }
.plan h2 { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 1.35rem; margin: 0; }
.plan .price { font-size: 2.8rem; font-weight: 800; letter-spacing: -0.02em; margin: 14px 0 2px; }
.plan li { position: relative; padding-left: 26px; margin-bottom: 9px; line-height: 1.45; }
.plan li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 800; }
.plan .button { margin-top: auto; text-align: center; }
.plan-badge { font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px;
  border-radius: 999px; background: var(--bg); color: var(--accent); }
.plan.featured { background: var(--accent); border-color: var(--accent); color: var(--bg); transform: translateY(-10px);
  box-shadow: 0 24px 60px rgba(255, 214, 10, .14), 0 18px 40px rgba(0, 0, 0, .45); }
.plan.featured .dim, .plan.featured ul, .plan.featured .local { color: rgba(21, 22, 26, .78); }
.plan.featured li::before { color: var(--bg); }
.plan.featured .button { background: var(--bg); color: var(--accent); border-color: var(--bg); }
.plan.featured .button:hover { background: #000; }
.plan.featured .button[aria-disabled="true"] { color: var(--accent); opacity: .9; }
.plan.featured a { color: var(--bg); }
@media (max-width: 920px) { .plan.featured { transform: none; } }

/* guide pages: sidebar (pages + on this page), pager */
.guide-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 48px; align-items: start; }
.guide-side { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 26px; font-size: .95rem; }
.guide-side nav { display: flex; flex-direction: column; gap: 2px; }
.guide-side a { color: var(--dim); padding: 6px 12px; border-radius: 8px; border-left: 2px solid transparent; }
.guide-side a:hover { color: var(--text); background: var(--surface); text-decoration: none; }
.guide-side a[aria-current="page"] { color: var(--text); background: var(--surface); border-left-color: var(--accent); font-weight: 600; }
.guide-side-title { font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--faint);
  margin: 0 0 6px 12px; }
.guide-side-title a { padding: 0; color: inherit; border: 0; }
.guide-toc a { font-size: .88rem; padding: 4px 12px; }
.guide-body { max-width: 760px; }
.guide-body h2 { scroll-margin-top: 84px; }
.guide-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 48px; }
.guide-pager a { display: block; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); color: var(--text); font-weight: 700; }
.guide-pager a:hover { border-color: var(--accent); text-decoration: none; }
.guide-pager a span { display: block; font-size: .78rem; font-weight: 600; color: var(--dim); margin-bottom: 2px; }
.guide-pager .next { text-align: right; grid-column: 2; }
@media (max-width: 900px) {
  .guide-layout { grid-template-columns: 1fr; gap: 20px; }
  .guide-side { position: static; }
  .guide-side nav:first-child { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .guide-side nav:first-child .guide-side-title { display: none; }
  .guide-side a { border: 1px solid var(--line); border-left-width: 1px; }
  .guide-toc { display: none !important; }
}

/* guide front page */
.quickstart { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: qs; }
.quickstart a { position: relative; display: block; padding: 20px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--line); color: var(--text); }
.quickstart a:hover { border-color: var(--accent); text-decoration: none; }
.quickstart a::before { counter-increment: qs; content: counter(qs); position: absolute; top: 16px; right: 18px;
  font-size: 2rem; font-weight: 800; color: rgba(255, 214, 10, .25); line-height: 1; }
.quickstart strong { display: block; margin-top: 4px; }
.quickstart span { display: block; color: var(--dim); font-size: .9rem; margin-top: 4px; }
@media (max-width: 900px) { .quickstart { grid-template-columns: 1fr 1fr; } }
.guide-cards .card h2 { font-size: 1.25rem; margin: 0 0 6px; }
.guide-cards .card h2 a { color: var(--text); }
.topic-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; padding: 0; list-style: none; }
.topic-links a { display: inline-block; font-size: .85rem; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--dim); }
.topic-links a:hover { color: var(--text); border-color: var(--accent); text-decoration: none; }
.problems { columns: 2; column-gap: 32px; padding: 0; list-style: none; }
.problems li { break-inside: avoid; margin-bottom: 10px; }
.problems a::before { content: "→ "; color: var(--accent); }
@media (max-width: 700px) { .problems { columns: 1; } }
.stuck { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
.stuck p { margin: 0; }
.guide-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 700px) { .guide-cards { grid-template-columns: 1fr; } }
.guide-toc a[aria-current="true"] { color: var(--accent); }
