/* Hallmark · shape: custom, a till slip rung up on a dark counter · genre: editorial · theme: brand
 * paper: #2a1a12 · accent: #f2c14e · display: Young Serif · body: Instrument Sans · hero: the head on the left, the working slip on the right, centred in its screen · nav: a wordmark and one quiet action, no rule · footer: one line, the wordmark and three links · signature: the price field on the slip that reprints the verdict
 * axes: dark/roman-serif/warm · posture: butter on the actions and the slip's shadow only · contrast: pass · fold: pass · v2.0.0
 * brand: PriceMyBatch (tokens taken from the app's own stylesheet, plataforma/public/app.css) · job: try · idea: "one batch of cupcakes rung up on a slip; type your price and it prints what you keep" · vibe: "dark bakery counter, one white slip" · imagery: screenshots 3 (capture-app.mjs) */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R4 V4 · weakest: R, the slip keeps a butter shadow that is the page's only ornament; cut the torn edge and the dot mark to earn it */
/* Hallmark · waive 84 · the hero control runs engine/pricing.js, the app's own engine, on its sample batch · a price typed on the slip is the product doing its job, and three real captures of the app follow */
/* Hallmark · waive 44c · the hero's visual is the slip, a form that runs to y 833 of 900 · the check reads the buttons at y 691 as the last content and skips the slip beside them */
/* Hallmark · waive 79 · the slip fills the right half of the first screen down to y 833 · the measured gap is under the left column only, beside the slip, not under the hero */
/* Hallmark · waive 77 · two sections are a statement by design: the hourly pair sets two figures at display size across the full container, and the price section is three dated rows (today, day 3, every month after) between two 2px rules · both hold short facts on purpose, so the measured text reads as thin while the figures and the rules carry the width */
/* Hallmark · waive 39b · every control is 52px or 56px tall · this page is opened from a phone ad and the buyer is tapping with flour on her hands */
@import url("./tokens.css");
@import url("./base.css");

:root { --container: 1360px; }

.skip { position: absolute; inset-inline-start: var(--space-md); inset-block-start: var(--space-md); transform: translateY(-300%); background: var(--color-accent); color: var(--color-accent-ink); padding: var(--space-sm) var(--space-md); z-index: var(--z-modal); }
.skip:focus-visible { transform: none; }

/* ---- chrome ---- */
.top { display: flex; align-items: center; justify-content: space-between; padding-block: var(--space-lg); }
.wordmark { font-family: var(--font-display); font-size: var(--text-xl); text-decoration: none; color: var(--color-ink); }
.foot { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-lg); padding-block: var(--space-2xl); margin-block-start: var(--section-gap); border-block-start: var(--rule-hair) solid var(--color-rule); }
.foot nav { display: flex; flex-wrap: wrap; gap: var(--space-lg); }
.foot a { color: var(--color-ink-2); white-space: nowrap; }
.foot a:hover { color: var(--color-ink); }

/* ---- controls ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: var(--space-sm) var(--space-lg); border: 2px solid var(--color-accent); border-radius: var(--radius-card); font-weight: 600; font-size: var(--text-lg); text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform var(--dur-micro) var(--ease-out), background-color var(--dur-micro) var(--ease-out); }
.btn-main { background: var(--color-accent); color: var(--color-accent-ink); }
.btn-main:hover { background: color-mix(in oklab, var(--color-accent) 86%, var(--color-ink)); }
.btn-line { background: transparent; color: var(--color-ink); border-color: var(--color-rule); }
.btn-line:hover { border-color: var(--color-ink-2); }
.btn-quiet { min-height: 52px; background: transparent; color: var(--color-ink); border-color: transparent; font-size: var(--text-md); text-decoration: underline; padding-inline: var(--space-xs); }
.btn-quiet:hover { color: var(--color-accent); }
.btn:active { transform: translateY(2px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; transform: none; }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-md); }

/* ---- hero: the head, then the slip ---- */
.hero { display: grid; gap: var(--space-xl); align-items: center; padding-block: var(--space-lg) var(--space-2xl); }
.hero-say { display: grid; gap: var(--space-lg); }
.hero h1 { max-width: 9ch; }
.hero .lead { color: var(--color-ink-2); max-width: 32ch; }
@media (min-width: 62rem) {
  .hero { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--space-3xl); min-height: min(calc(100svh - 104px), 800px); padding-block: var(--space-md) var(--space-2xl); }
  .till { justify-self: end; }
}

.till { --color-focus: var(--color-slip-ink); width: 100%; max-width: 520px; background: var(--color-slip); color: var(--color-slip-ink); padding: var(--space-xl) var(--space-lg); font-size: var(--text-lead); box-shadow: var(--shadow-slip); overflow: visible; }
.till-title { font-family: var(--font-display); font-size: var(--text-2xl); line-height: 1.2; padding-block-end: var(--space-md); border-block-end: 2px solid var(--color-slip-ink); }
.rows { margin: 0; }
.rows > div { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-md); padding-block: var(--space-sm); border-block-end: var(--rule-hair) dashed var(--color-slip-rule); }
.rows dt { color: var(--color-slip-muted); }
.rows dd { margin: 0; font-family: var(--font-outlier); white-space: nowrap; }
.rows .sum { border-block-end: 0; padding-block-start: var(--space-sm); }
.rows .sum dt { color: var(--color-slip-ink); font-weight: 600; }
.rows .sum dd { font-size: var(--text-lg); font-weight: 500; }
.charge { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); margin-block-start: var(--space-sm); padding-block-start: var(--space-md); border-block-start: 2px solid var(--color-slip-ink); font-weight: 600; font-size: var(--text-lg); }
.money { display: inline-flex; align-items: center; gap: var(--space-2xs); height: 56px; padding-inline: var(--space-sm); border: 2px solid var(--color-slip-ink); border-radius: var(--radius-card); background: var(--color-slip); font-family: var(--font-outlier); font-size: var(--text-xl); }
.money:focus-within { outline: 2px solid var(--color-slip-ink); outline-offset: 2px; }
.money input { width: 5ch; height: 100%; border: 0; background: transparent; color: inherit; font-family: inherit; font-size: inherit; text-align: end; }
.money input:focus-visible { outline: 0; }
.verdict { display: grid; gap: var(--space-xs); margin: var(--space-lg) calc(-1 * var(--space-lg)) 0; padding: var(--space-lg); background: var(--color-gain); color: var(--color-loss-ink); }
.verdict.is-loss { background: var(--color-loss); }
.verdict strong { font-family: var(--font-display); font-weight: 400; font-size: var(--text-2xl); line-height: 1.15; }
.till-foot { margin-block-start: var(--space-md); font-size: var(--text-sm); color: var(--color-slip-muted); max-width: 46ch; }
.till-foot .num { font-family: var(--font-outlier); color: var(--color-slip-ink); }

/* ---- sections ---- */
.say { display: grid; gap: var(--space-lg); align-content: center; }
.say .lead, .fine { color: var(--color-ink-2); }
.shot { margin: 0; border-radius: var(--radius-card); background: var(--color-paper-2); outline: var(--rule-hair) solid var(--color-rule); outline-offset: -1px; }
.shot-tall { aspect-ratio: 1 / 2; width: 100%; max-width: 360px; }
.shot-quote { aspect-ratio: 1080 / 1002; width: 100%; max-width: 520px; }
.shot > img { object-position: top; }

.shot-receipt { aspect-ratio: 700 / 1504; width: 100%; max-width: 360px; }
.hero .fine { margin-block-start: 0; }
.unseen { margin-block-start: var(--section-gap-s); }
.split { display: grid; gap: var(--space-2xl); margin-block-start: var(--space-2xl); padding-block-start: var(--space-xl); border-block-start: 2px solid var(--color-ink); }
.split p { display: grid; gap: var(--space-sm); align-content: start; max-width: none; }
.split strong { font-family: var(--font-display); font-weight: 400; font-size: clamp(5rem, 14vw, 11rem); line-height: 0.9; letter-spacing: var(--tracking-display); }
.split p + p strong { color: var(--color-accent); }
.split span { color: var(--color-ink-2); font-size: var(--text-lead); max-width: 36ch; }
.split-wide strong { font-size: clamp(4rem, 9vw, 8rem); }
.hourly { margin-block-start: var(--section-gap-l); }
.ways { list-style: none; margin: var(--space-2xl) 0 0; padding: 0; border-block-start: 2px solid var(--color-ink); }
.ways li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-2xs) var(--space-lg); align-items: baseline; padding-block: var(--space-lg); border-block-end: var(--rule-hair) solid var(--color-rule); }
.ways strong { font-family: var(--font-display); font-weight: 400; font-size: var(--text-title); grid-column: 1 / -1; }
.ways span { color: var(--color-ink-2); font-size: var(--text-lead); white-space: nowrap; }
.ways em { font-family: var(--font-display); font-style: normal; font-size: var(--text-xl); white-space: nowrap; }
.ways .win em, .ways .win strong { color: var(--color-accent); }
.incl { list-style: none; margin: var(--space-2xl) 0 0; padding: 0; display: grid; gap: var(--space-sm); }
.incl li { padding-inline-start: var(--space-lg); border-inline-start: 2px solid var(--color-accent); font-size: var(--text-lead); color: var(--color-ink-2); max-width: 46ch; }
.stick { position: fixed; inset-inline: 0; inset-block-end: 0; z-index: var(--z-sticky); display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); padding: var(--space-sm) var(--gutter); background: var(--color-paper-3); border-block-start: var(--rule-hair) solid var(--color-rule); }
.stick[hidden] { display: none; }
.stick span { font-size: var(--text-sm); color: var(--color-ink-2); }
.stick .btn { min-height: 52px; font-size: var(--text-md); padding-inline: var(--space-md); }
@media (max-width: 61.99rem) { .foot { padding-block-end: calc(var(--space-2xl) + 80px); } }
@media (min-width: 62rem) {
  .stick { display: none; }
  .ways li { grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 3fr); padding-block: var(--space-xl); }
  .ways strong { grid-column: auto; }
  .ways em { font-size: var(--text-3xl); text-align: end; }
}
.how { display: grid; gap: var(--space-2xl); margin-block-start: var(--section-gap-l); }
.how .say .lead { max-width: 44ch; }
.steps { display: grid; gap: var(--space-2xl); }
.step { display: grid; gap: var(--space-lg); align-content: start; }
.step-say { display: grid; gap: var(--space-sm); align-content: center; }
.step h3 { font-size: var(--text-2xl); max-width: 18ch; }
.step p { color: var(--color-ink-2); font-size: var(--text-lead); max-width: 34ch; }
.fit { margin-block-start: var(--section-gap-l); }
.orders { display: grid; gap: var(--space-2xl); margin-block-start: var(--section-gap); }
.orders .facts { margin-block-start: 0; }
.pair { display: grid; gap: var(--space-lg); align-items: end; }
.price { margin-block-start: var(--section-gap-l); padding-block: var(--space-3xl); border-block: 2px solid var(--color-ink); }
.math { margin-block-start: var(--space-xl); max-width: 40ch; color: var(--color-ink); }
.price h2 { font-size: var(--text-display-s); max-width: 16ch; font-variant-numeric: tabular-nums; }
.asked { margin-block-start: var(--section-gap-l); }
.last { display: grid; gap: var(--space-lg); margin-block-start: var(--section-gap-l); padding: var(--space-3xl) var(--space-lg); background: var(--color-paper-2); border-radius: var(--radius-card); }
.last h2 { font-size: var(--text-display); max-width: 14ch; }
.last .lead { color: var(--color-ink-2); max-width: 40ch; }
.last .actions { margin-block-start: var(--space-md); }
@media (min-width: 40rem) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-3xl); }
  .last { padding: var(--space-3xl) var(--space-2xl); }
}
@media (min-width: 62rem) {
  .steps { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-3xl); }
  .step { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-xl); }
  .orders { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-2xl) var(--space-3xl); align-items: center; }
  .orders .facts { grid-column: 1 / -1; }
  .pair { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .asked .facts li, .fit .facts li, .price .facts li { padding-block: var(--space-xl); }
  .asked .facts li { padding-block: calc(var(--space-2xl) + var(--space-md)); }
  .last { margin-block-start: var(--space-4xl); }
}
@media (min-width: 40rem) and (max-width: 61.99rem) { .pair { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }

.facts { list-style: none; margin: var(--space-2xl) 0 0; padding: 0; border-block-start: var(--rule-hair) solid var(--color-rule); }
.facts li { display: grid; gap: var(--space-2xs) var(--space-xl); padding-block: var(--space-lg); border-block-end: var(--rule-hair) solid var(--color-rule); }
.facts strong { font-family: var(--font-display); font-weight: 400; font-size: var(--text-title); }
.facts span { color: var(--color-ink-2); font-size: var(--text-lead); max-width: 52ch; }
@media (min-width: 48rem) { .facts li { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: baseline; } }
.price .actions { margin-block-start: var(--space-2xl); }
.fine { margin-block-start: var(--space-md); font-size: var(--text-sm); }

/* phones: the slip shows on the first screen, buttons run edge to edge, captures are cropped to what the copy points at */
@media (max-width: 39.99rem) {
  .top { padding-block: var(--space-md); }
  .hero { gap: var(--space-lg); padding-block-start: var(--space-xs); }
  .hero-say { gap: var(--space-md); }
  .hero h1 { max-width: 12ch; }
  .actions { gap: var(--space-sm); }
  .actions .btn { flex: 1 1 100%; }
  .till { padding: var(--space-lg) var(--space-md); }
  .verdict { margin-inline: calc(-1 * var(--space-md)); padding: var(--space-md); }
  .charge { flex-wrap: wrap; }
  .charge > span:first-child { flex: 1 1 9ch; }
  .shot-tall { aspect-ratio: 5 / 7; max-width: none; }
  .shot-receipt { max-width: 300px; }
  .split { gap: var(--space-xl); }
  .stick span { max-width: 14ch; line-height: 1.3; }
  .stick .btn { flex: 0 0 auto; }
  .last { padding: var(--space-2xl) var(--space-md); }
}

/* legal pages share the sheet */
.legal { margin-block: var(--space-2xl) var(--section-gap-s); }
.legal h1 { font-size: var(--text-display-s); max-width: 22ch; }
.legal h2 { font-size: var(--text-title); margin-block: var(--space-xl) var(--space-xs); }
.legal p, .legal li { color: var(--color-ink-2); max-width: 68ch; margin-block-end: var(--space-sm); }
