/* Shopify Report Cleaner: ledger paper, ink, spreadsheet green.
   One protagonist (the export table), one narrative (it cleans itself as you scroll).
   Tokens: paper, ink, books, fault. Nothing else. */
:root {
  --paper: #F7F4EC;
  --ink: #20241F;
  --books: #2E7D4F;
  --fault: #C2452D;
  --grid: color-mix(in srgb, var(--ink) 12%, transparent);
  --muted: color-mix(in srgb, var(--ink) 72%, var(--paper));
  --books-deep: color-mix(in srgb, var(--books) 82%, var(--ink));
  --sans: "Helvetica Neue", "Neue Haas Grotesk Text Pro", Helvetica, Arial, "Liberation Sans", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --h1: clamp(42px, 8vw, 96px);
  --pad: clamp(20px, 4vw, 40px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.55;
  overflow-x: hidden;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
p { margin: 0 0 14px; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-weight: 700; }
h2 { font-size: clamp(28px, 3.4vw, 46px); line-height: 1.05; letter-spacing: -0.035em; }
h3 { font-size: 18px; line-height: 1.3; letter-spacing: -0.01em; }
a { color: var(--books); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.dark :focus-visible { outline-color: var(--paper); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 var(--pad); }
.wrap-wide { max-width: 1280px; }
section { position: relative; }

.bar { padding: 18px var(--pad); font: 600 13px/1 var(--mono); letter-spacing: 0.02em; }
.bar-name::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 10px; background: var(--books); vertical-align: -1px; }

/* ---------- buttons: one primary (Preorder), template is always secondary ---------- */
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 0 0 14px; }
.btn {
  display: inline-flex; align-items: center; min-height: 54px; padding: 0 26px;
  border-radius: 3px; font: 600 17px/1.2 var(--sans); text-decoration: none; cursor: pointer;
}
.btn-primary { background: var(--books); color: var(--paper); border: 1.5px solid var(--books); }
.btn-primary:hover { background: var(--books-deep); border-color: var(--books-deep); }
.btn-secondary { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-secondary:hover { background: var(--grid); }
.smallprint { font-size: 14px; line-height: 1.5; color: var(--muted); max-width: 56ch; }
.file-links { font-size: 14px; color: var(--muted); }

/* ---------- hero ---------- */
.hero { padding: 8px 0 clamp(56px, 9vw, 110px); }
.hero h1 {
  font-size: var(--h1); line-height: 0.97; letter-spacing: -0.05em; font-weight: 700;
  max-width: 13em; margin-bottom: 18px;
}
.lede { font-size: clamp(18px, 1.7vw, 22px); line-height: 1.45; max-width: 46em; margin-bottom: 26px; }
.hero .wrap-wide { margin-bottom: 26px; }

/* ---------- stage: the protagonist ---------- */
.stage { --tc: var(--ink); --tl: var(--grid); margin: 0; color: var(--tc); font-family: var(--mono); font-variant-numeric: tabular-nums; }
.dark .stage { --tc: var(--paper); --tl: color-mix(in srgb, var(--paper) 40%, transparent); }
.st-bar { display: flex; align-items: center; gap: 12px; min-height: 30px; font: 500 11px/1 var(--mono); letter-spacing: 0.07em; text-transform: uppercase; }
.tag { display: inline-block; border: 1px solid currentColor; border-radius: 2px; padding: 4px 6px; white-space: nowrap; }
.filetab { padding: 4px 8px; background: var(--ink); color: var(--paper); border-radius: 2px; letter-spacing: 0.04em; text-transform: none; }
.st-win { margin-left: auto; color: var(--muted); white-space: nowrap; }
.st-count { margin-left: auto; display: flex; gap: 0; white-space: nowrap; }
.st-count b { font-weight: 700; color: var(--books); min-width: 3ch; display: inline-block; margin: 0 16px 0 6px; }
.st-count b:last-child { margin-right: 0; }
.st-count span { color: var(--muted); }
.st-win + .st-count { margin-left: 12px; }
.chip {
  opacity: 0; transition: opacity 0.3s; background: var(--books); color: var(--paper);
  padding: 4px 8px; border-radius: 2px; text-transform: none; letter-spacing: 0.02em;
}
.chip::before { content: ""; display: inline-block; width: 7px; height: 6px; margin-right: 6px; border: 1.5px solid var(--paper); border-radius: 1px; vertical-align: 0; }

.tbl-frame { position: relative; overflow: hidden; border: 1px solid var(--tl); background: var(--paper); }
.dark .tbl-frame { background: transparent; }
.is-window .tbl-frame { -webkit-mask-image: linear-gradient(to right, transparent 0, var(--ink) 18px, var(--ink) calc(100% - 18px), transparent 100%); mask-image: linear-gradient(to right, transparent 0, var(--ink) 18px, var(--ink) calc(100% - 18px), transparent 100%); }
.is-static.is-window .tbl-frame { overflow-x: auto; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.strip { position: relative; display: flex; width: max-content; padding: 26px 0 6px; will-change: transform; }
.gutter { flex: none; width: 28px; }
.gutter .c { color: var(--muted); text-align: center; padding: 0; background: var(--grid); border-top: 1px solid var(--tl); }
.glabel { position: absolute; top: 4px; font: 600 11px/1 var(--mono); letter-spacing: 0.06em; white-space: nowrap; padding-left: 6px; color: var(--muted); }
.col { flex: none; position: relative; overflow: hidden; border-left: 1px solid var(--tl); }
.col::after { content: ""; position: absolute; inset: 0; background: var(--tc); opacity: calc(var(--g, 0) * 0.13); pointer-events: none; }
.col .hd, .col .c { opacity: calc(1 - var(--g, 0) * 0.62); }
.hd {
  position: relative; height: 92px; padding: 0 5px 7px; display: flex; align-items: flex-end;
  font: 600 10.5px/1 var(--mono); white-space: nowrap; border-bottom: 1.5px solid var(--tc);
}
.c { position: relative; height: 30px; line-height: 30px; padding: 0 5px; white-space: nowrap; font: 400 12px/30px var(--mono); border-top: 1px solid var(--tl); }
.gutter .hd { border-bottom-color: transparent; }
.junk .c { padding: 0 3px; }
@media (min-width: 561px) { .junk .c { font-size: 11px; } }
.st-tool .st-bar { margin-bottom: 12px; }
.junk .hd .o { writing-mode: vertical-rl; transform: rotate(180deg); }
.num .c { text-align: right; }
.flip .o, .flip .n { position: absolute; left: 5px; bottom: 7px; transform-origin: 50% 60%; white-space: nowrap; }
.num.flip .o, .num.flip .n { left: auto; right: 5px; }
.c.flip .o, .c.flip .n { bottom: auto; top: 0; }
.flip .o { transform: perspective(280px) rotateX(calc(var(--ro, 0) * 90deg)); opacity: calc(1 - var(--ro, 0)); }
.flip .n { color: var(--books); transform: perspective(280px) rotateX(calc((1 - var(--rn, 0)) * -90deg)); opacity: var(--rn, 0); }
/* fault: only what is wrong. wrong date format, duplicated column, the stitch */
.k-date .c .o { color: var(--fault); text-decoration: underline wavy var(--fault); text-decoration-thickness: 1px; text-underline-offset: 5px; }
.dup { background: color-mix(in srgb, var(--fault) 9%, transparent); }
.dup .hd .o { color: var(--fault); }
.gap { flex: none; position: relative; }
.seam {
  position: absolute; top: -26px; bottom: -1px; left: -2px; width: 3px; opacity: var(--seam, 0);
  background: repeating-linear-gradient(to bottom, var(--fault) 0 7px, transparent 7px 12px);
}
.is-static .seam { transition: opacity 0.5s; }

.st-hero .tbl-frame { border-color: color-mix(in srgb, var(--ink) 30%, transparent); }

/* tool-section highlights: each bullet lights the region of the table it talks about */
.st-tool .tbl-frame { transition: outline-color 0.3s, outline-offset 0.3s; outline: 2px solid transparent; outline-offset: 4px; }
.st-tool .col, .st-tool .hd { transition: background-color 0.3s, box-shadow 0.3s; }
.st-tool[data-hl="merge"] .tbl-frame { outline-color: var(--books); }
.st-tool[data-hl="template"] .chip { opacity: 1; }
.st-tool[data-hl="template"] .keep .hd { box-shadow: inset 0 0 0 2px var(--books); }
.st-tool[data-hl="format"] .k-date, .st-tool[data-hl="format"] .k-amt, .st-tool[data-hl="format"] .k-fee, .st-tool[data-hl="format"] .k-net { background: color-mix(in srgb, var(--books) 14%, transparent); }
.st-tool[data-hl="local"] .tbl-frame { outline-color: var(--books); outline-offset: 10px; }

/* blueprint: the clean state as a plan, drained of content, dashed */
.st-bp .tag { display: none; }
.st-bp .tbl-frame { background: transparent; border: 1.5px dashed var(--tl); }
.st-bp .col { border-left: 1.5px dashed var(--tl); }
.st-bp .c { border-top: 1.5px dashed var(--tl); }
.st-bp .hd { border-bottom: 1.5px dashed var(--tc); }
.st-bp .gutter .c { background: transparent; }
.st-bp .flip .o { display: none; }
.st-bp .hd:not(.flip) .o { opacity: calc(1 - var(--bp, 0)); }
.st-bp .flip .n, .st-bp .c .v { opacity: calc(1 - var(--bp, 0)); }
.st-bp .gutter .c { color: color-mix(in srgb, var(--tc) calc((1 - var(--bp, 0)) * 60%), transparent); }
.st-bp .st-bar { visibility: hidden; }

/* ---------- chore: the one long pin ---------- */
.chore h2 { margin-bottom: 14px; }
.chore-copy { font-size: clamp(19px, 2.3vw, 30px); line-height: 1.28; letter-spacing: -0.02em; font-weight: 500; max-width: 40em; margin: 0 0 18px; }
.js:not(.rm) .chore-copy span { opacity: 0.24; transition: opacity 0.25s; }
.js:not(.rm) .chore-copy span.is-on, .js:not(.rm) .chore-copy span.is-done { opacity: 1; }
.chore-copy span.is-on { background: linear-gradient(transparent 90%, var(--books) 90%); }
.js .chore-track { height: 600vh; height: 600svh; }
.js .chore-pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 14px 0; }
.js .chore-pin > .wrap { width: 100%; }
.chore-after { padding-top: clamp(56px, 8vw, 100px); padding-bottom: clamp(56px, 8vw, 110px); }
.chore-after p { font-size: clamp(20px, 2.2vw, 28px); line-height: 1.35; letter-spacing: -0.015em; max-width: 34em; }
.rm .chore-track { height: auto; }
.rm .chore-pin { position: static; height: auto; display: block; padding: 56px 0 0; }
.chore-steps { display: grid; gap: 28px; margin-top: 20px; }
.step-n { font: 600 12px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }

/* ---------- what the tool will do ---------- */
.tool { padding: clamp(64px, 9vw, 130px) 0; }
.tool-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 600px); column-gap: clamp(28px, 5vw, 72px); grid-template-areas: "h stage" "list stage" "end stage"; align-items: start; grid-template-rows: auto auto 1fr; }
.tool-grid h2 { grid-area: h; margin-bottom: 8vh; }
.tool-stage { grid-area: stage; align-self: stretch; }
.tool-stage > [data-stage] { position: sticky; top: max(24px, calc(50vh - 190px)); }
.tool-list { grid-area: list; }
.tool-end { grid-area: end; font: 600 14px/1.4 var(--mono); letter-spacing: 0.02em; margin: 6vh 0 20vh; }
.tool-list li { font-size: clamp(22px, 2.5vw, 34px); line-height: 1.18; letter-spacing: -0.025em; font-weight: 600; max-width: 18em; min-height: 36vh; padding-right: 8px; transition: opacity 0.3s; }
.js:not(.rm) .tool-list li { opacity: 0.3; }
.js:not(.rm) .tool-list li.is-on { opacity: 1; }
.tool-list li::before { content: ""; display: block; width: 36px; height: 4px; background: var(--books); margin-bottom: 14px; }

/* ---------- what it is not: typography, the table rests ---------- */
.not { padding: clamp(64px, 9vw, 130px) 0; border-top: 3px solid var(--ink); }
.not-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: clamp(28px, 4vw, 64px); align-items: start; }
.not h2 { margin-bottom: 36px; }
.not-list li { padding: 22px 0 26px; border-top: 2px solid var(--ink); font-size: clamp(17px, 1.6vw, 20px); line-height: 1.4; color: var(--muted); }
.not-list li:last-child { border-bottom: 2px solid var(--ink); }
.not-big { display: block; font-size: clamp(32px, 5.6vw, 72px); line-height: 0.98; letter-spacing: -0.05em; font-weight: 800; color: var(--ink); margin-bottom: 10px; }
.not-end { margin-top: 34px; max-width: 38em; font-size: 18px; }
.not-rest { padding-top: 6px; opacity: 0.92; }

/* ---------- free first ---------- */
.free { padding: clamp(64px, 9vw, 130px) 0; background: color-mix(in srgb, var(--ink) 5%, var(--paper)); border-top: 1px solid var(--grid); border-bottom: 1px solid var(--grid); }
.free h2 { margin-bottom: 14px; }
.free-lead { font-size: 20px; margin-bottom: 30px; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-bottom: 34px; }
.card a { display: block; height: 100%; padding: 20px; border: 1.5px solid var(--ink); border-radius: 3px; background: var(--paper); color: var(--ink); text-decoration: none; position: relative; }
.card a:hover { border-color: var(--books); box-shadow: 0 0 0 1.5px var(--books); }
.card a::after { content: "\2193"; position: absolute; right: 16px; top: 14px; font: 700 20px/1 var(--mono); color: var(--books); }
.card-viz { display: block; margin-bottom: 18px; padding-right: 30px; }
.mini { display: block; }
.mini .tag { font: 500 10px/1 var(--mono); letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.mini-grid { display: grid; grid-template-columns: repeat(4, auto); border: 1px solid var(--grid); font: 400 12px/1 var(--mono); font-variant-numeric: tabular-nums; }
.mini-grid > span { padding: 7px 8px; border-left: 1px solid var(--grid); border-top: 1px solid var(--grid); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-grid .mh { font-weight: 600; border-top: 0; border-bottom: 1.5px solid var(--ink); }
.mini-grid > span:nth-child(4n+1) { border-left: 0; }
.mini-grid .n { text-align: right; }
.card-text { display: block; font-size: 16px; line-height: 1.5; }

/* ---------- price ---------- */
.price { padding: clamp(72px, 10vw, 150px) 0; }
.price h2 { margin-bottom: 18px; }
.price-line { margin: 0 0 20px; font-size: clamp(18px, 1.8vw, 24px); }
.price-line strong { display: block; font-size: calc(var(--h1) * 0.95); line-height: 0.95; letter-spacing: -0.055em; font-weight: 800; margin-bottom: 10px; }
.price-note { max-width: 36em; font-size: 19px; }
.price-rest { margin-top: 40px; max-width: 640px; }

/* ---------- the honest part: full scene, the only inversion ---------- */
.dark { background: var(--ink); color: var(--paper); }
.honest { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: clamp(64px, 10vh, 120px) 0; }
.honest-inner { width: 100%; }
.honest h2 { font: 600 14px/1.2 var(--mono); letter-spacing: 0.04em; margin-bottom: 26px; color: color-mix(in srgb, var(--paper) 78%, var(--ink)); }
.honest-lead { font-size: clamp(30px, 4.6vw, 62px); line-height: 1; letter-spacing: -0.05em; font-weight: 700; max-width: 22em; margin-bottom: clamp(28px, 5vh, 56px); }
.honest-lead strong { font-weight: 800; text-decoration: underline dashed; text-decoration-thickness: 4px; text-underline-offset: 8px; }
.honest-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.titleblock { margin: 18px 0 0; display: inline-flex; flex-direction: column; gap: 6px; border: 1.5px solid var(--paper); padding: 10px 16px; font-family: var(--mono); }
.titleblock span { font-size: 11px; letter-spacing: 0.12em; color: color-mix(in srgb, var(--paper) 78%, var(--ink)); }
.titleblock strong { font-size: clamp(22px, 2.6vw, 34px); letter-spacing: 0.06em; line-height: 1; }
.contract { background: var(--paper); color: var(--ink); padding: clamp(22px, 3vw, 36px); border: 3px double var(--ink); outline: 1.5px solid var(--paper); outline-offset: 0; }
.contract p { font-size: 17px; line-height: 1.5; }
.clauses { counter-reset: cl; margin: 6px 0 18px; }
.clauses li { counter-increment: cl; position: relative; padding: 13px 0 13px 40px; border-top: 1px solid var(--grid); font-size: 17px; line-height: 1.45; }
.clauses li::before { content: counter(cl) "."; position: absolute; left: 0; top: 13px; font: 700 15px/1.6 var(--mono); color: var(--books); }
.clauses li:last-child { border-bottom: 1px solid var(--grid); }
.contract-end { margin: 0; padding-top: 6px; font-weight: 700; font-size: 18px; }

/* ---------- who / faq ---------- */
.who { padding: clamp(64px, 9vw, 130px) 0; }
.who-grid, .faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.who-list li { font-size: clamp(22px, 2.5vw, 34px); line-height: 1.18; letter-spacing: -0.025em; font-weight: 600; padding: 0 0 26px; max-width: 20em; }
.who-not { font: 600 15px/1.5 var(--mono); color: var(--muted); max-width: 44ch; }
.faq { padding: clamp(56px, 8vw, 110px) 0; border-top: 3px solid var(--ink); }
.qa { padding: 22px 0; border-bottom: 1px solid var(--grid); }
.qa:first-child { padding-top: 0; }
.qa h3 { margin-bottom: 8px; font-size: 20px; }
.qa p { margin: 0; max-width: 46em; }

/* ---------- closing scene: the final table, one clean file, then the single repeated action ---------- */
.finale { padding: clamp(72px, 10vw, 150px) 0 clamp(56px, 8vw, 100px); border-top: 3px solid var(--ink); }
.finale [data-stage] { max-width: 760px; margin: 0 auto; }
.finale-cta { max-width: 760px; margin: clamp(32px, 5vw, 56px) auto 0; }
.finale-cta .btn { margin-bottom: 22px; }
.finale-line { font: 500 14px/1.55 var(--mono); max-width: 60ch; color: var(--muted); margin: 0; }
.foot { padding: 0 0 36px; }
.foot .privacy-note { font-size: 12.5px; color: var(--muted); margin: 0; }

/* ---------- mobile: window onto the table, never a shrunken table ---------- */
@media (max-width: 900px) {
  .tool-grid { display: block; }
  .tool-grid h2 { margin-bottom: 14px; }
  .tool-stage { position: sticky; top: 0; z-index: 3; background: var(--paper); padding: 10px 0 14px; margin: 0 calc(var(--pad) * -1); padding-left: var(--pad); padding-right: var(--pad); border-bottom: 1px solid var(--grid); }
  .tool-stage > [data-stage] { position: static; }
  .tool-list li { min-height: 30vh; font-size: 24px; }
  .tool-end { margin: 4vh 0 10vh; }
  .not-grid, .who-grid, .faq-grid, .honest-grid { grid-template-columns: minmax(0, 1fr); }
  .not-rest { order: 2; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .honest { min-height: 100svh; }
}
@media (max-width: 560px) {
  body { font-size: 16.5px; }
  .hero h1 { letter-spacing: -0.045em; }
  .hd, .glabel { font-size: 11.5px; }
  .c { font-size: 12px; }
  .st-bar { flex-wrap: wrap; row-gap: 6px; }
  .st-count { margin-left: 0; width: 100%; order: 5; }
  .js .chore-pin { padding: 10px 0; }
  .chore h2 { margin-bottom: 8px; font-size: 26px; }
  .chore-copy { font-size: 17px; line-height: 1.3; margin-bottom: 12px; }
  .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
