/* ApronTally site: the page's own stylesheet on top of the web-taste kit (system.css and friends).
   Holds the dealt tokens (kept from the M0 page's deal: chalk-tomato, Familjen Grotesk, round), the
   self-hosted fonts (no request to Google before consent), and only what the kit leaves to page CSS:
   the drawn app screens, the store badges, the consent bar and the article pages. */

@font-face { font-family: "Familjen Grotesk"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("fonts/familjen-grotesk-latin.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/ibm-plex-mono-400-latin.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/ibm-plex-mono-500-latin.woff2") format("woff2"); }

:root {
  --p-bg: #f8f5ef; --p-surface: #ede7dc; --p-ink: #1f1b18; --p-muted: #645c54;
  --p-accent: #b8381f; --p-accent-ink: #ffffff; --p-action: #b8381f; --p-action-ink: #ffffff;
  --p-inv-bg: #1f1b18; --p-inv-surface: #2c2724; --p-inv-ink: #f8f5ef; --p-inv-muted: #9e9a95;
  --p-inv-accent: #f8f5ef; --p-inv-accent-ink: #1f1b18; --p-inv-action: #f8f5ef; --p-inv-action-ink: #1f1b18;
  --font-display: "Familjen Grotesk", system-ui, sans-serif;
  --font-text: "Familjen Grotesk", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --display-weight: 400;
  --display-tracking: -0.03em;
  --display-tracking-xl: -0.04em;
  --ok: #1e6b3a;
}

/* ------------------------------------------------------------ drawn app screens (phones) */
.phone { width: 264px; max-width: 100%; flex: none; background: #fffdf9; border-radius: 28px; padding: 16px 16px 20px;
  box-shadow: 0 0 0 1px rgb(31 27 24 / .12), 0 30px 60px -30px rgb(31 27 24 / .35);
  color: var(--ink); font: 400 14px/1.4 var(--font-text); text-align: left; display: grid; gap: 12px; align-content: start; }
.phone__status { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); padding: 0 4px; }
.phone__title { margin: 0; font: 500 17px/1.2 var(--font-text); padding: 0 4px; }
.phone__label { margin: 0; color: var(--muted); font-size: 13px; }
.phone__big { margin: 0; font: var(--display-weight) 34px/1.05 var(--font-display); letter-spacing: var(--display-tracking); font-variant-numeric: tabular-nums; }
.tot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tot p { margin: 0; padding: 4px 0 8px; border-bottom: 1px solid rgb(31 27 24 / .1); display: grid; gap: 2px; }
.tot span { font-size: 13px; color: var(--muted); }
.tot b { font: 500 16px/1.2 var(--font-text); font-variant-numeric: tabular-nums; }
.prow { margin: 0; display: flex; justify-content: space-between; gap: 12px; padding: 8px 4px; border-bottom: 1px solid rgb(31 27 24 / .08); font-size: 14px; }
.prow b { font-weight: 500; font-variant-numeric: tabular-nums; }
.pbtn { margin: 0; display: flex; justify-content: center; align-items: center; height: 40px; border-radius: 99px; background: var(--p-accent); color: var(--p-accent-ink); font-weight: 500; }
.pfield { margin: 0; display: grid; gap: 2px; padding: 8px 12px; border-radius: 12px; box-shadow: inset 0 0 0 1px rgb(31 27 24 / .16); }
.pfield span { font-size: 13px; color: var(--muted); }
.pfield b { font: 500 17px/1.2 var(--font-text); font-variant-numeric: tabular-nums; }
.pfields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pnote { margin: 0; color: var(--muted); font-size: 13px; }
.cap { height: 8px; border-radius: 99px; background: rgb(31 27 24 / .1); overflow: hidden; }
.cap i { display: block; height: 100%; background: var(--p-accent); border-radius: 99px; }
.ok { color: var(--ok); font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.ok::before { content: ""; width: 16px; height: 16px; flex: none; border-radius: 50%; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.shift { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px; border-radius: 12px; background: var(--p-surface); }
.shift b { font-weight: 500; } .shift span { grid-row: 2; color: var(--muted); font-size: 13px; }
.shift em { grid-row: 1 / span 2; grid-column: 2; align-self: center; font: 500 17px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.bars { display: grid; grid-template-columns: repeat(12, 1fr); align-items: end; gap: 4px; height: 96px; }
.bars i { display: block; height: calc(var(--v) * 100%); border-radius: 4px 4px 2px 2px; background: rgb(31 27 24 / .18); }
.bars i.is-now { background: var(--p-accent); }
.chips { display: flex; gap: 8px; }
.chip { font: 500 13px/1 var(--font-mono); padding: 8px 12px; border-radius: 8px; background: var(--p-surface); }
.chip--on { background: #f3d9d2; color: #8a2a17; }
.job { display: grid; grid-template-columns: 3.2em 1fr auto; gap: 8px; align-items: center; padding: 8px 4px; border-bottom: 1px solid rgb(31 27 24 / .08); font-size: 14px; }
.job code { font: 500 13px/1 var(--font-mono); color: var(--muted); }
.job.is-on { background: var(--p-surface); border-radius: 10px; padding-inline: 8px; border-bottom-color: transparent; }
.psearch { margin: 0; padding: 8px 12px; border-radius: 12px; background: var(--p-surface); color: var(--ink); font-size: 14px; }

/* the hero: one app window, its three screens side by side (one on a phone) */
.app { background: #fffdf9; border-radius: 20px; box-shadow: 0 0 0 1px rgb(31 27 24 / .12), 0 30px 60px -30px rgb(31 27 24 / .35); overflow: hidden; color: var(--ink); font: 400 14px/1.4 var(--font-text); text-align: left; }
.app__bar { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px; border-bottom: 1px solid rgb(31 27 24 / .1); }
.app__bar .mark { width: 16px; height: 16px; }
.app__bar b { font-weight: 500; }
.app__bar span:last-child { margin-left: auto; color: var(--muted); font-size: 13px; }
.app__panes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
.app__pane { padding: 16px 20px; display: grid; gap: 12px; align-content: start; }
.app__pane + .app__pane { border-left: 1px solid rgb(31 27 24 / .1); }
@media (max-width: 1023px) { .app__panes { grid-template-columns: repeat(2, minmax(0, 1fr)); } .app__pane:nth-child(2) { display: none; } .app__pane:nth-child(3) { border-left: 1px solid rgb(31 27 24 / .1); } }
@media (max-width: 639px) { .app__panes { grid-template-columns: 1fr; } .app__pane:nth-child(1) { display: none; } .app__pane:nth-child(3) { border-left: 0; } }

/* how it works (pinned-chapters): each step's visual is one phone on the lit ground */
.mo-pc__visual.shot { display: grid; place-items: start center; padding-top: var(--s-6); background: var(--ground-bg, #e9dfcf); border-radius: var(--r-lg); overflow: hidden; margin: 0; }
/* at rest (tablets, phones, reduced motion) each step's screen shows whole: the frame grows with the screen, so no
   line (the estimate notices above all) is ever cut or faded */
[data-moment="pinned-chapters"]:not(.is-live) .mo-pc__visual.shot { aspect-ratio: auto; max-height: none; height: auto; width: 100%; padding: var(--s-5) var(--s-4); overflow: visible; }

/* the jobs split: the picker on the lit ground, cut by the frame's foot */
.frame--jobs, .frame--export, .frame--faq { background: var(--ground-bg, #e9dfcf); }

/* the deduction: facts in two columns of rows */
.is-isnot { margin-top: var(--s-7); }
.is-isnot h3 { margin: 0 0 var(--s-3); font: 500 var(--t-card)/1.3 var(--font-text); }
.is-isnot ul { margin: 0; padding: 0; list-style: none; }
.is-isnot li { padding: var(--s-3) 0; border-bottom: 1px solid var(--line); line-height: 1.5; }
@media (max-width: 767px) { .is-isnot { row-gap: var(--s-6); } }
.src { margin: var(--s-6) 0 0; display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6); }

/* store badges: official artwork, untouched; equal visible height; App Store first (Store-Badges runbook) */
.badges { display: flex; flex-wrap: wrap; gap: var(--s-5); align-items: flex-start; }
.store-badge { display: inline-block; line-height: 0; transition: transform .15s ease; }
a.store-badge:hover { transform: translateY(-2px); }
.store-badge img { display: block; height: 52px; width: auto; }
/* Google's PNG (646x250) has transparent padding; at 77px tall its visible badge is 52px, like Apple's */
.store-badge--play img { height: 77px; margin: -13px; }
.ground-inverse .badges__note { margin: var(--s-3) 0 0; }

/* pricing cards: one height, price first */
.card--plan .price { margin: 0; }
.card--plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s-2); }
.card--plan li { padding-left: 24px; position: relative; line-height: 1.5; }
.card--plan li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 10px; height: 6px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.card--plan .plan__trial { margin: 0; }
.pricing__foot { margin-top: var(--s-7); row-gap: var(--s-5); }

/* the waitlist form */
.form select { width: 100%; height: 48px; padding: 0 14px; font: 400 16px/1 var(--font-text); color: var(--ink); background: var(--bg, #fff); border: 1px solid var(--line-strong, rgb(31 27 24 / .3)); border-radius: var(--r-sm); }
.form__pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
@media (max-width: 639px) { .form__pair { grid-template-columns: 1fr; } }
.field--trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form > .field, .form > .form__pair, .form > .btn-row, .form > p { grid-column: 1 / -1; }

/* footer extras: the store badges in the close, the trademark lines in the legal row */
.footer__badges { margin-top: var(--s-5); }
.footer__tm { margin: var(--s-3) 0 0; font-size: 13px; line-height: 1.5; color: var(--p-inv-muted); }
.consent-open { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; min-height: 44px; }

/* the analytics choice: Decline and Accept share one style and one size (equal weight) */
.consent { position: fixed; z-index: 20; left: 16px; right: 16px; bottom: 16px; max-width: 600px; margin-inline: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 16px 20px; background: var(--p-bg); color: var(--p-ink); border-radius: 16px; box-shadow: 0 0 0 1px rgb(31 27 24 / .14), 0 20px 40px -20px rgb(0 0 0 / .45); }
.consent[hidden] { display: none; }
.consent p { margin: 0; flex: 1 1 260px; font-size: 15px; line-height: 1.45; }

.consent__btns { display: flex; gap: 8px; }
.consent .btn--secondary { min-width: 104px; justify-content: center; }

/* article pages (guides, privacy, terms): one readable column under the fixed header */
.doc { padding: calc(var(--nav) + var(--s-8)) 0 var(--s-9); }
.doc article { max-width: 72ch; }
.doc h1 { font: var(--display-weight) var(--t-h2)/1.1 var(--font-display); letter-spacing: var(--display-tracking); margin: 0 0 var(--s-5); }
.doc h2 { font: 500 var(--t-lead)/1.3 var(--font-text); margin: var(--s-8) 0 var(--s-3); }
.doc h3 { font: 500 17px/1.35 var(--font-text); margin: var(--s-6) 0 var(--s-2); }
.doc p, .doc li { line-height: 1.65; }
.doc li + li { margin-top: var(--s-2); }
.doc .meta { color: var(--muted); font-size: var(--t-small); }
.doc .note { padding: var(--s-4) var(--s-5); border-radius: var(--r-md); background: var(--p-surface); }
.doc .note p { margin: 0; }
.doc a { overflow-wrap: anywhere; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: var(--s-4) 0; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: var(--s-3) var(--s-3) var(--s-3) 0; border-bottom: 1px solid var(--line); line-height: 1.45; }
.doc th { font-weight: 500; color: var(--muted); font-size: 13px; }
.doc td code { font: 500 13px/1.45 var(--font-mono); }
.doc .table-wrap { max-width: 100%; }
@media (max-width: 639px) {
  .doc table, .doc thead, .doc tbody, .doc tr, .doc th, .doc td { display: block; }
  .doc thead { position: absolute; left: -9999px; }
  .doc tr { padding: var(--s-3) 0; border-bottom: 1px solid var(--line); }
  .doc td { border: 0; padding: 2px 0; }
  .doc td[data-th]::before { content: attr(data-th) ": "; color: var(--muted); font-size: 13px; }
}
.doc-footer { padding: var(--s-8) 0 var(--s-7); }
.doc-footer .footer__legal { border-top: 0; }
.at-rise > .phone { width: 100%; }

/* contrast: the lead and plan lines in ink (system.md: text people read at 7:1) */
.hero--centred .hero__lead { color: var(--ink); }
.card--plan .plan__trial { color: var(--ink); }
.footer__legal .consent-open { color: var(--ink); }

/* on a phone the step frames hold a whole screen: taller than the 4:5 split frame */
@media (max-width: 639px) { .frame--jobs { --ratio: 150%; } .frame--export { --ratio: 170%; } }
/* the FAQ screen sits whole in its frame and the frame grows with it: nothing in it is cut or faded */
.frame--faq { --ratio: 0px; }
.frame--faq > .phone { width: min(300px, 100%); }
.week { display: block; width: 100%; height: 56px; color: rgb(31 27 24 / .18); }
.week .is-now { fill: var(--p-accent); }
/* article pages: the nav's one button on the right line; paragraph rhythm; footnote marks */
.nav__logo + .nav__actions { margin-left: auto; }
.doc article > :is(p, ul, ol, .note, .table-wrap) { margin: var(--s-4) 0 0; }
.doc article > h1 + p { margin-top: 0; }
.doc ul, .doc ol { padding-left: 1.25em; }
.doc sup.fn { font-size: 12px; line-height: 0; margin-left: 2px; }
.doc sup.fn a { color: var(--action); text-decoration: none; }
.doc tr.cat th { padding-top: var(--s-5); color: var(--ink); font-size: 14px; }
.frame > .stage > .at-rise:has(> .phone) { width: min(var(--w, 320px), calc(100% - 48px)); }
/* hidden until a store listing is live (site-config.js): the class display rules must not override [hidden] */
.store-badge[hidden], .badges[hidden], [data-store-tm][hidden] { display: none; }
/* narrow phones: a step's screen narrows with its column instead of widening the page */
[data-moment="pinned-chapters"] .mo-pc__step, [data-moment="pinned-chapters"] .mo-pc__visual.shot { min-width: 0; }
.mo-pc__visual.shot > .phone { width: min(264px, 100%); }
/* at rest each step's screen shows its first four lines whole (the estimate step: the figure and both notices), so the
   section stays near two phone screens without cutting any line */
[data-moment="pinned-chapters"]:not(.is-live) .mo-pc__visual.shot > .phone > :is(:first-child, :nth-child(n+5)) { display: none; }
@media (max-width: 639px) { main > [data-moment="pinned-chapters"][data-moment]:not(.is-live) { min-height: calc(2 * 100lvh); } }
