/* cashnama.com: shared styles for every page. Plain CSS, no build step, no third-party requests
   (fonts are served from /assets/fonts; OFL licences sit next to them). */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Courier Prime";
  src: url("/assets/fonts/courier-prime-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Courier Prime";
  src: url("/assets/fonts/courier-prime-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --green: #014b38;
  --green-deep: #00362a;
  --slot: #00261d;
  --brass: #e8a317;
  --brass-ink: #1f1500;
  --ink: #12241d;
  --ink-soft: #4a5c55;
  --page: #ffffff;
  --mint: #eef4f1;
  --line: #d6e2dc;
  --link: #036b4e;
  --on-green: #ffffff;
  --on-green-soft: #bcd9cc;
  --paper: #fdfdfb;
  --thermal: #2a2f2c;
  --frame: #f4f6f5;
  --frame-ink: #33433c;
  --shot-shadow: 0 1px 2px rgba(0, 38, 29, .08), 0 18px 48px -12px rgba(0, 38, 29, .28);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --green: #063f30;
    --green-deep: #032a20;
    --slot: #011812;
    --ink: #e4ece8;
    --ink-soft: #a2b4ac;
    --page: #0d1613;
    --mint: #12201b;
    --line: #23332d;
    --link: #62d3a6;
    --frame: #1c2924;
    --frame-ink: #c7d4ce;
    --shot-shadow: 0 18px 48px -12px rgba(0, 0, 0, .6);
  }
}
:root[data-theme="dark"] {
  --green: #063f30;
  --green-deep: #032a20;
  --slot: #011812;
  --ink: #e4ece8;
  --ink-soft: #a2b4ac;
  --page: #0d1613;
  --mint: #12201b;
  --line: #23332d;
  --link: #62d3a6;
  --frame: #1c2924;
  --frame-ink: #c7d4ce;
  --shot-shadow: 0 18px 48px -12px rgba(0, 0, 0, .6);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Archivo", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  font-stretch: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; font-weight: 800; font-stretch: 84%; letter-spacing: -.006em; word-spacing: .06em; line-height: 1.04; }
h2 { font-size: clamp(30px, 3.6vw, 44px); }
h3 { font-size: 24px; font-stretch: 88%; font-weight: 750; line-height: 1.15; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 10; padding: 8px 14px; border-radius: 8px; background: var(--brass); color: var(--brass-ink); font-weight: 700; }
.skip:focus { top: 12px; }

/* Masthead (all pages) */
.masthead { background: var(--green); color: var(--on-green); }
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; font-weight: 800; font-size: 23px; font-stretch: 88%; letter-spacing: -.01em; }
.logo img { width: 38px; height: 38px; border-radius: 9px; }
.logo b { color: var(--brass); font-weight: inherit; }
.nav { display: flex; align-items: center; gap: 26px; font-size: 16px; }
.nav a { color: var(--on-green-soft); text-decoration: none; }
.nav a:hover { color: var(--on-green); }
.nav .btn { color: var(--brass-ink); }
@media (max-width: 720px) { .nav .text { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 22px; border-radius: 9px;
  font: inherit; font-weight: 700; font-size: 16px; line-height: 1.2; text-decoration: none; white-space: nowrap;
}
.btn svg { width: 19px; height: 19px; flex: none; }
.btn.small { padding: 9px 15px; font-size: 15px; }
.btn.brass { background: var(--brass); color: var(--brass-ink); }
.btn.brass:hover { background: #f0b232; }
.btn.ghost { color: var(--on-green); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .4); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .8); }

/* Footer (all pages) */
.site-foot { background: var(--green-deep); color: var(--on-green-soft); font-size: 15px; }
.site-foot .wrap { display: grid; gap: 28px; padding-top: 48px; padding-bottom: 40px; grid-template-columns: 1fr; }
.site-foot .logo { color: var(--on-green); font-size: 21px; }
.site-foot .logo img { width: 32px; height: 32px; }
.site-foot p { margin-top: 10px; max-width: 34ch; }
.site-foot nav { display: grid; gap: 8px; align-content: start; }
.site-foot nav a { color: var(--on-green); text-decoration: none; }
.site-foot nav a:hover { text-decoration: underline; }
.site-foot .heading { color: var(--on-green-soft); font-weight: 600; margin-bottom: 2px; }
.site-foot .legal { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 18px; }
@media (min-width: 760px) { .site-foot .wrap { grid-template-columns: 2fr 1fr 1fr 1fr; } }

/* ---------- Homepage ---------- */

/* Hero */
.hero { background: var(--green); color: var(--on-green); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1fr; gap: 44px; padding-top: 40px; padding-bottom: 72px; }
.hero h1 { font-size: clamp(40px, 6.2vw, 70px); max-width: 13ch; }
.hero .lede { margin-top: 22px; color: var(--on-green-soft); font-size: 19px; max-width: 44ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero .fine { margin-top: 22px; font-size: 15px; color: var(--on-green-soft); }
@media (min-width: 900px) {
  .hero .wrap { grid-template-columns: 1.2fr .8fr; gap: 56px; padding-top: 64px; padding-bottom: 96px; align-items: start; }
  .hero .copy { padding-top: 36px; }
}

/* The till slip: the one moment of motion on the site. It prints once, when the page opens. */
.till { position: relative; width: min(100%, 360px); justify-self: center; }
.slot { height: 16px; border-radius: 8px; background: var(--slot); box-shadow: inset 0 3px 6px rgba(0, 0, 0, .55), 0 1px 0 rgba(255, 255, 255, .08); }
.paper-run { margin: -8px 12px 0; overflow: hidden; padding-bottom: 26px; }
.paper-shadow { filter: drop-shadow(0 12px 18px rgba(0, 20, 14, .45)); }
.receipt {
  --tooth: 14px;
  background: var(--paper);
  color: var(--thermal);
  font-family: "Courier Prime", "Courier New", monospace;
  font-size: 15px;
  line-height: 1.5;
  padding: 26px 22px calc(22px + var(--tooth) / 2);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / var(--tooth) 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / var(--tooth) 100%;
  animation: print 2.1s steps(21, end) .4s both;
}
@keyframes print { from { transform: translateY(-100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .receipt { animation: none; } }
.receipt .head { text-align: center; }
.receipt .shop { font-weight: 700; font-size: 21px; letter-spacing: .14em; }
.receipt .rule { border: 0; border-top: 2px dashed currentColor; opacity: .55; margin: 12px 0; }
.receipt .rule.double { border-top-style: double; border-top-width: 4px; }
.receipt .row { display: flex; justify-content: space-between; gap: 12px; }
.receipt .row.bold { font-weight: 700; }
.receipt .thanks { text-align: center; margin-top: 4px; }
.receipt .barcode {
  height: 40px; margin: 14px auto 2px; width: 82%;
  background: repeating-linear-gradient(90deg, currentColor 0 2px, transparent 2px 4px, currentColor 4px 5px, transparent 5px 8px, currentColor 8px 11px, transparent 11px 12px, currentColor 12px 13px, transparent 13px 16px);
  opacity: .9;
}
.receipt .small { text-align: center; font-size: 13px; letter-spacing: .2em; }

/* Bands */
.band { padding: 88px 0; }
.band.mint { background: var(--mint); }
.band .intro { max-width: 640px; }
.band .intro p { margin-top: 16px; color: var(--ink-soft); font-size: 19px; }

/* Screenshot in a Windows window */
.window { margin: 48px 0 0; border-radius: 12px; overflow: hidden; background: var(--frame); box-shadow: var(--shot-shadow); border: 1px solid var(--line); }
.titlebar { display: flex; align-items: center; gap: 9px; height: 40px; padding: 0 0 0 14px; font-size: 14px; color: var(--frame-ink); }
.titlebar img { width: 18px; height: 18px; border-radius: 4px; }
.titlebar .controls { margin-left: auto; display: flex; height: 100%; }
.titlebar .controls svg { width: 46px; height: 100%; padding: 13px 16px; stroke: currentColor; }
.window > img { width: 100%; border-top: 1px solid var(--line); }

.points { display: grid; gap: 22px; margin: 36px 0 0; padding: 0; list-style: none; grid-template-columns: 1fr; }
.points li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.points svg { width: 26px; height: 26px; color: var(--link); margin-top: 1px; }
.points b { display: block; font-weight: 700; }
.points span { color: var(--ink-soft); font-size: 16px; }
@media (min-width: 760px) { .points { grid-template-columns: repeat(3, 1fr); gap: 32px; } }

/* Feature rows: picture and words side by side, alternating */
.feature { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center; }
.feature + .feature { margin-top: 96px; }
.feature .words p { margin-top: 14px; color: var(--ink-soft); font-size: 18px; max-width: 46ch; }
.feature .words ul { margin: 16px 0 0; padding-left: 20px; color: var(--ink-soft); }
.feature .words li { margin: 6px 0; }
.feature .window { margin: 0; }
.tag { display: inline-block; margin-bottom: 12px; padding: 3px 11px; border-radius: 999px; background: var(--brass); color: var(--brass-ink); font-size: 14px; font-weight: 700; }
@media (min-width: 900px) {
  .feature { grid-template-columns: .9fr 1.1fr; gap: 64px; }
  .feature.flip .words { order: 2; }
  .feature.narrow-pic { grid-template-columns: 1.1fr .9fr; }
  .feature.narrow-pic.flip { grid-template-columns: .9fr 1.1fr; }
}

.sheet {
  max-width: 440px; margin: 0 auto; background: #fff; border-radius: 4px;
  box-shadow: var(--shot-shadow); transform: rotate(-1.6deg);
  max-height: 560px; overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 78%, transparent);
  mask-image: linear-gradient(#000 78%, transparent);
}
.phone {
  width: 270px; margin: 0 auto; padding: 9px; border-radius: 38px; background: #0f1a16;
  box-shadow: var(--shot-shadow);
}
.phone img { border-radius: 30px; height: 540px; width: 100%; object-fit: cover; object-position: top; }

/* Everyday features list */
.grid-list { display: grid; gap: 34px 40px; margin: 44px 0 0; padding: 0; list-style: none; grid-template-columns: 1fr; }
.grid-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; }
.grid-list .ic { width: 44px; height: 44px; border-radius: 11px; background: var(--mint); color: var(--link); display: grid; place-items: center; }
.band.mint .grid-list .ic { background: var(--page); }
.grid-list svg { width: 23px; height: 23px; }
.grid-list b { display: block; font-size: 18px; font-stretch: 92%; }
.grid-list span { color: var(--ink-soft); font-size: 16px; }
@media (min-width: 700px) { .grid-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .grid-list { grid-template-columns: repeat(3, 1fr); } }

/* Editions table */
.table-scroll { margin-top: 40px; overflow-x: auto; border-radius: 12px; border: 1px solid var(--line); background: var(--page); }
.editions { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 16px; }
.editions th, .editions td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.editions thead th { font-size: 22px; font-stretch: 85%; font-weight: 800; padding-top: 22px; }
.editions thead th span { display: block; font-size: 15px; font-weight: 400; font-stretch: 100%; color: var(--ink-soft); margin-top: 2px; }
.editions tbody th { font-weight: 500; width: 40%; }
.editions td { width: 20%; }
.editions .pro { background: rgba(232, 163, 23, .1); }
.editions thead .pro { box-shadow: inset 0 4px 0 var(--brass); }
.editions tbody tr:last-child th, .editions tbody tr:last-child td { border-bottom: 0; }
.editions thead th { border-bottom: 2px solid var(--line); }
.yes, .no { display: inline-flex; align-items: center; gap: 6px; }
.yes svg { width: 20px; height: 20px; color: var(--link); }
.no { color: var(--ink-soft); }
.no svg { width: 18px; height: 18px; }
.note { margin-top: 18px; color: var(--ink-soft); font-size: 16px; }

/* Google Drive explainer */
.split { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 900px) { .split { grid-template-columns: .85fr 1.15fr; gap: 64px; } }
.checks { margin: 0; padding: 0; list-style: none; display: grid; gap: 16px; }
.checks li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; }
.checks svg { width: 22px; height: 22px; color: var(--link); margin-top: 2px; }
code { font-family: Consolas, "Cascadia Mono", monospace; font-size: .88em; background: var(--mint); border-radius: 4px; padding: 1px 5px; overflow-wrap: anywhere; }

/* Questions */
.faq { margin-top: 36px; max-width: 820px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 20px 2px; font-size: 19px; font-weight: 650; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 22px; height: 22px; flex: none; margin-top: 3px; transition: transform .2s ease; color: var(--link); }
.faq details[open] summary svg { transform: rotate(45deg); }
@media (prefers-reduced-motion: reduce) { .faq summary svg { transition: none; } }
.faq details p { padding: 0 2px 22px; color: var(--ink-soft); max-width: 68ch; }

/* Closing call */
.closing { background: var(--green); color: var(--on-green); }
.closing .wrap { display: grid; gap: 28px; padding-top: 80px; padding-bottom: 80px; align-items: center; }
.closing p { margin-top: 14px; color: var(--on-green-soft); font-size: 19px; max-width: 46ch; }
@media (min-width: 860px) { .closing .wrap { grid-template-columns: 1fr auto; } }

/* ---------- Policy pages ---------- */
.doc { max-width: 760px; margin: 0 auto; padding: 56px 20px 80px; }
.doc h1 { font-size: clamp(36px, 5vw, 52px); }
.doc .updated { margin-top: 10px; color: var(--ink-soft); font-size: 15px; }
.doc > p, .doc li { font-size: 17px; }
.doc > p { margin-top: 16px; }
.doc h2 { font-size: 27px; margin: 52px 0 10px; padding-top: 20px; border-top: 1px solid var(--line); }
.doc h3 { font-size: 20px; margin: 28px 0 6px; }
.doc ul { padding-left: 22px; margin: 10px 0 0; }
.doc li { margin: 6px 0; }
.doc .summary { margin-top: 28px; padding: 20px 24px; border-radius: 12px; background: var(--mint); }
.doc .summary h2 { margin: 0 0 6px; padding: 0; border: 0; font-size: 21px; }
.doc .card { margin-top: 16px; padding: 4px 22px 18px; border: 1px solid var(--line); border-radius: 12px; }
.doc .card p { margin-top: 8px; }
.doc .quote { margin-top: 14px; padding: 10px 16px; border-left: 4px solid var(--brass); background: var(--mint); border-radius: 0 8px 8px 0; }

/* 404 */
.lost { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: 60px 20px; }
.lost h1 { font-size: clamp(36px, 5vw, 52px); }
.lost p { margin: 14px 0 26px; color: var(--ink-soft); font-size: 19px; }
.lost .btn.brass { color: var(--brass-ink); }
