/* Quarters Count website. Same rules as the app: ink on white paper, thin lines instead of cards,
   yellow only where something needs the person. One motion only (the sticky note answer). */
@font-face { font-family: 'IBM Plex Sans'; font-weight: 400; font-style: normal; font-display: swap; src: url('/assets/fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 500; font-style: normal; font-display: swap; src: url('/assets/fonts/ibm-plex-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 600; font-style: normal; font-display: swap; src: url('/assets/fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2'); }

:root {
  --ink: #20242b;
  --paper: #ffffff;
  --rule: #d8dbe0;
  --text-2: #5f6672;
  --text-3: #3a3f48;
  --note: #ffe97f;
  --fold: #e3c84f;
  --money-in: #1e7a4c;
  --problem: #c2362b;
  --selected: #f5f6f8;
  --disabled-bg: #e4e6ea;
  --disabled-fg: #5f6672;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 'IBM Plex Sans', system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
}
img, svg { max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 18px; }
@media (min-width: 700px) { .wrap { padding: 0 32px; } }

/* ---- top bar and header */
.topbar { border-bottom: 1px solid var(--rule); font-size: 14px; color: var(--text-2); }
.topbar .wrap { padding-top: 8px; padding-bottom: 8px; }
.topbar a { color: var(--ink); font-weight: 500; }
.head { border-bottom: 1.5px solid var(--ink); }
.head .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.brand svg { width: 28px; height: 28px; display: block; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 0; padding: 0; list-style: none; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; display: inline-block; padding: 10px 0; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 3px; }
.head .btn { margin-left: auto; min-height: 44px; padding: 0 18px; }
@media (max-width: 760px) { .head .btn { display: none; } }

/* ---- buttons and forms */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 8px; border: 1.5px solid var(--ink); background: var(--ink); color: #fff; font-weight: 600; font-size: 16px; text-decoration: none; }
.btn.alt { background: transparent; color: var(--ink); font-weight: 500; }
.btn:hover { background: #000; }
.btn.alt:hover { background: var(--selected); }
.field { margin: 0 0 16px; }
.field label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.field input[type=email], .field input[type=text], .field select { width: 100%; height: 48px; padding: 0 14px; border: 1.5px solid var(--ink); border-radius: 8px; background: #fff; font-size: 16px; }
.field input[type=text]::placeholder { color: var(--text-2); }
.check { display: flex; gap: 12px; align-items: flex-start; min-height: 44px; margin: 0 0 16px; font-size: 15px; line-height: 1.45; }
.check input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--ink); flex: none; }
.small { font-size: 14px; color: var(--text-2); }
.join { max-width: 460px; }
.join h2, .join h3 { margin: 0 0 6px; font-size: 22px; line-height: 1.2; letter-spacing: -0.01em; border: 0; padding: 0; }
.join .lead-in { margin: 0 0 16px; color: var(--text-3); font-size: 16px; }
.join .btn { width: 100%; }
.join .sender { margin: 12px 0 0; }
.join .preview-flag { margin: 0 0 12px; padding: 8px 12px; border: 1.5px solid var(--ink); border-radius: 8px; font-size: 13px; background: var(--selected); }

/* ---- type */
h1 { font-size: clamp(2.1rem, 5.4vw, 3.6rem); line-height: 1.06; font-weight: 600; letter-spacing: -0.022em; margin: 0 0 20px; max-width: 16em; text-wrap: balance; }
h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); line-height: 1.15; font-weight: 600; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
h3 { font-size: 17px; line-height: 1.35; font-weight: 600; margin: 0 0 4px; }
p { margin: 0 0 16px; max-width: 66ch; }
ul, ol { margin: 0 0 16px; padding-left: 22px; max-width: 66ch; }
li { margin-bottom: 8px; }
.lead { font-size: clamp(1.1rem, 1.8vw, 1.3rem); line-height: 1.5; color: var(--text-3); max-width: 38em; margin: 0 0 28px; }
.answer { font-size: 1.12rem; line-height: 1.55; font-weight: 500; }

/* ---- page layout: heading on the left, content on the right, a heavy rule between sections */
main { display: block; }
.hero { padding: 56px 0 64px; }
.hero-grid { display: grid; gap: 40px 56px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr 0.9fr; } }
.page-head { padding: 48px 0 40px; }
.sec { border-top: 1.5px solid var(--ink); padding: 22px 0 8px; margin-top: 56px; display: grid; gap: 14px 56px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .sec { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); } .sec.full > .body { grid-column: 1 / -1; } .sec.full > h2 { grid-column: 1 / -1; } }
h2, .sec > * { min-width: 0; }
.sec .body > :last-child { margin-bottom: 0; }
.sec:last-of-type { margin-bottom: 56px; }
.steps { list-style: none; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; padding: 14px 0 14px 44px; position: relative; margin: 0; border-top: 1px solid var(--rule); }
.steps li:first-child { border-top: 1.5px solid var(--ink); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 14px; width: 28px; height: 28px; border-radius: 4px; border: 1.5px solid var(--ink); text-align: center; font-weight: 600; font-size: 15px; line-height: 25px; }
.rows { list-style: none; padding: 0; }
.rows li { padding: 12px 0; margin: 0; border-top: 1px solid var(--rule); }
.rows li:first-child { border-top: 1.5px solid var(--ink); }
.rows strong { font-weight: 600; }
.faq > div { padding: 14px 0; border-top: 1px solid var(--rule); }
.faq > div:first-child { border-top: 1.5px solid var(--ink); }
.faq p { margin: 0; color: var(--text-3); }
.links { list-style: none; padding: 0; }
.links li { margin: 0; border-top: 1px solid var(--rule); }
.links li:first-child { border-top: 1.5px solid var(--ink); }
.links a { display: block; padding: 12px 0; font-weight: 500; text-decoration: none; }
.links a:hover { text-decoration: underline; }
.links span { display: block; font-weight: 400; color: var(--text-2); font-size: 15px; }

/* ---- tables */
.tbl { overflow-x: auto; margin: 0 0 12px; max-width: 100%; }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 16px; }
.tbl.compact table { min-width: 0; }
caption { text-align: left; font-size: 14px; color: var(--text-2); padding-bottom: 8px; caption-side: bottom; padding-top: 8px; }
th { text-align: left; font-weight: 500; font-size: 14px; color: var(--text-2); padding: 8px 12px 8px 0; border-bottom: 1.5px solid var(--ink); }
td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
td.n, th.n { text-align: right; padding-right: 0; padding-left: 12px; }
tr.us td { font-weight: 600; }
tr.us td:first-child { box-shadow: inset 4px 0 0 var(--ink); padding-left: 14px; }
tr.us td:last-child { padding-right: 0; }
td.b, th.b { font-weight: 600; }
th.b { color: var(--ink); }
.tbl.feat td:first-child, .tbl.feat th:first-child { width: 34%; }

/* ---- sticky note (the signature) */
.note { position: relative; background: var(--note); padding: 18px 18px 22px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%); }
.note::after { content: ''; position: absolute; right: 0; bottom: 0; width: 22px; height: 22px; background: var(--fold); clip-path: polygon(0 0, 100% 0, 0 100%); }
.note .q { font-size: 20px; line-height: 1.3; font-weight: 600; margin: 0 0 14px; max-width: none; }
.answers { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.answers button { min-height: 46px; padding: 0 16px; border-radius: 8px; border: 1.5px solid var(--ink); background: transparent; font-weight: 500; }
.answers button:first-child { background: var(--ink); color: #fff; font-weight: 600; }
.answers button:hover { background: var(--ink); color: #fff; }
.note .check { margin: 0; min-height: 0; }
.demo { max-width: 460px; }
.demo-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; font-size: 15px; color: var(--text-3); }
.count { width: 60px; height: 60px; background: var(--note); display: grid; place-items: center; font-size: 28px; font-weight: 600; color: var(--ink); position: relative; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%); flex: none; }
.count::after { content: ''; position: absolute; right: 0; bottom: 0; width: 14px; height: 14px; background: var(--fold); clip-path: polygon(0 0, 100% 0, 0 100%); }
.count.drop-a { animation: count-a 140ms ease-out; }
.count.drop-b { animation: count-b 140ms ease-out; }
@keyframes count-a { from { transform: translateY(-6px); opacity: 0.4; } to { transform: none; opacity: 1; } }
@keyframes count-b { from { transform: translateY(-6px); opacity: 0.4; } to { transform: none; opacity: 1; } }
.tx { border-top: 1.5px solid var(--ink); padding: 12px 0; margin-bottom: 14px; border-bottom: 1px solid var(--rule); }
.tx-row { display: flex; justify-content: space-between; gap: 12px; font-size: 16px; }
.tx-row b { font-weight: 600; }
.tx-sub { color: var(--text-2); font-size: 14px; }
.in { color: var(--money-in); }
.note.leaving { animation: leave 160ms ease-out forwards; }
@keyframes leave { to { opacity: 0; transform: translateY(8px); } }
.demo-done { display: flex; align-items: center; gap: 14px; padding: 18px 0; font-size: 20px; font-weight: 600; }
.demo-done svg { width: 44px; height: 44px; }
.demo-cap { margin: 14px 0 0; font-size: 14px; color: var(--text-2); }
@media (prefers-reduced-motion: reduce) { .note.leaving, .count.drop-a, .count.drop-b { animation: none; } html { scroll-behavior: auto; } }

/* ---- video and founder */
.video { border: 1.5px solid var(--ink); border-radius: 8px; aspect-ratio: 16 / 9; position: relative; overflow: hidden; background: var(--selected); max-width: 720px; }
.video button.play { position: absolute; inset: 0; width: 100%; border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; font-weight: 600; font-size: 17px; }
.video .tri { width: 64px; height: 64px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; }
.video .tri::after { content: ''; border-left: 18px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent; margin-left: 5px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video.ph { display: grid; place-items: center; color: var(--text-2); font-size: 15px; }
.portrait { width: 160px; height: 160px; border-radius: 8px; object-fit: cover; border: 1.5px solid var(--ink); background: var(--selected); }
.founder { display: flex; gap: 22px; align-items: flex-start; flex-wrap: wrap; }
.promises { list-style: none; padding: 0; }
.promises li { padding: 12px 0; margin: 0; border-top: 1px solid var(--rule); font-weight: 500; }
.promises li:first-child { border-top: 1.5px solid var(--ink); }

/* ---- line finder */
.finder .box { max-width: 640px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.chips button { min-height: 44px; padding: 0 14px; border: 1.5px solid var(--ink); border-radius: 8px; background: transparent; font-weight: 500; font-size: 15px; }
.chips button:hover { background: var(--ink); color: #fff; }
.result { border-top: 1.5px solid var(--ink); padding: 18px 0 8px; max-width: 640px; }
.result[hidden] { display: none; }
.result .line { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 4px; }
.result .what { font-size: 18px; font-weight: 600; margin: 0 0 14px; }
.result dl { margin: 0 0 14px; display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; }
.result dt { color: var(--text-2); font-size: 15px; }
.result dd { margin: 0; font-weight: 500; }
.result .alts { color: var(--text-3); font-size: 15px; }
.result .why { color: var(--problem); font-weight: 600; }

/* ---- footer */
.foot { border-top: 1.5px solid var(--ink); margin-top: 72px; padding: 28px 0 44px; font-size: 15px; }
.foot-cols { display: grid; grid-template-columns: 1fr; gap: 28px 32px; margin: 0 0 32px; }
@media (min-width: 700px) { .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .foot-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.foot-h { font-weight: 600; color: var(--ink); margin: 0 0 6px; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot-note { font-size: 14px; color: var(--text-2); margin: 0 0 10px; max-width: 70ch; }
.foot li { margin: 0; }
.foot a { display: inline-block; padding: 6px 0; }

/* ---- product screenshots */
.shot-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 0 0 12px; align-items: start; }
.shot-row figure { margin: 0; }
.shot-row img, .walk-img img { display: block; width: 100%; height: auto; }
.shot-row figure { display: flex; flex-direction: column; }
.shot-row figcaption { order: -1; margin: 0 0 12px; font-weight: 500; }
@media (max-width: 760px) {
  .shot-row { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin-right: -18px; padding-right: 18px; }
  .shot-row figure { flex: 0 0 78%; scroll-snap-align: start; }
}
.walk-step { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 28px 0; border-top: 1px solid var(--rule); }
.walk-step:first-child { border-top: 1.5px solid var(--ink); }
.walk-img { max-width: 482px; }
.walk-text h3 { font-size: 1.25rem; line-height: 1.25; margin: 0 0 8px; font-weight: 600; }
.notes { list-style: none; padding: 0; margin: 16px 0 0; counter-reset: n; }
.notes li { counter-increment: n; position: relative; padding: 0 0 12px 40px; margin: 0; }
.notes li::before { content: counter(n); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 600; font-size: 14px; line-height: 26px; text-align: center; }
@media (min-width: 820px) { .walk-step { grid-template-columns: 482px minmax(0, 1fr); gap: 44px; align-items: start; } }

/* Help center */
.crumbs { padding: 24px 0 0; font-size: 15px; color: var(--text-2); }
.crumbs a { color: inherit; }
.help-grid { display: grid; gap: 32px; grid-template-columns: 1fr; padding: 16px 0 24px; }
@media (min-width: 900px) { .help-grid { grid-template-columns: 240px minmax(0, 1fr); gap: 56px; } }
.help-side ul { list-style: none; padding: 0; margin: 0 0 12px; }
.help-side li { margin: 0; border-top: 1px solid var(--rule); }
.help-side li a { display: block; padding: 8px 0; text-decoration: none; font-size: 15px; }
.help-side a[aria-current="page"] { font-weight: 600; text-decoration: underline; }
.help-article { max-width: 720px; min-width: 0; }
.help-article h2 { margin-top: 36px; }
.steps-list { padding-left: 22px; }
.steps-list li { margin: 8px 0; }
.help-shot { margin: 28px 0 0; }
.help-shot img { max-width: 100%; height: auto; border: 1px solid var(--rule); }
.checked { margin: 0 0 12px; }
.support { margin: 12px 0; display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }
.support .small { flex-basis: 100%; margin: 0; }
table.plain { width: 100%; border-collapse: collapse; margin: 12px 0; }
table.plain th, table.plain td { text-align: left; padding: 10px 12px 10px 0; border-top: 1px solid var(--rule); vertical-align: top; }
#contact-form { display: grid; gap: 16px; max-width: 560px; }
#contact-form textarea, #contact-form select { width: 100%; font: inherit; padding: 10px; border: 1.5px solid var(--ink); background: #fff; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#contact-status { margin: 0; font-weight: 500; }
