/* Burrow site. One shared stylesheet, no framework, no build step, no external resource.
   Palette from design/mockups/project/Brand.dc.html: soil #1C1612, gallery #2A211B,
   parchment #F4EBDD, amber #F2A93B, moss #8DB580. Light text-amber is darkened (#8A5409)
   to keep 4.5:1 on parchment. Measured ratios are listed next to each token. */

:root {
  color-scheme: light dark;

  /* Light (default) */
  --bg: #F4EBDD;            /* parchment */
  --surface: #FBF7F0;       /* 16.8:1 with --text */
  --surface-2: #E9DDC9;     /* quiet panels */
  --text: #1C1612;          /* 15.1:1 on --bg */
  --text-2: #5A4C40;        /* 7.0:1 on --bg, 7.7:1 on --surface */
  --accent-text: #8A5409;   /* 5.3:1 on --bg, 5.9:1 on --surface */
  --moss-text: #3F6B34;     /* 5.3:1 on --bg, 5.9:1 on --surface */
  --line: #D6C7AE;
  --btn-bg: #F2A93B;        /* amber, 9.0:1 with --btn-text */
  --btn-text: #1C1612;
  --focus: #8A5409;
  --placeholder-bg: #FFE9B8;
  --placeholder-text: #3B2400; /* 12:1 on --placeholder-bg */
  --banner-bg: #FFE9B8;
  --banner-text: #3B2400;
  --fur-panel: #E9DDC9;

  --radius-s: 8px;
  --radius-m: 12px;
  --radius-l: 20px;
  --gutter: 16px;
  --measure: 40rem;
  --wide: 64rem;

  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1C1612;          /* soil */
    --surface: #2A211B;     /* gallery, 13.4:1 with --text */
    --surface-2: #3A2E25;
    --text: #F4EBDD;        /* 15.1:1 on --bg */
    --text-2: #C9BBA8;      /* 9.5:1 on --bg, 8.4:1 on --surface */
    --accent-text: #F2A93B; /* 9.0:1 on --bg, 7.9:1 on --surface */
    --moss-text: #8DB580;   /* 7.7:1 on --bg, 6.8:1 on --surface */
    --line: #3F3329;
    --btn-bg: #F2A93B;
    --btn-text: #1C1612;
    --focus: #F2A93B;
    --placeholder-bg: #4A3510;
    --placeholder-text: #FFE9B8; /* 9.8:1 on --placeholder-bg */
    --banner-bg: #4A3510;
    --banner-text: #FFE9B8;
    --fur-panel: #2A211B;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;       /* 17px, like iOS body */
  line-height: 1.55;
  overflow-wrap: break-word;
}

img, svg { max-width: 100%; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 7vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 4.5vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p, ul, ol, dl, table, details { margin: 0 0 1em; }
p { text-wrap: pretty; }
ul, ol { padding-left: 1.25em; }
li { margin-bottom: 0.35em; }

a { color: var(--accent-text); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  background: var(--btn-bg);
  color: var(--btn-text);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-s);
  font-weight: 700;
  z-index: 10;
}
.skip-link:focus { top: var(--gutter); }

.wrap {
  width: 100%;
  max-width: var(--wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.25rem;
  padding-block: 0.75rem;
}
.brand {
  gap: 0.6rem;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.brand img { width: 32px; height: 32px; display: block; }
.nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; align-items: center; }
.nav a {
  color: var(--text);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding-inline: 0.25rem;
}
.nav a:hover { text-decoration: underline; }
.nav a[hreflang] { color: var(--accent-text); font-weight: 600; }

/* Buttons and badge placeholder */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-text);
  font-weight: 700;
  text-decoration: none;
}
.btn:hover { filter: brightness(1.05); }

/* Pre-launch download area: plain text, not a link (Apple's badge is only used once the app is live). */
.store-soon {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin: 0;
  padding: 0.6rem 1.25rem;
  border: 2px solid var(--accent-text);
  border-radius: 999px;
  color: var(--text);
  background: var(--surface);
  font-family: var(--font-head);
  font-weight: 800;
}

/* Hero */
.hero { padding-block: 2.5rem 3rem; }
.hero .wrap { display: grid; gap: 2rem; align-items: center; }
.hero p.lead { font-size: 1.2rem; color: var(--text-2); max-width: 34rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: 1.5rem; }
.hero-note { font-size: 0.9375rem; color: var(--text-2); margin: 1rem 0 0; }
.gaston-panel {
  background: var(--fur-panel);
  border-radius: var(--radius-l);
  padding: 2rem 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}
.app-icon { width: min(70%, 14rem); height: auto; display: block; }
.privacy-line {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.35rem 0.9rem;
  border: 2px solid var(--moss-text);
  border-radius: 999px;
  color: var(--moss-text);
  font-weight: 700;
  font-size: 1rem;
}

/* Sections */
.section { padding-block: 3rem; border-top: 1px solid var(--line); }
.section > .wrap > p.intro { color: var(--text-2); max-width: var(--measure); }
.kicker { color: var(--accent-text); font-weight: 700; font-size: 0.9375rem; margin: 0 0 0.4rem; }

.features { display: grid; gap: 1rem; margin-top: 1.5rem; }
.feature {
  background: var(--surface);
  border-radius: var(--radius-l);
  padding: 1.5rem 1.25rem;
}
.feature h3 { margin-bottom: 0.4em; }
.feature p:last-child, .feature ul:last-child { margin-bottom: 0; }
.feature ul { color: var(--text-2); }
.tag {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--moss-text);
  margin-bottom: 0.5rem;
}

/* Pricing */
.plans { display: grid; gap: 1rem; margin-top: 1.5rem; }
.plan {
  background: var(--surface);
  border-radius: var(--radius-l);
  padding: 1.5rem 1.25rem;
}
.plan h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.plan ul { color: var(--text-2); }
.plan-pro { border: 2px solid var(--accent-text); }
.offers { display: grid; gap: 0.75rem; margin: 1rem 0 1.25rem; padding: 0; list-style: none; }
.offer {
  background: var(--surface-2);
  border-radius: var(--radius-m);
  padding: 0.9rem 1rem;
  margin: 0;
}
.offer .name { font-weight: 600; display: block; }
.offer .amount {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.9rem;
  line-height: 1.1;
  display: block;
  color: var(--text);
}
.offer .amount small { font-size: 1rem; font-weight: 700; }
.offer .detail { font-size: 0.9375rem; color: var(--text-2); display: block; margin-top: 0.2rem; }
.terms-note {
  margin-top: 1.5rem;
  background: var(--surface);
  border-radius: var(--radius-m);
  padding: 1.25rem;
  max-width: none;
}
.after-terms { margin-top: 1.5rem; }
.terms-note h3 { font-size: 1.05rem; }
.terms-note ul { margin-bottom: 0; }

/* FAQ */
.faq details {
  background: var(--surface);
  border-radius: var(--radius-m);
  margin-bottom: 0.75rem;
}
.faq summary {
  cursor: pointer;
  padding: 1rem 1.25rem;
  min-height: 48px;
  font-weight: 700;
  font-family: var(--font-head);
  list-style-position: inside;
}
.faq .answer { padding: 0 1.25rem 1rem; color: var(--text-2); }
.faq .answer p:last-child { margin-bottom: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 2rem 3rem; color: var(--text-2); font-size: 0.9375rem; }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin-bottom: 1rem; }
.site-footer .links a { color: var(--text); min-height: 44px; display: inline-flex; align-items: center; }
.site-footer p { max-width: var(--measure); }

/* Legal and support pages */
.doc { padding-block: 2rem 3rem; }
.doc .wrap { max-width: 46rem; }
.doc h1 { font-size: clamp(1.75rem, 6vw, 2.5rem); }
.doc h2 { font-size: 1.35rem; margin-top: 2em; }
.doc h3 { margin-top: 1.5em; }
.doc .meta { color: var(--text-2); font-size: 0.9375rem; }
.doc .toc { background: var(--surface); border-radius: var(--radius-m); padding: 1rem 1.25rem; margin-bottom: 2rem; }
.doc .toc ol { margin: 0.5rem 0 0; }
.doc .summary h2 { margin-top: 0; }
.doc .summary { background: var(--surface); border-radius: var(--radius-m); padding: 1rem 1.25rem; margin-bottom: 1.5rem; }
.doc .summary p:last-child { margin-bottom: 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 0.6rem 0.5rem; border-bottom: 1px solid var(--line); }
.doc th { font-weight: 700; }
.doc td, .doc th { overflow-wrap: anywhere; }

.draft-banner {
  background: var(--banner-bg);
  color: var(--banner-text);
  border-bottom: 2px solid var(--accent-text);
  padding: 0.75rem var(--gutter);
  text-align: center;
  font-weight: 700;
}

mark.ph {
  background: var(--placeholder-bg);
  color: var(--placeholder-text);
  padding: 0.05em 0.35em;
  border-radius: 4px;
  font-weight: 600;
  white-space: normal;
}

/* Not-found page */
.not-found { padding-block: 4rem; text-align: center; }
.not-found .app-icon { margin: 0 auto 1.5rem; width: 7rem; }
.not-found p { margin-inline: auto; max-width: var(--measure); }

.nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (forced-colors: active) {
  .store-soon, .plan-pro, .privacy-line { border-color: CanvasText; }
}

/* Wider screens */
@media (min-width: 48rem) {
  :root { --gutter: 24px; }
  .hero { padding-block: 4rem 4.5rem; }
  .hero .wrap { grid-template-columns: 1.1fr 0.9fr; gap: 3rem; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .feature-wide { grid-column: span 2; }
  .plans { grid-template-columns: 1fr 1.3fr; align-items: start; }
  .offers { grid-template-columns: repeat(3, 1fr); }
}
