:root {
  --ink: #16120c;
  --ink-soft: #3a3328;
  --paper: #f1e6cf;
  --sheet: #fbf3e0;
  --rule: #2a2418;
  --red: #b42318;
  --red-deep: #7d160f;
  --forest: #24382c;
  --forest-soft: #3d5a46;
  --muted: #6e6456;
  --line: #c9b89a;
  --desk: #221c16;
  --gold: #c4a15a;
  --shadow: 0 14px 40px rgba(22, 18, 12, 0.16);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(180, 35, 24, 0.08), transparent 50%),
    radial-gradient(900px 400px at 110% 0%, rgba(36, 56, 44, 0.08), transparent 45%),
    var(--paper);
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.55;
}

a { color: var(--red-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red); }

.wrap { width: min(1100px, calc(100% - 24px)); margin: 0 auto; }
@media (min-width: 720px) { .wrap { width: min(1100px, calc(100% - 32px)); } }

.mast {
  border-bottom: 4px solid var(--ink);
  padding: 18px 0 14px;
  margin-bottom: 22px;
}
.mast-kicker {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.wordmark {
  font-size: clamp(42px, 8vw, 84px);
  line-height: 0.85;
  margin: 8px 0 6px;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.wordmark a { color: inherit; text-decoration: none; }
.wordmark span { color: var(--red); }
.tagline {
  font-style: italic;
  font-size: 17px;
  color: var(--ink-soft);
  margin: 0;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 10px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav a { color: var(--forest); text-decoration: none; border-bottom: 1px solid var(--forest); }
.nav a:hover, .nav a:focus-visible { color: var(--red-deep); border-bottom-color: var(--red); }
.nav a:active { color: var(--red); }

.desk-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 22px;
  align-items: start;
  padding-bottom: 60px;
}
@media (max-width: 820px) {
  .desk-grid { grid-template-columns: 1fr; }
}

.panel {
  background: var(--sheet);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 22px 22px 24px;
}
.panel h2 {
  margin: 0 0 8px;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.eyebrow {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 6px;
}

.drop {
  border: 2px dashed var(--rule);
  background: repeating-linear-gradient(
    -12deg,
    rgba(36, 56, 44, 0.03),
    rgba(36, 56, 44, 0.03) 8px,
    transparent 8px,
    transparent 16px
  );
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px 16px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.drop.over { border-color: var(--red); background-color: #fff6e8; }
.drop strong { font-size: 20px; display: block; margin-bottom: 6px; }
.drop span { color: var(--muted); font-size: 14px; }
.drop input { display: none; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
button, .btn, .tap {
  appearance: none;
  border: 0;
  background: var(--ink);
  color: var(--sheet);
  font-family: Georgia, serif;
  font-size: 17px;
  min-height: 56px;
  min-width: 56px;
  padding: 14px 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(180, 35, 24, 0.18);
}
button.ghost, .btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
button.red, .btn.red { background: var(--red); color: var(--sheet); }
button:disabled { opacity: 0.5; cursor: wait; }
button:hover:not(:disabled), .btn:hover { filter: brightness(1.08); }
button:focus-visible, .btn:focus-visible, .tap:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
button:active:not(:disabled), .btn:active, .tap:active { filter: brightness(1.12); }
a.btn { text-decoration: none; }

.status {
  margin-top: 14px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--forest);
  min-height: 1.2em;
}
.status.err { color: var(--red); }

.steps { list-style: none; padding: 0; margin: 12px 0 0; }
.steps li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  margin: 0 0 12px;
  font-size: 15px;
}
.num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--sheet);
  display: grid; place-items: center;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 12px;
}

.ledger {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.ledger th {
  text-align: left;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--ink);
  padding: 6px 8px;
}
.ledger td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ledger tr.skip td { color: var(--muted); }
.pill {
  display: inline-block;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 6px;
  border: 1px solid currentColor;
}
.pill.food { color: var(--red-deep); }
.pill.travel { color: var(--forest); }
.pill.other { color: var(--muted); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin: 18px 0 40px;
}
.card {
  background: var(--sheet);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 320px;
  text-decoration: none;
  color: inherit;
}
.card img, .card .ph {
  width: 100%;
  height: 150px;
  object-fit: cover;
  background: #e7dcc4;
  display: block;
}
.card .body { padding: 12px 14px 16px; flex: 1; display: flex; flex-direction: column; }
.card h3 { margin: 0 0 6px; font-size: 20px; line-height: 1.2; }
.card p { margin: 0; color: var(--ink-soft); font-size: 14px; flex: 1; }
.meta {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.article {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 28px;
  padding-bottom: 70px;
}
@media (max-width: 860px) { .article { grid-template-columns: 1fr; } }
.hero-img { width: 100%; max-height: 380px; object-fit: cover; background: #e7dcc4; border: 1px solid var(--line); }
.article h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.05; margin: 12px 0 10px; }
.prose p { font-size: 18px; margin: 0 0 1em; }
.rail .panel { position: sticky; top: 16px; }
.rail dt {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 10px;
}
.rail dd { margin: 2px 0 0; }
.weflush {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  color: var(--forest);
}

textarea, select, input[type="text"], input[type="email"], input[type="url"] {
  width: 100%;
  font: inherit;
  font-size: 16px;
  min-height: 56px;
  padding: 14px 12px;
  border: 1px solid var(--line);
  background: #fffdf6;
  color: var(--ink);
}
textarea { min-height: 220px; resize: vertical; }
label { display: block; font-size: 13px; margin: 10px 0 4px; color: var(--ink-soft); }

.banner {
  background: var(--desk);
  color: var(--sheet);
  padding: 10px 14px;
  font-size: 14px;
  margin-bottom: 16px;
}
.banner a { color: var(--gold); }

.foot {
  border-top: 2px solid var(--ink);
  padding: 18px 0 28px;
  color: var(--muted);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.hidden { display: none !important; }

.story { max-width: 42em; padding-bottom: 48px; }
.story p { font-size: 18px; }
.packages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 8px 0 28px;
}
@media (max-width: 820px) {
  .packages { grid-template-columns: 1fr; }
}
.pack h3 { margin: 0 0 8px; font-size: 20px; }
.pack .when {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}
.share {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}
.share code, .share .link {
  display: block;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 13px;
  background: #fffdf6;
  border: 1px solid var(--line);
  padding: 8px 10px;
  word-break: break-all;
  margin: 8px 0;
}
.ledger-note {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--muted);
}


/* Capture home — mobile first */
body.capture .mast-slim {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0 10px;
  margin-bottom: 16px;
}
body.capture .wordmark {
  font-size: clamp(28px, 9vw, 44px);
  margin: 0;
}
body.capture .nav { margin-top: 0; gap: 10px 14px; }
body.capture .mast-kicker, body.capture .tagline { display: none; }

.capture-main {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 40px;
}
.sell {
  font-size: clamp(28px, 8vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 4px;
}

.sell-sub {
  margin: -4px 0 6px;
  font-size: clamp(16px, 3.4vw, 20px);
  line-height: 1.35;
  color: var(--ink-soft);
}

.capture-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 12px;
  background: var(--sheet);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow);
  padding: 22px 18px 20px;
  min-height: 200px;
  cursor: pointer;
}
.capture-card.over {
  border-color: var(--red);
  background: #fff6e8;
}
.capture-card .file-hit {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 3;
  font-size: 24px;
}
.capture-card .btn,
.capture-card .tap {
  pointer-events: none;
  width: 100%;
  z-index: 1;
}
.capture-card .hint {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.4;
  text-align: center;
}

#see-farrell {
  width: 100%;
}

.sample-box { margin-top: 4px; }
.sample-label {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
}
.sample-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sample-row select {
  width: 100%;
}

.teaser {
  margin-top: 10px;
  background: var(--sheet);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.teaser a {
  display: block;
  color: inherit;
  text-decoration: none;
}
.teaser img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  background: #1b1612;
}
.teaser-copy { padding: 14px 16px 18px; }
.teaser-copy h2 {
  margin: 0 0 6px;
  font-size: clamp(22px, 6vw, 32px);
  line-height: 1.1;
}
.teaser-go {
  display: inline-block;
  margin-top: 8px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--red);
  color: var(--red-deep);
}

.foot {
  justify-content: flex-start;
}

.blog-path {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

@media (min-width: 640px) {
  .sample-row {
    flex-direction: row;
    align-items: stretch;
  }
  .sample-row select { flex: 1; }
  .sample-row button { flex: 0 0 auto; }
  .teaser img { height: 280px; }
  #see-farrell { width: auto; align-self: stretch; }
}

@media (hover: none) {
  a:hover { color: inherit; }
  button:hover:not(:disabled), .btn:hover { filter: none; }
}

/* GTM lock — Farrell hero first, claim free, four-tap pulse */
.teaser-hero { margin-top: 0; }
.teaser-hero img { height: 240px; }
.secondary-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.capture-card-slim {
  min-height: 0;
  padding: 16px 16px 14px;
}
#see-farrell {
  width: 100%;
}
#claim-free { width: 100%; }

.pulse-q { margin: 14px 0 0; }
.pulse-prompt {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
}
.pulse-taps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pulse-taps .pulse-tap {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
  min-height: 56px;
  font-size: 16px;
}
.pulse-taps .pulse-tap.is-on {
  background: var(--red);
  color: var(--sheet);
  border-color: var(--red);
}

@media (min-width: 640px) {
  .teaser-hero img { height: 360px; }
  .secondary-row {
    flex-direction: row;
    align-items: stretch;
  }
  .secondary-row .capture-card-slim { flex: 1; }
  #claim-free { width: auto; align-self: stretch; }
}


.file-list {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  border: 1px solid var(--line);
  background: var(--sheet);
}
.file-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 12px;
}
.file-list li:last-child { border-bottom: 0; }
.file-list .name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.file-list .st {
  flex: 0 0 auto;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 10px;
}
.file-list .st.ok { color: var(--forest); }
.file-list .st.skipped { color: var(--muted); }
.file-list .st.failed { color: var(--red); }
.file-list .st.pending { color: var(--gold); }
