/* Our Next Sync homepage and Privacy page. Same palette and logo as the app (app.css), more space. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #0f1117; --surface: #181c25; --card: #1e2231;
  --border: rgba(255,255,255,0.08); --border-strong: rgba(255,255,255,0.16);
  --text: #e8eaf0; --text-secondary: #a3a9bf; --text-muted: #8b91a8;
  --accent: #4f7fff; --accent-hover: #6a93ff; --accent-bg: rgba(79,127,255,0.12);
  --success: #36c97a; --radius: 12px;
}
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* Standard scrollbars (cross-app/standard-scrollbars.md, convention #20).
   Thumb #6b7290: 4.0:1 on --bg, 3.6:1 on --surface, 3.3:1 on --card. */
:root { --sb-track: var(--bg); --sb-thumb: #6b7290; --sb-thumb-hover: var(--accent-hover); color-scheme: dark; }
html { scrollbar-color: var(--sb-thumb) var(--sb-track); }
* { scrollbar-width: thin; }
@supports not (scrollbar-color: auto) {
  ::-webkit-scrollbar { width: 10px; height: 10px; }
  ::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: var(--sb-track); }
  ::-webkit-scrollbar-thumb { background: var(--sb-thumb); border-radius: 999px; border: 2px solid var(--sb-track); }
  ::-webkit-scrollbar-thumb:hover { background: var(--sb-thumb-hover); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif; font-size: 16px; line-height: 1.65; }
a { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent-hover); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; height: auto; display: block; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 12px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 720px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(15,17,23,0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; }
.brand-icon { width: 30px; height: 30px; border-radius: 8px; background: var(--accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.header-nav { display: flex; align-items: center; gap: 14px; }
.link-btn { color: var(--text-secondary); text-decoration: none; font-weight: 500; font-size: 15px; white-space: nowrap; }
.link-btn:hover { color: var(--text); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; font-size: 16px; padding: 12px 22px; border-radius: 10px; border: 1px solid transparent; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s ease, border-color .15s ease; }
.btn-sm { font-size: 14px; padding: 8px 14px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #3f6ff0; color: #fff; }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--text-secondary); }

/* Hero */
.hero { padding: 64px 0 56px; background: radial-gradient(900px 400px at 80% 0%, rgba(79,127,255,0.16), transparent 70%); }
.hero-inner { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: center; }
.trial-note { display: inline-block; font-size: 14px; line-height: 1.5; color: var(--text); background: rgba(79,127,255,0.12); border: 1px solid rgba(79,127,255,0.3); border-radius: 14px; padding: 6px 14px; margin: 0 0 20px; }
.trial-badge { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #7fa2ff; margin-right: 6px; }
.hero h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.12; letter-spacing: -0.03em; margin-bottom: 18px; }
.lead { font-size: 19px; color: var(--text-secondary); }
.hero .lead { margin-bottom: 28px; max-width: 34em; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-row.center { justify-content: center; margin-top: 32px; }
.fine { margin-top: 14px; font-size: 14px; color: var(--text-muted); }
.hero-shot { justify-self: center; max-width: 320px; }
.hero-shot img { border-radius: 22px; border: 1px solid var(--border-strong); box-shadow: 0 24px 60px rgba(0,0,0,0.45); }

/* Sections */
.section { padding: 64px 0; }
.section.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section h2 { font-size: clamp(24px, 3.2vw, 32px); letter-spacing: -0.02em; margin-bottom: 24px; }
.section h3 { font-size: 18px; margin-bottom: 6px; }
.section p { color: var(--text-secondary); }

.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.step-n { display: inline-flex; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-bg); color: var(--accent-hover); align-items: center; justify-content: center; font-weight: 700; margin-bottom: 12px; }

.features { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 32px; }
.features li { border-left: 2px solid var(--accent); padding-left: 16px; }

.faq details { border-bottom: 1px solid var(--border); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--text-muted); font-weight: 400; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: '\2013'; }
.faq details p { margin-top: 8px; }

/* Privacy page */
.prose h1 { font-size: clamp(30px, 4vw, 40px); letter-spacing: -0.02em; margin-bottom: 12px; }
.prose .lead { margin-bottom: 8px; }
.prose h2 { font-size: 20px; margin: 32px 0 8px; }
.prose p, .prose li { color: var(--text-secondary); }
.prose p + p { margin-top: 10px; }
.prose ul { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.prose strong { color: var(--text); }

/* "← My Syncs" (roadmap L36): signed-in organizers only. */
.mysyncs-bar { padding-top: 16px; }
.mysyncs-bar:not([hidden]) + .section, .mysyncs-bar:not([hidden]) + main .hero { padding-top: 24px; }
.mysyncs-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--text-secondary); text-decoration: none; padding: 4px 0; }
.mysyncs-link:hover { color: var(--text); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0 40px; font-size: 14px; color: var(--text-muted); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.footer-left { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; text-align: left; }
.nowrap { white-space: nowrap; }
.footer-inner a { color: var(--text-secondary); }
.footer-inner a:hover { color: var(--text); }
/* Version pill on the right, also when the row wraps (footer v2) */
.footer-inner .version { margin-left: auto; font-weight: 500; font-size: 12px; color: var(--text-secondary); background: var(--card); border: 1px solid var(--border); border-radius: 100px; padding: 2px 9px; line-height: 1.5; }
.footer-inner .version:empty { display: none; }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .steps, .features { grid-template-columns: 1fr; }
}
/* Signed in, on the smallest phones the two links go on their own row. */
@media (max-width: 389px) {
  .signed-in .header-inner { flex-wrap: wrap; height: auto; padding-top: 12px; padding-bottom: 12px; row-gap: 10px; }
  .signed-in .header-nav { width: 100%; justify-content: space-between; }
}
@media (max-width: 480px) {
  .hero { padding: 40px 0 44px; }
  .section { padding: 48px 0; }
  .header-nav { gap: 10px; }
  .link-btn { font-size: 14px; }
  .btn-sm { padding: 7px 11px; font-size: 13px; }
  .brand-name { font-size: 15px; }
  .cta-row .btn { flex: 1 1 auto; }
}
