/* J Quick — same ink-on-paper family as the J-Code sites.
   System fonts only. Plain workshop style: no gradients, no pills. */
/* Burmese must never rely on device font fallback — some phones render
   canonical Unicode Burmese unshaped (marks in storage order) when the
   fallback font lacks Myanmar layout tables. Self-hosted Padauk (the
   SarOak reader default) covers the Myanmar ranges only; Latin text
   keeps the stack below. */
@font-face {
  font-family: "Padauk Web";
  src: url("fonts/padauk-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+1000-109F, U+AA60-AA7F;
}
@font-face {
  font-family: "Padauk Web";
  src: url("fonts/padauk-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
  unicode-range: U+1000-109F, U+AA60-AA7F;
}
:root {
  --paper: #f7f4ee;
  --ink: #211d19;
  --muted: #6f695e;
  --line: #d9d2c4;
  --accent: #a63a26;
  --card: #fffdf8;
  --ok: #3d7a3a;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Padauk Web", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans Myanmar", "Pyidaungsu", "Padauk", "Myanmar Sangam MN", "Myanmar Text", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}
.page {
  max-width: 680px;
  margin: 0 auto;
  padding: 56px 22px 48px;
}
.kicker {
  margin: 0 0 14px;
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
h1 {
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-size: 48px;
  line-height: 1.1;
  font-weight: 600;
  margin: 0 0 12px;
}
.standfirst {
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-size: 21px;
  line-height: 1.4;
  margin: 0 0 10px;
}
.byline { margin: 0 0 18px; color: var(--muted); font-size: 15.5px; }
.hero { padding-bottom: 30px; border-bottom: 2px solid var(--ink); }
.block { padding: 30px 0 10px; border-bottom: 1px solid var(--line); }
.block:last-of-type { border-bottom: none; }
h2 {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin: 0 0 16px;
}
.block p { margin: 0 0 14px; }
a { color: var(--accent); text-decoration: none; border-bottom: 1px solid #d8a294; }
a:hover { border-bottom-color: var(--accent); }

/* Buttons + notes (download section) */
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 6px; }
.actions.big { margin: 16px 0 8px; }
.btn {
  font: inherit;
  font-weight: 600;
  font-size: 15.5px;
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  border-radius: 4px;
  padding: 9px 18px;
  cursor: pointer;
}
.btn:hover { filter: brightness(1.07); }
a.btn { border-bottom: 1px solid var(--accent); }
.note { font-size: 14.5px; color: var(--muted); }
.dl-arrow { display: inline-block; animation: dlbounce 1.6s ease-in-out infinite; }
@keyframes dlbounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

.foot {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 2px solid var(--ink);
  font-size: 14px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  justify-content: space-between;
}
.foot p { margin: 0; }
.foot a { color: var(--muted); border-bottom-color: var(--line); }

/* Animated walkthrough — pure CSS/SVG, no libraries.
   Base states are the finished picture, so with animations off
   (or reduced motion) every scene still reads correctly. */
.flow { margin-top: 4px; }
.step {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 4px 18px;
  align-items: start;
  padding: 12px 0 2px;
}
.step .scene {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 6px;
  padding: 8px;
  min-width: 0;
}
.step .scene svg { display: block; width: 100%; height: auto; }
.step h3 { font-size: 16.5px; margin: 2px 0 6px; font-weight: 700; }
.step p { margin: 0; color: #35302a; }
.farrow {
  margin-left: 78px;
  font-size: 20px;
  line-height: 1.2;
  color: var(--accent);
  animation: arrowpulse 1.8s ease-in-out infinite;
}
@keyframes arrowpulse {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(3px); }
}

/* Step 1 — record lines fill in, then the done check appears */
.ln { opacity: 1; animation: typing 6s ease-in-out infinite; }
.ln2 { animation-delay: 0.6s; }
.ln3 { animation-delay: 1.2s; }
@keyframes typing {
  0% { opacity: 0; }
  10%, 82% { opacity: 1; }
  94%, 100% { opacity: 0; }
}
.ck { opacity: 1; animation: checkin 6s ease-in-out infinite; }
@keyframes checkin {
  0%, 34% { opacity: 0; }
  44%, 88% { opacity: 1; }
  98%, 100% { opacity: 0; }
}

/* Step 2 — paper prints out of the slot, sticker appears, light blinks */
.paper { transform: translateY(2px); animation: printout 5s ease-in-out infinite; }
@keyframes printout {
  0% { transform: translateY(-18px); }
  45%, 82% { transform: translateY(2px); }
  100% { transform: translateY(-18px); }
}
.sticker { opacity: 1; animation: stickerin 5s ease-in-out infinite; }
@keyframes stickerin {
  0%, 42% { opacity: 0; }
  56%, 86% { opacity: 1; }
  100% { opacity: 0; }
}
.blink { animation: blinkdot 1.2s ease-in-out infinite; }
@keyframes blinkdot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

/* Step 3 — scan line sweeps the QR, viewfinder corners pulse */
.scanline { animation: scanmove 2.4s ease-in-out infinite; }
@keyframes scanmove {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(40px); }
}
.corner { animation: cornerpulse 2.4s ease-in-out infinite; }
@keyframes cornerpulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* Step 4 — record rows arrive one by one */
.rrow { opacity: 1; animation: rowin 7s ease-in-out infinite; }
.rrow.r2 { animation-delay: 0.45s; }
.rrow.r3 { animation-delay: 0.9s; }
.rrow.r4 { animation-delay: 1.35s; }
.rrow.r5 { animation-delay: 1.8s; }
@keyframes rowin {
  0% { opacity: 0; transform: translateX(-5px); }
  12%, 84% { opacity: 1; transform: translateX(0); }
  96%, 100% { opacity: 0; transform: translateX(0); }
}

/* Drive auto-save scene — dots carry the receipt to Drive, then a
   new row lands in the sheet. Dots are decorative (base hidden);
   the sheet row is content (base visible). */
.scene-wide {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 6px;
  padding: 10px;
  max-width: 560px;
  margin: 2px 0 16px;
}
.scene-wide svg { display: block; width: 100%; height: auto; }
.travel-dot { opacity: 0; animation: travel1 4.8s ease-in-out infinite; }
@keyframes travel1 {
  0% { opacity: 0; transform: translateX(0); }
  8% { opacity: 1; }
  28% { opacity: 1; transform: translateX(64px); }
  34%, 100% { opacity: 0; transform: translateX(64px); }
}
.travel-dot2 { opacity: 0; animation: travel2 4.8s ease-in-out infinite; }
@keyframes travel2 {
  0%, 34% { opacity: 0; transform: translate(0, 0); }
  42% { opacity: 1; }
  58% { opacity: 1; transform: translate(38px, 16px); }
  64%, 100% { opacity: 0; transform: translate(38px, 16px); }
}
.sheet-newrow { opacity: 1; animation: sheetrow 4.8s ease-in-out infinite; }
@keyframes sheetrow {
  0%, 58% { opacity: 0; transform: translateY(-6px); }
  70%, 92% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .ln, .ck, .paper, .sticker, .blink, .scanline, .corner,
  .rrow, .farrow, .dl-arrow, .travel-dot, .travel-dot2,
  .sheet-newrow { animation: none; }
}

/* Printers section — cards sized to the layout, images contained */
.printers {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 12px;
}
@media (min-width: 640px) {
  .printers { grid-template-columns: 1fr 1fr; }
}
.pcard {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--card);
  min-width: 0;
}
.pcard .pimg {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px;
  text-align: center;
}
.pcard .pimg img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  width: auto;
  height: 168px;
  object-fit: contain;
}
.pcard h3 { margin: 10px 0 2px; font-size: 16px; }
.pcard .pspec { color: var(--muted); font-size: 13.5px; margin: 2px 0; }
.pcard p { margin: 8px 0 0; }

/* ---------- demo video ---------- */
.demo-frame {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  margin-top: 14px;
}
.demo-frame video {
  display: block;
  width: 100%;
  max-width: 330px;
  height: auto;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #141210;
}

@media (max-width: 560px) {
  .page { padding: 40px 18px 36px; }
  h1 { font-size: 38px; }
  .standfirst { font-size: 19px; }
  body { font-size: 16px; }
  .step { grid-template-columns: 1fr; }
  .step .scene { max-width: 230px; }
  .farrow { margin-left: 104px; }
}
