/* Synch — public website.
   BRAND: Synch's official colours are light blue + greys. The two --blue values below are
   placeholders until the official hex codes are confirmed — change them here and nowhere else. */
:root {
  --blue: #3d9ad6;          /* Synch light blue (placeholder) — fills, accents */
  --blue-ink: #1d6fa6;      /* same hue, dark enough for text/links on white */
  --blue-wash: #eaf4fb;

  --bg: #ffffff;
  --bg-2: #f5f7f9;
  --panel: #ffffff;
  --line: #e3e7ec;
  --ink: #111418;
  --ink-2: #3b434d;
  --mute: #69737f;
  --shadow: 0 1px 2px rgba(16, 20, 24, .05), 0 8px 24px rgba(16, 20, 24, .06);

  --radius: 14px;
  --wrap: 1120px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --blue: #5eb2e6; --blue-ink: #7cc2ee; --blue-wash: #13222e;
    --bg: #0e1114; --bg-2: #13171b; --panel: #171c21; --line: #252c33;
    --ink: #eef1f4; --ink-2: #c3cad2; --mute: #8e98a3;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --blue: #5eb2e6; --blue-ink: #7cc2ee; --blue-wash: #13222e;
  --bg: #0e1114; --bg-2: #13171b; --panel: #171c21; --line: #252c33;
  --ink: #eef1f4; --ink-2: #c3cad2; --mute: #8e98a3;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  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(--ink); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--blue-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0; color: var(--ink); }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--mute); }

/* ── nav ── */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.nav__in { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; letter-spacing: -.01em; font-size: 1.02rem; }
.brand:hover { text-decoration: none; }
.brand__mark { width: 30px; height: 30px; flex: none; }
.nav__links { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.nav__links a:not(.btn) { color: var(--ink-2); font-weight: 500; font-size: .94rem; }
.nav__links a:not(.btn):hover, .nav__links a[aria-current="page"] { color: var(--ink); text-decoration: none; }
.nav__links a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--blue); padding-bottom: 2px; }
.nav__toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 10px; width: 40px; height: 40px; color: var(--ink); cursor: pointer; }
.theme-btn { background: none; border: 1px solid var(--line); border-radius: 10px; width: 36px; height: 36px; color: var(--ink-2); cursor: pointer; display: inline-grid; place-items: center; }
.theme-btn:hover { color: var(--ink); border-color: var(--mute); }
@media (max-width: 820px) {
  .nav__toggle { display: inline-grid; place-items: center; }
  .nav__links { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 20px 16px; }
  .nav.is-open .nav__links { display: flex; }
  .nav__links a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav__links a[aria-current="page"] { box-shadow: none; color: var(--blue-ink); }
  .nav__links .btn { margin-top: 12px; }
  .nav__links .theme-btn { margin-top: 12px; }
}

/* ── buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 10px;
  font: 600 .95rem/1 var(--font); border: 1px solid var(--line); background: var(--panel); color: var(--ink); cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .15s; }
.btn:hover { text-decoration: none; border-color: var(--mute); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-ink); border-color: var(--blue-ink); }
:root[data-theme="dark"] .btn--primary { color: #0b1620; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn--primary { color: #0b1620; } }
.btn--sm { height: 36px; padding: 0 14px; font-size: .88rem; }
.btn--ghost { background: transparent; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── sections ── */
.section { padding: 88px 0; }
.section--alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-ink); margin-bottom: 12px; }
.h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 700; }
.lead { font-size: 1.1rem; color: var(--ink-2); max-width: 62ch; margin-top: 14px; }
.section__head { margin-bottom: 44px; }
.section__head--center { text-align: center; }
.section__head--center .lead { margin-left: auto; margin-right: auto; }

/* ── hero ── */
.hero { padding: 96px 0 72px; }
.hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.2rem); font-weight: 800; letter-spacing: -.035em; max-width: 16ch; }
.hero h1 .accent { color: var(--blue-ink); }
.hero .lead { font-size: 1.2rem; max-width: 58ch; margin-top: 22px; }
.hero .btn-row { margin-top: 32px; }
.hero--split .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero--split h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
@media (max-width: 900px) { .hero--split .wrap { grid-template-columns: 1fr; } }
.hero__logo { width: 56px; height: 56px; border-radius: 14px; margin-bottom: 22px; }

/* ── grids + cards ── */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid--2, .grid--3 { grid-template-columns: 1fr; } }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card h3 { font-size: 1.12rem; font-weight: 650; margin-bottom: 8px; }
.card p { color: var(--ink-2); font-size: .97rem; }
.card--link { display: block; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; }
.card--link:hover { text-decoration: none; border-color: color-mix(in srgb, var(--blue) 55%, var(--line)); box-shadow: var(--shadow); transform: translateY(-2px); }
.card__more { display: inline-block; margin-top: 16px; font-weight: 600; font-size: .93rem; color: var(--blue-ink); }
.icon { width: 40px; height: 40px; border-radius: 10px; background: var(--blue-wash); color: var(--blue-ink); display: grid; place-items: center; margin-bottom: 18px; }
.icon svg { width: 22px; height: 22px; }

/* the two divisions */
.division { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; }
.division img { width: 52px; height: 52px; border-radius: 12px; }
.division ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; color: var(--ink-2); font-size: .95rem; }
.division li::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); margin-right: 10px; vertical-align: 2px; }

/* mission statement band */
.statement { font-size: clamp(1.4rem, 2.8vw, 2rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.3; max-width: 30ch; }
.statement .accent { color: var(--blue-ink); }

/* ── screenshots ── */
.shot { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--bg-2); }
.shot__bar { height: 30px; display: flex; align-items: center; gap: 6px; padding: 0 12px; border-bottom: 1px solid var(--line); background: var(--panel); }
.shot__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.shot__bar span { margin-left: 10px; font-size: .74rem; color: var(--mute); font-family: ui-monospace, Consolas, monospace; }
.shot img { width: 100%; height: auto; }
.feature { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center; }
.feature + .feature { margin-top: 96px; }
.feature--flip { grid-template-columns: 1.25fr 1fr; }
.feature--flip .feature__text { order: 2; }
.feature h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 12px; }
.feature p { color: var(--ink-2); }
.feature ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--ink-2); }
.feature li { padding-left: 26px; position: relative; }
.feature li::before { content: ''; position: absolute; left: 0; top: .5em; width: 14px; height: 8px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg); }
@media (max-width: 900px) {
  .feature, .feature--flip { grid-template-columns: 1fr; gap: 28px; }
  .feature--flip .feature__text { order: 0; }
  .feature + .feature { margin-top: 64px; }
}

/* steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.steps .card { position: relative; padding-top: 58px; }
.steps .card::before { counter-increment: step; content: counter(step); position: absolute; top: 22px; left: 26px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--blue-wash); color: var(--blue-ink); font-weight: 700; font-size: .85rem; display: grid; place-items: center; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

/* CTA band */
.cta { background: var(--ink); color: var(--bg); border-radius: 20px; padding: 56px; display: flex; gap: 32px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta h2 { color: inherit; font-size: clamp(1.5rem, 3vw, 2.1rem); max-width: 22ch; }
.cta p { color: color-mix(in srgb, var(--bg) 72%, transparent); margin-top: 10px; max-width: 52ch; }
.cta .btn:not(.btn--primary) { background: transparent; color: var(--bg); border-color: color-mix(in srgb, var(--bg) 35%, transparent); }
@media (max-width: 640px) { .cta { padding: 36px 24px; } }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--mute); font-weight: 400; font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq .answer { padding: 0 0 20px; color: var(--ink-2); display: grid; gap: 10px; }
.faq dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 4px 0 0; font-size: .95rem; }
.faq dt { font-weight: 600; color: var(--ink); }
.faq dd { margin: 0; }
@media (max-width: 560px) { .faq dl { grid-template-columns: 1fr; } .faq dd { margin-bottom: 8px; } }

/* forms (Tools) */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: .9rem; }
.input, .textarea { width: 100%; font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; }
.input:focus, .textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 22%, transparent); }
.input:disabled, .textarea:disabled { opacity: .6; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .row2 { grid-template-columns: 1fr; } }
.segmented { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; padding: 3px; margin-bottom: 20px; }
.segmented label { padding: 7px 14px; border-radius: 7px; cursor: pointer; font-size: .9rem; font-weight: 500; color: var(--ink-2); }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label:has(input:checked) { background: var(--blue-wash); color: var(--blue-ink); }
.status { margin-top: 14px; padding: 12px 14px; border-radius: 10px; font-size: .93rem; display: none; }
.status.is-shown { display: block; }
.status--ok { background: color-mix(in srgb, #2f9e6b 14%, transparent); color: #2f9e6b; }
.status--err { background: color-mix(in srgb, #d24b4b 14%, transparent); color: #d24b4b; }
.status--info { background: var(--blue-wash); color: var(--blue-ink); }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 40px 0 48px; margin-top: 40px; font-size: .92rem; color: var(--mute); }
.foot__in { display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap; align-items: flex-start; }
.foot__cols { display: flex; gap: 48px; flex-wrap: wrap; }
.foot h4 { margin: 0 0 10px; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot a { color: var(--mute); }
.foot a:hover { color: var(--ink); }

/* entrance */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
[hidden] { display: none !important; }

/* screenshots: crops sit flat (no browser bar); phone shots get a device frame */
.shot--crop { background: var(--panel); }
.shot picture, .shot picture img { display: block; width: 100%; height: auto; }
@media (max-width: 640px) {
  .shot picture img { max-height: 520px; object-fit: cover; object-position: top; }
  .shot__bar span { display: none; }
}
.phones { display: flex; justify-content: center; gap: 28px; }
.phone { margin: 0; width: 250px; flex: none; border-radius: 34px; padding: 9px; background: #15191e; box-shadow: var(--shadow); }
.phone img { border-radius: 26px; width: 100%; height: auto; }
@media (max-width: 860px) {
  .phones { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 20px 16px; margin: 0 -20px; }
  .phone { width: 220px; scroll-snap-align: center; }
}

/* full-width product showcase (whole-window screenshots need the room to be readable) */
.showcase-band { padding: 8px 0 88px; }
.showcase { margin: 0; }
.showcase-head { max-width: 720px; margin-bottom: 36px; }
.showcase-head h3 { font-size: clamp(1.5rem, 2.8vw, 2rem); font-weight: 700; margin-bottom: 12px; }
.showcase-head p { color: var(--ink-2); }

/* ── Privacy Centre (/legal) ── */
.legal { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; align-items: start; }
.legal-toc { position: sticky; top: 88px; font-size: .9rem; }
.legal-toc ol, .legal-toc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.legal-toc a { color: var(--ink-2); }
.legal-toc a:hover { color: var(--blue-ink); }
.legal-body { max-width: 72ch; color: var(--ink-2); }
.legal-body h2 { font-size: 1.35rem; margin: 44px 0 12px; color: var(--ink); scroll-margin-top: 84px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { font-size: 1.05rem; margin: 26px 0 8px; color: var(--ink); scroll-margin-top: 84px; }
.legal-body p { margin: 0 0 14px; }
.legal-body ul { margin: 0 0 16px; padding-left: 22px; display: grid; gap: 6px; }
.legal-body strong { color: var(--ink); }
.legal-body code { font: .88em ui-monospace, Consolas, monospace; background: var(--bg-2); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; }
.legal-table { overflow-x: auto; margin: 4px 0 20px; border: 1px solid var(--line); border-radius: 12px; }
.legal-table table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.legal-table th { text-align: left; background: var(--bg-2); color: var(--ink); font-weight: 600; }
.legal-table th, .legal-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal-table tr:last-child td { border-bottom: none; }
.legal-draft { margin-bottom: 28px; padding: 14px 18px; border-radius: 12px; border: 1px solid color-mix(in srgb, #c98a12 45%, var(--line)); background: color-mix(in srgb, #c98a12 12%, var(--bg)); color: var(--ink); }
mark.todo { background: color-mix(in srgb, #c98a12 22%, transparent); color: var(--ink); padding: 0 4px; border-radius: 4px; font-weight: 600; }
.legal-glance { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 6px; color: var(--ink-2); }
@media (max-width: 860px) {
  .legal { grid-template-columns: 1fr; gap: 24px; }
  .legal-toc { position: static; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; }
}
