/* =========================================================
   DevScape.io LLC — site styles
   Brand kit v1.0 · Bracket Slash system
   Fonts: Schibsted Grotesk (display) · Hanken Grotesk (body) · JetBrains Mono (labels)
   Plain CSS, no build step. Deploys as-is to Cloudflare Pages.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Schibsted+Grotesk:wght@500;600;700;800;900&family=Hanken+Grotesk:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Graphite / ink */
  --ink:          #0E1116;   /* Graphite Ink — primary text & dark surfaces */
  --graphite-900: #171B22;
  --graphite-800: #232A34;
  --slate-600:    #3D4653;
  --slate-400:    #6B7482;   /* muted text */
  --silver-300:   #C7CDD6;
  --line:         #E6E9EE;   /* hairline borders on light */
  --line-dark:    #232A34;   /* borders on dark */
  --paper-50:     #F7F9FC;   /* light page background */
  --white:        #ffffff;

  /* Scape Blue accent */
  --blue-600:     #1E5AE0;
  --blue-500:     #2F6BF2;   /* Scape Blue */
  --sky-300:      #7FA8F5;
  --mist-50:      #EAF0FE;

  /* squircle-ish radii (Apple icon grid feel) */
  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 12px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(14, 17, 22, 0.04), 0 2px 8px rgba(14, 17, 22, 0.04);
  --shadow-md: 0 8px 30px rgba(14, 17, 22, 0.08);
  --shadow-blue: 0 8px 24px rgba(47, 107, 242, 0.28);

  --wrap: 1200px;
  --font-display: 'Schibsted Grotesk', system-ui, sans-serif;
  --font-body: 'Hanken Grotesk', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper-50);
  line-height: 1.65;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

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

/* ---------- Kicker (JetBrains Mono engineering signature) ---------- */
.kicker {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-500);
  margin: 0 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.kicker::before {
  content: "";
  width: 22px;
  height: 1.5px;
  background: var(--blue-500);
}
.on-dark .kicker { color: var(--sky-300); }
.on-dark .kicker::before { background: var(--sky-300); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 249, 252, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}
.logo { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.logo-mark { width: 36px; height: 36px; display: block; flex: none; }
.logo-word {
  font-family: var(--font-display); font-weight: 800; font-size: 23px;
  letter-spacing: -0.02em; line-height: 1; color: var(--ink);
}
.logo-word .dot { color: var(--blue-500); }
.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav a {
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  color: var(--slate-600);
  padding: 8px 14px;
  border-radius: var(--r-sm);
  transition: color 0.15s ease, background 0.15s ease;
}
.nav a:hover { color: var(--ink); background: var(--mist-50); }
.nav a[aria-current="page"] { color: var(--blue-600); }
.nav .nav-cta {
  margin-left: 8px;
  color: #fff;
  background: var(--blue-500);
  padding: 10px 18px;
  box-shadow: var(--shadow-blue);
}
.nav .nav-cta:hover { background: var(--blue-600); color: #fff; }

.nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* ---------- Sections & layout ---------- */
main { display: block; }

section { padding: 88px 0; }
section.tight { padding: 64px 0; }

.section-dark {
  background: var(--ink);
  color: #fff;
}
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: var(--silver-300); }

/* Hero with photographic background + dark overlay for legibility */
.hero {
  position: relative;
  padding: 116px 0;
  background:
    linear-gradient(180deg, rgba(14, 17, 22, 0.78), rgba(14, 17, 22, 0.72) 55%, rgba(14, 17, 22, 0.86)),
    url('assets/photos/hero-desk.jpg') center / cover no-repeat;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
}
.split.wide-text { grid-template-columns: 1.1fr 0.9fr; }
.split.split--stretch { align-items: stretch; }
.split.split--stretch .media { min-height: 100%; height: 100%; }
.split.media-left { direction: rtl; }
.split.media-left > * { direction: ltr; }

/* Cards */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.card-pad { padding: 40px; }

/* Media — squircle stand-ins. Real photo: style="--img:url('assets/x.jpg')" */
.media {
  position: relative;
  border-radius: var(--r-lg);
  min-height: 440px;
  overflow: hidden;
  background:
    var(--img, none),
    linear-gradient(150deg, var(--graphite-800), var(--ink) 70%);
  background-size: cover;
  background-position: center;
  border: 1px solid var(--line-dark);
}
.media--blue {
  background:
    var(--img, none),
    linear-gradient(150deg, #4E82F7, var(--blue-600) 72%);
  border-color: transparent;
}
.media--tall { min-height: 560px; }
.media__glow {
  position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 80% 10%, rgba(127,168,245,0.22), transparent 55%);
  pointer-events: none;
}

/* JAMF Professional Partner badge (official asset) */
.badge-jamf {
  position: absolute;
  left: 22px; bottom: 22px;
  width: 200px; height: auto;
  border-radius: var(--r-sm);
  box-shadow: 0 8px 22px rgba(14, 17, 22, 0.35);
}
.badge-jamf--top { top: 24px; right: 24px; left: auto; bottom: auto; }

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); }
h1 {
  font-weight: 800;
  font-size: clamp(42px, 5.4vw, 72px);
  line-height: 1.03;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
}
h2 {
  font-weight: 800;
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
}
h3 {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
  margin: 30px 0 8px;
}
p { margin: 0 0 18px; color: var(--slate-600); }
.lead { font-size: 21px; color: var(--slate-600); }
.section-dark .lead { color: var(--silver-300); }
.muted { color: var(--slate-400); }
strong { color: var(--ink); font-weight: 700; }
.section-dark strong { color: #fff; }

/* subhead limit */
.measure { max-width: 620px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.center .kicker { justify-content: center; }

/* bold-lead paragraph list */
.lead-list p { margin-bottom: 20px; }

/* checkmark list */
.check-list { list-style: none; padding: 0; margin: 8px 0 28px; }
.check-list li {
  position: relative; padding-left: 34px; margin-bottom: 12px;
  font-weight: 500; color: var(--ink); font-size: 18px;
}
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 2px;
  width: 22px; height: 22px; border-radius: 7px;
  background: var(--mist-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232F6BF2' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 15px no-repeat;
}

/* feature grid (cards) */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.feature .idx {
  font-family: var(--font-mono); font-size: 13px; font-weight: 500;
  color: var(--blue-500); letter-spacing: 0.1em;
}
.feature h3 { margin: 14px 0 6px; }
.feature p { margin: 0; font-size: 16.5px; }

/* ---------- Buttons ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body); font-size: 16px; font-weight: 600;
  text-decoration: none; cursor: pointer;
  padding: 14px 26px; border-radius: var(--r-md);
  border: 1px solid transparent;
  transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue-500); color: #fff; box-shadow: var(--shadow-blue); }
.btn-primary:hover { background: var(--blue-600); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--silver-300); }
.btn-ghost:hover { border-color: var(--ink); background: var(--white); }
.on-dark .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.28); }
.on-dark .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.06); }
.btn svg { width: 16px; height: 16px; }

/* ---------- Forms ---------- */
.form { margin-top: 8px; }
.field-group { margin-bottom: 20px; }
.field-label {
  display: block; font-family: var(--font-display);
  font-weight: 700; font-size: 16px; margin-bottom: 10px; color: var(--ink);
}
.field-sub, .req { font-family: var(--font-body); font-weight: 400; color: var(--slate-400); font-size: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-size: 14px; margin-bottom: 7px; color: var(--slate-600); }
input, select, textarea {
  width: 100%; font-family: var(--font-body); font-size: 16px; color: var(--ink);
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 14px 16px; outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
textarea { min-height: 150px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--slate-400); }
input:focus, select:focus, textarea:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(47, 107, 242, 0.15);
}
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%233D4653' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 46px;
}
.form-status { font-size: 15px; margin: 12px 0 0; min-height: 1.3em; }
.form-status.ok  { color: #1E8A5B; }
.form-status.err { color: #B4413C; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--silver-300); padding: 64px 0 40px; }
.footer-top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px;
  padding-bottom: 44px; border-bottom: 1px solid var(--line-dark);
}
.site-footer .logo-mark { width: 32px; height: 32px; }
.site-footer .logo-word { color: #fff; }
.site-footer .logo-word .dot { color: var(--sky-300); }
.footer-brand p { margin: 18px 0 0; color: var(--slate-400); max-width: 320px; font-size: 15.5px; }
.footer-col h4 {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--slate-400); margin: 4px 0 16px;
}
.footer-col a {
  display: block; text-decoration: none; color: var(--silver-300);
  font-size: 15.5px; margin-bottom: 10px; transition: color 0.15s ease;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 26px;
}
.footer-bottom p { margin: 0; font-size: 14px; color: var(--slate-400); }
.footer-bottom .gh { color: var(--silver-300); display: inline-flex; }
.footer-bottom svg { width: 22px; height: 22px; }
.footer-bottom .gh:hover svg { fill: #fff; }
.footer-legal { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer-legal a {
  color: var(--slate-400); text-decoration: none; font-size: 14px;
  transition: color 0.15s ease;
}
.footer-legal a:hover { color: #fff; }

/* ---------- Legal / prose pages ---------- */
.legal { max-width: 780px; }
.legal .lead { margin-bottom: 8px; }
.legal .updated { font-family: var(--font-mono); font-size: 13px; color: var(--slate-400); margin-bottom: 40px; }
.legal h2 { font-size: clamp(24px, 2.4vw, 30px); margin: 44px 0 14px; }
.legal h2:first-of-type { margin-top: 0; }
.legal p { font-size: 17px; }
.legal .callout {
  border-left: 3px solid var(--blue-500);
  background: var(--mist-50);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 16px 20px; margin: 18px 0 8px; color: var(--slate-600);
}
.legal a { color: var(--blue-600); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  section { padding: 60px 0; }
  .split, .split.wide-text { grid-template-columns: 1fr; gap: 36px; }
  .split.media-left { direction: ltr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .media, .media--tall { min-height: 320px; }
  .badge-jamf { width: 148px; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 18px; }

  .nav {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 14px 20px 20px; display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; font-size: 17px; }
  .nav .nav-cta { margin: 6px 0 0; text-align: center; justify-content: center; }
  .nav-toggle { display: block; }
  .site-header .wrap { position: relative; }
  .card-pad { padding: 28px; }
  .field-row { grid-template-columns: 1fr; }
}
