/* Synapse web: privacy, terms and account deletion pages. Brand tokens match the app. */
@font-face { font-family: Roboto; font-weight: 400; font-style: normal; font-display: swap; src: url(/assets/fonts/roboto-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: Roboto; font-weight: 500; font-style: normal; font-display: swap; src: url(/assets/fonts/roboto-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: Roboto; font-weight: 700; font-style: normal; font-display: swap; src: url(/assets/fonts/roboto-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Roboto Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url(/assets/fonts/roboto-mono-latin-500-normal.woff2) format("woff2"); }

:root {
  --bg: #151926;
  --surface: #242A3C;
  --deep: #264653;
  --teal: #2A9D8F;
  --accent: #E76F51;
  --text: #DEDEDE;
  --muted: #BBBBBB;
  --danger: #FF6B6B;
  --gutter: 80px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: Roboto, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
a { color: var(--teal); }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
b, strong { font-weight: 700; color: var(--text); }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.15; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; padding: 8px 12px; background: var(--accent); color: var(--bg); border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* Placeholder values from site.config.json that haven't been filled in yet. */
.ph { padding: 1px 6px; border-radius: 6px; border: 1px dashed var(--accent); color: var(--accent); font-family: "Roboto Mono", monospace; font-size: 0.85em; white-space: nowrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 20px; border-radius: 22px; font-size: 15px; font-weight: 700; text-decoration: none; }
.btn-accent { background: var(--accent); color: var(--bg); }
.btn-accent:hover { background: #EE8468; color: var(--bg); }

/* Header */
.site-header { border-bottom: 1px solid var(--surface); }
.header-row { display: flex; align-items: center; gap: 32px; padding-top: 22px; padding-bottom: 22px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-size: 20px; font-weight: 700; letter-spacing: 1px; margin-right: auto; }
.brand:hover { color: var(--text); }
.site-nav { display: flex; gap: 28px; }
.site-nav a, .menu-panel a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--text); }
.site-nav a[aria-current="page"] { color: var(--text); font-weight: 700; border-bottom-color: var(--accent); }
.menu { display: none; position: relative; }
.menu summary { list-style: none; width: 44px; height: 44px; border-radius: 50%; background: var(--surface); display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text); }
.menu summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 0; top: 52px; z-index: 5; min-width: 220px; display: flex; flex-direction: column; padding: 8px; border-radius: 16px; background: var(--surface); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5); }
.menu-panel a { padding: 12px; border: 0; border-radius: 10px; min-height: 44px; }
.menu-panel a:hover, .menu-panel a[aria-current="page"] { background: var(--bg); color: var(--text); }

/* Footer */
.site-footer { border-top: 1px solid var(--surface); margin-top: 24px; font-size: 14px; color: var(--muted); }
.footer-row { display: flex; align-items: center; gap: 24px; padding-top: 28px; padding-bottom: 28px; }
.footer-copy { margin-right: auto; display: flex; align-items: center; gap: 10px; }
.footer-copy .logo { width: 24px; height: 24px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }

/* Landing ("live arena"). App screenshots sit in .la-phone frames; motion stops under
   prefers-reduced-motion (see the end of this file). */
.muted { color: var(--muted); }
.teal { color: var(--teal); }
.accent { color: var(--accent); }
.lede { font-size: 19px; line-height: 1.6; color: var(--muted); max-width: 520px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: var(--surface); font-size: 13px; font-weight: 700; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: la-pulse 1.4s ease-in-out infinite; }
.store-row { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 6px; }
/* The official Google Play badge, unmodified. The PNG has 41/250 of its height as clear space,
   so the negative margin lines the visible badge up with the text. */
.store { display: inline-block; margin: -14px; line-height: 0; border-radius: 12px; flex-shrink: 0; }
.store img { height: 84px; width: auto; }
.store-note { font-size: 14px; color: var(--muted); }
.tm { padding: 8px 0 32px; font-size: 12px; color: var(--muted); }

@keyframes la-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.35; transform: scale(0.7); } }
@keyframes la-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes la-marquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }

.la-phone { border-radius: 40px; border: 9px solid #2B3246; background: var(--bg); overflow: hidden; box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55); }
.la-phone img { display: block; width: 100%; height: auto; }

.la-hero { position: relative; overflow: hidden; }
.la-hero::before { content: ""; position: absolute; right: -120px; top: -60px; width: 760px; height: 760px; border-radius: 50%; background: radial-gradient(circle, rgba(42, 157, 143, 0.28), rgba(21, 25, 38, 0) 65%); pointer-events: none; }
.la-hero-row { position: relative; display: flex; align-items: center; gap: 40px; padding-top: 56px; padding-bottom: 72px; }
.la-hero-copy { flex: 1; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.la-hero h1 { font-size: 68px; line-height: 1.02; letter-spacing: -1px; }
.la-hero h1 span { color: var(--accent); }
.la-trust { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 14px; color: var(--muted); }
.la-trust li, .la-ticks li { display: flex; align-items: flex-start; gap: 10px; }
.la-trust svg, .la-ticks svg { flex-shrink: 0; margin-top: 2px; }

.la-fan { position: relative; width: 560px; height: 660px; flex-shrink: 0; }
.la-fan .la-phone { position: absolute; width: 250px; top: 80px; opacity: 0.9; }
.la-fan-left { left: 0; transform: rotate(-8deg); }
.la-fan-right { right: 0; transform: rotate(8deg); }
.la-fan .la-fan-mid { width: 290px; left: 135px; top: 0; opacity: 1; z-index: 2; }
.la-toast { position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; background: var(--surface); border: 1px solid #33405A; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45); font-size: 14px; white-space: nowrap; animation: la-float 5s ease-in-out infinite; }
.la-toast-a { left: -60px; top: 430px; }
.la-toast-b { right: -10px; top: 150px; animation-delay: 1.2s; }
.la-av { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--bg); flex-shrink: 0; }
.la-av-accent { background: var(--accent); }
.la-av-teal { background: var(--teal); }

/* Two copies of the list scroll by one list width, so the loop is seamless. */
.la-ticker { display: flex; overflow: hidden; background: #1C2132; border-top: 1px solid var(--surface); border-bottom: 1px solid var(--surface); padding: 18px 0; font-size: 16px; font-weight: 500; white-space: nowrap; }
.la-ticker-track { display: flex; flex-shrink: 0; margin: 0; padding: 0; list-style: none; animation: la-marquee 40s linear infinite; }
.la-ticker-track li { display: inline-flex; align-items: center; gap: 10px; padding: 0 28px; }
.la-ticker-track li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.la-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-top: 56px; padding-bottom: 56px; border-bottom: 1px solid var(--surface); }
.la-stats div { display: flex; flex-direction: column; gap: 4px; }
.la-stats strong { font-size: 44px; line-height: 1.1; }
.la-stats span { font-size: 15px; color: var(--muted); }

.la-feature { display: flex; align-items: center; gap: 72px; padding-top: 56px; padding-bottom: 56px; }
.la-flip { flex-direction: row-reverse; }
.la-shot { width: 470px; height: 560px; flex-shrink: 0; border-radius: 32px; background: linear-gradient(160deg, var(--deep), #1A2030); display: flex; justify-content: center; padding-top: 48px; overflow: hidden; }
.la-shot .la-phone { width: 280px; height: max-content; }
.la-feature-copy { flex: 1; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.la-feature-copy h2, .la-topics h2, .la-faq h2 { font-size: 44px; line-height: 1.1; }
.la-feature-copy p { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 480px; }
.la-ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 16px; }
.la-feature .eyebrow, .la-boards .eyebrow, .la-topics .eyebrow { color: var(--teal); letter-spacing: 1.6px; }

.la-boards { margin: 40px 0; border-radius: 32px; background: #1C2132; border: 1px solid var(--surface); display: flex; align-items: center; gap: 56px; padding: 56px 64px; overflow: hidden; }
.la-boards-shots { display: flex; gap: 24px; height: 470px; align-items: flex-start; flex-shrink: 0; }
.la-boards-shots .la-phone { width: 240px; }
.la-boards-shots .la-drop { margin-top: 40px; }

.la-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.la-chip { display: inline-flex; align-items: center; padding: 10px 16px; border-radius: 14px; background: var(--surface); font-size: 15px; font-weight: 700; }
.la-chip-on { background: var(--teal); color: #FFFFFF; }
.la-topics { display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; padding-top: 56px; padding-bottom: 24px; }
.la-topics .la-chips { justify-content: center; max-width: 900px; gap: 12px; }

.la-faq { padding-top: 64px; }
.la-faq h2 { margin-bottom: 28px; }
.la-faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.la-q { border-radius: 24px; background: var(--surface); padding: 24px 28px; display: flex; flex-direction: column; gap: 8px; }
.la-q h3 { font-size: 18px; }
.la-q p { font-size: 15px; line-height: 1.6; color: var(--muted); }

.la-cta { margin: 64px 0 24px; border-radius: 32px; background: linear-gradient(120deg, var(--accent), #C4553A); color: var(--bg); display: flex; align-items: center; gap: 32px; padding: 48px 56px; }
.la-cta div { flex: 1; }
.la-cta h2 { font-size: 40px; line-height: 1.1; }
.la-cta p { font-size: 18px; margin-top: 10px; font-weight: 500; }

/* Legal pages */
.page-head { padding-top: 56px; display: flex; flex-direction: column; gap: 10px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 1.4px; color: var(--accent); text-transform: uppercase; }
.page-head h1 { font-size: 46px; }
.page-head .meta { font-size: 15px; color: var(--muted); }
.page-head .lede { max-width: 760px; font-size: 18px; }
.legal { display: flex; gap: 56px; align-items: flex-start; padding-top: 40px; padding-bottom: 72px; }
.toc { width: 240px; flex-shrink: 0; position: sticky; top: 24px; display: flex; flex-direction: column; gap: 2px; }
.toc-label { font-size: 12px; font-weight: 700; letter-spacing: 1.2px; color: var(--muted); padding: 0 12px 10px; }
.toc a { display: block; padding: 8px 12px; border-radius: 10px; font-size: 14px; color: var(--muted); text-decoration: none; border-left: 3px solid transparent; }
.toc a:hover { background: var(--surface); color: var(--text); border-left-color: var(--accent); }
.toc-mobile { display: none; }
.article { flex: 1; min-width: 0; max-width: 760px; display: flex; flex-direction: column; gap: 28px; }
.short { border-radius: 24px; background: var(--deep); padding: 24px 28px; display: flex; flex-direction: column; gap: 12px; }
.short h2 { font-size: 18px; }
.ticks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.ticks li { display: flex; gap: 10px; font-size: 15px; }
.ticks svg { flex-shrink: 0; margin-top: 3px; }
.sec { display: flex; flex-direction: column; gap: 12px; padding-bottom: 28px; border-bottom: 1px solid var(--surface); }
.sec:last-child { border-bottom: 0; }
.sec h2 { font-size: 22px; }
.num { color: var(--teal); font-family: "Roboto Mono", monospace; font-size: 16px; margin-right: 10px; }
.sec h3 { font-size: 16px; margin-top: 4px; }
.sec p, .sec li { font-size: 16px; line-height: 1.7; color: var(--muted); }
.sec ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 4px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile { border-radius: 16px; background: var(--surface); padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.tile strong { font-size: 15px; }
.tile span { font-size: 14px; color: var(--muted); }
.lists .note { margin-top: 16px; }
.note { border-radius: 16px; border: 1px solid var(--deep); padding: 16px; font-size: 14px; color: var(--muted); }

/* Delete account */
.ways { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-top: 40px; padding-bottom: 32px; }
.way { border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.way-app { background: var(--surface); }
.way-email { border: 1px solid var(--deep); gap: 14px; }
.way-label { font-size: 13px; font-weight: 700; letter-spacing: 1.2px; color: var(--teal); }
.steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 18px; }
.steps li { display: flex; align-items: center; gap: 14px; font-size: 16px; }
.step-n { width: 36px; height: 36px; border-radius: 50%; background: var(--bg); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--accent); flex-shrink: 0; }
.danger { color: var(--danger); }
.way-email p { font-size: 16px; line-height: 1.6; color: var(--muted); }
.lists { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-bottom: 72px; }
.lists h2 { font-size: 18px; margin-bottom: 10px; }
.lists ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.lists li { display: flex; gap: 10px; font-size: 15px; color: var(--muted); }
.mark-x { color: var(--danger); font-weight: 700; }
.mark-dot { color: var(--teal); font-weight: 700; }

/* Credits and 404 */
.credits { list-style: none; margin: 0; padding: 40px 0 72px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.credits li { border-radius: 16px; background: var(--surface); padding: 20px; display: flex; flex-direction: column; gap: 4px; }
.credits span { color: var(--muted); font-size: 14px; }
.notfound { padding-top: 96px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.notfound h1 { font-size: 46px; }

@media (max-width: 1080px) {
  :root { --gutter: 40px; }
  .la-hero h1 { font-size: 52px; }
  .la-fan { width: 420px; height: 540px; }
  .la-fan .la-phone { width: 190px; }
  .la-fan .la-fan-mid { width: 230px; left: 95px; }
  .la-toast-a { left: -40px; top: 360px; }
  .la-feature { gap: 40px; }
  .la-shot { width: 380px; height: 480px; }
  .la-shot .la-phone { width: 240px; }
  .la-boards { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 860px) {
  :root { --gutter: 16px; }
  .site-nav, .get-app { display: none; }
  .menu { display: block; }
  .header-row { padding-top: 14px; padding-bottom: 14px; }
  .brand { font-size: 17px; }
  .brand .logo { width: 30px; height: 30px; }

  .lede { font-size: 16px; }
  .la-hero-row { flex-direction: column; align-items: stretch; gap: 28px; padding-top: 16px; padding-bottom: 28px; }
  .la-hero-copy { gap: 18px; }
  .la-hero h1 { font-size: 42px; letter-spacing: 0; }
  .la-trust { margin-top: 0; }
  .la-fan { align-self: center; width: 300px; height: 430px; }
  .la-fan-left, .la-fan-right, .la-toast-b { display: none; }
  .la-fan .la-fan-mid { width: 210px; left: 45px; }
  .la-toast { font-size: 12px; }
  .la-toast-a { left: -10px; top: 300px; }
  .la-ticker { padding: 12px 0; font-size: 13px; }
  .la-stats { grid-template-columns: 1fr 1fr; gap: 18px; padding-top: 28px; padding-bottom: 28px; }
  .la-stats strong { font-size: 30px; }
  .la-stats span { font-size: 13px; }
  .la-feature, .la-flip { flex-direction: column-reverse; align-items: stretch; gap: 14px; padding-top: 12px; padding-bottom: 28px; }
  .la-feature-copy { gap: 14px; }
  .la-feature-copy h2, .la-topics h2, .la-faq h2 { font-size: 30px; }
  .la-feature-copy p { font-size: 15px; }
  .la-shot { width: 100%; height: 360px; border-radius: 24px; padding-top: 28px; }
  .la-shot .la-phone { width: 220px; }
  .la-boards { margin: 8px 0 28px; padding: 28px 20px; gap: 28px; border-radius: 24px; align-items: stretch; }
  .la-boards-shots { height: 360px; gap: 14px; justify-content: center; }
  .la-boards-shots .la-phone { width: 150px; border-width: 6px; border-radius: 26px; }
  .la-topics { padding-top: 28px; }
  .la-faq { padding-top: 40px; }
  .la-faq-grid { grid-template-columns: 1fr; }
  .la-q { padding: 20px; }
  .la-cta { flex-direction: column; align-items: flex-start; margin-top: 40px; padding: 28px; gap: 20px; border-radius: 24px; }
  .la-cta h2 { font-size: 26px; }
  .la-cta p { font-size: 16px; }

  .page-head { padding-top: 28px; gap: 8px; }
  .page-head h1 { font-size: 32px; }
  .page-head .meta { font-size: 13px; }
  .legal { flex-direction: column; gap: 16px; padding-top: 20px; padding-bottom: 48px; }
  .toc { display: none; }
  .toc-mobile { display: block; order: 1; width: 100%; }
  .toc-mobile summary { list-style: none; display: flex; align-items: center; min-height: 52px; padding: 0 16px; border-radius: 14px; background: var(--surface); font-size: 15px; cursor: pointer; }
  .toc-mobile summary::-webkit-details-marker { display: none; }
  .toc-mobile summary svg { margin-left: auto; transition: transform 0.15s; }
  .toc-mobile[open] summary svg { transform: rotate(180deg); }
  .toc-mobile nav { display: flex; flex-direction: column; padding: 8px 0; }
  .toc-mobile nav a { padding: 12px 16px; min-height: 44px; color: var(--muted); text-decoration: none; }
  .article { display: contents; }
  .short { order: 0; border-radius: 20px; padding: 18px; }
  .sec { order: 2; padding-bottom: 24px; }
  .sec h2 { font-size: 20px; }
  .num { font-size: 14px; margin-right: 8px; }
  .sec p, .sec li { font-size: 15px; line-height: 1.65; }
  .grid2, .ways, .lists, .credits { grid-template-columns: 1fr; }
  .ways { padding-top: 24px; }

  .footer-row { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* Keep the page still for people who ask for less motion: the ticker wraps instead of scrolling. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dot, .la-toast { animation: none; }
  .la-ticker { white-space: normal; }
  .la-ticker-track { flex-shrink: 1; flex-wrap: wrap; row-gap: 8px; animation: none; }
  .la-ticker-track[aria-hidden="true"] { display: none; }
}
