/* Nasiya Daftari site. The page is a sheet of the squared school notebook shops keep nasiya in: 24 px squares,
   a red margin rule that everything hangs from, and ballpoint handwriting for the entries. docs/DESIGN.md has
   the concept and the system. */

/* Onest and Caveat (Google Fonts, OFL), self-hosted: latin, latin-ext and cyrillic subsets, variable weight */
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url('fonts/caveat-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url('fonts/caveat-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url('fonts/caveat-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/onest-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/onest-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/onest-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --paper: #F7F8FA;
  --sheet: #FFFFFF;
  --grid: rgb(35 64 168 / .085);
  --ink: #15171C;
  --muted: #575C66;
  --line: rgb(21 23 28 / .14);
  --margin: #D80F1A;
  --pen: #2340A8;
  --graphite: #1B1D22;
  --on-dark: #F2F2F5;
  --on-dark-muted: #A9ADB6;

  --font: "Onest", -apple-system, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;
  --out: cubic-bezier(.16, 1, .3, 1);
  --soft: cubic-bezier(.215, .61, .355, 1);
  --in-out: cubic-bezier(.87, 0, .13, 1);

  --max: 1240px;
  --pad: clamp(16px, 3vw, 40px);
  --m: 132px;            /* the margin column, left of the red rule */
  --g: 32px;             /* space between the rule and the text */
  --hh: 60px;            /* header height */
  --sq: 24px;            /* notebook square */
  --r: 4px;

  --t-xl: clamp(2.5rem, 1.2rem + 4.6vw, 5.5rem);
  --t-l: clamp(1.9rem, 1.2rem + 2.4vw, 3.5rem);
  --t-m: clamp(1.25rem, 1.1rem + .6vw, 1.6rem);
  color-scheme: light;
}
@media (max-width: 1080px) { :root { --m: 96px; --g: 26px; } }
@media (max-width: 720px) { :root { --m: 22px; --g: 14px; --sq: 20px; --hh: 56px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hh) + 16px); }
body {
  margin: 0;
  position: relative;
  background-color: var(--paper);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: var(--sq) var(--sq);
  color: var(--ink);
  font: 17px/1.55 var(--font);
  font-variant-numeric: tabular-nums;
  overflow-x: clip;
}
/* the red margin rule, top to bottom of the page; dark sections paint over it */
body::before {
  content: ""; position: absolute; top: 0; bottom: 0; z-index: 0; width: 2px; pointer-events: none;
  left: calc(max(0px, (100% - var(--max)) / 2) + var(--pad) + var(--m) - var(--g));
  background: var(--margin); opacity: .7;
}
html[lang="uz"] body [lang="ru"], html[lang="ru"] body [lang="uz"] { display: none !important; }
::selection { background: var(--margin); color: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
:focus-visible { outline: 2px solid var(--margin); outline-offset: 3px; border-radius: var(--r); }
main:focus { outline: none; }
h1, h2, h3 { margin: 0; font-weight: 800; text-wrap: balance; }
p { margin: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.wrap {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: calc(var(--pad) + var(--m));
  padding-right: var(--pad);
}

/* inline links in text: underline at rest, it thickens into a band on hover */
p a, li p a, .doc a {
  color: inherit; text-decoration: none;
  background: linear-gradient(var(--margin) 0 0) left bottom / 100% 1.5px no-repeat;
  transition: background-size .4s var(--soft);
}
@media (hover: hover) { p a:hover, .doc a:hover { background-size: 100% .38em; } }
p a:focus-visible { background-size: 100% .38em; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--paper);
  padding: 10px 14px; border-radius: var(--r); text-decoration: none; font-weight: 600; }
.skip:focus { top: 10px; }

/* handwriting in the margin: short real facts, right-aligned against the red rule */
.note {
  position: absolute; left: calc(-1 * var(--m) + 4px); width: calc(var(--m) - var(--g) - 12px);
  font: 600 22px/1.05 var(--hand); color: var(--pen); text-align: right; rotate: -4deg; transform-origin: right center;
}
@media (max-width: 720px) {
  .note { position: static; display: block; width: auto; text-align: left; rotate: -2deg; margin: 0 0 6px; font-size: 21px; transform-origin: left center; }
}

/* header */
.top { position: sticky; top: 0; z-index: 20; height: var(--hh); background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 16px; height: 100%; padding-left: var(--pad); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 17px; letter-spacing: -.01em; white-space: nowrap; }
.brand img { width: 30px; height: 30px; border-radius: 7px; box-shadow: 0 0 0 1px rgb(21 23 28 / .1); transition: rotate .45s var(--soft); }
@media (hover: hover) { .brand:hover img { rotate: -8deg; } }
.brand:focus-visible img { rotate: -8deg; }
.top nav { margin-left: auto; display: flex; align-items: center; gap: 22px; font-size: 15px; font-weight: 500; }
/* nav: a pen line draws under the link */
.pen { color: var(--ink); text-decoration: none; padding-block: 6px;
  background: linear-gradient(var(--margin) 0 0) left 88% / 0% 2px no-repeat; transition: background-size .45s var(--soft); }
@media (hover: hover) { .pen:hover { background-size: 100% 2px; } }
.pen:focus-visible { background-size: 100% 2px; }
/* language: Hugeicons globe + current code; the menu drops down under it */
.lang { position: relative; border: 0; }
.lang summary { list-style: none; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; margin-right: -8px; border-radius: 50%;
  color: var(--ink); cursor: pointer; user-select: none; transition: background-color .25s, color .25s; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary::after { content: none; }
.lang .ic { width: 22px; height: 22px; flex: none; }
@media (hover: hover) { .lang summary:hover { color: var(--margin); } }
.lang[open] summary { color: var(--margin); background: rgb(21 23 28 / .06); }
.lang summary:focus-visible { outline: 2px solid var(--margin); outline-offset: 0; }
.lang-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 160px; padding: 4px; display: grid;
  background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 12px 30px -12px rgb(21 23 28 / .3); }
.lang-menu button { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; padding: 0 10px;
  border: 0; border-radius: 2px; background: transparent; font: 500 15px var(--font); color: var(--ink); text-align: left; cursor: pointer; }
.lang-menu button .ic { width: 18px; height: 18px; color: var(--margin); visibility: hidden; }
.lang-menu button[aria-pressed="true"] { font-weight: 700; }
.lang-menu button[aria-pressed="true"] .ic { visibility: visible; }
@media (hover: hover) { .lang-menu button:hover { background: rgb(21 23 28 / .06); } }
.lang-menu button:focus-visible { outline: 2px solid var(--margin); outline-offset: -2px; }
@media (max-width: 640px) { .top nav .hide-sm { display: none; } .top nav { gap: 14px; } .top nav .pen { white-space: nowrap; } }
@media (max-width: 400px) { .top .wrap { gap: 10px; } .top nav { gap: 12px; } }

/* sections */
main > section { position: relative; z-index: 1; }
h2 { font-size: var(--t-l); line-height: 1.02; letter-spacing: -.04em; max-width: 18ch; }
.sub { color: var(--muted); font-size: clamp(17px, 1rem + .25vw, 19px); max-width: 52ch; margin-top: 18px; }

/* hero */
.hero { padding-block: clamp(24px, 4vh, 48px) 56px; }
.hero-grid { width: 100%; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero-copy { position: relative; container-type: inline-size; }
.hero-note { top: .5em; }
h1 { font-size: clamp(2.4rem, 11.6cqi, 5.6rem); line-height: .98; letter-spacing: -.048em; margin-left: -.05em; }
.lede { font-size: clamp(18px, 1rem + .5vw, 21px); line-height: 1.45; color: var(--muted); max-width: 30ch; margin-top: 22px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 32px; }
.facts { font-size: 14px; color: var(--muted); max-width: 22ch; line-height: 1.35; }

/* Apple's "Download on the App Store" badge, drawn to its proportions. Hover circles it in red pen, as you circle
   something in the notebook. ponytail: swap for Apple's official SVG from tools.applemarketingtools.com when convenient. */
.store { position: relative; display: inline-flex; align-items: center; gap: 9px; height: 56px; padding: 0 18px 0 13px;
  background: #000; color: #fff; border: 1.5px solid #A6A6A6; border-radius: 11px; text-decoration: none;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 500; font-size: 27px; letter-spacing: -.025em; line-height: 1; transition: translate .4s var(--soft); }
.store small { display: block; font-size: 13.5px; font-weight: 500; letter-spacing: 0; margin: 0 0 1px 1px; }
.store .apple { width: 34px; height: 34px; fill: currentColor; margin-top: -3px; }
.store .play { width: 28px; height: 30px; margin: 0 2px 0 3px; }
.stores { display: flex; flex-wrap: wrap; gap: 14px; }
.store .loop { position: absolute; inset: -16px -22px -14px -20px; width: calc(100% + 42px); height: calc(100% + 30px);
  fill: none; stroke: var(--margin); stroke-width: 2.5; stroke-linecap: round; overflow: visible; pointer-events: none;
  stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; transition: stroke-dashoffset .7s var(--soft), opacity .15s; }
@media (hover: hover) { .store:hover .loop { stroke-dashoffset: 0; opacity: 1; } .store:hover { translate: 0 -2px; } }
.store:focus-visible .loop, .store:active .loop { stroke-dashoffset: 0; opacity: 1; }
.store:focus-visible { outline-offset: 4px; border-radius: 12px; }

/* the stage: notebook sheet with the phone over its edge; sizes follow the stage width and the viewport height */
.stage { position: relative; container-type: inline-size; --sw: min(58cqi, 48svh); --pw: min(40cqi, 36svh);
  height: calc(var(--pw) * 2.12); }
.sheet {
  position: absolute; left: 0; top: 9%; margin: 0; width: var(--sw); aspect-ratio: 5 / 5.8;
  padding: 8% 7% 0 19%; background-color: var(--sheet);
  background-image: linear-gradient(90deg, transparent calc(14% - 1px), rgb(216 15 26 / .55) calc(14% - 1px) calc(14% + 1px), transparent calc(14% + 1px)),
    linear-gradient(rgb(35 64 168 / .13) 1px, transparent 1px), linear-gradient(90deg, rgb(35 64 168 / .13) 1px, transparent 1px);
  background-size: 100% 100%, 5.5cqi 5.5cqi, 5.5cqi 5.5cqi;
  box-shadow: 0 1px 2px rgb(21 23 28 / .08), 0 18px 40px -18px rgb(21 23 28 / .35);
  border-radius: 2px 6px 6px 2px; font-family: var(--hand); color: var(--pen); container-type: inline-size;
}
html:not(.motion) .sheet { rotate: -3deg; }
.sheet-head { font: 600 8cqi/1 var(--hand); color: var(--pen); margin-bottom: 4%; }
.entries { list-style: none; margin: 0; padding: 0; }
.entries li { position: relative; display: flex; justify-content: space-between; gap: 8px; font-size: 8.1cqi; line-height: 1.5; font-weight: 500; white-space: nowrap; }
.entries .sum { font-variant-numeric: normal; }
.strike { display: none; position: absolute; left: -3%; right: -3%; top: 52%; height: 3px; border-radius: 3px; background: var(--margin); rotate: -1.2deg; }
html.motion .strike { display: block; }
.entries li:nth-child(even) .strike { rotate: .8deg; }
.total { margin-top: 3%; padding-top: 2%; border-top: 2px solid var(--pen); display: flex; justify-content: space-between; font-size: 8.1cqi; font-weight: 600; }
.total b { font-weight: 600; }
.phone { position: absolute; left: calc(var(--sw) - 2cqi); top: 0; width: var(--pw); }
.phone { filter: drop-shadow(0 22px 30px rgb(15 15 25 / .32)); }
html:not(.motion) .phone { rotate: 3deg; }

@media (min-width: 861px) {
  html.motion .hero { height: calc(180svh - var(--hh)); padding: 0; }
  html.motion .hero-stage { position: sticky; top: var(--hh); height: calc(100svh - var(--hh)); display: grid; align-items: center; }
}
@media (max-width: 860px) {
  .hero { padding-top: 20px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  h1 { font-size: clamp(2.3rem, 12.4cqi, 3.6rem); }
  .lede { margin-top: 16px; }
  .cta { margin-top: 26px; }
  .stage { height: auto; min-height: 0; aspect-ratio: 1 / .98; }
  .stage { --sw: 60cqi; --pw: 42cqi; }
  .sheet { top: 5%; }
  .store { height: 50px; font-size: 24px; padding: 0 16px 0 12px; border-radius: 10px; }
  .store small { font-size: 12px; }
  .store .apple { width: 30px; height: 30px; }
  .store .play { width: 25px; height: 27px; }
}

/* steps: a ruled list, numbers written in the margin */
.steps-section { padding-block: clamp(72px, 10vw, 140px) clamp(40px, 6vw, 80px); }
.steps { list-style: none; margin: 48px 0 0; padding: 0; border-top: 1px solid var(--line); }
.steps li { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 8px 32px; align-items: baseline;
  padding-block: 28px; border-bottom: 1px solid var(--line); }
.steps .n { position: absolute; left: calc(-1 * var(--m)); width: calc(var(--m) - var(--g) - 14px); text-align: right;
  font: 600 52px/1 var(--hand); color: var(--margin); top: 22px; }
.steps h3 { font-size: var(--t-m); line-height: 1.15; letter-spacing: -.02em; font-weight: 700; }
.steps p { color: var(--muted); max-width: 46ch; }
@media (max-width: 720px) {
  .steps li { grid-template-columns: 1fr; padding-left: 40px; }
  .steps .n { left: 0; width: auto; font-size: 40px; top: 24px; }
}

/* voice: the spoken sentence is written by hand, then the app typesets it into fields */
.voice-section { padding-block: clamp(64px, 9vw, 130px); }
.voice { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
@media (max-width: 860px) { .voice { grid-template-columns: minmax(0, 1fr); } }
.voice-copy { position: relative; }
.voice-copy .note { top: .4em; }
.aside { margin-top: 22px; font-size: 15px; color: var(--muted); padding-left: 14px; border-left: 2px solid var(--margin); max-width: 40ch; }
.demo { position: relative; margin: 0; display: grid; justify-items: center; }
.demo .iphone { width: min(300px, 72vw); filter: drop-shadow(0 22px 30px rgb(15 15 25 / .3)); }
.said { max-width: 22ch; margin: 0 0 18px; rotate: -2deg; text-align: center; font: 600 clamp(24px, 1.1rem + 1.2vw, 32px)/1.2 var(--hand); color: var(--pen); }

/* features: chapters on the left, the phone holds still on the right and changes screen per chapter */
.features-section { padding-block: clamp(48px, 7vw, 100px); }
.features { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); margin-top: 40px; }
.chapters { list-style: none; margin: 0; padding: 0; }
.chapters li { position: relative; padding-block: clamp(32px, 6vh, 64px); border-top: 1px solid var(--line); }
.chapters li:last-child { border-bottom: 1px solid var(--line); }
.chapters .note { top: clamp(36px, 6vh, 68px); }
.chapters h3 { font-size: var(--t-m); line-height: 1.12; letter-spacing: -.025em; font-weight: 700; transition: color .4s; }
.chapters p { color: var(--muted); margin-top: 10px; max-width: 46ch; }
html.motion .chapters li:not(.on) h3 { color: var(--muted); }
.screens { position: relative; order: 2; }
/* the shadow sits on the wrapper: on the images it would be cut square by their clip-path */
.screens-inner { position: sticky; top: calc(var(--hh) + 5svh); display: grid; justify-items: center; filter: drop-shadow(0 22px 30px rgb(15 15 25 / .3)); }
.screens .iphone { grid-area: 1 / 1; width: min(100%, 300px, 38svh);
  clip-path: inset(-2% -3%); transition: clip-path 1s var(--in-out); }
/* each chapter has its screen; later screens wipe up over earlier ones (motion.js marks the ones in view with .up) */
.screens .iphone:not(:first-child):not(.up) { clip-path: inset(100% -3% -2% -3%); }
@media (prefers-reduced-motion: reduce) { .screens .iphone { transition: none; } }
html:not(.js) .screens-inner { position: static; grid-auto-flow: row; gap: 24px; }
html:not(.js) .screens .iphone { grid-area: auto; clip-path: none; }
@media (max-width: 860px) {
  .features { grid-template-columns: minmax(0, 1fr); }
  .screens { order: -1; }
  /* the scroller clips at its edges, so it gets room for the shadow and each phone carries its own */
  .screens-inner { position: static; display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; filter: none;
    padding: 12px 16px 40px; margin: -12px -16px -28px; scroll-padding-inline: 16px; }
  /* a swipe row: the scroll bar adds nothing on a phone, the cut-off second phone already says there is more */
  .screens-inner { scrollbar-width: none; }
  .screens-inner::-webkit-scrollbar { display: none; }
  .screens .iphone { width: min(62vw, 240px); flex: none; scroll-snap-align: start; clip-path: none !important; transition: none;
    filter: drop-shadow(0 14px 16px rgb(15 15 25 / .22)); }
  html.motion .chapters li:not(.on) h3 { color: inherit; }
}

/* privacy: the one dark field on the page, a statement */
.privacy-section { background: var(--graphite); color: var(--on-dark); padding-block: clamp(80px, 11vw, 160px); margin-top: clamp(48px, 7vw, 100px); }
.statement { font-size: var(--t-xl); line-height: .98; letter-spacing: -.05em; max-width: 14ch; margin-left: -.04em; }
.pledges { list-style: none; margin: clamp(48px, 7vw, 96px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.pledges li { border-top: 2px solid var(--margin); padding-top: 18px; }
.pledges h3 { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.pledges p { color: var(--on-dark-muted); margin-top: 8px; }
.pledges a { color: var(--on-dark); }
@media (max-width: 860px) { .pledges { grid-template-columns: 1fr; gap: 28px; } }

/* FAQ: ledger rows; the plus turns into a struck line when a row is open */
.faq-section { padding-block: clamp(72px, 10vw, 140px) clamp(40px, 6vw, 80px); }
.faq { margin-top: 36px; border-top: 1px solid var(--line); max-width: 880px; }
details { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 20px 0; font-size: clamp(18px, 1rem + .4vw, 21px); font-weight: 600; letter-spacing: -.01em; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; flex: none; width: 18px; height: 18px; transition: rotate .45s var(--soft), background-size .45s var(--soft);
  background: linear-gradient(var(--margin) 0 0) center / 100% 2px no-repeat, linear-gradient(var(--margin) 0 0) center / 2px 100% no-repeat; }
@media (hover: hover) { summary:hover::after { rotate: 90deg; } }
summary:focus-visible::after { rotate: 90deg; }
details[open] summary::after { rotate: 180deg; background-size: 100% 2px, 2px 0%; }
summary:focus-visible { outline-offset: -2px; }
details p { color: var(--muted); padding: 0 0 22px; max-width: 64ch; }

/* footer: the last line of the page */
footer { position: relative; z-index: 1; padding-block: 40px; border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 15px; }
footer nav a { color: var(--muted); text-decoration: none; padding-block: 4px; transition: color .25s; }
@media (hover: hover) { footer nav a:hover { color: var(--ink); text-decoration: underline; } }
footer .copy { color: var(--muted); font-size: 14px; margin-left: auto; }
.finale { padding-block: clamp(56px, 8vw, 110px) 36px; border-top: 0; }
.finale .wrap { display: block; container-type: inline-size; }
.finale .note { top: 1.2em; }
.wordmark { font-size: 14.2cqi; font-weight: 800; line-height: .9; letter-spacing: -.06em; margin-left: -.06em; white-space: nowrap; }
.finale-row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 36px; margin-top: clamp(28px, 4vw, 48px); padding-top: 28px; border-top: 2px solid var(--ink); }
@media (max-width: 720px) {
  .wordmark { font-size: 15.4cqi; }
  .finale-row { flex-direction: column; align-items: flex-start; }
  footer .copy { margin-left: 0; }
}

/* legal pages: the text sits on a clean sheet laid over the squared page */
.doc { position: relative; z-index: 1; max-width: calc(820px + var(--m) + var(--pad)); padding-block: 40px 32px; }
.doc > article { background: var(--sheet); padding: clamp(24px, 4vw, 52px); border-radius: 2px 6px 6px 2px;
  box-shadow: 0 1px 2px rgb(21 23 28 / .08), 0 18px 40px -24px rgb(21 23 28 / .3); }
.doc h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); line-height: 1.02; letter-spacing: -.04em; margin-bottom: 10px; }
.doc .meta { color: var(--muted); margin: 0 0 28px; }
.doc h2 { font-size: 21px; letter-spacing: -.015em; margin: 34px 0 10px; max-width: none; line-height: 1.25; font-weight: 700; }
.doc h2.title { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); line-height: 1.02; letter-spacing: -.04em; margin: 0 0 10px; font-weight: 800; }
.doc p, .doc li { color: var(--ink); }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc .box { border-left: 3px solid var(--margin); background: var(--paper); padding: 14px 18px; margin: 18px 0; }

/* page turn between index, privacy and terms: the next sheet slides up over the last one */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: .8s var(--in-out) both sheet-under; }
::view-transition-new(root) { animation: .8s var(--in-out) both sheet-over; }
@keyframes sheet-over { from { translate: 0 100%; } }
@keyframes sheet-under { to { translate: 0 -12%; opacity: .6; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  @view-transition { navigation: none; }
}
@media print { .top, .skip, .screens { display: none; } body { background: #fff; } }

/* 404: the sheet was torn out, only its stub is left along the margin */
.torn { position: relative; z-index: 1; min-height: calc(100svh - var(--hh) - 110px); display: flex; flex-direction: column; justify-content: center; padding-block: 64px; }
.torn::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--pad) + var(--m) - var(--g) + 2px); width: 22px; background: var(--sheet);
  clip-path: polygon(0 0, 60% 0, 100% 3%, 45% 7%, 90% 11%, 35% 15%, 80% 20%, 50% 24%, 95% 29%, 40% 33%, 85% 38%, 30% 42%, 75% 47%, 45% 51%, 100% 56%, 35% 60%, 80% 65%, 50% 69%, 90% 74%, 30% 78%, 85% 83%, 45% 87%, 95% 92%, 40% 96%, 70% 100%, 0 100%); }
.torn .note { top: 40%; }
.torn h1 { font-size: var(--t-xl); line-height: .98; letter-spacing: -.048em; max-width: 13ch; margin-left: -.04em; }
.torn .back { margin-top: 32px; font-size: 19px; font-weight: 600; }

/* ---------------------------------------------------------------------------------------------------------------
   App screens, rebuilt in HTML from the iOS app (ios/Nasiya: Theme.swift, CustomersView, ReportView, widgets).
   The frame is Apple's iPhone 18 Pro (Silver) from Apple Design Resources, flattened with the app's grey screen
   so the bezel is only ever shown as part of a mock-up. Every size inside is in iOS points: --u is one point of a
   402 pt wide screen, so the screens scale as one image. */
.iphone { position: relative; aspect-ratio: 900 / 1840; container-type: inline-size; }
.iphone .bezel { display: block; width: 100%; height: auto; }
.iphone .screen { position: absolute; left: 5.26%; top: 2.5%; width: 89.48%; height: 95%; overflow: hidden; border-radius: 13.4cqi;
  container-type: inline-size; }
.app { --u: calc(100cqi / 402); --sf: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Onest", system-ui, sans-serif;
  --rounded: ui-rounded, "SF Pro Rounded", -apple-system, "Onest", system-ui, sans-serif;
  --bg: #F2F2F7; --card: #fff; --fg: #000; --mfg: #8A8A8E; --sep: #D8D8DC; --red: #FF3B30; --green: #28A745; --blue: #007AFF;
  background: var(--bg); color: var(--fg); font-family: var(--sf); font-size: calc(15 * var(--u)); line-height: 1.25;
  letter-spacing: -.01em; font-variant-numeric: tabular-nums; text-align: left; user-select: none; -webkit-user-select: none; }
.app svg.ic { width: calc(22 * var(--u)); height: calc(22 * var(--u)); flex: none; }
.app .sbar { position: absolute; inset: 0 0 auto; height: calc(54 * var(--u)); z-index: 3; }
.app .clock { position: absolute; left: calc(52 * var(--u)); top: calc(19 * var(--u)); font-size: calc(17 * var(--u)); font-weight: 600; letter-spacing: -.02em; }
.app .island { position: absolute; left: calc(154.8 * var(--u)); top: calc(14.3 * var(--u)); width: calc(92.5 * var(--u)); height: calc(35.7 * var(--u));
  border-radius: 99px; background: #000; }
.app .sicons { position: absolute; right: calc(30 * var(--u)); top: calc(22 * var(--u)); display: flex; align-items: center; gap: calc(6 * var(--u)); }
.app .sicons svg { height: calc(12 * var(--u)); width: auto; fill: currentColor; }
.app .batt { position: relative; width: calc(26 * var(--u)); height: calc(12.5 * var(--u)); border: calc(1.2 * var(--u)) solid rgb(0 0 0 / .4);
  border-radius: calc(4 * var(--u)); padding: calc(1.5 * var(--u)); }
.app .batt i { display: block; height: 100%; width: 82%; border-radius: calc(2 * var(--u)); background: currentColor; }
.app .nav { position: absolute; top: calc(58 * var(--u)); left: calc(20 * var(--u)); right: calc(16 * var(--u)); display: flex; align-items: center; gap: calc(10 * var(--u)); }
.app .ltitle { font-size: calc(34 * var(--u)); font-weight: 700; letter-spacing: -.025em; margin-right: auto; }
.app .rbtn { width: calc(44 * var(--u)); height: calc(44 * var(--u)); border-radius: 50%; display: grid; place-items: center; color: var(--blue);
  background: rgb(255 255 255 / .9); box-shadow: 0 calc(1 * var(--u)) calc(6 * var(--u)) rgb(0 0 0 / .08), inset 0 0 0 calc(.5 * var(--u)) rgb(0 0 0 / .06); }
.app .search { position: absolute; top: calc(116 * var(--u)); left: calc(20 * var(--u)); right: calc(20 * var(--u)); height: calc(44 * var(--u));
  border-radius: 99px; background: rgb(118 118 128 / .12); display: flex; align-items: center; gap: calc(8 * var(--u)); padding: 0 calc(14 * var(--u));
  color: var(--mfg); font-size: calc(17 * var(--u)); }
.app .search svg.ic { width: calc(20 * var(--u)); height: calc(20 * var(--u)); color: #3C3C43; }

/* customers list */
.app .list { position: absolute; top: calc(176 * var(--u)); left: calc(16 * var(--u)); right: calc(16 * var(--u)); --row: calc(63 * var(--u)); }
.app .list-bg { position: absolute; inset: 0 0 auto; height: calc(9 * var(--row) + 8 * var(--u)); background: var(--card); border-radius: calc(26 * var(--u)); }
.app .row { position: relative; height: var(--row); display: flex; align-items: center; gap: calc(12 * var(--u)); padding: 0 calc(16 * var(--u)); top: calc(4 * var(--u)); }
.app .row + .row::before { content: ""; position: absolute; top: 0; left: calc(68 * var(--u)); right: 0; height: calc(.5 * var(--u)); background: var(--sep); }
.app .av { position: relative; flex: none; width: calc(40 * var(--u)); height: calc(40 * var(--u)); border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(#A5ABB6, #858994); color: #fff; font: 600 calc(16 * var(--u)) / 1 var(--rounded); letter-spacing: 0; }
.app .av i { position: absolute; right: 0; bottom: 0; width: calc(10.4 * var(--u)); height: calc(10.4 * var(--u)); border-radius: 50%; background: var(--red);
  box-shadow: 0 0 0 calc(2 * var(--u)) var(--card); }
.app .who, .app .amt { display: flex; flex-direction: column; gap: calc(4 * var(--u)); min-width: 0; }
.app .amt { margin-left: auto; align-items: flex-end; }
.app .nm { font-weight: 500; white-space: nowrap; }
.app .chip { align-self: flex-start; font-size: calc(12 * var(--u)); font-weight: 500; color: var(--red); background: rgb(255 59 48 / .15);
  padding: calc(3 * var(--u)) calc(8 * var(--u)); border-radius: 99px; white-space: nowrap; }
.app .sm { font-weight: 600; white-space: nowrap; }
.app .tm { font-size: calc(13 * var(--u)); color: var(--mfg); white-space: nowrap; }

/* bottom chrome: the voice button and the tab bar float as glass */
.app .voicebar, .app .tabbar { position: absolute; left: calc(16 * var(--u)); right: calc(16 * var(--u)); z-index: 2; border-radius: 99px;
  background: rgb(255 255 255 / .78); -webkit-backdrop-filter: blur(10px) saturate(1.6); backdrop-filter: blur(10px) saturate(1.6);
  box-shadow: 0 calc(4 * var(--u)) calc(18 * var(--u)) rgb(0 0 0 / .1), inset 0 0 0 calc(.5 * var(--u)) rgb(0 0 0 / .06); }
.app .voicebar { bottom: calc(104 * var(--u)); height: calc(50 * var(--u)); display: flex; align-items: center; justify-content: center; gap: calc(8 * var(--u));
  font-size: calc(17 * var(--u)); font-weight: 600; }
.app .voicebar svg.ic { color: var(--red); }
.app .tabbar { bottom: calc(26 * var(--u)); height: calc(64 * var(--u)); display: grid; grid-template-columns: repeat(4, 1fr); padding: calc(4 * var(--u)); }
.app .tab { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(2 * var(--u)); border-radius: 99px;
  font-size: calc(10 * var(--u)); font-weight: 600; color: #1C1C1E; }
.app .tab svg.ic { width: calc(26 * var(--u)); height: calc(26 * var(--u)); }
.app .tab.on { color: var(--blue); background: rgb(118 118 128 / .14); }
.app .badge { position: absolute; top: calc(4 * var(--u)); left: 56%; min-width: calc(19 * var(--u)); height: calc(19 * var(--u)); padding: 0 calc(5 * var(--u));
  border-radius: 99px; background: var(--red); color: #fff; font: 600 calc(12 * var(--u)) / calc(19 * var(--u)) var(--sf); text-align: center; }
.app::after { content: ""; position: absolute; left: 50%; bottom: calc(8 * var(--u)); width: calc(134 * var(--u)); height: calc(5 * var(--u)); translate: -50% 0;
  border-radius: 99px; background: #000; z-index: 3; }

/* report */
.app .redcard { position: absolute; top: calc(118 * var(--u)); left: calc(16 * var(--u)); right: calc(16 * var(--u)); padding: calc(20 * var(--u));
  border-radius: calc(24 * var(--u)); color: #fff; overflow: hidden;
  background: radial-gradient(calc(280 * var(--u)) at 0 0, rgb(255 255 255 / .35), transparent), linear-gradient(135deg, #FF6B63, #E3101C); }
.app .rc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: calc(26 * var(--u)); font-size: calc(13 * var(--u)); font-weight: 500; opacity: .9; }
.app .rc-top img { height: calc(18 * var(--u)); width: auto; }
.app .rc-k { display: block; font-size: calc(15 * var(--u)); opacity: .85; }
.app .rc-v { display: block; font: 700 calc(38 * var(--u)) / 1.1 var(--rounded); letter-spacing: -.02em; margin-top: calc(2 * var(--u)); }
.app .rc-v small { font: 600 calc(20 * var(--u)) var(--rounded); opacity: .8; margin-left: calc(4 * var(--u)); }
.app .rc-row { display: flex; gap: calc(28 * var(--u)); margin-top: calc(12 * var(--u)); font-size: calc(15 * var(--u)); font-weight: 600; white-space: nowrap; }
.app .rc-row small { display: block; font-size: calc(12 * var(--u)); font-weight: 400; opacity: .75; }
.app .seg { position: absolute; top: calc(346 * var(--u)); left: calc(16 * var(--u)); right: calc(16 * var(--u)); height: calc(34 * var(--u)); display: grid;
  grid-template-columns: repeat(3, 1fr); padding: calc(2 * var(--u)); border-radius: 99px; background: rgb(118 118 128 / .12); font-size: calc(13 * var(--u)); font-weight: 500; }
.app .seg > span { display: grid; place-items: center; border-radius: 99px; }
.app .seg .on { background: #fff; box-shadow: 0 calc(2 * var(--u)) calc(6 * var(--u)) rgb(0 0 0 / .1); font-weight: 600; }
.app .chart { position: absolute; top: calc(396 * var(--u)); left: calc(16 * var(--u)); right: calc(16 * var(--u)); height: calc(300 * var(--u));
  background: var(--card); border-radius: calc(22 * var(--u)); padding: calc(16 * var(--u)); display: flex; flex-direction: column; }
.app .legend { display: flex; gap: calc(16 * var(--u)); }
.app .legend small { display: flex; align-items: center; gap: calc(5 * var(--u)); font-size: calc(12 * var(--u)); color: var(--mfg); }
.app .legend b { font: 700 calc(20 * var(--u)) / 1.2 var(--rounded); letter-spacing: -.02em; white-space: nowrap; }
.app .legend b small { display: inline; font: 600 calc(11 * var(--u)) var(--rounded); }
.app .dot { width: calc(7 * var(--u)); height: calc(7 * var(--u)); border-radius: 50%; }
.app .dot.r { background: var(--red); } .app .dot.g { background: var(--green); }
.app .bars { flex: 1; display: grid; grid-template-columns: repeat(30, 1fr); align-items: end; gap: calc(2 * var(--u)); margin-top: calc(14 * var(--u));
  border-bottom: calc(.5 * var(--u)) solid var(--sep); padding-bottom: calc(2 * var(--u)); }
.app .bars .d { display: flex; align-items: flex-end; gap: calc(1 * var(--u)); height: 100%; }
.app .bars i { flex: 1; height: calc(var(--h) * 100% + 2 * var(--u)); border-radius: calc(3 * var(--u)) calc(3 * var(--u)) 0 0; transform-origin: 50% 100%; }
.app .bars .g { background: var(--red); } .app .bars .r { background: var(--green); }
.app .axis { display: flex; justify-content: space-between; margin-top: calc(6 * var(--u)); font-size: calc(11 * var(--u)); color: var(--mfg); }

/* home screen with the three widgets */
.is-home .app { color: #fff;
  background: radial-gradient(70% 45% at 85% 20%, #E9DFD2, transparent 70%), radial-gradient(80% 60% at 10% 75%, #7C6F63, transparent 70%),
    radial-gradient(60% 40% at 70% 85%, #3F3A36, transparent 70%), linear-gradient(160deg, #CFC3B4, #8D7F72 50%, #2E2B29); }
.is-home .sbar { color: #fff; } .is-home .batt { border-color: rgb(255 255 255 / .5); }
.app .home { position: absolute; inset: calc(64 * var(--u)) calc(26 * var(--u)) 0; display: flex; flex-direction: column; align-items: stretch; }
.app .wg { height: calc(158 * var(--u)); border-radius: calc(24 * var(--u)); background: #fff; color: #000; padding: calc(14 * var(--u)) calc(16 * var(--u));
  box-shadow: 0 calc(6 * var(--u)) calc(20 * var(--u)) rgb(0 0 0 / .14); }
.app .wg-l { display: block; text-align: center; font-size: calc(12 * var(--u)); font-weight: 500; margin: calc(6 * var(--u)) 0 calc(14 * var(--u)); text-shadow: 0 1px 2px rgb(0 0 0 / .3); }
.app .wg-h { display: flex; align-items: center; gap: calc(6 * var(--u)); font-size: calc(13 * var(--u)); font-weight: 600; color: var(--mfg); }
.app .wg-h svg.ic { width: calc(16 * var(--u)); height: calc(16 * var(--u)); }
.app .wg-h.red { color: #E3101C; }
.app .qa { display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(10 * var(--u)); margin-top: calc(10 * var(--u)); height: calc(104 * var(--u)); }
.app .q { border-radius: calc(16 * var(--u)); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(6 * var(--u));
  font-size: calc(15 * var(--u)); font-weight: 600; }
.app .q svg.ic { width: calc(26 * var(--u)); height: calc(26 * var(--u)); }
.app .q.red { background: linear-gradient(#F0303A, #D80F1A); } .app .q.blue { background: linear-gradient(#2E95FF, #0A6FE8); }
.app .q.indigo { background: linear-gradient(#7B79F0, #5856D6); }
.app .late-sum { display: flex; align-items: baseline; justify-content: space-between; margin: calc(4 * var(--u)) 0 calc(6 * var(--u)); }
.app .late-sum b { font: 700 calc(26 * var(--u)) / 1.2 var(--rounded); letter-spacing: -.02em; }
.app .late-sum b small, .app .ow-l b small { font: 600 calc(14 * var(--u)) var(--rounded); color: var(--mfg); margin-left: calc(4 * var(--u)); }
.app .late-sum > span { font-size: calc(13 * var(--u)); color: var(--mfg); }
.app .li { display: flex; align-items: center; gap: calc(8 * var(--u)); height: calc(38 * var(--u)); font-size: calc(14 * var(--u)); font-weight: 600; }
.app .li + .li { border-top: calc(.5 * var(--u)) solid var(--sep); }
.app .li > span:first-child { margin-right: auto; }
.app .li > span:nth-child(2) { font-weight: 500; }
.app .li em { font-style: normal; font-size: calc(12 * var(--u)); color: #E3101C; background: rgb(255 59 48 / .14); padding: calc(2 * var(--u)) calc(7 * var(--u)); border-radius: 99px; }
.app .wg.owed { display: grid; grid-template-columns: 1fr 1.15fr; gap: calc(12 * var(--u)); color: #fff;
  background: radial-gradient(calc(260 * var(--u)) at 0 0, rgb(255 255 255 / .3), transparent), linear-gradient(135deg, #FF6B63, #E3101C); }
.app .owed .wg-h { color: rgb(255 255 255 / .9); }
.app .ow-l { display: flex; flex-direction: column; }
.app .ow-l b { font: 700 calc(32 * var(--u)) / 1.1 var(--rounded); letter-spacing: -.02em; margin-top: auto; }
.app .ow-l b small { color: rgb(255 255 255 / .8); }
.app .ow-n { font-size: calc(12 * var(--u)); opacity: .85; }
.app .ow-c { align-self: flex-start; display: flex; align-items: center; gap: calc(4 * var(--u)); margin-top: calc(10 * var(--u)); padding: calc(4 * var(--u)) calc(9 * var(--u));
  border-radius: 99px; background: rgb(255 255 255 / .22); font-size: calc(12 * var(--u)); font-weight: 600; white-space: nowrap; }
.app .ow-c svg.ic { width: calc(13 * var(--u)); height: calc(13 * var(--u)); }
.app .ow-r { display: flex; flex-direction: column; justify-content: center; }
.app .ow-r > span { display: flex; justify-content: space-between; gap: calc(6 * var(--u)); height: calc(40 * var(--u)); align-items: center; font-size: calc(13 * var(--u)); white-space: nowrap; }
.app .ow-r > span + span { border-top: calc(.5 * var(--u)) solid rgb(255 255 255 / .3); }
.app .ow-r b { font-weight: 600; }
.app .spot { align-self: center; display: flex; align-items: center; gap: calc(5 * var(--u)); margin-top: calc(4 * var(--u)); padding: calc(6 * var(--u)) calc(12 * var(--u));
  border-radius: 99px; background: rgb(255 255 255 / .22); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: calc(13 * var(--u)); font-weight: 500; }
.app .spot svg.ic { width: calc(14 * var(--u)); height: calc(14 * var(--u)); }
.app .dock { position: absolute; left: calc(-14 * var(--u)); right: calc(-14 * var(--u)); bottom: calc(18 * var(--u)); height: calc(94 * var(--u)); border-radius: calc(38 * var(--u));
  background: rgb(255 255 255 / .2); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); display: flex; align-items: center; justify-content: center; }
.app .dock img { width: calc(64 * var(--u)); height: calc(64 * var(--u)); border-radius: calc(15 * var(--u)); }
.is-home .app::after { background: #fff; }
.app .ow-r i { font-style: normal; white-space: nowrap; flex: none; }
.app .ow-r b { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* problems: the notebook's trouble written by hand and crossed out, the app's answer typeset beside it */
.problems-section { padding-block: clamp(80px, 11vw, 150px) clamp(24px, 4vw, 56px); }
.problems-section > .wrap > .note { top: .5em; }
.ledger-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; margin-top: 48px; padding-bottom: 10px;
  border-bottom: 2px solid var(--ink); }
.ledger-head > span:first-child { font: 600 24px/1 var(--hand); color: var(--margin); }
.ledger-head > span:last-child { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; align-self: end; }
.problems { list-style: none; margin: 0; padding: 0; }
.problems li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 10px 32px; align-items: start;
  padding-block: 26px; border-bottom: 1px solid var(--line); }
.was { position: relative; font: 600 clamp(22px, 1.1rem + .6vw, 28px)/1.15 var(--hand); color: var(--pen); padding-right: 12px; }
/* the strike is a background on the inline text, so it runs through line one, then line two, like a pen */
.was .hand { background: linear-gradient(var(--margin) 0 0) 0 58% / 100% 3px no-repeat; }
.now h3 { font-size: var(--t-m); line-height: 1.15; letter-spacing: -.02em; font-weight: 700; }
.now p { color: var(--muted); margin-top: 8px; max-width: 52ch; }
@media (max-width: 720px) {
  .ledger-head { display: none; }
  .problems { border-top: 2px solid var(--ink); margin-top: 36px; }
  .problems li { grid-template-columns: minmax(0, 1fr); padding-block: 22px; }
}

/* everything in the app: groups ticked off in pen, the way a checklist is kept in a notebook */
.all-section { padding-block: clamp(64px, 9vw, 130px) 0; }
.all-section > .wrap > .note { top: .5em; }
.all { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; }
.all > li { border-top: 2px solid var(--ink); padding-top: 16px; }
.all h3 { font-size: 20px; font-weight: 700; letter-spacing: -.015em; }
.all ul { list-style: none; margin: 12px 0 0; padding: 0; }
.all ul li { position: relative; padding: 7px 0 7px 30px; border-bottom: 1px solid var(--line); line-height: 1.4; }
.all ul li::before { content: "✓"; position: absolute; left: 4px; top: 3px; font: 600 22px/1.2 var(--hand); color: var(--pen); }
@media (max-width: 1080px) { .all { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .all { grid-template-columns: minmax(0, 1fr); gap: 32px; } }

/* hero phone: the 2.x receipt design (warm paper page, white receipt card, mono amounts), as in the store listing. Same hooks as before for the
   notebook animation: [data-list], .list-bg and .row[data-new]. */
.chek { --bg: #FAF9F6; --ink: #202124; --muted: #777980; --red: #E73A36; --late: #E52521;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace; background: var(--bg); color: var(--ink); font-family: "Onest", var(--sf); }
.chek .sbar { color: var(--ink); } .chek .batt { border-color: rgb(0 0 0 / .4); }
.chek svg.ic { width: calc(23 * var(--u)); height: calc(23 * var(--u)); }
.chek .ck-top { position: absolute; top: calc(76 * var(--u)); left: calc(22 * var(--u)); right: calc(18 * var(--u)); display: flex; align-items: center; }
.chek .ck-shop { font-size: calc(14 * var(--u)); font-weight: 600; color: var(--muted); margin-right: auto; }
.chek .ck-icons { display: flex; gap: calc(23 * var(--u)); color: var(--ink); }
.chek .ck-title { position: absolute; top: calc(116 * var(--u)); left: calc(20 * var(--u)); right: calc(14 * var(--u)); display: flex; align-items: center; }
.chek .ck-h { font-size: calc(36 * var(--u)); font-weight: 800; letter-spacing: -.035em; margin-right: auto; }
.chek .ck-stamp { color: var(--red); border: calc(2.6 * var(--u)) solid var(--red); border-radius: calc(9 * var(--u)); padding: calc(4 * var(--u)) calc(10 * var(--u));
  font-size: calc(15 * var(--u)); font-weight: 800; letter-spacing: .02em; text-transform: uppercase; rotate: -7deg; white-space: nowrap; }
.chek .ck-chips { position: absolute; top: calc(178 * var(--u)); left: calc(16 * var(--u)); display: flex; gap: calc(8 * var(--u)); white-space: nowrap; }
.chek .ck-chips > span { height: calc(40 * var(--u)); padding: 0 calc(15 * var(--u)); border-radius: 99px; display: grid; place-items: center;
  box-shadow: inset 0 0 0 calc(1 * var(--u)) #E3E1DD; font-size: calc(15 * var(--u)); font-weight: 600; }
.chek .ck-chips > span:empty { width: calc(30 * var(--u)); padding: 0; }
.chek .ck-chips > .on { background: #3F4044; color: #fff; box-shadow: none; }
.chek .list { top: calc(232 * var(--u)); --row: calc(55.5 * var(--u)); }
.chek .list-bg { height: auto; bottom: auto; inset: 0 0 auto; height: calc(9 * var(--row) + 70 * var(--u)); border-radius: calc(16 * var(--u)); background: #fff; box-shadow: 0 0 0 calc(1 * var(--u)) #EAE8E5; }
.chek .ck-head { position: relative; display: flex; justify-content: space-between; margin: 0 calc(18 * var(--u)); height: calc(46 * var(--u)); align-items: center;
  border-bottom: calc(1 * var(--u)) dashed #C7C7CC; font: 500 calc(12 * var(--u)) / 1 var(--mono); color: var(--muted); letter-spacing: .04em; }
.chek .row { top: calc(8 * var(--u)); height: var(--row); display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; align-content: center;
  column-gap: calc(8 * var(--u)); row-gap: calc(2 * var(--u)); padding: 0 calc(18 * var(--u)); color: var(--ink); }
.chek .row + .row::before { display: none; }
.chek .nm { font-size: calc(17.5 * var(--u)); font-weight: 600; }
.chek .lead { align-self: center; height: calc(2 * var(--u)); background: radial-gradient(circle, #C7C7CC calc(.9 * var(--u)), transparent calc(1 * var(--u))) 0 50% / calc(5 * var(--u)) 100% repeat-x; }
.chek .sm { font: 700 calc(18 * var(--u)) / 1 var(--mono); letter-spacing: -.02em; }
.chek .late { grid-column: 1 / -1; font-size: calc(13 * var(--u)); font-weight: 500; color: var(--late); }
.chek .ck-fab { position: absolute; right: calc(16 * var(--u)); bottom: calc(118 * var(--u)); z-index: 2; height: calc(56 * var(--u)); padding: 0 calc(20 * var(--u));
  border-radius: calc(18 * var(--u)); background: var(--red); color: #fff; display: flex; align-items: center; gap: calc(8 * var(--u));
  font-size: calc(18 * var(--u)); font-weight: 700; box-shadow: 0 calc(8 * var(--u)) calc(20 * var(--u)) rgb(229 37 33 / .3); }
.chek .tabbar { left: calc(52 * var(--u)); right: calc(55 * var(--u)); bottom: calc(46 * var(--u)); height: calc(60 * var(--u)); padding: calc(4 * var(--u));
  background: rgb(79 80 83 / .96); box-shadow: 0 calc(6 * var(--u)) calc(20 * var(--u)) rgb(0 0 0 / .18); }
.chek .tab { color: #B9B9BA; font-size: calc(11 * var(--u)); font-weight: 500; }
.chek .tab.on { color: #fff; font-weight: 700; background: none; }
.chek::after { background: #000; opacity: .25; }

/* phones that show a real screenshot of the app (the island is drawn on top: simulator shots leave it out) */
.shot img, .shot video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shot::after { display: none; }
