/* ══════════════════════════════════════════════════════════════════════════
   Naggy Alarms — Editorial Monolith
   Hard edges. Typographic hierarchy. Quiet authority.
   ══════════════════════════════════════════════════════════════════════════ */

:root {
  color-scheme: light dark;

  /* Paper (light) */
  --bg:          #f9f7f2;
  --bg-deep:     #f0ece4;
  --fg:          #1a1a1a;
  --fg-mid:      #2d3435;
  --fg-soft:     #555555;
  --fg-muted:    #6a6f71;
  --accent:      #9f4200;
  --accent-dim:  #8c3900;
  --accent-on:   #fff6f3;
  --rule:        rgba(45, 52, 53, 0.12);
  --rule-strong: rgba(45, 52, 53, 0.25);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:          #1a1a1a;
    --bg-deep:     #222222;
    --fg:          #f9f7f2;
    --fg-mid:      #e0ddd5;
    --fg-soft:     #9e9e9e;
    --fg-muted:    #858585;
    --accent:      #d4763a;
    --accent-dim:  #bf6530;
    --accent-on:   #1a1a1a;
    --rule:        rgba(224, 221, 213, 0.10);
    --rule-strong: rgba(224, 221, 213, 0.20);
  }
}

/* ── Reset ──────────────────────────────────────────────────────────────── */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--fg);
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--accent);
  color: var(--accent-on);
}

/* ── Links ──────────────────────────────────────────────────────────────── */

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--accent-dim);
}

/* ── Shell ──────────────────────────────────────────────────────────────── */

.shell {
  width: min(100% - 3rem, 48rem);
  margin: 0 auto;
  padding: 3.5rem 0 5rem;
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 2rem, 48rem);
    padding: 2rem 0 3.5rem;
  }
}

/* ── Masthead ───────────────────────────────────────────────────────────── */

.masthead {
  padding-bottom: 3rem;
  border-bottom: 2px solid var(--fg);
}

.eyebrow {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
}

.title {
  font-size: clamp(2.6rem, 7.5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 0.96;
  color: var(--fg-mid);
  margin-bottom: 1.5rem;
}

.lede {
  max-width: 36rem;
  color: var(--fg-soft);
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* ── Navigation ─────────────────────────────────────────────────────────── */

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.nav a {
  display: inline-flex;
  align-items: center;
  height: 2.4rem;
  padding: 0 0.9rem;
  border: 1.5px solid var(--rule-strong);
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.15s ease;
}

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

.nav a.active {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-on);
}

/* ── Layout ──────────────────────────────────────────────────────────────── */

.layout {
  padding-top: 3rem;
}

/* ── Sections ────────────────────────────────────────────────────────────── */

.section {
  padding-bottom: 2.5rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--rule);
}

.section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.section-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.section h2 {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.section p {
  color: var(--fg-soft);
  font-size: 1rem;
  line-height: 1.75;
}

.section p + p {
  margin-top: 0.8rem;
}

.section li {
  color: var(--fg-soft);
  font-size: 1rem;
  line-height: 1.75;
}

/* ── Contact blocks — flat, no cards ─────────────────────────────────────── */

.contact-row {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 641px) {
  .contact-row {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.contact-block h3 {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-mid);
  margin-bottom: 0.5rem;
}

.contact-block p {
  color: var(--fg-soft);
  font-size: 0.95rem;
  line-height: 1.7;
}

.action-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.6rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
}

.action-link::after {
  content: "\2192";
  font-size: 1.1em;
  transition: transform 0.15s ease;
}

.action-link:hover::after {
  transform: translateX(4px);
}

/* ── Numbered list (troubleshooting) ─────────────────────────────────────── */

.numbered-list {
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 1.1rem;
}

.numbered-list li {
  display: grid;
  grid-template-columns: 1.8rem 1fr;
  gap: 0.5rem;
  align-items: baseline;
}

.numbered-list li::before {
  counter-increment: step;
  content: counter(step);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: var(--accent);
}

/* ── Dash list (features, data handling) ─────────────────────────────────── */

.dash-list {
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.dash-list li {
  padding-left: 1.4rem;
  position: relative;
}

.dash-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 1.5px;
  background: var(--accent);
}

/* ── Callout ─────────────────────────────────────────────────────────────── */

.callout {
  margin-top: 0.5rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--rule);
  color: var(--fg-soft);
  font-size: 1rem;
  line-height: 1.75;
}

/* ── Policy blocks ───────────────────────────────────────────────────────── */

.policy-block {
  margin-bottom: 2.25rem;
}

.policy-block:last-child {
  margin-bottom: 0;
}

.policy-block h3 {
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-mid);
  margin-bottom: 0.6rem;
}

.policy-block p {
  color: var(--fg-soft);
  font-size: 1rem;
  line-height: 1.75;
}

.policy-block p + p {
  margin-top: 0.6rem;
}

/* ── Quick links (index page) ────────────────────────────────────────────── */

.quick-links {
  display: grid;
  gap: 2rem;
}

@media (min-width: 641px) {
  .quick-links {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

.quick-link h3 {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-mid);
  margin-bottom: 0.5rem;
}

.quick-link p {
  color: var(--fg-soft);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  padding-top: 2rem;
  margin-top: 1.5rem;
  border-top: 2px solid var(--fg);
}

.meta {
  color: var(--fg-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.meta a {
  color: var(--fg-muted);
  text-decoration: none;
}

.meta a:hover {
  color: var(--accent);
}

/* ── Entrance ────────────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: no-preference) {
  .masthead,
  .section,
  .footer {
    animation: enter 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .masthead                { animation-delay: 0s; }
  .section:nth-child(1)    { animation-delay: 0.05s; }
  .section:nth-child(2)    { animation-delay: 0.10s; }
  .section:nth-child(3)    { animation-delay: 0.15s; }
  .section:nth-child(4)    { animation-delay: 0.20s; }
  .section:nth-child(5)    { animation-delay: 0.25s; }
  .footer                  { animation-delay: 0.30s; }

  @keyframes enter {
    from {
      opacity: 0;
      transform: translateY(8px);
    }
  }
}
