/* -----------------------------------------------------------
   Denning landing — shared design tokens, nav, footer, and
   base typography used by every page in web/landing/.
   Page-specific layout (hero, bento, FAQ content, etc.) stays
   inline in each page's own <style> block.
   ----------------------------------------------------------- */

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

:root {
  --canvas: #f5f5f7;
  --surface: #ffffff;
  --surface-2: #fbfbfd;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #86868b;
  --line: #d2d2d7;
  --line-2: #e8e8ed;

  --brand: #264239;           /* Denning forest — primary CTA + brand */
  --brand-hover: #1A2F28;     /* Deeper forest for hover */
  --brand-soft: #3D6354;      /* Sage variant for gradients */

  --accent: #B68A33;          /* Denning mustard — used very sparingly */

  --radius-sm: 8px;
  --radius:    12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --pill:      999px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.05);
  --shadow-lg: 0 24px 60px rgba(0,0,0,0.08);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-soft: cubic-bezier(0.16, 1, 0.3, 1);

  --nav-h: 48px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--canvas); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Anchor targets (nav links, footer #hash links) shouldn't land under the
   fixed nav bar. */
[id] { scroll-margin-top: calc(var(--nav-h) + 12px); }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Segoe UI', sans-serif;
  background: var(--canvas);
  color: var(--ink);
  line-height: 1.47;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--brand); color: #fff; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 8px;
}

/* -----------------------------------------------------------
   Layout primitives
   ----------------------------------------------------------- */
.container { max-width: 1024px; margin: 0 auto; padding: 0 22px; }
.container-wide { max-width: 1280px; margin: 0 auto; padding: 0 22px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff;
  padding: 12px 18px; border-radius: 0 0 8px 0;
  font-weight: 600; z-index: 200;
}
.skip:focus { left: 0; }

/* -----------------------------------------------------------
   Typography
   ----------------------------------------------------------- */
.eyebrow {
  font-size: clamp(0.78rem, 1.2vw, 0.88rem);
  font-weight: 600;
  color: var(--brand);
  letter-spacing: -0.005em;
  margin-bottom: 12px;
}
.display {
  /* Floor kept small enough that the longest forced hero line
     ("Move with clarity.") fits a ~360px viewport without overflowing. */
  font-size: clamp(2rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--ink);
  overflow-wrap: break-word;
}
.h1-page {
  font-size: clamp(1.9rem, 4.5vw, 2.7rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.h2 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.h3 {
  font-size: clamp(1.35rem, 2vw, 1.6rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.018em;
  color: var(--ink);
}
.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.32rem);
  font-weight: 400;
  line-height: 1.42;
  letter-spacing: -0.005em;
  color: var(--ink-2);
}
.body { font-size: 1.02rem; color: var(--ink-2); line-height: 1.55; }
.body-sm { font-size: 0.92rem; color: var(--ink-2); line-height: 1.5; }

/* -----------------------------------------------------------
   CTAs
   ----------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px;
  padding: 11px 22px;
  border-radius: var(--pill);
  font-weight: 400;
  font-size: 0.95rem;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.15s var(--ease);
  border: 1px solid transparent;
  text-decoration: none;
  min-height: 40px;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand); color: #fff !important; }
.btn-primary:hover { background: var(--brand-hover); }
.btn-ghost { background: transparent; color: var(--brand) !important; }
.btn-ghost:hover { text-decoration: underline; }

.link-arrow {
  color: var(--brand);
  font-weight: 400;
  font-size: 1rem;
  display: inline-flex; align-items: center; gap: 4px;
}
.link-arrow svg { width: 13px; height: 13px; transition: transform 0.2s var(--ease); }
.link-arrow:hover { text-decoration: none; }
.link-arrow:hover svg { transform: translateX(2px); }

.cta-pair {
  display: inline-flex; gap: 28px; flex-wrap: wrap;
  margin-top: 24px;
}

/* -----------------------------------------------------------
   Navigation — shared across every page
   ----------------------------------------------------------- */
nav.site-nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  background: rgba(245, 245, 247, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0);
  transition: border-color 0.25s var(--ease);
}
nav.site-nav.scrolled { border-bottom-color: rgba(0,0,0,0.06); background: rgba(255,255,255,0.85); }
.nav-inner {
  max-width: 1024px; margin: 0 auto;
  padding: 0 22px;
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-size: 1.18rem; font-weight: 600;
  color: var(--ink); text-decoration: none;
  letter-spacing: -0.02em;
  display: inline-flex; align-items: baseline; gap: 1px;
}
.nav-logo:hover { text-decoration: none; }
.nav-logo .dot {
  display: inline-block;
  width: 5px; height: 5px;
  background: var(--accent);
  border-radius: 50%;
  margin-left: 2px;
  transform: translateY(-1px);
}
.nav-links {
  display: flex; gap: 28px; list-style: none; align-items: center;
}
.nav-links a {
  color: var(--ink);
  font-size: 0.82rem; font-weight: 400;
  opacity: 0.88;
  transition: opacity 0.15s var(--ease);
}
.nav-links a:hover { opacity: 1; text-decoration: none; }
.nav-cta {
  color: var(--brand) !important;
  font-weight: 500 !important;
}

.nav-mobile-toggle {
  display: none; background: none; border: none;
  padding: 6px;
}
.nav-mobile-toggle span {
  display: block; width: 18px; height: 1.5px;
  background: var(--ink);
  margin: 4px 0; border-radius: 1px;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.nav-mobile-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-mobile-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-mobile-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h); left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    padding: 18px;
    gap: 14px;
    border-bottom: 1px solid var(--line-2);
    box-shadow: var(--shadow-md);
  }
  .nav-links.active { display: flex; }
  .nav-mobile-toggle { display: block; }
}

/* -----------------------------------------------------------
   FAQ — Apple-style minimal accordion with hairline dividers
   ----------------------------------------------------------- */
.faq {
  max-width: 820px; margin: 0 auto;
  border-top: 1px solid var(--line-2);
}
.faq details {
  border-bottom: 1px solid var(--line-2);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 28px 4px;
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: -0.015em;
  color: var(--ink);
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  width: 14px; height: 14px;
  background:
    linear-gradient(currentColor, currentColor) center/2px 14px no-repeat,
    linear-gradient(currentColor, currentColor) center/14px 2px no-repeat;
  color: var(--ink-2);
  transition: transform 0.2s var(--ease);
  flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer {
  padding: 0 4px 28px;
  color: var(--ink-2);
  line-height: 1.55;
  font-size: 1rem;
  max-width: 680px;
}
.faq .answer p { margin-bottom: 12px; }
.faq .answer p:last-child { margin-bottom: 0; }
.faq .answer ol, .faq .answer ul { margin: 8px 0 12px 20px; }
.faq .answer li { margin-bottom: 6px; }
.faq .answer a { font-weight: 500; }

/* -----------------------------------------------------------
   Section rhythm
   ----------------------------------------------------------- */
.panel { padding: 96px 0; }
.panel--canvas { background: var(--canvas); }
.panel--white  { background: var(--surface); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

@media (max-width: 768px) {
  .panel { padding: 72px 0; }
}

/* -----------------------------------------------------------
   Reveal — subtle, gentle fade-rise for elements marked .reveal
   ----------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.8s var(--ease-soft), transform 0.8s var(--ease-soft);
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* -----------------------------------------------------------
   Footer — compact, multi-column legal directory
   ----------------------------------------------------------- */
footer.site-footer {
  background: var(--canvas);
  color: var(--ink-2);
  padding: 28px 0 24px;
  border-top: 1px solid var(--line-2);
  font-size: 0.78rem;
}
.footer-prelude {
  color: var(--ink-3); font-size: 0.78rem; line-height: 1.5;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-2);
  margin-bottom: 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-bottom: 28px;
}
.footer-col h4 {
  font-size: 0.78rem; font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 6px; }
.footer-col a {
  color: var(--ink-2);
  font-size: 0.76rem;
  transition: color 0.15s var(--ease);
}
.footer-col a:hover { color: var(--ink); text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid var(--line-2);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--ink-3);
  font-size: 0.72rem;
}
.footer-bottom-links { display: flex; gap: 16px; }
.footer-bottom-links a { color: var(--ink-3); font-size: 0.72rem; }
.footer-bottom-links a:hover { color: var(--ink-2); text-decoration: underline; }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* -----------------------------------------------------------
   Long-form legal / prose pages (privacy, terms, delete-account)
   ----------------------------------------------------------- */
.prose {
  max-width: 720px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 48px) 22px 80px;
}
.prose h1 { font-size: clamp(1.8rem, 4vw, 2.3rem); font-weight: 700; letter-spacing: -0.03em; margin-bottom: 0.2em; color: var(--ink); }
.prose .updated { color: var(--ink-3); font-size: 0.9em; margin-bottom: 2em; }
.prose h2 { font-size: 1.3em; font-weight: 700; margin-top: 1.6em; margin-bottom: 0.5em; color: var(--brand); }
.prose p { color: var(--ink-2); margin-bottom: 0.9em; }
.prose ul, .prose ol { padding-left: 1.5em; color: var(--ink-2); margin-bottom: 0.9em; }
.prose li { margin-bottom: 0.5em; }
.prose a { color: var(--brand); font-weight: 500; }
.prose strong { color: var(--ink); }
.prose code { background: var(--line-2); padding: 0.1em 0.4em; border-radius: 4px; font-size: 0.92em; }
.prose .note {
  background: var(--surface-2);
  border-left: 4px solid var(--brand);
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  margin: 1.4em 0;
}
