/* Dèanta marketing site — hand-written CSS, no build step.
   Layout concept: one long home page made of distinct blocks, Basecamp style.
   Stone-grey page, a dark heather letter band, a tally-book ledger as a paper
   object, a Q&A, then a heather sign-up band.

   Tokens below are a deliberate mix: heather/moss/sand and the stone palette
   are the real app's design tokens (app/assets/tailwind/application.css and
   cairn_controller.js), kept in sync so the product doesn't feel like a
   different brand once someone signs in. ink/night/paper/mute/rule/card/bg
   have no equivalent in the app (it has no dark band, no paper texture) —
   these were designed fresh for this site and are kept as drafted. */
:root {
  --bg: #e8e6ea;
  --card: #f6f5f7;
  --ink: #26212d;
  --mute: #5d5566;
  --rule: #b9b3c0;

  --heather-100: #ede4f5;
  --heather-300: #c2a8dc;
  --heather-500: #8a6aab;
  --heather-600: #6b4f8a;
  --heather-700: #563f6f;
  --moss-500: #5b8f68;
  --moss-600: #467553;
  --sand-100: #f6ecda;
  --sand-500: #c29b5a;

  --night: #1c1723;
  --night-ink: #ece7f0;
  --night-mute: #a79fb2;
  --night-rule: #3a3245;

  --paper: #f4f6f0;
  --paper-line: #c7d0c4;
  --paper-mute: #5b665d;

  /* Body/UI text matches the app's own font stack exactly (app/assets/tailwind/application.css).
     Display, the letter and the ledger have no equivalent in the app's UI — kept as designed. */
  --f-sans: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-display: "Young Serif", Georgia, serif;
  --f-letter: "Newsreader", Georgia, "Times New Roman", serif;
  --f-mono: "Courier Prime", "Courier New", monospace;
}

* { box-sizing: border-box; }
body { background: var(--bg); color: var(--ink); font-family: var(--f-sans); font-size: 16px; line-height: 1.5; margin: 0; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--heather-600); outline-offset: 3px; }
.wrap { max-width: 68rem; margin-inline: auto; padding-inline: 1rem; }
img, svg { max-width: 100%; }

/* honeypot: hidden from real visitors, still in the DOM for simple bots to fill */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* header */
.brand { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; font-weight: 700; letter-spacing: -.01em; font-size: 1.25rem; color: var(--heather-700); }
.brand svg { width: 1.75rem; height: 1.75rem; }
.top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.25rem; }
.top nav { display: flex; gap: 1.25rem; align-items: center; font-size: .9375rem; }
.top nav a { text-decoration: none; }
.top nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.signin { border: 2px solid var(--ink); padding: .35rem .8rem; border-radius: 3px; }

/* shared bits */
.btn { display: inline-block; background: var(--heather-600); color: #fff; border: 2px solid var(--ink); border-radius: 3px; padding: .7rem 1.2rem; font-weight: 700; text-decoration: none; box-shadow: 4px 4px 0 var(--ink); white-space: nowrap; }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.join { margin-top: 1.75rem; max-width: 30rem; }
.join .row { display: flex; gap: .75rem; flex-wrap: wrap; }
.join input[type=email] { flex: 1 1 14rem; min-width: 0; background: #fff; border: 2px solid var(--ink); border-radius: 3px; padding: .7rem .9rem; }
.join input::placeholder { color: var(--mute); }
.join .opt-in { display: flex; align-items: center; gap: .5rem; margin: .85rem 0 0; font-size: .875rem; }
.join .opt-in input[type=checkbox] { width: 1.1rem; height: 1.1rem; accent-color: var(--heather-600); }
.join .fine { font-size: .8125rem; color: var(--mute); margin: .5rem 0 0; }

/* 1: hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 3rem; align-items: start; padding-block: 2rem 4rem; }
.eyebrow { font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); margin: 0; }
.hero h1 { font-family: var(--f-display); font-weight: 400; font-size: clamp(2.6rem, 6.4vw, 4.8rem); line-height: 1.02; letter-spacing: -.02em; margin: 1rem 0 0; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--heather-600); }
.lede { font-size: 1.25rem; max-width: 30rem; margin: 1.5rem 0 0; }
.demo { background: var(--card); border: 2px solid var(--ink); border-radius: 4px; padding: 1.25rem; min-width: 0; }
.demo-h { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; flex-wrap: wrap; }
.demo-h b { font-family: var(--f-display); font-weight: 400; font-size: 1.25rem; }
.demo-h span { font-size: .8125rem; color: var(--mute); }
.demo svg.cairn { display: block; width: 100%; height: 14rem; margin-top: .5rem; }
.chores { list-style: none; margin: .75rem 0 0; padding: 0; }
.chores li { display: grid; grid-template-columns: 1fr auto auto; gap: .75rem; align-items: center; padding: .5rem 0; border-top: 1px solid var(--rule); }
.chores .amt { font-variant-numeric: tabular-nums; color: var(--mute); }
.chores button { border: 2px solid var(--ink); background: var(--card); border-radius: 3px; padding: .2rem .8rem; font-weight: 600; min-width: 4.5rem; }
.chores button:hover:not(:disabled) { background: #fff; }
.chores button:disabled { background: var(--moss-600); border-color: var(--moss-600); color: #fff; cursor: default; }
.chores li.is-done .name { text-decoration: line-through; text-decoration-color: var(--mute); }
.tally { display: flex; justify-content: space-between; align-items: baseline; border-top: 2px solid var(--ink); padding-top: .75rem; }
.tally strong { font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.again { background: none; border: 0; text-decoration: underline; text-underline-offset: 4px; font-size: .875rem; color: var(--mute); padding: .5rem 0 0; }

/* cairn glow, shared by the hero demo and the letter cairn — matches the app's own cairn-glow keyframe */
.cairn-shimmer { animation: cairn-glow 1.5s ease-in-out; }
@keyframes cairn-glow {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(255, 214, 120, 0)); }
  50% { filter: drop-shadow(0 0 22px rgba(255, 210, 110, .85)); }
}

/* 2: the letter */
.letter { background: var(--night); color: var(--night-ink); font-family: var(--f-letter); padding-block: 5rem 6rem; }
.letter .col { max-width: 38rem; margin-inline: auto; padding-inline: 1rem; }
.letter h2 { font-weight: 300; font-size: clamp(2.2rem, 6vw, 3.8rem); line-height: 1.05; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
.letter h2 i { font-style: italic; color: var(--sand-500); }
.letter .dear { margin: 2.5rem 0 0; color: var(--night-mute); font-style: italic; font-size: 1.25rem; }
.letter p { font-size: 1.3125rem; line-height: 1.6; margin: 1.25rem 0 0; }
.letter .sign { margin-top: 2.5rem; font-size: 1.125rem; color: var(--night-mute); }
.letter .sign b { display: block; color: var(--night-ink); font-weight: 500; font-size: 1.375rem; }
.letter .ps { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--night-rule); }
.letter .ps p { margin-top: 0; font-size: 1.125rem; color: var(--night-mute); }
.letter .ps b { color: var(--night-ink); font-weight: 500; }
.letter .finish { margin-top: 3.5rem; text-align: center; }
.letter .finish svg { display: block; width: min(18rem, 80%); height: 15rem; margin-inline: auto; }
.letter .finish p { font-size: 1rem; color: var(--night-mute); font-style: italic; margin-top: .5rem; }

/* 3: the ledger */
.week { padding-block: 5rem 0; }
.week h2, .qa h2 { font-family: var(--f-display); font-weight: 400; font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.05; letter-spacing: -.02em; margin: 0; text-wrap: balance; max-width: 18ch; }
.week .lede { margin-top: 1rem; }
.book { margin-top: 2rem; background: var(--paper); border: 1px solid var(--paper-line); border-radius: 2px; box-shadow: 0 1px 0 var(--paper-line), 0 10px 0 -4px var(--bg), 0 11px 0 -4px var(--paper-line); overflow-x: auto; }
.book table { border-collapse: collapse; width: 100%; min-width: 34rem; font-family: var(--f-mono); font-size: 1rem; background-image: linear-gradient(to right, transparent 3.25rem, var(--heather-600) 3.25rem, var(--heather-600) calc(3.25rem + 1px), transparent calc(3.25rem + 1px)); }
.book caption { text-align: left; padding: 1rem 1rem .5rem 4.25rem; font-family: var(--f-display); font-size: 1.25rem; }
.book caption small { display: block; font-family: var(--f-mono); font-size: .8125rem; color: var(--paper-mute); margin-top: .15rem; }
.book th { text-align: left; font-weight: 700; font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase; padding: .5rem .75rem; border-bottom: 2px solid var(--ink); }
.book td { padding: .55rem .75rem; border-bottom: 1px solid var(--paper-line); vertical-align: middle; }
.book th:first-child, .book td:first-child { padding-left: 4.25rem; }
.book .amt { text-align: right; font-variant-numeric: tabular-nums; }
.book svg { display: block; height: 1.4rem; color: var(--ink); }
.book tfoot td { border-bottom: 0; border-top: 2px solid var(--ink); font-weight: 700; font-size: 1.125rem; }
.terms { margin: 3rem 0 0; border-top: 2px solid var(--ink); max-width: 44rem; }
.terms div { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--rule); }
.terms dt { font-weight: 700; }
.terms dd { margin: 0; color: var(--mute); }

/* 4: Q and A */
.qa { padding-block: 5rem 0; }
.qa dl { margin: 2rem 0 0; max-width: 44rem; border-top: 2px solid var(--ink); }
.qa .pair { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); column-gap: .5rem; padding: 1.25rem 0; border-bottom: 1px solid var(--rule); }
.qa .pair i { font-style: normal; font-family: var(--f-mono); font-weight: 700; color: var(--heather-600); padding-top: .2rem; }
.qa dt { font-family: var(--f-display); font-size: 1.375rem; line-height: 1.25; margin: 0; }
.qa dd { margin: .5rem 0 0; grid-column: 2; font-size: 1.0625rem; color: var(--mute); max-width: 36rem; }

/* 5: sign-up band */
.close { margin-top: 6rem; background: var(--heather-600); color: #fff; padding-block: 4.5rem; }
.close h2 { font-family: var(--f-display); font-weight: 400; font-size: clamp(2.2rem, 6vw, 4rem); line-height: 1.02; letter-spacing: -.02em; margin: 0; max-width: 16ch; text-wrap: balance; }
.close p { font-size: 1.25rem; max-width: 32rem; margin: 1.25rem 0 0; }
.close .join input[type=email] { border-color: #fff; }
.close .btn { background: var(--ink); border-color: #fff; box-shadow: 4px 4px 0 rgba(0, 0, 0, .35); }
.close .join .fine { color: #e6dcf0; }
.close :focus-visible { outline-color: #fff; }
footer.foot { padding-block: 2rem 4rem; color: var(--mute); font-size: .9375rem; }

/* simple content pages: help, privacy, thanks */
.doc { padding-block: 2rem 5rem; }
.doc h1 { font-family: var(--f-display); font-weight: 400; font-size: clamp(2.2rem, 5vw, 3.25rem); line-height: 1.05; letter-spacing: -.02em; margin: 0 0 1rem; }
.doc .lede { margin-bottom: 2.5rem; }
.doc h2 { font-size: 1.5rem; font-weight: 800; margin: 2.5rem 0 .75rem; scroll-margin-top: 1.5rem; }
.doc p { margin: .9rem 0; max-width: 42rem; }
.doc ul, .doc ol { margin: .9rem 0; padding-left: 1.4rem; max-width: 42rem; }
.doc li { margin: .4rem 0; }
.doc strong { color: var(--ink); }
.doc .toc { margin: 2rem 0 3rem; padding: 1.25rem 1.5rem; background: var(--card); border: 2px solid var(--ink); border-radius: 4px; }
.doc .toc h2 { font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 .75rem; font-family: var(--f-sans); font-weight: 800; }
.doc .toc ol { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 2rem; }
.doc .toc li { margin: .35rem 0; break-inside: avoid; }
.doc .toc a { color: var(--heather-700); text-decoration: none; }
.doc .toc a:hover { text-decoration: underline; }
.doc dl { margin: 1.5rem 0; }
.doc dt { font-weight: 700; margin-top: 1.25rem; }
.doc dd { margin: .35rem 0 0; color: var(--mute); max-width: 42rem; }

/* hidden pricing page */
.pp .draft { display: inline-block; background: var(--ink); color: var(--bg); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; padding: .2rem .6rem; border-radius: 2px; }
.pp h1 { font-family: var(--f-display); font-weight: 400; font-size: clamp(3.5rem, 12vw, 8rem); line-height: .95; letter-spacing: -.03em; margin: 1.25rem 0 0; }
.pp h1 small { font-family: var(--f-sans); font-weight: 600; font-size: clamp(1.25rem, 3vw, 1.75rem); letter-spacing: 0; margin-left: .5rem; color: var(--mute); }
.pp .grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; margin-top: 3.5rem; }
.pp h2 { font-family: var(--f-display); font-weight: 400; font-size: 1.75rem; margin: 0 0 .75rem; }
.pp ul.plain { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.pp ul.plain li { padding: .75rem 0; border-bottom: 1px solid var(--rule); }
.pp ul.no li { position: relative; padding-left: 1.5rem; }
.pp ul.no li::before { content: ''; position: absolute; left: 0; top: 1.3rem; width: .75rem; height: 2px; background: var(--heather-600); }
.pp .faq { margin-top: 3.5rem; max-width: 42rem; }
.pp details { border-top: 1px solid var(--rule); padding: .9rem 0; }
.pp details:last-of-type { border-bottom: 1px solid var(--rule); }
.pp summary { font-weight: 700; font-size: 1.125rem; cursor: pointer; }
.pp details p { margin: .6rem 0 0; color: var(--mute); font-size: 1.0625rem; max-width: 36rem; }
.pp .close { margin-top: 5rem; }

/* 404 */
.notfound { padding-block: 6rem; text-align: center; }
.notfound h1 { font-family: var(--f-display); font-weight: 400; font-size: clamp(3rem, 10vw, 6rem); margin: 0; }
.notfound p { font-size: 1.125rem; color: var(--mute); margin-top: 1rem; }

@media (max-width: 52rem) {
  .hero, .pp .grid { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .terms div { grid-template-columns: minmax(0, 1fr); gap: .15rem; }
  .doc .toc ol { columns: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .cairn-shimmer { animation: none; }
  .btn:hover { transform: none; }
}
