/* ──────────────────────────────────────────────────────────
   Fieldnotes landing — design tokens mirror the macOS app.
   Cream paper, kraft accents, forest primary, rust for the CTA.
   ────────────────────────────────────────────────────────── */

:root {
  --paper:        #F2EBDD;
  --surface:      #F8F2E5;
  --surface-raised: #FBF6EC;
  --ink:          #2B2620;
  --ink-muted:    #6E665B;
  --kraft:        #C8B998;
  --kraft-dk:     #876E46;
  --kraft-sub:    #E5DCC4;
  --forest:       #3F5C42;
  --forest-fg:    #F8F2E5;
  --rust:         #B5532A;
  --rust-fg:      #F8F2E5;
  --ochre:        #C28B2F;
  --moss:         #7A8F4A;

  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;

  --shadow: none; /* paper aesthetic — no drop shadows */

  --measure: 64ch;
  --max:    1080px;
}

* { box-sizing: border-box; }

html, body { padding: 0; margin: 0; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

code, pre {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  font-size: 0.92em;
}

pre {
  background: var(--kraft-sub);
  border: 1px solid var(--kraft);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  overflow-x: auto;
  line-height: 1.5;
  margin: 12px 0;
}

code:not(pre code) {
  background: var(--kraft-sub);
  padding: 1px 6px;
  border-radius: 3px;
}

a { color: var(--forest); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3, h4 {
  margin: 0 0 0.5em 0;
  letter-spacing: -0.01em;
  color: var(--ink);
}

h1 {
  font-size: clamp(36px, 6vw, 60px);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  line-height: 1.15;
}

h3 { font-size: 20px; font-weight: 600; }
h4 { font-size: 17px; font-weight: 600; }

p { margin: 0 0 1em 0; }

.lede {
  font-size: 18px;
  color: var(--ink);
  max-width: 64ch;
  line-height: 1.55;
}

/* ────────── Top bar ────────── */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 28px 0;
  gap: 24px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.wordmark:hover { text-decoration: none; }

.topbar nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
}

.topbar nav a { color: var(--ink-muted); }
.topbar nav a:hover { color: var(--ink); text-decoration: none; }

/* ────────── Buttons ────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .08s ease, background .15s ease, border-color .15s ease;
  text-decoration: none;
}

.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--forest);
  color: var(--forest-fg);
  font-size: 16px;
  padding: 14px 26px;
}
.btn-primary:hover { background: #2F4632; }

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--kraft);
  font-size: 16px;
  padding: 14px 26px;
}
.btn-secondary:hover { background: var(--kraft-sub); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--kraft);
}
.btn-ghost:hover { background: var(--kraft-sub); }

.btn-buy {
  background: var(--rust);
  color: var(--rust-fg);
  font-size: 17px;
  font-weight: 600;
  padding: 16px 32px;
  letter-spacing: 0.01em;
}
.btn-buy:hover { background: #984427; }

/* ────────── Hero ────────── */

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px 28px 64px;
  text-align: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  font-weight: 600;
  color: var(--forest);
  margin: 0 0 16px;
}

.hero h1 {
  max-width: 22ch;
}

.hero .sub {
  font-size: 20px;
  color: var(--ink-muted);
  margin: 24px auto 36px;
  max-width: 56ch;
  line-height: 1.5;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-fine {
  margin: 24px auto 0;
  font-size: 13px;
  color: var(--ink-muted);
  text-align: center;
}

/* ────────── Hero visual ────────── */

.hero-visual {
  margin: 56px auto 0;
  max-width: 1080px;
  padding: 0;
  position: relative;
}

.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--kraft);
}


/* ────────── Section base ────────── */

section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 28px;
  scroll-margin-top: 40px;
}

section + section {
  border-top: 1px solid var(--kraft);
  border-top-style: dashed;
  border-top-color: var(--kraft);
}

/* ────────── The math ────────── */

.math em {
  font-style: normal;
  font-weight: 600;
  background: linear-gradient(transparent 70%, rgba(181,83,42,0.25) 70%);
  padding: 0 2px;
}

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 32px 0 12px;
}

.compare-col {
  background: var(--surface);
  border: 1px solid var(--kraft);
  border-radius: var(--radius-md);
  padding: 24px 22px;
}

.compare-col h3 {
  margin-bottom: 12px;
  font-weight: 600;
}

.compare-them h3 { color: var(--ink-muted); }
.compare-us h3   { color: var(--forest); }

.compare-price {
  font-size: 38px;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 16px;
  font-family: 'Work Sans', sans-serif;
  letter-spacing: -0.02em;
}
.compare-price .unit {
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-muted);
  margin-left: 6px;
}
.compare-price .cents {
  font-size: 22px;
  vertical-align: top;
  color: var(--ink-muted);
}

.compare-col ul {
  margin: 0; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 8px;
  font-size: 14.5px;
}

.compare-them ul li { color: var(--ink-muted); }
.compare-us   ul li { color: var(--ink); }

.compare-them ul li::before {
  content: "·";
  display: inline-block;
  width: 14px;
  color: var(--ink-muted);
}
.compare-us ul li::before {
  content: "✓";
  display: inline-block;
  width: 14px;
  color: var(--forest);
  font-weight: 600;
  margin-right: 4px;
}

.math-fine {
  margin-top: 20px;
  color: var(--ink-muted);
  font-size: 14px;
}

/* ────────── Vs Granola ────────── */

.vs-rows {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}

.vs-row {
  display: grid;
  grid-template-columns: 220px 1fr 1fr;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--kraft);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  align-items: start;
}

.vs-feature {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  align-self: center;
  padding-right: 12px;
  border-right: 1px dashed var(--kraft);
  height: 100%;
  display: flex;
  align-items: center;
}

.vs-them, .vs-us {
  font-size: 14px;
  line-height: 1.55;
}

.vs-them p, .vs-us p {
  margin: 6px 0 0;
  color: var(--ink-muted);
}

.vs-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  background: var(--kraft-sub);
  padding: 3px 8px;
  border-radius: 4px;
}
.vs-label-us {
  color: var(--forest);
  background: rgba(63, 92, 66, 0.12);
}

.vs-cite {
  margin-top: 10px !important;
  font-size: 12.5px;
  color: var(--ink-muted);
}

.vs-fine {
  margin-top: 22px;
  color: var(--ink-muted);
  font-size: 14px;
  max-width: 70ch;
}

/* ────────── How it works ────────── */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.step {
  background: var(--surface);
  border: 1px solid var(--kraft);
  border-radius: var(--radius-md);
  padding: 24px 22px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--forest-fg);
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 14px;
}

.step h3 { margin-bottom: 8px; }

.step p {
  color: var(--ink-muted);
  font-size: 14.5px;
  line-height: 1.55;
}

/* ────────── AI integrations ────────── */

.ai-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.ai-card {
  background: var(--surface);
  border: 1px solid var(--kraft);
  border-radius: var(--radius-md);
  padding: 22px 22px;
  font-size: 14.5px;
}

.ai-card h3 { margin-bottom: 8px; }
.ai-card p  { color: var(--ink-muted); }

.ai-card-primary {
  grid-column: span 2;
  background: var(--surface-raised);
}

.ai-card-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 6px;
}

.ai-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--forest);
  background: rgba(63, 92, 66, 0.12);
  padding: 3px 8px;
  border-radius: 4px;
}

.ai-commands {
  list-style: none;
  margin: 12px 0 16px;
  padding: 0;
  display: flex; flex-direction: column; gap: 8px;
  font-size: 14px;
  color: var(--ink);
}
.ai-commands li::before {
  content: "›";
  display: inline-block;
  width: 14px;
  color: var(--forest);
  font-weight: 700;
}

.ai-install {
  font-size: 12.5px;
  line-height: 1.7;
  background: var(--kraft-sub);
  margin: 12px 0;
}

.ai-card details {
  margin-top: 8px;
}

.ai-card details summary {
  cursor: pointer;
  color: var(--forest);
  font-weight: 500;
  font-size: 13.5px;
  padding: 6px 0;
}

.ai-card details[open] summary {
  margin-bottom: 6px;
}

/* ────────── Feature grid ────────── */

.feat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.feat {
  background: var(--surface);
  border: 1px solid var(--kraft);
  border-radius: var(--radius-md);
  padding: 18px 18px;
}

.feat h4 { margin-bottom: 6px; }
.feat p {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-muted);
}

/* ────────── Don't list ────────── */

.dont > h2,
.dont > .lede {
  text-align: center;
}
.dont > .lede {
  margin-left: auto;
  margin-right: auto;
}

.dont-list {
  list-style: none;
  padding: 0;
  margin: 24px auto 12px;
  display: flex; flex-direction: column; gap: 12px;
  max-width: 70ch;
}

.dont-list li {
  background: var(--surface);
  border: 1px solid var(--kraft);
  border-left: 3px solid var(--ochre);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 15px;
  color: var(--ink-muted);
}
.dont-list li strong { color: var(--ink); font-weight: 600; }

.dont-footer {
  color: var(--ink-muted);
  font-style: italic;
  margin-top: 18px;
  font-size: 14px;
  text-align: center;
}

/* ────────── Pricing ────────── */

.pricing {
  display: flex;
  justify-content: center;
}

.price-card {
  background: var(--surface-raised);
  border: 1px solid var(--kraft);
  border-radius: var(--radius-lg);
  padding: 40px 44px 36px;
  text-align: center;
  max-width: 460px;
  width: 100%;
}

.price-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  font-weight: 600;
  color: var(--forest);
  margin-bottom: 6px;
}

.price-amount {
  font-family: 'Work Sans', sans-serif;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 16px 0 6px;
}

.price-amount .dollar {
  font-size: 28px;
  vertical-align: top;
  margin-right: 2px;
  color: var(--ink-muted);
}
.price-amount .whole { font-size: 88px; }
.price-amount .cents {
  font-size: 32px;
  vertical-align: top;
  color: var(--ink-muted);
}

.price-unit {
  color: var(--ink-muted);
  font-size: 14px;
  margin-bottom: 24px;
}

.price-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  text-align: left;
  display: flex; flex-direction: column; gap: 8px;
  font-size: 14.5px;
}
.price-list li::before {
  content: "✓";
  color: var(--forest);
  font-weight: 600;
  margin-right: 8px;
}

.price-fine {
  font-size: 12.5px;
  color: var(--ink-muted);
  margin-top: 16px;
  line-height: 1.55;
}

/* ────────── FAQ ────────── */

.faq details {
  background: var(--surface);
  border: 1px solid var(--kraft);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin: 10px 0;
}

.faq details[open] {
  background: var(--surface-raised);
}

.faq summary {
  cursor: pointer;
  font-weight: 500;
  font-size: 16px;
  color: var(--ink);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "+";
  display: inline-block;
  width: 18px;
  color: var(--forest);
  font-weight: 600;
  transition: transform .15s ease;
}
.faq details[open] summary::before {
  content: "–";
}

.faq details p {
  margin: 10px 0 0;
  color: var(--ink-muted);
  font-size: 14.5px;
  line-height: 1.55;
}

/* ────────── Footer ────────── */

footer {
  border-top: 1px solid var(--kraft);
  margin-top: 32px;
  padding: 40px 28px 24px;
}

.foot-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 2fr);
  gap: 40px;
  color: var(--ink-muted);
  font-size: 13.5px;
}

.foot-brand .wordmark {
  margin-bottom: 14px;
}

.foot-tagline {
  margin: 0 0 12px;
  max-width: 38ch;
  line-height: 1.55;
}

.foot-contact {
  margin: 0;
}

.foot-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.foot-col h5 {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

.foot-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.foot-col a {
  color: var(--ink-muted);
}
.foot-col a:hover {
  color: var(--ink);
  text-decoration: none;
}

.foot-bottom {
  max-width: var(--max);
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px dashed var(--kraft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink-muted);
}

.foot-bottom p { margin: 0; }

@media (max-width: 800px) {
  .foot-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .foot-cols {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ────────── Responsive ────────── */

@media (max-width: 800px) {
  .compare,
  .steps,
  .feat-grid,
  .ai-grid {
    grid-template-columns: 1fr;
  }
  .ai-card-primary { grid-column: auto; }
  .topbar nav a:not(.btn) {
    display: none;
  }
  .hero { padding: 56px 20px 48px; }
  section { padding: 40px 28px; }

  .hero-visual { margin-top: 40px; }
  .hero-visual img { border-radius: var(--radius-md); }

  .vs-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .vs-feature {
    border-right: none;
    border-bottom: 1px dashed var(--kraft);
    padding: 0 0 12px 0;
  }
}
