@font-face { font-family: "Inter"; src: url("fonts/Inter-Variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
/* Lapis shop (prototype). Black and silver. Layout patterns follow a black
   merch grid: thin header, category rail on the left, a three-column grid,
   small caps labels with the price and a status line under each product. The
   brand, copy and imagery are Lapis's own. */
:root {
  --bg: #000000;
  --panel: #0c0d0f;
  --ink: #f2f3f5;
  --ink-2: #c9cdd4;
  --ink-3: #8d939c;
  --body: #b4b6bf;
  --line: rgba(255, 255, 255, 0.12);
  --silver-hi: #eceef1;
  --silver-lo: #b9bec6;
  --mono: Inter, system-ui, sans-serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--body); font-family: var(--sans); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01"; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--silver-lo); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #000; padding: 8px 12px; z-index: 300; }
.skip:focus { left: 8px; }
[hidden] { display: none !important; }

/* Header */
.topbar { position: sticky; top: 0; z-index: 50; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; height: 64px; padding: 0 24px; background: linear-gradient(180deg, rgba(0,0,0,.92), rgba(0,0,0,.6)); backdrop-filter: blur(12px); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.01em; }
.shop-logo { height: 28px; width: auto; filter: brightness(1.7) contrast(1.05); }
.top-nav { display: flex; align-items: center; gap: 22px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2); }
.top-nav a:hover { color: var(--ink); }
.top-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.pill-nav { display: inline-flex; align-items: center; gap: 4px; padding: 5px; border-radius: 999px; background: rgba(20, 21, 24, 0.7); backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.pill-nav a { height: 40px; display: inline-flex; align-items: center; padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--body); }
.pill-nav a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.06); }
.brand { justify-self: start; }
.balance { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; color: var(--ink-2); padding: 6px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); }
.balance strong { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.bag-btn { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 999px; background: linear-gradient(180deg, var(--silver-hi), var(--silver-lo)); color: #000; border: 0; font-weight: 600; font-size: 14px; cursor: pointer; }
.count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #000; color: var(--ink); display: inline-grid; place-items: center; font-size: 12px; }

/* Shell: rail + grid */
.shell { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 48px; padding: 40px 24px 96px; max-width: 1280px; margin: 0 auto; }
.intro { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 32px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.intro h1 { margin: 0; font-size: clamp(28px, 3.2vw, 40px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; }
.intro p { margin: 10px 0 0; color: var(--ink-3); font-size: 15px; max-width: 560px; line-height: 1.5; }
.rate { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); text-align: right; line-height: 1.7; }
.rate strong { color: var(--ink-2); font-weight: 500; }

.rail { position: sticky; top: 96px; align-self: start; display: flex; flex-direction: column; gap: 4px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.rail button { all: unset; cursor: pointer; padding: 6px 0; color: var(--ink-3); white-space: nowrap; }
.rail button:hover { color: var(--ink-2); }
.rail button[aria-current="true"] { color: var(--ink); }
.rail .shop-all { margin-top: 18px; display: inline-flex; justify-content: center; height: 36px; align-items: center; padding: 0 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--ink-2); color: var(--ink); }
.rail .shop-all[aria-current="true"] { box-shadow: inset 0 0 0 1px var(--ink); color: var(--ink); }

/* Grid */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 28px; }
.card { display: flex; flex-direction: column; gap: 12px; }
.card-media { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: linear-gradient(180deg, #eceef1 0%, #c9cdd3 100%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.card-media img { width: 78%; height: 78%; object-fit: contain; transition: transform 300ms ease; }
.card:hover .card-media img { transform: translateY(-3px); }
.tag { position: absolute; left: 12px; top: 12px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; padding: 5px 9px; border-radius: 999px; background: rgba(0, 0, 0, 0.7); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.name { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink); text-align: center; }
.price { font-size: 14px; text-align: center; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.price small { color: var(--ink-3); }
.status { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); text-align: center; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 999px; border: 0; font-weight: 600; font-size: 15px; cursor: pointer; }
.btn-silver { background: linear-gradient(180deg, var(--silver-hi), var(--silver-lo)); color: #000; }
.btn-silver:hover { filter: brightness(1.03); }
.btn-silver:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); }
.btn-block { width: 100%; }
.icon-btn { width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.08); color: var(--ink); font-size: 18px; cursor: pointer; }

/* Product page */
.product { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 56px; align-items: start; }
.product-media { display: grid; place-items: center; border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 5; background: linear-gradient(180deg, #eceef1 0%, #c9cdd3 100%); }
.product-media img { width: 72%; height: 72%; object-fit: contain; }
.product-info { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 18px; }
.product-info h1 { margin: 0; font-size: clamp(26px, 2.8vw, 36px); font-weight: 600; letter-spacing: -0.03em; }
.product-info .cost { font-size: 18px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.product-info .cost small { color: var(--ink-3); font-size: 14px; }
.product-info p { margin: 0; color: var(--ink-3); line-height: 1.6; font-size: 15px; }
.fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; }
.fieldset legend { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); margin-bottom: 8px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { height: 38px; min-width: 52px; padding: 0 14px; border-radius: 999px; border: 0; background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); cursor: pointer; font-size: 14px; }
.chip[aria-checked="true"] { background: var(--ink); color: #000; box-shadow: none; }
.qty { display: inline-flex; align-items: center; gap: 4px; height: 42px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); padding: 0 6px; width: max-content; }
.qty button { width: 32px; height: 32px; border-radius: 50%; border: 0; background: transparent; color: var(--ink); font-size: 18px; cursor: pointer; }
.qty output { min-width: 28px; text-align: center; font-variant-numeric: tabular-nums; }
.note { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); line-height: 1.7; }
.back { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); }
.back:hover { color: var(--ink); }

/* Bag */
.scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); z-index: 90; }
.bag { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); z-index: 100; background: var(--panel); box-shadow: inset 1px 0 0 var(--line); display: flex; flex-direction: column; }
.bag-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.bag-head h2 { margin: 0; font-size: 18px; font-weight: 600; }
.bag-lines { flex: 1; overflow: auto; padding: 8px 20px; }
.bag-empty { color: var(--ink-3); padding: 40px 0; text-align: center; }
.line-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.line-item img { width: 64px; height: 80px; object-fit: cover; border-radius: 10px; }
.line-item .t { font-size: 14px; }
.line-item .s { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); margin-top: 4px; }
.line-item .p { font-size: 13px; color: var(--ink-2); text-align: right; font-variant-numeric: tabular-nums; }
.remove { all: unset; cursor: pointer; font-family: var(--mono); font-size: 11px; text-transform: uppercase; color: var(--ink-3); margin-top: 6px; display: block; text-align: right; }
.remove:hover { color: var(--ink); }
.bag-foot { padding: 18px 20px; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.sum { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; color: var(--ink-2); }
.sum strong { color: var(--ink); font-size: 16px; font-variant-numeric: tabular-nums; }

/* Checkout */
.checkout { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; align-items: start; }
.checkout h1 { margin: 0 0 24px; font-size: clamp(26px, 2.8vw, 36px); font-weight: 600; letter-spacing: -0.03em; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .full { grid-column: 1 / -1; }
.form label { display: grid; gap: 6px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); }
.form input, .form select { height: 46px; padding: 0 14px; border-radius: 12px; border: 0; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font-size: 15px; text-transform: none; letter-spacing: 0; }
.form input:focus, .form select:focus { outline: 2px solid var(--silver-lo); outline-offset: 1px; }
.form .hint { font-family: var(--sans); text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--ink-3); }
.err { color: #ffb4a8; font-size: 13px; text-transform: none; letter-spacing: 0; min-height: 18px; }
.summary { background: var(--panel); border-radius: 18px; padding: 22px; box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 14px; position: sticky; top: 96px; }
.summary h2 { margin: 0; font-size: 16px; font-weight: 600; }
.summary .row { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.summary .total { border-top: 1px solid var(--line); padding-top: 14px; font-size: 16px; color: var(--ink); font-weight: 600; }
.summary .short { color: #ffb4a8; font-size: 13px; }
.done { grid-column: 1 / -1; max-width: 640px; display: grid; gap: 18px; }
.done h1 { margin: 0; font-size: clamp(28px, 3.2vw, 40px); font-weight: 600; letter-spacing: -0.03em; }
.done p { margin: 0; color: var(--ink-3); line-height: 1.6; }

/* Dev dialog */
.dev-dialog { width: min(680px, calc(100% - 32px)); background: var(--panel); color: var(--ink); border: 0; border-radius: 18px; padding: 0; box-shadow: inset 0 0 0 1px var(--line); }
.dev-dialog::backdrop { background: rgba(0, 0, 0, 0.7); }
.dev-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.dev-head h2 { margin: 0; font-size: 16px; font-weight: 600; }
.dev-note { padding: 14px 20px 0; margin: 0; color: var(--ink-3); font-size: 13px; line-height: 1.5; }
.dev-dialog pre { margin: 14px 20px 20px; padding: 16px; border-radius: 12px; background: #000; box-shadow: inset 0 0 0 1px var(--line); overflow: auto; max-height: 52vh; font-family: var(--mono); font-size: 12px; color: var(--ink-2); }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 28px 24px 40px; color: var(--ink-3); font-size: 13px; line-height: 1.6; max-width: 1280px; margin: 0 auto; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot p { margin: 0; max-width: 620px; }
.foot-dev button { all: unset; cursor: pointer; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); }
.foot-dev button:hover { color: var(--ink); }

/* Phones: the rail becomes a chip row, the grid two columns, product and checkout stack. */
@media (max-width: 1020px) {
  .shell { grid-template-columns: 1fr; gap: 24px; }
  .rail { position: static; flex-direction: row; flex-wrap: nowrap; overflow-x: auto; gap: 18px; padding-bottom: 6px; }
  .rail .shop-all { margin-top: 0; flex: none; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 18px; }
  .product, .checkout { grid-template-columns: 1fr; gap: 28px; }
  .product-info, .summary { position: static; }
}
@media (max-width: 640px) {
  .top-nav { display: none; }
  .intro { flex-direction: column; align-items: flex-start; }
  .rate { text-align: left; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 14px; }
  .form { grid-template-columns: 1fr; }
  .shell { padding: 28px 16px 72px; }
  .topbar { padding: 0 16px; }
  .balance span { display: none; }
}

/* Lapis Credits page */
.top-link { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2); white-space: nowrap; }
.top-link:hover { color: var(--ink); }
.credits { grid-column: 1 / -1; display: grid; gap: 48px; }
.credits-hero { display: grid; gap: 18px; max-width: 760px; }
.credits-hero h1 { margin: 0; font-size: clamp(30px, 4vw, 52px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.02; }
.credits-hero p { margin: 0; color: var(--ink-2); font-size: 17px; line-height: 1.6; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.fact { padding: 24px; border-radius: 18px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 10px; }
.fact .k { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); }
.fact .v { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.fact p { margin: 0; color: var(--ink-3); font-size: 14px; line-height: 1.55; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.step { padding: 22px; border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 8px; }
.step .n { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.step h3 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.step p { margin: 0; color: var(--ink-3); font-size: 14px; line-height: 1.55; }
.terms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.terms li { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 15px; line-height: 1.5; list-style: none; }
.terms { margin: 0; padding: 0; }
.credits-cta { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 1020px) { .facts, .steps { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .terms { grid-template-columns: 1fr; } }

/* Hero, steps and statement (Paltra-style structure, Lapis black and silver) */
.hero { position: relative; min-height: 100vh; display: grid; place-items: center; align-content: center; text-align: center; padding: 160px 24px 140px; overflow: hidden; background: #000 url("art/hero-bg.png") center / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.15) 40%, #000 100%); pointer-events: none; }
.hero > * { position: relative; }
.hero-mark { width: clamp(72px, 7vw, 104px); height: auto; margin: 0 auto 32px; filter: brightness(1.7) contrast(1.05); }
.hero h1 { margin: 0; font-size: clamp(80px, 12vw, 176px); font-weight: 300; letter-spacing: -0.05em; line-height: 0.9; color: #f4f5f8; }
.hero .lede { margin: 28px auto 0; max-width: 560px; font-size: clamp(17px, 1.6vw, 22px); line-height: 1.5; color: #c9ccd4; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.steps-row { max-width: 1280px; margin: 0 auto; padding: 160px 24px 60px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.step-cell { padding: 28px 24px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.step-cell .n { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.step-cell h3 { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.step-cell p { margin: 0; color: var(--ink-3); font-size: 14px; line-height: 1.55; max-width: 240px; }
.statement { max-width: 1080px; margin: 0 auto; padding: 160px 24px 140px; text-align: left; }
.statement p { margin: 0; font-size: clamp(44px, 6.4vw, 96px); font-weight: 300; letter-spacing: -0.05em; line-height: 1.0; color: #6f737c; }
.statement p .ink { color: #f4f5f8; font-weight: 300; }
.statement p.sub { margin-top: 28px; font-size: clamp(16px, 1.6vw, 20px); letter-spacing: -0.01em; line-height: 1.5; max-width: 620px; color: var(--ink-3); }
.shop-head { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 32px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.shop-head h2 { margin: 0; font-size: clamp(44px, 5.4vw, 80px); font-weight: 300; letter-spacing: -0.05em; line-height: 1; color: #f4f5f8; }
.shop-head .rate { margin: 0; text-align: right; }
@media (max-width: 1020px) { .steps-row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; } }
@media (max-width: 640px) {
  .topbar { grid-template-columns: auto 1fr; height: 60px; }
  .pill-nav { display: none; }
  .hero { min-height: 78vh; padding: 96px 20px 72px; }
  .hero h1 { font-size: clamp(64px, 22vw, 110px); }
  .steps-row { grid-template-columns: 1fr; padding: 72px 16px 24px; }
  .statement { padding: 88px 16px 72px; }
  .shop-head { flex-direction: column; align-items: flex-start; }
  .shop-head .rate { text-align: left; }
}

/* Hero lockup and the two buttons, as on the reference: white pill and dark pill */
.hero-title { margin: 0; }
.hero-lockup { width: clamp(260px, 36vw, 520px); height: auto; margin: 0 auto; filter: brightness(1.15); }
.btn-white { background: #f4f5f8; color: #0b0b0c; }
.btn-white:hover { background: #ffffff; }
.btn-dark { background: #15161a; color: #f4f5f8; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.btn-dark:hover { background: #1c1d22; }

/* Inter only, high-quality set: labels and small caps are Inter too */
.shop-logo { height: 26px; width: auto; display: block; }
.brand { display: inline-flex; align-items: center; }
.hero-logo { width: clamp(300px, 40vw, 640px); height: auto; margin: 0 auto; display: block; }
.hero-tag { margin: 34px 0 0; font-size: clamp(26px, 3vw, 44px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.1; color: #f4f5f8; }
.hero-sub { margin: 10px 0 0; font-size: clamp(17px, 1.6vw, 22px); font-weight: 400; letter-spacing: -0.01em; color: #b7bac3; }
.hero-cta { margin-top: 40px; }
.btn { font-weight: 600; letter-spacing: -0.01em; }
