/* Stock Count Assistant — "count sheet" landing: ruled paper, plum ink, chartreuse highlighter. */

@font-face { font-family: "Sora"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/sora-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Sora"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/sora-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Sora"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/sora-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Sora"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/sora-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Work Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/work-sans-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Work Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/work-sans-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Work Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/work-sans-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Work Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/work-sans-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Work Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/work-sans-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Work Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/work-sans-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Fira Code"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/fira-code-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fira Code"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/fira-code-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Fira Code"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/fira-code-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fira Code"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/fira-code-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --paper: #f5f4f8;
  --card: #ffffff;
  --rule: #dcd7e6;
  --margin: #b9b0cc;
  --ink: #251b3a;
  --ink-2: #3a2e52;
  --soft: #5a5270;
  --marker: #d4f542;
  --marker-dark: #4a5a00;
  --minus: #b3261e;
  --plus: #1d5fa6;
  --display: "Sora", "Segoe UI", system-ui, sans-serif;
  --text: "Work Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "Fira Code", ui-monospace, "Cascadia Mono", monospace;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--text); font-size: 1.0625rem; line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration-color: var(--marker-dark); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; box-shadow: 0 0 0 6px var(--marker); }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 0.5em; overflow-wrap: anywhere; hyphens: auto; }
h1 { font-size: clamp(2.1rem, 6vw, 4rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.75rem); }
p { margin: 0 0 1em; overflow-wrap: break-word; }
code { font-family: var(--mono); font-size: 0.9em; background: #e9e6f0; padding: 0.05em 0.35em; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
[id] { scroll-margin-top: 84px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--marker); color: var(--ink); padding: 8px 14px; z-index: 10; font-weight: 600; }
.skip:focus { left: 8px; }

/* Ruled count-sheet paper with a double margin line. */
.sheet {
  background-color: var(--paper);
  background-image:
    linear-gradient(90deg, transparent 0, transparent calc(var(--m, 56px) - 4px), var(--margin) calc(var(--m, 56px) - 4px), var(--margin) calc(var(--m, 56px) - 2px), transparent calc(var(--m, 56px) - 2px), transparent calc(var(--m, 56px) + 2px), rgba(185, 176, 204, 0.6) calc(var(--m, 56px) + 2px), rgba(185, 176, 204, 0.6) calc(var(--m, 56px) + 3px), transparent calc(var(--m, 56px) + 3px)),
    repeating-linear-gradient(180deg, transparent 0, transparent 39px, var(--rule) 39px, var(--rule) 40px);
}

.kicker { font-family: var(--mono); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--soft); margin: 0 0 0.9rem; display: flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 26px; height: 9px; background: var(--marker); transform: skewX(-14deg); border-radius: 2px; flex: none; }
.kicker-light { color: #cfc8dd; }

mark { background: linear-gradient(transparent 48%, var(--marker) 48%, var(--marker) 92%, transparent 92%); color: inherit; padding: 0 0.08em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* Header */
.top { background: var(--paper); border-bottom: 1.5px solid var(--ink); position: sticky; top: 0; z-index: 5; }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.1rem; }
.brand img { border-radius: 10px; }
.nav { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; flex-wrap: wrap; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; text-decoration: none; font-weight: 500; border-radius: 8px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--marker); }

/* Hero */
.hero { --m: 0px; padding: 56px 0 72px; border-bottom: 1.5px solid var(--ink); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: center; }
.hero .lead { font-size: 1.2rem; color: var(--ink-2); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; margin: 28px 0 22px; }
.text-link { font-weight: 600; }
.facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--soft); font-size: 0.95rem; }
.facts li { display: flex; align-items: center; gap: 8px; }
.tick { width: 18px; height: 6px; background: var(--ink); transform: skewX(-14deg); border-radius: 2px; }
.hero-shots { position: relative; min-height: 560px; }
.shot { margin: 0; background: var(--ink); padding: 9px; border-radius: 26px; box-shadow: 14px 14px 0 rgba(37, 27, 58, 0.12); max-width: 320px; }
.shot img { border-radius: 18px; width: 100%; background: var(--paper); }
.hero-shots .shot { position: absolute; width: 62%; }
.shot-back { right: 0; top: 0; transform: rotate(2.5deg); }
.shot-front { left: 0; top: 60px; }

/* Google Play label */
.play { display: inline-flex; align-items: center; gap: 12px; min-height: 58px; padding: 8px 20px 8px 14px; border-radius: 14px; background: var(--ink); color: #fff; text-decoration: none; }
.play:hover { background: var(--ink-2); }
.play-soon { background: transparent; color: var(--ink); border: 2px dashed var(--ink); cursor: default; }
.play-text { display: flex; flex-direction: column; line-height: 1.15; }
.play-small { font-size: 0.78rem; letter-spacing: 0.04em; }
.play-big { font-family: var(--display); font-weight: 700; font-size: 1.15rem; }
.play-mark { position: relative; display: inline-flex; gap: 4px; padding: 4px 2px; }
.play-mark i { width: 5px; height: 26px; border-radius: 3px; background: currentColor; display: block; }
.play-mark b { position: absolute; left: -3px; right: -3px; top: 14px; height: 6px; border-radius: 3px; background: var(--marker); transform: rotate(-30deg); }

/* Tally marks: 1–5 strokes, the fifth as a highlighter slash; 6+ continue in a second group. */
.tally { position: relative; display: inline-block; height: 26px; flex: none; background: linear-gradient(90deg, var(--ink) 0 4px, transparent 4px 9px) left / 9px 100% repeat-x; border-radius: 2px; }
.tally.t1 { width: 4px; } .tally.t2 { width: 13px; } .tally.t3 { width: 22px; } .tally.t4, .tally.t5 { width: 31px; }
.tally.t5::after { content: ""; position: absolute; left: -5px; right: -5px; top: 10px; height: 6px; border-radius: 3px; background: var(--marker); box-shadow: 0 0 0 1.5px var(--ink); transform: rotate(-32deg); }

.tally-strip { background: var(--ink); color: #fff; }
.tally-strip ol { list-style: none; margin: 0 auto; display: flex; gap: 6px 10px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.tally-strip a { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 14px 0 10px; color: #fff; text-decoration: none; border-radius: 10px; font-weight: 500; }
.tally-strip a:hover { background: var(--ink-2); }
.tally-strip .tally { background: linear-gradient(90deg, #efeef3 0 4px, transparent 4px 9px) left / 9px 100% repeat-x; height: 22px; }
.tally-strip .tally.t5::after { box-shadow: none; top: 8px; }

/* Steps */
.steps { padding: 88px 0 40px; }
.section-head { max-width: 760px; margin-bottom: 40px; }
.step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 320px); gap: 56px; align-items: center; padding: 48px 0; border-top: 1.5px solid var(--rule); }
.step-flip { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); }
.step-flip .shot { order: -1; }
.step .shot { justify-self: center; width: 100%; }
.step-no { display: flex; align-items: center; gap: 14px; font-family: var(--mono); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--soft); }
.step p { color: var(--ink-2); max-width: 40em; }
.points { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.points li { position: relative; padding-left: 30px; }
.points li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 18px; height: 7px; background: var(--marker); box-shadow: 0 0 0 1.5px var(--ink); transform: skewX(-14deg); border-radius: 2px; }

/* Outputs ledger */
.outputs { padding: 72px 0 80px; }
.ledger { border: 1.5px solid var(--ink); border-radius: 14px; overflow: hidden; background: var(--card); }
.ledger-row { display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr) minmax(0, 7rem); gap: 16px; padding: 14px 20px; border-top: 1px solid var(--rule); align-items: baseline; }
.ledger-head { border-top: 0; background: #eceaf2; font-family: var(--mono); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--soft); }
.ledger-name { font-family: var(--display); font-weight: 600; overflow-wrap: anywhere; }
.ledger-format { font-family: var(--mono); font-weight: 700; color: var(--marker-dark); }
.note { color: var(--soft); font-size: 0.95rem; margin-top: 18px; max-width: 48em; }

/* Plum band */
.band { background: var(--ink); color: #fff; padding: 72px 0; }
.band h2 { color: #fff; }
.band p { color: #d9d3e6; }
.band-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.audience { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.audience li { position: relative; padding: 14px 16px 14px 52px; border: 1.5px solid #4b3e66; border-radius: 12px; }
.audience li::before { content: ""; position: absolute; left: 16px; top: 50%; width: 22px; height: 8px; margin-top: -4px; background: var(--marker); transform: skewX(-14deg); border-radius: 2px; }

/* Privacy teaser */
.privacy-teaser { --m: 0px; padding: 72px 0; border-bottom: 1.5px solid var(--ink); }
.teaser-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 40px; align-items: start; }
.teaser-grid p { font-size: 1.1rem; color: var(--ink-2); }

/* FAQ */
.faq { padding: 72px 0; }
.faq-wrap { max-width: 860px; }
details { border-top: 1.5px solid var(--rule); }
details:last-of-type { border-bottom: 1.5px solid var(--rule); }
summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative; font-family: var(--display); font-weight: 600; font-size: 1.1rem; min-height: 44px; overflow-wrap: anywhere; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 6px; top: 14px; font-family: var(--mono); font-size: 1.4rem; }
details[open] summary::after { content: "–"; }
details p { color: var(--ink-2); padding-bottom: 8px; }

/* Final CTA */
.final { background: var(--marker); padding: 56px 0; border-top: 1.5px solid var(--ink); }
.final-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.final h2 { margin: 0; max-width: 18em; }
.final .play-soon { border-color: var(--ink); }

/* Footer */
.foot { background: var(--ink); color: #fff; padding: 36px 0; }
.foot-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot-brand { display: flex; align-items: center; gap: 14px; }
.foot-brand img { border-radius: 9px; }
.foot-name { font-family: var(--display); font-weight: 700; margin: 0; }
.foot-small { margin: 0; color: #cfc8dd; font-size: 0.9rem; }
.foot-links { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; padding: 0; }
.foot-links a { color: #fff; display: inline-flex; min-height: 44px; align-items: center; overflow-wrap: anywhere; }

/* Inner pages (manual, privacy, 404) */
.page { --m: 0px; padding: 56px 0 80px; }
.page h1 { font-size: clamp(2rem, 5vw, 3rem); }
.rule { position: relative; height: 10px; margin: 6px 0 28px; }
.rule::before { content: ""; position: absolute; left: 0; top: 1px; width: 44px; height: 8px; background: var(--marker); transform: skewX(-14deg); border-radius: 2px; }
.rule::after { content: ""; position: absolute; left: 52px; right: 0; top: 4px; height: 1.5px; background: var(--ink); }
.page .lead { font-size: 1.15rem; color: var(--ink-2); }
.legal h2, .guide h2 { font-size: 1.35rem; margin-top: 2em; }
.legal p, .guide p, .guide li { color: var(--ink-2); }
.small { font-size: 0.9rem; color: var(--soft); }
.toc { background: var(--card); border: 1.5px solid var(--ink); border-radius: 14px; padding: 18px 22px; margin: 28px 0; }
.toc ol { margin: 0; padding-left: 1.4em; display: grid; gap: 4px; }
.toc a { display: inline-block; min-height: 32px; padding: 4px 0; }
.sample { font-family: var(--mono); font-size: 0.85rem; background: var(--card); border: 1px solid var(--rule); border-radius: 10px; padding: 14px 16px; overflow-x: auto; white-space: pre; max-width: 100%; }
.guide ul { padding-left: 1.2em; }
.guide li { margin-bottom: 6px; }
.contact { background: var(--card); border: 1.5px solid var(--ink); border-radius: 14px; padding: 4px 22px 10px; margin-top: 2.4em; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .band-grid, .teaser-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-shots { min-height: 0; display: flex; gap: 16px; justify-content: center; margin-top: 8px; }
  .hero-shots .shot { position: static; width: auto; flex: 1 1 0; max-width: 260px; transform: none; }
  .step, .step-flip { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .step-flip .shot { order: 0; }
  .step .shot { max-width: 300px; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .wrap { padding: 0 16px; }
  .hero { padding: 36px 0 48px; }
  .hero .lead { font-size: 1.08rem; }
  .hero-shots .shot-back { display: none; }
  .hero-shots .shot { max-width: 280px; }
  .top { position: static; }
  [id] { scroll-margin-top: 12px; }
  .top-inner { min-height: 0; }
  .brand { font-size: 1rem; }
  .nav a { padding: 0 9px; }
  .ledger-row { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 14px 16px; }
  .ledger-row > span:nth-child(2) { grid-column: 1 / -1; grid-row: 2; color: var(--ink-2); font-size: 0.95rem; }
  .ledger-head > span:nth-child(2) { display: none; }
  .steps { padding-top: 56px; }
  .step { padding: 36px 0; }
  .shot { padding: 7px; border-radius: 22px; box-shadow: 8px 8px 0 rgba(37, 27, 58, 0.12); }
  .shot img { border-radius: 16px; }
  .final-inner { flex-direction: column; align-items: flex-start; }
  .toc { padding: 14px 16px; }
}
