/* Tallilo launch page.
   Layout: a ledger. Oversized headlines on pale paper, figures in mono, the product sample sits
   where a hero image would. One loud thing (the headline and its highlighter); the rest is quiet.
   Single light look by choice; every colour is set explicitly.
   Fonts are served from this site (Fontsource builds, SIL OFL 1.1, licences in fonts/), so a visit
   sends nothing to a third party. */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-display: swap; font-weight: 200 800; src: url(fonts/bricolage-grotesque.woff2) format("woff2"); }
@font-face { font-family: "Geist"; font-style: normal; font-display: swap; font-weight: 100 900; src: url(fonts/geist.woff2) format("woff2"); }
@font-face { font-family: "Geist Mono"; font-style: normal; font-display: swap; font-weight: 100 900; src: url(fonts/geist-mono.woff2) format("woff2"); }
:root {
  color-scheme: light;
  --paper: #f4f6f1;      /* the app's background */
  --sheet: #ffffff;
  --ink: #16211e;
  --muted: #45544c;
  --line: #cfd9d1;
  --green: #1f5a3d;      /* the app's brand green */
  --deep: #0f2a1e;
  --on-deep: #e9f1eb;
  --on-deep-muted: #a9c0b2;
  --hi: #ffe14d;         /* highlighter */
  --focus: #8a5d00;
  --display: "Bricolage Grotesque", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --r: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--body);
  overflow-wrap: break-word;
}
h1, h2, h3, p, ul, ol, dl, dd, table { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.dark :focus-visible { outline-color: var(--hi); }

.wrap {
  max-width: 76rem;
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--sheet); padding: .6rem 1rem; z-index: 5; }
.skip:focus { left: 0; }

/* Type */
h1, h2 { font-family: var(--display); font-weight: 800; letter-spacing: -.045em; text-wrap: balance; }
h1 { font-size: clamp(3.6rem, 15.5vw, 12.5rem); line-height: .84; }
h2 { font-size: clamp(2.2rem, 6.2vw, 4.75rem); line-height: .95; max-width: 17ch; }
h3 { font-family: var(--display); font-weight: 700; font-size: 1.6rem; letter-spacing: -.02em; line-height: 1.1; }
.tag { font: 500 .75rem/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.45; max-width: 34rem; }
.fine { font-size: .9rem; color: var(--muted); }
.sum, table, dd, .rate, input[type="number"] { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.num { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.hl { background: linear-gradient(transparent 12%, var(--hi) 12%, var(--hi) 90%, transparent 90%); padding-inline: .06em; margin-inline: -.06em; }

/* Tally marks: the step counters */
.tally { width: 2.75rem; height: 2rem; fill: none; stroke: currentColor; stroke-width: 3.4; stroke-linecap: round; flex: none; }
.tally .strike { stroke: var(--green); }
.dark .tally .strike { stroke: var(--hi); }

/* Buttons */
.btn {
  display: inline-block; background: var(--ink); color: var(--sheet); text-decoration: none;
  font: 600 1.05rem/1 var(--body); padding: 1.1rem 1.6rem; border-radius: 999px;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: var(--green); transform: translateY(-2px); }
.btn-sm { padding: .7rem 1.1rem; font-size: .92rem; }
.btn-hi { background: var(--hi); color: var(--ink); }
.btn-hi:hover { background: var(--sheet); }

/* Header */
.top-in { display: flex; align-items: center; gap: 1.5rem; padding-block: 1.1rem; }
.mark { display: inline-flex; align-items: center; text-decoration: none; font: 800 1.45rem/1 var(--display); letter-spacing: -.03em; }
/* The logo: the name and a full stop */
.mark::after { content: ""; width: .2em; height: .2em; border-radius: 50%; background: var(--green); align-self: flex-end; margin: 0 0 .1em .05em; }
.foot .mark::after { background: var(--hi); }
.top nav { display: flex; gap: 1.6rem; margin-left: auto; font-size: .95rem; }
.top nav a { text-decoration: none; }
.top nav a:hover { text-decoration: underline; text-underline-offset: .3em; }

/* Hero */
.hero { padding-block: clamp(2rem, 5vw, 4rem) clamp(3rem, 6vw, 5rem); }
.hero .tag { margin-bottom: 1.4rem; }
/* Headline entrance: "Time in." drops in diagonally from the top right,
   "Invoice out." slides in from the left, then the highlighter sweeps
   left to right across "Invoice". Clipped so nothing scrolls sideways. */
.hero { overflow-x: clip; }
.hero h1 .h1-in, .hero h1 .h1-out { display: block; }
.hero h1 .h1-in { animation: in-diag .8s cubic-bezier(.2, .8, .2, 1) both; }
.hero h1 .h1-out { animation: in-left .7s cubic-bezier(.2, .8, .2, 1) .65s both; }
.hero h1 .hl {
  background-repeat: no-repeat; background-position: left center; background-size: 100% 100%;
  animation: hl-sweep .55s cubic-bezier(.6, 0, .3, 1) 1.4s both;
}
@keyframes in-diag { from { opacity: 0; transform: translate(70vw, -60vh); } }
@keyframes in-left { from { opacity: 0; transform: translateX(-100vw); } }
@keyframes hl-sweep { from { background-size: 0% 100%; } }
.hero-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.75rem 3rem; margin-top: clamp(1.75rem, 4vw, 3rem); }
.hero-cta { display: grid; gap: .8rem; justify-items: start; }

.demo { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 1rem; margin-top: clamp(2.25rem, 5vw, 4rem); align-items: start; }
.sheet, .invoice, .recon { background: var(--sheet); border: 1.5px solid var(--ink); border-radius: var(--r); padding: 1.25rem; min-width: 0; }
.invoice { box-shadow: 8px 8px 0 var(--hi); }
.pane-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1rem; padding-bottom: .9rem; border-bottom: 1px solid var(--line); }
.try { font: 500 .75rem/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--green); }

.grid { display: grid; gap: .5rem; padding-block: .9rem; }
.days, .row { display: grid; grid-template-columns: minmax(7.5rem, 1fr) repeat(5, minmax(0, 4.4rem)); gap: .5rem; align-items: center; }
.days { font: 500 .72rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); text-align: center; }
.task { font-weight: 600; }
.rate { display: block; font-size: .78rem; font-weight: 400; color: var(--muted); }
.row input {
  width: 100%; min-width: 0; height: 2.9rem; text-align: center; font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 0 .2rem;
  appearance: textfield; -moz-appearance: textfield;
}
.row input::-webkit-outer-spin-button, .row input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.row input:hover { border-color: var(--ink); }
.row input:focus-visible { outline-offset: 1px; background: var(--sheet); }
.sheet-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; padding-top: .9rem; border-top: 1px solid var(--line); font-size: .92rem; color: var(--muted); }
.stamp { font: 500 .72rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--green); border: 1.5px solid var(--green); border-radius: 5px; padding: .35rem .5rem; transform: rotate(-3deg); }

.inv-to { font: 700 1.35rem/1.15 var(--display); letter-spacing: -.02em; padding-block: .9rem .3rem; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th { font-family: var(--body); font-weight: 400; text-align: left; }
thead th { font: 500 .7rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
th, td { padding: .6rem 0; border-bottom: 1px solid var(--line); }
td, thead th:not(:first-child) { text-align: right; }
.inv-total { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .25rem 1rem; padding-top: 1rem; font-size: .92rem; }
.inv-total strong { font: 500 clamp(1.7rem, 3vw, 2.3rem)/1 var(--mono); letter-spacing: -.04em; }
.bump { animation: bump .28s ease; }
@keyframes bump { 40% { transform: translateY(-3px); background: var(--hi); } }

/* Ticker */
.ticker { background: var(--ink); color: var(--paper); overflow: hidden; padding-block: 1rem; }
.ticker-track { display: flex; width: max-content; animation: slide 40s linear infinite; }
.ticker span { font: 700 1.35rem/1 var(--display); letter-spacing: -.02em; white-space: nowrap; padding-inline: 1.5rem; }
.ticker span::after { content: "/"; color: var(--hi); margin-left: 3rem; }
@keyframes slide { to { transform: translateX(-50%); } }

/* Bands */
.band { padding-block: clamp(4rem, 9vw, 7.5rem); }
.band > .wrap > .tag, .split > div > .tag { margin-bottom: 1.1rem; }
.dark { background: var(--deep); color: var(--on-deep); }
.dark .tag { color: var(--on-deep-muted); }
.tint { background: var(--sheet); border-block: 1.5px solid var(--ink); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem 4rem; align-items: start; }
.split .lede { margin-top: 1.4rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(2.5rem, 5vw, 4rem); border-top: 1.5px solid var(--ink); }
.steps li { padding: 1.5rem 1.5rem 0 0; display: grid; gap: .7rem; align-content: start; }
.steps li + li { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.steps p { color: var(--muted); font-size: 1rem; }
.done { display: flex; align-items: center; gap: 1rem; margin-top: 3rem; font-size: 1.05rem; max-width: 40rem; }

/* Lists with ticks */
.ticks { display: grid; gap: 1rem; margin-top: 2rem; }
.ticks li { padding-left: 1.9rem; position: relative; max-width: 34rem; }
.ticks li::before { content: ""; position: absolute; left: .15rem; top: .32em; width: .55rem; height: .95rem; border: solid currentColor; border-width: 0 2.5px 2.5px 0; transform: rotate(40deg) translateY(-.2rem); }
.dark .ticks li::before { border-color: var(--hi); }

/* Import report */
.recon { color: var(--ink); }
.dark .recon .tag { color: var(--muted); } /* white panel inside a dark band: keep the dark-on-light label colour */
.recon dl > div { display: grid; grid-template-columns: 1fr auto 6.5rem; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.recon dt { font-weight: 600; }
.recon dd { text-align: right; }
.recon .ok { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--green); }
.recon-foot { padding-top: .9rem; font: 400 .85rem/1.4 var(--mono); color: var(--muted); }

/* Pricing */
.price { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 2.5rem 4rem; margin-top: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.price-main { display: grid; gap: .5rem; justify-items: start; }
.cur { display: inline-flex; border: 1.5px solid var(--ink); border-radius: 999px; padding: 3px; }
.cur button { font: 500 .8rem/1 var(--mono); letter-spacing: .05em; color: var(--ink); background: none; border: 0; border-radius: 999px; padding: .6rem .85rem; cursor: pointer; }
.cur button[aria-pressed="true"] { background: var(--ink); color: var(--sheet); }
.period { margin-top: .5rem; }
.save { background: var(--hi); color: var(--ink); border-radius: 999px; padding: .1rem .4rem; margin-left: .2rem; }
.amount { font: 800 clamp(4.5rem, 14vw, 10rem)/.95 var(--display); letter-spacing: -.05em; font-variant-numeric: tabular-nums; margin-top: .6rem; }
.per { color: var(--muted); }
.seats { display: grid; gap: .7rem; width: min(100%, 26rem); margin-block: 1.6rem 1.4rem; padding-top: 1.4rem; border-top: 1.5px solid var(--ink); }
.seats label { font-weight: 600; }
.seats output { font-family: var(--mono); }
.seats input { width: 100%; accent-color: var(--green); height: 1.75rem; margin: 0; }
.sum { font-size: 1.5rem; letter-spacing: -.03em; }
.price-list { margin-top: 0; }

.solo { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1.25rem 2.5rem; align-items: center; margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.75rem; border-top: 1.5px solid var(--ink); }
.solo-big { font: 800 clamp(1.8rem, 3.6vw, 2.75rem)/1 var(--display); letter-spacing: -.04em; }
.solo p:not(.solo-big) { color: var(--muted); max-width: 34rem; }
@media (max-width: 900px) { .solo { grid-template-columns: minmax(0, 1fr); justify-items: start; } }

/* Not yet */
.nots li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .95rem 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
.nots li:first-child { border-top: 1.5px solid var(--ink); }
.nots span:last-child { font: 500 .72rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }

/* Questions */
.faq { border-top: 1.5px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; padding: 1.15rem 0; font: 700 1.25rem/1.25 var(--display); letter-spacing: -.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.4rem/1 var(--mono); color: var(--green); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 1.3rem; color: var(--muted); max-width: 38rem; }

/* Close */
.end .wrap { display: grid; gap: 1.6rem; justify-items: start; }
.end h2 { font-size: clamp(2.6rem, 9vw, 7.5rem); line-height: .88; max-width: none; }
.end .fine { color: var(--on-deep-muted); }
.end .fine a { color: var(--on-deep); }
.end .lede { color: var(--on-deep); }

/* Waitlist form. Works without script: a plain POST to /api/waitlist, answered by a redirect. */
.wait { display: grid; gap: .6rem; width: 100%; max-width: 40rem; }
.wait label { font: 500 .8rem/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--on-deep-muted); }
.wait-row { display: flex; gap: .6rem; flex-wrap: wrap; }
.wait input[type="email"] {
  flex: 1 1 16rem; min-width: 0; min-height: 3.25rem; padding: .7rem 1rem;
  font: 400 1.05rem/1.2 var(--body); color: var(--ink); background: var(--sheet);
  border: 2px solid var(--sheet); border-radius: 999px;
}
.wait input[type="email"]:focus-visible { outline: 3px solid var(--hi); outline-offset: 3px; }
.wait button { border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Plain message pages (privacy notice, waitlist replies). */
.page { padding-block: clamp(3rem, 7vw, 5.5rem); }
.page .wrap { max-width: 46rem; }
.page h1 { font-size: clamp(2.6rem, 8vw, 4.5rem); line-height: .95; margin-bottom: 1.5rem; }
.page h2 { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.1; margin: 2.2rem 0 .7rem; max-width: none; }
.page p, .page ul { margin-bottom: 1rem; max-width: 42rem; }
.page ul { list-style: disc; padding-left: 1.3rem; }
.page li { margin-bottom: .4rem; }
.page table { border-collapse: collapse; width: 100%; font-family: var(--body); margin-bottom: 1rem; }
.page th, .page td { text-align: left; vertical-align: top; padding: .55rem .6rem .55rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.page .btn { margin-top: 1rem; }

.foot { background: var(--deep); color: var(--on-deep-muted); border-top: 1px solid #244536; font-size: .88rem; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding-block: 1.75rem; }
.foot .mark { color: var(--on-deep); }

/* Switch-from-Harvest page */
.hero h1.h1-switch { font-size: clamp(3rem, 10vw, 8.5rem); line-height: .88; }
.moves { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem 4rem; margin-top: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.moves h3 { padding-bottom: .9rem; border-bottom: 1.5px solid var(--ink); }
.moves .ticks { margin-top: 1.4rem; }
.moves .nots li:first-child { border-top: 0; }
.moves-note { margin-top: 1.2rem; max-width: 34rem; }
.plan-lede { margin-top: 1.4rem; }
.compare-wrap { margin-top: clamp(2rem, 4vw, 3.5rem); overflow-x: auto; background: var(--paper); border: 1.5px solid var(--ink); border-radius: var(--r); padding: .5rem 1.25rem; }
.compare { font-size: 1rem; min-width: 36rem; }
.compare caption { text-align: left; font: 500 .72rem/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: .9rem 0 .4rem; }
.compare th, .compare td { padding: .95rem 1rem .95rem 0; vertical-align: top; }
.compare td { text-align: left; width: 34%; }
.compare thead th { text-align: left; }
.compare tbody th { font-weight: 600; }
.compare tr:last-child > * { border-bottom: 0; }
.compare .us { font-weight: 500; }
.compare .us::before { content: ""; display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; background: var(--green); margin-right: .5rem; vertical-align: .1em; }
.compare-note { margin-top: 1.2rem; max-width: 48rem; }
/* Phones: each row becomes a small card, Harvest and Tallilo side by side, so nothing scrolls. */
@media (max-width: 640px) {
  .compare-wrap { overflow-x: visible; padding: .25rem 1rem; }
  .compare { min-width: 0; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .35rem 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .compare tbody tr:last-child { border-bottom: 0; }
  .compare tbody th { grid-column: 1 / -1; padding: 0; border: 0; }
  .compare td { width: auto; padding: 0; border: 0; font-size: .9rem; }
  .compare td::before { content: attr(data-label); display: block; font: 500 .66rem/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: .2rem; }
  .compare .us::before { content: attr(data-label); display: block; width: auto; height: auto; border-radius: 0; background: none; margin: 0 0 .2rem; color: var(--green); }
}
.more { margin-top: 2rem; font-weight: 600; }
.more a { text-underline-offset: .3em; }
.dark .more a { color: var(--hi); }

/* Narrow screens */
@media (max-width: 900px) {
  .demo, .split, .price, .moves { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li { padding: 1.5rem 1rem 1.5rem 0; }
  .steps li + li { padding-left: 0; border-left: 0; }
  .steps li:nth-child(even) { padding-left: 1rem; border-left: 1px solid var(--line); }
  .steps li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .top nav { display: none; }
  .top .btn-sm { margin-left: auto; }
}
@media (max-width: 560px) {
  .days, .row { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .35rem; }
  .days span:first-child { display: none; }
  .task { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; margin-top: .5rem; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li:nth-child(even) { padding-left: 0; border-left: 0; }
  .steps li + li { border-top: 1px solid var(--line); }
  .invoice { box-shadow: 5px 5px 0 var(--hi); }
  .recon dl > div { grid-template-columns: 1fr auto 5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; row-gap: .6rem; }
  .ticker-track span:nth-child(n+6) { display: none; }
  .bump { animation: none; }
  .hero h1 .h1-in, .hero h1 .h1-out, .hero h1 .hl { animation: none; }
  .btn { transition: none; }
}
