/* ganzia.co — one stylesheet for every page. Colours and sizes are the variables below. */

@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url('/assets/fonts/nunito-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url('/assets/fonts/nunito-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* DreamWay's heading font (variable, 400-700) */
@font-face {
  font-family: 'Libre Baskerville';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/libre-baskerville-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Libre Baskerville';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/libre-baskerville-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --chrome: #101113;        /* Ganzia: header, footer, dark sections */
  --chrome-2: #18191c;
  --chrome-line: #2a2b30;
  --on-chrome: #f4f4f6;
  --on-chrome-muted: #9c9ca6;
  /* DreamWay: the game's own UI tokens */
  --cream: #f7f1e1;
  --paper: #fdf6e3;
  --cream-dark: #efe6ce;
  --cream-edge: #e3d6b8;
  --ink: #3e3428;
  --ink-soft: #6e6250;
  --green: #2e6b3f;
  --green-mid: #4c8f5c;
  --green-light: #a8c98a;
  --gold: #e8b93b;
  --plum: #3f0d56;
  --shadow: 0 4px 16px rgba(62, 52, 40, .18);
  --header-h: 56px;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 20px;
  --font: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--chrome);
  color: var(--ink);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -0.01em; margin: 0; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: #fff; color: #000; font-weight: 800; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* ---------- Top bar: the logo centred on a see-through bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(16, 17, 19, .6);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  transition: background-color .3s, border-color .3s;
}
.topbar .wrap { height: 100%; display: flex; align-items: center; justify-content: center; }
.brand { display: block; padding: 10px 6px; text-decoration: none; }
.brand img { height: 12px; width: auto; transition: filter .3s, opacity .3s; }
/* on cream pages the light wordmark is printed dark */
.topbar--light { background: rgba(253, 246, 227, .72); border-bottom-color: rgba(62, 52, 40, .08); }
.topbar--light .brand img { filter: brightness(0); opacity: .8; }

/* Over a hero the bar is clear, with a soft shade so the light wordmark reads on sky,
   and turns see-through-solid once the hero has scrolled away (.is-solid, set by script) */
.topbar--over {
  position: fixed; left: 0; right: 0;
  background: transparent;
  border-bottom-color: transparent;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.topbar--over::before { /* an eased shade, taller than the bar so it has no edge */
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 150px; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(8, 12, 20, .24) 0%, rgba(8, 12, 20, .16) 22%, rgba(8, 12, 20, .08) 44%, rgba(8, 12, 20, .03) 66%, rgba(8, 12, 20, 0) 100%);
  transition: opacity .3s;
}
.topbar--over:not(.is-solid) .brand img { filter: none; opacity: 1; }
.topbar--over.is-solid::before { opacity: 0; }
.topbar--over.is-solid {
  background: rgba(16, 17, 19, .6); border-bottom-color: rgba(255, 255, 255, .06);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
}
.topbar--over.topbar--light.is-solid { background: rgba(253, 246, 227, .72); border-bottom-color: rgba(62, 52, 40, .08); }

/* ---------- Google Play badge (Google's artwork, unaltered) ---------- */
.play-badge { display: inline-block; flex: none; border-radius: 10px; transition: transform .2s ease, box-shadow .2s ease; }
.play-badge img { height: 56px; width: auto; }
.play-badge:hover { transform: translateY(-2px); }
.play-badge--lg img { height: 64px; }


.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 56px; padding: 0 24px; border-radius: 999px;
  font-weight: 800; font-size: 16px; text-decoration: none; white-space: nowrap;
  transition: background-color .2s, color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Homepage slideshow ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  height: 100vh; height: 100svh; min-height: 560px;
  background: #6f9a4e;                    /* grass, while the first slide arrives */
  color: #fff;
}
.slides { position: absolute; inset: 0; z-index: 0; }
.slide {
  position: absolute; inset: 0; margin: 0;
  opacity: 0; transition: opacity 1.6s cubic-bezier(.4, 0, .2, 1);
}
.slide.is-on { opacity: 1; z-index: 2; }
.slide.is-leaving { opacity: 1; z-index: 1; transition: none; }
.slide img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: var(--x, 50%) 50%;
  transform: scale(1.07); transform-origin: var(--x, 50%) 60%;
}
.slide.is-on img, .slide.is-leaving img { transform: scale(1); transition: transform 9s cubic-bezier(.25, .1, .25, 1); }
/* where to hold each picture when a screen narrower than 16:9 crops its sides (tall phones get portrait crops) */
.slide--fairway-valley { --x: 30%; }
.slide--xunan-cay { --x: 28%; }
.slide--redstone-flats { --x: 76%; }
.slide--oakhampton { --x: 46%; }

.hero-shade {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(to top, rgba(10, 14, 12, .55) 0%, rgba(10, 14, 12, .22) 22%, rgba(10, 14, 12, 0) 40%);
}
.hero-link { position: absolute; inset: 0; z-index: 4; }
.hero-link:focus-visible { outline-offset: -6px; border-radius: 0; }

/* the logo alone, a little above the middle */
.hero-logo {
  position: absolute; z-index: 5; left: 50%; top: 46%; transform: translate(-50%, -50%);
  width: min(24vw, 32vh, 300px); height: auto; pointer-events: none;
}

/* a low bar along the foot of a hero: words on the left, actions on the right (both heroes) */
.hero-bar {
  position: absolute; z-index: 5; left: 0; right: 0; bottom: 0;
  padding-bottom: clamp(22px, 4.5vh, 44px);
  color: #fff; pointer-events: none;
}
.hero-bar .wrap { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 40px; }
.hero-bar a, .hero-bar button { pointer-events: auto; }
.hero-tag, .dw-tagline {
  font-size: clamp(20px, 2.1vw, 30px); font-weight: 700; line-height: 1.2;
  letter-spacing: -0.01em; max-width: 16em;
  /* a close shadow for edge contrast plus a soft wide one, so the text reads with little shading behind it */
  text-shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 2px 18px rgba(0, 0, 0, .35);
}
.dw-tagline { font-family: var(--serif); }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
/* the quieter second action beside the badge */
.hero-more {
  display: inline-flex; align-items: center; gap: 10px;
  color: #fff; font-weight: 800; font-size: 16px; text-decoration: none; white-space: nowrap;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .4);
}
.hero-more:hover { text-decoration: underline; text-underline-offset: 4px; }
.hero-more .arrow { transition: transform .2s; }
.hero-more:hover .arrow { transform: translateX(3px); }
.hero-more-icon {
  width: 38px; height: 38px; display: grid; place-items: center; flex: none; border-radius: 50%;
  background: rgba(255, 255, 255, .16); border: 1.5px solid rgba(255, 255, 255, .6);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.hero-more-icon svg { width: 12px; height: 12px; margin-left: 2px; }

.dots { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.dots-caption { min-width: 9.5em; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; text-shadow: 0 1px 10px rgba(0, 0, 0, .4); }
.dots-row { display: flex; align-items: center; gap: 6px; }
.dot {
  position: relative; width: 32px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer;
}
.dot::before, .dot::after { content: ''; position: absolute; left: 0; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 2px; }
.dot::before { right: 0; background: rgba(255, 255, 255, .38); }
.dot::after { width: 0; background: #fff; }
.dot[aria-current="true"]::after { animation: fill var(--slide-ms, 7000ms) linear forwards; }
.hero.is-paused .dot[aria-current="true"]::after { animation: none; width: 100%; }
@keyframes fill { to { width: 100%; } }
.pause {
  width: 28px; height: 24px; border: 0; padding: 0; margin-left: 4px; background: none; cursor: pointer; color: #fff; opacity: .85;
  display: grid; place-items: center;
}
.pause svg { width: 14px; height: 14px; }
.pause .i-play { display: none; }
.hero.is-paused .pause .i-play { display: block; }
.hero.is-paused .pause .i-pause { display: none; }

@media (max-aspect-ratio: 4/5) {
  .hero-logo { top: 40%; width: min(60vw, 250px); }
  .slide img { object-position: 50% 50%; transform-origin: 50% 60%; }   /* phones get portrait crops, already framed */
  .hero-shade { background: linear-gradient(to top, rgba(10, 14, 12, .58) 0%, rgba(10, 14, 12, .24) 28%, rgba(10, 14, 12, 0) 46%); }
}
@media (max-width: 720px) {
  .hero-bar .wrap { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 420px) {
  .play-badge img { height: 50px; }
  .btn { height: 50px; padding: 0 20px; font-size: 15px; }
}

/* ---------- Homepage: games ---------- */
.section-dark { background: var(--chrome); color: var(--on-chrome); padding: clamp(64px, 10vw, 120px) 0; }
.eyebrow {
  display: block; margin-bottom: 18px;
  font-size: 13px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; color: var(--on-chrome-muted);
}
.game-card {
  display: grid; grid-template-columns: 1.25fr 1fr; overflow: hidden;
  background: var(--chrome-2); border: 1px solid var(--chrome-line); border-radius: 24px;
}
.game-card-media { position: relative; display: block; min-height: 300px; overflow: hidden; }
.game-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.game-card-media:hover img { transform: scale(1.04); }
.game-card-body { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.app-id { display: flex; align-items: center; gap: 16px; }
.app-icon { width: 64px; height: 64px; border-radius: 15px; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); flex: none; }
.app-id h3 { font-size: 24px; font-weight: 900; }
.app-id p { color: var(--on-chrome-muted); font-size: 15px; font-weight: 700; }
.game-card-body > p { color: #cfcfd6; font-size: 17px; }
.game-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 6px; }
.text-link { font-weight: 800; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 820px) {
  .game-card { grid-template-columns: 1fr; }
  .game-card-media { min-height: 0; aspect-ratio: 16 / 9; }
}

/* ---------- DreamWay page: the game's palette, Libre Baskerville headings, Nunito text ---------- */
.dw { background: var(--cream); color: var(--ink); }
.dw h2, .dw h3, .dw h4 { font-family: var(--serif); font-weight: 700; letter-spacing: -0.01em; }

.dw-hero {
  position: relative; isolation: isolate; overflow: hidden;
  height: 88vh; height: 88svh; min-height: 540px; max-height: 1100px;
  display: grid; place-items: center;
  background: #6f9a4e; color: #fff;
}
.dw-hero > picture img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.dw-hero::after { /* shade along the foot for the bar; the centre stays bright */
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to top, rgba(16, 28, 12, .55) 0%, rgba(16, 28, 12, .22) 24%, rgba(16, 28, 12, 0) 42%);
}
.dw-hero h1 { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); }  /* the calm middle of the picture */
.dw-hero h1 img { width: min(24vw, 34vh, 320px); height: auto; }
@media (max-aspect-ratio: 4/5) {
  .dw-hero h1 { top: 34%; }
  .dw-hero h1 img { width: min(60vw, 250px); }
}

.dw-section { padding: clamp(64px, 9vw, 120px) 0; }
.dw-section--paper { background: var(--paper); }
.dw-section--deep { background: var(--cream-dark); }
.dw-head { text-align: center; max-width: 42em; margin: 0 auto clamp(32px, 5vw, 56px); }
.dw-head h2, .split h2 { font-size: clamp(28px, 3.6vw, 44px); color: var(--green); }
.dw-head p { margin-top: 16px; color: var(--ink-soft); font-size: clamp(17px, 1.5vw, 19px); }
.dw-intro { padding-bottom: clamp(56px, 7vw, 96px); }
.dw-intro .dw-head h2 { font-size: clamp(30px, 4.2vw, 52px); line-height: 1.15; }

/* trailer: a poster until played, then YouTube's privacy-enhanced player */
.video {
  position: relative; max-width: 960px; margin: 0 auto; aspect-ratio: 16 / 9;
  border-radius: var(--radius); overflow: hidden; background: #1d2a17;
  box-shadow: 0 22px 48px -24px rgba(62, 52, 40, .6), var(--shadow);
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-poster { position: absolute; inset: 0; display: block; color: #fff; text-decoration: none; }
.video-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.video-poster::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 20, 10, .45), rgba(10, 20, 10, 0) 45%); }
.video-poster:hover img { transform: scale(1.03); }
.video-play {
  position: absolute; z-index: 1; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--gold); color: var(--ink); box-shadow: 0 8px 28px rgba(0, 0, 0, .3);
  transition: transform .2s;
}
.video-play svg { width: 28px; height: 28px; margin-left: 5px; }
.video-poster:hover .video-play { transform: scale(1.06); }
.video-poster:focus-visible { outline-offset: -6px; }
.video-label { position: absolute; z-index: 1; left: 24px; bottom: 18px; font-weight: 800; font-size: 17px; text-shadow: 0 1px 8px rgba(0, 0, 0, .4); }
.video-label span { margin-left: 8px; font-weight: 700; opacity: .8; }
.video-note { text-align: center; margin-top: 14px; color: var(--ink-soft); font-size: 14px; }
@media (max-width: 520px) {
  .video { margin: 0 calc(var(--gutter) * -1); border-radius: 0; }
  .video-play { width: 68px; height: 68px; margin: -34px 0 0 -34px; }
  .video-label { left: 16px; bottom: 12px; font-size: 15px; }
}

/* building in action: three phone captures in a row (a swipeable row on phones), the rest as text */
.build-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 44px); }
.build-step { text-align: center; }
.build-step img {
  width: min(100%, 300px); margin: 0 auto; border-radius: 28px; background: var(--cream-dark);
  box-shadow: 0 24px 48px -22px rgba(62, 52, 40, .55), var(--shadow);
}
.build-step p { margin: 20px auto 0; max-width: 20em; font-size: 17px; }
.build-more { list-style: none; margin: clamp(36px, 5vw, 56px) auto 0; padding: 0; max-width: 900px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.build-more li { position: relative; padding: 18px 22px 18px 44px; border-radius: var(--radius); background: var(--cream); box-shadow: var(--shadow); font-size: 16px; }
.build-more li::before { content: ''; position: absolute; left: 22px; top: 27px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
@media (max-width: 640px) {
  .build-grid {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px;
    margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 18px; scrollbar-width: none;
  }
  .build-grid::-webkit-scrollbar { display: none; }
  .build-step { flex: 0 0 72%; scroll-snap-align: center; }
  .build-step img { border-radius: 24px; }
  .build-step p { font-size: 16px; }
  .build-more { grid-template-columns: 1fr; }
}

.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(36px, 6vw, 88px); }
.split-text h2 { margin-bottom: 20px; }
.split-text p { color: var(--ink-soft); font-size: clamp(17px, 1.5vw, 19px); }
.split-text p + p { margin-top: 14px; }
.split-text h3 { margin: 32px 0 8px; font-size: 22px; color: var(--ink); }
.split-media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.split--phone { grid-template-columns: 1.3fr 1fr; }
.split--phone .split-media { justify-self: center; width: min(100%, 320px); }
.split--phone .split-media img { border-radius: 28px; box-shadow: 0 24px 48px -22px rgba(62, 52, 40, .55), var(--shadow); }
.split--reverse { grid-template-columns: 1fr 1.25fr; }
.split--reverse .split-media { order: -1; }
@media (max-width: 860px) {
  .split, .split--phone, .split--reverse { grid-template-columns: 1fr; }
  .split--reverse .split-media { order: 0; }
  .split--phone .split-media { width: min(76%, 280px); }
}
@media (max-width: 640px) {
  .split--reverse .split-media { justify-self: center; width: min(76%, 280px); }
  .split--reverse .split-media img { border-radius: 24px; }
}

.course-group + .course-group { margin-top: clamp(40px, 5vw, 64px); }
.course-group-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 20px; }
.course-group-head h3 { font-size: clamp(22px, 2.4vw, 28px); color: var(--ink); }
.course-group-head p { flex-basis: 100%; max-width: 46em; color: var(--ink-soft); }
.course-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.8vw, 22px); }
.course-grid--free { grid-template-columns: repeat(2, 1fr); }
.course { background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.course img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.course div { padding: 16px 18px 20px; }
.course h4 { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 19px; color: var(--ink); }
.course p { margin-top: 6px; color: var(--ink-soft); font-size: 15.5px; line-height: 1.5; }
.tag { flex: none; font-family: var(--font); font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.tag--free { background: #dcebcd; color: var(--green); }
.tag--world { background: #f6e3ad; color: #6a4f0c; }
@media (max-width: 980px) { .course-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .course-grid, .course-grid--free { grid-template-columns: 1fr; gap: 12px; }
  .course { display: grid; grid-template-columns: 42% 1fr; border-radius: 16px; }
  .course img { height: 100%; aspect-ratio: auto; }
  .course div { padding: 12px 14px; align-self: center; }
  .course h4 { font-size: 16px; flex-wrap: wrap; justify-content: flex-start; }
  .course p { font-size: 14px; }
}

.fact-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.fact { padding: 24px; border-radius: var(--radius); background: var(--cream); box-shadow: var(--shadow); }
.fact svg { width: 30px; height: 30px; color: var(--green); margin-bottom: 14px; }
.fact p { font-size: 16px; line-height: 1.55; }
.fact a { color: var(--green); font-weight: 800; text-underline-offset: 3px; }
@media (max-width: 980px) { .fact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .fact-grid { grid-template-columns: 1fr; } }

.dw-cta { position: relative; isolation: isolate; overflow: hidden; color: #fff; text-align: center; padding: clamp(88px, 13vw, 160px) 0; }
.dw-cta > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.dw-cta::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 50% 55%, rgba(16, 28, 12, .42), rgba(16, 28, 12, .12) 72%); }
.dw-cta .app-icon { width: 88px; height: 88px; border-radius: 20px; margin: 0 auto 22px; }
.dw-cta h2 { font-size: clamp(28px, 4.2vw, 50px); text-shadow: 0 2px 20px rgba(0, 0, 0, .3); }
.dw-cta p { margin: 12px auto 28px; font-size: clamp(17px, 1.7vw, 20px); font-weight: 700; text-shadow: 0 1px 10px rgba(0, 0, 0, .3); }

/* ---------- Legal pages (DreamWay's privacy, terms, credits) ---------- */
.legal { background: var(--cream); padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 8vw, 96px); }
.legal .wrap { max-width: 800px; }
.crumbs { font-size: 14px; font-weight: 800; color: var(--ink-soft); margin-bottom: 18px; }
.crumbs a { color: var(--green); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.legal h1, .legal h2, .legal h3 { font-family: var(--serif); font-weight: 700; }
.legal h1 { font-size: clamp(30px, 4.4vw, 44px); color: var(--green); }
.legal .updated { color: var(--ink-soft); margin: 10px 0 32px; font-weight: 700; }
.legal h2 { font-size: 22px; margin: 44px 0 12px; color: var(--ink); }
.legal h3 { font-size: 18px; margin: 28px 0 8px; }
.legal p, .legal ul { margin: 0 0 14px; }
.legal ul { padding-left: 1.3em; }
.legal li { margin: 6px 0; }
.legal a { color: var(--green); text-underline-offset: 3px; }
.legal .short { background: var(--paper); border: 1px solid var(--cream-edge); border-radius: var(--radius); padding: 8px 24px 8px 44px; }
.table-wrap { overflow-x: auto; margin: 16px 0 20px; border: 1px solid var(--cream-edge); border-radius: 14px; background: var(--paper); }
.legal table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.5; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--cream-edge); }
.legal tr:last-child td { border-bottom: 0; }
.legal th { font-weight: 900; background: var(--cream-dark); }
.legal pre {
  margin: 12px 0 20px; padding: 18px 20px; overflow-x: auto;
  background: var(--paper); border: 1px solid var(--cream-edge); border-radius: 14px;
  font: 13.5px/1.6 ui-monospace, 'Cascadia Mono', Consolas, Menlo, monospace; color: var(--ink);
  white-space: pre-wrap;
}
.legal-links { flex-wrap: wrap; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--cream-edge); display: flex; gap: 24px; font-weight: 800; }

/* ---------- 404 ---------- */
.notfound { min-height: calc(100vh - var(--header-h)); display: grid; place-items: center; text-align: center; color: var(--on-chrome); padding: 80px 0; }
.notfound h1 { font-size: clamp(36px, 6vw, 64px); font-weight: 900; margin: 6px 0 14px; }
.notfound p { color: var(--on-chrome-muted); margin-bottom: 28px; }
.notfound .btn { color: var(--chrome); background: var(--on-chrome); }

/* ---------- Footer ---------- */
.footer { background: var(--chrome); color: var(--on-chrome-muted); font-size: 15px; border-top: 1px solid var(--chrome-line); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px 48px; padding: 48px 0 36px; }
.footer .brand { padding: 0; }
.footer .brand img { height: 11px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 32px 64px; }
.footer h2 { font-family: var(--font); font-size: 12px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: var(--on-chrome); margin-bottom: 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--on-chrome); }
.footer-legal { border-top: 1px solid var(--chrome-line); padding: 20px 0 28px; font-size: 13px; line-height: 1.7; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .slide img, .slide.is-on img { transform: none !important; }
  .slide { transition: opacity .6s !important; }
}
