/* ============================================================
   Jigsaw Grove — website styles
   Palette pulled from the app logo: sunny yellow, leaf green,
   sky blue, warm cream and soft brown ink.
   ============================================================ */

:root {
  --cream: #fff9ee;
  --cream-deep: #fdf1da;
  --paper: #ffffff;
  --ink: #3a2a1d;
  --ink-soft: #6d5847;
  --ink-faint: #7a6553;
  --yellow: #ffc93c;
  --yellow-deep: #f2a71b;
  --yellow-soft: #fff0c2;
  --green: #5daa4e;
  --green-deep: #3d7f35;
  --green-soft: #e6f4df;
  --sky: #7fd1f4;
  --sky-deep: #3a9fd1;
  --sky-soft: #e4f5fd;
  --coral: #f58a5b;
  --pink: #f7a9b8;
  --line: #efe2cc;
  --shadow-sm: 0 2px 0 rgba(58, 42, 29, 0.08), 0 8px 20px -12px rgba(58, 42, 29, 0.25);
  --shadow-md: 0 4px 0 rgba(58, 42, 29, 0.08), 0 20px 44px -24px rgba(58, 42, 29, 0.4);
  --shadow-lg: 0 6px 0 rgba(58, 42, 29, 0.1), 0 34px 70px -32px rgba(58, 42, 29, 0.45);
  --radius-sm: 14px;
  --radius: 22px;
  --radius-lg: 32px;
  --max: 1140px;
  --font-display: "Baloo 2", "Segoe UI", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--cream);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(255, 201, 60, 0.18), transparent 38%),
    radial-gradient(circle at 88% 2%, rgba(127, 209, 244, 0.18), transparent 34%),
    radial-gradient(circle at 50% 100%, rgba(93, 170, 78, 0.1), transparent 45%);
  background-attachment: fixed;
  overflow-x: hidden;
}

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

a {
  color: var(--green-deep);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); }
h2 { font-size: clamp(1.85rem, 3.8vw, 2.7rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }

p {
  margin: 0 0 1.1em;
}

ul, ol {
  margin: 0 0 1.2em;
  padding-left: 1.3em;
}

li {
  margin-bottom: 0.45em;
}

strong {
  font-weight: 800;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 800;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 14px;
  color: #fff;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #2f6a2a;
  background: var(--green-soft);
  border: 1.5px solid rgba(61, 127, 53, 0.16);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 249, 238, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 12px 30px -24px rgba(58, 42, 29, 0.45);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 76px;
  padding-block: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  box-shadow: 0 3px 0 rgba(58, 42, 29, 0.12), 0 8px 16px -8px rgba(58, 42, 29, 0.5);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.32rem;
  line-height: 1;
  letter-spacing: -0.01em;
}

.brand-name span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 4px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.site-nav a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 9px 14px;
  border-radius: 999px;
  transition: background 0.18s ease, color 0.18s ease;
}

.site-nav a:hover {
  background: var(--yellow-soft);
  color: var(--ink);
}

.site-nav a[aria-current="page"] {
  color: var(--ink);
  background: var(--yellow-soft);
}

.site-nav a.btn {
  color: #4a3208;
}

.site-nav a.btn:hover {
  color: #4a3208;
}

.header-cta {
  margin-left: 8px;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 46px;
  height: 46px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 0 rgba(58, 42, 29, 0.08);
}

.nav-toggle span {
  position: relative;
  width: 20px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--ink);
  display: block;
  transition: transform 0.2s ease, background 0.2s ease;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, top 0.2s ease;
}

.nav-toggle span::before { top: -6.5px; }
.nav-toggle span::after { top: 6.5px; }

.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

/* ---------- Buttons ---------- */

.btn {
  --btn-bg: var(--yellow);
  --btn-edge: var(--yellow-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.02rem;
  line-height: 1.1;
  color: #4a3208;
  background: var(--btn-bg);
  border: 0;
  border-radius: 999px;
  padding: 15px 26px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--btn-edge), 0 14px 24px -14px rgba(58, 42, 29, 0.55);
  transition: transform 0.14s ease, box-shadow 0.14s ease, filter 0.14s ease;
}

.btn:hover {
  color: #4a3208;
  filter: brightness(1.03);
  transform: translateY(-1px);
  box-shadow: 0 5px 0 var(--btn-edge), 0 18px 28px -14px rgba(58, 42, 29, 0.55);
}

.btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--btn-edge), 0 6px 14px -10px rgba(58, 42, 29, 0.5);
}

.btn-green {
  --btn-bg: var(--green);
  --btn-edge: var(--green-deep);
  color: #fff;
}

.btn-green:hover { color: #fff; }

.btn-ghost {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 4px 0 #e7d9c4, 0 14px 24px -16px rgba(58, 42, 29, 0.4);
}

.btn-ghost:hover { color: var(--ink); }

.btn-sm {
  padding: 11px 20px;
  font-size: 0.95rem;
}

.btn svg {
  flex-shrink: 0;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  padding: 11px 22px 11px 17px;
  border-radius: 16px;
  box-shadow: 0 4px 0 #1d140d, 0 16px 28px -16px rgba(58, 42, 29, 0.7);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.store-btn:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 5px 0 #1d140d, 0 20px 32px -16px rgba(58, 42, 29, 0.7);
}

.store-btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #1d140d;
}

.store-btn .store-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-align: left;
}

.store-btn .store-text small {
  font-size: 0.62rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  opacity: 0.75;
  font-weight: 700;
}

.store-btn .store-text strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(34px, 6vw, 72px) 0 clamp(50px, 7vw, 96px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
}

.hero-copy h1 span {
  position: relative;
  display: inline-block;
  color: var(--green-deep);
}

.hero-copy h1 span::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: 0.08em;
  height: 0.32em;
  background: var(--yellow);
  border-radius: 999px;
  z-index: -1;
  transform: rotate(-1.2deg);
  opacity: 0.75;
}

.hero-lead {
  font-size: clamp(1.05rem, 1.7vw, 1.22rem);
  color: var(--ink-soft);
  max-width: 33em;
  margin-bottom: 26px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 24px;
}

.hero-actions .btn {
  min-height: 58px;
}

.btn-play {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.store-icon {
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex-shrink: 0;
}

.hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink-faint);
}

.hero-note span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-note svg {
  color: var(--green);
}

.hero-art {
  position: relative;
}

.hero-frame {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 10px;
  background: linear-gradient(160deg, #ffe28c, #ffc93c 45%, #f5a623);
  box-shadow: var(--shadow-lg);
  transform: rotate(1.1deg);
}

.hero-frame::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 27px;
  border: 2px dashed rgba(255, 255, 255, 0.55);
  pointer-events: none;
  z-index: 2;
}

.hero-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 42% center;
  border-radius: 23px;
}

.hero-badge {
  position: absolute;
  top: -20px;
  right: -14px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--paper);
  border-radius: 18px;
  padding: 9px 17px 9px 9px;
  box-shadow: var(--shadow-md);
  transform: rotate(-3deg);
  z-index: 5;
}

.hero-badge img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.hero-badge b {
  display: block;
  font-family: var(--font-display);
  font-size: 0.98rem;
  line-height: 1.1;
}

.hero-badge small {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
}

.float-coin {
  position: absolute;
  width: 64px;
  height: 64px;
  left: -26px;
  bottom: 44px;
  z-index: 5;
  filter: drop-shadow(0 8px 12px rgba(58, 42, 29, 0.28));
  animation: bob 4.5s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-10px) rotate(4deg); }
}

/* ---------- Stats strip ---------- */

.stats {
  margin-top: clamp(40px, 6vw, 68px);
}

.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.stat {
  background: rgba(255, 255, 255, 0.72);
  padding: 20px 16px;
  text-align: center;
}

.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.1;
  color: var(--ink);
}

.stat span {
  display: block;
  font-size: 0.83rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 4px;
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(58px, 8vw, 104px) 0;
}

.section-head {
  max-width: 660px;
  margin: 0 auto clamp(32px, 5vw, 52px);
  text-align: center;
}

.section-head p {
  color: var(--ink-soft);
  font-size: 1.06rem;
  margin-bottom: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #e6d3b4;
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: var(--yellow-soft);
  color: var(--yellow-deep);
  box-shadow: inset 0 -3px 0 rgba(58, 42, 29, 0.06);
}

.feature-icon.green { background: var(--green-soft); color: var(--green-deep); }
.feature-icon.sky { background: var(--sky-soft); color: var(--sky-deep); }
.feature-icon.coral { background: #ffece1; color: #d96a38; }
.feature-icon.pink { background: #ffe9ee; color: #d45c79; }
.feature-icon.lilac { background: #efecff; color: #6f5fc4; }

.feature-card h3 {
  margin-bottom: 8px;
}

.feature-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* ---------- Theme gallery ---------- */

.gallery {
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 201, 60, 0.14), transparent 42%),
    radial-gradient(circle at 0% 100%, rgba(127, 209, 244, 0.14), transparent 42%);
  border-block: 1.5px solid var(--line);
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.theme-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--cream-deep);
  box-shadow: 0 2px 0 rgba(58, 42, 29, 0.12), 0 10px 20px -14px rgba(58, 42, 29, 0.45);
  border: 2px solid #fff;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.theme-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 4px 0 rgba(58, 42, 29, 0.12), 0 18px 28px -14px rgba(58, 42, 29, 0.5);
}

.theme-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.theme-card:hover img {
  transform: scale(1.06);
}

.theme-card span {
  position: absolute;
  left: 7px;
  right: 7px;
  bottom: 7px;
  background: rgba(255, 255, 255, 0.93);
  border-radius: 999px;
  padding: 5px 9px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  text-align: center;
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(58, 42, 29, 0.15);
}

.gallery-note {
  margin: 26px auto 0;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink-faint);
}

/* ---------- How it works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: step;
}

.step {
  position: relative;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px 26px;
  box-shadow: var(--shadow-sm);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -18px;
  left: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: #4a3208;
  background: var(--yellow);
  box-shadow: 0 3px 0 var(--yellow-deep);
}

.step h3 { margin-top: 6px; }
.step p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }

/* ---------- Cloud banner ---------- */

.cloud-banner {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.35), transparent 40%),
    linear-gradient(135deg, #6fbc5f, #4b9a44 55%, #3d7f35);
  color: #fff;
  padding: clamp(30px, 5vw, 56px);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 28px;
  align-items: center;
}

.cloud-banner h2 {
  color: #fff;
  margin-bottom: 12px;
}

.cloud-banner p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0;
  max-width: 52ch;
}

.cloud-badge {
  justify-self: center;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  border: 2px dashed rgba(255, 255, 255, 0.45);
  display: grid;
  place-items: center;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  font-size: 1.02rem;
  padding: 18px;
}

.cloud-badge svg {
  display: block;
  margin: 0 auto 6px;
}

/* ---------- Coin / economy ---------- */

.economy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
}

.coin-card {
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.coin-card::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  right: -90px;
  top: -90px;
  background: radial-gradient(circle, rgba(255, 201, 60, 0.28), transparent 70%);
}

.coin-balance {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--yellow-soft);
  border: 1.5px solid #f6dfa0;
  border-radius: 18px;
  padding: 12px 18px;
  margin-bottom: 18px;
}

.coin-balance img {
  width: 44px;
  height: 44px;
}

.coin-balance b {
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1;
}

.coin-balance small {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
}

.coin-rows {
  display: grid;
  gap: 10px;
}

.coin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--cream);
  border: 1.5px solid var(--line);
  font-weight: 700;
  font-size: 0.95rem;
}

.coin-row span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.coin-row .pill {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-deep);
  white-space: nowrap;
}

.coin-row .pill.gold {
  background: var(--yellow-soft);
  color: #8a6100;
}

.economy-copy h2 { margin-bottom: 14px; }

.economy-copy ul {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 12px;
}

.economy-copy li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.economy-copy li svg {
  flex-shrink: 0;
  margin-top: 4px;
  color: var(--green);
}

/* ---------- FAQ ---------- */

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq-list details {
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 19px 56px 19px 22px;
  position: relative;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.04rem;
  color: var(--ink);
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--yellow-soft);
  color: #8a6100;
  font-size: 1.3rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.faq-list details[open] summary::after {
  content: "−";
  transform: translateY(-50%) rotate(180deg);
}

.faq-list details > p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* ---------- Support ---------- */

.support {
  padding-bottom: clamp(60px, 8vw, 100px);
}

.support-card {
  position: relative;
  overflow: hidden;
  text-align: center;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(34px, 5vw, 60px) clamp(20px, 4vw, 60px);
  box-shadow: var(--shadow-md);
}

.support-card::before,
.support-card::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.support-card::before {
  width: 260px;
  height: 260px;
  left: -120px;
  bottom: -140px;
  background: radial-gradient(circle, rgba(127, 209, 244, 0.28), transparent 70%);
}

.support-card::after {
  width: 260px;
  height: 260px;
  right: -120px;
  top: -140px;
  background: radial-gradient(circle, rgba(255, 201, 60, 0.3), transparent 70%);
}

.support-card > * { position: relative; z-index: 1; }

.support-card p {
  color: var(--ink-soft);
  max-width: 56ch;
  margin-inline: auto;
}

.support-mail {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 6px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.08rem;
  color: var(--ink);
  text-decoration: none;
  background: var(--cream);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 11px 22px;
  transition: background 0.18s ease;
}

.support-mail:hover {
  background: var(--yellow-soft);
  color: var(--ink);
}

/* ---------- Footer ---------- */

.site-footer {
  background: #2f2116;
  color: rgba(255, 249, 238, 0.72);
  padding: clamp(44px, 6vw, 66px) 0 28px;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 34px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255, 249, 238, 0.12);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: #fff;
  margin-bottom: 14px;
}

.footer-brand img {
  width: 46px;
  height: 46px;
  border-radius: 13px;
}

.footer-brand b {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1;
}

.footer-brand small {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 249, 238, 0.5);
  margin-top: 4px;
}

.site-footer p {
  margin: 0;
  max-width: 34ch;
}

.footer-col h3,
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 249, 238, 0.5);
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  color: rgba(255, 249, 238, 0.8);
  text-decoration: none;
  padding: 4px 0;
  font-weight: 600;
}

.footer-col a:hover {
  color: var(--yellow);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: center;
  padding-top: 22px;
  font-size: 0.82rem;
  color: rgba(255, 249, 238, 0.5);
}

.footer-bottom a {
  color: rgba(255, 249, 238, 0.65);
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* ---------- Legal pages ---------- */

.page-hero {
  padding: clamp(40px, 6vw, 64px) 0 clamp(26px, 4vw, 38px);
  text-align: center;
}

.page-hero h1 {
  margin-bottom: 12px;
}

.page-hero p {
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0 auto;
}

.updated {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--ink-faint);
  background: rgba(255, 255, 255, 0.7);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 6px 15px;
}

.legal-wrap {
  padding-bottom: clamp(60px, 9vw, 100px);
}

.legal-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 52px);
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 100px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.legal-toc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0;
  cursor: pointer;
  list-style: none;
}

.legal-toc summary::-webkit-details-marker { display: none; }

.legal-toc summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--yellow-soft);
  color: #8a6100;
  font-size: 1.05rem;
  line-height: 1;
  letter-spacing: 0;
}

.legal-toc[open] summary {
  margin-bottom: 12px;
}

.legal-toc[open] summary::after {
  content: "−";
}

.legal-toc nav {
  display: grid;
  gap: 2px;
}

.legal-toc a {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 7px 10px;
  border-radius: 9px;
  border-left: 3px solid transparent;
}

.legal-toc a:hover {
  background: var(--cream);
  color: var(--ink);
}

.legal-card {
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 4.5vw, 54px);
  box-shadow: var(--shadow-md);
  min-width: 0;
  overflow-wrap: break-word;
}

.legal-card > p:first-of-type {
  font-size: 1.04rem;
  color: var(--ink-soft);
}

.legal-card h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  margin-top: 2.1em;
  padding-top: 1.1em;
  border-top: 1.5px dashed var(--line);
  scroll-margin-top: 100px;
}

.legal-card h2:first-of-type {
  margin-top: 0.6em;
  padding-top: 0;
  border-top: 0;
}

.legal-card h3 {
  font-size: 1.08rem;
  margin-top: 1.6em;
  margin-bottom: 0.5em;
}

.legal-card p,
.legal-card li {
  color: #5a4636;
}

.legal-card li::marker {
  color: var(--green);
}

.legal-card strong {
  color: var(--ink);
}

.legal-card a {
  color: var(--green-deep);
  font-weight: 700;
}

.legal-card .callout {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--sky-soft);
  border: 1.5px solid #c4e7f7;
  border-radius: 16px;
  padding: 16px 18px;
  margin: 18px 0 22px;
}

.legal-card .callout svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--sky-deep);
}

.legal-card .callout p {
  margin: 0;
  font-size: 0.94rem;
  color: #2e5f75;
}

.legal-card .callout.warm {
  background: var(--yellow-soft);
  border-color: #f6dfa0;
}

.legal-card .callout.warm svg { color: #a97a00; }
.legal-card .callout.warm p { color: #6b4d00; }

.legal-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 18px 0 26px;
  font-size: 0.94rem;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.legal-table th,
.legal-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  overflow-wrap: anywhere;
}

.legal-table th {
  background: var(--cream);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
}

.legal-table tr:last-child td { border-bottom: 0; }

.legal-table td { color: var(--ink-soft); }

.contact-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--cream);
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
  margin-top: 18px;
}

.contact-box p {
  margin: 0;
  font-weight: 700;
  color: var(--ink);
}

.contact-box a {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  background: var(--yellow);
  border-radius: 999px;
  padding: 9px 18px;
  box-shadow: 0 3px 0 var(--yellow-deep);
  color: #4a3208;
}

.contact-box a:hover {
  background: #ffd45e;
  color: #4a3208;
}

/* ---------- 404 ---------- */

.notfound {
  min-height: 62vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 60px 0;
}

.notfound .big {
  font-family: var(--font-display);
  font-size: clamp(5rem, 16vw, 9rem);
  line-height: 0.9;
  color: var(--yellow);
  text-shadow: 0 6px 0 var(--yellow-deep);
  margin-bottom: 10px;
}

/* ---------- Reveal animation ---------- */

.reveal {
  opacity: 1;
}

.reveal.is-visible {
  animation: reveal-up 0.65s cubic-bezier(0.22, 0.75, 0.3, 1) both;
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal.is-visible { animation: none; }
  .float-coin { animation: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 640px; margin-inline: auto; width: 100%; }
  .hero-copy { text-align: center; }
  .hero-copy .eyebrow { margin-inline: auto; }
  .hero-lead { margin-inline: auto; }
  .hero-actions, .hero-note { justify-content: center; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .theme-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .economy-grid { grid-template-columns: 1fr; }
  .cloud-banner { grid-template-columns: 1fr; text-align: center; }
  .cloud-banner p { margin-inline: auto; }
  .legal-layout { grid-template-columns: minmax(0, 1fr); }
  .legal-toc { position: static; }
  .legal-toc nav { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  body { font-size: 16px; }

  .site-nav {
    position: fixed;
    inset: 76px 0 auto;
    margin: 0;
    padding: 14px 20px 22px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--cream);
    border-bottom: 1.5px solid var(--line);
    box-shadow: 0 24px 40px -28px rgba(58, 42, 29, 0.6);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }

  .nav-open .site-nav {
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .site-nav a {
    font-size: 1.06rem;
    padding: 12px 14px;
    border-radius: 12px;
  }

  .site-nav .header-cta {
    margin: 8px 0 0;
  }

  .site-nav .header-cta .btn {
    width: 100%;
  }

  .nav-toggle { display: flex; }

  .header-inner { min-height: 68px; }

  .brand img { width: 40px; height: 40px; }

  .brand-name { font-size: 1.18rem; }
  .brand-name span { font-size: 0.6rem; }

  .site-nav { top: 68px; }

  .hero { padding-top: 26px; }

  .hero-frame { transform: none; padding: 8px; }
  .hero-badge { right: 4px; top: -16px; }
  .float-coin { width: 50px; height: 50px; left: -8px; bottom: 22px; }

  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .store-btn { justify-content: center; }
  .hero-actions .btn { width: 100%; }

  .stats-inner { grid-template-columns: 1fr 1fr; }
  .stat { padding: 16px 10px; }

  .feature-grid, .steps { grid-template-columns: 1fr; }
  .theme-grid { grid-template-columns: repeat(3, 1fr); gap: 9px; }
  .theme-card span { font-size: 0.68rem; padding: 4px 6px; left: 5px; right: 5px; bottom: 5px; }

  .section { padding: 54px 0; }
  .section-head { margin-bottom: 28px; }

  .cloud-badge { width: 120px; height: 120px; font-size: 0.9rem; }

  .coin-card { padding: 20px; }
  .coin-row { font-size: 0.9rem; padding: 11px 12px; }

  .footer-grid { grid-template-columns: 1fr; gap: 26px; padding-bottom: 26px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .legal-toc nav { grid-template-columns: 1fr; }
  .legal-card { border-radius: var(--radius); padding: 24px 20px; }
  .legal-layout { grid-template-columns: minmax(0, 1fr); }

  .contact-box { flex-direction: column; align-items: flex-start; }
  .contact-box a { width: 100%; text-align: center; }

  .legal-table {
    display: block;
    border: 0;
    white-space: normal;
    font-size: 0.94rem;
    margin: 18px 0 24px;
  }
  .legal-table thead { display: none; }
  .legal-table tbody,
  .legal-table tr,
  .legal-table td { display: block; width: 100%; }
  .legal-table tr {
    border: 1.5px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 12px;
    background: #fff;
  }
  .legal-table td {
    border-bottom: 1px solid var(--line);
    padding: 10px 14px;
  }
  .legal-table td:first-child {
    background: var(--cream);
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--ink);
    font-size: 1rem;
  }
  .legal-table td:last-child { border-bottom: 0; }
  .legal-table td[data-label]::before {
    content: attr(data-label) ": ";
    font-weight: 800;
    color: var(--ink-faint);
  }
  .support-mail { max-width: 100%; font-size: 0.9rem; padding: 10px 16px; overflow-wrap: anywhere; }
}

@media (max-width: 420px) {
  .wrap { width: min(100% - 28px, var(--max)); }
  h1 { font-size: 2.05rem; }
  .stat b { font-size: 1.35rem; }
  .stat span { font-size: 0.68rem; }
  .theme-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Print: keep legal pages readable */
@media print {
  .site-header, .site-footer, .legal-toc, .hero-art, .float-coin { display: none !important; }
  body { background: #fff; }
  .legal-layout { display: block; }
  .legal-card { border: 0; box-shadow: none; padding: 0; }
}
