/* Plumb & Square — static marketing site
   No build step, no JS, no external assets. System fonts only. */

:root {
  --bg: #f7f3ec;          /* warm paper */
  --surface: #ffffff;
  --ink: #2a2620;         /* warm near-black */
  --muted: #6f6659;
  --accent: #a85a2a;      /* timber / terracotta */
  --accent-strong: #8f4a20;
  --accent-soft: #f2e4d6;
  --border: #e6ddd0;
  --ring: rgba(168, 90, 42, 0.35);
  --grid: rgba(42, 38, 32, 0.05);
  --radius: 14px;
  --maxw: 960px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 0.5em; }

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

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 243, 236, 0.9);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 12px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.brand:hover { color: var(--ink); }
.brand .mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  flex: none;
}
.brand .mark svg { width: 20px; height: 20px; }
.header-nav a {
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--muted);
  white-space: nowrap;
}
.header-nav a:hover { color: var(--accent); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: inherit;
  font-weight: 700;
  padding: 13px 22px;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.05s ease, background-color 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-strong); color: #fff; }
.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---- Hero ---- */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 26px 26px;
}
.hero .container { padding-top: 72px; padding-bottom: 72px; text-align: center; }
.hero-logo { display: block; width: 68px; height: 68px; margin: 0 auto 22px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: 2.1rem;
  font-weight: 800;
  max-width: 16ch;
  margin-left: auto;
  margin-right: auto;
}
.hero .lede {
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 60ch;
  margin: 0 auto 32px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero-note { margin-top: 16px; font-size: 0.9rem; color: var(--muted); }

/* ---- Sections ---- */
section { padding: 56px 0; }
.section-title { text-align: center; font-size: 1.5rem; margin-bottom: 8px; }
.section-sub { text-align: center; color: var(--muted); max-width: 52ch; margin: 0 auto 36px; }

/* ---- Features ---- */
.features { display: grid; gap: 20px; grid-template-columns: 1fr; }
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.feature .ficon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 16px;
}
.feature .ficon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.12rem; }
.feature p { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* ---- Waitlist ---- */
.waitlist { text-align: center; }
.waitlist .panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 24px;
  max-width: 640px;
  margin: 0 auto;
}

/* ---- Prose (privacy / disclosure) ---- */
.prose { max-width: 68ch; margin: 0 auto; padding-top: 48px; padding-bottom: 48px; }
.prose h1 { font-size: 1.9rem; }
.prose h2 { font-size: 1.2rem; margin-top: 1.6em; }
.prose p, .prose li { color: #453f37; }
.prose .updated { color: var(--muted); font-size: 0.92rem; margin-top: -0.4em; }
.prose a { font-weight: 600; }
.back-link {
  display: inline-block;
  margin-bottom: 24px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 32px 0;
  margin-top: 24px;
}
.site-footer .container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}
.site-footer .legal { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; }
.site-footer a { font-weight: 600; text-decoration: none; }
.site-footer .sep { color: var(--border); }

/* ---- Responsive ---- */
@media (min-width: 700px) {
  body { font-size: 18px; }
  .hero h1 { font-size: 3rem; }
  .hero .container { padding-top: 96px; padding-bottom: 96px; }
  .features { grid-template-columns: repeat(3, 1fr); }
  .section-title { font-size: 1.9rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
