/* ============================================================================
   The store (/store/ and each app's page under it, both languages). Light,
   unlike the rest of the site: a store listing the way the big stores do it.
   A name, a promise, one button; screenshots; reasons; the details; steps.
   It stands alone (no scroll engine), so it sets the few --sc-* values the
   shared contact pop-up (contact.css) and language switch (lang.css) read,
   and turns both light.
   ========================================================================== */

:root {
  --bg: #FAF9F6;
  --panel: #FFFFFF;
  --ink: #17130F;
  --ink-2: #4A433B;
  --muted: #736A60;
  --rule: #E8E3DB;
  --accent: #C97A14;
  --accent-soft: #FCF1E1;
  --accent-ink: #8A4F05;
  --blue: #2563C9;
  --display: "Jost", system-ui, sans-serif;
  --text: "Instrument Sans", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.2, 0, 0, 1);

  /* read by contact.css and lang.css */
  --sc-font-display: var(--display);
  --sc-font-text: var(--text);
  --sc-font-mono: var(--mono);
  --sc-gutter: clamp(1.25rem, 5vw, 5.5rem);
  --sc-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --sc-d-fast: 160ms;
  --sc-d-base: 240ms;
  --sc-ink-soft: var(--muted);
  --sc-r-sm: 6px;
  --sc-r-md: 12px;
  --sc-t-xs: 0.8rem;
  --sc-5: 1.5rem;
  --sc-z-chrome: 60;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--text); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: #F6DDB4; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; letter-spacing: -0.02em; margin: 0; color: var(--ink); }
h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.1; }
h3 { font-size: 1.12rem; letter-spacing: -0.01em; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }
.muted { color: var(--muted); margin: 0.5rem 0 0; }
.fine { color: var(--muted); font-size: 0.82rem; margin-top: 1.2rem; }
.label { font-family: var(--text); font-size: 0.95rem; font-weight: 600; letter-spacing: 0; color: var(--muted); margin: 0 0 1rem; }

/* ---- buttons -------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0 1.5rem; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--ink); color: #fff; font-weight: 600; font-size: 1rem; text-decoration: none;
  transition: background 160ms ease, transform 160ms ease;
}
.btn:hover { background: #2E2721; }
.btn:active { transform: scale(0.98); }
.btn:focus-visible, .link:focus-visible, .round:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.btn--small { min-height: 36px; padding: 0 1rem; font-size: 0.88rem; }
.link { color: var(--blue); text-decoration: none; font-weight: 500; }
.link:hover { text-decoration: underline; }
.round {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--rule); background: var(--panel);
  display: grid; place-items: center; cursor: pointer; transition: border-color 160ms, background 160ms;
}
.round:hover { border-color: #CFC7BB; }
.round svg { width: 16px; height: 16px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.round:disabled { opacity: 0.35; cursor: default; }

/* ---- the bar ------------------------------------------------------------------------ */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(250, 249, 246, 0.82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid rgba(0, 0, 0, 0.06); }
.nav__in { max-width: 1180px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); height: 60px; display: flex; align-items: center; gap: 2rem; }
.nav__brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); font-weight: 500; white-space: nowrap; }
.nav__brand svg { width: 26px; height: 26px; }
.nav__brand b { font-weight: 600; }
.nav__links { display: flex; gap: 1.6rem; font-size: 0.92rem; }
.nav__links a { color: var(--ink-2); text-decoration: none; }
.nav__links a:hover { color: var(--ink); }
.nav__end { margin-left: auto; display: flex; align-items: center; gap: 1rem; }
.nav__home { color: var(--ink-2); text-decoration: none; font-size: 0.92rem; }
.nav__home:hover { color: var(--ink); }
.nav .lx { gap: 0; align-items: center; color: var(--muted); }
.nav .lx__opt { flex-direction: row; min-width: 0; padding: 0.5rem 0.35rem; }
.nav .lx__lamp { display: none; }
.nav .lx__code { font-size: 0.74rem; letter-spacing: 0.08em; }
.nav .lx__opt[aria-current="true"] { color: var(--ink); }
/* A section a link jumps to lands below the bar, not under it. */
main [id] { scroll-margin-top: 72px; }

/* ---- an app's listing: name, promise, one button ------------------------------------ */
.listing {
  max-width: 1180px; margin: 0 auto; padding: clamp(3rem, 8vh, 5.5rem) clamp(1.25rem, 4vw, 2.5rem) clamp(3rem, 7vh, 4.5rem);
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr); gap: clamp(2rem, 4vw, 4rem); align-items: center;
}
.crumbs { display: flex; gap: 0.45rem; margin-bottom: 1.6rem; font-size: 0.88rem; color: var(--muted); }
.crumbs a { color: var(--blue); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.app { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1.6rem; }
.app__icon {
  flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(145deg, #3B82E6, #1F57B8); color: #fff; font-family: var(--text); font-weight: 700; font-size: 1.6rem;
  box-shadow: 0 8px 20px -8px rgba(31, 87, 184, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.app__icon--big { width: 72px; height: 72px; border-radius: 18px; font-size: 2.1rem; margin: 0 auto 1.4rem; }
.app__name { margin: 0; font-weight: 600; font-size: 1.05rem; }
.app__by { margin: 0.1rem 0 0; color: var(--muted); font-size: 0.86rem; }
.listing h1 { font-size: clamp(2.6rem, 5.2vw, 4.3rem); line-height: 1.02; letter-spacing: -0.035em; }
.listing__lede { margin: 1.2rem 0 0; font-size: clamp(1.05rem, 1.3vw, 1.2rem); color: var(--ink-2); max-width: 32rem; }
.tags { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag { padding: 0.32rem 0.8rem; border-radius: 999px; border: 1px solid var(--rule); background: var(--panel); font-size: 0.84rem; font-weight: 500; color: var(--ink-2); }
.tag--accent { border-color: #F1D6AD; background: var(--accent-soft); color: var(--accent-ink); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem; margin-top: 1.8rem; }
.meta { margin: 1.4rem 0 0; color: var(--muted); font-size: 0.86rem; }
.listing__shot { margin: 0; }
.window {
  display: block; border-radius: 14px; overflow: hidden; background: var(--panel);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 30px 60px -24px rgba(40, 30, 20, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.06);
}
.window img { display: block; width: 100%; height: auto; }

/* ---- screenshots: a strip to arrow, swipe or drag through (store.js) ------------------ */
.screens { padding: clamp(3rem, 8vh, 5rem) 0; background: var(--panel); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; }
.strip-nav { display: flex; gap: 0.5rem; }
.strip {
  list-style: none; margin: 0; padding: 0.5rem max(clamp(1.25rem, 4vw, 2.5rem), calc((100vw - 1180px) / 2 + 2.5rem)) 1rem;
  display: flex; gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 max(clamp(1.25rem, 4vw, 2.5rem), calc((100vw - 1180px) / 2 + 2.5rem));
  scrollbar-width: none; outline: none; cursor: grab; -webkit-user-select: none; user-select: none;
}
.strip::-webkit-scrollbar { display: none; }
.strip.is-dragging, .strip.is-dragging * { cursor: grabbing; }
.strip.is-dragging, .strip.is-settling { scroll-snap-type: none; }
.strip img { -webkit-user-drag: none; }
.shot { flex: none; width: min(560px, 80vw); scroll-snap-align: start; }
.shot button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 12px; }
.shot button:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.shot .window { border-radius: 12px; transition: transform 300ms var(--ease), box-shadow 300ms; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.07), 0 14px 30px -18px rgba(40, 30, 20, 0.35); }
.shot button:hover .window { transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 22px 40px -18px rgba(40, 30, 20, 0.4); }
.shot h3 { margin-top: 1rem; font-family: var(--text); font-weight: 600; font-size: 1rem; letter-spacing: 0; }
.shot p { margin: 0.25rem 0 0; color: var(--muted); font-size: 0.92rem; }

/* ---- reasons ------------------------------------------------------------------------- */
.why { padding: clamp(4rem, 10vh, 6.5rem) 0; }
.points { list-style: none; margin: 2.4rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.6rem 3rem; }
.points li { max-width: 22rem; }
.points p { margin: 0.45rem 0 0; color: var(--ink-2); font-size: 0.98rem; }
.ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--panel); border: 1px solid var(--rule); margin-bottom: 1rem; }
.ico svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---- the details, three steps, the last word ------------------------------------------- */
.details { padding: clamp(3.5rem, 9vh, 5.5rem) 0; background: var(--panel); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.details__in { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 3rem; }
.specs { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 2.5rem; }
.specs div { padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.specs dt { font-size: 0.8rem; color: var(--muted); }
.specs dd { margin: 0.2rem 0 0; font-weight: 500; }
.specs small { display: block; margin-top: 0.25rem; color: var(--muted); font-weight: 400; font-size: 0.86rem; }
.get { padding: clamp(4rem, 10vh, 6rem) 0 clamp(2rem, 5vh, 3rem); }
.steps3 { list-style: none; margin: 2.2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.steps3 li { padding: 1.6rem; border-radius: 16px; background: var(--panel); border: 1px solid var(--rule); }
.steps3 b { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 0.9rem; margin-bottom: 1rem; }
.steps3 p { margin: 0.4rem 0 0; color: var(--ink-2); font-size: 0.96rem; }
.final { padding: clamp(3rem, 8vh, 5rem) 0 clamp(4rem, 10vh, 6rem); text-align: center; }
.final__in { display: grid; justify-items: center; }
.final h2 { margin-bottom: 1.6rem; }

/* ---- the store front: one line, the app on sale, what comes later, the promise ---------- */
.store-head { padding-top: clamp(2.5rem, 7vh, 4.5rem); padding-bottom: clamp(2rem, 5vh, 3rem); }
.store-head h1 { font-size: clamp(2.2rem, 4.2vw, 3.4rem); line-height: 1.08; letter-spacing: -0.03em; max-width: 24ch; }
.store-head h1 span { color: var(--muted); }
.apps { padding-bottom: clamp(3rem, 8vh, 5rem); }
.feature {
  display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(1.5rem, 3vw, 3rem);
  border-radius: 24px; background: var(--panel); border: 1px solid var(--rule); overflow: hidden;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03), 0 24px 50px -36px rgba(40, 30, 20, 0.35);
}
.feature__copy { padding: clamp(1.8rem, 4vw, 3.2rem) 0 clamp(1.8rem, 4vw, 3.2rem) clamp(1.8rem, 4vw, 3.2rem); align-self: center; }
.feature .app { margin-bottom: 1.4rem; }
.feature h3 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); line-height: 1.05; letter-spacing: -0.03em; }
.feature__copy > p { margin: 0.9rem 0 0; color: var(--ink-2); max-width: 28rem; }
.feature .tags { margin-top: 1.3rem; }
.feature .cta-row { margin-top: 1.6rem; }
/* The screenshot rises out of the card's bottom edge. */
.feature__shot { display: block; align-self: end; padding-top: clamp(2rem, 5vw, 3.5rem); }
.feature__shot .window { border-radius: 12px 0 0 0; transition: transform 500ms var(--ease); }
.feature:hover .feature__shot .window { transform: translateY(-4px); }
.later { padding-bottom: clamp(3.5rem, 9vh, 5.5rem); }
.later__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 1.5rem; margin-bottom: 1rem; }
.later__head .label { margin: 0; }
.later__head .muted { margin: 0; font-size: 0.92rem; }
.later__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.soon { display: flex; align-items: center; gap: 1.1rem 1.4rem; padding: 1.5rem 1.8rem; border-radius: 20px; border: 1px solid var(--rule); }
.soon__copy { flex: 1; }
.soon h3 { margin-top: 0.5rem; }
.soon p { margin: 0.3rem 0 0; color: var(--ink-2); font-size: 0.96rem; }
.soon__go { flex: none; font-size: 0.95rem; }
.app__icon--soon { width: 48px; height: 48px; border-radius: 12px; background: linear-gradient(145deg, #F1EDE6, #E4DED4); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05); }
.app__icon--soon svg { width: 24px; height: 24px; fill: none; stroke: #7A7167; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.promise { padding: clamp(3.5rem, 9vh, 5.5rem) 0; background: var(--panel); border-top: 1px solid var(--rule); }
.promise h2 { max-width: 20ch; }

.foot { border-top: 1px solid var(--rule); padding: 1.6rem 0; color: var(--muted); font-size: 0.86rem; background: var(--bg); }
.foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.foot a { color: var(--ink-2); text-decoration: none; }
.foot a:hover { color: var(--ink); }

/* ---- a screenshot enlarged: arrows, keys and a swipe move through them ------------------ */
.lightbox { width: min(1280px, 94vw); max-width: none; max-height: 94vh; padding: 0; border: 0; border-radius: 16px; background: transparent; overflow: visible; }
.lightbox::backdrop { background: rgba(20, 16, 12, 0.72); backdrop-filter: blur(6px); }
.lightbox figure { margin: 0; touch-action: pan-y pinch-zoom; -webkit-user-select: none; user-select: none; }
.lightbox img { display: block; width: 100%; height: auto; max-height: 84vh; object-fit: contain; border-radius: 12px; background: #fff; }
.lightbox figcaption { margin-top: 0.8rem; color: #F3EADB; text-align: center; font-size: 0.95rem; }
.lightbox figcaption b { font-weight: 600; }
.lightbox .round { position: absolute; background: rgba(255, 255, 255, 0.92); }
.lightbox__close { top: -52px; right: 0; }
.lightbox__prev { left: -56px; top: 42%; }
.lightbox__next { right: -56px; top: 42%; }

/* ---- the request pop-up, light ---------------------------------------------------------
   The site's contact dialog in the store's colours: white, ink, one amber tag, a black
   pill to send. Only its variables and a few surfaces change; markup and behaviour are
   the shared ones (contact.js). */
.store .contact {
  --c-canvas: #FFFFFF;
  --c-surface: #FFFFFF;
  --c-raised: #F6F3EE;
  --c-ink: #17130F;
  --c-soft: #6B6259;
  --c-faint: #9A9086;
  --c-hair: rgba(23, 19, 15, 0.07);
  --c-hair-2: rgba(23, 19, 15, 0.12);
  --c-hair-3: rgba(23, 19, 15, 0.22);
  --c-accent: #C97A14;
  --c-accent-hi: #A8620C;
  --c-good: #3E8E4A;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 40px 100px -30px rgba(40, 30, 20, 0.4);
}
.store .contact::backdrop { background: rgba(28, 22, 16, 0.32); backdrop-filter: blur(8px) saturate(1.1); -webkit-backdrop-filter: blur(8px) saturate(1.1); }
.store .contact__photo { display: none; }
.store .contact__aside { background: linear-gradient(180deg, #FAF6EF, #F3EDE3); }
.store .contact__aside::before { background: radial-gradient(ellipse 80% 40% at 30% 0%, rgba(233, 150, 46, 0.12), transparent 70%); }
.store .contact__lamp { background: var(--c-accent); box-shadow: 0 0 0 3px rgba(201, 122, 20, 0.15); }
.store .contact__lede { color: var(--c-soft); }
.store .contact__main { background: var(--c-surface); }
.store .contact__form input, .store .contact__form select, .store .contact__form textarea { background: #FFFFFF; border-color: var(--c-hair-2); }
.store .contact__form input:focus, .store .contact__form select:focus, .store .contact__form textarea:focus { background: #FFFFFF; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(37, 99, 201, 0.14); }
.store .contact__form input[readonly] {
  border-color: #F1D6AD; color: var(--accent-ink);
  background: radial-gradient(circle at 1.05rem 50%, var(--c-accent) 0 3px, rgba(201, 122, 20, 0.25) 4px, transparent 9px), var(--accent-soft);
}
.store .contact__send { border-radius: 999px; background: var(--ink); color: #FFFFFF; box-shadow: none; }
.store .contact__send:hover { filter: none; background: #2E2721; box-shadow: none; }
.store .contact__send:focus-visible { outline-color: var(--blue); }
.store .contact__send.is-busy .contact__send-icon { border-color: rgba(255, 255, 255, 0.3); border-top-color: #FFFFFF; }
.store .contact__close { background: #F3EFE8; box-shadow: none; }
.store .contact__close:hover { background: #EAE4DA; }
.store .contact__status { background: #FCEDE8; box-shadow: inset 0 0 0 1px #F2C9B9; color: #A3402A; }
.store .contact__check { filter: none; }
.store .contact__ghost { background: #F3EFE8; box-shadow: none; }

/* ---- things settle in as they come into view (store.js) ---------------------------------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 700ms var(--ease), transform 800ms var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.points li:nth-child(3n+2), .steps3 li:nth-child(2) { transition-delay: 80ms; }
.points li:nth-child(3n+3), .steps3 li:nth-child(3) { transition-delay: 160ms; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
html:not(.js) .reveal { opacity: 1; transform: none; }

/* ---- smaller screens ---------------------------------------------------------------------- */
@media (max-width: 960px) {
  /* The page's sections move to a second row under the bar, sliding sideways if they do not fit. */
  .nav__in { flex-wrap: wrap; height: auto; row-gap: 0; }
  .nav__brand, .nav__end { min-height: 60px; }
  .nav__links {
    order: 3; flex: 1 0 100%; min-height: 42px; align-items: center; gap: 1.4rem;
    margin: 0 calc(-1 * clamp(1.25rem, 4vw, 2.5rem)); padding: 0 clamp(1.25rem, 4vw, 2.5rem);
    border-top: 1px solid rgba(0, 0, 0, 0.05); white-space: nowrap; overflow-x: auto; scrollbar-width: none;
  }
  .nav__links::-webkit-scrollbar { display: none; }
  main [id] { scroll-margin-top: 124px; }
  .listing { grid-template-columns: 1fr; }
  .points { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .details__in { grid-template-columns: 1fr; gap: 1.5rem; }
  .feature { grid-template-columns: 1fr; gap: 0; }
  .feature__copy { padding: 1.8rem 1.8rem 0; }
  .feature__shot { padding: 2rem 0 0 1.8rem; }
  .promise .points { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 760px) {
  .store .contact__aside { min-height: 0; padding-top: 1.6rem; }
  .store .contact__close { background: #F3EFE8; backdrop-filter: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav__in { gap: 1rem; }
  .nav__brand span { display: none; }
  .points { grid-template-columns: 1fr; }
  .specs { grid-template-columns: 1fr; }
  .steps3 { grid-template-columns: 1fr; }
  .strip-nav { display: none; }
  .lightbox__prev, .lightbox__next { display: none; }
  .feature__copy { padding: 1.5rem 1.4rem 0; }
  .feature__shot { padding: 1.8rem 0 0 1.4rem; }
  .soon { flex-wrap: wrap; align-items: flex-start; padding: 1.3rem; gap: 0.9rem; }
  .soon__copy { flex-basis: calc(100% - 48px - 0.9rem); }
  .soon__go { margin-left: calc(48px + 0.9rem); }
}
