/* Creo landing. Tokens mirror gemini-promo/brand/colors-tokens.json (source of truth: Creo/Core/Theme.swift). */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.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;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  --graphite: #2a2a2a;
  --yellow: #ffc904;
  --paper: #fffeff;
  --lilac: #baa8fa;
  --peach: #ffbd61;
  --sky: #abccff;
  --pink: #ffadf2;
  --mint: #b3ebcc;

  --bg: #f6f5f4;
  --card: #fffeff;
  --ink: #2a2a2a;
  --muted: #5b5955;
  --line: rgba(42, 42, 42, 0.12);
  --accent-text: #8f6b00;
  --shadow: 0 30px 60px -30px rgba(42, 42, 42, 0.35);

  --radius: 24px;
  --radius-hero: 32px;
  --gutter: 20px;
  --max: 1160px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #171717;
    --card: #2a2a2a;
    --ink: #fafafa;
    --muted: #b9b6b0;
    --line: rgba(250, 250, 250, 0.14);
    --accent-text: #ffc904;
    --shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #171717;
  --card: #2a2a2a;
  --ink: #fafafa;
  --muted: #b9b6b0;
  --line: rgba(250, 250, 250, 0.14);
  --accent-text: #ffc904;
  --shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 8px; }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--yellow); color: var(--graphite); padding: 10px 16px; border-radius: 999px; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
section { padding-block: clamp(56px, 9vw, 110px); }

/* ---------- Floating capsule header (echoes the app's tab bar) ---------- */
.bar {
  position: fixed; z-index: 50; top: 14px; left: 50%; transform: translateX(-50%);
  width: min(calc(100% - 28px), 860px);
  display: flex; align-items: center; gap: 8px;
  padding: 8px 8px 8px 12px;
  background: var(--graphite); color: #fafafa;
  border-radius: 999px;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.5);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; margin-right: auto; }
.mark {
  width: 34px; height: 34px; border-radius: 22.5%; background: var(--graphite);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  display: grid; place-items: center; flex: none;
}
.mark img { width: 100%; height: 100%; }
.nav { display: flex; gap: 2px; }
.nav a {
  text-decoration: none; font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 999px; color: rgba(250, 250, 250, 0.82);
  transition: background 0.2s, color 0.2s;
}
.nav a:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.tool {
  appearance: none; border: 0; cursor: pointer;
  height: 38px; min-width: 38px; padding: 0 12px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.1); color: #fafafa; font-weight: 700; font-size: 13px;
  display: grid; place-items: center; transition: background 0.2s, transform 0.2s var(--ease);
}
.tool:hover { background: rgba(255, 255, 255, 0.18); }
.tool:active { transform: scale(0.94); }
.tool.theme { background: var(--yellow); color: var(--graphite); padding: 0; width: 38px; }
.tool.theme svg { width: 18px; height: 18px; }
.tool.theme .moon { display: none; }
:root[data-theme="dark"] .tool.theme .sun { display: none; }
:root[data-theme="dark"] .tool.theme .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tool.theme .sun { display: none; }
  :root:not([data-theme="light"]) .tool.theme .moon { display: block; }
}
@media (max-width: 760px) { .nav { display: none; } }

/* ---------- Buttons / chips ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; cursor: pointer;
  font-weight: 700; font-size: 16px; padding: 15px 24px; border-radius: 999px; border: 0;
  background: var(--graphite); color: #fff;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
:root[data-theme="dark"] .btn.ink { background: var(--yellow); color: var(--graphite); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.ink { background: var(--yellow); color: var(--graphite); } }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(42, 42, 42, 0.5); }
.btn svg { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateY(3px); }
.soon {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px;
  background: var(--yellow); color: var(--graphite); font-weight: 800; font-size: 16px;
}
.soon .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--graphite); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.7); opacity: 0.35; } }
.chip {
  display: inline-block; font-size: 13px; font-weight: 700; padding: 6px 13px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.55); color: var(--graphite);
}

/* ---------- Pseudo-3D shapes (same family as Creo/Core/Motion.swift) ---------- */
.shape { position: absolute; pointer-events: none; will-change: transform; transform: translate3d(var(--px, 0px), var(--py, 0px), 0); }
.shape > i { display: block; width: 100%; height: 100%; animation: bob var(--dur, 7s) ease-in-out var(--delay, 0s) infinite; }
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(var(--r0, 0deg)); }
  50% { transform: translateY(-14px) rotate(var(--r1, 6deg)); }
}
.torus > i {
  border-radius: 50%;
  background: conic-gradient(from 210deg, #fff0a0, #ffc904 25%, #c99100 55%, #ffd83a 80%, #fff0a0);
  -webkit-mask: radial-gradient(circle, transparent 0 27%, #000 28.5%);
  mask: radial-gradient(circle, transparent 0 27%, #000 28.5%);
  filter: drop-shadow(0 14px 14px rgba(120, 80, 0, 0.35));
}
.sphere > i {
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #fff 0 8%, var(--c, #ffadf2) 34%, color-mix(in srgb, var(--c, #ffadf2) 65%, #6a3a70) 100%);
  box-shadow: 0 16px 22px -8px rgba(60, 40, 70, 0.4);
}
.pillow > i {
  border-radius: 34%;
  background: linear-gradient(145deg, #ffffff 10%, #ececec 60%, #d6d6d6);
  box-shadow: inset 6px 8px 14px rgba(255, 255, 255, 0.9), inset -8px -10px 18px rgba(0, 0, 0, 0.1), 0 20px 26px -10px rgba(40, 40, 40, 0.4);
}
.cyl > i {
  border-radius: 38% / 30%;
  background: linear-gradient(100deg, #555 0%, #2a2a2a 40%, #141414 100%);
  box-shadow: inset 0 14px 0 -4px #151515, 0 22px 26px -10px rgba(0, 0, 0, 0.55);
  position: relative;
}
.cyl > i::before {
  content: ""; position: absolute; left: 16%; right: 16%; top: 8%; height: 26%; border-radius: 50%;
  background: radial-gradient(ellipse at 50% 60%, #000 0 55%, #3a3a3a 56%);
}

/* ---------- Phone frame ---------- */
.phone {
  --pw: 280px;
  position: relative; width: var(--pw); aspect-ratio: 1206 / 2622; flex: none;
  padding: calc(var(--pw) * 0.03); border-radius: calc(var(--pw) * 0.17);
  background: linear-gradient(160deg, #4a4a4a, #202020 55%, #111);
  box-shadow: var(--shadow), inset 0 0 0 1.5px rgba(255, 255, 255, 0.18);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: calc(var(--pw) * 0.14); background: #f4f3f1; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(120px, 14vw, 160px); padding-bottom: clamp(40px, 6vw, 80px); position: relative; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 24px; align-items: center; }
.eyebrow { font-weight: 700; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 18px; }
h1 { font-size: clamp(44px, 7.4vw, 92px); line-height: 0.98; letter-spacing: -0.04em; font-weight: 800; }
h1 em { font-style: normal; background: linear-gradient(transparent 62%, var(--yellow) 62% 92%, transparent 92%); padding-inline: 0.06em; }
.lead { margin-top: 24px; font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 34em; }
.cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.fine { margin-top: 14px; font-size: 14px; color: var(--muted); }
.stage { position: relative; min-height: 620px; display: grid; place-items: center; }
.stage .phone { --pw: clamp(230px, 24vw, 300px); transform: translateY(var(--scroll-y, 0px)) rotate(-3deg) rotateY(var(--tilt-x, 0deg)) rotateX(var(--tilt-y, 0deg)); transition: transform 0.2s linear; }
.stage .halo {
  position: absolute; inset: 6% 4%; border-radius: 48% 52% 46% 54% / 52% 46% 54% 48%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 201, 4, 0.55), rgba(186, 168, 250, 0.35) 55%, transparent 72%);
  filter: blur(8px);
}
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .stage { min-height: 520px; }
}

/* ---------- Marquee ---------- */
.marquee { padding-block: 22px; overflow: hidden; border-block: 1px solid var(--line); background: var(--card); }
.marquee .lbl { text-align: center; font-weight: 700; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.track { display: flex; width: max-content; gap: 12px; animation: slide 60s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.track li { padding: 10px 20px; border-radius: 999px; font-weight: 600; font-size: 16px; color: var(--graphite); white-space: nowrap; }
.track li:nth-child(5n+1) { background: var(--lilac); }
.track li:nth-child(5n+2) { background: var(--peach); }
.track li:nth-child(5n+3) { background: var(--sky); }
.track li:nth-child(5n+4) { background: var(--pink); }
.track li:nth-child(5n+5) { background: var(--mint); }
@keyframes slide { to { transform: translateX(calc(-50% - 6px)); } }

/* ---------- Section headings ---------- */
.head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
h2 { font-size: clamp(34px, 5vw, 60px); line-height: 1.03; letter-spacing: -0.035em; font-weight: 800; }
.head p { margin-top: 16px; color: var(--muted); font-size: 19px; }

/* ---------- Feature cards ---------- */
.features .list { display: grid; gap: 28px; }
.feature {
  --c: var(--lilac);
  position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: center;
  background: var(--c); color: var(--graphite); border-radius: var(--radius-hero); overflow: hidden;
  padding: clamp(28px, 4.5vw, 56px); min-height: 560px;
}
.feature.rev .copy { order: 2; }
.feature .copy { position: relative; z-index: 2; max-width: 520px; }
.feature h3 { margin-top: 18px; font-size: clamp(28px, 3.6vw, 46px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 800; }
.feature p { margin-top: 16px; font-size: 18px; color: rgba(42, 42, 42, 0.82); }
.ticks { margin-top: 22px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; font-weight: 600; font-size: 16px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.25em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--graphite) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='%23ffc904' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.note { margin-top: 20px; font-size: 14px !important; color: rgba(42, 42, 42, 0.72) !important; max-width: 34em; }
.visual { position: relative; min-height: 460px; display: grid; place-items: end center; }
.visual .phone { --pw: 210px; }
.fan { display: flex; align-items: flex-end; justify-content: center; position: relative; width: 100%; min-height: 470px; }
.fan .phone { --pw: clamp(130px, 13vw, 180px); transform: translateY(var(--ty, 16%)) rotate(var(--rot, 0deg)); transition: transform 0.5s var(--ease); }
.fan .phone + .phone { margin-left: calc(var(--pw, 190px) * -0.2); }
.fan .phone.front { z-index: 3; --ty: 8%; }
.fan:hover .phone { --ty: 2%; }
.feature .shape { z-index: 1; }

.feature.dark { --c: var(--graphite); color: #fafafa; background: var(--graphite); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.feature.dark p { color: rgba(250, 250, 250, 0.78); }
.feature.dark .chip { background: rgba(255, 255, 255, 0.12); color: #fafafa; }
.feature.dark .note { color: rgba(250, 250, 250, 0.7) !important; }
.feature.dark .ticks li::before { background-color: var(--yellow); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='%232a2a2a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
:root[data-theme="dark"] .feature.dark { background: #232323; }

/* 3D model viewer (Glim) */
.model-stage { position: relative; width: 100%; min-height: 460px; display: grid; place-items: center; }
.model-stage model-viewer {
  width: 100%; height: 430px; --poster-color: transparent; background: transparent; cursor: grab;
  opacity: 0; transition: opacity 0.9s var(--ease);
}
.model-stage model-viewer.ready { opacity: 1; }
.model-stage .hint { position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.6; pointer-events: none; white-space: nowrap; }
.model-stage .glow { position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; top: 8%; background: radial-gradient(circle, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0) 68%); }
.dark .model-stage .glow { background: radial-gradient(circle, rgba(255, 201, 4, 0.32), rgba(255, 201, 4, 0) 68%); }
.model-fallback { position: absolute; font-weight: 700; opacity: 0.5; }
.rules { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.rules .chip { background: rgba(255, 255, 255, 0.7); font-size: 14px; }

@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; min-height: 0; padding-bottom: 0; }
  .feature.rev .copy { order: 0; }
  .visual, .fan, .model-stage { min-height: 400px; }
  .fan .phone { --pw: clamp(120px, 31vw, 190px); }
  .model-stage model-viewer { height: 380px; }
  .feature.dna { padding-bottom: 0; }
}

/* ---------- Ring gallery (adapted from HorizonX Gallery Ring) ---------- */
.inside { background: var(--graphite); color: #fafafa; border-radius: var(--radius-hero); margin-inline: clamp(8px, 2vw, 24px); overflow: hidden; position: relative; }
.inside h2 { color: #fafafa; }
.inside .head p { color: rgba(250, 250, 250, 0.72); }
.ring {
  position: relative; height: clamp(440px, 62vw, 600px); perspective: 1400px; perspective-origin: 50% 40%;
  touch-action: pan-y; user-select: none; cursor: grab; outline-offset: -6px;
}
.ring.drag { cursor: grabbing; }
.ring-wrap { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; will-change: transform; }
.r-card {
  position: absolute; left: 0; top: 0; aspect-ratio: 1206 / 2622; border-radius: 8%/3.7%; overflow: hidden;
  background: #111; backface-visibility: hidden; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 0 3px #1c1c1c, 0 0 0 4.5px rgba(255, 255, 255, 0.16);
}
.r-card img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ring-ctl { display: flex; justify-content: center; align-items: center; gap: 14px; padding-bottom: clamp(32px, 5vw, 56px); }
.ring-ctl button { width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer; background: var(--yellow); color: var(--graphite); display: grid; place-items: center; transition: transform 0.2s var(--ease); }
.ring-ctl button:hover { transform: scale(1.08); }
.ring-ctl svg { width: 20px; height: 20px; }
.ring-ctl span { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.65; }
.inside .wrap { padding-top: 0; }
.inside .head { padding-top: clamp(48px, 7vw, 90px); }
.inside { padding-block: 0; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px 36px; overflow: hidden; }
.step .n {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 24px; color: var(--graphite);
  background: var(--c, var(--yellow)); margin-bottom: 22px; box-shadow: inset 0 -6px 10px rgba(0, 0, 0, 0.08), inset 0 5px 8px rgba(255, 255, 255, 0.5);
}
.step h3 { font-size: 24px; letter-spacing: -0.02em; font-weight: 800; }
.step p { margin-top: 10px; color: var(--muted); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* ---------- For whom ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.who { border-radius: var(--radius); padding: 28px 24px 30px; color: var(--graphite); min-height: 250px; position: relative; overflow: hidden; transition: transform 0.4s var(--ease); }
.who:hover { transform: translateY(-6px) rotate(-0.6deg); }
.who h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.who p { margin-top: 10px; font-size: 16px; color: rgba(42, 42, 42, 0.82); position: relative; z-index: 1; }
.who .shape { right: -14px; bottom: -14px; width: 84px; height: 84px; opacity: 0.95; }
.principles { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.principles li { padding: 11px 18px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-weight: 600; font-size: 15px; }
@media (max-width: 980px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .bento { grid-template-columns: 1fr; } .who { min-height: 0; } }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; display: grid; gap: 12px; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 20px; transition: background 0.2s; }
summary {
  list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 700; font-size: 18px; display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath d='M9 15h12M15 9v12' stroke='%232a2a2a' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% no-repeat;
  transition: transform 0.3s var(--ease);
}
details[open] summary::after { transform: rotate(135deg); }
details p { padding: 0 24px 22px; color: var(--muted); max-width: 44em; }

/* ---------- Final CTA ---------- */
.final { position: relative; background: var(--graphite); color: #fafafa; border-radius: var(--radius-hero); overflow: hidden; text-align: center; padding: clamp(56px, 9vw, 110px) var(--gutter); }
.final .mark { width: 76px; height: 76px; margin: 0 auto 26px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14); }
.final h2 { max-width: 14em; margin-inline: auto; }
.final p { margin: 16px auto 30px; color: rgba(250, 250, 250, 0.72); max-width: 32em; }
.final .shape { z-index: 0; }
.final > *:not(.shape) { position: relative; z-index: 1; }
.final-wrap { padding-block: 0 clamp(40px, 6vw, 80px); }
.final-wrap .wrap { padding-inline: clamp(8px, 2vw, 24px); max-width: none; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding-block: 40px 56px; font-size: 15px; color: var(--muted); }
footer .wrap { display: grid; gap: 22px; }
.foot-top { display: flex; flex-wrap: wrap; gap: 18px 36px; align-items: center; justify-content: space-between; }
.foot-top .brand { color: var(--ink); margin: 0; }
.foot-top nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-top nav a { font-weight: 600; text-decoration: none; color: var(--ink); }
.foot-top nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.credits { font-size: 13px; line-height: 1.6; max-width: 62em; }
.credits a { color: inherit; }

/* ---------- Legal pages ---------- */
.legal { padding-top: clamp(110px, 12vw, 150px); max-width: 780px; }
.legal h1 { font-size: clamp(36px, 6vw, 60px); margin-bottom: 20px; }
.legal h2 { font-size: 26px; letter-spacing: -0.02em; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--ink); margin-top: 12px; }
.legal ul { list-style: disc; padding-left: 24px; }
.legal .draft {
  background: var(--yellow); color: var(--graphite); border-radius: 18px; padding: 16px 20px; font-weight: 700; margin: 4px 0 28px;
}
.legal .todo { background: rgba(255, 201, 4, 0.28); border-radius: 6px; padding: 0 6px; font-weight: 700; }
.legal .meta { color: var(--muted); }
html[lang="ru"] [lang="en"] { display: none !important; }
html:not([lang="ru"]) [lang="ru"] { display: none !important; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; padding-inline: var(--gutter); }
  .track [aria-hidden="true"] { display: none; }
}

/* Giving back */
.charity { max-width: 820px; min-height: 0; }
.charity:hover { transform: none; }
.charity h3 { margin-top: 14px; }
.charity .chip { background: rgba(255, 255, 255, 0.6); color: var(--graphite); }
.charity .ticks { margin-top: 16px; position: relative; z-index: 1; }
.charity .ticks li { color: var(--graphite); }
.charity .fine { margin-top: 16px; color: rgba(42, 42, 42, 0.75); position: relative; z-index: 1; }
.charity .shape { width: 64px; height: 64px; right: -10px; bottom: -10px; }
.charity .fine { max-width: calc(100% - 64px); }

/* ---------- Glim, the Creo mascot ---------- */
.shape > img { display: block; width: 100%; height: auto; animation: bob var(--dur, 7s) ease-in-out var(--delay, 0s) infinite; filter: drop-shadow(0 22px 22px rgba(120, 80, 0, 0.35)); }
.shape.glim { pointer-events: auto; text-decoration: none; }
.glim-hero { left: -4%; bottom: -3%; width: clamp(150px, 17vw, 235px); z-index: 4; }
@media (max-width: 900px) { .glim-hero { left: 0; bottom: 2%; width: clamp(130px, 34vw, 190px); } }
.glim-sec { padding-top: 0; }
.feature .glim-h { margin-top: 18px; font-size: clamp(34px, 4.4vw, 58px); line-height: 1.03; letter-spacing: -0.035em; font-weight: 800; }
.feature .glim-h + p { margin-top: 18px; }
.moods-h { margin-top: clamp(36px, 5vw, 60px); font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -0.02em; font-weight: 800; }
.moods { margin-top: 20px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.moods figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; background: #7f7f7f; transition: transform 0.4s var(--ease); }
.moods figure:hover { transform: translateY(-6px) rotate(-1deg); }
.moods img { width: 100%; height: auto; aspect-ratio: 348 / 303; object-fit: cover; }
.moods figcaption { position: absolute; left: 8px; bottom: 8px; padding: 4px 11px; border-radius: 999px; background: rgba(255, 255, 255, 0.85); color: var(--graphite); font-size: 13px; font-weight: 700; }
@media (max-width: 900px) { .moods { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .moods { grid-template-columns: repeat(2, 1fr); } }

/* Children's drawings in the charity block */
.charity .kids { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 22px; position: relative; z-index: 1; max-width: 640px; }
.charity .kids figure { margin: 0; background: #fff; padding: 6px 6px 6px; border-radius: 10px; box-shadow: 0 6px 18px rgba(42, 42, 42, 0.16); transition: transform 0.3s var(--ease); }
.charity .kids figure:nth-child(1) { transform: rotate(-2.5deg); }
.charity .kids figure:nth-child(2) { transform: rotate(1.8deg) translateY(6px); }
.charity .kids figure:nth-child(3) { transform: rotate(-1.2deg); }
.charity .kids figure:hover { transform: rotate(0) scale(1.04); }
.charity .kids img { display: block; width: 100%; height: auto; border-radius: 6px; }
.charity .kids-cap { margin-top: 14px; }
@media (max-width: 520px) { .charity .kids { grid-template-columns: 1fr 1fr; } .charity .kids figure:nth-child(3) { display: none; } }
@media (prefers-reduced-motion: reduce) { .charity .kids figure { transition: none; } }
