/* DattaDock, LLC. Corporate site. No frameworks, no scripts, no trackers.
   Pages are generated by build.py from content.json. Edit those, not the HTML. */

:root {
  --navy:      #1a3e63;
  --navy-lit:  #2a5f94;
  --deep:      #102b47;
  --deeper:    #0b1f34;
  --brass:     #c8892b;
  --bone:      #f4f0e6;

  --ink:       #11202f;
  --ink-soft:  #435c76;
  --ink-mute:  #74869a;
  --line:      #dfe5ec;
  --line-soft: #ecf0f5;
  --bg:        #ffffff;
  --bg-tint:   #f7f9fc;

  --wrap:      1080px;
  --measure:   68ch;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--navy-lit); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.topline { height: 3px; background: var(--brass); }

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

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 72px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark { display: block; border-radius: 9px; }
.brand-name { font-size: 18px; font-weight: 650; letter-spacing: -0.3px; }
.brand-suffix { color: var(--ink-mute); font-weight: 500; }

.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }

.nav a {
  color: var(--ink-soft);
  font-size: 14.5px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 7px;
}
.nav a:hover { background: var(--bg-tint); color: var(--navy); text-decoration: none; }
.nav a[aria-current="page"] {
  color: var(--navy);
  font-weight: 620;
  background: var(--bg-tint);
  box-shadow: inset 0 -2px 0 var(--brass);
}

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

.hero {
  background: linear-gradient(160deg, var(--deep) 0%, var(--deeper) 100%);
  color: var(--bone);
  padding: 76px 0 68px;
}

.hero .eyebrow {
  margin: 0 0 16px; font-size: 12px; font-weight: 600;
  letter-spacing: 1.6px; text-transform: uppercase; color: var(--brass);
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(32px, 4.6vw, 50px);
  line-height: 1.12; letter-spacing: -1.3px; font-weight: 660;
  max-width: 20ch;
}

.hero .sub {
  margin: 0; max-width: 62ch;
  font-size: clamp(16.5px, 1.7vw, 19px); line-height: 1.6;
  color: #b9cadd;
}

/* inner-page head, lighter than the home hero */
.page-head { padding: 54px 0 34px; border-bottom: 1px solid var(--line); }
.page-head .eyebrow {
  margin: 0 0 12px; font-size: 12px; font-weight: 600;
  letter-spacing: 1.6px; text-transform: uppercase; color: var(--brass);
}
.page-head h1 {
  margin: 0 0 16px; font-size: clamp(28px, 3.8vw, 40px);
  line-height: 1.15; letter-spacing: -1px; font-weight: 660; color: var(--navy);
  max-width: 22ch;
}
.page-head .sub { margin: 0; max-width: var(--measure); font-size: 17.5px; color: var(--ink-soft); }

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

main section { padding: 46px 0; border-bottom: 1px solid var(--line-soft); }
main section:last-of-type { border-bottom: 0; }

.sec-head {
  margin: 0 0 22px;
  font-size: 12.5px; font-weight: 660; letter-spacing: 1.4px;
  text-transform: uppercase; color: var(--ink-mute);
  display: flex; align-items: center; gap: 12px;
}
.sec-head::after { content: ""; flex: 1; height: 1px; background: var(--line); }

section p { margin: 0 0 15px; max-width: var(--measure); color: var(--ink-soft); }
section p:last-child { margin-bottom: 0; }

/* ---------------- facts ---------------- */

.facts {
  margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0; background: var(--bg);
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
}
/* Dividers are drawn as shadows rather than gaps, so a half-empty last row
   shows page background instead of a stray coloured cell. */
.facts > div {
  background: var(--bg); padding: 18px 20px;
  box-shadow: 1px 0 0 var(--line), 0 1px 0 var(--line);
}
.facts dt {
  margin: 0 0 6px; font-size: 11.5px; font-weight: 620;
  letter-spacing: 1.1px; text-transform: uppercase; color: var(--ink-mute);
}
.facts dd { margin: 0; font-size: 15px; color: var(--ink); line-height: 1.5; }

/* ---------------- product / provider cards ---------------- */

.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  padding: 22px 24px;
  background: var(--bg-tint);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.card-top { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }

.card-mark {
  flex: 0 0 auto; width: 46px; height: 46px;
  border-radius: 11px; object-fit: contain;
  background: #fff; border: 1px solid var(--line);
}

.card-id { min-width: 0; flex: 1 1 auto; }

.card h3 {
  margin: 0; font-size: 19px; font-weight: 640;
  letter-spacing: -0.4px; color: var(--navy); line-height: 1.25;
}
.card-url { font-size: 13px; display: inline-block; overflow-wrap: anywhere; }
.card-nourl { font-size: 13px; color: var(--ink-mute); }

.card p { margin: 0 0 12px; font-size: 15px; max-width: none; }

/* The hook is the reader's problem stated in their own words. It leads the card,
   so it is set larger and darker than the body that explains the product. */
.card p.card-hook {
  margin: 0 0 10px;
  font-size: 16.5px;
  line-height: 1.45;
  font-weight: 560;
  color: var(--navy);
  letter-spacing: -0.2px;
}

.card p:last-child { margin-bottom: 0; }

.card-meta {
  margin: 0 !important; font-size: 13.5px; color: var(--ink-mute);
  padding-top: 11px; border-top: 1px solid var(--line);
}

.chip {
  flex: 0 0 auto; align-self: flex-start;
  font-size: 10.5px; font-weight: 660; letter-spacing: .7px; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px; border: 1px solid transparent; white-space: nowrap;
}
.chip-live { color: #1d6a4c; background: #e4f3ec; border-color: #c6e4d5; }
.chip-dev  { color: #5f6f83; background: #eef1f5; border-color: #dde3ea; }

.card ul { margin: 12px 0 0; padding-left: 19px; }
.card ul li { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 7px; }
.card ul li:last-child { margin-bottom: 0; }

/* ---------------- bullets ---------------- */

.bullets { margin: 0; padding-left: 20px; max-width: var(--measure); }
.bullets li { margin-bottom: 10px; color: var(--ink-soft); }
.bullets li:last-child { margin-bottom: 0; }

/* ---------------- note / callout ---------------- */

.note {
  border: 1px solid var(--line);
  border-left: 3px solid var(--brass);
  background: var(--bg-tint);
  border-radius: 0 12px 12px 0;
  padding: 22px 26px;
}
.note p { max-width: var(--measure); }
.note .sec-head { margin-bottom: 14px; }
.note .sec-head::after { display: none; }

/* ---------------- footer ---------------- */

.site-footer {
  margin-top: 40px;
  background: var(--deep);
  color: #a9bdd2;
  border-top: 3px solid var(--brass);
}

.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 34px; padding: 46px 0 34px;
}

.footer-brand { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand span { color: var(--bone); font-weight: 650; font-size: 17px; }
.footer-blurb { margin: 0; font-size: 14px; line-height: 1.6; max-width: 34ch; color: #94aac2; }

.footer-grid h4 {
  margin: 0 0 12px; font-size: 11.5px; font-weight: 660;
  letter-spacing: 1.2px; text-transform: uppercase; color: var(--brass);
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 9px; font-size: 14px; }
.footer-grid a { color: #b9cadd; }
.footer-grid a:hover { color: #fff; }

.footer-legal {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 20px 0 34px;
  display: flex; flex-wrap: wrap; gap: 6px 26px;
  font-size: 13px; color: #8ba1ba;
}
.footer-legal p { margin: 0; max-width: none; color: inherit; }

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

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .cards.two { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  .header-inner { flex-wrap: wrap; min-height: 0; padding-top: 12px; padding-bottom: 10px; gap: 10px; }
  .nav { width: 100%; gap: 2px; overflow-x: auto; padding-bottom: 2px; }
  .nav a { padding: 7px 10px; font-size: 14px; white-space: nowrap; }
  .hero { padding: 52px 0 46px; }
  .site-header { position: static; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .card { padding: 18px 18px; }
}
