:root {
  color-scheme: light;
  --gg-accent-hue: 16;
  --gg-primary: hsl(var(--gg-accent-hue) 56% 26%);
  --gg-primary-active: hsl(var(--gg-accent-hue) 60% 20%);
  --gg-accent-faint: hsl(var(--gg-accent-hue) 70% 45% / 0.08);
  --gg-accent-soft: hsl(var(--gg-accent-hue) 70% 45% / 0.12);
  --gg-accent-medium: hsl(var(--gg-accent-hue) 70% 45% / 0.18);
  --gg-accent-strong: hsl(var(--gg-accent-hue) 70% 45% / 0.38);
  --gg-accent-line: hsl(var(--gg-accent-hue) 70% 45% / 0.85);
  --gg-accent-focus: hsl(var(--gg-accent-hue) 70% 45% / 0.58);
  --gg-accent-glow: hsl(var(--gg-accent-hue) 70% 45% / 0.16);
  --gg-accent-on-dark: hsl(var(--gg-accent-hue) 80% 78%);
  --gg-canvas: #faf9f5;
  --gg-surface-soft: #f5f0e8;
  --gg-surface-card: #efe9de;
  --gg-surface-strong: #e8e0d2;
  --gg-surface-dark: #181715;
  --gg-surface-dark-elevated: #252320;
  --gg-surface-dark-soft: #1f1e1b;
  --gg-ink: #141413;
  --gg-body: #3d3d3a;
  --gg-muted: #625f59;
  --gg-muted-soft: #77736b;
  --gg-hairline: #e6dfd8;
  --gg-hairline-soft: #ebe6df;
  --gg-on-primary: #ffffff;
  --gg-on-dark: #faf9f5;
  --gg-on-dark-soft: #a09d96;
  --gg-accent-teal: #5db8a6;
  --gg-accent-amber: #e8a55a;
  --gg-success: #5db872;
  --gg-warning: #d4a017;
  --gg-error: #c64545;
  --gg-notice-bg: #fff3d8;
  --gg-notice-border: #d99a35;
  --gg-notice-ink: #3d2911;
  --gg-shadow: rgba(20, 20, 19, 0.08);
  --gg-preferences-bg: rgba(250, 249, 245, 0.9);
  --gg-font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --gg-font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --gg-font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --bg: var(--gg-canvas);
  --card: var(--gg-surface-card);
  --panel: var(--gg-surface-card);
  --panel-soft: var(--gg-surface-soft);
  --panel-strong: var(--gg-surface-strong);
  --line: var(--gg-hairline);
  --border: var(--gg-hairline);
  --text: var(--gg-ink);
  --muted: var(--gg-muted);
  --accent: var(--gg-primary);
  --accent-2: var(--gg-accent-teal);
  --accent-strong: var(--gg-primary-active);
  --primary: var(--gg-primary);
  --primary-strong: var(--gg-primary-active);
  --warning: var(--gg-warning);
  --success: var(--gg-success);
  --notice: var(--gg-notice-bg);
  --shadow: var(--gg-shadow);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --gg-primary: hsl(var(--gg-accent-hue) 82% 70%);
  --gg-primary-active: hsl(var(--gg-accent-hue) 95% 77%);
  --gg-canvas: #181715;
  --gg-surface-soft: #1f1e1b;
  --gg-surface-card: #252320;
  --gg-surface-strong: #2f2b26;
  --gg-surface-dark: #11100f;
  --gg-surface-dark-elevated: #252320;
  --gg-surface-dark-soft: #1a1917;
  --gg-ink: #faf9f5;
  --gg-body: #ded8ce;
  --gg-muted: #b5afa6;
  --gg-muted-soft: #a09d96;
  --gg-hairline: rgba(250, 249, 245, 0.14);
  --gg-hairline-soft: rgba(250, 249, 245, 0.09);
  --gg-on-primary: #20120d;
  --gg-notice-bg: #33271a;
  --gg-notice-border: #a66a28;
  --gg-notice-ink: #f8e6c9;
  --gg-shadow: rgba(0, 0, 0, 0.28);
  --gg-preferences-bg: rgba(24, 23, 21, 0.9);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme]) {
    color-scheme: dark;
    --gg-primary: hsl(var(--gg-accent-hue) 82% 70%);
    --gg-primary-active: hsl(var(--gg-accent-hue) 95% 77%);
    --gg-canvas: #181715;
    --gg-surface-soft: #1f1e1b;
    --gg-surface-card: #252320;
    --gg-surface-strong: #2f2b26;
    --gg-surface-dark: #11100f;
    --gg-surface-dark-elevated: #252320;
    --gg-surface-dark-soft: #1a1917;
    --gg-ink: #faf9f5;
    --gg-body: #ded8ce;
    --gg-muted: #b5afa6;
    --gg-muted-soft: #a09d96;
    --gg-hairline: rgba(250, 249, 245, 0.14);
    --gg-hairline-soft: rgba(250, 249, 245, 0.09);
    --gg-on-primary: #20120d;
    --gg-notice-bg: #33271a;
    --gg-notice-border: #a66a28;
    --gg-notice-ink: #f8e6c9;
    --gg-shadow: rgba(0, 0, 0, 0.28);
    --gg-preferences-bg: rgba(24, 23, 21, 0.9);
  }
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--gg-canvas);
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--gg-ink);
  background: var(--gg-canvas) !important;
  font-family: var(--gg-font-body);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, var(--gg-canvas) 0%, var(--gg-surface-soft) 100%);
}

canvas {
  display: none !important;
}

main {
  width: min(1180px, calc(100% - 40px));
  max-width: 1180px;
  margin: 0 auto;
  padding: 88px 0 72px;
}

a {
  color: var(--gg-primary);
  text-underline-offset: 0.18em;
}

strong {
  color: var(--gg-ink);
}

h1,
h2,
h3 {
  color: var(--gg-ink);
  font-family: var(--gg-font-display);
  font-weight: 400;
  letter-spacing: 0;
  text-shadow: none;
  text-wrap: balance;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
}

h1 {
  margin: 16px 0 14px;
  font-size: 4rem;
  line-height: 1.05;
}

h2 {
  margin: 0 0 16px;
  font-size: 2rem;
  line-height: 1.15;
}

h3 {
  margin: 0 0 12px;
  font-size: 1.45rem;
  line-height: 1.2;
}

p,
li {
  color: var(--gg-body);
  line-height: 1.65;
  text-shadow: none;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: manual;
}

ul,
ol {
  padding-left: 1.25rem;
}

img {
  max-width: 100%;
}

::selection {
  background: var(--gg-accent-medium);
}

.home-page {
  background:
    linear-gradient(90deg, var(--gg-accent-faint) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, rgba(20, 20, 19, 0.05) 0 1px, transparent 1px 100%),
    var(--gg-canvas) !important;
  background-size: 96px 96px, 96px 96px, auto;
}

.home-page::before {
  background:
    linear-gradient(115deg, transparent 0 50%, var(--gg-accent-soft) 50% 50.6%, transparent 50.6% 100%),
    linear-gradient(180deg, var(--gg-canvas) 0%, var(--gg-surface-soft) 100%);
}

.center {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 104px 24px 72px;
}

.center .card {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.92fr);
  gap: 64px;
  align-items: center;
  overflow: visible;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  isolation: auto;
}

.center .card::before,
.center .card::after {
  display: none;
}

.center .card > * {
  grid-column: 1;
}

.home-page .topline {
  width: fit-content;
  margin: 0 0 34px;
  padding: 8px;
  border: 1px solid var(--gg-hairline);
  border-radius: 999px;
  background: color-mix(in srgb, var(--gg-canvas) 86%, transparent);
  box-shadow: 0 18px 60px var(--gg-shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.home-page .topline-left {
  padding-right: 8px;
}

.home-page .brand-mark {
  width: 42px;
  height: 42px;
  background: var(--gg-canvas);
  box-shadow: inset 0 0 0 1px var(--gg-hairline);
}

.home-page .topline-controls {
  align-items: center;
}

.home-page .pill,
.home-page .language-switch {
  background: var(--gg-surface-card);
}

.home-page h1 {
  max-width: 12ch;
  margin: 0 0 24px;
  font-size: clamp(3.6rem, 7.6vw, 7.4rem);
  line-height: 0.98;
}

.home-page #hero-copy {
  max-width: 58ch;
  font-size: clamp(1.06rem, 1.5vw, 1.24rem);
}

.home-page .actions {
  margin-top: 34px;
}

.home-page .button-link {
  min-height: 52px;
  padding: 0 24px;
  border-radius: 12px;
  font-size: 1rem;
}

.home-page .footer {
  margin-top: 46px;
}

.center .card > .home-showcase {
  grid-column: 2;
  grid-row: 1 / span 6;
  position: relative;
  min-height: 760px;
}

.showcase-window {
  position: absolute;
  inset: 42px 0 0 0;
  overflow: hidden;
  border: 1px solid rgba(250, 249, 245, 0.13);
  border-radius: 18px;
  background:
    linear-gradient(90deg, transparent 0 19%, rgba(250, 249, 245, 0.07) 19% 19.3%, transparent 19.3% 100%),
    linear-gradient(180deg, rgba(250, 249, 245, 0.09) 0 11%, transparent 11% 100%),
    repeating-linear-gradient(180deg, transparent 0 34px, rgba(250, 249, 245, 0.07) 35px, transparent 36px),
    var(--gg-surface-dark);
  color: var(--gg-on-dark);
  box-shadow: 0 24px 70px var(--gg-shadow);
}

.showcase-window::before {
  content: "";
  position: absolute;
  inset: 72px 28px auto 28px;
  height: 1px;
  background: linear-gradient(90deg, var(--gg-accent-line), transparent);
  z-index: 0;
}

.showcase-window::after {
  display: none;
}

.showcase-bar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  height: 52px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(250, 249, 245, 0.09);
  color: var(--gg-on-dark-soft);
  font-size: 0.78rem;
}

.showcase-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--gg-primary);
}

.showcase-dot:nth-child(2) {
  background: var(--gg-accent-amber);
}

.showcase-dot:nth-child(3) {
  background: var(--gg-accent-teal);
}

.showcase-title {
  margin-left: auto;
}

.showcase-panel {
  position: relative;
  z-index: 1;
  margin: 38px 34px 0;
  padding: 28px;
  border: 1px solid rgba(250, 249, 245, 0.1);
  border-radius: 14px;
  background: rgba(37, 35, 32, 0.78);
}

.showcase-panel strong {
  display: block;
  color: var(--gg-on-dark);
  font-family: var(--gg-font-display);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 400;
  line-height: 1;
}

.showcase-panel span {
  display: block;
  margin-top: 14px;
  color: var(--gg-on-dark-soft);
}

.showcase-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  margin: 28px 34px 0;
}

.showcase-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(250, 249, 245, 0.1);
  border-radius: 12px;
  background: rgba(37, 35, 32, 0.72);
  color: inherit;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.showcase-row:hover {
  border-color: rgba(250, 249, 245, 0.22);
  background: rgba(47, 44, 39, 0.86);
  transform: translateY(-1px);
}

.showcase-row:focus-visible {
  outline: 2px solid var(--gg-accent-focus);
  outline-offset: 3px;
}

.showcase-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--gg-accent-medium);
  color: var(--gg-accent-on-dark);
  font-weight: 700;
  overflow: hidden;
}

.showcase-row .showcase-icon {
  color: var(--gg-on-dark);
}

.showcase-icon img,
.app-badge img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.showcase-row strong {
  display: block;
  color: var(--gg-on-dark);
  font-size: 0.98rem;
  line-height: 1.25;
}

.showcase-row span {
  display: block;
  color: var(--gg-on-dark-soft);
  font-size: 0.82rem;
}

.showcase-status {
  min-width: 78px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(93, 184, 166, 0.16);
  color: #93decf;
  font-size: 0.76rem;
  text-align: center;
}

.showcase-card {
  position: absolute;
  right: -28px;
  top: 0;
  width: min(260px, 56%);
  padding: 18px;
  border: 1px solid var(--gg-hairline);
  border-radius: 16px;
  background: var(--gg-surface-card);
  box-shadow: 0 24px 70px var(--gg-shadow);
}

.showcase-card span {
  display: block;
  color: var(--gg-muted);
  font-size: 0.8rem;
}

.showcase-card strong {
  display: block;
  margin-top: 8px;
  color: var(--gg-ink);
  font-family: var(--gg-font-display);
  font-size: 2.2rem;
  font-weight: 400;
  line-height: 1;
}

.showcase-card small {
  display: block;
  margin-top: 10px;
  color: var(--gg-muted);
  line-height: 1.45;
}

.topline,
.topline-left,
.topline-controls,
.hero-top,
.app-top,
.meta,
.app-meta,
.actions,
.hero-actions,
.footer,
.inline-action {
  gap: 12px;
}

.topline,
.hero-top,
.app-top,
.meta,
.app-meta,
.actions,
.hero-actions,
.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
}

.topline,
.app-top,
.hero-top {
  justify-content: space-between;
}

.topline {
  margin-bottom: 22px;
  color: var(--gg-muted);
  font-size: 0.82rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  text-shadow: none;
}

.topline-left {
  display: inline-flex;
  align-items: center;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--gg-surface-card);
  border: 1px solid var(--gg-hairline);
  filter: none;
}

.pill,
.eyebrow,
.meta,
.app-meta,
.info-label,
.step-number {
  color: var(--gg-muted);
  text-shadow: none;
}

.pill,
.eyebrow,
.app-badge,
.info-label,
.step-number {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--gg-hairline);
  background: var(--gg-surface-card);
}

.pill,
.eyebrow,
.app-badge,
.info-label,
.step-number {
  min-height: 30px;
  padding: 5px 12px;
  font-family: var(--gg-font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.eyebrow {
  justify-self: start;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-badge {
  justify-content: center;
  min-width: 48px;
  min-height: 44px;
  color: var(--gg-primary-active);
  background: color-mix(in srgb, var(--gg-primary) 10%, var(--gg-canvas));
  border-color: color-mix(in srgb, var(--gg-primary) 28%, var(--gg-hairline));
  overflow: hidden;
}

.app-badge--image {
  width: 56px;
  height: 56px;
  min-width: 56px;
  min-height: 56px;
  padding: 0;
  border-radius: 14px;
}

.product-icon {
  display: block;
  width: 72px;
  height: 72px;
  margin: 0 0 18px;
  border: 1px solid color-mix(in srgb, var(--gg-hairline) 74%, var(--gg-primary));
  border-radius: 18px;
  background: var(--gg-surface-card);
  box-shadow: 0 18px 42px color-mix(in srgb, var(--gg-shadow) 58%, transparent);
  object-fit: cover;
}

.dot {
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--gg-primary);
  opacity: 0.56;
}

.nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-height: 40px;
  padding: 0 14px;
  margin: 0 0 28px;
  border: 1px solid var(--gg-hairline);
  border-radius: 999px;
  background: transparent;
  color: var(--gg-muted);
  font-family: var(--gg-font-body);
  font-size: 0.94rem;
  font-weight: 500;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.nav:hover {
  border-color: var(--gg-accent-strong);
  background: transparent;
  color: var(--gg-ink);
}

.button-link,
.secondary-link,
.telegram-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 8px;
  font-family: var(--gg-font-body);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0;
  text-decoration: none;
  box-shadow: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button-link,
.telegram-link {
  border: 1px solid var(--gg-primary);
  background: var(--gg-primary);
  color: var(--gg-on-primary);
}

.button-link:hover,
.telegram-link:hover {
  transform: none;
  border-color: var(--gg-primary-active);
  background: var(--gg-primary-active);
  color: var(--gg-on-primary);
}

.secondary-link {
  border: 1px solid var(--gg-hairline);
  background: var(--gg-canvas);
  color: var(--gg-ink);
}

html[data-theme="dark"] .secondary-link {
  background: var(--gg-surface-card);
}

.secondary-link:hover {
  transform: none;
  border-color: var(--gg-accent-strong);
  background: var(--gg-surface-soft);
  color: var(--gg-ink);
}

.button-link:focus-visible,
.secondary-link:focus-visible,
.telegram-link:focus-visible,
.nav:focus-visible,
.lang-button:focus-visible,
.theme-button:focus-visible,
.accent-range:focus-visible {
  outline: 2px solid var(--gg-accent-focus);
  outline-offset: 3px;
}

.hero,
.hero-card,
.app-card,
.section-card,
.release,
.info-card,
.step-card,
main > .card {
  border: 1px solid var(--gg-hairline);
  border-radius: 12px;
  background: var(--gg-surface-card);
  box-shadow: none;
}

.hero,
.hero-card {
  padding: 40px;
  margin-bottom: 24px;
}

.hero > *,
.hero-card > *,
.app-card > * {
  max-width: 100%;
  min-width: 0;
}

.app-card,
.section-card,
.release,
.info-card,
.step-card,
main > .card {
  padding: 30px;
}

.grid,
.timeline,
.guide,
.summary-grid {
  display: grid;
  gap: 18px;
}

.grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.app-card {
  display: grid;
  gap: 18px;
}

.app-card .app-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.app-top > :first-child {
  flex: 1 1 260px;
  max-width: 100%;
  min-width: 0;
}

.app-title {
  margin: 0 0 10px;
  color: var(--gg-ink);
  font-family: var(--gg-font-display);
  font-size: 1.85rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
}

.lead,
.hero-copy {
  max-width: 66ch;
  color: var(--gg-body);
  font-size: 1.05rem;
}

.note {
  color: var(--gg-muted);
}

.notice {
  border: 1px solid var(--gg-notice-border);
  background: var(--gg-notice-bg);
  color: var(--gg-notice-ink);
}

.notice p,
.notice li,
.notice strong {
  color: var(--gg-notice-ink);
}

.phone,
.visual,
.screen,
.result,
.formula,
.screenshot-card,
.footer-cta {
  border-color: rgba(250, 249, 245, 0.12);
  background: var(--gg-surface-dark);
  color: var(--gg-on-dark);
  box-shadow: none;
}

.screen,
.screen-header,
.search,
.tile {
  background: var(--gg-surface-dark-elevated);
  color: var(--gg-on-dark);
  border-color: rgba(250, 249, 245, 0.12);
}

.screen-title,
.tile strong,
.result strong,
.formula strong,
.value,
.formula {
  color: var(--gg-on-dark);
}

.phone p,
.phone li,
.visual p,
.visual li,
.screen p,
.screen li,
.result p,
.result li,
.formula p,
.formula li {
  color: var(--gg-on-dark-soft);
}

.tile span,
.search,
.result span,
.formula span,
.formula,
.visual figcaption,
.screenshot-card figcaption {
  color: var(--gg-on-dark-soft);
}

.tile,
.result,
.formula,
.search {
  border-radius: 8px;
}

.summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
}

.guide {
  margin-top: 18px;
}

.step-card {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(260px, 1.05fr);
  gap: 28px;
  align-items: center;
}

.step-card.reverse .content {
  order: 2;
}

.step-card.reverse .visual {
  order: 1;
}

.lang-block {
  display: none;
}

.lang-block.is-active {
  display: block;
}

.language-switch,
.lang-switch,
.theme-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--gg-hairline);
  border-radius: 999px;
  background: var(--gg-surface-card);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.appearance-controls {
  display: grid;
  flex: 1 1 210px;
  gap: 6px;
  min-width: min(220px, 100%);
}

.appearance-controls .theme-switch {
  justify-content: center;
  width: 100%;
  background: transparent;
}

.accent-control {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 6px 9px;
  border: 1px solid var(--gg-hairline);
  border-radius: 999px;
  background: transparent;
}

.accent-swatch {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border: 1px solid color-mix(in srgb, var(--gg-ink) 22%, transparent);
  border-radius: 999px;
  background: var(--gg-primary);
  box-shadow: 0 2px 10px var(--gg-shadow);
}

.accent-range {
  flex: 1 1 auto;
  min-width: 128px;
  height: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  accent-color: var(--gg-primary);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.accent-range::-webkit-slider-runnable-track {
  height: 8px;
  border: 1px solid color-mix(in srgb, var(--gg-ink) 14%, transparent);
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    hsl(0 84% 58%),
    hsl(45 84% 58%),
    hsl(90 84% 45%),
    hsl(150 84% 45%),
    hsl(210 84% 58%),
    hsl(270 84% 64%),
    hsl(330 84% 58%),
    hsl(360 84% 58%)
  );
}

.accent-range::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  margin-top: -6px;
  border: 2px solid var(--gg-canvas);
  border-radius: 999px;
  background: var(--gg-primary);
  box-shadow: 0 0 0 1px var(--gg-hairline), 0 4px 12px var(--gg-shadow);
  -webkit-appearance: none;
  appearance: none;
}

.accent-range::-moz-range-track {
  height: 8px;
  border: 1px solid color-mix(in srgb, var(--gg-ink) 14%, transparent);
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    hsl(0 84% 58%),
    hsl(45 84% 58%),
    hsl(90 84% 45%),
    hsl(150 84% 45%),
    hsl(210 84% 58%),
    hsl(270 84% 64%),
    hsl(330 84% 58%),
    hsl(360 84% 58%)
  );
}

.accent-range::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 2px solid var(--gg-canvas);
  border-radius: 999px;
  background: var(--gg-primary);
  box-shadow: 0 0 0 1px var(--gg-hairline), 0 4px 12px var(--gg-shadow);
}

.lang-button,
.theme-button {
  min-width: 36px;
  min-height: 30px;
  height: auto;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--gg-muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0;
  transition: background-color 160ms ease, color 160ms ease;
}

.lang-button:hover,
.lang-button.is-active,
.theme-button:hover,
.theme-button.is-active {
  background: var(--gg-canvas);
  color: var(--gg-ink);
  transform: none;
}

html[data-theme="dark"] .lang-button:hover,
html[data-theme="dark"] .lang-button.is-active,
html[data-theme="dark"] .theme-button:hover,
html[data-theme="dark"] .theme-button.is-active {
  background: var(--gg-surface-dark-elevated);
}

.site-preferences {
  position: fixed;
  z-index: 50;
  top: 14px;
  right: 14px;
  display: grid;
  justify-items: end;
  gap: 8px;
  width: min(360px, calc(100vw - 28px));
  pointer-events: none;
}

.preferences-toggle,
.preferences-panel {
  pointer-events: auto;
  border: 1px solid var(--gg-hairline);
  background: var(--gg-preferences-bg);
  box-shadow: 0 10px 34px var(--gg-shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.preferences-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 14px;
  color: var(--gg-ink);
  cursor: pointer;
}

.preferences-toggle:hover,
.site-preferences.is-open .preferences-toggle {
  border-color: var(--gg-accent-strong);
}

.preferences-toggle-icon {
  position: relative;
  display: block;
  width: 22px;
  height: 22px;
}

.preferences-toggle-icon::before,
.preferences-toggle-icon::after,
.preferences-toggle-icon span {
  position: absolute;
  left: 2px;
  right: 2px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.preferences-toggle-icon::before {
  top: 4px;
}

.preferences-toggle-icon span:nth-child(1) {
  top: 10px;
}

.preferences-toggle-icon::after {
  top: 16px;
}

.preferences-toggle-icon span:nth-child(2),
.preferences-toggle-icon span:nth-child(3) {
  width: 6px;
  height: 6px;
  border: 2px solid currentColor;
  background: var(--gg-preferences-bg);
  border-radius: 999px;
}

.preferences-toggle-icon span:nth-child(2) {
  top: 2px;
  left: 11px;
  right: auto;
}

.preferences-toggle-icon span:nth-child(3) {
  top: 14px;
  left: 5px;
  right: auto;
}

.preferences-panel {
  display: grid;
  gap: 8px;
  width: 100%;
  padding: 8px;
  border-radius: 16px;
  transform-origin: top right;
}

.preferences-panel[hidden] {
  display: none;
}

.site-preferences.is-open .preferences-panel {
  animation: preferences-panel-in 150ms ease-out both;
}

.preferences-panel .language-switch {
  width: 100%;
  justify-content: center;
  background: transparent;
}

@keyframes preferences-panel-in {
  from {
    opacity: 0;
    transform: translate3d(0, -6px, 0) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.release-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

time,
.meta {
  color: var(--gg-muted);
}

.meta,
.app-meta {
  max-width: 100%;
  min-width: 0;
  row-gap: 6px;
}

.meta > .dot,
.app-meta > .dot {
  display: none;
}

.meta > span:not(.dot),
.meta > time,
.app-meta > span:not(.dot) {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-width: 0;
  height: 30px;
  padding: 5px 10px;
  border: 1px solid var(--gg-hairline);
  border-radius: 999px;
  background: var(--gg-surface-card);
  line-height: 1.35;
  overflow: hidden;
  white-space: nowrap;
}

.meta > span:not(.dot)::before,
.meta > time::before,
.app-meta > span:not(.dot)::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--gg-primary);
  opacity: 0.62;
}

.meta-chip {
  cursor: default;
}

.meta-chip.has-overflow {
  cursor: pointer;
  touch-action: manipulation;
}

.meta-chip:focus-visible {
  outline: 2px solid var(--gg-accent-focus);
  outline-offset: 3px;
}

.meta-chip-text {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transform: translate3d(0, 0, 0);
}

.meta-chip.has-overflow:hover .meta-chip-text,
.meta-chip.has-overflow:focus .meta-chip-text,
.meta-chip.has-overflow.is-active .meta-chip-text {
  animation: meta-chip-marquee var(--meta-chip-duration, 4s) ease-in-out infinite;
  text-overflow: clip;
  will-change: transform;
}

@keyframes meta-chip-marquee {
  0%,
  14% {
    transform: translate3d(0, 0, 0);
  }

  66%,
  86% {
    transform: translate3d(calc(-1 * var(--meta-chip-scroll, 0px)), 0, 0);
  }

  100% {
    transform: translate3d(0, 0, 0);
  }
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid var(--gg-hairline);
  padding: 10px 0;
  text-align: left;
}

@media (max-width: 900px) {
  main {
    width: min(100% - 32px, 760px);
    padding-top: 96px;
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 1.7rem;
  }

  .center .card,
  .hero,
  .step-card {
    grid-template-columns: 1fr;
  }

  .center .card > .home-showcase {
    grid-column: 1;
    grid-row: auto;
    min-height: 780px;
    width: min(100%, 620px);
  }

  .grid,
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .step-card.reverse .content,
  .step-card.reverse .visual {
    order: initial;
  }
}

@media (max-width: 640px) {
  main {
    width: min(100% - 28px, 560px);
    padding: 76px 0 44px;
  }

  .center {
    align-items: start;
    min-height: auto;
    padding: 48px 18px 34px;
  }

  .center .card {
    gap: 18px;
  }

  .home-page .topline {
    width: 100%;
    margin-bottom: 6px;
    border-radius: 18px;
  }

  .home-page .topline-left,
  .home-page .topline-controls {
    width: 100%;
  }

  .home-page .topline-controls {
    justify-content: flex-start;
  }

  .home-page h1 {
    font-size: clamp(3.15rem, 18vw, 4.8rem);
    margin-bottom: 10px;
  }

  .home-page #hero-copy {
    font-size: 1rem;
    line-height: 1.55;
  }

  .home-page .actions {
    margin-top: 4px;
  }

  .home-page .footer {
    order: 2;
    margin-top: 0;
  }

  .center .card > .home-showcase {
    order: 1;
    min-height: 600px;
  }

  .showcase-window {
    inset: 36px 0 0 0;
  }

  .showcase-card {
    right: 14px;
    width: min(280px, 72%);
  }

  .showcase-panel {
    margin: 62px 16px 0;
    padding: 16px;
  }

  .showcase-panel strong {
    font-size: clamp(1.72rem, 9.2vw, 2rem);
    line-height: 1.03;
  }

  .showcase-panel span {
    margin-top: 10px;
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .showcase-list {
    gap: 8px;
    margin: 12px 16px 0;
  }

  .showcase-row {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 8px;
    border-radius: 10px;
  }

  .showcase-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
  }

  .showcase-row strong {
    font-size: 0.9rem;
  }

  .showcase-row span {
    font-size: 0.76rem;
  }

  .showcase-status {
    min-width: 66px;
    padding: 5px 8px;
  }

  .showcase-status {
    grid-column: auto;
    width: fit-content;
  }

  h1 {
    font-size: 2.45rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .hero,
  .hero-card,
  .app-card,
  .section-card,
  .release,
  .info-card,
  .step-card,
  main > .card {
    padding: 22px;
  }

  .site-preferences {
    left: auto;
    right: 10px;
    top: 10px;
    width: min(340px, calc(100vw - 20px));
    max-width: none;
    justify-items: end;
  }

  .lang-button,
  .theme-button {
    min-width: 32px;
    padding: 0 8px;
  }

  .appearance-controls {
    flex: 1 1 100%;
    min-width: 0;
  }

  .accent-range {
    min-width: 96px;
  }

  .site-preferences .language-switch {
    flex: 1 1 auto;
    justify-content: center;
  }
}

html {
  scroll-behavior: smooth;
}

body.motion-ready:not(.calm-page) {
  background:
    radial-gradient(circle at calc(var(--mx, 50) * 1%) calc(var(--my, 30) * 1%), var(--gg-accent-glow), transparent 28rem),
    linear-gradient(90deg, var(--gg-accent-faint) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, rgba(20, 20, 19, 0.05) 0 1px, transparent 1px 100%),
    var(--gg-canvas) !important;
  background-size: auto, 92px 92px, 92px 92px, auto;
}

html[data-theme="dark"] body.motion-ready:not(.calm-page) {
  background:
    radial-gradient(circle at calc(var(--mx, 50) * 1%) calc(var(--my, 30) * 1%), var(--gg-accent-glow), transparent 26rem),
    radial-gradient(circle at 72% 12%, rgba(93, 184, 166, 0.14), transparent 24rem),
    linear-gradient(90deg, rgba(250, 249, 245, 0.045) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, rgba(250, 249, 245, 0.035) 0 1px, transparent 1px 100%),
    var(--gg-canvas) !important;
  background-size: auto, auto, 92px 92px, 92px 92px, auto;
}

body.motion-ready:not(.calm-page)::before {
  background:
    linear-gradient(120deg, transparent 0 44%, var(--gg-accent-soft) 44% 44.35%, transparent 44.35% 100%),
    radial-gradient(circle at 20% 8%, rgba(232, 165, 90, 0.13), transparent 22rem),
    linear-gradient(180deg, color-mix(in srgb, var(--gg-canvas) 84%, transparent) 0%, var(--gg-surface-soft) 100%);
}

.motion-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: block !important;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.55;
  filter: blur(0.2px);
}

body.motion-ready > main,
body.motion-ready > .center {
  position: relative;
  z-index: 1;
}

body.motion-ready:not(.calm-page) main {
  padding-top: 112px;
}

body.motion-ready:not(.calm-page) .hero,
body.motion-ready:not(.calm-page) .hero-card {
  position: relative;
  overflow: hidden;
  min-height: min(560px, calc(100vh - 170px));
  display: grid;
  align-content: center;
  border-radius: 20px;
  border-color: color-mix(in srgb, var(--gg-hairline) 76%, var(--gg-primary));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--gg-surface-card) 90%, transparent), color-mix(in srgb, var(--gg-canvas) 62%, transparent)),
    var(--gg-surface-card);
  box-shadow: 0 32px 90px color-mix(in srgb, var(--gg-shadow) 74%, transparent);
  isolation: isolate;
}

body.motion-ready:not(.calm-page) .hero::before,
body.motion-ready:not(.calm-page) .hero-card::before,
body.motion-ready:not(.calm-page) .app-card::before,
body.motion-ready:not(.calm-page) .section-card::before,
body.motion-ready:not(.calm-page) .release::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--glow-x, 78%) var(--glow-y, 12%), var(--gg-accent-glow), transparent 18rem),
    linear-gradient(120deg, transparent 0 64%, rgba(250, 249, 245, 0.18) 64% 64.5%, transparent 64.5% 100%);
  opacity: 0.9;
}

body.motion-ready:not(.calm-page) h1 {
  max-width: 14ch;
  font-size: clamp(3.25rem, 6.6vw, 6.8rem);
  line-height: 0.98;
}

body.motion-ready:not(.calm-page) h2,
body.motion-ready:not(.calm-page) .app-title {
  font-size: clamp(1.85rem, 3.6vw, 3.45rem);
  line-height: 1.02;
}

body.catalog-page h1 {
  max-width: 16ch;
  font-size: clamp(3rem, 5.8vw, 5.8rem);
}

body.product-page h1,
body.guide-page h1,
body.changelog-page h1 {
  max-width: 17ch;
  font-size: clamp(3rem, 5.4vw, 5.7rem);
}

body.motion-ready:not(.calm-page) .hero p,
body.motion-ready:not(.calm-page) .hero-card p,
body.motion-ready:not(.calm-page) .lead,
body.motion-ready:not(.calm-page) .hero-copy {
  max-width: 68ch;
  font-size: clamp(1.02rem, 1.4vw, 1.28rem);
}

body.motion-ready:not(.calm-page) .grid {
  gap: clamp(18px, 2.4vw, 32px);
}

body.motion-ready:not(.calm-page) .app-card,
body.motion-ready:not(.calm-page) .section-card,
body.motion-ready:not(.calm-page) .release,
body.motion-ready:not(.calm-page) .info-card,
body.motion-ready:not(.calm-page) .step-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background:
    linear-gradient(150deg, color-mix(in srgb, var(--gg-surface-card) 88%, transparent), color-mix(in srgb, var(--gg-canvas) 72%, transparent)),
    var(--gg-surface-card);
  box-shadow: 0 24px 70px color-mix(in srgb, var(--gg-shadow) 64%, transparent);
}

body.motion-ready:not(.calm-page) .app-card {
  min-height: 360px;
  align-content: space-between;
}

body.motion-ready:not(.calm-page) .app-card:hover,
body.motion-ready:not(.calm-page) .section-card:hover,
body.motion-ready:not(.calm-page) .release:hover {
  border-color: var(--gg-accent-strong);
}

.tilt-target {
  transform: perspective(1200px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 180ms ease;
  transform-style: preserve-3d;
}

.magnet-target {
  will-change: transform;
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1), background-color 160ms ease, border-color 160ms ease;
}

.reveal-item {
  opacity: 0;
  transform: translate3d(0, 38px, 0) scale(0.985);
  transition:
    opacity 760ms ease var(--reveal-delay, 0ms),
    transform 860ms cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay, 0ms);
}

.reveal-item.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.quick-nav {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  display: flex;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--gg-hairline);
  border-radius: 16px;
  background: var(--gg-preferences-bg);
  box-shadow: 0 18px 54px var(--gg-shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, calc(100% + 28px), 0);
  transition: opacity 220ms ease, transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

body.quick-nav-visible .quick-nav {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
}

.quick-nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--gg-ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.quick-nav-button:hover {
  background: var(--gg-surface-card);
}

html[data-theme="dark"] .quick-nav-button:hover {
  background: var(--gg-surface-dark-elevated);
}

body.calm-page {
  background: var(--gg-canvas) !important;
}

body.calm-page::before {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--gg-canvas) 96%, var(--gg-surface-soft)) 0%, var(--gg-canvas) 100%);
}

body.calm-page main {
  max-width: 900px;
  padding-top: 116px;
}

body.calm-page main > .card,
body.calm-page .card {
  border-radius: 14px;
  background: color-mix(in srgb, var(--gg-canvas) 82%, var(--gg-surface-card));
  box-shadow: none;
}

body.calm-page h1 {
  font-size: clamp(2.3rem, 5vw, 4.2rem);
  line-height: 1.05;
}

body.calm-page h2 {
  margin-top: 30px;
  font-family: var(--gg-font-body);
  font-size: 1.12rem;
  font-weight: 720;
}

body.calm-page p,
body.calm-page li {
  font-size: 1rem;
  line-height: 1.72;
}

body.catalog-page .hero {
  min-height: min(520px, calc(100vh - 180px));
}

body.product-page .hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: 36px;
  align-items: center;
}

.feature-preview {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 10px solid color-mix(in srgb, var(--gg-ink) 12%, transparent);
  border-radius: 28px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--gg-surface-dark-elevated) 86%, transparent), color-mix(in srgb, var(--gg-surface-dark) 92%, transparent)),
    var(--gg-surface-dark);
  color: var(--gg-on-dark);
  box-shadow: 0 24px 60px var(--gg-shadow);
}

.feature-preview-header {
  display: grid;
  gap: 14px;
  padding: 8px 10px 14px;
  border-bottom: 1px solid rgba(250, 249, 245, 0.1);
}

.feature-preview-title {
  margin: 0;
  color: var(--gg-on-dark);
  font-family: var(--gg-font-body);
  font-size: 1.08rem;
  font-weight: 750;
  line-height: 1.2;
}

.feature-preview-subtitle {
  color: var(--gg-on-dark-soft);
  font-size: 0.88rem;
  line-height: 1.45;
}

.feature-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.feature-preview-tile,
.feature-preview-panel {
  border: 1px solid rgba(250, 249, 245, 0.12);
  border-radius: 8px;
  background: color-mix(in srgb, var(--gg-surface-dark-elevated) 80%, transparent);
}

.feature-preview-tile {
  min-height: 92px;
  padding: 14px;
}

.feature-preview-panel {
  padding: 16px;
}

.feature-preview-tile strong,
.feature-preview-panel strong {
  display: block;
  margin-bottom: 8px;
  color: var(--gg-on-dark);
  font-size: 0.92rem;
  line-height: 1.3;
}

.feature-preview-tile span,
.feature-preview-panel span,
.feature-preview-panel p {
  color: var(--gg-on-dark-soft);
  font-size: 0.86rem;
  line-height: 1.5;
}

.feature-preview-metric {
  display: block;
  margin-bottom: 4px;
  color: var(--gg-primary-active);
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1;
}

.feature-preview-bars {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: end;
  gap: 4px;
  height: 78px;
  padding-top: 8px;
}

.feature-preview-bars span {
  display: block;
  min-height: 18px;
  border-radius: 999px 999px 4px 4px;
  background: linear-gradient(180deg, var(--gg-primary-active), var(--gg-accent-teal));
  opacity: 0.88;
}

html[data-theme="light"] .showcase-window {
  color: var(--gg-ink);
  background:
    linear-gradient(90deg, transparent 0 19%, color-mix(in srgb, var(--gg-ink) 8%, transparent) 19% 19.3%, transparent 19.3% 100%),
    linear-gradient(180deg, color-mix(in srgb, var(--gg-ink) 6%, transparent) 0 11%, transparent 11% 100%),
    repeating-linear-gradient(180deg, transparent 0 34px, color-mix(in srgb, var(--gg-ink) 7%, transparent) 35px, transparent 36px),
    var(--gg-surface-card);
  box-shadow: 0 24px 70px color-mix(in srgb, var(--gg-shadow) 80%, transparent);
}

html[data-theme="light"] .showcase-window::before {
  background: linear-gradient(90deg, var(--gg-primary), transparent);
}

html[data-theme="light"] .showcase-bar {
  border-bottom-color: var(--gg-hairline-soft);
  color: var(--gg-muted);
}

html[data-theme="light"] .showcase-panel,
html[data-theme="light"] .showcase-row {
  border-color: var(--gg-hairline);
  background: color-mix(in srgb, var(--gg-canvas) 72%, var(--gg-surface-card));
}

html[data-theme="light"] .showcase-row:hover {
  border-color: var(--gg-accent-strong);
  background: var(--gg-canvas);
}

html[data-theme="light"] .showcase-panel strong,
html[data-theme="light"] .showcase-row strong {
  color: var(--gg-ink);
}

html[data-theme="light"] .showcase-panel span,
html[data-theme="light"] .showcase-row span {
  color: var(--gg-muted);
}

html[data-theme="light"] .showcase-row .showcase-icon {
  color: var(--gg-primary-active);
  background: color-mix(in srgb, var(--gg-primary) 10%, var(--gg-surface-card));
}

html[data-theme="light"] .showcase-status {
  color: var(--gg-primary-active);
  background: var(--gg-accent-soft);
}

html[data-theme="light"] .phone,
html[data-theme="light"] .feature-preview {
  border-color: color-mix(in srgb, var(--gg-primary) 18%, var(--gg-hairline));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--gg-surface-card) 88%, transparent), color-mix(in srgb, var(--gg-canvas) 92%, transparent)),
    var(--gg-surface-card);
  color: var(--gg-ink);
  box-shadow: 0 24px 60px color-mix(in srgb, var(--gg-shadow) 85%, transparent);
}

html[data-theme="light"] .screen,
html[data-theme="light"] .feature-preview-tile,
html[data-theme="light"] .feature-preview-panel {
  border-color: var(--gg-hairline);
  background: var(--gg-canvas);
  color: var(--gg-ink);
}

html[data-theme="light"] .screen-header,
html[data-theme="light"] .search,
html[data-theme="light"] .tile {
  border-color: var(--gg-hairline);
  background: var(--gg-surface-card);
  color: var(--gg-ink);
}

html[data-theme="light"] .feature-preview-header {
  border-bottom-color: var(--gg-hairline);
}

html[data-theme="light"] .screen-title,
html[data-theme="light"] .tile strong,
html[data-theme="light"] .result strong,
html[data-theme="light"] .formula strong,
html[data-theme="light"] .formula,
html[data-theme="light"] .feature-preview-title,
html[data-theme="light"] .feature-preview-tile strong,
html[data-theme="light"] .feature-preview-panel strong {
  color: var(--gg-ink);
}

html[data-theme="light"] .phone p,
html[data-theme="light"] .phone li,
html[data-theme="light"] .screen p,
html[data-theme="light"] .screen li,
html[data-theme="light"] .tile span,
html[data-theme="light"] .search,
html[data-theme="light"] .result span,
html[data-theme="light"] .formula span,
html[data-theme="light"] .feature-preview-subtitle,
html[data-theme="light"] .feature-preview-tile span,
html[data-theme="light"] .feature-preview-panel span,
html[data-theme="light"] .feature-preview-panel p {
  color: var(--gg-muted);
}

html[data-theme="light"] .result {
  border-color: color-mix(in srgb, var(--gg-success) 34%, var(--gg-hairline));
  background: color-mix(in srgb, var(--gg-success) 9%, var(--gg-canvas));
}

html[data-theme="light"] .formula {
  border-color: color-mix(in srgb, var(--gg-warning) 34%, var(--gg-hairline));
  background: color-mix(in srgb, var(--gg-warning) 9%, var(--gg-canvas));
}

html[data-theme="light"] .feature-preview-metric {
  color: var(--gg-primary-active);
}

html[data-theme="light"] .feature-preview-bars span {
  background: linear-gradient(180deg, var(--gg-primary), var(--gg-accent-teal));
}

body.guide-page .step-card {
  border-radius: 22px;
}

@media (max-width: 760px) {
  body.motion-ready:not(.calm-page) main {
    padding-top: 68px;
  }

  body.calm-page main {
    padding-top: 68px;
  }

  body.motion-ready:not(.calm-page) .hero,
  body.motion-ready:not(.calm-page) .hero-card {
    min-height: auto;
    padding: 20px;
  }

  body.product-page .hero-card {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .feature-preview {
    border-width: 7px;
    gap: 8px;
  }

  .feature-preview-grid {
    grid-template-columns: 1fr;
  }

  body.motion-ready:not(.calm-page) h1 {
    max-width: 100%;
    font-size: clamp(2.45rem, 11.5vw, 4.35rem);
    line-height: 1.02;
  }

  body.catalog-page .hero h1 {
    font-size: clamp(2.2rem, 9.8vw, 3.1rem);
    line-height: 1.04;
    overflow-wrap: anywhere;
  }

  body.motion-ready:not(.calm-page) h2,
  body.motion-ready:not(.calm-page) .app-title {
    font-size: clamp(1.65rem, 7.5vw, 2.55rem);
    line-height: 1.08;
  }

  .quick-nav {
    left: 10px;
    right: 10px;
    bottom: 10px;
    justify-content: center;
  }

  .quick-nav-button {
    flex: 1 1 0;
    padding: 0 8px;
    font-size: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .motion-canvas {
    display: none !important;
  }

  .reveal-item {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }

  .tilt-target,
  .magnet-target {
    transform: none !important;
    transition: none;
  }

  .meta-chip.has-overflow:hover .meta-chip-text,
  .meta-chip.has-overflow:focus .meta-chip-text,
  .meta-chip.has-overflow.is-active .meta-chip-text {
    animation: none;
    transform: none;
  }
}
