/* TagMyPet · one stylesheet for the whole site. The look: bright, happy and alive, like a walk in the park. Warm cream and
   white as the ground, a living grass green (the logo's green, turned up) as the lead colour, sun yellow and coral for the
   buttons and the accents, and every section in a colour of its own: mint, sky, sun, pink. The five anodised colours of
   the tags are the jewels on top. Only the laser film keeps a dark room, because a laser needs the dark to glow.
   Headings in Playpen Sans Hebrew, a round, hand-drawn display face that smiles (no other Oktessa site uses it); the text and
   the controls in Heebo. Heights on phones are dvh, never vh.
   Components read their colours from variables, so the same tile or field sits on a light section or on a green one (.dark). */
@property --stage-h { syntax: "<number>"; inherits: true; initial-value: 330; }
:root {
  --green: #16a35b; --green-d: #0c7a43; --ink: #0f3d2a; --forest: #0f3d2a; --mint: #e1f7e9; --cream: #fff8ea; --paper: #ffffff;
  --sun: #ffcf3f; --sun-d: #f2ae00; --coral: #ff6b5e; --sky: #d5efff; --pink: #ffd9e4; --gold: #c9973f;
  --fg: var(--ink); --fg-soft: #4c6a5a; --tile: #ffffff; --tile-line: rgba(15, 61, 42, .15); --tile-hover: #f2fbf5;
  --sel: #dff6e8; --sel-line: var(--green); --line: rgba(15, 61, 42, .16); --accent: var(--green-d);
  --display: "Playpen Sans Hebrew", "Heebo", system-ui, sans-serif;
  --font: "Heebo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --r: 24px; --pad: clamp(20px, 5vw, 72px); --max: 1280px;
  --hdr-h: 64px; --bot: max(env(safe-area-inset-bottom, 0px), var(--okt-made-space, 0px));
  --ease: cubic-bezier(.2, .7, .2, 1); --bounce: cubic-bezier(.3, 1.5, .5, 1);
}
.dark { --fg: #ffffff; --fg-soft: rgba(255, 255, 255, .82); --tile: rgba(255, 255, 255, .12); --tile-line: rgba(255, 255, 255, .28); --tile-hover: rgba(255, 255, 255, .2);
  --sel: rgba(255, 207, 63, .22); --sel-line: var(--sun); --line: rgba(255, 255, 255, .3); --accent: var(--sun); color: var(--fg); }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-weight: 400; font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--cream); overflow-x: clip; -webkit-font-smoothing: antialiased; }
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
figure { margin: 0; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(100% - var(--pad) * 2, var(--max)); margin-inline: auto; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 8px; }
.skip { position: fixed; inset-inline-start: 12px; top: -80px; z-index: 200; background: var(--sun); color: var(--ink); padding: 10px 16px; border-radius: 12px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.hp { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; clip-path: inset(50%); }

/* ---------- type ---------- */
.eyebrow { font-size: 13.5px; font-weight: 800; letter-spacing: .12em; color: var(--accent); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--coral); box-shadow: 16px 0 0 var(--sun); margin-inline-end: 16px; }
.h2 { font-family: var(--display); font-weight: 800; font-size: clamp(36px, 6vw, 88px); line-height: 1.12; letter-spacing: -.02em; text-wrap: balance; color: var(--fg); }
.lead { font-size: clamp(17px, 1.5vw, 21px); color: var(--fg-soft); max-width: 46ch; }
/* a heading is uncovered from the right by a line of light, once, when it comes on screen */
.laser { position: relative; display: inline-block; }
.js .laser { clip-path: inset(-.2em 0 -.2em 100%); transition: clip-path 1.1s var(--ease); }
.laser::after { content: ""; position: absolute; top: -.1em; bottom: -.1em; inset-inline-start: 100%; width: 4px; border-radius: 4px; background: #fff; box-shadow: 0 0 16px 5px rgba(255, 207, 63, .95), 0 0 50px 14px rgba(255, 107, 94, .5); opacity: 0; transition: inset-inline-start 1.1s var(--ease); }
.js .in .laser, .js .laser.in { clip-path: inset(-.2em -.3em -.2em -.3em); }
.in .laser::after, .laser.in::after { inset-inline-start: -6px; animation: laser-line 1.3s both; }
@keyframes laser-line { 0% { opacity: 0; } 12%, 80% { opacity: 1; } 100% { opacity: 0; } }
.js .rise { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js .in .rise, .js .rise.in { opacity: 1; transform: none; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 58px; padding: 0 32px; border-radius: 999px; border: 0; font-weight: 800; font-size: 18px; text-decoration: none; background: var(--green); color: #fff; box-shadow: 0 6px 0 var(--green-d), 0 18px 30px -14px rgba(12, 122, 67, .8); transition: transform .2s var(--bounce), box-shadow .2s; }
.btn:hover { transform: translateY(-3px); box-shadow: 0 9px 0 var(--green-d), 0 24px 34px -14px rgba(12, 122, 67, .8); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--green-d); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.dark .btn, .btn.sun { background: var(--sun); color: var(--ink); box-shadow: 0 6px 0 var(--sun-d), 0 18px 30px -14px rgba(0, 0, 0, .5); }
.dark .btn:hover, .btn.sun:hover { box-shadow: 0 9px 0 var(--sun-d), 0 24px 34px -14px rgba(0, 0, 0, .5); }
.dark .btn:active, .btn.sun:active { box-shadow: 0 2px 0 var(--sun-d); }
.btn.ghost { background: none; color: var(--fg); box-shadow: inset 0 0 0 2px currentColor; }
.btn.small { min-height: 46px; padding: 0 22px; font-size: 16px; box-shadow: 0 4px 0 var(--green-d); }
.link { background: none; border: 0; padding: 0; font-weight: 700; color: var(--fg); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; text-decoration-color: var(--coral); }

/* ---------- header ---------- */
.top { position: fixed; inset: 0 0 auto 0; z-index: 60; color: #fff; transition: background .35s, box-shadow .35s, color .35s; }
.top.solid { background: rgba(255, 250, 238, .92); color: var(--ink); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line), 0 10px 30px -22px rgba(15, 61, 42, .5); }
.top-in { display: flex; align-items: center; gap: 18px; min-height: 64px; padding-block: 8px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-inline-end: auto; }
.brand-coin { width: 46px; height: 46px; perspective: 300px; flex: none; }
.brand-coin img { width: 100%; height: 100%; object-fit: contain; transform: rotateY(var(--turn, 0deg)); filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .25)); }
.brand-name { display: grid; line-height: 1.05; }
.brand-name b { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -.01em; }
.brand-name span { font-size: 11.5px; font-weight: 700; opacity: .8; }
.nav { display: flex; gap: 6px; font-weight: 700; font-size: 15.5px; }
.nav a { text-decoration: none; padding: 9px 14px; border-radius: 999px; transition: background .2s; }
.nav a:hover { background: rgba(22, 163, 91, .16); }
.bag-link { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 8px 0 16px; border-radius: 999px; text-decoration: none; font-weight: 800; font-size: 15px; background: var(--sun); color: var(--ink); box-shadow: 0 4px 0 var(--sun-d); transition: transform .2s var(--bounce); }
.bag-link:hover { transform: translateY(-2px); }
.bag-n { min-width: 28px; height: 28px; padding: 0 7px; border-radius: 14px; background: var(--ink); color: #fff; font-size: 13.5px; font-weight: 800; display: grid; place-items: center; }
.bag-n[data-n="0"] { background: rgba(15, 61, 42, .22); color: var(--ink); }
.bag-link.pop .bag-n { animation: pop .5s var(--bounce); }
@keyframes pop { 40% { transform: scale(1.6); } }
@media (max-width: 899px) { .nav { display: none; } .brand-name span { display: none; } .top-in { min-height: 58px; } .brand-coin { width: 40px; height: 40px; } }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100dvh; display: grid; align-items: end; overflow: hidden; background: var(--green); isolation: isolate; }
.hero video, .hero .hero-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 40%; z-index: -3; filter: saturate(1.15) brightness(1.06); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(to left, rgba(12, 122, 67, .96) 0%, rgba(22, 163, 91, .86) 30%, rgba(22, 163, 91, .34) 50%, rgba(22, 163, 91, 0) 66%), linear-gradient(to top, rgba(12, 122, 67, .75), rgba(12, 122, 67, 0) 30%); }
.hero-dust { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-in { padding-block: calc(var(--hdr-h) + 40px) clamp(38px, 7dvh, 90px); display: grid; gap: 24px; justify-items: start; }
.hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(46px, 8.6vw, 136px); line-height: 1.06; letter-spacing: -.03em; max-width: 9.5em; text-wrap: balance; color: #fff; text-shadow: 0 4px 30px rgba(8, 80, 44, .35); }
.hero h1 em { font-style: normal; color: var(--sun); }
.hero .lead { color: #fff; max-width: 34ch; font-size: clamp(18px, 1.7vw, 23px); font-weight: 500; }
.hero-try { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; margin-top: 6px; }
.hero-tag { width: 190px; height: 168px; flex: none; margin-block: -22px; cursor: pointer; }
.hero-field { display: grid; gap: 14px; }
.hero-from { font-size: 15px; color: #fff; }
.hero-from b { color: var(--sun); font-weight: 800; font-size: 19px; }
.scroll-cue { position: absolute; inset-inline-end: var(--pad); bottom: 30px; writing-mode: vertical-rl; font-size: 12px; font-weight: 700; letter-spacing: .3em; color: #fff; display: flex; align-items: center; gap: 12px; }
.scroll-cue::after { content: ""; width: 2px; height: 54px; border-radius: 2px; background: linear-gradient(var(--sun), transparent); }
@media (max-width: 899px) {
  .hero::before { background: linear-gradient(to top, rgba(12, 122, 67, 1) 0%, rgba(18, 143, 79, .94) 46%, rgba(22, 163, 91, .1) 70%, rgba(22, 163, 91, .25) 100%); }
  .hero video, .hero .hero-poster { object-position: 26% 0; height: 62%; }
  .hero-tag { width: 132px; height: 118px; margin-block: -12px; }
  .scroll-cue { display: none; }
}

/* ---------- a field: a floating label on a line ---------- */
.field { position: relative; display: block; }
.field input, .field textarea { width: 100%; min-height: 60px; padding: 24px 2px 8px; background: none; border: 0; border-bottom: 2px solid var(--line); border-radius: 0; font-size: 20px; font-weight: 700; color: var(--fg); outline: none; transition: border-color .25s; }
.field textarea { min-height: 96px; resize: vertical; font-weight: 500; font-size: 17px; }
.field span { position: absolute; inset-inline-start: 2px; top: 20px; font-size: 17px; color: var(--fg-soft); pointer-events: none; transition: transform .22s var(--ease), color .22s; transform-origin: right top; }
.field input:focus, .field textarea:focus { border-color: var(--sel-line); }
.field input:focus + span, .field input:not(:placeholder-shown) + span, .field textarea:focus + span, .field textarea:not(:placeholder-shown) + span { transform: translateY(-18px) scale(.74); color: var(--accent); font-weight: 700; }
.field.bad input { border-color: var(--coral); } .field .err { display: none; font-size: 13.5px; font-weight: 700; color: #d43d2f; margin-top: 6px; position: static; transform: none !important; }
.dark .field .err { color: #ffe1dd; }
.field.bad .err { display: block; }
.hero .field { width: min(78vw, 330px); }
.hero .field input { font-size: 26px; min-height: 68px; }
.tick { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; font-size: 14.5px; line-height: 1.5; cursor: pointer; color: var(--fg-soft); }
.tick input { appearance: none; width: 26px; height: 26px; margin: 0; border-radius: 9px; border: 2px solid var(--sel-line); background: #fff; display: grid; place-items: center; cursor: pointer; }
.tick input:checked { background: var(--green); border-color: var(--green); }
.tick input:checked::after { content: ""; width: 11px; height: 6px; border: solid #fff; border-width: 0 0 3px 3px; transform: rotate(-45deg) translateY(-1px); }

/* ---------- the workshop ---------- */
.studio { position: relative; background: linear-gradient(180deg, var(--cream), var(--mint)); padding-block: clamp(70px, 10vw, 140px) clamp(60px, 8vw, 110px); }
.studio-head { display: grid; gap: 18px; margin-bottom: clamp(28px, 5vw, 60px); justify-items: start; }
.bench { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(340px, .9fr); gap: clamp(24px, 4vw, 64px); align-items: start; direction: ltr; }
.bench > * { direction: rtl; }
/* the stage takes a colour that plays against the tag's own: a green tag on pink, a blue one on peach (home.js sets --stage-h) */
.stage { position: sticky; top: calc(var(--hdr-h) + 16px); height: min(calc(100dvh - var(--hdr-h) - 32px), 760px); border-radius: 40px; background: radial-gradient(70% 60% at 50% 42%, hsl(var(--stage-h) 100% 95%), hsl(var(--stage-h) 92% 86%) 62%, hsl(var(--stage-h) 86% 79%)); box-shadow: 0 34px 70px -40px hsl(var(--stage-h) 60% 40% / .7), inset 0 0 0 4px rgba(255, 255, 255, .7); overflow: hidden; transition: --stage-h .7s var(--ease); }
.stage-3d, .stage-2d { position: absolute; inset: 0; }
.stage-2d { display: grid; place-items: center; cursor: pointer; }
.stage-2d canvas { width: min(84%, 520px); aspect-ratio: 1.1; transition: transform .6s var(--ease); }
.stage-floor { position: absolute; inset: auto 18% 13% 18%; height: 30px; border-radius: 50%; background: radial-gradient(closest-side, hsl(var(--stage-h) 50% 30% / .32), transparent); filter: blur(7px); pointer-events: none; }
.stage-bar { position: absolute; inset: auto 0 0 0; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 16px 18px; }
.stage-top { position: absolute; inset: 0 0 auto 0; display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; font-size: 13.5px; font-weight: 700; color: hsl(var(--stage-h) 45% 28%); pointer-events: none; }
.side-switch { display: inline-flex; padding: 5px; border-radius: 999px; background: rgba(255, 255, 255, .78); box-shadow: 0 8px 20px -12px rgba(15, 61, 42, .5); }
.side-switch button { border: 0; background: none; min-height: 42px; padding: 0 18px; border-radius: 999px; font-weight: 800; font-size: 14.5px; color: var(--ink); transition: background .3s, color .3s; }
.side-switch button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.round { width: 52px; height: 52px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(255, 255, 255, .78); box-shadow: 0 8px 20px -12px rgba(15, 61, 42, .5); color: var(--ink); transition: transform .2s var(--bounce); }
.round:hover { transform: scale(1.08); }
.round[aria-pressed="true"] { background: var(--ink); color: #fff; }
.round svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.mm { position: absolute; inset-inline: 0; bottom: 84px; text-align: center; font-size: 14.5px; font-weight: 800; color: hsl(var(--stage-h) 45% 28%); letter-spacing: .04em; pointer-events: none; }
.panel { display: grid; gap: 30px; padding-bottom: 10px; }
.step { display: grid; gap: 14px; }
.step-t { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 21px; color: var(--fg); }
.step-t i { font-style: normal; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; background: var(--sun); color: var(--ink); flex: none; }
.step-t small { font-size: 14px; font-weight: 700; color: var(--fg-soft); margin-inline-start: auto; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; }
.tile { position: relative; display: grid; justify-items: center; align-content: center; gap: 4px; min-height: 76px; padding: 12px 10px; border-radius: 20px; border: 0; background: var(--tile); box-shadow: inset 0 0 0 2px var(--tile-line); font-weight: 800; font-size: 16.5px; color: var(--fg); transition: background .25s, box-shadow .25s, transform .25s var(--bounce); }
.tile:hover { background: var(--tile-hover); transform: translateY(-3px); }
.tile[aria-checked="true"] { background: var(--sel); box-shadow: inset 0 0 0 3px var(--sel-line), 0 12px 22px -16px var(--sel-line); }
.tile small { font-size: 13px; font-weight: 500; color: var(--fg-soft); }
.tile b { color: var(--accent); font-weight: 800; font-size: 15px; }
.tile s { color: var(--fg-soft); font-size: 13px; font-weight: 500; }
.tile canvas { width: 92px; height: 70px; }
.tile.size canvas { width: 100%; height: 64px; }
.tile.font { font-size: 24px; min-height: 68px; }
.swatches { display: flex; flex-wrap: wrap; gap: 14px; }
.swatch { width: 60px; display: grid; justify-items: center; gap: 7px; border: 0; background: none; padding: 0; font-size: 13px; font-weight: 700; color: var(--fg-soft); }
.swatch i { width: 54px; height: 54px; border-radius: 50%; background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .75), rgba(255, 255, 255, 0) 42%), radial-gradient(circle at 70% 78%, rgba(0, 0, 0, .34), rgba(0, 0, 0, 0) 55%), var(--c); box-shadow: 0 8px 14px -8px rgba(15, 61, 42, .7), inset 0 0 0 1px rgba(255, 255, 255, .3); transition: transform .3s var(--bounce), box-shadow .3s; }
.swatch:hover i { transform: scale(1.12) rotate(-6deg); }
.swatch[aria-checked="true"] { color: var(--fg); font-weight: 800; }
.swatch[aria-checked="true"] i { box-shadow: 0 8px 14px -8px rgba(15, 61, 42, .7), 0 0 0 4px #fff, 0 0 0 7px var(--c); }
.auto-note { font-size: 14.5px; color: var(--fg-soft); margin-top: -6px; }
.side-box { display: grid; gap: 10px; padding: 18px 20px 20px; border-radius: 24px; background: var(--tile); box-shadow: inset 0 0 0 2px var(--tile-line); }
.side-box.bad { box-shadow: inset 0 0 0 3px var(--coral); }
.side-box > .err { display: none; font-size: 13.5px; font-weight: 700; color: #d43d2f; }
.side-box.bad > .err { display: block; }
.side-head { display: flex; align-items: center; gap: 10px; }
.side-head b { font-size: 17px; font-weight: 800; margin-inline-end: auto; }
.side-head span { font-size: 13.5px; font-weight: 700; color: var(--fg-soft); }
.rows-pick { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--mint); }
.rows-pick button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: none; font-weight: 800; font-size: 15px; color: var(--ink); transition: background .2s, transform .2s var(--bounce); }
.rows-pick button:hover { transform: scale(1.1); }
.rows-pick button[aria-checked="true"] { background: var(--green); color: #fff; box-shadow: 0 3px 0 var(--green-d); }
.rows { display: grid; gap: 2px; }
.rows .field input { direction: rtl; min-height: 56px; }
.rows .field input[inputmode="tel"] { direction: ltr; text-align: right; }
.side-box .marks { margin-top: 6px; }
.count { position: absolute; inset-inline-end: 2px; top: 4px; font-size: 12px; font-weight: 700; color: var(--fg-soft); }
.sizer { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: var(--tile); box-shadow: inset 0 0 0 2px var(--tile-line); }
.sizer button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: none; color: var(--fg); font-weight: 800; line-height: 1; display: grid; place-items: center; }
.sizer button:first-child { font-size: 14px; } .sizer button:last-child { font-size: 23px; }
.sizer button:hover { background: var(--sel); } .sizer button[disabled] { opacity: .3; pointer-events: none; }
.sizer output { display: flex; gap: 3px; padding-inline: 4px; }
.sizer output i { width: 5px; height: 14px; border-radius: 3px; background: var(--tile-line); }
.sizer output i.on { background: var(--green); }
.buy { position: sticky; bottom: calc(var(--bot) + 12px); z-index: 5; display: flex; align-items: center; gap: 16px; padding: 12px 12px 16px 24px; border-radius: 999px; background: var(--ink); color: #fff; box-shadow: 0 22px 40px -20px rgba(15, 61, 42, .9); }
.buy .btn { background: var(--sun); color: var(--ink); box-shadow: 0 5px 0 var(--sun-d); }
.buy-what { display: grid; line-height: 1.25; margin-inline-end: auto; min-width: 0; }
.buy-what span { font-size: 13.5px; color: rgba(255, 255, 255, .8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buy-what b { font-size: 25px; font-weight: 800; color: var(--sun); }
.buy-what b s { font-size: 15px; color: rgba(255, 255, 255, .7); font-weight: 500; margin-inline-start: 8px; }
.share-row { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14.5px; color: var(--fg-soft); }
@media (max-width: 899px), (max-height: 520px) {
  .bench { grid-template-columns: 1fr; gap: 18px; }
  .stage { top: var(--hdr-h); height: min(46dvh, 400px); border-radius: 0 0 32px 32px; margin-inline: calc(var(--pad) * -1); z-index: 6; }
  .mm { bottom: 76px; }
  .panel { gap: 26px; }
}
@media (orientation: landscape) and (max-height: 520px) {
  .bench { grid-template-columns: 1fr 1fr; }
  .stage { height: calc(100dvh - var(--hdr-h)); margin-inline: 0; border-radius: 24px; }
}

/* ---------- the little symbols, and advanced design ---------- */
.marks { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: -2px; }
.marks-t { font-size: 13.5px; font-weight: 700; color: var(--fg-soft); margin-inline-end: 4px; }
.mark { min-width: 46px; height: 46px; padding: 0 11px; border-radius: 15px; border: 0; background: var(--ink); box-shadow: 0 4px 0 rgba(15, 61, 42, .25); color: #fff; font-size: 14px; font-weight: 800; display: grid; place-items: center; transition: transform .2s var(--bounce), box-shadow .2s, background .2s; }
.mark:hover { transform: translateY(-3px) rotate(-4deg); }
.mark[aria-pressed="true"] { background: var(--green); box-shadow: 0 4px 0 var(--green-d), 0 0 0 3px #fff, 0 0 0 6px var(--green); }
.mark[disabled] { opacity: .3; pointer-events: none; }
.adv { border-radius: 24px; background: var(--tile); box-shadow: inset 0 0 0 2px var(--tile-line); }
.adv summary { list-style: none; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; padding: 18px 20px; cursor: pointer; font-weight: 800; font-size: 17px; color: var(--fg); }
.adv summary::-webkit-details-marker { display: none; }
.adv summary small { font-weight: 500; color: var(--fg-soft); font-size: 14px; }
.adv summary::after { content: ""; align-self: center; margin-inline-start: auto; width: 10px; height: 10px; border: solid var(--accent); border-width: 0 3px 3px 0; transform: rotate(45deg); transition: transform .3s var(--ease); }
.adv[open] summary::after { transform: rotate(-135deg); }
.adv-in { display: grid; gap: 16px; padding: 0 20px 20px; }
.adv-help { font-size: 14.5px; color: var(--fg-soft); }
.board { border-radius: 20px; background: radial-gradient(circle at 50% 45%, hsl(var(--stage-h) 100% 95%), hsl(var(--stage-h) 90% 84%)); overflow: hidden; transition: --stage-h .7s var(--ease); }
.board canvas { width: 100%; touch-action: none; cursor: grab; }
.adv-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 700; color: var(--fg-soft); }
.adv-add { display: flex; flex-wrap: wrap; gap: 8px; }
.adv-sel { display: grid; gap: 6px; }
.slide { display: grid; grid-template-columns: 50px 1fr 54px; align-items: center; gap: 12px; font-size: 14.5px; font-weight: 700; color: var(--fg); }
.slide input { width: 100%; height: 34px; accent-color: var(--green); direction: ltr; }
.slide output { text-align: end; font-variant-numeric: tabular-nums; color: var(--accent); font-weight: 800; }

/* ---------- the film: how a tag is born. The one dark room of the site, because a laser needs the dark ---------- */
.born { position: relative; background: #0d3323; height: 290dvh; }
.born .pin { position: sticky; top: 0; height: 100dvh; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; gap: 20px; overflow: hidden; direction: ltr; }
.born .pin > * { direction: rtl; }
.born-glow { position: absolute; inset: 0; background: radial-gradient(46% 52% at 62% 50%, rgba(255, 207, 63, .3), rgba(22, 163, 91, .16) 55%, transparent 76%); pointer-events: none; }
.born canvas { width: 100%; height: 100%; object-fit: contain; grid-column: 2; grid-row: 1; max-height: 100dvh; }
.born-words { grid-column: 1; grid-row: 1; padding-inline-start: var(--pad); display: grid; gap: 26px; z-index: 2; justify-self: end; max-width: 520px; justify-items: start; }
.beats { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; counter-reset: beat; width: 100%; }
.beats li { font-family: var(--display); counter-increment: beat; display: grid; grid-template-columns: 44px 1fr; align-items: center; font-weight: 800; font-size: clamp(21px, 2.3vw, 32px); line-height: 1.25; padding: 7px 0; color: #fff; opacity: .34; transition: opacity .4s, transform .4s var(--ease); }
.beats li::before { content: counter(beat); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; background: rgba(255, 255, 255, .2); color: #fff; font-weight: 800; transition: background .4s, color .4s; }
.beats li.on { opacity: 1; transform: translateX(-8px); }
.beats li.on::before { background: var(--sun); color: var(--ink); }
.born-bar { height: 6px; background: rgba(255, 255, 255, .16); border-radius: 6px; overflow: hidden; width: 100%; }
.born-bar i { display: block; height: 100%; width: 100%; border-radius: 6px; background: linear-gradient(to left, var(--sun), var(--coral)); transform-origin: right; transform: scaleX(var(--p, 0)); }
@media (max-width: 899px) {
  .born { height: 270dvh; }
  .born .pin { top: var(--hdr-h); height: calc(100dvh - var(--hdr-h)); grid-template-columns: 1fr; grid-template-rows: minmax(0, 1.05fr) auto; gap: 0; }
  .born canvas { grid-column: 1; grid-row: 1; }
  .born-words { grid-column: 1; grid-row: 2; justify-self: stretch; padding: 0 var(--pad) calc(var(--bot) + 20px); gap: 14px; max-width: none; }
  .born-words .h2 { font-size: clamp(30px, 8.4vw, 44px); }
  .beats li { font-size: 18.5px; padding: 3px 0; grid-template-columns: 38px 1fr; }
  .beats li::before { width: 26px; height: 26px; }
  .born-glow { background: radial-gradient(64% 36% at 50% 30%, rgba(255, 207, 63, .3), rgba(22, 163, 91, .16) 55%, transparent 78%); }
}
@media (orientation: landscape) and (max-height: 520px) {
  .born .pin { top: var(--hdr-h); height: calc(100dvh - var(--hdr-h)); grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
  .born canvas { grid-column: 2; grid-row: 1; } .born-words { grid-column: 1; grid-row: 1; padding: 0 var(--pad); gap: 8px; }
  .born-words .h2 { font-size: 26px; } .beats li { font-size: 15px; padding: 1px 0; }
}

/* ---------- sections, each in a colour of its own ---------- */
.sec { position: relative; padding-block: clamp(80px, 11vw, 170px); overflow: clip; }
.sec > .wrap, .sec > .shelf { position: relative; z-index: 1; }
.sec-head { display: grid; gap: 18px; margin-bottom: clamp(30px, 5vw, 64px); justify-items: start; }
.light { background: var(--paper); } .paper { background: var(--mint); }
.falling { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
@media (max-width: 699px) { .falling { opacity: .5; } }
.shelf { position: relative; display: flex; gap: 18px; overflow-x: auto; padding: 14px var(--pad) 34px; scrollbar-width: none; cursor: grab; -webkit-overflow-scrolling: touch; }
.shelf::-webkit-scrollbar { display: none; } .shelf.drag { cursor: grabbing; }
.chip { flex: none; width: clamp(230px, 26vw, 330px); border-radius: 34px; padding: 22px 22px 24px; background: hsl(var(--h, 330) 100% 93%); box-shadow: 0 26px 44px -34px hsl(var(--h, 330) 60% 40% / .9); display: grid; gap: 8px; justify-items: start; border: 0; text-align: start; color: var(--ink); transition: transform .35s var(--bounce), box-shadow .35s; }
.chip:hover { transform: translateY(-8px) rotate(-1.5deg); }
.chip canvas { width: 100%; aspect-ratio: 1.2; pointer-events: none; }
.chip b { font-family: var(--display); font-size: 26px; font-weight: 800; } .chip span { font-size: 14.5px; font-weight: 500; color: hsl(var(--h, 330) 40% 28%); }
.chip em { font-style: normal; font-weight: 800; font-size: 14.5px; padding: 8px 16px; border-radius: 999px; background: #fff; margin-top: 6px; }

/* ---------- sizes: the drawing ---------- */
.sizes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 3vw, 40px); align-items: end; }
.size-card { display: grid; gap: 10px; justify-items: center; text-align: center; padding: 26px 14px 28px; border-radius: 32px; border: 0; background: #fff; color: var(--ink); box-shadow: 0 26px 44px -34px rgba(12, 122, 67, .8); transition: transform .3s var(--bounce); }
.size-card:hover { transform: translateY(-8px) rotate(1deg); }
.size-card svg { width: 100%; height: auto; overflow: visible; }
.size-card svg path, .size-card svg circle, .size-card svg line { fill: none; stroke: var(--green); stroke-width: .5; stroke-linejoin: round; stroke-linecap: round; }
.size-card svg path, .size-card svg circle { stroke-dasharray: 1; stroke-dashoffset: var(--draw, 0); }
.size-card svg .dim { stroke: var(--ink); stroke-width: .22; opacity: .6; }
.size-card svg text { font-family: var(--font); font-size: 3.4px; font-weight: 800; fill: var(--ink); }
.size-card b { font-size: clamp(22px, 2.6vw, 34px); font-weight: 800; }
.size-card .price { font-size: clamp(20px, 2.2vw, 28px); font-weight: 800; color: var(--ink); background: var(--sun); padding: 2px 18px; border-radius: 999px; }
.size-card .price s { font-size: 15px; color: rgba(15, 61, 42, .6); font-weight: 500; margin-inline-start: 6px; }
.size-card small { font-size: 14px; color: var(--fg-soft); }
@media (max-width: 699px) { .sizes { grid-template-columns: 1fr; } .size-card { grid-template-columns: 1.1fr 1fr; align-items: center; text-align: start; justify-items: start; padding: 16px 18px; } .size-card svg { grid-row: 1 / span 3; } }

/* ---------- the loupe ---------- */
.close-up { background: var(--sky); }
.loupe-box { position: relative; margin-inline: auto; max-width: min(860px, 100dvh); aspect-ratio: 4 / 3; touch-action: pan-y; cursor: none; }
.loupe-box img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; filter: drop-shadow(0 30px 30px rgba(20, 70, 110, .3)); }
.lens { position: absolute; width: clamp(150px, 24vw, 280px); aspect-ratio: 1; border-radius: 50%; left: 0; top: 0; transform: translate(-50%, -50%) translate(var(--x, 60%), var(--y, 50%)); background-color: #bfe3f7; background-repeat: no-repeat; box-shadow: 0 0 0 6px #fff, 0 0 0 12px var(--coral), 0 30px 40px -18px rgba(20, 70, 110, .7), inset 0 0 30px rgba(0, 0, 0, .25); pointer-events: none; }
.lens::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 30% 24%, rgba(255, 255, 255, .5), transparent 34%); }

/* ---------- the way home: numbers ---------- */
.home { background: var(--sun); }
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: center; }
.home-grid > div > .h2, .soon-grid > div > .h2 { margin-block: 18px; }
.home .lead { color: var(--ink); }
.fx { height: min(70dvh, 620px); min-height: 340px; }
.nums { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 30px; }
.num { padding: 22px 20px; border-radius: 28px; background: #fff; box-shadow: 0 20px 34px -26px rgba(120, 80, 0, .7); }
.num b { font-family: var(--display); display: block; font-size: clamp(40px, 5vw, 68px); font-weight: 800; line-height: 1; color: var(--green); font-variant-numeric: tabular-nums; direction: ltr; text-align: right; }
.num span { display: block; margin-top: 10px; font-size: 15px; color: var(--fg-soft); }
.source { margin-top: 18px; font-size: 12.5px; color: rgba(15, 61, 42, .75); max-width: 60ch; }
@media (max-width: 899px) { .home-grid { grid-template-columns: 1fr; } .fx { height: 46dvh; min-height: 300px; order: -1; } }

/* ---------- real tags ---------- */
.real { background: var(--cream); }
.real-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 18px; align-items: stretch; }
.shot { position: relative; border-radius: 34px; overflow: hidden; background: #ddd; }
.js .shot { clip-path: inset(12% 12% 12% 12% round 34px); transition: clip-path 1.3s var(--ease); }
.js .in .shot, .js .shot.in { clip-path: inset(0 round 34px); }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.js .shot img { transform: scale(1.14); transition: transform 1.8s var(--ease); }
.js .in .shot img, .js .shot.in img { transform: none; }
.shot figcaption { position: absolute; bottom: 16px; right: 16px; padding: 9px 18px; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 800; font-size: 15px; box-shadow: 0 10px 20px -12px rgba(0, 0, 0, .6); max-width: calc(100% - 32px); }
.shots-2 { display: flex; flex-direction: column; gap: 18px; }
.shots-2 .shot { flex: 1; }
@media (max-width: 799px) { .real-grid { grid-template-columns: 1fr; } }

/* ---------- soon + newsletter ---------- */
.soon { background: var(--pink); }
.soon-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(26px, 5vw, 80px); align-items: center; }
.soon .lead { color: var(--ink); }
.news { display: grid; gap: 20px; padding: clamp(24px, 3.4vw, 44px); border-radius: 34px; background: #fff; box-shadow: 0 30px 50px -36px rgba(170, 40, 80, .8); }
.news-ok { display: none; font-weight: 800; color: var(--green-d); font-size: 20px; }
.news.sent > :not(.news-ok) { display: none; } .news.sent .news-ok { display: block; }
.form-err { color: #d43d2f; font-weight: 700; font-size: 14.5px; min-height: 1.2em; }
@media (max-width: 899px) { .soon-grid { grid-template-columns: 1fr; } }

/* ---------- how + questions ---------- */
.faq-sec { background: var(--paper); }
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: clamp(60px, 8vw, 120px); }
.how div { padding: 30px clamp(18px, 2.4vw, 34px); display: grid; gap: 8px; border-radius: 32px; background: var(--mint); align-content: start; }
.how div:nth-child(2) { background: var(--sky); } .how div:nth-child(3) { background: #ffe9a8; }
.how i { font-style: normal; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; font-weight: 800; background: #fff; color: var(--ink); }
.how b { font-size: clamp(21px, 2.3vw, 30px); font-weight: 800; line-height: 1.2; }
.how span { font-size: 15.5px; color: var(--fg-soft); }
@media (max-width: 699px) { .how { grid-template-columns: 1fr; } }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 5vw, 80px); align-items: start; }
.faq { display: grid; gap: 10px; }
.faq details { border-radius: 24px; background: var(--cream); padding-inline: 24px; transition: background .3s; }
.faq details[open] { background: var(--mint); }
.faq summary { list-style: none; display: flex; align-items: center; gap: 16px; padding: 22px 0; font-weight: 800; font-size: clamp(18px, 1.7vw, 22px); cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; margin-inline-start: auto; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--sun); font-size: 22px; line-height: 1; transition: transform .3s var(--bounce); }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--coral); color: #fff; }
.faq details p { padding: 0 0 24px; color: var(--fg-soft); max-width: 62ch; }
@media (max-width: 899px) { .faq-grid { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.foot { background: var(--green-d); color: rgba(255, 255, 255, .88); padding-block: 70px calc(40px + var(--bot)); font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.foot .brand { color: #fff; margin-bottom: 18px; }
.foot h3 { font-size: 13px; letter-spacing: .12em; color: var(--sun); margin-bottom: 14px; font-weight: 800; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.foot a { text-decoration: none; } .foot a:hover { color: var(--sun); }
.foot-tag { font-family: var(--display); max-width: 30ch; color: #fff; font-weight: 700; font-size: 20px; line-height: 1.4; }
.nets { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.nets a { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .16); color: #fff; transition: transform .2s var(--bounce), background .2s; }
.nets a:hover { background: var(--sun); color: var(--ink); transform: translateY(-3px) rotate(-6deg); }
.nets svg { width: 21px; height: 21px; fill: currentColor; }
.foot-low { margin-top: 50px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .22); display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 13px; }
@media (max-width: 799px) { .foot-grid { grid-template-columns: 1fr; gap: 30px; } }

/* ---------- toast, sparks, confetti ---------- */
.toast { position: fixed; inset-inline: 0; bottom: calc(var(--bot) + 18px); z-index: 90; display: grid; justify-items: center; pointer-events: none; }
.toast > div { pointer-events: auto; display: flex; align-items: center; gap: 14px; padding: 12px 14px 14px 22px; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 800; box-shadow: 0 24px 50px -18px rgba(15, 61, 42, .7), inset 0 0 0 3px var(--sun); transform: translateY(170%); transition: transform .5s var(--bounce); max-width: calc(100vw - 24px); }
.toast.on > div { transform: none; visibility: visible; transition: transform .5s var(--bounce); }
.toast > div { visibility: hidden; transition: transform .5s var(--bounce), visibility 0s .5s; }
.trail, .confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 80; }

/* ---------- the bag and the order ---------- */
.page { background: var(--cream); color: var(--ink); min-height: 100dvh; padding-block: calc(var(--hdr-h) + clamp(30px, 6vw, 80px)) clamp(60px, 8vw, 120px); }
.bag-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 5vw, 80px); align-items: start; margin-top: clamp(26px, 4vw, 50px); }
.lines { display: grid; gap: 14px; }
.line { display: grid; grid-template-columns: 170px 1fr auto; gap: 16px; align-items: center; padding: 14px 18px 14px 14px; border-radius: 30px; background: #fff; box-shadow: 0 24px 40px -34px rgba(15, 61, 42, .7); }
.line-tag { height: 112px; border-radius: 22px; background: var(--mint); display: grid; grid-template-columns: 1fr 1fr; }
.line:nth-child(3n + 2) .line-tag { background: var(--sky); } .line:nth-child(3n) .line-tag { background: var(--pink); }
.line-tag canvas { width: 100%; height: 112px; }
.line b { font-size: 19px; font-weight: 800; display: block; }
.line span { display: block; font-size: 14.5px; color: var(--fg-soft); }
.line .eng { font-weight: 700; color: var(--ink); direction: rtl; }
.line .gone { color: #d43d2f; font-weight: 700; }
.line-side { display: grid; gap: 8px; justify-items: end; }
.line-price { font-size: 21px; font-weight: 800; color: var(--green-d); }
.qty { display: inline-flex; align-items: center; border-radius: 999px; background: var(--cream); }
.qty button { width: 40px; height: 40px; border: 0; background: none; font-size: 19px; font-weight: 800; border-radius: 50%; color: var(--ink); }
.qty button:hover { background: var(--sun); } .qty output { min-width: 22px; text-align: center; font-weight: 800; }
.line-x { font-size: 13.5px; }
.sum { display: grid; gap: 10px; margin-top: 22px; padding: 24px; border-radius: 30px; background: var(--mint); }
.sum div { display: flex; justify-content: space-between; gap: 16px; }
.sum .total { font-size: 25px; font-weight: 800; padding-top: 12px; border-top: 2px dashed rgba(15, 61, 42, .25); }
.sum small { color: var(--fg-soft); font-size: 14px; }
.order { display: grid; gap: 22px; padding: clamp(22px, 3.4vw, 40px); border-radius: 34px; background: #fff; box-shadow: 0 40px 70px -50px rgba(15, 61, 42, .8); position: sticky; top: calc(var(--hdr-h) + 16px); }
.order h2 { font-size: 28px; font-weight: 800; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 20px; }
.cols .full { grid-column: 1 / -1; }
.order .btn { width: 100%; }
.pay-note { font-size: 14.5px; color: var(--fg-soft); }
.empty { text-align: center; padding: 60px 0; display: grid; gap: 22px; justify-items: center; }
.done { text-align: center; display: grid; gap: 20px; justify-items: center; padding: clamp(30px, 6vw, 80px) 0; }
.done > span { display: contents; }
.done:focus { outline: none; }
.done .code { font-size: 15px; letter-spacing: .14em; color: var(--green-d); font-weight: 800; }
.done-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.done-tags canvas { width: 170px; height: 140px; }
@media (max-width: 899px) { .bag-grid { grid-template-columns: 1fr; } .order { position: static; } .line { grid-template-columns: 124px 1fr; } .line-side { grid-column: 1 / -1; grid-auto-flow: column; justify-content: space-between; align-items: center; } .line-tag, .line-tag canvas { height: 92px; } .cols { grid-template-columns: 1fr; } }

/* ---------- legal pages ---------- */
.doc { max-width: 760px; }
.doc h1 { font-family: var(--display); font-size: clamp(36px, 6vw, 68px); font-weight: 800; line-height: 1.12; margin-bottom: 14px; }
.doc h2 { font-size: 23px; font-weight: 800; margin: 38px 0 10px; }
.doc p, .doc li { color: #26463a; } .doc p { margin-bottom: 12px; } .doc ul { padding-inline-start: 22px; }
.doc a { color: var(--green-d); font-weight: 700; }
.doc .fill { background: #ffe9a8; border-radius: 8px; padding: 1px 8px; font-weight: 700; }
.doc .updated { color: var(--fg-soft); font-size: 14.5px; }

/* ---------- the engraver's file ---------- */
.make-tag { margin-top: 40px; padding-top: 30px; border-top: 2px dashed var(--line); }
.make-tag h2 { font-size: 24px; font-weight: 800; }
.make-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 16px; }
.make-sides figure { display: grid; gap: 10px; justify-items: start; align-content: start; }
.make-sides canvas { width: 100%; max-width: 520px; height: auto; border: 2px solid var(--line); border-radius: 16px; background: #fff; }
@media (max-width: 699px) { .make-sides { grid-template-columns: 1fr; } }

/* ---------- stillness ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .laser, .rise, .shot, .shot img { transition: none !important; clip-path: none !important; opacity: 1 !important; transform: none !important; }
  .laser::after { display: none; }
  .born { height: auto; } .born .pin { position: static; height: auto; padding-block: 60px; }
  .btn, .tile, .chip, .mark, .size-card { transition: none; }
}
html.a11y-still .laser, html.a11y-still .rise, html.a11y-still .shot, html.a11y-still .shot img { transition: none !important; clip-path: none !important; opacity: 1 !important; transform: none !important; }
