/* Tamaishi website. Calm river-stone look to match the game: jade, mist, pebbles, ink-wash hills. */

@font-face {
  font-family: "Zen Maru Gothic";
  font-weight: 500;
  font-display: swap;
  src: url("fonts/zen-maru-gothic-500.woff2") format("woff2");
}
@font-face {
  font-family: "Zen Maru Gothic";
  font-weight: 700;
  font-display: swap;
  src: url("fonts/zen-maru-gothic-700.woff2") format("woff2");
}

:root {
  --bg: #f3f9f6;
  --bg-2: #e3f2ec;
  --surface: #ffffff;
  --surface-2: #f8fbf9;
  --ink: #12302b;
  --muted: #476059;
  --line: rgba(18, 48, 43, 0.12);
  --jade: #1d9e75;
  --jade-dark: #0f6e56;
  --jade-soft: #d6f0e6;
  --lotus: #d9548a;
  --amber: #fad08a;
  --cream: #fbf8f0;
  --shadow: 0 18px 40px -22px rgba(15, 80, 62, 0.45);
  --font: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 22px;
  --wrap: 1120px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0a1d19;
  --bg-2: #0f2a24;
  --surface: #123029;
  --surface-2: #0e2822;
  --ink: #e5f6ef;
  --muted: #a8c6bb;
  --line: rgba(225, 245, 238, 0.14);
  --jade: #3cc79b;
  --jade-dark: #7fdcbe;
  --jade-soft: #14463a;
  --shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.8);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a1d19;
    --bg-2: #0f2a24;
    --surface: #123029;
    --surface-2: #0e2822;
    --ink: #e5f6ef;
    --muted: #a8c6bb;
    --line: rgba(225, 245, 238, 0.14);
    --jade: #3cc79b;
    --jade-dark: #7fdcbe;
    --jade-soft: #14463a;
    --shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.8);
    color-scheme: dark;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--jade-dark);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--jade);
}

:focus-visible {
  outline: 3px solid var(--jade);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--bg);
}
.skip:focus {
  top: 12px;
}

.wrap {
  width: min(var(--wrap), 100% - 40px);
  margin-inline: auto;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.2;
  font-weight: 700;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.3rem, 6vw, 4rem);
  letter-spacing: -0.01em;
}
h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
}
h3 {
  font-size: 1.15rem;
}
p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--jade-soft);
  color: var(--jade-dark);
  font-size: 0.85rem;
  font-weight: 700;
}

h1 + .lead {
  margin-top: 20px;
}

.lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 34em;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px -20px rgba(0, 0, 0, 0.5);
}
.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: var(--jade-soft);
  color: var(--jade-dark);
}
.icon-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.icon-btn:hover {
  border-color: var(--jade);
}
.icon-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.menu-btn {
  display: none;
}

@media (max-width: 860px) {
  .menu-btn {
    display: grid;
  }
  .nav-links {
    position: absolute;
    inset: 68px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px 20px 18px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px -24px rgba(0, 0, 0, 0.5);
    display: none;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    padding: 12px 14px;
    font-size: 1.05rem;
  }
}

/* ---------- buttons: pebbles ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 30px;
  border: 0;
  border-radius: 48% 52% 45% 55% / 60% 60% 40% 40%;
  background: linear-gradient(180deg, #158467, #0f6e56);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  cursor: pointer;
  box-shadow:
    inset 0 -5px 0 #0a4d3c,
    0 12px 18px -10px rgba(15, 110, 86, 0.8);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover {
  color: #fff;
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 -2px 0 #0a4d3c,
    0 6px 10px -8px rgba(15, 110, 86, 0.8);
}
.btn.ghost {
  background: linear-gradient(180deg, #fffdf7, #ece7da);
  color: #0f4f43;
  box-shadow:
    inset 0 -5px 0 rgba(130, 120, 102, 0.55),
    0 12px 18px -12px rgba(60, 48, 20, 0.5);
}
.btn.ghost:hover {
  color: #0f4f43;
}
.btn.soon {
  background: linear-gradient(180deg, #c9d3cf, #aab6b1);
  box-shadow: inset 0 -5px 0 #7c8a85;
  color: #1d2b27;
  cursor: default;
  transform: none;
}
.btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}
.small-note {
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 96px;
  background:
    radial-gradient(1000px 420px at 85% -10%, color-mix(in srgb, var(--jade) 22%, transparent), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
.hero-hills {
  position: absolute;
  inset: auto 0 0 0;
  height: 40%;
  pointer-events: none;
  opacity: 0.8;
}
:root[data-theme="dark"] .hero-hills {
  opacity: 0.28;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero-hills {
    opacity: 0.28;
  }
}
.hero-hills svg {
  width: 100%;
  height: 100%;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero .sun {
  position: absolute;
  right: 12%;
  top: 40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, rgba(255, 255, 255, 0) 70%);
  opacity: 0.8;
  pointer-events: none;
}
.petal {
  position: absolute;
  top: -20px;
  width: 12px;
  height: 8px;
  border-radius: 80% 20% 80% 20%;
  background: #f2a8c6;
  opacity: 0.75;
  animation: fall linear infinite;
  pointer-events: none;
}
@keyframes fall {
  to {
    transform: translate(60px, 560px) rotate(300deg);
    opacity: 0;
  }
}
@media (max-width: 920px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero {
    padding: 40px 0 72px;
  }
}

/* ---------- stones ---------- */
.stone {
  position: absolute;
  display: grid;
  place-items: center;
  width: var(--sw, 62px);
  height: var(--sh, 54px);
  padding: 0;
  border: 0;
  border-radius: 48% 52% 45% 55% / 56% 56% 44% 44%;
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.95) 0 7%, rgba(255, 255, 255, 0) 36%),
    linear-gradient(168deg, #f7f5ef, #e2ddd1 60%, #cdc6b7);
  box-shadow:
    inset 0 -6px 0 rgba(130, 120, 102, 0.55),
    inset 0 2px 1px rgba(255, 255, 255, 0.9),
    0 8px 10px -4px rgba(18, 52, 46, 0.45);
  cursor: pointer;
  transition: transform 0.16s ease, opacity 0.2s, filter 0.2s;
}
.stone svg {
  width: 56%;
  height: 56%;
  margin-top: -4px;
}
.stone:hover:not(:disabled):not(.covered) {
  transform: translateY(-3px);
}
.stone.covered {
  background: linear-gradient(168deg, #7f8783, #656d69 60%, #545b58);
  box-shadow:
    inset 0 -6px 0 rgba(30, 36, 34, 0.55),
    0 8px 10px -4px rgba(18, 52, 46, 0.45);
  cursor: not-allowed;
}
.stone.covered svg {
  opacity: 0.28;
  filter: grayscale(1);
}
.stone.gone {
  opacity: 0;
  transform: scale(0.4);
  pointer-events: none;
}
.stone.nope {
  animation: nope 0.3s;
}
@keyframes nope {
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

/* ---------- demo ---------- */
.demo {
  position: relative;
  max-width: 420px;
  margin-inline: auto;
  width: 100%;
  padding: 18px 18px 20px;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0)),
    linear-gradient(180deg, #cfeadf, #9fd8c5);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  color: #12302b;
}
:root[data-theme="dark"] .demo {
  background: linear-gradient(180deg, #2c6f5c, #1a4a3e);
  color: #e5f6ef;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .demo {
    background: linear-gradient(180deg, #2c6f5c, #1a4a3e);
    color: #e5f6ef;
  }
}
.demo-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 0.95rem;
}
.demo-top .pill {
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #0f6e56;
}
.demo-top button {
  border: 0;
  border-radius: 999px;
  padding: 5px 14px;
  background: rgba(255, 255, 255, 0.78);
  color: #0f6e56;
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}
.demo-bar {
  height: 8px;
  margin-bottom: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.55);
  overflow: hidden;
}
.demo-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 8px;
  background: var(--jade-dark);
  transition: width 0.3s ease;
}
.board {
  position: relative;
  height: 232px;
  margin-inline: auto;
  width: 262px;
  max-width: 100%;
}
.tray {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-top: 8px;
  padding: 8px;
  border-radius: 18px;
  background: linear-gradient(180deg, #d8c68e, #b89a55);
  box-shadow: inset 0 -4px 0 #8a7038, 0 8px 12px -8px rgba(60, 40, 0, 0.6);
}
.tray .slot {
  position: relative;
  aspect-ratio: 1 / 0.9;
  border-radius: 50%;
  background: rgba(60, 44, 10, 0.35);
  box-shadow: inset 0 3px 4px rgba(0, 0, 0, 0.35);
  display: grid;
  place-items: center;
}
.tray .slot .stone {
  position: static;
  --sw: 100%;
  --sh: 100%;
  cursor: default;
  animation: land 0.22s ease-out;
}
.tray .slot .stone svg {
  width: 62%;
  height: 62%;
}
@keyframes land {
  from {
    transform: translateY(-26px) scale(0.85);
    opacity: 0.4;
  }
}
.tray.warn {
  background: linear-gradient(180deg, #e8c27a, #cf9a3b);
}
.tray.danger {
  background: linear-gradient(180deg, #e69a8c, #c4604f);
}
.demo-msg {
  min-height: 3.2em;
  margin: 12px 0 0;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 700;
}
.ripple {
  position: absolute;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.95);
  pointer-events: none;
  animation: ripple 0.7s ease-out forwards;
}
@keyframes ripple {
  to {
    transform: scale(7);
    opacity: 0;
  }
}
.win-card {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  border-radius: 30px;
  background: #fbf8f0;
  color: #12302b;
  text-align: center;
  animation: fadein 0.3s ease-out;
}
.win-card.show {
  display: flex;
}
.win-card h3 {
  font-size: 1.5rem;
}
.win-card p {
  margin: 0 0 6px;
  color: #3d544e;
}
.lotuses {
  display: flex;
  gap: 6px;
  color: var(--lotus);
}
.lotuses svg {
  width: 38px;
  height: 38px;
}
.lotuses svg:nth-child(2) {
  width: 48px;
  height: 48px;
  margin-top: -6px;
}
@keyframes fadein {
  from {
    opacity: 0;
  }
}

/* ---------- sections ---------- */
section {
  padding: 88px 0;
}
.section-head {
  max-width: 40em;
  margin-bottom: 44px;
}
.section-head p {
  color: var(--muted);
  font-size: 1.1rem;
  margin-top: 14px;
}
.alt {
  background: var(--bg-2);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: -44px;
  position: relative;
  z-index: 2;
}
.stats div {
  padding: 22px 20px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: center;
}
.stats b {
  display: block;
  font-size: 2rem;
  color: var(--jade-dark);
  line-height: 1.1;
}
.stats span {
  font-size: 0.92rem;
  color: var(--muted);
}
@media (max-width: 760px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
    margin-top: -28px;
  }
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 26px 24px 28px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 18px;
  right: 20px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--jade-soft);
  color: var(--jade-dark);
  font-weight: 700;
}
.step .art {
  position: relative;
  height: 84px;
  margin-bottom: 14px;
}
.step p {
  margin: 8px 0 0;
  color: var(--muted);
}
.mini {
  position: absolute;
  --sw: 54px;
  --sh: 47px;
  cursor: default;
}
@media (max-width: 860px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* worlds explorer */
.explorer {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: stretch;
}
.tabs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tab {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 18px;
  border: 2px solid transparent;
  border-radius: 20px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 8px 18px -16px rgba(0, 0, 0, 0.5);
  transition: transform 0.12s, border-color 0.12s;
}
.tab:hover {
  transform: translateX(4px);
}
.tab[aria-selected="true"] {
  border-color: var(--jade);
  background: var(--jade-soft);
}
.tab .dot {
  flex: none;
  width: 34px;
  height: 30px;
  border-radius: 48% 52% 45% 55% / 56% 56% 44% 44%;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.2);
}
.tab small {
  display: block;
  font-weight: 500;
  color: var(--muted);
}
.scene {
  position: relative;
  min-height: 360px;
  padding: 30px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  color: #12302b;
  transition: background 0.4s ease;
}
.scene.night {
  color: #eef1ff;
}
.scene .hills {
  position: absolute;
  inset: auto 0 0 0;
  height: 48%;
  opacity: 0.55;
}
.scene h3 {
  font-size: 1.7rem;
}
.scene p {
  position: relative;
  max-width: 28em;
  margin-top: 8px;
}
.scene .range {
  position: relative;
  display: inline-block;
  margin-top: 10px;
  padding: 3px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: #0f4f43;
  font-size: 0.85rem;
  font-weight: 700;
}
.scene.night .range {
  background: rgba(255, 255, 255, 0.18);
  color: #eef1ff;
}
.scene .symbols {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.scene .symbols .stone {
  position: relative;
  --sw: 58px;
  --sh: 50px;
  cursor: default;
}
.scene .quote {
  position: relative;
  margin-top: 22px;
  padding-left: 16px;
  border-left: 3px solid rgba(255, 255, 255, 0.8);
  font-style: italic;
}
@media (max-width: 860px) {
  .explorer {
    grid-template-columns: 1fr;
  }
  .tabs {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x proximity;
  }
  .tab {
    flex: none;
    width: auto;
    scroll-snap-align: start;
  }
  .tab small {
    display: none;
  }
}

/* special stones */
.stone-picker {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.pick {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 8px 14px;
  border: 2px solid transparent;
  border-radius: 20px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 8px 18px -16px rgba(0, 0, 0, 0.5);
  transition: transform 0.12s, border-color 0.12s;
}
.pick:hover {
  transform: translateY(-3px);
}
.pick[aria-selected="true"] {
  border-color: var(--jade);
  background: var(--jade-soft);
}
.pick .stone {
  position: relative;
  --sw: 62px;
  --sh: 54px;
  cursor: inherit;
}
.pick .stone.moss {
  background: radial-gradient(circle at 30% 22%, #c9efb4 0 8%, transparent 34%), linear-gradient(168deg, #8fcf7a, #5e9f55 60%, #4a8446);
}
.pick .stone.ember {
  background: radial-gradient(circle at 30% 22%, #ffe9c9 0 8%, transparent 34%), linear-gradient(168deg, #ffc98f, #f08a4b 60%, #d4602b);
}
.badge {
  position: absolute;
  top: -8px;
  right: -10px;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #fad08a;
  color: #6a3f05;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}
.stone-detail {
  margin-top: 22px;
  padding: 26px 28px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  min-height: 132px;
}
.stone-detail h3 {
  font-size: 1.35rem;
  margin-bottom: 6px;
}
.stone-detail p {
  margin: 0;
  color: var(--muted);
  max-width: 44em;
}
.stone-detail .from {
  display: inline-block;
  margin-top: 12px;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--jade-soft);
  color: var(--jade-dark);
  font-size: 0.85rem;
  font-weight: 700;
}
@media (max-width: 860px) {
  .stone-picker {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* features */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature {
  padding: 26px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 0.18s;
}
.feature:hover {
  transform: translateY(-4px);
}
.feature .ico {
  display: grid;
  place-items: center;
  width: 52px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 48% 52% 45% 55% / 56% 56% 44% 44%;
  background: linear-gradient(168deg, #f7f5ef, #e2ddd1 60%, #cdc6b7);
  box-shadow: inset 0 -4px 0 rgba(130, 120, 102, 0.55);
  color: #0f4f43;
}
.feature .ico svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature p {
  margin: 8px 0 0;
  color: var(--muted);
}
@media (max-width: 920px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .features {
    grid-template-columns: 1fr;
  }
}

/* gallery */
#screens {
  overflow-x: clip;
}
.gallery {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 8px 20px 28px;
  margin-inline: calc(50% - 50vw);
  padding-inline: max(20px, calc(50vw - var(--wrap) / 2));
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.shot {
  flex: none;
  width: min(250px, 66vw);
  scroll-snap-align: center;
  text-align: center;
}
.phone {
  padding: 9px;
  border-radius: 34px;
  background: #1b2623;
  box-shadow: var(--shadow);
}
.phone img {
  width: 100%;
  height: auto;
  aspect-ratio: 375 / 812;
  object-fit: cover;
  border-radius: 26px;
  background: #cfeadf;
}
.shot figcaption {
  margin-top: 14px;
  font-weight: 700;
  color: var(--muted);
  font-size: 0.95rem;
}

/* fair */
.fair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.checks li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 8px 18px -16px rgba(0, 0, 0, 0.5);
}
.checks .tick {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--jade);
  color: #fff;
}
.checks .tick svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.checks b {
  display: block;
}
.checks span {
  color: var(--muted);
  font-size: 0.95rem;
}
@media (max-width: 860px) {
  .fair {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* faq */
.faq {
  display: grid;
  gap: 12px;
  max-width: 780px;
}
details {
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 8px 18px -16px rgba(0, 0, 0, 0.5);
}
summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--jade-soft);
  color: var(--jade-dark);
  font-size: 1.3rem;
  line-height: 1;
  transition: transform 0.2s;
}
details[open] summary::after {
  transform: rotate(45deg);
}
details .answer {
  padding: 0 22px 20px;
  color: var(--muted);
}
details .answer p:last-child {
  margin-bottom: 0;
}

/* cta band */
.cta-band {
  padding: 72px 0;
  color: #12302b;
  text-align: center;
  background: linear-gradient(180deg, #cfeadf, #9fd8c5);
}
:root[data-theme="dark"] .cta-band {
  background: linear-gradient(180deg, #14463a, #0e2f27);
  color: #e5f6ef;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .cta-band {
    background: linear-gradient(180deg, #14463a, #0e2f27);
    color: #e5f6ef;
  }
}
.cta-band p {
  color: inherit;
  opacity: 0.85;
  margin: 12px auto 0;
  max-width: 30em;
}
.cta-band .btn-row {
  justify-content: center;
}

/* ---------- footer ---------- */
.site-footer {
  padding: 48px 0 40px;
  background: #0b2a23;
  color: #cfe5dc;
  font-size: 0.95rem;
}
.site-footer a {
  color: #cfe5dc;
  text-decoration: none;
}
.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}
.foot {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}
.foot .brand {
  color: #fff;
  margin-bottom: 12px;
}
.foot h3 {
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: #fff;
}
.foot ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.legal {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.85rem;
  opacity: 0.85;
}
@media (max-width: 760px) {
  .foot {
    grid-template-columns: 1fr 1fr;
  }
  .foot > :first-child {
    grid-column: 1 / -1;
  }
}

.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s, transform 0.2s;
}
.to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

/* reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.no-js .reveal {
  opacity: 1;
  transform: none;
}

/* ---------- legal and info pages ---------- */
.page-hero {
  padding: 56px 0 40px;
  background:
    radial-gradient(800px 300px at 90% -20%, color-mix(in srgb, var(--jade) 20%, transparent), transparent 70%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
  border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}
.page-hero .meta {
  margin-top: 12px;
  color: var(--muted);
}
.page {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 56px;
  padding: 48px 0 88px;
  align-items: start;
}
.toc {
  position: sticky;
  top: 92px;
  padding: 18px;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 8px 18px -16px rgba(0, 0, 0, 0.5);
  font-size: 0.92rem;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}
.toc h2 {
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: var(--muted);
  text-transform: none;
}
.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 2px;
}
.toc a {
  display: block;
  padding: 6px 10px;
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.35;
}
.toc a:hover {
  background: var(--jade-soft);
}
.toc a.active {
  background: var(--jade-soft);
  color: var(--jade-dark);
  font-weight: 700;
}
.page.one {
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
}
.prose {
  min-width: 0;
  max-width: 760px;
}
.prose h2 {
  margin: 44px 0 14px;
  font-size: 1.5rem;
  scroll-margin-top: 90px;
}
.prose h2:first-child {
  margin-top: 0;
}
.prose h3 {
  margin: 26px 0 8px;
}
.prose ul,
.prose ol {
  padding-left: 1.3em;
  margin: 0 0 1em;
}
.prose li {
  margin-bottom: 0.5em;
}
.prose li::marker {
  color: var(--jade);
}
.callout {
  margin: 0 0 32px;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--jade-soft);
  border: 1px solid color-mix(in srgb, var(--jade) 40%, transparent);
}
.callout h2 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}
.callout ul {
  margin: 0;
}
.callout.warn {
  background: color-mix(in srgb, var(--amber) 35%, var(--surface));
  border-color: color-mix(in srgb, #bd7e12 45%, transparent);
}
.note-box {
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--surface);
  border-left: 4px solid var(--jade);
  box-shadow: 0 8px 18px -16px rgba(0, 0, 0, 0.5);
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 14px;
}
.chip {
  padding: 7px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}
.chip[aria-pressed="true"] {
  background: #0f6e56;
  border-color: #0f6e56;
  color: #fff;
}
.table-wrap {
  overflow-x: auto;
  margin-bottom: 1.4em;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 8px 18px -16px rgba(0, 0, 0, 0.5);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
th,
td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
th {
  font-size: 0.85rem;
  color: var(--muted);
  background: var(--surface-2);
}
tr:last-child td {
  border-bottom: 0;
}
tr.dim {
  display: none;
}
.tag {
  display: inline-block;
  padding: 1px 10px;
  border-radius: 999px;
  background: var(--jade-soft);
  color: var(--jade-dark);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 32px;
}
.card {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.card h2,
.card h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}
.card p:last-child {
  margin-bottom: 0;
}
.copy-box {
  display: block;
  width: 100%;
  margin: 12px 0;
  padding: 14px 16px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  line-height: 1.6;
  white-space: pre-wrap;
}
.todo {
  list-style: none;
  padding: 0;
  margin: 0 0 1em;
  display: grid;
  gap: 14px;
  counter-reset: todo;
}
.todo > li {
  position: relative;
  margin: 0;
  padding: 20px 22px 20px 70px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 18px -16px rgba(0, 0, 0, 0.5);
}
.todo > li::before {
  counter-increment: todo;
  content: counter(todo);
  position: absolute;
  left: 20px;
  top: 20px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--jade-soft);
  color: var(--jade-dark);
  font-weight: 700;
}
.todo > li.done {
  opacity: 0.72;
}
.todo > li.done::before {
  content: "\2713";
  background: var(--jade);
  color: #fff;
}
.todo h3 {
  margin: 0 0 6px;
}
.todo ol,
.todo ul {
  margin: 8px 0 0;
}
.todo .mark {
  margin-top: 10px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}
.progress {
  height: 8px;
  margin: 6px 0 22px;
  border-radius: 8px;
  background: var(--jade-soft);
  overflow: hidden;
}
.progress i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--jade);
  transition: width 0.3s;
}
@media (max-width: 920px) {
  .page {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .toc {
    position: static;
    max-height: none;
  }
  .toc ol {
    grid-template-columns: repeat(2, 1fr);
  }
  .cards {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  .toc ol {
    grid-template-columns: 1fr;
  }
}

.not-found {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 60px 20px;
}
.not-found .stone {
  position: relative;
  margin: 0 auto 24px;
  --sw: 96px;
  --sh: 84px;
  cursor: default;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .petal {
    display: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .site-header,
  .toc,
  .to-top,
  .site-footer,
  .filters {
    display: none !important;
  }
  .page {
    display: block;
    padding: 0;
  }
  body {
    background: #fff;
    color: #000;
    font-size: 12pt;
  }
  tr.dim {
    display: table-row;
  }
}
