/* MetaSync marketing site - shared styles.
   Every page links this file; nothing here is page-specific. Static pages
   duplicate their header and footer markup (no build step, on purpose), so
   this file is the one place styling changes have to be made. */

:root {
      --ink:      #10223A;
      --blue:     #2856D8;
      --blue-dk:  #1F46B5;
      --body:     #46566D;
      --muted:    #526177;
      --line:     #DDE5F1;
      --tint:     #EEF3FF;
      --tint-line:#C6D8FF;
      --wash:     #F5F8FC;
      --white:    #FFFFFF;
    }

    *, *::before, *::after { box-sizing: border-box; }

    html { scroll-behavior: smooth; }
    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      * { animation: none !important; transition: none !important; }
    }

    body {
      margin: 0;
      background: var(--white);
      color: var(--ink);
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
      font-size: 16px;
      line-height: 1.6;
      -webkit-font-smoothing: antialiased;
    }

    img { max-width: 100%; height: auto; display: block; }
    a { color: var(--blue); }

    .wrap {
      width: 100%;
      max-width: 1180px;
      margin: 0 auto;
      padding-inline: 20px;
    }

    /* ---------- header ---------- */
    .site-header {
      position: sticky;
      top: 0;
      z-index: 50;
      background: rgba(255,255,255,0.94);
      backdrop-filter: saturate(180%) blur(10px);
      border-bottom: 1px solid var(--line);
    }
    .nav {
      display: flex;
      align-items: center;
      gap: 16px;
      padding-block: 14px;
    }
    .brand {
      display: flex;
      align-items: center;
      gap: 10px;
      text-decoration: none;
      color: var(--ink);
      flex: none;
    }
    .brand img { width: 38px; height: 38px; }
    .brand span { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }

    .nav-links {
      display: flex;
      align-items: center;
      gap: 26px;
      margin-left: auto;
    }
    .nav-links a {
      color: var(--ink);
      text-decoration: none;
      font-size: 15px;
      font-weight: 600;
      padding-block: 6px;
      border-bottom: 2px solid transparent;
    }
    .nav-links a:hover { color: var(--blue); border-bottom-color: var(--blue); }

    .nav-actions { display: flex; align-items: center; gap: 12px; flex: none; }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      font-size: 15px;
      font-weight: 700;
      text-decoration: none;
      border-radius: 6px;
      border: 1px solid transparent;
      padding: 12px 22px;
      cursor: pointer;
      white-space: nowrap;
    }
    .btn-primary { background: var(--blue); color: #fff; }
    .btn-primary:hover { background: var(--blue-dk); }
    .btn-ghost { color: var(--ink); border-color: #B5C2D6; background: #fff; }
    .btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
    .btn-quiet { color: var(--ink); background: none; padding-inline: 8px; }
    .btn-quiet:hover { color: var(--blue); }
    .btn-white { background: #fff; color: var(--blue); }
    .btn-lg { padding: 16px 26px; font-size: 16px; }

    a:focus-visible, button:focus-visible {
      outline: 3px solid var(--blue);
      outline-offset: 2px;
      border-radius: 4px;
    }

    .nav-toggle {
      display: none;
      margin-left: auto;
      background: none;
      border: 1px solid var(--line);
      border-radius: 6px;
      padding: 9px 11px;
      cursor: pointer;
      color: var(--ink);
    }
    .nav-toggle svg { display: block; }

    /* ---------- sections ---------- */
    section { scroll-margin-top: 80px; }
    .band { background: var(--wash); }
    .pad { padding-block: 84px; }

    .eyebrow {
      font-size: 12px;
      font-weight: 800;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--blue);
      margin: 0 0 14px;
    }
    h1, h2, h3 { margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
    h1 { font-size: clamp(34px, 5.2vw, 50px); font-weight: 800; line-height: 1.04; }
    h2 { font-size: clamp(28px, 4vw, 38px); font-weight: 800; line-height: 1.1; }
    h3 { font-size: 20px; font-weight: 700; }
    p { margin: 0; }
    .lede { font-size: 17px; line-height: 1.6; color: var(--body); }

    /* ---------- hero ---------- */
    .hero { display: grid; grid-template-columns: minmax(0, 10fr) minmax(0, 9fr); gap: 56px; align-items: center; padding-block: 82px 72px; }
    .hero-copy > * + * { margin-top: 22px; }
    .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
    .hero-note { font-size: 14px; color: #5C6B80; }
    .checks { display: flex; flex-wrap: wrap; gap: 10px 18px; list-style: none; margin: 0; padding: 0; }
    .checks li { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--ink); }
    .checks svg { flex: none; color: var(--blue); }
    .hero-shot { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 18px 50px rgba(16,34,58,0.10); }

    /* ---------- trust strip ---------- */
    .trust { border-block: 1px solid var(--line); background: var(--wash); }
    .trust ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 42px; list-style: none; margin: 0; padding-block: 22px; }
    .trust li { font-size: 14px; font-weight: 700; letter-spacing: 0.02em; color: var(--muted); }

    /* ---------- generic grid ---------- */
    .grid { display: grid; gap: 24px; }
    .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

    .value h3 { margin-bottom: 8px; }
    .value p { color: var(--body); }
    .value-icon {
      width: 46px; height: 46px; border-radius: 10px;
      background: var(--tint); color: var(--blue);
      display: flex; align-items: center; justify-content: center;
      margin-bottom: 16px;
    }

    /* ---------- feature rows ---------- */
    .feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 52px; align-items: start; padding-block: 44px; }
    .feature:nth-child(even) .feature-shot { order: -1; }
    .feature-copy > * + * { margin-top: 14px; }
    .feature-shot img { border: 1px solid var(--line); border-radius: 10px; }
    .feature-shots { display: grid; gap: 16px; }

    /* ---------- pricing ---------- */
    .pricing-head { text-align: center; display: grid; justify-items: center; gap: 12px; }
    .trial-banner {
      display: inline-block;
      padding: 12px 22px;
      background: var(--tint);
      border: 1px solid var(--tint-line);
      border-radius: 999px;
      font-size: 15px;
      font-weight: 700;
      color: var(--blue);
      margin-top: 6px;
    }
    .price-card {
      display: flex;
      flex-direction: column;
      padding: 30px;
      background: #fff;
      border: 1px solid var(--line);
      border-radius: 8px;
    }
    .price-card.is-featured { background: var(--blue); border-color: var(--blue); color: #fff; }
    .price-label { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; color: var(--blue); }
    .is-featured .price-label { color: #BFD2FF; }
    .price-tier { font-size: 25px; font-weight: 800; margin-top: 18px; }
    .price-amount { font-size: 48px; font-weight: 800; line-height: 1.1; margin-top: 24px; }
    .price-detail { color: var(--muted); }
    .is-featured .price-detail { color: #D9E5FF; }
    .price-trial { display: flex; align-items: center; gap: 7px; margin-top: 14px; font-size: 14px; font-weight: 700; color: var(--blue); }
    .is-featured .price-trial { color: #fff; }
    .price-card .btn { margin-top: 26px; }

    /* ---------- roadmap ---------- */
    .roadmap-item { padding: 22px 0; border-top: 1px solid var(--line); }
    .roadmap-item h3 { margin-bottom: 4px; }
    .roadmap-item p { color: var(--body); }

    /* ---------- faq ---------- */
    .faq details { border-bottom: 1px solid var(--line); }
    .faq summary {
      cursor: pointer;
      list-style: none;
      padding: 20px 40px 20px 0;
      font-size: 17px;
      font-weight: 700;
      color: var(--ink);
      position: relative;
    }
    .faq summary::-webkit-details-marker { display: none; }
    .faq summary::after {
      content: '';
      position: absolute; right: 8px; top: 50%;
      width: 10px; height: 10px;
      border-right: 2px solid var(--muted);
      border-bottom: 2px solid var(--muted);
      transform: translateY(-70%) rotate(45deg);
    }
    .faq details[open] summary::after { transform: translateY(-20%) rotate(-135deg); }
    .faq .answer { padding: 0 36px 20px 0; color: var(--muted); }

    /* ---------- cta ---------- */
    .cta { background: var(--blue); color: #fff; text-align: center; }
    .cta h2 { color: #fff; }
    .cta p { color: #D9E5FF; margin-top: 12px; }
    .cta .btn { margin-top: 26px; }

    /* ---------- footer ---------- */
    .site-footer { background: var(--ink); color: #C7D2E4; }
    .footer-top { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; padding-block: 50px 34px; }
    .footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; }
    .footer-brand img { width: 34px; height: 34px; }
    .footer-brand span { font-size: 20px; font-weight: 800; }
    .footer-top p { margin-top: 14px; font-size: 14px; line-height: 1.7; }
    .footer-top h4 { margin: 0 0 12px; font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #8CA0BE; }
    .footer-top ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
    .footer-top a { color: #C7D2E4; text-decoration: none; font-size: 15px; }
    .footer-top a:hover { color: #fff; text-decoration: underline; }
    /* Two strips between the link columns and the copyright: what protects the
       visitor, and what they can pay with. Only claims we can actually stand
       behind - the site is HTTPS, checkout is Stripe-hosted, and Stripe takes
       these four card brands. No certification badge we do not hold. */
    .footer-trust {
      border-top: 1px solid rgba(255,255,255,0.12);
      padding-block: 26px;
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
      gap: 34px;
    }
    .footer-trust h4 { margin: 0 0 14px; font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #8CA0BE; }
    .badges { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
    .badge {
      display: inline-flex;
      align-items: center;
      gap: 9px;
      padding: 9px 13px;
      border: 1px solid rgba(255,255,255,0.18);
      background: rgba(255,255,255,0.05);
      border-radius: 6px;
      font-size: 13px;
      font-weight: 600;
      color: #DCE5F2;
      line-height: 1.25;
    }
    .badge svg { flex: none; color: #7FE0B0; }
    .badge-note { margin-top: 12px; font-size: 12.5px; line-height: 1.6; color: #8CA0BE; }
    .cards { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
    /* Card marks sized to the real thing: payment cards are 1.586:1. */
    .card-mark {
      width: 54px;
      height: 34px;
      border-radius: 5px;
      background: #FFFFFF;
      display: flex;
      align-items: center;
      justify-content: center;
      flex: none;
    }
    .card-mark svg { display: block; }

    .footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-block: 20px 28px; font-size: 13px; color: #8CA0BE; }

    /* ---------- responsive ---------- */
    @media (max-width: 1000px) {
      .hero { grid-template-columns: 1fr; gap: 40px; padding-block: 48px 56px; }
      .feature, .feature:nth-child(even) .feature-shot { grid-template-columns: 1fr; order: 0; gap: 28px; }
      .grid-3 { grid-template-columns: 1fr 1fr; }
      .grid-4 { grid-template-columns: 1fr 1fr; }
      .footer-top { grid-template-columns: 1fr 1fr; }
    }
    @media (max-width: 760px) {
      .pad { padding-block: 60px; }
      .nav-toggle { display: block; }
      .nav-links {
        display: none;
        position: absolute;
        left: 0; right: 0; top: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin: 0;
        padding: 8px 20px 18px;
        background: #fff;
        border-bottom: 1px solid var(--line);
      }
      .nav-links.is-open { display: flex; }
      .nav-links a { padding-block: 13px; border-bottom: 1px solid var(--line); }
      .nav-links a:last-child { border-bottom: none; }
      /* Brand + burger + CTA overran 390px and pushed the whole document
         wider than the screen. Trim the header row rather than let the page
         scroll sideways. */
      .nav { gap: 10px; }
      .brand span { font-size: 19px; }
      .brand img { width: 34px; height: 34px; }
      .nav-actions .btn-quiet { display: none; }
      .nav-actions .btn-primary { padding: 10px 14px; font-size: 14px; }
      .grid-3, .grid-4 { grid-template-columns: 1fr; }
      .footer-top { grid-template-columns: 1fr; gap: 30px; }
      .footer-trust { grid-template-columns: 1fr; gap: 26px; }
    }

/* ---------- inner pages ---------- */
/* Pages under / share the home page's system; these are the few pieces the
   home page has no use for. */
.page-head {
  padding-block: 62px 46px;
  max-width: 46rem;
}
.page-head h1 { margin-top: 12px; }
.page-head .lede { margin-top: 18px; }
.page-head .trial-banner { margin-top: 22px; }

.wrap.narrow { max-width: 50rem; }

.fineprint {
  margin-top: 26px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 46rem;
}

.tick-grid {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 28px;
}
.tick-grid li {
  position: relative;
  padding-left: 27px;
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--ink);
}
.tick-grid li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 6px;
  width: 11px;
  height: 6px;
  border-left: 2.5px solid var(--blue);
  border-bottom: 2.5px solid var(--blue);
  transform: rotate(-45deg);
}

.callout {
  margin-top: 26px;
  padding: 18px 22px;
  background: var(--tint);
  border: 1px solid var(--tint-line);
  border-left-width: 4px;
  border-radius: 6px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink);
}
.callout strong { display: block; margin-bottom: 4px; }

@media (max-width: 1000px) {
  .tick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .page-head { padding-block: 40px 30px; }
  .tick-grid { grid-template-columns: 1fr; }
}

/* ---------- security page ---------- */
.sec-item {
  padding-block: 22px;
  border-top: 1px solid var(--line);
}
.sec-item:first-of-type { border-top: none; }
.sec-item h3 { margin: 0 0 8px; }
.sec-item p { color: var(--body); margin: 0; }


/* ---------- demo video ---------- */
.demo-head { text-align: center; display: grid; justify-items: center; gap: 10px; margin-bottom: 32px; }
.demo-frame {
  max-width: 900px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(16, 34, 58, 0.10);
  background: #000;
}
.demo-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-width: 100%;
  background: #000;
}
