/* synced.ro - hand-written, no build step, no external requests.
   Palette comes from the brand mark: emerald -> teal -> blue on white. */

:root {
  --brand-green: #17b978;
  --brand-teal: #10b3a3;
  --brand-blue: #1d4ed8;
  --brand-gradient: linear-gradient(100deg, #17b978 0%, #10b3a3 42%, #1d4ed8 100%);

  --ink: #0b1220;
  --ink-soft: #334155;
  --ink-faint: #64748b;
  --line: #e2e8f0;
  --surface: #ffffff;
  --surface-alt: #f7f9fc;
  --dark: #0a1120;

  --radius: 18px;
  --radius-lg: 26px;
  --shadow-sm: 0 1px 2px rgba(11, 18, 32, .06), 0 1px 3px rgba(11, 18, 32, .04);
  --shadow-md: 0 8px 24px -12px rgba(11, 18, 32, .18), 0 2px 6px rgba(11, 18, 32, .05);
  --shadow-lg: 0 30px 60px -30px rgba(11, 18, 32, .28);

  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--brand-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Grid/flex children default to min-width:auto and refuse to shrink below
   their content, which makes long tables push the whole page sideways on a
   phone. Every layout container opts out of that. */
.hero .wrap > *, .split > *, .grid > *, .steps > *, .foot-grid > *, .card { min-width: 0; }
h1, h2, h3, p, li, summary { overflow-wrap: break-word; }
h1, h2 { text-wrap: balance; }

.skip {
  position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff;
  padding: 12px 18px; border-radius: 0 0 12px 0; z-index: 100;
}
.skip:focus { left: 0; }

/* ---------- header ---------- */

header.site {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

header.site .wrap {
  display: flex; align-items: center; gap: 20px;
  min-height: 68px;
}

.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand span { font-size: 1.22rem; letter-spacing: -.03em; }

nav.main { display: flex; align-items: center; gap: 22px; margin-left: auto; }
nav.main a { color: var(--ink-soft); font-size: .94rem; font-weight: 500; }
nav.main a:hover { color: var(--ink); text-decoration: none; }

.lang {
  display: inline-flex; align-items: center; gap: 2px;
  border: 1px solid var(--line); border-radius: 999px; padding: 3px;
  font-size: .82rem; font-weight: 600;
}
.lang a { padding: 3px 10px; border-radius: 999px; color: var(--ink-faint); }
.lang a:hover { text-decoration: none; color: var(--ink); }
.lang a[aria-current="true"] { background: var(--ink); color: #fff; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: .96rem; padding: 12px 22px;
  border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  transition: transform .12s ease, box-shadow .16s ease, background .16s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand-gradient); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { box-shadow: var(--shadow-lg); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: #cbd5e1; }
/* `nav.main a` (0,1,1) outranks `.btn-dark` (0,1,0), which silently greyed the
   header CTA's label. Keep the button colours winning inside the nav. */
.btn-dark { background: var(--ink); color: #fff; }
nav.main a.btn-dark, nav.main a.btn-dark:hover { color: #fff; }
nav.main a.btn:hover { text-decoration: none; }
.btn-sm { padding: 9px 16px; font-size: .88rem; }

.menu-toggle {
  display: none; margin-left: auto; background: none; border: 1px solid var(--line);
  border-radius: 10px; padding: 8px 10px; cursor: pointer;
}
.menu-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; }
.menu-toggle span + span { margin-top: 4px; }

/* ---------- hero ---------- */

.hero { position: relative; overflow: hidden; padding: 76px 0 40px; }
.hero::before {
  content: ""; position: absolute; inset: -180px 0 auto 0; height: 520px;
  background: radial-gradient(60% 60% at 18% 20%, rgba(23, 185, 120, .16), transparent 70%),
              radial-gradient(55% 55% at 82% 8%, rgba(29, 78, 216, .14), transparent 72%);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; gap: 52px; grid-template-columns: 1.08fr .92fr; align-items: center; }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(29, 78, 216, .18); background: rgba(29, 78, 216, .06);
  color: #1e3a8a; font-size: .8rem; font-weight: 600;
  padding: 6px 13px; border-radius: 999px;
}
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand-teal); }

h1 {
  font-size: clamp(2.15rem, 4.4vw, 3.5rem);
  line-height: 1.08; letter-spacing: -.035em; margin: 20px 0 0;
  font-weight: 800;
}
h1 .grad, .grad {
  background: var(--brand-gradient); -webkit-background-clip: text;
  background-clip: text; color: transparent;
}
.lead { font-size: 1.12rem; color: var(--ink-soft); margin: 20px 0 0; max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.micro { margin: 16px 0 0; font-size: .87rem; color: var(--ink-faint); }

/* ---------- app mock ---------- */

.mock {
  border-radius: var(--radius-lg); border: 1px solid var(--line);
  background: #fff; box-shadow: var(--shadow-lg); overflow: hidden;
  max-width: 100%;
}
.mock-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 14px; border-bottom: 1px solid var(--line); background: var(--surface-alt);
}
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: #d8e0ea; }
.mock-bar b { margin-left: 8px; font-size: .74rem; font-weight: 600; color: var(--ink-faint); letter-spacing: .02em; }
.mock-body { padding: 16px; overflow-x: auto; -webkit-overflow-scrolling: touch; }

.tbl { width: 100%; border-collapse: collapse; font-size: .78rem; }
.tbl th {
  text-align: left; font-weight: 600; color: var(--ink-faint); font-size: .68rem;
  text-transform: uppercase; letter-spacing: .06em; padding: 0 8px 8px;
}
.tbl td { padding: 9px 8px; border-top: 1px solid var(--line); color: var(--ink-soft); vertical-align: middle; }
.tbl td:first-child, .tbl th:first-child { padding-left: 0; }
.tbl .num { font-family: var(--mono); font-size: .72rem; color: var(--ink); }

.pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 999px; font-size: .68rem; font-weight: 600;
  background: #eef6ff; color: #1e40af; white-space: nowrap;
}
.pill.ok { background: #e7f8f0; color: #047857; }
.pill.warn { background: #fff7e6; color: #b45309; }
.pill.mute { background: #f1f5f9; color: #475569; }

.mock-note { margin: 12px 0 0; font-size: .72rem; color: var(--ink-faint); text-align: center; }

/* ---------- sections ---------- */

section { padding: 76px 0; }
section.alt { background: var(--surface-alt); border-block: 1px solid var(--line); }

.sec-head { max-width: 46rem; }
.sec-head h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); letter-spacing: -.03em; margin: 0 0 12px; line-height: 1.18; }
.sec-head p { margin: 0; color: var(--ink-soft); font-size: 1.03rem; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .12em; font-size: .72rem;
  font-weight: 700; color: var(--brand-teal); margin: 0 0 12px;
}

.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm);
}
.card h3 { margin: 0 0 8px; font-size: 1.02rem; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--ink-soft); font-size: .93rem; }
.card .ico {
  width: 38px; height: 38px; border-radius: 11px; margin-bottom: 14px;
  display: grid; place-items: center;
  background: rgba(23, 185, 120, .12); color: #047857;
}
.card .ico svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.card .ico.blue { background: rgba(29, 78, 216, .1); color: #1e40af; }
.card .ico.teal { background: rgba(16, 179, 163, .13); color: #0f766e; }

.pain { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.pain div { padding: 20px 22px; border-radius: var(--radius); background: #fff; border: 1px dashed #cbd5e1; }
.pain strong { display: block; font-size: .95rem; }
.pain span { font-size: .88rem; color: var(--ink-faint); }

.steps { counter-reset: s; display: grid; gap: 20px; grid-template-columns: repeat(4, 1fr); }
.step { position: relative; padding-top: 8px; }
.step::before {
  counter-increment: s; content: counter(s);
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px;
  background: var(--brand-gradient); color: #fff; font-weight: 700; font-size: .92rem;
  margin-bottom: 14px; box-shadow: var(--shadow-md);
}
.step h3 { margin: 0 0 6px; font-size: 1rem; }
.step p { margin: 0; font-size: .9rem; color: var(--ink-soft); }

/* partners strip */
.partners { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.partner {
  height: 62px; min-width: 128px; padding: 0 20px; display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
}
.partner img { max-height: 30px; width: auto; filter: grayscale(1) opacity(.72); transition: filter .16s ease; }
.partner:hover img { filter: none; }
.partner.soon { background: transparent; border-style: dashed; color: var(--ink-faint); font-size: .82rem; font-weight: 600; }

/* credits + mockups */
.split { display: grid; gap: 44px; grid-template-columns: 1fr 1fr; align-items: center; }
.credit-eq {
  display: inline-flex; align-items: center; gap: 12px; font-weight: 700;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 18px; box-shadow: var(--shadow-sm); font-size: .95rem;
}
.credit-eq b { color: var(--brand-blue); }

/* security list */
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ticks li { display: flex; gap: 12px; font-size: .94rem; color: var(--ink-soft); }
.ticks li::before {
  content: "✓"; flex: 0 0 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; font-size: .72rem; font-weight: 700;
  background: rgba(23, 185, 120, .14); color: #047857; margin-top: 2px;
}

/* faq */
details.faq {
  border: 1px solid var(--line); border-radius: 14px; background: #fff;
  padding: 16px 20px; box-shadow: var(--shadow-sm);
}
details.faq + details.faq { margin-top: 12px; }
details.faq summary {
  cursor: pointer; font-weight: 600; font-size: .97rem; list-style: none;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-size: 1.3rem; color: var(--ink-faint); line-height: 1; }
details.faq[open] summary::after { content: "−"; }
details.faq p { margin: 12px 0 0; color: var(--ink-soft); font-size: .93rem; }

/* final cta */
.cta-band {
  border-radius: var(--radius-lg); padding: 54px 44px; text-align: center;
  background: var(--brand-gradient); color: #fff; box-shadow: var(--shadow-lg);
}
.cta-band h2 { margin: 0 0 12px; font-size: clamp(1.5rem, 2.6vw, 2.1rem); letter-spacing: -.03em; }
.cta-band p { margin: 0 auto; max-width: 40rem; opacity: .92; }
.cta-band .hero-cta { justify-content: center; margin-top: 26px; }
.cta-band .btn-ghost { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .42); color: #fff; }
.cta-band .btn-ghost:hover { background: rgba(255, 255, 255, .22); }

/* footer */
footer.site { background: var(--dark); color: #cbd5e1; padding: 60px 0 34px; }
footer.site a { color: #cbd5e1; }
footer.site a:hover { color: #fff; }
.foot-grid { display: grid; gap: 36px; grid-template-columns: 1.5fr 1fr 1fr 1fr; }
.foot-grid h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 14px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: .9rem; }
.foot-brand img { width: 36px; height: 36px; border-radius: 10px; }
.foot-brand p { margin: 14px 0 0; font-size: .9rem; color: #94a3b8; max-width: 24rem; }
.foot-bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(148, 163, 184, .2);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: .8rem; color: #94a3b8;
}
.foot-bottom a { color: #94a3b8; }

/* 404 */
.center-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 24px; }

/* ---------- responsive ---------- */

/* The header is the first thing to break: brand + 4 links + lang + CTA need
   ~1000px. Below that the links fold into the hamburger menu. */
@media (max-width: 1040px) {
  header.site .wrap { gap: 14px; }
  nav.main { gap: 14px; }
  nav.main a { font-size: .87rem; }
  /* Mark only: the wordmark is the widest thing that can go and it is still
     obvious what the link is (it goes home). */
  .brand span { display: none; }
  nav.main .btn-sm { padding: 8px 14px; font-size: .84rem; }
}

@media (max-width: 980px) {
  .hero .wrap, .split { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  nav.main { display: none; }
  .menu-toggle { display: block; }
  header.site.open nav.main {
    display: flex; flex-direction: column; align-items: stretch; gap: 4px;
    position: absolute; left: 0; right: 0; top: 68px;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px 24px 20px;
  }
  header.site.open nav.main a { padding: 10px 0; font-size: 1rem; }
  header.site.open nav.main .btn { margin-top: 8px; }
  header.site.open .lang { align-self: flex-start; }
  .hero { padding-top: 46px; }
  section { padding: 56px 0; }
  .grid-3, .grid-2, .pain { grid-template-columns: 1fr; }
  .cta-band { padding: 38px 22px; }
  .foot-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* print: the site is not a brochure people print, but keep it readable */
@media print {
  header.site, footer.site, .cta-band, .hero::before { display: none; }
}
