/* ============================================================
   Sudoku Origin — product page
   The app's own identity, "Ink & Jade": warm paper, near-black
   ink, one jade accent. Calm and typographic on purpose —
   no gradients, no neon. Clay is reserved for mistakes in the
   app, so it does not appear here at all.
   ============================================================ */

:root {
  --paper:   #F6F3EC;
  --paper-2: #EFEBE1;
  --card:    #FFFDF8;
  --ink:     #20242B;
  --muted:   #5A6069;   /* 5.7:1 on paper */
  --jade:    #3D7A69;   /* 4.5:1 on paper — large text and fills */
  --jade-d:  #2F6153;   /* 6.4:1 — small text and links */
  --rule:    #DCD6C8;

  --wrap: 1080px;
  --gut:  22px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
          Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, p, dl, dd, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; }

/* visible focus everywhere, on a colour that clears AA on both grounds */
:focus-visible {
  outline: 3px solid var(--jade-d);
  outline-offset: 3px;
  border-radius: 6px;
}
.band--jade :focus-visible { outline-color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
[id] { scroll-margin-top: 84px; }

/* ── top bar ────────────────────────────────────────────── */
.bar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(246,243,236,.9);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--rule);
}
.bar__in { display: flex; align-items: center; gap: 24px; height: 62px; }
.bar__home img { width: 74px; }
.bar__nav { display: flex; align-items: center; gap: 24px; margin-left: auto; font-size: 15px; color: var(--muted); }
.bar__nav a { padding: 4px 0; border-bottom: 2px solid transparent; }
.bar__nav a:hover { color: var(--ink); border-bottom-color: var(--jade); }
.bar__cta {
  background: var(--jade); color: #fff;
  padding: 10px 18px !important; border-radius: 8px;
  border-bottom: 0 !important; font-weight: 600; min-height: 44px;
  display: inline-flex; align-items: center;
}
.bar__cta:hover { background: var(--jade-d); color: #fff !important; }

/* ── hero ───────────────────────────────────────────────── */
.hero { padding: 64px 0 12px; }
.hero__in { display: grid; grid-template-columns: 1fr 320px; gap: 56px; align-items: center; }
.hero__icon {
  width: 84px; height: 84px;
  border-radius: 22%;
  margin-bottom: 24px;
  box-shadow: 0 1px 2px rgba(32,36,43,.10), 0 12px 24px -10px rgba(32,36,43,.28);
}
.hero h1 {
  font-size: clamp(40px, 6vw, 62px);
  line-height: 1.04;
  letter-spacing: -.03em;
  font-weight: 680;
  margin-bottom: 18px;
}
.hero__tag { font-size: 21px; line-height: 1.45; color: var(--muted); max-width: 34ch; }
.hero__meta { margin-top: 18px; font-size: 14px; color: var(--muted); }
.hero__shot img {
  width: 100%;
  border-radius: 26px;
  box-shadow: 0 2px 6px rgba(32,36,43,.10), 0 32px 60px -20px rgba(32,36,43,.36);
}

/* ── store buttons ──────────────────────────────────────── */
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.stores--center { justify-content: center; margin-top: 26px; }
.store {
  display: inline-flex; align-items: center; gap: 11px;
  min-height: 52px; padding: 9px 20px;
  border-radius: 10px;
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.store span { display: grid; line-height: 1.25; }
.store b  { font-size: 15.5px; font-weight: 650; }
.store em { font-style: normal; font-size: 12px; opacity: .75; }
.store--dark { background: var(--ink); color: var(--paper); }
.store--dark:hover { background: #000; }
.store--light { background: #fff; color: var(--ink); }
.store--light:hover { background: var(--paper); }
.store:active { transform: scale(.98); }

/* ── bands ──────────────────────────────────────────────── */
.band { padding: 84px 0; }
.band--paper2 { background: var(--paper-2); }
.band--jade { background: var(--jade-d); color: #fff; }

.h-sec {
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.12;
  letter-spacing: -.022em;
  font-weight: 660;
  margin-bottom: 14px;
}
.lede { color: var(--muted); margin-bottom: 34px; }

/* ── feature list ───────────────────────────────────────── */
.feats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 34px 40px;
  margin-top: 34px;
}
.feats h3 {
  font-size: 19px; font-weight: 650; letter-spacing: -.01em;
  margin-bottom: 8px; padding-top: 16px;
  border-top: 2px solid var(--jade);
}
.feats p { color: var(--muted); font-size: 16px; }

/* ── gallery ────────────────────────────────────────────── */
.gallery {
  display: flex; gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px max(var(--gut), calc((100vw - var(--wrap)) / 2)) 26px;
  scrollbar-width: thin;
}
.gallery figure { flex: 0 0 232px; scroll-snap-align: center; }
.gallery img {
  width: 232px;
  border-radius: 20px;
  border: 1px solid var(--rule);
  box-shadow: 0 2px 5px rgba(32,36,43,.07), 0 18px 34px -16px rgba(32,36,43,.3);
}
.gallery figcaption {
  margin-top: 12px; text-align: center;
  font-size: 14px; color: var(--muted);
}

/* ── spec list ──────────────────────────────────────────── */
.spec { margin-top: 30px; border-top: 1px solid var(--rule); }
.spec > div {
  display: grid; grid-template-columns: 190px 1fr; gap: 20px;
  padding: 15px 0; border-bottom: 1px solid var(--rule);
}
.spec dt { font-weight: 620; }
.spec dd { color: var(--muted); }

.legal { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 30px; font-size: 16px; }
.legal a { color: var(--jade-d); border-bottom: 1px solid rgba(47,97,83,.35); padding-bottom: 1px; }
.legal a:hover { border-bottom-color: var(--jade-d); }

/* ── closing ────────────────────────────────────────────── */
.close { text-align: center; }
.close h2 { font-size: clamp(26px, 3.2vw, 36px); letter-spacing: -.02em; font-weight: 660; }

/* ── footer ─────────────────────────────────────────────── */
.foot { background: var(--paper-2); border-top: 1px solid var(--rule); padding: 30px 0 40px; font-size: 14px; color: var(--muted); }
.foot__in { display: flex; flex-wrap: wrap; gap: 8px 30px; justify-content: space-between; }
.foot a { color: var(--jade-d); }
.foot a:hover { text-decoration: underline; }

/* ── responsive ─────────────────────────────────────────── */
@media (max-width: 860px) {
  .hero__in { grid-template-columns: 1fr; gap: 36px; }
  .hero__shot { max-width: 280px; margin-inline: auto; }
  .bar__nav a:not(.bar__cta) { display: none; }
  .band { padding: 60px 0; }
  .spec > div { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 420px) {
  .stores .store { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; }
}
