:root {
  --bg: #f2f4f5;
  --surface: #ffffff;
  --fg: #17243d;
  --ink: #17243d;
  --edge: #c3cdd5;
  --ink-2: #485773;
  --shadow: #d7dfe5;
  --focus: #2454d6;
  --blue: #2454d6;
  --bar: #111f30;
  --steel-panel: #20364c;
  --steel-line: #3c5267;
  --warning-stripe: repeating-linear-gradient(135deg, var(--gold) 0 12px, #17243d 12px 24px);
  --ice: #e3edff;
  --tint: #eff4ff;
  --gold: #ffca72;
  --pale-blue: #b6c9ff;
  --periwinkle: #cedcff;
  --steel: #7a9eea;
  --hard: 5px 5px 0 var(--shadow);
  --radius: 8px;
  --display: "Baloo 2", "Be Vietnam Pro", system-ui, sans-serif;
  --text: "Be Vietnam Pro", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11192a;
    --surface: #19253b;
    --fg: #eff4ff;
    --ink: #152039;
    --edge: #374763;
    --ink-2: #bdcbe4;
    --shadow: #21344f;
    --focus: #e3edff;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 16px/1.6 var(--text);
  color: var(--fg);
  background:
    radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--fg) 12%, transparent) 1px, transparent 1.5px) 0 0 / 20px 20px,
    var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.top :focus-visible, .hero :focus-visible, .foot :focus-visible { outline-color: var(--gold); }
main section[id] { scroll-margin-top: 90px; }

/* Header: workshop sign */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px clamp(16px, 4vw, 48px);
  background: var(--bar); color: #fff;
  border-bottom: 3px solid var(--steel-line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 25px/1 var(--display); letter-spacing: -0.01em; }
.brand img { border-radius: 11px; transition: transform .3s; }
.brand:hover img { transform: rotate(-10deg) scale(1.08); }
.brand b { color: var(--gold); }
.top nav { display: flex; gap: 6px; }
.top nav a {
  text-decoration: none; font-weight: 700; font-size: 15px;
  padding: 8px 14px; border-radius: 5px; transition: background .2s, color .2s;
}
.top nav a:hover { background: var(--ice); color: var(--ink); }
.top nav { align-items: center; }
.top nav a, .brand { white-space: nowrap; }
.lang { display: flex; margin-left: 6px; padding: 3px; border-radius: 5px; border: 1px solid var(--steel-line); }
.lang button {
  font: 800 13px/1 var(--text); letter-spacing: .04em; color: inherit; cursor: pointer;
  padding: 7px 10px; border: 0; border-radius: 3px; background: none; transition: background .2s, color .2s;
}
.lang button:hover { background: var(--ice); color: #17243d; }
.lang button[aria-pressed="true"] { background: var(--gold); color: var(--bar); }
.share-site, .install-app {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer; white-space: nowrap;
  font: 700 15px/1 var(--text); color: inherit; background: none; border: 0;
  padding: 6px 14px 6px 8px; border-radius: 5px; transition: background .2s, color .2s;
}
.share-site svg, .install-app svg { width: 26px; height: 26px; }
.share-site:hover, .install-app:hover { background: var(--ice); color: var(--ink); }

main { max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }

/* Hero */
.hero {
  display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(20px, 3.5vw, 56px); align-items: center;
  margin-top: clamp(16px, 3vw, 36px); padding: clamp(22px, 4vw, 54px);
  color: #f6f8fa; border: 1px solid var(--steel-line); border-radius: var(--radius) var(--radius) 0 0;
  background:
    radial-gradient(circle at 1px 1px, #ffffff14 1px, transparent 1.5px) 0 0 / 18px 18px,
    linear-gradient(125deg, var(--bar) 30%, var(--steel-panel));
}
.hero h1 { margin: 0; font: 800 clamp(2.4rem, 5.4vw, 4.5rem)/1.03 var(--display); letter-spacing: -.035em; }
.hl { color: var(--gold); }
.lead { margin: 16px 0 0; font-size: clamp(1rem, 1.5vw, 1.1875rem); color: #d4dfe9; max-width: 46ch; }
.hero-ctas { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin-top: 20px; }
.btn-main, .btn-install {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 9px 16px; border: 1px solid transparent; border-radius: 5px;
  font: 800 1rem/1.25 var(--display); text-decoration: none; color: #17243d;
  transition: transform .15s, background .15s, box-shadow .15s;
}
.btn-main { background: var(--gold); color: var(--bar); box-shadow: 0 4px 0 #a66d24; }
.btn-install { cursor: pointer; color: var(--fg); background: var(--surface); border-color: var(--edge); box-shadow: none; }
.btn-install svg { width: 22px; height: 22px; }
.btn-main:hover { background: #ffdc9e; }
.btn-install:hover { background: var(--ice); color: #17243d; }
.btn-main:hover, .btn-install:hover { transform: translateY(-2px); }
.btn-main:active, .btn-install:active { transform: translateY(2px); box-shadow: none; }

/* Workshop SVG */
.hero-art {
  position: relative; width: 100%; max-width: 520px; justify-self: center;
  padding: clamp(10px, 2vw, 22px);
  border: 1px solid #70889e; border-radius: 5px;
  background:
    linear-gradient(to right, #aec8e028 1px, transparent 1px),
    linear-gradient(to bottom, #aec8e028 1px, transparent 1px),
    radial-gradient(ellipse at 50% 65%, #476580, #263f56 80%);
  background-size: 22px 22px, 22px 22px, 100% 100%;
  box-shadow: inset 0 0 0 5px #111f304d, 0 5px 0 #0c1624;
}
.hero-art::before, .hero-art::after {
  content: ""; position: absolute; inset: 7px 7px auto; height: 5px;
  background: radial-gradient(circle, #a0b1c0 2px, #111f30 2px 3px, transparent 3px) left center / 6px 6px no-repeat,
    radial-gradient(circle, #a0b1c0 2px, #111f30 2px 3px, transparent 3px) right center / 6px 6px no-repeat;
}
.hero-art::after { inset: auto 7px 7px; }
.factory { display: block; width: 100%; height: auto; overflow: visible; }
.factory .sun { fill: var(--gold); stroke: var(--ink); stroke-width: 4; animation: pulse 4s ease-in-out infinite; transform-origin: 455px 62px; }
@keyframes pulse { 50% { transform: scale(1.08); } }
.cloud ellipse { fill: #9eb3c8; opacity: .75; }
.c1 { animation: drift 14s ease-in-out infinite alternate; }
.c2 { animation: drift 10s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translateX(40px); } }
.chim, .chim-cap, .roof, .wall, .sign, .win, .door, .belt, .leg, .gear circle, .gear rect, .crate rect { stroke: var(--ink); stroke-width: 4; stroke-linejoin: round; }
.chim.blue { fill: var(--pale-blue); } .chim.light { fill: var(--periwinkle); } .chim-cap { fill: var(--ink); }
.roof { fill: #8ea9c0; }
.roof-side, .wall-side { fill: #4b6984; stroke: var(--ink); stroke-width: 4; stroke-linejoin: round; }
.wall-side { fill: #3b566f; }
.roof-window { fill: #d3ecf8; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.wall { fill: #6f91ae; }
.wall-beams { fill: none; stroke: #41617d; stroke-width: 4; }
.wall-base { fill: #45647f; stroke: var(--ink); stroke-width: 3; }
.sign { fill: var(--gold); }
.sign-text { font: 800 27px var(--display); fill: var(--bar); letter-spacing: .04em; }
.factory-rivet { fill: #795621; }
.win { fill: #b8d9ef; }
.win-bar { stroke: var(--ink); stroke-width: 4; }
.door { fill: #b1c3d3; }
.door-slats { fill: none; stroke: #718da6; stroke-width: 2; }
.door-frame { fill: none; stroke: var(--ink); stroke-width: 4; }
.peek { animation: peek 3.6s ease-in-out infinite; }
@keyframes peek { 0%, 100% { transform: translateY(8px); } 40%, 70% { transform: translateY(-6px); } }
.puff { fill: #fff; stroke: var(--ink); stroke-width: 3; opacity: 0; animation: puff 3s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.puffs .puff:nth-child(2) { animation-delay: 1s; } .puffs .puff:nth-child(3) { animation-delay: 2s; }
.p-right .puff { animation-duration: 3.6s; }
@keyframes puff {
  0% { opacity: 0; transform: translate(0, 0) scale(.4); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translate(26px, -70px) scale(1.5); }
}
.gear circle, .gear rect { fill: var(--gold); }
.gear .hub { fill: var(--ink); }
.g-big { transform-origin: 470px 236px; animation: spin 6s linear infinite; }
.g-small { transform-origin: 40px 250px; animation: spin 4s linear infinite reverse; }
.g-small circle, .g-small rect { fill: var(--steel); }
.g-small .hub { fill: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }
.belt { fill: #52728b; }
.conveyor-braces { fill: none; stroke: #8ba7bd; stroke-width: 5; stroke-linejoin: round; }
.rollers circle { fill: #c7d8e5; stroke: var(--ink); stroke-width: 2; }
.leg { fill: #8ba7bd; }
.ground { fill: #738fa7; stroke: var(--ink); stroke-width: 3; }
.crate rect { fill: none; }
.crate-letter { font: 800 24px var(--display); fill: #fff; }
.crate { transform: translateX(var(--rest)); animation: belt 10s linear infinite; }
@keyframes belt { from { transform: translateX(var(--start, -30px)); } to { transform: translateX(var(--end, 520px)); } }

/* Section divider */
.tape { height: 10px; background: var(--warning-stripe); margin: 0 0 clamp(26px, 5vw, 54px); }
.tape.thin { height: 6px; margin: 0; }

/* Section head */
.section-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px 20px;
  flex-wrap: wrap; margin-bottom: 20px; padding: 10px 14px;
  border: 1px solid var(--edge); border-inline-start: 5px solid var(--gold);
  border-radius: 5px; background: var(--surface);
}
.kicker { margin: 0 0 4px; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
@media (prefers-color-scheme: dark) { .kicker { color: var(--pale-blue); } }
.section-head h2 { margin: 0; font: 800 clamp(32px, 4.2vw, 46px)/1.05 var(--display); letter-spacing: -0.02em; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters button {
  font: 700 14px/1 var(--text); color: var(--fg); cursor: pointer;
  min-height: 40px; padding: 8px 12px; border-radius: 5px; border: 1px solid var(--edge); background: var(--surface);
  transition: background .2s, border-color .2s;
}
.filters button span { display: inline-block; min-width: 20px; margin-left: 4px; padding: 1px 6px; border-radius: 6px; background: var(--ice); color: #24345a; }
.filters button:hover { border-color: var(--blue); }
.filters button[aria-pressed="true"] { background: var(--gold); border-color: #a66d24; color: var(--bar); }
.filters button[aria-pressed="true"] span { background: #fff; }

/* Product cards */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: clamp(16px, 2.2vw, 26px); }
.card {
  --accent: var(--blue);
  --card-tint: color-mix(in srgb, var(--accent) 10%, var(--tint));
  display: flex; flex-direction: column;
  min-width: 0; position: relative; overflow: hidden;
  border: 1px solid var(--edge); border-radius: var(--radius); background: var(--surface);
  box-shadow: 4px 4px 0 var(--shadow);
}
.label {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 7px 14px; background: var(--blue); color: #fff;
  font: 800 .875rem/1.3 var(--display); letter-spacing: .045em; text-transform: uppercase;
}
.card .label { justify-content: flex-start; color: #17243d; background: var(--card-tint); }
.lot { background: #17243d; color: var(--ice); padding: 2px 7px; border-radius: 5px; }

.card-main { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 16px; }
.card-meta {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  padding: 5px 8px; border: 1px solid var(--steel-line); border-radius: 3px;
  background: var(--bar); color: #f1f5fa; font: 800 .8125rem/1.25 var(--display);
  letter-spacing: .045em; text-transform: uppercase;
}
.card-meta span:last-child { flex: none; color: var(--gold); }
.title-row { min-width: 0; display: flex; align-items: center; gap: 10px; }
.icon { width: 40px; height: 40px; border-radius: 11px; flex: none; border: 1px solid var(--edge); background: #fff; }
.icon-fallback { display: grid; place-items: center; background: var(--card-tint); color: #17243d; font: 800 1.375rem var(--display); }
.card h3 { margin: 0; font: 800 1.4375rem/1.1 var(--display); letter-spacing: -.015em; overflow-wrap: anywhere; }
.tagline { margin: 0; color: var(--ink-2); font-size: 1rem; line-height: 1.45; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.tags li {
  font-size: .8125rem; font-weight: 600; padding: 3px 8px; border-radius: 999px;
  color: var(--fg); border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--edge));
  background: color-mix(in srgb, var(--accent) 14%, var(--bg));
}

.card-footer { display: grid; gap: 10px; margin-top: auto; padding-top: 4px; }
.actions { display: flex; align-items: center; gap: 8px; }
.cta, .share-btn {
  min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--edge); border-radius: 5px; transition: background .15s, border-color .15s;
}
.cta {
  flex: 1; padding: 6px 14px; border-color: var(--steel-line); background: var(--steel-panel); color: #fff;
  font: 800 1rem/1.15 var(--display); text-decoration: none;
}
.cta:hover { background: #304e69; }
.share-btn { width: 44px; flex: none; padding: 0; cursor: pointer; background: var(--surface); }
.share-btn svg { width: 24px; height: 24px; }
.share-btn:hover { border-color: var(--blue); background: var(--tint); }

.shot { display: block; min-width: 0; padding: 6px; background: var(--steel-panel); }
.shot:focus-visible { outline-offset: -4px; }
.shot img {
  width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover;
  background: var(--card-tint);
}
.card-status:empty { display: none; }
.stamp {
  display: inline-block; vertical-align: top;
  font: 800 .875rem/1.2 var(--display);
  color: #382400; background: #ffdf9b; border-radius: 6px; padding: 4px 8px;
}
.stamp.pick { background: #fff1d6; }

.card-details { border-top: 1px solid var(--edge); color: var(--ink-2); }
.card-details summary {
  width: fit-content; padding: 9px 4px 4px; cursor: pointer;
  font-weight: 700; font-size: .875rem; color: var(--fg);
}
.card-details summary:hover { text-decoration: underline; }
.desc { margin: 8px 0; }
.features { margin: 0; padding-left: 20px; display: grid; gap: 5px; }

/* Card opened from a #slug link */
.card { scroll-margin-top: 88px; }
.card.spotlight { animation: spotlight 1.1s ease-out 2; }
@keyframes spotlight {
  0% { box-shadow: 7px 7px 0 var(--shadow), 0 0 0 0 var(--gold); }
  35% { box-shadow: 7px 7px 0 var(--shadow), 0 0 0 10px var(--gold); }
  100% { box-shadow: 7px 7px 0 var(--shadow), 0 0 0 0 transparent; }
}

/* Newest product */
.card.featured, .card.soon { grid-column: 1 / -1; }
.card.featured { border-color: color-mix(in srgb, var(--accent) 40%, var(--edge)); }
.card.featured h3 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
@media (min-width: 900px) {
  .card.featured { display: grid; grid-template-columns: 1.05fr 1fr; }
  .featured .card-main { justify-content: center; padding: clamp(20px, 3vw, 36px); }
  .featured .shot { align-self: stretch; display: grid; place-items: center; }
  .featured .card-footer { margin-top: 4px; }
  .featured .cta { flex: 0 1 auto; }
  .featured .tagline { max-width: 44ch; }
}

.card.soon { border-style: dashed; box-shadow: none; }
.card.soon .label { background: var(--steel-panel); color: #fff; }
.soon-inner { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 28px; padding: 18px 26px; color: var(--ink-2); }
.soon-text { flex: 1; min-width: 200px; }
.soon-inner h3 { color: var(--fg); font-size: 24px; }
.soon-inner p { margin: 2px 0 0; }
.soon-gears { position: relative; width: 96px; height: 70px; }
.sg { position: absolute; display: inline-block; line-height: 1; }
.sg svg { display: block; width: 100%; height: 100%; }
.sg.a { width: 56px; height: 56px; left: 0; top: 0; animation: spin 5s linear infinite; }
.sg.b { width: 38px; height: 38px; right: 0; bottom: 0; animation: spin 3.5s linear infinite reverse; }
.progress { width: 220px; height: 18px; border: 3px solid var(--ink); border-radius: 3px; background: #fff; overflow: hidden; }
.progress i {
  display: block; height: 100%; width: 62%;
  background: var(--warning-stripe) 0 0 / 34px 34px;
  border-right: 3px solid var(--ink); animation: stripes .8s linear infinite;
}
@keyframes stripes { to { background-position: 34px 0; } }

/* Workshop story and rules */
.about { padding: clamp(64px, 9vw, 104px) 0; }
.about-card {
  --about-accent: var(--gold);
  --about-padding: clamp(20px, 3.5vw, 44px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  overflow: hidden; border: 1px solid var(--edge); border-radius: var(--radius);
  background: var(--surface); box-shadow: 5px 5px 0 var(--shadow);
}
.about-story, .about-rules { padding: var(--about-padding); }
.about-story {
  display: flex; flex-direction: column; justify-content: center;
  color: #f6f8fa;
  background:
    radial-gradient(circle at 1px 1px, #ffffff19 1px, transparent 1.5px) 0 0 / 18px 18px,
    linear-gradient(145deg, var(--bar), var(--steel-panel));
}
.about-story-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 14px;
}
.about-story .kicker {
  margin: 0; padding: 4px 10px; border: 1px solid var(--steel-line); border-radius: 4px;
  background: var(--bar); color: var(--about-accent);
}
.about-mascot {
  width: clamp(44px, 6vw, 60px); height: auto; border: 3px solid #fff; border-radius: 16px;
  box-shadow: 2px 4px 0 color-mix(in srgb, var(--blue) 28%, var(--shadow));
  transform: rotate(8deg);
}
.about-story h2 {
  max-width: 12ch; margin: 0; font: 800 clamp(2.35rem, 5vw, 4rem)/.98 var(--display);
  letter-spacing: -.035em; text-wrap: balance;
}
.about-story h2 span { color: var(--about-accent); }
.about-body {
  max-width: 42ch; margin: 12px 0 0; color: #d4dfe9; line-height: 1.6;
}
.about-story h2 + .about-body { margin-top: 18px; }
.about-rules { border-inline-start: 1px solid var(--edge); }
.about-rules h3 {
  margin: 0 0 4px; color: var(--ink-2); font-size: .8125rem;
  font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
}
.rules { list-style: none; padding: 0; margin: 0; }
.rules li {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 14px;
  padding: 15px 0;
}
.rules li + li { border-top: 1px solid var(--edge); }
.rules li:last-child { padding-bottom: 0; }
.rules h4 { margin: 0 0 3px; font: 800 1.45rem/1.12 var(--display); }
.rules p { margin: 0; color: var(--ink-2); line-height: 1.55; }
.sign-ico {
  display: grid; place-items: center; width: 46px; height: 46px;
  background: var(--ice); border: 1px solid var(--ink); border-radius: 5px;
}
.sign-ico svg { width: 25px; height: 25px; }
.r1 .sign-ico { background: var(--tint); }
.r3 .sign-ico { background: #fff1d6; }

@media (max-width: 720px) {
  .about-card { grid-template-columns: 1fr; }
  .about-rules { border-inline-start: 0; border-top: 1px solid var(--edge); }
}
.paw { width: 1.1em; height: 1.1em; vertical-align: -.2em; }

/* Share dialog */
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.share {
  width: min(400px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 0;
  border: 0; background: none; color: var(--fg); overflow: visible;
}
.share::backdrop { background: rgb(17 25 42 / 60%); }
.share-box {
  --accent: var(--blue);
  max-height: calc(100dvh - 32px); overflow: auto;
  background: var(--surface); border: 3px solid var(--ink); border-radius: var(--radius);
  box-shadow: 7px 7px 0 var(--shadow);
}
.share[open] .share-box { animation: drop .45s cubic-bezier(.3,1.5,.5,1); }
@keyframes drop { from { opacity: 0; transform: translateY(-24px) rotate(-2deg); } }
.share-close {
  display: grid; place-items: center; width: 34px; height: 34px; padding: 0; cursor: pointer;
  background: #fff; border: 2.5px solid #17243d; border-radius: 10px;
}
.share-close svg { width: 18px; height: 18px; }
.share-close:hover { background: var(--gold); }
.share-body { display: flex; flex-direction: column; gap: 14px; padding: 18px 22px 22px; }
.share h2 { margin: 0; font: 800 28px/1.1 var(--display); letter-spacing: -0.01em; text-align: center; }
.share-qr {
  align-self: center; width: min(250px, 100%); overflow: hidden;
  background: #fff; border: 3px solid var(--ink); border-radius: 16px; box-shadow: 4px 4px 0 var(--shadow);
}
.share-qr svg { display: block; width: 100%; height: auto; }
.share-target { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.share-target button {
  cursor: pointer; font: 800 15px/1.1 var(--display); color: #17243d; padding: 10px 8px 8px;
  background: #fff; border: 2.5px solid var(--ink); border-radius: 12px; box-shadow: 3px 3px 0 var(--shadow);
  transition: transform .12s, box-shadow .12s;
}
.share-target button:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--shadow); }
.share-target button[aria-pressed="true"] { background: var(--gold); transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--shadow); }
.share-hint { margin: 0; text-align: center; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.share-link { display: flex; gap: 8px; }
.share-link input {
  flex: 1; min-width: 0; padding: 10px 12px; font: 600 14px var(--text); color: #17243d;
  background: #f0f4fc; border: 2.5px solid var(--ink); border-radius: 12px;
}
.share-copy, .share-actions button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; white-space: nowrap;
  font: 800 16px/1 var(--display); color: #17243d; padding: 12px 14px 10px;
  border: 3px solid var(--ink); border-radius: 12px; box-shadow: 3px 3px 0 var(--shadow);
  transition: transform .12s, box-shadow .12s, background .2s;
}
.share-copy { background: var(--gold); }
.share-copy.done { background: var(--periwinkle); }
.share-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.share-actions button { background: #fff; }
.share-actions svg { width: 22px; height: 22px; flex: none; }
.share-copy:hover, .share-actions button:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--shadow); }
.share-copy:active, .share-actions button:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--shadow); }

/* Install dialog */
.install-icon { align-self: center; border-radius: 22px; border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--shadow); }
.install-steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.install-steps li {
  counter-increment: step; display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; font-size: 15px; line-height: 1.4;
  background: color-mix(in srgb, var(--blue) 8%, var(--surface)); border: 2.5px solid var(--ink); border-radius: 14px;
}
.install-steps li::before {
  content: counter(step); display: grid; place-items: center; flex: none; width: 28px; height: 28px;
  font: 800 16px/1 var(--display); color: #17243d; background: var(--gold); border: 2.5px solid var(--ink); border-radius: 50%;
}
.step-ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; background: #fff; border: 2.5px solid var(--ink); border-radius: 12px; }
.step-ico svg, .step-ico img { width: 28px; height: 28px; border-radius: 7px; }

.foot { margin-top: 0; background: var(--bar); color: #fff; }
.foot-inner {
  max-width: 1240px; margin: 0 auto; padding: 24px clamp(16px, 4vw, 48px) 36px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 15px; font-weight: 600;
}

@media (max-width: 820px) {
  .share-site, .install-app { padding: 6px; }
  .share-site span, .install-app span { display: none; }
}
@media (max-width: 680px) {
  .top nav a { display: none; }
  .hero {
    grid-template-columns: minmax(0, 1fr); gap: 20px;
    padding: clamp(16px, 4vw, 22px);
  }
  .hero h1 { max-width: 20ch; font-size: clamp(2rem, 8.6vw, 2.75rem); }
  .hero .lead { margin-top: 10px; line-height: 1.5; }
  .hero-ctas { margin-top: 14px; }
  .hero-art { max-width: 370px; }
  .section-head { gap: 10px; margin-bottom: 14px; }
  .section-head h2 { font-size: clamp(1.75rem, 7.4vw, 2.25rem); }
  .filters { gap: 6px; }
  .filters button { padding-inline: 10px; }
  .filters button span { margin-left: 3px; }
}
@media (max-width: 560px) {
  .brand { font-size: 21px; }
  .top { padding-left: 12px; padding-right: 12px; }
  .lang { margin-left: 2px; }
  .lang button { padding: 6px 8px; font-size: 12px; }
  .share-body { padding: 16px 16px 18px; }
  .hero-ctas { gap: 8px; }
  .btn-main, .btn-install { padding-inline: 11px; }
  .card.featured h3 { font-size: 1.375rem; }
  .soon-inner { padding: 16px 18px; }
  .progress { width: 100%; }
}

/* Offer installation in the hero when the header has no room for it. */
@media (min-width: 381px) {
  .hero .btn-install { display: none; }
}
@media (max-width: 380px) {
  .install-app { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .card.spotlight { outline: 4px solid var(--gold); outline-offset: 4px; }
  .puff { opacity: 0; }
}
