/* Plumb website: system fonts, light and dark, phone first. No build step. */
:root {
  --blue: #2563eb;
  --teal: #14b8a6;
  --ink: #0b1220;
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --card: #ffffff;
  --text: #0b1220;
  --muted: #5b6475;
  --line: rgba(11, 18, 32, 0.08);
  --shadow: 0 10px 30px rgba(11, 18, 32, 0.08);
  --radius: 22px;
  --gradient: linear-gradient(135deg, var(--blue), var(--teal));
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #05080f;
    --bg-soft: #0b1220;
    --card: #111a2c;
    --text: #eef2f9;
    --muted: #9aa5b8;
    --line: rgba(255, 255, 255, 0.08);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.4em;
}
h1 { font-size: clamp(2.4rem, 9vw, 4.2rem); }
h2 { font-size: clamp(1.7rem, 6vw, 2.5rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); font-size: 1.1rem; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.site-header nav { display: flex; gap: 18px; font-size: 0.95rem; }
.site-header nav a { color: var(--muted); }
.site-header nav a[aria-current="page"] { color: var(--text); font-weight: 600; }

/* Hero */
.hero { padding: 56px 0 40px; text-align: center; }
.hero .icon {
  width: 120px; height: 120px; margin: 0 auto 24px; border-radius: 27px;
  box-shadow: 0 20px 50px rgba(37, 99, 235, 0.35);
}
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; margin: 0 auto 28px; }
.gradient-text { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 14px;
  background: var(--text); color: var(--bg);
  font-weight: 600; font-size: 0.95rem;
}
.badge svg { width: 20px; height: 20px; fill: currentColor; }
.badge small { display: block; font-weight: 500; opacity: 0.7; font-size: 0.72rem; line-height: 1; }

/* Sections */
section { padding: 48px 0; }
section.soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 36em; margin: 0 auto 32px; }

.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid.two { grid-template-columns: 1fr 1fr; } .grid.three { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.mode { color: #fff; border: 0; position: relative; overflow: hidden; }
.mode.object { background: var(--gradient); }
.mode.room { background: linear-gradient(135deg, #4f46e5, var(--blue)); }
.mode p { color: rgba(255, 255, 255, 0.88); }
.mode ul { margin: 0; padding-left: 1.1em; color: rgba(255, 255, 255, 0.92); }
.mode .glyph { font-size: 2.2rem; line-height: 1; margin-bottom: 12px; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { counter-increment: step; display: flex; gap: 14px; align-items: flex-start; }
.steps li::before {
  content: counter(step); flex: none; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: var(--gradient); color: #fff; font-weight: 700;
}

.stat { font-family: ui-rounded, -apple-system, sans-serif; font-size: 2rem; font-weight: 700; }

details { border-bottom: 1px solid var(--line); padding: 14px 0; }
details summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--muted); font-weight: 400; transition: transform 0.2s ease; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 10px 0 0; color: var(--muted); }

.prose { max-width: 44em; margin: 0 auto; }
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.prose li { margin-bottom: 0.4em; }

footer { padding: 36px 0 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* Gentle entrance animations, off for Reduce Motion */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .rise.d1 { animation-delay: 0.08s; } .rise.d2 { animation-delay: 0.16s; } .rise.d3 { animation-delay: 0.24s; }
  .hero .icon { animation: rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both, bob 4s ease-in-out 0.8s infinite; }
  .card { transition: transform 0.25s ease, box-shadow 0.25s ease; }
  .card:hover { transform: translateY(-3px); }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

.h2-sm { font-size: 1.4rem; }
