/* Bajnok website.
   Paper, ink, and one blue in two shades. A square is a lift, a circle is a
   run, and a day with both prints the circle over the square. */

:root {
  --paper: #fff;
  --ink: #1c1f25;        /* oklch(0.24 0.012 260) */
  --t2: #5a5e65;         /* oklch(0.48 0.012 260), secondary text */
  --raised: #f2f5f7;     /* oklch(0.968 0.004 250), panels and the footer */
  --tint: #ddeaff;       /* oklch(0.935 0.035 262), placeholder chips */
  --lift: #2454b3;       /* oklch(0.47 0.16 262), squares and buttons */
  --run: #6d92d6;        /* oklch(0.66 0.11 262), circles and display type only */
  --blue-text: #1e4798;  /* oklch(0.42 0.14 262), links */
  --blue-deep: #0e3685;  /* oklch(0.36 0.14 262), hover */
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  accent-color: var(--lift);
}
a { color: var(--blue-text); text-decoration: none; text-underline-offset: 3px; }
a:hover { color: var(--blue-deep); }
:focus-visible { outline: 2px solid var(--lift); outline-offset: 3px; }
::selection { background: var(--lift); color: #fff; }
[id] { scroll-margin-top: 24px; }

.n { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -64px; z-index: 5; padding: 12px 16px; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 600; }
.skip:hover, .skip:focus { color: #fff; }
.skip:focus { top: 12px; }
.wrap { max-width: 1360px; margin: 0 auto; padding-inline: 40px; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.cap { margin: 0; font-size: 13px; line-height: 1.5; color: var(--t2); }

/* Header and footer */
.hdr { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; min-height: 80px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 11px; min-height: 44px; margin-right: auto; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand b { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; text-transform: uppercase; }
.mark { width: 34px; height: 34px; border-radius: 8px; background: var(--lift); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.links { display: flex; flex-wrap: wrap; gap: 0 20px; }
.txt { display: inline-flex; align-items: center; min-height: 44px; padding: 12px 4px; color: var(--t2); font-size: 15px; font-weight: 500; }
.txt:hover { color: var(--ink); }
.txt[aria-current="page"] { color: var(--ink); font-weight: 600; }
.ftr { background: var(--raised); }
.ftr .wrap { display: flex; flex-direction: column; gap: 24px; padding-top: 44px; padding-bottom: 44px; }
.ftr .mark { width: 28px; height: 28px; }
.ftr .brand b { font-size: 17px; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 16px 24px; flex-wrap: wrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 12px; background: var(--lift); color: #fff; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.btn:hover { background: var(--blue-deep); color: #fff; }
/* Before the App Store listing exists the call to action is text, not a button. */
.soon { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; font-size: 19px; font-weight: 700; letter-spacing: -0.015em; }

/* Display type */
.poster { margin: 0; font-size: clamp(2.5rem, 7.2vw, 6rem); line-height: 0.98; font-weight: 800; letter-spacing: -0.025em; word-spacing: 0.08em; text-transform: uppercase; }
.h2 { margin: 0; font-size: clamp(1.875rem, 3.4vw, 2.75rem); line-height: 1.02; font-weight: 800; letter-spacing: -0.02em; word-spacing: 0.08em; text-transform: uppercase; text-wrap: balance; }
/* Keeps a short sentence on one line inside a display heading. */
.nb { display: inline-block; white-space: nowrap; }
.lede { margin: 0; max-width: 34em; font-size: clamp(1.125rem, 1.5vw, 1.3125rem); line-height: 1.45; color: var(--t2); text-wrap: pretty; }
.body { margin: 0; max-width: 34em; font-size: 19px; line-height: 1.5; color: var(--t2); text-wrap: pretty; }

/* Home: hero */
.sec { padding-top: clamp(96px, 11vw, 160px); }
.hero { display: flex; flex-direction: column; gap: 26px; padding-top: clamp(36px, 4.4vw, 60px); }
.w-l { color: var(--lift); }
.w-r { color: var(--run); }
/* "Same day." is printed twice, once in each shade, and the two multiply. */
.same { position: relative; display: inline-block; white-space: nowrap; color: var(--lift); isolation: isolate; }
.same .over { position: absolute; left: 0; top: 0; color: var(--run); mix-blend-mode: multiply; pointer-events: none; user-select: none; -webkit-user-select: none; animation: settle-type 1.6s cubic-bezier(.16, 1, .3, 1) .4s backwards; }
.hero-cta { display: flex; align-items: center; gap: 12px 28px; flex-wrap: wrap; margin-top: 6px; }
.hero-cta .cap { font-size: 14px; }

/* Home: the sample month */
.month { padding-top: clamp(40px, 4.4vw, 60px); }
.stagewrap { position: relative; padding: 44px 44px 36px; }
.cross { position: absolute; width: 28px; height: 28px; }
.cross.tl { left: 0; top: 0; }
.cross.tr { right: 0; top: 0; }
.cross.bl { left: 0; bottom: 0; }
.cross.br { right: 0; bottom: 0; }
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); margin-bottom: 6px; }
.days span { padding-left: 2px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--t2); }
.stage { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); isolation: isolate; }
.cell { position: relative; aspect-ratio: 1 / 1; }
.dn { position: absolute; left: 2px; top: 0; font-size: 11px; color: var(--t2); }
.sq, .ci { position: absolute; left: 50%; top: 50%; mix-blend-mode: multiply; }
.sq { width: 54%; height: 54%; margin: -27% 0 0 -27%; background: var(--lift); }
.ci { width: 62%; height: 62%; margin: -31% 0 0 -31%; border-radius: 50%; background: var(--run); animation: settle 1.6s cubic-bezier(.16, 1, .3, 1) .4s backwards; }
/* The run pass lands on the lift pass once, on load. */
@keyframes settle { from { translate: 34% 14%; } }
@keyframes settle-type { from { translate: 0.11em 0.045em; } }
.month:has(#pass-lift:not(:checked)) .sq,
.month:has(#pass-run:not(:checked)) .ci { visibility: hidden; }
.ctrl { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 32px; margin-top: 8px; padding: 12px 28px; border-radius: 20px; background: var(--raised); }
.passes { display: flex; flex-wrap: wrap; gap: 0 28px; }
.chk { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; font-weight: 600; cursor: pointer; }
.chk input { width: 22px; height: 22px; margin: 0; }

/* Legend keys */
.k-sq, .k-ci { display: inline-block; width: 14px; height: 14px; flex-shrink: 0; background: var(--lift); }
.k-ci { border-radius: 50%; background: var(--run); }
.k-both { position: relative; display: inline-block; width: 20px; height: 18px; flex-shrink: 0; isolation: isolate; }
.k-both i { position: absolute; width: 14px; height: 14px; mix-blend-mode: multiply; }
.k-both i:first-child { left: 0; top: 0; background: var(--lift); }
.k-both i:last-child { left: 6px; top: 4px; border-radius: 50%; background: var(--run); }
.legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 15px; font-weight: 500; }
.legend li { display: inline-flex; align-items: center; gap: 10px; }

/* Home: the app screens */
.pair { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px 72px; align-items: start; }
.phones { display: flex; gap: 56px; justify-content: center; margin-top: 64px; scrollbar-width: thin; scrollbar-color: var(--ink) transparent; }
.phone { display: flex; flex-direction: column; gap: 16px; flex: 0 0 auto; width: 300px; margin: 0; scroll-snap-align: center; }
.phone figcaption { font-size: 15px; line-height: 1.45; color: var(--t2); }
.phone figcaption b { color: var(--ink); font-weight: 600; }
.frame { width: 300px; height: 626px; padding: 10px; border-radius: 50px; background: var(--ink); }
.screen { position: relative; width: 280px; height: 606px; border-radius: 40px; overflow: hidden; background: #fff; }
.scale { width: 390px; height: 844px; overflow: hidden; transform: scale(0.718); transform-origin: 0 0; }
.phones-cap { margin-top: 28px; text-align: center; }

/* Home: statement, pricing, roadmap, closing */
.statement { gap: 24px; }
.statement .poster { max-width: 14em; text-wrap: balance; }
.rows { border-bottom: 1px solid var(--ink); }
.prow { display: grid; grid-template-columns: minmax(0, 1fr) auto 6.5em; gap: 8px 20px; align-items: baseline; padding: 22px 0; border-top: 1px solid var(--ink); }
.pname { font-size: 19px; font-weight: 700; letter-spacing: -0.015em; }
.pprice { font-size: clamp(2rem, 3.4vw, 2.75rem); line-height: 1; font-weight: 800; letter-spacing: -0.02em; }
.pper { font-size: 15px; color: var(--t2); }
.fine { margin: 16px 0 0; max-width: 44em; font-size: 14px; line-height: 1.5; color: var(--t2); }
.roadmap { gap: 40px; }
.roadmap .h2 { max-width: 16em; }
.rrow { display: grid; grid-template-columns: 44px minmax(0, 3fr) minmax(0, 5fr) minmax(0, 2fr); gap: 20px; align-items: center; min-height: 68px; border-top: 1px solid var(--ink); }
.rrow b { font-size: 19px; font-weight: 700; letter-spacing: -0.015em; }
.rrow .d { font-size: 15px; line-height: 1.45; color: var(--t2); }
.rrow .s { font-size: 15px; font-weight: 600; }
.rrow .s.later { color: var(--t2); }
/* Status is drawn in ink, never in blue: blue is training data. */
.g-built { width: 28px; height: 14px; background: var(--ink); }
/* In progress: the built patch as a halftone. */
.g-prog { width: 28px; height: 14px; background-image: radial-gradient(circle, var(--ink) 36%, transparent 40%); background-size: 7px 7px; }
.g-plan { display: block; width: 24px; height: 24px; }
.closing { padding-bottom: 120px; }
.cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 32px; padding: 56px; border-radius: 20px; background: var(--raised); }
.cta .stack { gap: 14px; }
.cta .body { font-size: 18px; }

/* Reading pages: privacy, terms, support */
.doc { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px 72px; align-items: start; padding-top: clamp(40px, 5vw, 72px); padding-bottom: clamp(80px, 9vw, 128px); }
.title { margin: 0; font-size: clamp(2.25rem, 5vw, 4rem); line-height: 1; font-weight: 800; letter-spacing: -0.025em; word-spacing: 0.08em; text-transform: uppercase; text-wrap: balance; }
.meta { margin: 16px 0 0; font-size: 15px; line-height: 1.5; color: var(--t2); }
.toc { list-style: none; margin: 32px 0 0; padding: 8px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.toc a { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 15px; font-weight: 500; color: var(--ink); }
.toc a:hover { color: var(--blue-text); }
.toc .n { min-width: 1.6em; color: var(--t2); }
.prose { max-width: 68ch; font-size: 17px; line-height: 1.6; }
.prose a { text-decoration: underline; text-decoration-thickness: 1px; }
.prose > h2 { display: flex; gap: 14px; margin: 56px 0 12px; font-size: 24px; line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }
.prose > h2 .n { color: var(--t2); font-weight: 600; }
.prose p { margin: 0 0 16px; text-wrap: pretty; }
.prose ul { margin: 0 0 16px; padding-left: 1.2em; }
.prose li { margin-bottom: 8px; }
.short { padding: 28px 32px; border-radius: 20px; background: var(--raised); }
.short h2 { margin: 0 0 12px; font-size: 19px; letter-spacing: -0.015em; }
.short ul, .short p:last-child { margin-bottom: 0; }
.short li:last-child { margin-bottom: 0; }
/* A blank the author still has to fill in. ./check.sh lists them. */
.ph { padding: 1px 6px; border-radius: 6px; background: var(--tint); color: var(--blue-deep); font-size: 0.92em; font-weight: 600; white-space: nowrap; }

/* Support */
.mail { margin: 0 0 12px; font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }
.mail .ph { padding: 2px 10px; border-radius: 10px; font-size: 1em; }
.faq { border-bottom: 1px solid var(--ink); }
.faq details { border-top: 1px solid var(--ink); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; padding: 12px 0; font-size: 19px; font-weight: 700; letter-spacing: -0.015em; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--blue-text); }
.faq p { max-width: 60ch; margin: 0 0 24px; color: var(--t2); }
.pm { position: relative; width: 18px; height: 18px; flex-shrink: 0; }
.pm::before, .pm::after { content: ""; position: absolute; left: 0; top: 8px; width: 18px; height: 2px; background: currentColor; transition: transform .25s cubic-bezier(.16, 1, .3, 1); }
.pm::after { transform: rotate(90deg); }
.faq details[open] .pm::after { transform: rotate(0deg); }

/* Not found: the run knocked off its day */
.nf { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(80px, 10vw, 144px); }
.nf-mark { position: relative; width: 220px; height: 200px; margin-bottom: 12px; isolation: isolate; }
.nf-mark i { position: absolute; display: block; }
.nf-sq { left: 23px; top: 46px; width: 108px; height: 108px; background: var(--lift); mix-blend-mode: multiply; }
.nf-reg { left: 15px; top: 38px; width: 124px; height: 124px; border-radius: 50%; border: 1px dotted var(--ink); }
.nf-ci { left: 15px; top: 38px; width: 124px; height: 124px; border-radius: 50%; background: var(--run); mix-blend-mode: multiply; transform: translate(58px, 24px); }

@media (prefers-reduced-motion: reduce) {
  .ci, .same .over { animation: none; }
  .pm::before, .pm::after { transition: none; }
}
/* The contents list stays in view while a long document scrolls. */
@media (min-width: 901px) and (min-height: 760px) {
  .doc > :first-child { position: sticky; top: 24px; }
}
@media (max-width: 1100px) {
  .phones { justify-content: flex-start; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 16px; }
}
@media (max-width: 900px) {
  .pair, .doc, .cta { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .wrap { padding-inline: 16px; }
  .links { order: 3; width: 100%; }
  .stagewrap { padding: 28px 14px 22px; }
  .cross { width: 18px; height: 18px; }
  .dn { display: none; }
  .days span { font-size: 11px; letter-spacing: 0.04em; }
  .ctrl { padding: 12px 20px; }
  .phones { margin-top: 40px; }
  .prow { grid-template-columns: minmax(0, 1fr) auto; }
  .pper { grid-column: 1 / -1; }
  .rrow { grid-template-columns: 36px minmax(0, 1fr); gap: 4px 14px; padding: 14px 0; }
  .rrow .d, .rrow .s { grid-column: 2; }
  .cta { padding: 32px 20px; }
  .short { padding: 22px 20px; }
  .prose > h2 { margin-top: 44px; font-size: 22px; }
}
