/* C41 Consulting — site styles. No external fonts, no images required. */

/* ------------------------------------------------------------------
   LICENCE SWITCH
   <body class="licence-pending"> hides every element marked
   data-gated="licence" (smart doorbells & cameras, smart locks).
   Remove the class from <body> in index.html to show them.
   ------------------------------------------------------------------ */
.licence-pending [data-gated="licence"] { display: none !important; }

:root {
  color-scheme: dark;
  --bg: #09090b;
  --surface: #111113;
  --surface-2: #17171b;
  --border: #232328;
  --border-strong: #34343c;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --faint: #8a8a94;
  --accent: #62d2b4;
  --accent-ink: #062019;
  --radius: 14px;
  --radius-sm: 10px;
  --max: 1120px;
  --gutter: 20px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono", Menlo, Consolas, monospace;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 650;
  color: #fff;
}

p { margin: 0; }

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 100;
  padding: 10px 14px;
  background: #fff;
  color: #000;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(9, 9, 11, 0.86);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
}
.brand svg { width: 52px; height: 26px; }
.brand-name {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav-links { display: none; list-style: none; margin: 0; padding: 0; gap: 2px; }
.nav-links a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.92rem;
  color: var(--muted);
  text-decoration: none;
}
.nav-links a:hover { color: #fff; background: var(--surface-2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: #fff; color: #09090b; }
.btn-primary:hover { background: #e4e4e7; color: #09090b; }
.btn-ghost { border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { border-color: #55555f; background: var(--surface); }
.btn-sm { min-height: 38px; padding: 8px 14px; font-size: 0.88rem; }
.btn svg { width: 16px; height: 16px; }

/* ---------- Sections ---------- */
section { padding: 72px 0; border-top: 1px solid var(--border); }
section.hero { border-top: 0; }

.eyebrow.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: none;
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(1.7rem, 4.6vw, 2.4rem); }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 1.05rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 80px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 55% at 85% 0%, rgba(98, 210, 180, 0.09), transparent 70%),
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px) 0 0 / 48px 48px;
  -webkit-mask-image: radial-gradient(90% 80% at 70% 10%, #000 30%, transparent 75%);
  mask-image: radial-gradient(90% 80% at 70% 10%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero .wrap { position: relative; }
.hero h1 {
  max-width: 820px;
  font-size: clamp(2.3rem, 8.4vw, 4.1rem);
  letter-spacing: -0.035em;
  line-height: 1.04;
}
.hero h1 .dim { color: var(--muted); }
.hero-lead {
  max-width: 620px;
  margin-top: 22px;
  font-size: clamp(1.05rem, 2.6vw, 1.2rem);
  color: var(--muted);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
  color: var(--faint);
}
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 1px;
  background: var(--border-strong);
}

/* ---------- Cards ---------- */
.grid { display: grid; gap: 14px; grid-template-columns: 1fr; }

.card {
  position: relative;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.card h3 { font-size: 1.12rem; letter-spacing: -0.01em; }
.card p { margin-top: 8px; color: var(--muted); font-size: 0.97rem; }
.card .icon {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  margin-bottom: 18px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: #fff;
}
.card .icon svg { width: 20px; height: 20px; }
.card .tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin: 14px 0 0; padding: 0; list-style: none;
}
.card .tags li {
  padding: 3px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--faint);
}

/* Featured: Smart Home Security Check */
.feature {
  margin-top: 14px;
  padding: 28px 24px;
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(98, 210, 180, 0.07), transparent 60%),
    var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
}
.feature-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
.feature h3 { font-size: clamp(1.35rem, 3.6vw, 1.7rem); }
.feature .lead { margin-top: 12px; color: var(--muted); }
.feature .badge {
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 10px;
  border: 1px solid rgba(98, 210, 180, 0.35);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.feature .note { margin-top: 16px; font-size: 0.88rem; color: var(--faint); }
.feature .actions { margin-top: 22px; }

.checklist { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.checklist li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
  font-size: 0.96rem;
}
.checklist li strong { color: var(--text); font-weight: 600; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 2px; top: 0.42em;
  width: 12px; height: 7px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* ---------- Steps ---------- */
.steps {
  counter-reset: step;
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
  margin: 0; padding: 0;
  list-style: none;
}
.steps li {
  counter-increment: step;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.steps li::before {
  content: "0" counter(step);
  display: block;
  margin-bottom: 18px;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.steps h3 { font-size: 1.08rem; }
.steps p { margin-top: 8px; color: var(--muted); font-size: 0.96rem; }

.block-title { font-size: clamp(1.7rem, 4.6vw, 2.4rem); margin-bottom: 18px; }

/* ---------- Why ---------- */
.why-grid { display: grid; gap: 36px; grid-template-columns: 1fr; }
.why-intro p + p { margin-top: 14px; }
.why-intro p { color: var(--muted); font-size: 1.05rem; }
.why-intro p strong { color: var(--text); font-weight: 600; }
.points { display: grid; gap: 14px; grid-template-columns: 1fr; margin: 0; padding: 0; list-style: none; }
.points li { padding: 20px 22px; border: 1px solid var(--border); border-radius: var(--radius); }
.points h3 { font-size: 1.02rem; }
.points p { margin-top: 6px; color: var(--muted); font-size: 0.95rem; }

.scope {
  margin-top: 28px;
  padding: 18px 22px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  color: var(--faint);
  font-size: 0.92rem;
}
.scope strong { color: var(--muted); font-weight: 600; }

/* ---------- Area ---------- */
.area-grid { display: grid; gap: 28px; grid-template-columns: 1fr; align-items: center; }
.area-grid p { color: var(--muted); font-size: 1.05rem; }
.area-grid p + p { margin-top: 14px; }
.area-graphic {
  aspect-ratio: 1 / 1;
  max-width: 340px;
  width: 100%;
  margin: 0 auto;
  color: var(--border-strong);
}

/* ---------- Contact ---------- */
.contact-panel {
  padding: 32px 24px;
  border: 1px solid var(--border-strong);
  border-radius: calc(var(--radius) + 4px);
  background:
    radial-gradient(70% 120% at 0% 0%, rgba(255,255,255,0.04), transparent 60%),
    var(--surface);
}
.contact-panel h2 { font-size: clamp(1.8rem, 5vw, 2.6rem); }
.contact-panel > p { margin-top: 14px; max-width: 620px; color: var(--muted); font-size: 1.05rem; }
.contact-methods { display: grid; gap: 12px; grid-template-columns: 1fr; margin-top: 28px; }
.contact-method {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  text-decoration: none;
  transition: border-color .15s ease;
}
.contact-method:hover { border-color: #55555f; }
.contact-method .icon {
  flex: none;
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.contact-method .icon svg { width: 20px; height: 20px; }
.contact-method .label {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}
.contact-method .value {
  display: block;
  margin-top: 2px;
  font-size: clamp(1.02rem, 3.6vw, 1.2rem);
  font-weight: 600;
  color: #fff;
  overflow-wrap: break-word;
}
.contact-small { margin-top: 20px; font-size: 0.9rem; color: var(--faint); }

/* ---------- Footer ---------- */
.site-footer {
  padding: 36px 0 44px;
  border-top: 1px solid var(--border);
  color: var(--faint);
  font-size: 0.88rem;
}
.site-footer .wrap { display: grid; gap: 14px; }
.site-footer nav ul { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: #fff; }

/* ---------- Prose page (privacy, 404) ---------- */
.prose { max-width: 720px; padding: 64px 0 80px; }
.prose h1 { font-size: clamp(2rem, 6vw, 2.8rem); }
.prose h2 { margin-top: 40px; font-size: 1.3rem; }
.prose p, .prose li { color: var(--muted); }
.prose p { margin-top: 14px; }
.prose ul { margin: 14px 0 0; padding-left: 1.2em; }
.prose li + li { margin-top: 6px; }
.prose .updated { margin-top: 10px; font-size: 0.9rem; color: var(--faint); }
.prose a { color: var(--text); }

/* ---------- Breakpoints (phone first) ---------- */
@media (min-width: 640px) {
  :root { --gutter: 28px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .points { grid-template-columns: repeat(2, 1fr); }
  .contact-methods { grid-template-columns: repeat(2, 1fr); }
  .feature { padding: 36px; }
  .contact-panel { padding: 44px; }
}

@media (min-width: 820px) {
  .nav-links { display: flex; }
}

@media (min-width: 960px) {
  section { padding: 104px 0; }
  .hero { padding: 120px 0 128px; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .licence-pending .grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .feature-grid { grid-template-columns: 1.05fr 1fr; gap: 48px; }
  .why-grid { grid-template-columns: 0.9fr 1.1fr; gap: 56px; }
  .area-grid { grid-template-columns: 1.2fr 0.8fr; gap: 56px; }
  .site-footer .wrap { grid-template-columns: 1fr auto; align-items: center; }
}

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

@media print {
  .site-header, .hero::before, .skip-link { display: none; }
  body, .card, .feature, .steps li, .contact-panel, .contact-method { background: #fff !important; }
  * { color: #000 !important; }
}
