/* CoinMemo — paper (11-10)
   The whole site in daylight. Loaded after styles.css, which is written for a dark stage: the home page
   (body.paper) and the document pages (body.paper-doc) set the same colour tokens anew, so every rule that reads
   them follows, and what styles.css wrote in fixed dark colours is put right below, section by section.
   The wordmark's gold leaf and the far coins' daylight haze are in fx/metal.js and fx/coins.js (both look for
   body.paper); theme.js moves the phone dock's marker. */

/* ───────────── Tokens ───────────── */
.paper, body.paper-doc, .scene-paper {
  color-scheme: light;
  --bg: #f4f0e8;
  --bg-2: #ebe5d9;
  --bg-3: #e2dacb;
  --card: #fffdf9;
  --ink: #17130e;
  --ink-2: #3a322a;
  --muted: #6a6054;
  --hair: rgba(23, 19, 14, .10);
  --hair-2: rgba(23, 19, 14, .17);
  --line: rgba(23, 19, 14, .09);
  --line-2: rgba(23, 19, 14, .16);
  --gold: #9a6b1e;
  --gold-2: #8a5c14;
  --gold-deep: #6b470e;
  --cream: #17130e;
  /* one sans and one serif on paper: no typewriter labels, no inscription capitals (the wordmark keeps its own) */
  --mono: var(--sans);
  --inscr: var(--serif);
  --shade: 62, 46, 20;
  /* a plate: a white card lying on the paper */
  --plate: 0 0 0 1px rgba(23, 19, 14, .05), 0 1px 0 rgba(255, 255, 255, .9) inset, 0 50px 90px -70px rgba(var(--shade), .55);
  color: var(--ink);
  background: var(--bg);
}

/* ───────────── The page ───────────── */
body.paper::after, body.paper-doc::after { opacity: .05; mix-blend-mode: multiply; }   /* the grain, as paper's tooth */
.paper .atmos { display: none; }                                                        /* gold dust shows only in the dark */
.paper ::selection, body.paper-doc ::selection { background: rgba(154, 107, 30, .22); }
.paper .progress, body.paper-doc .progress { background: linear-gradient(90deg, #8a5c14, #c79a45); }
body.paper-doc .skip-link, .paper .skip-link { background: #17130e; color: #f4f0e8; }

/* ───────────── Type ───────────── */
/* A label is a quiet line of small capitals with a short rule: no typewriter face, no glowing dot. */
.paper .eyebrow, body.paper-doc .eyebrow { gap: 12px; color: var(--muted); font-family: var(--sans); font-size: 12.5px; font-weight: 600; letter-spacing: .09em; }
.paper .eyebrow .dot { width: 22px; height: 1px; border-radius: 0; background: currentColor; box-shadow: none; opacity: .7; }

.paper h2, body.paper-doc h1 { color: var(--ink); letter-spacing: -0.018em; }
.paper h2 { font-size: clamp(42px, 5.6vw, 84px); line-height: .98; }
.paper .demo h2 { font-size: clamp(40px, 4.9vw, 72px); }
.paper .questions h2 { font-size: clamp(38px, 4.2vw, 60px); }
/* the italic phrase is one flat deep gold (the dark stage's lit gold would wash out on paper) */
.paper h2.split em .w > span, .paper .demo h2.split em .w > span, .paper .finale h2.split em .w > span { --em-base: linear-gradient(var(--gold-2), var(--gold-2)); }
@media (prefers-reduced-motion: no-preference) {
  .paper h2.split em .w > span, .paper .demo h2.split em .w > span, .paper .finale h2.split em .w > span { background: var(--em-base); -webkit-background-clip: text; background-clip: text; color: transparent; animation: none; }
}
.paper .section-lead { max-width: 32em; margin-top: 24px; color: var(--ink-2); font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; }
.paper .fineprint { font-size: 14px; line-height: 1.55; }
/* (no weight of its own: a link that has a class, as the header's and the buttons' do, keeps that class's colour) */
:where(.paper, body.paper-doc) a { color: var(--gold-2); }
.paper .link-arrow, body.paper-doc .link-arrow { color: var(--ink); }

/* ───────────── Buttons ───────────── */
.paper .btn--primary, body.paper-doc .btn--primary { background: var(--ink); color: var(--bg); box-shadow: 0 14px 28px -16px rgba(23, 19, 14, .7); }
.paper .btn--primary:hover, body.paper-doc .btn--primary:hover { background: #2b241b; }
.paper .btn--ghost, body.paper-doc .btn--ghost { background: transparent; }
.paper .btn--ghost:hover, body.paper-doc .btn--ghost:hover { background: rgba(154, 107, 30, .08); }

/* ───────────── The header ───────────── */
.paper .site-header, body.paper-doc .site-header { background: #f4f0e8; border-bottom-color: rgba(23, 19, 14, .08); }
.paper .site-header:not(.is-scrolled) { background: none; border-bottom-color: transparent; }
.paper .header-nav__cta, body.paper-doc .header-nav__cta { background: var(--ink); border-color: var(--ink); color: var(--bg) !important; }
.paper .header-nav__cta:hover, body.paper-doc .header-nav__cta:hover { background: #2b241b; border-color: #2b241b; }
.paper .brand__mark, body.paper-doc .brand__mark { box-shadow: 0 0 0 1px rgba(23, 19, 14, .14); }
.paper .sound[aria-pressed="true"] { color: #f4f0e8; background: #17130e; border-color: #17130e; }

/* ───────────── Chips and tags: white cards ───────────── */
.paper .chip, .paper .scanart__tag { background: var(--card); border-color: var(--hair-2); box-shadow: 0 16px 30px -18px rgba(var(--shade), .55), 0 1px 0 rgba(255, 255, 255, .9) inset; }
.paper .chip b, .paper .scanart__tag { color: var(--ink); }
.paper .chip small, .paper .scanart__tag small { color: var(--muted); }
.paper .chip__tick, .paper .scanart__tag i { background: var(--ink); }
.paper .chip__tick::after, .paper .scanart__tag i::after { border-color: var(--card); }

/* ───────────── The opening, laid out as a cover: labels, masthead, rule, headline beside the phone ───────────── */
.paper .hero { padding-top: clamp(14px, 2vw, 28px); padding-bottom: clamp(96px, 10vw, 150px); }
.paper .hero__light { display: none; }
.paper .hero__head { display: grid; grid-template-columns: 1fr auto; align-items: end; column-gap: 24px; padding-bottom: clamp(10px, 1.4vw, 20px); border-bottom: 1px solid var(--hair-2); }
.paper .hero__head .metal-title { grid-column: 1 / -1; }
.paper .hero__made { justify-self: end; }
/* The wordmark keeps its inscription capitals; on paper it is gold leaf (fx/metal.js), with an edge to stand on. */
.paper .metal-title { font-family: "Cinzel", "Times New Roman", Georgia, serif; }
.paper .hero .metal-title { font-size: min(15.3cqw, 236px); }   /* the masthead spans the column on wide screens too */
.paper .metal-title__text { background: linear-gradient(180deg, #dcb565 0%, #ab7b2b 45%, #6f4a12 72%, #c99c48 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.paper .metal-title__canvas { filter: drop-shadow(0 1px 0 rgba(74, 48, 8, .55)) drop-shadow(0 12px 16px rgba(74, 48, 8, .16)); }
.paper .outro .metal-title__text { background: none; -webkit-text-stroke: 1px rgba(154, 107, 30, .4); }
.paper .hero__copy { padding-top: clamp(30px, 4.4vw, 64px); max-width: none; }
.paper .hero__tag { color: var(--ink); font-size: clamp(46px, 7.5cqw, 104px); line-height: .95; letter-spacing: -0.022em; text-wrap: balance; }
.paper .hero__lead { max-width: 21.5em; margin-top: clamp(20px, 2.2vw, 30px); color: var(--ink-2); font-size: clamp(17px, 1.5vw, 20px); }
.paper .hero__actions { margin-top: clamp(26px, 2.8vw, 38px); }
.paper .hero__stage { margin-top: clamp(30px, 4vw, 56px); }
@media (min-width: 961px) { .paper .hero .chip--a { top: 13%; left: -52%; } }

/* ───────────── Coin shelf ───────────── */
.paper .shelf { padding: 26px 0 26px; border-top: 0; border-bottom: 1px solid var(--hair); background: none; }
.paper .shelf::before { background: linear-gradient(90deg, var(--bg), rgba(244, 240, 232, 0)); }
.paper .shelf::after { background: linear-gradient(270deg, var(--bg), rgba(244, 240, 232, 0)); }
.paper .shelf__coin::after { background: radial-gradient(closest-side, rgba(var(--shade), .38), rgba(var(--shade), 0)); }
.paper .shelf__coin b { color: var(--muted); }
.paper .shelf__say { color: var(--ink); }

/* ───────────── Statement ───────────── */
.paper .statement__coin::before { background: radial-gradient(closest-side, rgba(255, 255, 255, .7), rgba(255, 255, 255, 0) 70%); }
.paper .statement__coin::after { background: radial-gradient(closest-side, rgba(var(--shade), .42), rgba(var(--shade), 0)); }
.paper .statement__text { color: var(--ink); font-size: clamp(36px, 4vw, 66px); line-height: 1.04; }
.paper .statement__text .w { opacity: clamp(.2, calc(var(--p) * (var(--n) + 3) - var(--i)), 1); }
.paper .statement__ring { border-color: var(--gold); }

/* ───────────── Phones: the same dark device, a daylight shadow ───────────── */
.paper .phone {
  /* what is drawn on its screen (the re-created scanner) keeps the dark stage's colours, or its light chips turn
     dark under dark words */
  --bg: #0a0908; --bg-2: #110f0c; --bg-3: #181510; --ink: #f4ecdd; --ink-2: #d6ccba; --muted: #a1978a; --hair: rgba(243, 220, 163, .10); --hair-2: rgba(243, 220, 163, .18); --gold: #d9b46c; --gold-2: #f3dca3; --cream: #efe3c8;
  color: var(--ink);
  box-shadow: 0 70px 90px -50px rgba(var(--shade), .7), 0 30px 40px -30px rgba(var(--shade), .5), 0 0 0 1px rgba(0, 0, 0, .25);
}
.paper .phone::before { background: linear-gradient(160deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, .05) 35%, rgba(255, 255, 255, .02) 60%, rgba(255, 255, 255, .25)); }
.paper .shot { box-shadow: 0 50px 70px -44px rgba(var(--shade), .75), 0 0 0 1px rgba(0, 0, 0, .2); }
.paper .flow__item.is-active .shot { box-shadow: 0 60px 80px -44px rgba(var(--shade), .8), 0 0 0 1px rgba(0, 0, 0, .25), 0 0 110px -30px var(--tintg); }

/* ───────────── Hurtigscan: a plate ───────────── */
.paper .band { background: var(--card); border-top: 0; box-shadow: var(--plate); }
.paper .demo { margin: 0 clamp(0px, 1.6vw, 28px); border-radius: clamp(0px, 3vw, 44px); }
.paper .demo__light, .paper .ambient { display: none; }
.paper .steps__n { background: var(--bg); font-size: 17px; }
.paper .steps strong { font-size: 29px; }
.paper .steps p { font-size: 16.5px; }
.paper .steps li.is-active .steps__n { background: var(--ink); color: var(--bg); border-color: var(--ink); box-shadow: none; }
.paper .tray__title { font-size: 12px; font-weight: 600; letter-spacing: .09em; }
.paper .tray__count { font-size: 13px; }
.paper .tray__count b { font-size: 22px; font-weight: 400; }
.paper .tray__slots li { border-color: var(--hair-2); background: var(--bg); box-shadow: inset 0 2px 6px rgba(var(--shade), .14); }
.paper .tray__slots li i { color: rgba(23, 19, 14, .26); }
.paper .tray__slots li.is-live { border-color: var(--gold); }
.paper .tray__slots li img { box-shadow: 0 0 0 1px rgba(23, 19, 14, .14), 0 8px 14px -4px rgba(var(--shade), .5); }

/* ───────────── Screens ───────────── */
.paper .flow__word { display: none; }   /* the word behind the phones was a glow in the dark; on paper it reads as scribble */
.paper .flow__arrow { background: var(--card); }
.paper .flow__arrow:hover { background: #fff; }
.paper .flow__caption b { font-size: 34px; }
.paper .flow__caption span { font-size: 16.5px; }
.paper .flow__tab { font-size: 14px; }
.paper .flow__tab.is-active { color: var(--ink); background: var(--card); border-color: var(--hair-2); }
.paper .flow__dot::before { background: var(--hair-2); }
/* The screens beside the one in front stay solid: fading them, as into the dark, washed them out. */
@keyframes flow-turn-paper { 0% { transform: rotateY(-34deg) scale(.8); } 50% { transform: none; } 100% { transform: rotateY(34deg) scale(.8); } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) { .paper .flow__item .shot { animation-name: flow-turn-paper; } }
}
@media (min-width: 701px) { @supports (-webkit-box-reflect: below) { .paper .flow__item .shot { -webkit-box-reflect: below 6px linear-gradient(rgba(0, 0, 0, 0) 88%, rgba(0, 0, 0, .14)); } } }

/* ───────────── Inside: the two numbers, in ink ───────────── */
.paper .grad, .paper .reel__strip b { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--ink); }
.paper .figure__num { color: var(--ink); font-weight: 400; letter-spacing: -0.03em; }
.paper .reel__strip b { font-weight: 400; }
.paper .figure__num em { color: var(--gold-2); letter-spacing: 0; }
.paper .figure__text h3 { font-size: clamp(30px, 3vw, 44px); }
.paper .figure__text p { font-size: clamp(17px, 1.4vw, 19.5px); line-height: 1.5; }
.paper .figure--since { margin-top: clamp(40px, 5vw, 80px); }   /* room above the second number for the pig to stand in */
.paper .scanart__ring { border-color: var(--hair-2); border-top-color: var(--gold); }
.paper .scanart__beam::before { box-shadow: 0 0 12px 1px rgba(154, 107, 30, .5); }
.paper .fan img { filter: drop-shadow(0 10px 10px rgba(var(--shade), .4)); }

/* Tiles: plates, no spotlight and no foil */
.paper .tile { border-color: transparent; border-radius: 32px; background: var(--card); box-shadow: var(--plate); }
.paper .tile::before, .paper .tile::after { display: none; }
.paper .tile:hover { border-color: transparent; }
.paper .tile h3 { font-size: 32px; }
.paper .tile p { font-size: 16.5px; line-height: 1.5; }
.paper .tile__hint { font-size: 12px !important; font-weight: 600; letter-spacing: .09em; color: var(--muted) !important; }
.paper .flip::after { background: radial-gradient(closest-side, rgba(var(--shade), .4), rgba(var(--shade), 0)); }
.paper .icons { font-size: 15px; }
.paper .crop { box-shadow: 0 30px 40px -24px rgba(var(--shade), .7), 0 0 0 1px rgba(0, 0, 0, .18); }
.paper .strip { border-color: var(--hair-2); }
.paper .ledger dt { font-size: 12px; font-weight: 600; letter-spacing: .09em; }
.paper .strip .ledger dd { color: var(--ink); }
.paper .ledger div { font-size: 12px; }

/* ───────────── Clean: the photograph beside what is sent, on a plate ───────────── */
.paper .clean { margin: clamp(30px, 5vw, 70px) clamp(0px, 1.6vw, 28px) 0; border-radius: clamp(0px, 3vw, 44px); }
.paper .clean h2 em { display: block; }   /* the gold phrase keeps to its own line */
.paper .plate__label { font-size: 12px; font-weight: 600; letter-spacing: .09em; }
.paper .plate__frame { background: var(--bg-2); border-color: transparent; }
.paper .plate__frame--clear { border-color: var(--hair-2); background-color: var(--card); background-image: conic-gradient(rgba(23, 19, 14, .045) 25%, transparent 0 50%, rgba(23, 19, 14, .045) 0 75%, transparent 0); box-shadow: 0 40px 70px -46px rgba(var(--shade), .6); }
.paper .plate__frame--clear > .plate__coin { filter: drop-shadow(0 16px 18px rgba(var(--shade), .4)); }
.paper .plate__wipe::before { background: var(--gold); box-shadow: 0 0 18px 2px rgba(154, 107, 30, .5); }
.paper .plate__say { font-size: clamp(15px, 1.25vw, 17px); }
.paper .plate__say b { font-weight: 400; }
.paper .cut__arrow { background: var(--bg); color: var(--ink); }
.paper .compare { font-size: 13px; }
.paper .compare thead th, .paper .compare thead td { font-size: 12px; font-weight: 600; letter-spacing: .09em; }
.paper .compare tbody th { font-weight: 600; letter-spacing: .07em; font-size: 12.5px; }
.paper .compare tbody td { font-size: 15px; letter-spacing: 0; }
.paper .compare tbody td:last-child { color: var(--ink); font-size: clamp(20px, 1.9vw, 25px); }
.paper .clean__note { font-size: 15px; line-height: 1.55; }

/* ───────────── Questions ───────────── */
.paper .faq p, body.paper-doc .faq p { font-size: 17px; line-height: 1.6; }

/* ───────────── The ending: the last line is the largest on the page; the coins fall onto the wordmark ───────────── */
.paper .finale { padding-top: clamp(70px, 10vw, 150px); background: none; }
.paper .finale h2 { font-size: clamp(64px, 12.5vw, 196px); line-height: .9; letter-spacing: -0.03em; }
.paper .finale .cta__text { color: var(--ink-2); font-size: clamp(17px, 1.5vw, 20px); }
.paper .cta__actions { margin-top: clamp(46px, 4.4vw, 64px); }   /* room for the pig, which stands on the address */
.paper .mail:hover { color: var(--ink); }
.paper .site-footer, body.paper-doc .site-footer { border-top-color: var(--hair); font-size: 13.5px; }

/* ───────────── The pig: a daylight shadow, and its words on a small white card ───────────── */
.paper .pig__canvas { filter: drop-shadow(0 6px 8px rgba(62, 46, 20, .32)); }
.paper .pig__glow { opacity: 0; }
.paper .pig__shade { background: radial-gradient(closest-side, rgba(62, 46, 20, .42), rgba(62, 46, 20, .16) 55%, rgba(62, 46, 20, 0)); }
.paper .pig__ring { border-color: rgba(154, 107, 30, .8); box-shadow: none; }
.paper .pig__say, .paper .pig__say--left { padding: 8px 13px 9px; border: 0; border-radius: 14px; background: #fffdf8; color: #17130e; box-shadow: 0 0 0 1px rgba(23, 19, 14, .12), 0 14px 26px -14px rgba(62, 46, 20, .6); text-shadow: none; }
.paper .pig__say::before { display: none; }

/* ───────────── The dock (phones): a white bar with a plain gold marker ───────────── */
@media (max-width: 700px) {
  .paper .dock::before, body.paper-doc .dock::before { background: linear-gradient(to bottom, rgba(244, 240, 232, 0), rgba(244, 240, 232, .94) 62%); }
  .paper .dock__bar, body.paper-doc .dock__bar {
    background: linear-gradient(180deg, rgba(255, 255, 255, .85), rgba(255, 255, 255, .55) 42%, rgba(255, 255, 255, .5)), rgba(244, 240, 232, .78);
    box-shadow: 0 22px 40px -18px rgba(62, 46, 20, .55), 0 3px 8px rgba(62, 46, 20, .12), inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 0 0 1px rgba(23, 19, 14, .07);
  }
  .paper .dock__bar::before, body.paper-doc .dock__bar::before { background: none; }
  .paper .dock a, body.paper-doc .dock a { color: rgba(23, 19, 14, .62); }
  .paper .dock a.is-hover, body.paper-doc .dock a.is-hover { color: #17130e; }
  .paper .dock a.is-active, body.paper-doc .dock a.is-active { color: #7a500f; }
  .paper .dock__lens, body.paper-doc .dock__lens {
    background: linear-gradient(180deg, rgba(196, 150, 66, .30), rgba(196, 150, 66, .14) 70%, rgba(196, 150, 66, .2));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), inset 0 0 0 1px rgba(154, 107, 30, .22), 0 8px 18px -10px rgba(154, 107, 30, .6);
  }
  /* The liquid lens is drawn for a dark bar: the plain marker stands in for it, and theme.js moves it. */
  .paper .dock__goo, body.paper-doc .dock__goo { display: none; }
  .paper .dock__track.has-goo .dock__lens, body.paper-doc .dock__track.has-goo .dock__lens { visibility: visible; transition: transform .46s cubic-bezier(.3, 1.4, .5, 1), opacity .2s linear; }
}
@media (prefers-reduced-motion: reduce) {
  .paper .dock__track.has-goo .dock__lens, body.paper-doc .dock__track.has-goo .dock__lens { transition: none; }
}

/* ───────────── Document pages (help, terms, privacy) ───────────── */
body.paper-doc .document { padding-top: clamp(56px, 7vw, 100px); }
body.paper-doc .document h1 { font-size: clamp(50px, 7.4vw, 96px); }
body.paper-doc .document .intro { font-size: clamp(19px, 2.2vw, 23px); color: var(--ink-2); }
body.paper-doc .updated { font-size: 12.5px; font-weight: 600; letter-spacing: .09em; }
body.paper-doc .document-body { max-width: 720px; }
body.paper-doc .document-body h2, body.paper-doc .document-body h3 { font-size: 30px; }
body.paper-doc .document-body section > h2:has(+ h3), body.paper-doc .document-body h2.part { font-size: 12.5px; font-weight: 600; letter-spacing: .09em; color: var(--muted); }
body.paper-doc .document-body p, body.paper-doc .document-body li { font-size: 17px; line-height: 1.65; }
body.paper-doc .contact-card { background: var(--card); border-color: transparent; border-radius: 28px; box-shadow: var(--plate); }
body.paper-doc .contact-card p, body.paper-doc .contact-card li { font-size: 16px; }
body.paper-doc .page-note { font-size: 14px; }
body.paper-doc .i18n-note { background: var(--bg-2); border-color: transparent; font-size: 14px; }
body.paper-doc .i18n-note a { text-decoration-color: rgba(138, 92, 20, .4); }

/* ───────────── Phone ───────────── */
@media (max-width: 700px) {
  .paper .hero__made { display: none; }   /* one label above the masthead */
  .paper h2 { font-size: clamp(40px, 11.6vw, 56px); }
  .paper .demo h2 { font-size: clamp(38px, 10.6vw, 52px); }
  .paper .finale h2 { font-size: clamp(64px, 19vw, 96px); }
  .paper .section-lead { font-size: 18px; }
  .paper .statement__text { font-size: clamp(34px, 9vw, 54px); }
  .paper .tile { border-radius: 26px; }
  .paper .steps strong, html:not(.no-js) .paper .steps strong { font-size: 22px; }
  html:not(.no-js) .paper .steps p { font-size: 15.5px; }
  .paper .compare tbody td { font-size: 14px; }
  .paper .compare tbody th { font-size: 11.5px; }
  /* room above each number for the pig, so it does not stand on the line of text before */
  .paper .figure--second, .paper .figure--since { margin-top: 84px; padding-top: 22px; }
  .paper .pig__say, .paper .pig__say--left { font-size: 17px; padding: 7px 12px 8px; }
  body.paper-doc .document-body p, body.paper-doc .document-body li { font-size: 16.5px; }
}
