/* Divvo website — brand tokens mirror src/theme/colors.ts. No external requests. */
:root {
  --primary: #0f766e;
  --primary-dark: #115e59;
  --primary-soft: #ccfbf1;
  --coral: #f97360;
  --ink: #102a2a;
  --muted: #5b6b7d;
  --bg: #f7f8f6;
  --surface: #ffffff;
  --border: #e5e7eb;
  --danger: #b91c1c;
  --radius: 16px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --primary: #2dd4bf;
    --primary-dark: #0b3d3a;
    --primary-soft: #134e4a;
    --ink: #e7f2f0;
    --muted: #9fb3b0;
    --bg: #0b1514;
    --surface: #12201f;
    --border: #22403d;
    --danger: #f87171;
  }
}
* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    17px/1.6 -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Inter,
    Roboto,
    'Helvetica Neue',
    Arial,
    sans-serif;
}
a {
  color: var(--primary);
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-thickness: 2px;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}
.narrow {
  max-width: 760px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  font-size: 18px;
}
.brand img {
  width: 32px;
  height: 32px;
}
.nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 15px;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
}
.nav a:hover,
.nav a[aria-current='page'] {
  color: var(--ink);
}

/* Hero */
.hero {
  background: linear-gradient(160deg, #138c84, #115e59);
  color: #fff;
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  align-items: center;
  padding-top: 56px;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1.08;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}
.hero p {
  font-size: 19px;
  color: #ccfbf1;
  margin: 0 0 24px;
  max-width: 34ch;
}
.hero .shots {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 0;
  margin-bottom: -40px;
}
.hero .shots img {
  width: 240px;
}
.hero .shots img + img {
  margin-left: -90px;
  transform: translateY(40px);
}
.badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 56px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 15px;
  color: #fff;
}

/* Sections */
section {
  padding: 64px 0;
}
h2 {
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1.2;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.lead {
  color: var(--muted);
  margin: 0 0 32px;
  max-width: 60ch;
}
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.feature h3 {
  margin: 10px 0 6px;
  font-size: 18px;
}
.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}
.dot {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
}
.dot svg {
  width: 22px;
  height: 22px;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.gallery figure {
  margin: 0;
  text-align: center;
}
.gallery figcaption {
  color: var(--muted);
  font-size: 15px;
  margin-top: 4px;
}

/* Documents */
.doc {
  padding: 48px 0 64px;
}
.doc h1 {
  font-size: clamp(30px, 5vw, 40px);
  line-height: 1.15;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.doc .meta {
  color: var(--muted);
  margin: 0 0 32px;
}
.doc h2 {
  font-size: 22px;
  margin: 36px 0 8px;
}
.doc h3 {
  font-size: 18px;
  margin: 24px 0 6px;
}
.doc ul,
.doc ol {
  padding-left: 22px;
}
.doc li {
  margin: 4px 0;
}
.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 15px;
  display: block;
  overflow-x: auto;
}
.doc th,
.doc td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.doc th {
  color: var(--muted);
  font-weight: 600;
}
.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 20px 0;
}
.callout.warn {
  border-left-color: var(--coral);
}
.steps {
  counter-reset: s;
  list-style: none;
  padding: 0 !important;
}
.steps li {
  counter-increment: s;
  position: relative;
  padding-left: 44px;
  margin: 14px 0;
}
.steps li::before {
  content: counter(s);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 15px;
}
.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 20px;
  font-size: 15px;
}
.toc ol {
  margin: 6px 0 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 15px;
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.site-footer nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.site-footer a {
  color: var(--muted);
}

@media (max-width: 820px) {
  .hero .wrap {
    grid-template-columns: 1fr;
    padding-top: 40px;
  }
  .hero .shots img {
    width: 46%;
    max-width: 220px;
  }
  .hero .shots img + img {
    margin-left: -16%;
  }
  .features {
    grid-template-columns: 1fr;
  }
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .badges {
    padding-bottom: 8px;
  }
}
