/* lienzovirtual's house style (cream canvas, black ink, hard shadows, Space Grotesk + JetBrains Mono),
   in smak's colours: tomato red, mustard and the app's green. */
:root {
  --canvas: #FBF7EE; --ink: #000000; --paper: #FFFFFF;
  --tomato: #FF7A5C; --tomato-h: #F76545; --tomato-soft: #FFE1D8;
  --mustard: #F8BD21; --mustard-soft: #FDEFC3;
  --green: #1E5A40; --green-soft: #D9F2E3;
  --sh-6: 6px 6px 0 var(--ink); --sh-4: 4px 4px 0 var(--ink); --sh-2: 2px 2px 0 var(--ink);
  --disp: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-x: clip; background: var(--canvas); color: var(--ink); font-family: var(--disp); font-weight: 500; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 28px 24px 48px; }

/* Sticky: the language picker and the way home stay reachable down a long page. */
.top { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin: -28px -24px 50px; padding: 18px 24px; background: var(--canvas); border-bottom: 2.5px solid transparent; }
.pills { display: inline-flex; gap: 10px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 7px; border: 2.5px solid var(--ink); border-radius: 999px; padding: 7px 14px; font-family: var(--mono); font-weight: 700; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; background: var(--paper); box-shadow: var(--sh-2); white-space: nowrap; text-decoration: none; cursor: pointer; }
.pill.brand { background: var(--mustard); font-size: 13px; letter-spacing: .06em; padding: 5px 14px 5px 6px; }
.pill.brand img { border-radius: 999px; border: 1.5px solid var(--ink); }
.pill.back:hover, .langs summary:hover { background: var(--tomato-soft); }

.langs { position: relative; }
.langs summary { list-style: none; }
.langs summary::-webkit-details-marker { display: none; }
.langs ul { position: absolute; right: 0; top: calc(100% + 8px); z-index: 2; margin: 0; padding: 6px; list-style: none; min-width: 170px; background: var(--paper); border: 2.5px solid var(--ink); border-radius: 14px; box-shadow: var(--sh-4); }
.langs a { display: block; padding: 7px 10px; border-radius: 8px; font-weight: 700; font-size: 14px; text-decoration: none; }
.langs a:hover { background: var(--tomato-soft); }
.langs a[aria-current] { background: var(--mustard-soft); }

.hero { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.hero .icon { display: block; margin: 0 auto 18px; border: 3px solid var(--ink); border-radius: 24px; box-shadow: var(--sh-4); }
.sticker { display: inline-block; transform: rotate(-2deg); border: 2.5px solid var(--ink); border-radius: 999px; background: var(--tomato); box-shadow: var(--sh-2); padding: 7px 15px; font-family: var(--mono); font-weight: 700; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; }
h1 { font-family: var(--disp); font-weight: 700; font-size: clamp(34px, 6vw, 58px); line-height: 1.05; letter-spacing: -.03em; margin: 20px 0 10px; text-wrap: balance; }
.lede { margin: 0 auto; font-size: 17px; font-weight: 500; max-width: 50ch; }

.note { margin: 22px auto 0; max-width: 56ch; font-size: 13.5px; color: #3a3a3a; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; gap: 8px; border: 2.5px solid var(--ink); border-radius: 14px; padding: 14px 22px; font-family: var(--mono); font-weight: 700; font-size: 14px; letter-spacing: .02em; text-decoration: none; box-shadow: var(--sh-4); transition: transform .15s ease-out, box-shadow .15s ease-out; white-space: nowrap; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn-primary { background: var(--mustard); }
.btn-primary:hover { background: #EFB10F; }
.btn-ghost { background: var(--paper); }
.btn-link { align-self: center; font-family: var(--mono); font-weight: 700; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.btn-link:hover { color: var(--tomato-h); }

/* Breaks out of .wrap without restructuring the markup. */
.band { margin-inline: calc(50% - 50vw); padding: 12px calc(50vw - 50%) 8px; }
.band-paper { background: var(--paper); border-block: 3px solid var(--ink); margin-block: 54px; padding-top: 46px; }

h2.section { display: flex; align-items: baseline; gap: 14px; font-family: var(--disp); font-weight: 700; font-size: 26px; letter-spacing: -.02em; margin: 40px 0 26px; }
.band h2.section { margin-top: 0; }
.kicker { font-family: var(--mono); font-weight: 700; font-size: 13px; letter-spacing: .12em; color: var(--tomato-h); }

/* How it works is a sequence, not three equal things: numerals and a dashed thread, no boxes. */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; margin: 0; padding: 0; }
.steps li { position: relative; }
.step-n { display: grid; place-items: center; width: 54px; height: 54px; border: 3px solid var(--ink); border-radius: 16px; background: var(--mustard); box-shadow: var(--sh-2); font-family: var(--mono); font-weight: 700; font-size: 22px; }
.steps h3 { font-family: var(--disp); font-weight: 700; font-size: 19px; letter-spacing: -.01em; margin: 16px 0 6px; }
.steps p { margin: 0; font-size: 14.5px; max-width: 34ch; }

/* The scanner is what sells it, so it gets the wide cell and the colour; the rest stay quiet. */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.features > :first-child { grid-column: span 2; background: var(--mustard-soft); box-shadow: var(--sh-4); }
.features > :last-child { grid-column: span 3; box-shadow: var(--sh-4); }
.features > :first-child, .features > :last-child { flex-direction: row; align-items: center; gap: 20px; }
.features > :first-child .glyph, .features > :last-child .glyph { width: 60px; height: 60px; }
.features > :first-child .glyph { background: var(--mustard); }
.features > :last-child .glyph { background: var(--green-soft); }
.features > :first-child .glyph svg, .features > :last-child .glyph svg { width: 30px; height: 30px; }
.features > :first-child h3, .features > :last-child h3 { font-size: 22px; }
.features > :first-child p, .features > :last-child p { font-size: 15px; max-width: 54ch; }
.card { border: 2.5px solid var(--ink); border-radius: 20px; box-shadow: var(--sh-2); padding: 22px; background: var(--paper); display: flex; flex-direction: column; gap: 10px; }
.card .txt { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.card h3 { font-family: var(--disp); font-weight: 700; font-size: 18px; margin: 2px 0 0; letter-spacing: -.01em; }
.card p { margin: 0; font-size: 13.5px; font-weight: 500; line-height: 1.5; color: #2b2b2b; }
.glyph { width: 44px; height: 44px; border: 2.5px solid var(--ink); border-radius: 12px; display: grid; place-items: center; background: var(--green-soft); flex: none; }
.glyph svg { width: 22px; height: 22px; }
.card.perKg .glyph, .card.photos .glyph { background: var(--mustard-soft); }
.card.value .glyph, .card.sync .glyph { background: var(--tomato-soft); }

.strip { margin-top: 28px; border: 3px solid var(--ink); border-radius: 20px; box-shadow: var(--sh-6); padding: 24px 26px; display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.strip .glyph { background: var(--paper); }
.strip .txt { flex: 1 1 340px; min-width: 0; }
.strip h2 { font-family: var(--disp); font-weight: 700; font-size: 19px; margin: 0 0 6px; }
.strip p { margin: 0; font-size: 14px; max-width: 64ch; }
.strip ul { margin: 0; padding-left: 1.1em; font-size: 14px; }
.privacy { background: var(--green-soft); }
.install { background: var(--tomato-soft); margin-top: 26px; }

hr { border: 0; border-top: 4px dashed var(--ink); margin: 34px 0 22px; }
.foot { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; font-family: var(--mono); font-size: 12px; }
.foot a { text-decoration: underline; }

@media (max-width: 820px) {
  .grid, .features, .steps { grid-template-columns: 1fr; }
  .features > :first-child, .features > :last-child { grid-column: auto; flex-direction: column; align-items: stretch; }
  .steps { gap: 26px; }
  .steps li + li::before { display: none; }
  .btn:hover { transform: none; box-shadow: var(--sh-4); }
  .band-paper { margin-block: 38px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

.shots { display: flex; justify-content: center; align-items: flex-start; gap: 28px; margin: 8px 0 20px; }
.phone { margin: 0; width: 250px; flex: 0 1 250px; border: 3.5px solid var(--ink); border-radius: 34px; padding: 8px; background: var(--ink); box-shadow: var(--sh-6); }
.phone img { display: block; width: 100%; height: auto; border-radius: 26px; }
.phone.p1 { transform: rotate(-3deg); margin-top: 26px; }
.phone.p3 { transform: rotate(3deg); margin-top: 26px; }
@media (max-width: 820px) {
  .shots { overflow-x: auto; justify-content: flex-start; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 10px 16px 2px; margin: 0 0 10px; }
  .phone { flex: 0 0 220px; scroll-snap-align: center; }
  .phone.p1, .phone.p3 { transform: none; margin-top: 0; }
}

/* ---- everyone's rankings ---- */
.ranking { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; align-items: start; }
.ranking .loading, .ranking .notice { grid-column: 1 / -1; text-align: center; font-family: var(--mono); font-size: 14px; }
.ranking .notice { background: var(--paper); border: 3px solid var(--ink); border-radius: 20px; box-shadow: var(--sh-4); padding: 22px; }
.rank-cat { background: var(--paper); border: 3px solid var(--ink); border-radius: 22px; box-shadow: var(--sh-4); padding: 20px; }
.rank-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.rank-head h2 { font-family: var(--disp); font-weight: 700; font-size: 22px; letter-spacing: -.02em; margin: 0; }
.rank-head .tag { background: var(--green-soft); border: 2.5px solid var(--ink); border-radius: 999px; padding: 3px 10px; font-family: var(--mono); font-weight: 700; font-size: 11px; white-space: nowrap; }
.rank-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rank-list li { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; border: 2.5px solid var(--ink); border-radius: 14px; padding: 9px 12px 9px 9px; background: var(--canvas); }
.rank-list li.first { background: var(--mustard-soft); box-shadow: var(--sh-2); }
.rank-list .pos { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--ink); color: var(--paper); font-family: var(--mono); font-weight: 700; }
.rank-list li.first .pos { background: var(--mustard); border: 2px solid var(--ink); }
.rank-list .what { min-width: 0; }
.rank-list b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-list small { font-family: var(--mono); font-size: 11.5px; color: #2b2b2b; }
.rank-list .score { background: var(--mustard); border: 2.5px solid var(--ink); border-radius: 10px; padding: 3px 9px; font-family: var(--mono); font-weight: 700; font-size: 13px; white-space: nowrap; }
@media (max-width: 820px) { .ranking { grid-template-columns: 1fr; } .rank-list b { white-space: normal; } }

.store-filter { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 0 0 24px; }
.store-filter button { font-family: var(--mono); font-weight: 700; font-size: 13px; background: var(--paper); border: 2.5px solid var(--ink); border-radius: 999px; padding: 7px 14px; box-shadow: var(--sh-2); cursor: pointer; }
.store-filter button.on { background: var(--ink); color: var(--mustard); }
