/* NumiScan website. A store-style landing: dark hero and closing band in the app's charcoal and gold, light sections between. */
@font-face { font-family: "Young Serif"; font-style: normal; font-weight: 400; font-display: optional;
  src: url(/fonts/young-serif-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: "Young Serif"; font-style: normal; font-weight: 400; font-display: optional;
  src: url(/fonts/young-serif-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; }
/* headings use font-display: optional (preloaded; a late font never swaps in, so no layout shift).
   Young Serif has no Cyrillic: Ukrainian headings take Lora (OFL) under the same family name; only Cyrillic pages download it */
@font-face { font-family: "Young Serif"; font-style: normal; font-weight: 400; font-display: optional;
  src: url(/fonts/lora-cyrillic.woff2) format("woff2"); size-adjust: 104%;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/fonts/public-sans-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: "Public Sans"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/fonts/public-sans-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; }

/* Fallbacks sized to the web fonts' metrics, so text keeps its line breaks when the fonts arrive (no layout shift). */
@font-face { font-family: "Young Serif Fallback"; src: local("Georgia");
  size-adjust: 112.7%; ascent-override: 92.8%; descent-override: 32.47%; line-gap-override: 0%; }
@font-face { font-family: "Public Sans Fallback"; src: local("Arial"), local("Helvetica");
  size-adjust: 103.2%; ascent-override: 92.06%; descent-override: 21.8%; line-gap-override: 0%; }

:root {
  --paper: #ffffff;
  --soft: #f3f4f6;
  --line: #e2e4e9;
  --ink: #1b1c21;
  --muted: #5b606c;
  --panel: #1c1d22;      /* app background */
  --panel-2: #26282f;
  --panel-ink: #eceae4;
  --panel-muted: #a3a6ae;
  --gold: #f4c84a;       /* app button gold */
  --gold-deep: #7a5a06;  /* gold that reads on white */
  --value: #43b883;      /* app value green, on dark */
  --value-deep: #18744a;
  --serif: "Young Serif", "Young Serif Fallback", Georgia, serif;
  --sans: "Public Sans", "Public Sans Fallback", Arial, sans-serif;
  --measure: 68ch;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--sans);
  font-feature-settings: "tnum" 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-deep); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--ink); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.wrap { width: min(72rem, 100% - 2rem); margin-inline: auto; }
.prose { width: min(var(--measure), 100% - 2rem); margin-inline: auto; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; letter-spacing: -0.005em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 1.4rem + 3.4vw, 3.75rem); }
h2 { font-size: clamp(1.6rem, 1.25rem + 1.4vw, 2.25rem); margin-top: 2.2em; }
h3 { font-size: 1.3rem; margin-top: 1.8em; }
p, ul, ol, dl, table { margin: 0 0 1.1em; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 40rem; }
.small, small { font-size: .875rem; }
.muted { color: var(--muted); }

/* header */
.top { border-bottom: 1px solid var(--line); background: var(--paper); }
.top-in { display: flex; align-items: center; gap: 1.5rem; min-height: 4rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; font-family: var(--serif); font-size: 1.35rem; }
.brand img { border-radius: 8px; }
.nav { display: flex; gap: 1.25rem; flex-wrap: wrap; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--gold-deep); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--gold); }
/* language menu: a native <details>, so it works without JS */
.langs { position: relative; }
.langs summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .35rem; padding: .4rem .65rem;
  border: 1px solid var(--line); border-radius: 999px; font-weight: 700; font-size: .85rem; user-select: none; }
.langs summary::-webkit-details-marker { display: none; }
.langs summary:hover, .langs[open] summary { border-color: var(--ink); }
.langs svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.langs .chev { width: .85rem; height: .85rem; transition: transform .15s; }
.langs[open] .chev { transform: rotate(180deg); }
.langs ul { position: absolute; right: 0; top: calc(100% + .4rem); z-index: 20; list-style: none; margin: 0; padding: .35rem; min-width: 10rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px rgba(27, 28, 33, .16); }
.langs li a { display: flex; justify-content: space-between; align-items: center; padding: .55rem .75rem; border-radius: 9px;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.langs li a:hover { background: var(--soft); }
.langs li a[aria-current="true"]::after { content: "✓"; color: var(--gold-deep); font-weight: 700; }

/* store button: same gold as the app's primary button */
.store { display: inline-flex; align-items: center; gap: .6rem; background: var(--gold); color: #17140a; text-decoration: none;
  padding: .7rem 1.3rem .7rem 1.05rem; border-radius: 14px; font-weight: 700; line-height: 1.05; }
.store:hover { background: #ffd65f; text-decoration: none; }
.store svg { width: 1.6rem; height: 1.6rem; fill: currentColor; flex: none; }
.store span { display: flex; flex-direction: column; font-size: 1.15rem; }
.store small { font-weight: 600; font-size: .72rem; }
.cta-row { display: flex; align-items: center; gap: 1rem 1.25rem; flex-wrap: wrap; margin-top: 1.75rem; }
.cta-note { color: var(--muted); font-size: .95rem; margin: 0; }

/* hero: the store screenshots carry it */
.hero { background: var(--panel); color: var(--panel-ink); padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2rem, 5vw, 4rem); overflow: hidden; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 1.5rem + 4.2vw, 4.5rem); margin-bottom: .35em; }
.hero .lede, .final .lede { color: var(--panel-muted); font-size: clamp(1.15rem, 1rem + .5vw, 1.35rem); }
.stars { color: var(--panel-ink); font-weight: 600; font-size: .95rem; margin: 0 0 1.1rem; }
.stars span { color: var(--gold); letter-spacing: .08em; margin-right: .35rem; }
.hero-phones { position: relative; display: flex; justify-content: center; align-items: flex-end; }
.ph { width: 52%; border-radius: 30px; box-shadow: 0 30px 70px rgba(0, 0, 0, .55); }
.ph-back { transform: rotate(-7deg) translate(14%, 6%); opacity: .9; }
.ph-front { position: relative; z-index: 1; transform: translateX(-6%); }
@media (prefers-reduced-motion: no-preference) {
  .ph-front { animation: rise .8s cubic-bezier(.2, .8, .2, 1) both; }
  .ph-back { animation: rise-back .8s .15s cubic-bezier(.2, .8, .2, 1) both; }
  @keyframes rise { from { opacity: 0; transform: translate(-6%, 8%); } to { opacity: 1; transform: translateX(-6%); } }
  @keyframes rise-back { from { opacity: 0; transform: rotate(-2deg) translate(14%, 14%); } to { opacity: .9; transform: rotate(-7deg) translate(14%, 6%); } }
}
.qr { margin: 0; display: flex; align-items: center; gap: .7rem; color: var(--panel-muted); font-size: .85rem; max-width: 12rem; }
.qr img { width: 76px; height: 76px; border-radius: 10px; background: #fff; padding: 4px; }
.get { background: var(--gold); color: #17140a; text-decoration: none; font-weight: 700; font-size: .9rem; padding: .45rem .95rem; border-radius: 999px; }
.get:hover { background: #ffd65f; }

/* sections */
.band { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.band-soft { background: var(--soft); }
.band h2:first-child { margin-top: 0; }
.row { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; padding: clamp(1rem, 2vw, 1.75rem) 0; }
.row img { width: min(15.5rem, 100%); justify-self: center; border-radius: 30px; box-shadow: 0 24px 50px rgba(27, 28, 33, .18); }
.row h2 { margin-top: 0; font-size: clamp(1.9rem, 1.3rem + 2vw, 2.9rem); }
.row-flip { grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); }
.row-flip img { order: 2; }
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; max-width: 52rem; }
.chips li { border: 1px solid var(--line); border-radius: 999px; padding: .45rem 1rem; font-weight: 600; background: var(--paper); }
.final { background: var(--panel); color: var(--panel-ink); padding: clamp(3rem, 7vw, 5.5rem) 0; }
.final h2 { color: #fff; margin-top: 0; font-size: clamp(2rem, 1.3rem + 2.6vw, 3.2rem); max-width: 18ch; }
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.feature { background: var(--paper); border-radius: 22px; padding: 1.5rem 1.4rem 1.6rem; box-shadow: 0 1px 0 var(--line), 0 14px 34px rgba(27, 28, 33, .06); }
.feature .ico { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 16px; background: var(--panel); margin-bottom: 1.1rem; }
.feature .ico img { width: 2rem; height: 2rem; }
.feature h3 { margin: 0 0 .4rem; }
.feature p { margin: 0; color: var(--muted); }

/* coin wall: real public-domain coins on the app's charcoal */
.coins-band { background: var(--panel); color: var(--panel-ink); }
.coins-band h2 { color: #fff; }
.coins-band .lede { color: var(--panel-muted); }
.coin-wall { list-style: none; padding: 0; margin: 2.25rem 0 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2rem 1.5rem; }
.coin-wall li { display: flex; flex-direction: column; align-items: center; gap: .8rem; text-align: center; }
.coin-wall img { width: min(8.5rem, 100%); aspect-ratio: 1; filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .55)); }
.coin-wall span { font-weight: 600; font-size: .9rem; color: var(--panel-ink); }
.coin-wall li:nth-child(odd) img { transform: rotate(-4deg); }
.coin-wall li:nth-child(3n) img { transform: rotate(5deg); }

/* guide cards */
.guides { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.guides a { display: flex; flex-direction: column; height: 100%; border-radius: 22px; overflow: hidden; background: var(--paper);
  border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.guides a:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(27, 28, 33, .12); }
.g-coin { display: grid; place-items: center; background: var(--panel); padding: 1.6rem 0; }
.g-coin img { width: 7.5rem; filter: drop-shadow(0 12px 20px rgba(0, 0, 0, .5)); }
.guides strong { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; line-height: 1.2; margin: 1.1rem 1.25rem .35rem; }
.g-text { color: var(--muted); font-size: .95rem; margin: 0 1.25rem; flex: 1; }
.g-more { margin: 1rem 1.25rem 1.25rem; font-weight: 700; color: var(--gold-deep); }
.g-more::after { content: ""; display: inline-block; width: .45em; height: .45em; border-right: 2px solid; border-top: 2px solid; transform: rotate(45deg); margin-left: .45em; vertical-align: .1em; }
.guides-one { grid-template-columns: minmax(0, 1fr); max-width: 44rem; }
.guides-one a { display: grid; grid-template-columns: 12rem 1fr; grid-template-rows: auto 1fr auto; }
.guides-one .g-coin { grid-row: 1 / 4; padding: 1.5rem; }
.guides-one strong { margin-top: 1.5rem; }
.more { margin-top: 1.75rem; font-weight: 700; }

/* FAQ */
.faqs { max-width: var(--measure); }
details.faq { border-bottom: 1px solid var(--line); }
details.faq summary { cursor: pointer; padding: 1rem 2rem 1rem 0; font-weight: 700; list-style: none; position: relative; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; position: absolute; right: .25rem; top: .85rem; font-size: 1.3rem; color: var(--gold-deep); }
details.faq[open] summary::after { content: "−"; }
details.faq > div { padding: 0 0 1rem; color: var(--ink); }
details.faq > div p:last-child { margin-bottom: 0; }

/* article pages: dark title band with the guide's coin, then the reading column */
.art-hero { background: var(--panel); color: var(--panel-ink); padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(2rem, 5vw, 3.5rem); overflow: hidden; }
.art-hero-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: center; }
.art-hero h1 { color: #fff; font-size: clamp(2.1rem, 1.4rem + 2.8vw, 3.5rem); margin-top: .6rem; }
.art-hero .lede { color: var(--panel-muted); }
.art-hero .meta { color: var(--panel-muted); font-size: .9rem; }
.art-coin { width: clamp(9rem, 18vw, 15rem); filter: drop-shadow(0 22px 34px rgba(0, 0, 0, .6)); transform: rotate(-6deg); }
.art-hero .crumbs ol { width: auto; margin: 0; color: var(--panel-muted); }
.art-hero .crumbs a { color: var(--panel-muted); }
.art-hero .crumbs li + li::before { color: #4a4d56; }
.article { padding: 2.5rem 0 3.5rem; }
.article h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); }
.article ul, .article ol { padding-left: 1.25rem; }
.article li { margin-bottom: .4em; }
.article .guides { padding-left: 0; margin-top: 0; }
.article .guides li { margin-bottom: 0; }
.callout { background: var(--soft); border-left: 4px solid var(--gold); padding: 1rem 1.25rem; border-radius: 0 12px 12px 0; margin: 1.5rem 0; }
.callout p:last-child { margin-bottom: 0; }
.table-wrap { overflow-x: auto; margin: 0 0 1.25rem; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: .6rem .75rem .6rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 700; }
td:first-child { white-space: nowrap; font-weight: 600; }
.figure-coin { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; max-width: 26rem; margin: 1.5rem 0; }
.figure-coin img { border-radius: 50%; }
.figure-coin figcaption { grid-column: 1 / -1; color: var(--muted); font-size: .85rem; }
.app-box { background: var(--panel); color: var(--panel-ink); border-radius: 24px; padding: 1.75rem 1.75rem 1.9rem; margin: 3rem 0 0; }
.app-box > p { margin: 0; color: var(--panel-muted); }
.app-box strong { font-family: var(--serif); font-weight: 400; font-size: 1.55rem; line-height: 1.2; display: block; margin-bottom: .35rem; color: #fff; }
.app-box .cta-row { margin-top: 1.25rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 1.25rem auto 0; width: min(var(--measure), 100% - 2rem); font-size: .875rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--line); }
.crumbs a { color: var(--muted); }
/* footer */
.foot { background: var(--panel); color: var(--panel-muted); padding: 2.5rem 0; font-size: .9rem; }
.foot a { color: var(--panel-ink); }
.foot-brand { display: flex; align-items: center; gap: .8rem; color: var(--panel-ink); margin-bottom: 1rem; }
.foot-brand img { border-radius: 10px; }
.foot-brand p { margin: 0; }
.foot-links { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }

@media (max-width: 860px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); text-align: left; }
  .hero-phones { max-width: 26rem; margin-inline: auto; }
  .row, .row-flip { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .row img, .row-flip img { order: 2; width: min(16rem, 70%); }
  .features, .guides { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .coin-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem 1rem; }
  .art-hero-in { grid-template-columns: minmax(0, 1fr) 7rem; }
  .art-coin { width: 7rem; }
  .qr { display: none; }
  .top-in { gap: 1rem; flex-wrap: nowrap; }
  .nav { gap: 1rem; }
}
@media (max-width: 520px) {
  body { font-size: 1rem; }
  .features, .guides { grid-template-columns: minmax(0, 1fr); }
  /* compact rows instead of tall stacked cards */
  .features { gap: .75rem; }
  .feature { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: .15rem 1rem; padding: 1.1rem 1.15rem; border-radius: 18px; }
  .feature .ico { grid-row: 1 / 3; width: 3rem; height: 3rem; border-radius: 14px; margin: 0; }
  .feature .ico img { width: 1.7rem; height: 1.7rem; }
  .feature h3 { margin: 0; font-size: 1.15rem; }
  .guides { gap: .75rem; margin-top: 1.5rem; }
  .guides a, .guides-one a { display: grid; grid-template-columns: 6.25rem minmax(0, 1fr); grid-template-rows: auto 1fr auto; border-radius: 18px; }
  .guides .g-coin, .guides-one .g-coin { grid-row: 1 / 4; padding: .75rem; }
  .g-coin img { width: 4.75rem; }
  .guides strong, .guides-one strong { font-size: 1.15rem; margin: .9rem 1rem .25rem; }
  .g-text { margin: 0 1rem; font-size: .9rem; }
  .g-more { margin: .55rem 1rem .9rem; font-size: .95rem; }
  .row img, .row-flip img { width: min(14rem, 62%); }
  .art-hero-in { grid-template-columns: minmax(0, 1fr); }
  .art-coin { display: none; }
}
/* phones: one row with the brand and the language menu; the Smart App Banner and the hero button carry the download */
@media (max-width: 680px) {
  .top-in { min-height: 3.5rem; }
  .nav { display: none; }
  .langs { margin-left: auto; }
  .get { display: none; }
}
