/* One Thing — marketing site styles.
 *
 * Three pages share this stylesheet: index.html (landing), privacy.html,
 * and terms.html. Designed to be readable on phone and desktop without a
 * JS framework. Color palette matches the in-app Material 3 seed
 * (#2E7D5B — forest green).
 */

:root {
  --primary: #2e7d5b;
  --primary-dark: #1e5e44;
  --primary-soft: #e5f3ec;
  --accent: #d97706;
  --bg: #ffffff;
  --bg-muted: #f8faf9;
  --surface: #ffffff;
  --text: #111418;
  --text-muted: #5a6470;
  --border: #e4e7ec;
  --shadow: 0 1px 2px rgba(17, 20, 24, 0.04), 0 4px 16px rgba(17, 20, 24, 0.04);
  --radius: 14px;
  --max-width: 880px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--primary-dark);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* ------------------------------------------------------------------ Nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(150%) blur(8px);
  -webkit-backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
/* The brand-mark used to be a flat green square as a placeholder. It's now
 * an <img> pointing at logo.svg. We keep a fallback background so the
 * layout still has a visible square if the SVG fails to load. */
.brand .brand-mark {
  width: 28px;
  height: 28px;
  display: inline-block;
  /* No border-radius — the SVG already has a circular silhouette. */
}
.nav-links {
  display: flex;
  gap: 20px;
  font-size: 0.95rem;
}
.nav-links a {
  color: var(--text-muted);
}
.nav-links a:hover {
  color: var(--text);
}

/* --------------------------------------------------------------- Layout */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

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

.hero {
  padding: 96px 24px 64px;
  background:
    radial-gradient(
      ellipse at top,
      var(--primary-soft) 0%,
      transparent 70%
    ),
    var(--bg);
  text-align: center;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.hero .lede {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 32px;
}

/* ---------------------------------------------------------------- CTAs */

.cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.98rem;
  transition: transform 0.05s ease, background 0.1s ease;
}
.cta-primary {
  background: var(--primary);
  color: #ffffff;
}
.cta-primary:hover {
  background: var(--primary-dark);
  text-decoration: none;
}
.cta-secondary {
  background: var(--bg-muted);
  color: var(--text);
  border: 1px solid var(--border);
}
.cta-secondary:hover {
  background: #f0f3f1;
  text-decoration: none;
}
.cta:active {
  transform: translateY(1px);
}

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

/* IMPORTANT: use `padding-block` (top/bottom only) here. Sections also have
 * the `.container` class which provides the horizontal gutter via
 * `padding: 0 24px`. If we used shorthand `padding: 56px 0`, the horizontal
 * 0 would *override* the gutter from `.container` (same specificity, this
 * rule comes later) and the content would slam against the viewport edge
 * on narrow screens. Same gotcha applies to `.doc` below.
 */
section.block {
  padding-block: 56px;
  border-top: 1px solid var(--border);
}
section.block:first-of-type {
  border-top: none;
}
section.block h2 {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}
section.block .section-lede {
  color: var(--text-muted);
  margin: 0 0 32px;
  max-width: 620px;
}

/* Features grid */

.features {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
}
.feature h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}
.feature p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.97rem;
}

/* Quote / philosophy */
.quote {
  background: var(--primary-soft);
  border-radius: var(--radius);
  padding: 28px 28px;
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--primary-dark);
}
.quote em {
  font-style: normal;
  font-weight: 600;
}

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

footer {
  background: var(--bg-muted);
  border-top: 1px solid var(--border);
  margin-top: 56px;
  padding: 36px 24px;
  color: var(--text-muted);
  font-size: 0.9rem;
}
footer .footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
footer .footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
footer a {
  color: var(--text-muted);
}
footer a:hover {
  color: var(--text);
}

/* Small icon + © text grouped together on the left side of the footer. */
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.footer-brand img {
  /* Set explicit dimensions so the icon doesn't reflow the footer while
   * loading. */
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* ------------------------------------------------------------ Doc pages */

/* Same `padding-block` rationale as `section.block` above — the `.doc`
 * wrapper is also `.container`, so the horizontal gutter is supplied by
 * `.container` and we must not stomp on it here. */
.doc {
  padding-block: 56px 32px;
}
.doc h1 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.doc .effective {
  color: var(--text-muted);
  margin: 0 0 32px;
  font-size: 0.95rem;
}
.doc h2 {
  margin-top: 36px;
  font-size: 1.35rem;
}
.doc h3 {
  margin-top: 24px;
  font-size: 1.05rem;
}
.doc p,
.doc li {
  color: #1a2129;
}
.doc ul {
  padding-left: 22px;
}
.doc .callout {
  background: #fff8eb;
  border: 1px solid #fce4b8;
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 24px 0;
  font-size: 0.95rem;
  color: #6b4d10;
}
