/* Exhalio site — plain CSS, no build step */

:root {
  --bg: #f4f8f7;
  --surface: #ffffff;
  --ink: #1b2a29;
  --muted: #5b6e6b;
  --line: #d8e3e1;
  --accent: #2f8f83;
  --accent-ink: #1e6a61;
  --accent-soft: #e0f1ee;
  --radius: 16px;
  --max: 1080px;
  --breath: 8s; /* one full inhale + exhale */
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111918;
    --surface: #182322;
    --ink: #e6efed;
    --muted: #9cb0ac;
    --line: #2a3a38;
    --accent: #5cc2b4;
    --accent-ink: #8fe0d4;
    --accent-soft: #1d3330;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-ink); }

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

.container {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-size: 18px;
  color: var(--ink);
  text-decoration: none;
}

.logo-mark {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--accent-soft), var(--accent));
}

.nav { display: flex; gap: 22px; }

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
}

.nav a:hover { color: var(--ink); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: transform .15s ease, background .15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--accent); color: #fff; }

.btn-secondary {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- Hero ---------- */

.hero { padding: 80px 0 64px; }

.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--accent-ink);
  background: var(--accent-soft);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

h1 {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -.02em;
  margin: 0 0 18px;
}

.lead {
  font-size: 19px;
  color: var(--muted);
  margin: 0 0 30px;
  max-width: 34ch;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

.fine { font-size: 13px; color: var(--muted); margin-top: 14px; }

/* Demo: a fake desktop whose border fills as you breathe */

.demo {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px -20px rgb(0 0 0 / .25);
  overflow: hidden;
}

.demo-border {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 6px solid var(--accent);
  clip-path: inset(0 100% 0 0);
  animation: fill var(--breath) ease-in-out infinite;
}

@keyframes fill {
  0%   { clip-path: inset(0 100% 0 0); }
  50%  { clip-path: inset(0 0 0 0); }
  100% { clip-path: inset(0 0 0 100%); }
}

.demo-window {
  position: absolute;
  inset: 14% 12% 18%;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 14px;
}

.demo-bar {
  height: 8px;
  border-radius: 4px;
  background: var(--line);
  margin-bottom: 10px;
}

.demo-bar:nth-child(1) { width: 40%; }
.demo-bar:nth-child(2) { width: 85%; }
.demo-bar:nth-child(3) { width: 70%; }
.demo-bar:nth-child(4) { width: 78%; }

.demo-label {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-ink);
}

.demo-label span { animation: label var(--breath) steps(1) infinite; }
.demo-label .out { opacity: 0; animation-delay: calc(var(--breath) / -2); }

.demo-label { display: grid; }
.demo-label span { grid-area: 1 / 1; }

@keyframes label {
  0%   { opacity: 1; }
  50%  { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .demo-border { animation: none; clip-path: none; }
  .demo-label span { animation: none; }
  .demo-label .out { display: none; }
}

/* ---------- Sections ---------- */

section { padding: 72px 0; }

.section-title {
  font-size: clamp(26px, 3.4vw, 36px);
  letter-spacing: -.01em;
  margin: 0 0 12px;
}

.section-sub {
  color: var(--muted);
  margin: 0 0 40px;
  max-width: 56ch;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}

.card .icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.card .icon svg { width: 22px; height: 22px; }

.card h3 { margin: 0 0 6px; font-size: 18px; }

.card p { margin: 0; color: var(--muted); }

/* Steps */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  counter-reset: step;
  padding: 0;
  margin: 0;
  list-style: none;
}

.steps li {
  counter-increment: step;
  border-top: 2px solid var(--accent);
  padding-top: 18px;
}

.steps li::before {
  content: counter(step);
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-ink);
  margin-bottom: 6px;
}

.steps h3 { margin: 0 0 6px; font-size: 18px; }

.steps p { margin: 0; color: var(--muted); }

/* Feedback band */

.band {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.band h2 { margin: 0 0 6px; font-size: 26px; }

.band p { margin: 0; color: var(--muted); }

/* FAQ */

.faq { max-width: 720px; }

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  color: var(--muted);
  font-weight: 400;
  font-size: 20px;
  line-height: 1;
}

.faq details[open] summary::after { content: "–"; }

.faq p { color: var(--muted); margin: 10px 0 0; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 48px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer a { color: var(--muted); }

.site-footer nav { display: flex; gap: 18px; }

/* ---------- Text pages (privacy) ---------- */

.prose {
  max-width: 720px;
  padding: 56px 0 72px;
}

.prose h1 { font-size: clamp(32px, 4vw, 44px); }

.prose h2 { font-size: 22px; margin: 36px 0 8px; }

.prose p, .prose li { color: var(--ink); }

.prose .updated { color: var(--muted); margin-top: -8px; }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .hero { padding-top: 48px; }
  .hero .container { grid-template-columns: 1fr; gap: 40px; }
  .features, .steps { grid-template-columns: 1fr; }
  .nav { display: none; }
  .band { padding: 28px; }
}
