/* Pasture Notes marketing page. Same field-book palette as the app: sage paper, forest ink, ochre survey flag. */
:root {
  --paper: #eef1e7;
  --paper-deep: #e3e8d8;
  --card: #f8f9f4;
  --ink: #1c2b21;
  --ink-soft: #4a5a4d;
  --forest: #1f3b2b;
  --forest-deep: #162b1f;
  --forest-line: #2f4d3b;
  --moss: #667b5a;
  --rule: #cbd3bf;
  --flag: #d4a12a;
  --flag-hover: #e0b143;
  --flag-ink: #33240a;
  --on-forest: #e4eadb;
  --on-forest-soft: #a8b89f;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --shadow-screen: 0 1px 0 rgb(255 255 255 / 0.06) inset, 0 40px 80px -40px rgb(10 24 16 / 0.55), 0 12px 28px -18px rgb(10 24 16 / 0.4);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { margin: 0; color: var(--forest); line-height: 1.08; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5.25rem); font-weight: 800; font-variation-settings: "wdth" 125; letter-spacing: -0.02em; line-height: 1; }
h2 { font-size: clamp(1.75rem, 3.1vw, 2.6rem); font-weight: 760; font-variation-settings: "wdth" 116; letter-spacing: -0.012em; }
h3 { font-size: 1.2rem; font-weight: 700; font-variation-settings: "wdth" 110; }
p { margin: 0; text-wrap: pretty; }
img, video { display: block; max-width: 100%; height: auto; }
code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.9em; background: var(--paper-deep); padding: 0.1em 0.35em; border-radius: 4px; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--flag); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--forest); color: var(--paper); padding: 8px 14px; z-index: 20; }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 24px; border-radius: 999px;
  font-weight: 650; font-variation-settings: "wdth" 108; text-decoration: none; white-space: nowrap;
  border: 1.5px solid transparent;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn-flag { background: var(--flag); color: var(--flag-ink); }
.btn-flag:hover { background: var(--flag-hover); }
.btn-ghost { border-color: currentColor; color: inherit; }
.btn-ghost:hover { background: rgb(255 255 255 / 0.08); }
.btn-small { min-height: 40px; padding: 0 18px; font-size: 0.95rem; }

/* Header: forest, continuous with the hero. */
.top { position: sticky; top: 0; z-index: 10; background: var(--forest); color: var(--on-forest); border-bottom: 1px solid var(--forest-line); }
.top-row { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--paper); font-weight: 760; font-variation-settings: "wdth" 116; font-size: 1.15rem; }
.brand-mark { width: 34px; height: 34px; border-radius: 22%; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.12); }
.top-nav { display: flex; gap: 24px; margin-left: auto; }
.top-nav a { text-decoration: none; color: var(--on-forest-soft); font-weight: 550; font-size: 0.98rem; }
.top-nav a:hover { color: var(--paper); }
.top .btn-ghost { color: var(--paper); border-color: rgb(228 234 219 / 0.45); }
@media (max-width: 860px) { .top-nav { display: none; } .top-row .btn { margin-left: auto; } }

/* Hero: the product itself is the image. The forest band stops partway down the window. */
.hero {
  --band-stop: clamp(140px, 22vw, 300px);
  padding-top: clamp(56px, 8vw, 104px);
  color: var(--on-forest);
  background:
    url("contours.svg") top center / 1100px auto no-repeat,
    linear-gradient(to bottom, var(--forest) 0, var(--forest) calc(100% - var(--band-stop)), var(--paper) calc(100% - var(--band-stop)));
}
.hero-copy { display: grid; justify-items: center; gap: 26px; text-align: center; }
.hero h1 { color: var(--paper); max-width: 13ch; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--on-forest-soft); max-width: 38rem; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero-actions .btn-ghost { color: var(--paper); border-color: rgb(228 234 219 / 0.45); }

.hero-screen { margin: clamp(48px, 6vw, 72px) 0 0; }
.window { position: relative; border-radius: 14px; overflow: hidden; background: var(--card); box-shadow: var(--shadow-screen); border: 1px solid rgb(10 24 16 / 0.18); }
.window-bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 16px; background: #e6eadf; border-bottom: 1px solid var(--rule); }
.window-bar span { width: 11px; height: 11px; border-radius: 50%; background: #c9d0bf; }
.window-bar em { margin: 0 auto; transform: translateX(-24px); font-style: normal; font-size: 0.8rem; color: var(--moss); background: var(--card); padding: 3px 14px; border-radius: 6px; }
.window video, .window > img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--paper-deep); }
.video-toggle {
  position: absolute; right: 16px; bottom: 16px;
  min-height: 36px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  border: 0; background: rgb(22 43 31 / 0.82); color: var(--paper);
  font: 600 0.88rem "Archivo", sans-serif; backdrop-filter: blur(6px);
}
.video-toggle:hover { background: var(--forest-deep); }
.hero-screen figcaption { margin-top: 14px; text-align: center; font-size: 0.92rem; color: var(--moss); }

/* What it replaces */
.replaces { padding: clamp(56px, 7vw, 88px) 0 clamp(24px, 3vw, 40px); }
.replaces-row p { max-width: 44rem; margin: 0 auto; text-align: center; font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.45; color: var(--forest); font-variation-settings: "wdth" 104; font-weight: 500; }

/* Feature chapters: the claim and its details side by side, then the screen at full width. */
.chapter { padding: clamp(64px, 9vw, 120px) 0; }
.chapter + .chapter { border-top: 1px solid var(--rule); }
.chapter-copy { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 18px clamp(32px, 6vw, 96px); align-items: start; }
.chapter-copy h2 { grid-column: 1; font-size: clamp(1.75rem, 3vw, 2.5rem); max-width: 18ch; }
.chapter-kicker { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 10px; color: var(--moss); font-weight: 650; font-variation-settings: "wdth" 110; }
.chapter-kicker::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: var(--flag); }
.chapter-detail { grid-column: 2; grid-row: 2; display: grid; gap: 18px; }
.chapter-body { color: var(--ink-soft); font-size: 1.1rem; }
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.points li { position: relative; padding-left: 26px; color: var(--ink); }
.points li::before {
  content: ""; position: absolute; left: 2px; top: 0.5em; width: 12px; height: 7px;
  border-left: 2.5px solid var(--forest); border-bottom: 2.5px solid var(--forest); transform: rotate(-45deg);
}
@media (max-width: 860px) {
  .chapter-copy { grid-template-columns: 1fr; }
  .chapter-detail { grid-column: 1; grid-row: auto; }
}

.chapter-shots { position: relative; margin-top: clamp(36px, 5vw, 64px); }
.chapter-shots.has-inset { padding-bottom: 9%; margin-right: 6%; }
.shot { border-radius: 12px; overflow: hidden; background: var(--card); border: 1px solid var(--rule); box-shadow: var(--shadow-screen); }
.shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
.shot-inset img { aspect-ratio: auto; }
.shot-inset { position: absolute; width: 40%; right: -6%; bottom: 0; border: 5px solid var(--paper); border-radius: 16px; }
@media (max-width: 640px) {
  .chapter-shots.has-inset { padding-bottom: 0; margin-right: 0; }
  .shot-inset { display: none; }
}

/* Cost: set like a ledger page. */
.cost { background: var(--paper-deep); padding: clamp(64px, 9vw, 120px) 0; }
.cost-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .cost-grid { grid-template-columns: 1fr; } }
.cost-copy { display: grid; gap: 18px; }
.cost-copy > p { color: var(--ink-soft); }
.cost-compare { display: grid; gap: 14px; margin-top: 10px; }
.cost-compare > div { display: grid; gap: 2px; padding: 18px 22px; border-radius: 12px; background: var(--card); border: 1px solid var(--rule); }
.cost-figure { font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 800; font-variation-settings: "wdth" 120; line-height: 1.05; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.cost-label { color: var(--ink-soft); }
.cost-compare .cost-ours { background: var(--forest); border-color: var(--forest); }
.cost-ours .cost-figure { color: var(--flag); }
.cost-ours .cost-label { color: var(--on-forest); }

.ledger { background: var(--card); border: 1px solid var(--rule); border-radius: 12px; overflow-x: auto; }
.ledger table { width: 100%; border-collapse: collapse; min-width: 480px; font-variant-numeric: tabular-nums; }
.ledger th, .ledger td { text-align: left; padding: 16px 22px; border-bottom: 1px solid var(--rule); vertical-align: baseline; }
.ledger thead th { font-size: 0.9rem; color: var(--moss); font-weight: 600; border-bottom: 2px solid var(--forest); }
.ledger tbody th { font-weight: 600; color: var(--forest); }
.ledger .num { text-align: right; white-space: nowrap; }
.cell-note { display: block; font-size: 0.88rem; color: var(--moss); }
.ledger tfoot th, .ledger tfoot td { border-bottom: 0; font-weight: 760; font-variation-settings: "wdth" 110; font-size: 1.15rem; border-top: 3px double var(--forest); }

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: clamp(40px, 5vw, 64px); }
@media (max-width: 720px) { .plans { grid-template-columns: 1fr; } }
.plan { display: grid; gap: 8px; align-content: start; padding: 26px 28px; background: var(--card); border: 1px solid var(--rule); border-top: 4px solid var(--forest); border-radius: 12px; }
.plan p:last-child { color: var(--ink-soft); }
.plan-price { font-size: 1.7rem; font-weight: 800; font-variation-settings: "wdth" 118; color: var(--forest); }

/* Bring your own AI */
.ai { padding: clamp(64px, 9vw, 120px) 0; }
.ai-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
@media (max-width: 900px) { .ai-grid { grid-template-columns: 1fr; } }
.ai-copy { display: grid; gap: 18px; max-width: 32rem; }
.ai-copy p { color: var(--ink-soft); }
.transcript { margin: 0; display: grid; gap: 14px; }
.msg { display: grid; gap: 4px; padding: 18px 22px; border-radius: 16px; max-width: 92%; }
.msg .who { font-size: 0.85rem; font-weight: 650; }
.msg-you { justify-self: end; background: var(--forest); color: var(--on-forest); border-bottom-right-radius: 4px; }
.msg-you .who { color: var(--on-forest-soft); }
.msg-ai { background: var(--card); border: 1px solid var(--rule); border-bottom-left-radius: 4px; }
.msg-ai .who { color: var(--moss); }
.calls { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.calls li { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.8rem; padding: 4px 10px; border-radius: 6px; background: var(--paper-deep); color: var(--forest); }

/* Closing */
.closing { padding: clamp(72px, 10vw, 128px) 0; color: var(--on-forest); background: url("contours.svg") center / 1100px auto, var(--forest); }
.closing-row { display: grid; justify-items: center; gap: 22px; text-align: center; max-width: 44rem; }
.closing-row img { width: 64px; height: 64px; border-radius: 22%; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.12), 0 16px 32px -16px rgb(0 0 0 / 0.6); }
.closing h2 { color: var(--paper); }
.closing p { color: var(--on-forest-soft); }

.foot { padding: 28px 0 40px; font-size: 0.9rem; color: var(--moss); }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.brand-small { color: var(--forest); font-size: 1rem; gap: 9px; }
.brand-small .brand-mark { width: 24px; height: 24px; box-shadow: none; }
