/* Clearling's site: one stylesheet, no third-party requests. */

:root {
  --brand: #0f8b76;
  --brand-strong: #0b6e5e;
  --brand-soft: #e3f3ef;
  --hero-from: #35c2a6;
  --hero-to: #0b6e5e;
  --bg: #f7faf9;
  --surface: #ffffff;
  --text: #17211f;
  --muted: #55625f;
  --border: #dde6e3;
  --radius: 20px;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 8px 24px rgb(15 139 118 / 0.08);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #5fd3bb;
    --brand-strong: #84e2cd;
    --brand-soft: #16302b;
    --hero-from: #138a74;
    --hero-to: #0a4a40;
    --bg: #0f1514;
    --surface: #18201e;
    --text: #e4ecea;
    --muted: #9fb0ac;
    --border: #2a3532;
    --shadow: none;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--brand); text-underline-offset: 2px; }
a:hover { color: var(--brand-strong); }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }

/* Header */

.site-header { padding: 18px 0; }
.site-header .wrap { display: flex; align-items: center; gap: 16px; }
.brand {
  display: flex; align-items: center; gap: 10px;
  color: inherit; text-decoration: none; font-weight: 700; font-size: 19px;
}
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.site-header nav { margin-left: auto; display: flex; gap: 18px; font-size: 15px; }
.site-header nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
.site-header nav a:hover { color: var(--text); }
.hero-page .site-header { color: #fff; }
.hero-page .site-header nav a { color: rgb(255 255 255 / 0.85); }
.hero-page .site-header nav a:hover { color: #fff; }

/* Hero */

.hero {
  background: linear-gradient(135deg, var(--hero-from), var(--hero-to));
  color: #fff;
  padding-bottom: 64px;
}
.hero-body { display: grid; gap: 24px; padding-top: 40px; }
.hero h1 {
  margin: 0; font-size: clamp(38px, 7vw, 60px); line-height: 1.08; letter-spacing: -0.02em;
}
.hero p.lead { margin: 0; font-size: clamp(18px, 2.4vw, 21px); max-width: 34em; color: rgb(255 255 255 / 0.92); }
.badge {
  display: inline-flex; align-items: center; gap: 10px; justify-self: start;
  padding: 12px 20px; border-radius: 14px;
  background: rgb(0 0 0 / 0.22); color: #fff; font-weight: 600; text-decoration: none;
}
a.badge:hover { background: rgb(0 0 0 / 0.32); color: #fff; }
.badge svg { width: 22px; height: 22px; flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li {
  padding: 4px 12px; border-radius: 999px; font-size: 14px; font-weight: 500;
  background: rgb(255 255 255 / 0.16);
}

/* Screenshots */

.shots {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 20px 12px; margin: -40px auto 0; max-width: 1080px;
  scrollbar-width: thin;
}
.shots img {
  flex: none; width: 216px; height: auto; aspect-ratio: 1080 / 1920;
  border-radius: 16px; scroll-snap-align: center; box-shadow: var(--shadow);
  background: var(--hero-to);
}

/* Sections */

section { padding: 56px 0 8px; }
h2 { font-size: clamp(26px, 4vw, 32px); line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 20px; }
h3 { font-size: 19px; margin: 0 0 8px; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 24px; box-shadow: var(--shadow);
}
.card p, .card ul { margin: 0; color: var(--muted); }
.card ul { padding-left: 20px; }
.card li + li { margin-top: 6px; }
.icon {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: var(--brand-soft); color: var(--brand); margin-bottom: 14px;
}
.icon svg { width: 24px; height: 24px; }

details {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 14px 20px;
}
details + details { margin-top: 10px; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 10px 0 2px; color: var(--muted); }

/* Policy pages */

.doc { padding-top: 24px; padding-bottom: 40px; }
.doc h1 { font-size: clamp(32px, 5vw, 42px); line-height: 1.15; letter-spacing: -0.02em; margin: 16px 0 6px; }
.doc h2 { font-size: 22px; margin: 36px 0 10px; }
.doc .updated { color: var(--muted); margin: 0 0 24px; }
.doc li + li { margin-top: 8px; }
.doc code {
  font-size: 0.85em; padding: 1px 6px; border-radius: 6px;
  background: var(--brand-soft); overflow-wrap: anywhere;
}
.summary {
  background: var(--brand-soft); border-radius: 16px; padding: 16px 20px; margin: 0 0 8px;
}

/* Footer */

.site-footer { margin-top: 64px; padding: 28px 0 40px; border-top: 1px solid var(--border); color: var(--muted); font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { color: var(--muted); }
.site-footer .copy { margin-left: auto; }

@media (max-width: 560px) {
  .site-header nav { gap: 14px; font-size: 14px; }
  .shots img { width: 180px; }
  .site-footer .copy { margin-left: 0; width: 100%; }
}
