/* ============================================================
   Griffs — design tokens & base
   Warm, friendly, trustworthy residential-tech brand
   ============================================================ */

:root {
  /* Warm neutrals */
  --cream:        oklch(0.985 0.010 78);
  --cream-deep:   oklch(0.965 0.014 76);
  --paper:        oklch(0.998 0.004 80);
  --ink:          oklch(0.255 0.018 55);
  --ink-soft:     oklch(0.42 0.020 55);
  --muted:        oklch(0.56 0.018 58);
  --line:         oklch(0.905 0.012 72);
  --line-soft:    oklch(0.935 0.010 74);

  /* Brand — friendly coral primary */
  --coral:        oklch(0.685 0.155 38);
  --coral-deep:   oklch(0.585 0.150 36);
  --coral-soft:   oklch(0.945 0.040 50);
  --coral-tint:   oklch(0.965 0.025 52);

  /* Trust — calm teal/green secondary */
  --teal:         oklch(0.640 0.090 178);
  --teal-deep:    oklch(0.520 0.080 180);
  --teal-soft:    oklch(0.955 0.028 178);

  /* Accent ink panel */
  --night:        oklch(0.285 0.022 52);
  --night-deep:   oklch(0.235 0.020 50);

  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;

  --shadow-sm: 0 1px 2px oklch(0.3 0.02 55 / 0.06), 0 2px 6px oklch(0.3 0.02 55 / 0.05);
  --shadow-md: 0 4px 12px oklch(0.3 0.02 55 / 0.07), 0 12px 32px oklch(0.3 0.02 55 / 0.08);
  --shadow-lg: 0 8px 24px oklch(0.3 0.02 55 / 0.09), 0 28px 64px oklch(0.3 0.02 55 / 0.12);
  --shadow-coral: 0 8px 22px oklch(0.685 0.155 38 / 0.30);

  --maxw: 1200px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --font-head: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 17px;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}

p { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--coral-soft); color: var(--coral-deep); }

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

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
  font-family: var(--font-body);
  font-weight: 700; font-size: 13px; letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--coral-deep);
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px; border-radius: 2px;
  background: var(--coral); display: inline-block;
}
.eyebrow.teal { color: var(--teal-deep); }
.eyebrow.teal::before { background: var(--teal); }
.eyebrow.center { justify-content: center; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-body); font-weight: 700; font-size: 16px;
  padding: 15px 24px; border-radius: 999px;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
  white-space: nowrap; line-height: 1;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--coral); color: white; box-shadow: var(--shadow-coral); }
.btn-primary:hover { background: var(--coral-deep); transform: translateY(-2px); box-shadow: 0 12px 28px oklch(0.685 0.155 38 / 0.38); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); transform: translateY(-2px); }
.btn-ink { background: var(--ink); color: var(--cream); }
.btn-ink:hover { background: var(--night-deep); transform: translateY(-2px); }
.btn-lg { padding: 18px 30px; font-size: 17px; }
.btn-block { width: 100%; }

/* Pills / chips */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 14px; color: var(--ink-soft);
  background: var(--paper); padding: 9px 15px; border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.chip svg { width: 16px; height: 16px; color: var(--teal-deep); }

section { position: relative; }
.sec-pad { padding: 96px 0; }

.section-head { max-width: 640px; }
.section-head h2 { font-size: clamp(34px, 5vw, 52px); margin: 14px 0 0; }
.section-head p { color: var(--muted); font-size: 19px; margin-top: 16px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 880px) {
  body { font-size: 16px; }
  .sec-pad { padding: 68px 0; }
  .wrap { padding: 0 20px; }
}
