/* DataCover — shared design system.
   Visual language follows GatesFlow (beige theme, olive accent, system type),
   since this site presents the company behind it. One file for every page:
   no inline styles anywhere, which is what lets the server send a strict
   Content-Security-Policy (style-src 'self'). */

:root {
  /* Neutral base with a single brand colour: GatesFlow olive — the app's own
     primary. Everything that isn't the brand is true grey, no warm tint. */
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f6f6f5;       /* alternate section band */
  --border: #e7e7e4;
  --border-strong: #d4d4d0;
  --text: #171717;            /* 17.9:1 */
  --text-2: #525252;          /* 7.8:1 on white, 7.2:1 on --surface-2 */
  --muted: #a3a3a3;           /* decorative only */
  --brand: #5a6a4a;           /* GatesFlow olive, 5.8:1 on white: links, buttons, accents */
  --brand-hover: #4b5a3d;
  --brand-soft: #6b7c5a;      /* the app's exact olive — icons, marks */
  --brand-tint: #eef1ea;      /* icon chips */
  --brand-deep: #3d4a32;      /* CTA band; white text 9.4:1 */
  --ink: #121212;             /* footer */
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 20px 44px -20px rgba(23, 23, 23, .22);
  --max: 1160px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --header-h: 68px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1.0625rem/1.65 var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.02em; line-height: 1.12; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.1rem); letter-spacing: -.035em; line-height: 1.04; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.15rem; letter-spacing: -.01em; line-height: 1.3; }
p { margin: 0; }
ul { margin: 0; padding: 0; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100; padding: .6rem 1rem;
  background: var(--ink); color: #fff; border-radius: 10px; text-decoration: none;
}
.skip-link:focus { top: .75rem; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section-alt { background: var(--surface-2); }
.section-flush-top { padding-top: 0; }
[id] { scroll-margin-top: calc(var(--header-h) + 1.25rem); }
[hidden] { display: none !important; }
.section-head { max-width: 44rem; margin-bottom: clamp(2.25rem, 4vw, 3.25rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: 1rem; color: var(--text-2); font-size: 1.1rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem; margin-bottom: 1.1rem;
  font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2);
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand-soft); }
.lead { font-size: clamp(1.1rem, 1.55vw, 1.28rem); color: var(--text-2); line-height: 1.6; }
.more-link { display: inline-flex; align-items: center; gap: .4rem; margin-top: 2rem; color: var(--brand); font-weight: 600; text-decoration: none; }
.more-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ── Header ───────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--border); }
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font-weight: 650; font-size: 1.12rem; letter-spacing: -.02em; }
.brand-mark { width: 24px; height: 24px; color: var(--text); flex: none; }
.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav a:not(.btn) { color: var(--text-2); text-decoration: none; font-size: .95rem; font-weight: 500; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"] { color: var(--text); }
.menu-toggle {
  display: none; width: 42px; height: 42px; margin-right: -8px; border: 0; background: none; color: var(--text);
  border-radius: 10px; cursor: pointer; align-items: center; justify-content: center;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 20px; height: 1.75px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s ease, background .2s ease;
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; } .menu-toggle span::after { top: 6px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 46px; padding: .7rem 1.35rem;
  border-radius: 999px; border: 1px solid transparent; font: 600 .97rem/1 var(--font); text-decoration: none; cursor: pointer;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.btn-sm { min-height: 38px; padding: .5rem 1rem; font-size: .9rem; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); }
.btn-ghost { border-color: var(--border-strong); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--text); }
.btn-light { background: #fff; color: var(--brand-deep); }
.btn-light:hover { background: #f1f4ee; }
.btn-outline-light { border-color: rgba(255, 255, 255, .28); color: #fff; }
.btn-outline-light:hover { border-color: #fff; }
.btn[disabled] { opacity: .55; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero { padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(3rem, 6vw, 5rem); }
.hero-copy { max-width: 50rem; }
.hero-copy.center { margin-inline: auto; text-align: center; }
.hero-copy.center .actions { justify-content: center; }
.hero .lead { margin-top: 1.4rem; max-width: 40rem; }
.hero-copy.center .lead { margin-inline: auto; }
.hero-visual { margin-top: clamp(2.75rem, 6vw, 4.25rem); }

/* ── Product frame ────────────────────────────────────────────────────── */
.frame {
  border-radius: var(--radius-lg); border: 1px solid var(--border); background: #fff;
  box-shadow: var(--shadow); overflow: hidden;
}
.frame img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }

/* ── Cards ────────────────────────────────────────────────────────────── */
.grid { display: grid; gap: 1.1rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.card {
  position: relative; padding: 1.6rem; border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--surface); display: flex; flex-direction: column; gap: .7rem;
}
.section-alt .card { background: #fff; }
.card p { color: var(--text-2); font-size: .98rem; }
a.card { text-decoration: none; transition: border-color .18s ease, transform .18s ease; }
a.card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
a.card .card-arrow { margin-top: auto; padding-top: .4rem; color: var(--brand); font-weight: 600; font-size: .92rem; }
.icon {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; flex: none;
  background: var(--brand-tint); color: var(--brand); margin-bottom: .2rem;
}
.section-alt .icon { background: #fff; }
.icon svg { width: 21px; height: 21px; }

/* ── Ticked lists ─────────────────────────────────────────────────────── */
.ticks { list-style: none; display: grid; gap: .55rem; margin-top: .4rem; }
.ticks li { position: relative; padding-left: 1.55rem; color: var(--text-2); font-size: .96rem; line-height: 1.5; }
.ticks li::before {
  content: ""; position: absolute; left: .15rem; top: .38em; width: .42rem; height: .78rem;
  border: solid var(--brand-soft); border-width: 0 2px 2px 0; transform: rotate(42deg);
}
.ticks.lg li { font-size: 1.03rem; }

/* ── Showcase: copy beside a product frame ────────────────────────────── */
.showcase { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.showcase + .showcase { margin-top: clamp(4rem, 9vw, 7rem); }
.showcase.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.showcase.flip .showcase-copy { order: 2; }
.showcase-copy h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.showcase-copy > p { margin-top: 1rem; color: var(--text-2); }
.showcase-copy .ticks { margin-top: 1.5rem; }

/* ── Split rows (copy | list) for text-led pages ──────────────────────── */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(1.5rem, 5vw, 4rem); padding-block: clamp(2.25rem, 4vw, 3rem); border-top: 1px solid var(--border); }
.split:first-child { border-top: 0; padding-top: 0; }
.split h2 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); }
.split > div > p { margin-top: .9rem; color: var(--text-2); }
.split-media { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); margin-top: 1.4rem; }
.split-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

/* ── Service groups ───────────────────────────────────────────────────── */
.group + .group { margin-top: clamp(3.5rem, 7vw, 5.5rem); }
.group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 2rem; flex-wrap: wrap; margin-bottom: 1.5rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--border); }
.group-head h2 { font-size: clamp(1.45rem, 2.4vw, 1.85rem); }
.group-head p { margin-top: .45rem; color: var(--text-2); max-width: 34rem; }

/* ── Proof / quote band ───────────────────────────────────────────────── */
.proof { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.proof blockquote { margin: 0; font-size: clamp(1.35rem, 2.4vw, 1.85rem); line-height: 1.35; letter-spacing: -.015em; font-weight: 500; }
.proof cite { display: block; margin-top: 1.25rem; font-style: normal; color: var(--text-2); font-size: .98rem; }

/* ── Values / principles ──────────────────────────────────────────────── */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4.5rem); }
.about-copy p + p { margin-top: 1.1rem; }
.about-copy p { color: var(--text-2); font-size: 1.08rem; }
.principles { display: grid; gap: 1.4rem; }
.principle { padding-left: 1.25rem; border-left: 2px solid var(--border-strong); }
.principle h3 { margin-bottom: .35rem; }
.principle p { color: var(--text-2); font-size: .98rem; }

/* ── CTA band ─────────────────────────────────────────────────────────── */
.cta {
  border-radius: var(--radius-lg); background: var(--brand-deep); color: #fff;
  padding: clamp(2.5rem, 6vw, 4.5rem); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: center;
}
.cta h2 { color: #fff; }
.cta p { margin-top: .85rem; color: #dfe5d6; max-width: 34rem; }
.cta .actions { margin-top: 0; }

/* ── Footer ───────────────────────────────────────────────────────────── */
.site-footer { background: var(--ink); color: #a3a3a3; padding-block: clamp(3.5rem, 7vw, 5rem) 2rem; margin-top: clamp(4rem, 9vw, 7rem); }
.site-footer.flush { margin-top: 0; }
.footer-top { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
.footer-brand .brand { color: #fff; }
.footer-brand .brand-mark { color: #fff; }
.footer-brand p { margin-top: 1rem; max-width: 22rem; font-size: .95rem; color: #a3a3a3; }
.footer-col h3 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: #8a8a8a; font-weight: 600; margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: grid; gap: .6rem; }
.footer-col a { color: #e5e5e5; text-decoration: none; font-size: .95rem; }
.footer-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .88rem; color: #8a8a8a; }

/* ── Forms ────────────────────────────────────────────────────────────── */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact-aside .lead { margin-top: 1.25rem; }
.contact-aside .ticks { margin-top: 2rem; }
.contact-direct { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); color: var(--text-2); font-size: .96rem; }
.contact-direct a { color: var(--brand); font-weight: 600; text-decoration: none; }
.contact-direct a:hover { text-decoration: underline; text-underline-offset: 4px; }
.form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1rem; }
.field { display: grid; gap: .45rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .9rem; font-weight: 600; color: var(--text); }
.field label .req { color: var(--brand); margin-left: .15rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .78rem .9rem; border-radius: 11px; border: 1px solid var(--border-strong); background: #fff;
  font: 400 1rem/1.4 var(--font); color: var(--text); transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(90, 106, 74, .2); }
.field.invalid input, .field.invalid textarea { border-color: #b4412f; }
.field-hint { font-size: .85rem; color: var(--text-2); }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }
.form-foot small { color: var(--text-2); font-size: .85rem; }
.alert { margin-bottom: 1.25rem; padding: .9rem 1rem; border-radius: 12px; font-size: .95rem; }
.alert-error { background: #f7e3dc; color: #7a2716; border: 1px solid #e9c3b6; }
.success { text-align: left; }
.success .icon { width: 52px; height: 52px; border-radius: 50%; background: var(--brand-tint); }
.success h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 1rem; }
.success p { margin-top: .8rem; color: var(--text-2); }

/* ── 404 ──────────────────────────────────────────────────────────────── */
.notfound { min-height: 58vh; display: grid; place-items: center; text-align: center; }
.notfound .code { font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); font-weight: 600; }
.notfound h1 { margin-top: .75rem; }
.notfound .actions { justify-content: center; }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: .5rem var(--gutter) 1.5rem; background: var(--bg); border-bottom: 1px solid var(--border);
    box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .25); display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: .95rem 0; border-bottom: 1px solid var(--border); font-size: 1.05rem; color: var(--text); }
  .site-nav .btn { margin-top: 1.1rem; }
  .menu-toggle { display: inline-flex; }
  .showcase, .showcase.flip, .proof, .about, .contact, .split, .cta { grid-template-columns: 1fr; }
  .showcase.flip .showcase-copy { order: 0; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4, .grid-5, .form-grid { grid-template-columns: 1fr; }
  .actions .btn { flex: 1 1 auto; }
  .footer-top { grid-template-columns: 1fr; }
}
