/* counternode.com: the marketing site. Static, no build step, no third-party requests (fonts are bundled).
   Look: a sticker book on pastel paper (the owner's chosen reference). Full-bleed colour bands (sky, white, grey),
   huge crushed uppercase display type, black hand-cut outlines, pill buttons, no shadows, no gradients.
   The hero: a cartoon shop counter whose screen plays the apps. */
@font-face { font-family: "Archivo"; src: url(fonts/archivo-latin.woff2) format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url(fonts/courier-prime-400-latin.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url(fonts/courier-prime-700-latin.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --carbon: #000;
  --paper: #fff;
  --sky: #dceeff;
  --concrete: #cccccc;
  --blue: #4da2ff;          /* decorative only, never an action colour */
  --mint: #55db9c;
  --lavender: #e9ccff;
  --ember: #fb4903;
  --sun: #ffd731;
  --violet: #5c4ade;
  --font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --print: "Courier Prime", "Courier New", ui-monospace, monospace;
  --wrap: 1440px;
  --gutter: clamp(16px, 3.4vw, 48px);
  --line: 1.5px solid var(--carbon);
  --chrome: 106px;          /* marquee (38) + header (68): the hero fills the rest of the first screen */
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--carbon); font: 500 17px/1.5 var(--font); letter-spacing: -.01em; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 6px; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 12px; z-index: 20; border: var(--line); border-radius: 999px; }
.skip:focus { left: 8px; }

/* type: one family, two personalities. Display = Archivo 900 at its widest, uppercase, crushed leading. */
.display { font-family: var(--font); font-weight: 900; font-stretch: 125%; text-transform: uppercase; line-height: .8; letter-spacing: -.01em; margin: 0; }
h2.display { font-size: clamp(3rem, 9vw, 8.5rem); margin-bottom: .32em; }
h3 { font-size: 1.6rem; font-weight: 800; font-stretch: 105%; line-height: 1.05; letter-spacing: -.015em; margin: 0 0 .35em; }
.tagline { font-size: clamp(1.25rem, 2.2vw, 1.9rem); font-weight: 600; line-height: 1.2; letter-spacing: -.015em; max-width: 24em; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); max-width: 36em; }

/* marquee: the one thing that moves without being asked */
.marquee { height: 38px; background: var(--carbon); color: var(--paper); overflow: hidden; white-space: nowrap; font-weight: 700; font-size: .8rem; letter-spacing: .032em; text-transform: uppercase; }
.marquee .track { display: inline-flex; padding: 9px 0; line-height: 20px; animation: marquee 40s linear infinite; }
.marquee span { padding: 0 1.2em; }
.marquee span::after { content: "✦"; padding-left: 2.4em; color: var(--sun); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee .track { animation: none; } }

/* header: logo left, pills, black CTA right */
.top { background: var(--sky); height: 68px; display: flex; align-items: center; }
.top .wrap { display: flex; align-items: center; gap: 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; font-stretch: 115%; font-size: 1.2rem; letter-spacing: -.01em; }
.mark { width: 40px; height: 40px; flex: none; }
.top nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.pill { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: var(--line); border-radius: 999px; background: var(--paper); text-decoration: none;
  font-weight: 700; font-size: .8rem; letter-spacing: .032em; text-transform: uppercase; white-space: nowrap; }
.pill:hover { background: var(--carbon); color: var(--paper); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border: var(--line); border-radius: 999px; cursor: pointer;
  font: 700 .88rem/1 var(--font); letter-spacing: .032em; text-transform: uppercase; text-decoration: none; white-space: nowrap; background: var(--paper); color: var(--carbon);
  transition: transform .15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn.dark { background: var(--carbon); color: var(--paper); }
.top .btn { min-height: 40px; padding: 0 16px; font-size: .8rem; margin-left: 6px; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }
@media (max-width: 780px) { .top nav .opt { display: none; } }
@media (max-width: 400px) { .brand .word { display: none; } }

/* bands: sections are told apart by colour alone */
.band { padding: clamp(64px, 9vw, 128px) 0; position: relative; overflow: hidden; }
.sky { background: var(--sky); }
.white { background: var(--paper); }
.grey { background: var(--concrete); }

/* hero: the whole first screen, whatever its size: the copy (headline, text, buttons) and the counter, its screen playing
   the apps (site.js cycles the scenes). Phones and portrait screens stack the two, the counter standing on the hero's bottom
   edge. Landscape screens put the copy on the left and the counter in the bottom right corner, flush with the page's right
   and bottom edges (slightly cut off by both, so no background shows past it). */
.hero { position: relative; overflow: hidden; height: calc(100vh - var(--chrome)); height: calc(100svh - var(--chrome)); min-height: 480px; border-bottom: var(--line); }
.hero > .wrap { position: relative; z-index: 2; height: 100%; display: grid; grid-template: "copy" auto "art" minmax(0, 1fr) / minmax(0, 1fr);
  padding-top: clamp(18px, 4.6svh, 56px); }
.hero .copy { grid-area: copy; }
/* the site's display type (Archivo 900, wide, uppercase), a notch narrower so the sentence fits in a few lines */
.hero h1 { margin: 0; font-stretch: 112%; line-height: .86; font-size: min(9.6vw, 5svh); text-wrap: balance; }
.hero h1:lang(fr) { font-size: min(8.4vw, 4.6svh); }
.hero .tagline { margin: clamp(12px, 2.6svh, 30px) 0 0; max-width: 30em; line-height: 1.3; font-size: clamp(.95rem, 2.1svh, 1.35rem); }
.hero .cta { display: flex; flex-wrap: wrap; gap: 10px 12px; margin-top: clamp(14px, 3svh, 34px); }
.hero .cta .btn { gap: .7em; }
.hero .cta .arr { width: 1.25em; height: 1.25em; flex: none; }
.hero .art { grid-area: art; container-type: size; min-height: 0; display: flex; align-items: flex-end; justify-content: center; margin-top: clamp(8px, 2svh, 24px); }
/* on tall phones the counter may run a little past the sides (the cabinet's ends get cropped) rather than leave a gap */
.counter { --win: 3.1s; position: relative; flex: none; width: min(118cqw, 133.33cqh); aspect-ratio: 1448 / 1086; transform: translateY(5.5%); }
/* translateY: the illustration's cabinet ends at 95% of its height (transparent below): pushed down so it runs past the
   hero's bottom edge, the drawers cut off a little, no background under it */
.counter > img { width: 100%; height: 100%; }
@media (min-width: 760px) and (min-aspect-ratio: 1/1) {
  /* --cw: the counter's width, as tall as the hero allows, at most 58% of the page; --tw: what's left for the copy, from the
     header's left edge to the counter (its visible left edge is ~3.5% in, after the cut-off) */
  .hero { --cw: min(54vw, calc((100svh - var(--chrome) - 16px) * 1.3333));
    --tw: calc(100vw - var(--cw) * .965 - max(var(--gutter), (100vw - var(--wrap)) / 2 + var(--gutter)) - clamp(16px, 2.5vw, 48px)); }
  .hero > .wrap { grid-template: "copy" minmax(0, 1fr) / minmax(0, 1fr); padding-top: 0; }
  .hero .copy { position: relative; z-index: 2; align-self: center; max-width: var(--tw); padding-bottom: 2svh; }
  .hero h1 { font-size: min(calc(var(--tw) / 9.6), 7.4svh, 96px); }
  .hero h1:lang(fr) { font-size: min(calc(var(--tw) / 11.2), 6.4svh, 84px); }
  .hero .tagline { font-size: clamp(.95rem, min(1.4vw, 2.4svh), 1.35rem); }
  /* from the wrap's right edge out to the page's (100vw counts the scrollbar: it overshoots, never short) */
  .hero .art { position: absolute; z-index: 1; bottom: 0; right: calc(-1 * max(0px, (100vw - var(--wrap)) / 2)); width: var(--cw);
    display: block; container-type: normal; margin: 0; }
  .hero .counter { width: 100%; transform: translate(2.5%, 5.5%); }
}
@media (max-width: 480px) { .hero .cta .btn { padding: 0 18px; font-size: .8rem; } }
.sticker { position: absolute; z-index: 3; width: var(--w, 120px); transform: rotate(var(--r, 0deg)); pointer-events: none; }
.sticker svg { width: 100%; height: auto; overflow: visible; }
@media (max-width: 760px) { .sticker.opt { display: none; } }

/* the counter's screen: laid over the illustration's square-cornered screen (its pixels: 354,109 to 1090,521 of 1448x1086, plus a pixel
   into the black frame all round so no sliver of the drawn screen shows at any size),
   sized from its own box. Four scenes, one shown at a time (.on), cross-fading like the real player. */
.tv { position: absolute; left: 24.38%; top: 9.95%; width: 50.97%; height: 38.12%; container-type: size; overflow: hidden; background: var(--carbon); }
.scene { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.scene.on { opacity: 1; }
.scene p { margin: 0; }
.tv .big { font-weight: 900; font-stretch: 125%; text-transform: uppercase; line-height: .84; letter-spacing: -.01em; }
.s-wheel { background: var(--violet); color: var(--paper); flex-direction: row; justify-content: flex-start; gap: 4.5cqw; padding-left: 6cqw; text-align: left; }
.tv-wheel { position: relative; height: 74cqh; aspect-ratio: 1; flex: none; }
.tv-wheel .spin, .tv-wheel .spin svg { width: 100%; height: 100%; }
.tv-pointer { position: absolute; left: 50%; top: -7%; width: 13%; transform: translateX(-50%); z-index: 2; }
.s-wheel.go .spin { animation: tv-spin 3.2s cubic-bezier(.13, .62, .12, 1) .3s both; }
@keyframes tv-spin { from { transform: rotate(0deg); } to { transform: rotate(1597deg); } }
.tv-title, .won-title { font-weight: 900; font-stretch: 125%; text-transform: uppercase; line-height: .84; font-size: 10.5cqw; }
.tv-title:lang(fr) { font-size: 7.2cqw; }
/* the win, as the wheel stops (--win, the same moment the receipt starts printing): the title gives way to "You won!" and
   the prize, the wheel bumps, confetti bursts from it. All keyed on .go, so they reset with the wheel. */
.tv-side { display: grid; align-items: center; }
.tv-side > * { grid-area: 1 / 1; }
.tv-won { opacity: 0; }
.won-title:lang(fr) { font-size: 8.6cqw; }
.won-prize:lang(fr) { font-size: 4.1cqw; }
.won-prize { display: inline-block; margin-top: 4cqh; padding: 1.2cqw 3.6cqw; border: .35cqw solid var(--carbon); border-radius: 999px; background: var(--sun);
  color: var(--carbon); font-weight: 900; font-size: 4.6cqw; white-space: nowrap; transform: rotate(-4deg); }
.s-wheel.go .tv-title { animation: tv-out .25s ease-in calc(var(--win) - .1s) both; }
.s-wheel.go .tv-won { animation: tv-won .55s cubic-bezier(.3, 1.6, .5, 1) var(--win) both; }
.s-wheel.go .tv-wheel { animation: tv-bump .5s ease-out var(--win); }
@keyframes tv-out { to { opacity: 0; transform: scale(.9); } }
@keyframes tv-won { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes tv-bump { 40% { transform: scale(1.06); } }
.tv-confetti { position: absolute; left: calc(6cqw + 37cqh); top: 50%; pointer-events: none; }
.tv-confetti i { position: absolute; width: 2.8cqw; height: 1.5cqw; border-radius: .3cqw; opacity: 0; }
.s-wheel.go .tv-confetti i { animation: tv-confetti 1.7s cubic-bezier(.2, .7, .4, 1) calc(var(--win) + var(--d)) both; }
@keyframes tv-confetti {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(.3); }
  45% { opacity: 1; transform: translate(-50%, -50%) translate(var(--x), var(--y)) rotate(calc(var(--r) / 2)); }
  100% { opacity: 0; transform: translate(-50%, -50%) translate(calc(var(--x) * 1.3), calc(var(--y) + 60cqh)) rotate(var(--r)); } }
.s-promo { background: var(--sun); align-items: flex-start; padding-left: 7cqw; text-align: left; }
.s-promo .kick { font-weight: 800; font-size: 4cqw; margin-bottom: 3cqh; }
.s-promo .big { font-size: 8cqw; }
.tag-price { position: absolute; right: 5cqw; top: 50%; display: grid; place-items: center; width: 23cqw; aspect-ratio: 1; border-radius: 50%; background: var(--ember);
  color: var(--paper); font-weight: 900; font-stretch: 115%; font-size: 6cqw; transform: translateY(-50%) rotate(-10deg); border: .35cqw solid var(--carbon); }
.s-cookie { background: var(--mint); }
.s-cookie .big { font-size: 14cqw; }
.s-cookie .deal { margin-top: 5cqh; padding: 1.4cqw 4.5cqw; border: .35cqw solid var(--carbon); border-radius: 999px; background: var(--paper); font-weight: 900; font-size: 6.4cqw; transform: rotate(-3deg); }
/* the reviews app: its invitation beside the QR code in a speech bubble with Google's G, popping in as the slide comes up
   (the QR leads to counternode.com) */
.s-reviews { background: var(--blue); flex-direction: row; justify-content: space-between; gap: 3cqw; padding: 0 8cqw 0 7cqw; text-align: left; }
.s-reviews .big { font-size: 7cqw; }
.s-reviews .big:lang(fr) { font-size: 5.6cqw; }
.rv-rate { display: inline-flex; align-items: center; gap: 1.6cqw; margin-top: 5cqh !important; padding: 1.1cqw 2.6cqw; background: var(--paper);
  border: .35cqw solid var(--carbon); border-radius: 999px; font-weight: 900; font-size: 3.4cqw; transform: rotate(-2deg); }
.rv-stars { height: 3.2cqw; width: auto; display: block; }
.rv-bubble { position: relative; flex: none; height: 60cqh; aspect-ratio: 1; box-sizing: border-box; padding: 4cqh; background: var(--paper);
  border: .4cqw solid var(--carbon); border-radius: 4cqw; box-shadow: 1cqw 1cqw 0 var(--carbon); transform: rotate(3deg); }
.tv-qr { display: block; width: 100%; height: 100%; }
.rv-tail { position: absolute; left: 16%; bottom: -9cqh; width: 6cqw; height: 9.4cqh; overflow: visible; }
.rv-g { position: absolute; left: -5.5cqw; top: -7cqh; width: 11.5cqw; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%;
  background: var(--paper); border: .4cqw solid var(--carbon); box-shadow: .6cqw .6cqw 0 var(--carbon); transform: rotate(-3deg); }
.rv-g .g { width: 62%; height: 62%; display: block; }
.s-reviews.go .rv-bubble { animation: rv-pop .7s cubic-bezier(.2, 1.5, .4, 1) .15s both; }
.s-reviews.go .rv-g { animation: rv-pop .6s cubic-bezier(.2, 1.7, .4, 1) .45s both; }
@keyframes rv-pop { from { opacity: 0; scale: .6; } }
@media (prefers-reduced-motion: reduce) { .scene { transition: none; } .s-wheel.go .spin, .s-wheel.go .tv-title, .s-wheel.go .tv-won, .s-wheel.go .tv-wheel, .s-wheel.go .tv-confetti i, .s-reviews.go .rv-bubble, .s-reviews.go .rv-g { animation: none; } }
/* the printer's receipt, a separate image over the drawn printer: it feeds out of the slot as the wheel stops (.print on
   .counter) and a customer's hand reaches up from below and takes it, before the next slide comes
   up (.take). Clipped at the slot's top edge only. The hand's box is the receipt's, so the two move together. */
.receipt { position: absolute; left: 9.669%; top: 44.107%; width: 11.326%; height: 10.773%; clip-path: inset(-80% -40% 0 -40%); }
.receipt img { display: block; width: 100%; height: 100%; transform: translateY(101%); }
.counter.print .receipt img { animation: rc-print 1.1s cubic-bezier(.25, .45, .45, 1) var(--win) both; }
.grab { position: absolute; left: 9.669%; top: 44.107%; width: 11.326%; height: 10.773%; pointer-events: none; opacity: 0; }
.grab img { position: absolute; left: 15.09%; top: 37.01%; width: 76.73%; height: 739.01%; max-width: none; }
.counter.take .grab { animation: rc-hand .9s both; }
.counter.take .receipt { animation: rc-taken .9s both; }
@keyframes rc-print { from { transform: translateY(101%); } to { transform: none; } }
@keyframes rc-hand {                 /* up from below the hero's bottom edge, a moment's grip, then down with the receipt */
  0% { opacity: 1; transform: translateY(640%); animation-timing-function: cubic-bezier(.2, .7, .35, 1); }
  45%, 55% { opacity: 1; transform: none; animation-timing-function: cubic-bezier(.55, 0, .8, .4); }
  100% { opacity: 1; transform: translateY(640%); } }
@keyframes rc-taken {
  0%, 55% { transform: none; animation-timing-function: cubic-bezier(.55, 0, .8, .4); }
  100% { transform: translateY(640%); } }
@media (prefers-reduced-motion: reduce) { .receipt img, .counter.print .receipt img { animation: none; transform: none; } }

/* apps: a row of same-size cards that scrolls sideways when they don't all fit (three across on a wide screen, two on a
   tablet, one and a bit on a phone); the arrows (site.js) show only then. Then the line about custom apps. */
.apps-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 0 40px; }
.apps-head .lead { margin-bottom: 2em; }
.apps-nav { display: flex; gap: 8px; margin: 0 0 2em auto; }
.apps-nav[hidden] { display: none; }
.apps-nav .pill { width: 50px; min-height: 50px; padding: 0; justify-content: center; cursor: pointer; color: inherit; font: inherit; }
.apps-nav svg { width: 20px; height: 20px; }
.apps-nav .nav-prev svg { rotate: 180deg; }
.apps-nav .pill:disabled { opacity: .3; cursor: default; background: var(--paper); color: inherit; }
.apps { --n: 3; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - (var(--n) - 1) * 16px) / var(--n)); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
.apps::-webkit-scrollbar { display: none; }
.app { scroll-snap-align: start; display: flex; flex-direction: column; min-width: 0; border: var(--line); border-radius: 40px;
  padding: clamp(24px, 3vw, 40px); position: relative; overflow: hidden; }
.app.sun { background: var(--sun); }
.app.blue { background: var(--blue); }
.app.mint { background: var(--mint); }
.app h3 { margin-top: 0; }
.app p { max-width: 30em; }
.app .art { width: min(330px, 90%); margin: auto 0 0 auto; padding-top: 20px; transform: rotate(-3deg); }
.app .demo { margin-top: auto; }
@media (max-width: 1100px) { .apps { --n: 2; } }
@media (max-width: 700px) {      /* one card and the edge of the next, running to the screen's edges */
  .apps { grid-auto-columns: 84%; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); } }
@media (prefers-reduced-motion: reduce) { .app .art { transform: none; } }
.custom { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); margin-top: 16px; padding: 16px 16px 16px 24px; background: var(--lavender);
  border: var(--line); border-radius: 999px; }
.custom .plus { width: 54px; flex: none; transform: rotate(-6deg); }
.custom p { margin: 0; flex: 1; max-width: 62em; line-height: 1.4; }
.custom .btn { flex: none; }
@media (max-width: 700px) { .custom { flex-wrap: wrap; border-radius: 32px; padding: 22px; } .custom .plus { width: 44px; } }

/* the wheel and its printed coupon inside the wheel app's card (a still picture, sized from its own width) */
.demo { container-type: inline-size; width: 100%; padding-top: 10px; }
.stage { position: relative; aspect-ratio: 1 / .84; }
.wheel-box { position: absolute; left: 0; top: 6%; width: 68%; aspect-ratio: 1; }
.wheel { width: 100%; height: 100%; will-change: transform; }
.wheel svg { width: 100%; height: 100%; overflow: visible; }
.pointer { position: absolute; left: 50%; top: -5%; width: 11%; transform: translateX(-50%); z-index: 2; }
.printer { position: absolute; right: 0; top: 14%; width: 46%; z-index: 3; transform: rotate(3deg); }
.printer-body { position: relative; height: 6cqw; background: var(--carbon); border-radius: 3cqw; }
.printer-led { position: absolute; left: 7%; top: 50%; width: 1.6cqw; height: 1.6cqw; margin-top: -.8cqw; border-radius: 50%; background: var(--mint); }
.chute { overflow: hidden; margin: -2cqw 8% 0; padding-bottom: 2cqw; }
.coupon { background: var(--paper); border: var(--line); color: #000; font-family: var(--print); padding: 4cqw 3cqw 3cqw; font-size: 2.4cqw; line-height: 1.35; text-align: center;
  letter-spacing: 0; border-radius: 0 0 2.4cqw 2.4cqw; clip-path: inset(0 0 100% 0); }
.coupon.out { clip-path: inset(0 0 0 0); transition: clip-path 1.6s steps(16, end); }
.coupon .shop { font-weight: 700; font-size: 2.6cqw; }
.coupon .rule { border-top: .3cqw dashed #000; margin: 1.6cqw 0; }
.coupon .prize { font-weight: 700; font-size: 4.6cqw; line-height: 1.05; margin: 1.2cqw 0 1.4cqw; }
.coupon .bars { height: 7cqw; width: 88%; margin: 1.6cqw auto .6cqw; }
.coupon .code { letter-spacing: .25em; font-size: 2.1cqw; }
.coupon .small { font-size: 1.9cqw; margin-top: 1.2cqw; }
@media (prefers-reduced-motion: reduce) { .printer { transform: none; } }

/* how it works: a real sequence, so it's numbered */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.steps li { counter-increment: step; background: var(--paper); border: var(--line); border-radius: 30px; padding: 26px; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 64px; height: 64px; border: var(--line); border-radius: 50%; background: var(--c, var(--sun));
  font-weight: 900; font-stretch: 125%; font-size: 1.9rem; line-height: 1; margin-bottom: 20px; }
.steps li:nth-child(2) { --c: var(--mint); }
.steps li:nth-child(3) { --c: var(--lavender); }
.steps li:nth-child(4) { --c: var(--blue); }
.steps p { margin: 0; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* one app for everything (coming) */
.pocket .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.pocket .phone { justify-self: center; width: min(310px, 78%); transform: rotate(5deg); }
@media (max-width: 860px) { .pocket .wrap { grid-template-columns: 1fr; } }

/* price: two stickers */
.prices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 1000px; }
.price-card { border: var(--line); border-radius: 40px; padding: clamp(26px, 3.4vw, 44px); }
.price-card.violet { background: var(--violet); color: var(--paper); transform: rotate(-1.5deg); }
.price-card.sun { background: var(--sun); transform: rotate(1.2deg); }
.price-card .amount { white-space: nowrap; font-weight: 900; font-stretch: 125%; font-size: clamp(3.8rem, 8vw, 7rem); line-height: .8; letter-spacing: -.02em; margin: 4px 0 16px; }
.price-card .amount small { font-size: .28em; font-stretch: 100%; letter-spacing: 0; font-weight: 700; }
.price-card .amount small.per { display: block; margin-top: .45em; line-height: 1.1; white-space: normal; }
.price-card .what { font-weight: 800; font-size: 1.2rem; margin-bottom: 6px; }
.price-card p { margin: 0; }
.price-card .also { display: block; font-size: 1.35rem; font-weight: 800; line-height: 1.2; margin-bottom: 8px; }
.price-note { margin-top: 34px; max-width: 46em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
@media (max-width: 700px) { .prices { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .price-card.violet, .price-card.sun, .pocket .phone { transform: none; } }

/* customers (filled from /api/public/customers; hidden if there are none) */
.customers { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 20px; }
.customers li { width: 210px; }
.customers a { text-decoration: none; display: block; }
.customers a:hover .cname { text-decoration: underline; }
.customers .logo { height: 130px; display: flex; align-items: center; justify-content: center; background: var(--paper); border: var(--line); border-radius: 30px; padding: 18px; margin-bottom: 12px; }
.customers .logo.dark { background: var(--carbon); }
.customers .logo img { max-height: 100%; max-width: 100%; object-fit: contain; }
.customers .logo .initial { font-weight: 900; font-stretch: 115%; font-size: 1.5rem; line-height: 1.05; text-align: center; text-transform: uppercase; }
.customers .cname { font-weight: 800; display: block; line-height: 1.3; }
.customers .ccity { font-size: .95rem; }

/* questions */
.faq { max-width: 54em; display: grid; gap: 10px; }
.faq details { border: var(--line); border-radius: 30px; background: var(--paper); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 68px 20px 26px; position: relative; font-weight: 800; font-size: 1.15rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 14px; top: 50%; width: 38px; height: 38px; margin-top: -19px; border: var(--line); border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: 1.35rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--sun); }
.faq details p { margin: 0; padding: 0 26px 22px; max-width: 46em; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* closing call */
.contact .display { font-size: clamp(3.4rem, 12.5vw, 12rem); }
.contact .row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 34px; }
.contact .mail { font-weight: 800; font-size: clamp(1.1rem, 2vw, 1.5rem); }
.contact .sticker { right: var(--gutter); top: 40px; }

footer { background: var(--carbon); color: var(--paper); padding: 26px 0 34px; font-size: .9rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; }
footer a { color: var(--paper); }
footer .grow { flex: 1; font-weight: 800; }

/* legal pages */
.legal { background: var(--sky); padding: clamp(32px, 5vw, 64px) 0 96px; }
.legal .wrap > * { max-width: 46rem; }
.legal h1 { font-weight: 900; font-stretch: 125%; text-transform: uppercase; line-height: .82; font-size: clamp(2.4rem, 6vw, 4.6rem); margin: 0 0 .45em; }
.legal h2 { font-size: 1.4rem; font-weight: 800; margin: 1.8em 0 .5em; }
.legal .updated { font-weight: 700; }
/* the hardware page: one card per thing to buy, its rough price on the right */
.gear { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 12px; }
.gear li { background: var(--paper); border: var(--line); border-radius: 24px; padding: 18px 22px; display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; }
.gear b { font-size: 1.12rem; font-weight: 800; }
.gear .cost { font-weight: 700; white-space: nowrap; }
.gear p { grid-column: 1 / -1; margin: 0; }
@media (max-width: 560px) { .gear li { grid-template-columns: 1fr; } }
.gear-page .cta-row { margin-top: 28px; }

/* sticker placements (classes, not inline styles: the site's CSP blocks those) */
.contact .st-spark { --w: clamp(60px, 7vw, 110px); --r: 14deg; right: var(--gutter); top: 40px; }
