/* MonteSprout — site styles
   Structure follows the Mango Grove Labs company site (same skeleton, no build step);
   tokens are MonteSprout's **Sunrise** palette + type, transcribed verbatim from the app's
   docs/architecture.md §8. See docs/DECISIONS.md. This file is served as-is. */

:root {
  /* Palette — Sunrise (architecture §8; keep these literal, don't "improve" them) */
  --paper: #FBF6EF;
  --surface: #FFFDF9;
  --ink: #3B362D;
  --ink-soft: #6E6658;
  --ink-faint: #9C9384;
  --hair: #ECE4D6;
  --hair-strong: #DBD1BF;
  --chip: #F4EEE3;
  --sage: #7C9A74;
  --sage-deep: #5E7D58;
  --sage-soft: #E9F0E2;
  --sage-line: #CFE0C5;
  --honey: #D6A24A;
  --honey-soft: #F7EBD3;
  --honey-line: #EAD6AE;
  --accent: #6E8C66;
  --accent-ink: #FFFFFF;
  --accent-band: #F1F4EC;
  --card-shadow: 0 2px 5px rgba(60, 52, 38, 0.10);

  /* Type — Quicksand (headings) + Nunito (body), the app's two faces */
  --font-head: 'Quicksand', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Radii — the app's named scale (architecture §8) */
  --radius-chip: 12px;
  --radius-control: 16px;
  --radius-card: 20px;
  --radius-sheet: 28px;

  /* Layout */
  --container: 1040px;
  --pad-x: clamp(24px, 6vw, 64px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { -webkit-tap-highlight-color: transparent; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

/* ===== Header ===== */
.site-header { border-bottom: 1px solid var(--hair); }

.site-header .container {
  padding-top: 22px;
  padding-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand__mark { display: block; flex: none; }

.brand__name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 20px;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.nav {
  display: flex;
  gap: 28px;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  color: var(--ink-soft);
}

.nav a { color: inherit; text-decoration: none; }
.nav a:hover,
.nav a:focus-visible { color: var(--ink); }

/* ===== Hero ===== */
.hero {
  padding: clamp(64px, 10vw, 108px) 0 clamp(56px, 8vw, 84px);
  text-align: center;
}

.badge {
  display: inline-block;
  font-weight: 700;
  font-size: 12.5px;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage-deep);
  background: var(--sage-soft);
  border: 1px solid var(--sage-line);
  border-radius: var(--radius-chip);
  padding: 8px 14px;
  margin-bottom: 26px;
}

.hero__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(32px, 5.6vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
  /* Wide enough that the second beat ("Reports from evidence, not memory.") holds one
     line at the largest step — at 760px it stranded "memory." on a line of its own. */
  max-width: 900px;
  margin: 0 auto 22px;
  text-wrap: balance;
}

/* The headline is two beats; break it at the full stop where there's room, and let it
   flow naturally when there isn't (a hard break on a narrow screen strands a word). */
.hero__break { display: none; }

@media (min-width: 40rem) {
  .hero__break { display: inline; }
}

.hero__sub {
  font-weight: 400;
  font-size: clamp(17px, 2.2vw, 18.5px);
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 600px;
  margin: 0 auto 34px;
  text-wrap: pretty;
}

/* ===== CTA pills ===== */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 100px;
}

.pill--accent {
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 15px;
  line-height: 1;
  padding: 16px 28px;
}

.pill--accent:hover,
.pill--accent:focus-visible { background: var(--sage-deep); }

.pill__arrow { font-size: 16px; }

.pill--light {
  background: var(--surface);
  color: var(--sage-deep);
  border: 1px solid var(--sage-line);
  font-size: 15.5px;
  line-height: 1;
  padding: 15px 26px;
}

.pill--light:hover,
.pill--light:focus-visible { background: var(--accent-band); }

/* ===== Sections ===== */
.section {
  padding: clamp(56px, 8vw, 76px) 0;
  border-top: 1px solid var(--hair);
}

.section-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(24px, 3.4vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 clamp(30px, 4.5vw, 42px);
}

.eyebrow {
  font-weight: 700;
  font-size: 12.5px;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 20px;
}

/* ===== Long-form pages (privacy, support) ===== */
.page {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 76px) 0 clamp(56px, 8vw, 84px);
}

.page__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(30px, 4.6vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 10px;
  text-wrap: balance;
}

.page__meta {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-faint);
  margin: 0 0 clamp(30px, 4vw, 40px);
}

/* The plain-language summary that opens the policy. */
.summary {
  background: var(--sage-soft);
  border: 1px solid var(--sage-line);
  border-radius: var(--radius-card);
  padding: clamp(22px, 3.5vw, 30px) clamp(20px, 3vw, 28px);
  margin: 0 0 clamp(34px, 5vw, 46px);
}

.summary h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.25;
  color: var(--sage-deep);
  margin: 0 0 12px;
}

.summary p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  margin: 0 0 12px;
}

.summary p:last-child { margin-bottom: 0; }

/* Body of a long-form page: element-styled so the markup stays plain. */
.legal h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(20px, 2.8vw, 23px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: clamp(34px, 4.5vw, 44px) 0 12px;
  scroll-margin-top: 24px;
}

.legal h2:first-child { margin-top: 0; }

.legal p,
.legal li {
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.legal p { margin: 0 0 14px; }

.legal ul {
  margin: 0 0 14px;
  padding-left: 22px;
}

.legal li { margin-bottom: 8px; }

.legal strong { color: var(--ink); }

.legal a {
  color: var(--sage-deep);
  text-underline-offset: 2px;
}

.legal > p:last-child { margin-bottom: 0; }

.prose {
  font-weight: 400;
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 680px;
  text-wrap: pretty;
}

.prose a { color: var(--sage-deep); }

/* ===== Cards ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
  gap: 22px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--radius-card);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.card__strip { height: 6px; }
.card__strip--sage { background: var(--sage); }
.card__strip--honey { background: var(--honey); }
.card__strip--gradient { background: linear-gradient(90deg, var(--sage), var(--honey)); }

.card__body { padding: 26px 24px 28px; }

.card__title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 18.5px;
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 10px;
}

.card__text {
  font-weight: 400;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0;
}

/* ===== Lead paragraph (the "what it is" beat under the hero) ===== */
.lead {
  padding: clamp(52px, 7vw, 76px) 0;
  border-top: 1px solid var(--hair);
  text-align: center;
}

.lead__text {
  font-weight: 400;
  font-size: clamp(19px, 2.6vw, 22px);
  line-height: 1.6;
  color: var(--ink);
  margin: 0 auto;
  max-width: 660px;
  text-wrap: pretty;
}

.lead__note {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 18px auto 0;
  max-width: 600px;
  text-wrap: pretty;
}

/* ===== Numbered steps ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(24px, 4vw, 38px);
  counter-reset: step;
}

.step { counter-increment: step; }

.step__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 100px;
  background: var(--sage-soft);
  border: 1px solid var(--sage-line);
  color: var(--sage-deep);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 16px;
}

.step__num::before { content: counter(step); }

.step__title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 18.5px;
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 9px;
}

.step__text {
  font-weight: 400;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0;
}

/* ===== Screenshot strip ===== */
.shots__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(22px, 3.5vw, 34px);
  align-items: start;
}

.shot { margin: 0; }

.shot__img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--hair);
  border-radius: var(--radius-card);
  box-shadow: var(--card-shadow);
  background: var(--surface);
}

.shot__caption {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-top: 14px;
  text-wrap: pretty;
}

.shots__note {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-faint);
  margin: clamp(26px, 4vw, 36px) 0 0;
  text-wrap: pretty;
}

/* ===== Contact panel ===== */
.contact { padding: 0 0 clamp(56px, 8vw, 84px); }

.contact__panel {
  background: var(--sage-deep);
  border-radius: var(--radius-sheet);
  padding: clamp(40px, 6vw, 56px) clamp(28px, 5vw, 48px);
  text-align: center;
}

.contact__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(22px, 3vw, 27px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 12px;
}

.contact__text {
  font-weight: 400;
  font-size: 15.5px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 auto 26px;
  max-width: 460px;
}

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--hair); }

.site-footer .container {
  padding-top: 30px;
  padding-bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 22px;
  flex-wrap: wrap;
}

.footer__info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-weight: 400;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-faint);
}

.footer__name {
  color: var(--ink-soft);
  font-weight: 700;
}

.footer__info a { color: inherit; text-decoration: none; }
.footer__info a:hover,
.footer__info a:focus-visible { text-decoration: underline; }

.footer__copy {
  font-weight: 400;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-faint);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-weight: 600;
  font-size: 13.5px;
  line-height: 1.5;
  margin-bottom: 8px;
}

.footer__links a {
  color: var(--ink-soft);
  text-decoration: none;
}

.footer__links a:hover,
.footer__links a:focus-visible { text-decoration: underline; }

/* ===== Accessibility ===== */
a:focus-visible {
  outline: 2px solid var(--sage-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
