* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-family-ui);
  background: linear-gradient(135deg, var(--bg-0), var(--bg-1));
}

a {
  color: inherit;
}

.landing-page {
  position: relative;
  --landing-header-height: 62px;
  min-height: 100vh;
  overflow: clip;
  transition: opacity .26s ease;
}

/* app.html starts from the same static document as the landing page. Hide the
   landing before the editor bundle is ready so navigation never flashes it. */
.screenster-editor-bootstrap-loader {
  display: none;
}

html.screenster-editor-bootstrap .landing-page {
  display: none;
}

html.screenster-editor-bootstrap .screenster-editor-bootstrap-loader {
  display: grid;
  position: fixed;
  inset: 0;
  z-index: 9999;
  place-items: center;
  overflow: hidden;
  padding: 24px;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 76% 20%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 38%),
    linear-gradient(135deg, var(--bg-0), var(--bg-1));
  isolation: isolate;
}

/* Critical styles for the bootstrap screen. This loader is visible while the
   editor stylesheet is still being fetched, so it must not depend on
   styles.css being ready. The same selectors are used by the React loader. */
.screenster-editor-bootstrap-loader .photozhop-editor-loader__ambient {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.screenster-editor-bootstrap-loader .photozhop-editor-loader__orb {
  position: absolute;
  width: min(72vw, 880px);
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: .34;
  will-change: transform;
}

.screenster-editor-bootstrap-loader .photozhop-editor-loader__orb--one {
  top: -44%;
  right: -20%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 34%, transparent), color-mix(in srgb, var(--accent) 12%, transparent) 42%, transparent 70%);
  animation: photozhop-loader-orb-one 7s ease-in-out infinite alternate;
}

.screenster-editor-bootstrap-loader .photozhop-editor-loader__orb--two {
  bottom: -50%;
  left: -23%;
  background: radial-gradient(circle, rgba(39, 190, 180, .2), rgba(37, 96, 255, .08) 44%, transparent 70%);
  animation: photozhop-loader-orb-two 8.5s ease-in-out infinite alternate;
}

.screenster-editor-bootstrap-loader .photozhop-editor-loader__content {
  position: relative;
  z-index: 1;
  width: min(420px, calc(100vw - 48px));
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: photozhop-loader-arrive .55s cubic-bezier(.22, 1, .36, 1) both;
}

.screenster-editor-bootstrap-loader .photozhop-editor-loader__mark {
  position: relative;
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  margin-bottom: 34px;
  color: var(--accent);
}

.screenster-editor-bootstrap-loader .photozhop-editor-loader__ring {
  position: absolute;
  inset: 0;
  border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
  border-top-color: var(--accent);
  border-right-color: rgba(39, 190, 180, .78);
  border-radius: 50%;
  box-shadow: inset 0 0 20px color-mix(in srgb, var(--accent) 9%, transparent), 0 0 30px color-mix(in srgb, var(--accent) 10%, transparent);
  animation: photozhop-loader-spin 2.4s linear infinite;
}

.screenster-editor-bootstrap-loader .photozhop-editor-loader__ring::after {
  content: '';
  position: absolute;
  inset: 9px;
  border: 1px solid color-mix(in srgb, var(--ink) 9%, transparent);
  border-bottom-color: color-mix(in srgb, var(--ink) 42%, transparent);
  border-radius: inherit;
  animation: photozhop-loader-spin 3.2s linear infinite reverse;
}

.screenster-editor-bootstrap-loader .photozhop-editor-loader__spark {
  width: 21px;
  height: 21px;
  filter: drop-shadow(0 0 9px color-mix(in srgb, var(--accent) 58%, transparent));
  animation: photozhop-loader-pulse 1.8s ease-in-out infinite;
}

.screenster-editor-bootstrap-loader .photozhop-editor-loader__progress {
  width: 100%;
  height: 1px;
  overflow: hidden;
  background: color-mix(in srgb, var(--ink) 14%, transparent);
}

.screenster-editor-bootstrap-loader .photozhop-editor-loader__progress > span {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: left center;
  background: linear-gradient(90deg, var(--accent), #815dff 55%, #27bfb4);
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 65%, transparent);
}

.screenster-editor-bootstrap-loader .photozhop-editor-loader__meta {
  width: 100%;
  margin-top: 13px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: .1em;
  text-transform: uppercase;
}

@keyframes photozhop-loader-spin {
  to { transform: rotate(360deg); }
}

@keyframes photozhop-loader-pulse {
  0%, 100% { opacity: .58; transform: scale(.92); }
  50% { opacity: 1; transform: scale(1.08); }
}

@keyframes photozhop-loader-orb-one {
  from { transform: translate3d(0, 0, 0) scale(.94); }
  to { transform: translate3d(-7vw, 8vh, 0) scale(1.08); }
}

@keyframes photozhop-loader-orb-two {
  from { transform: translate3d(0, 0, 0) scale(1.04); }
  to { transform: translate3d(9vw, -6vh, 0) scale(.92); }
}

@keyframes photozhop-loader-arrive {
  from { opacity: 0; transform: translateY(10px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .screenster-editor-bootstrap-loader .photozhop-editor-loader__orb,
  .screenster-editor-bootstrap-loader .photozhop-editor-loader__ring,
  .screenster-editor-bootstrap-loader .photozhop-editor-loader__ring::after,
  .screenster-editor-bootstrap-loader .photozhop-editor-loader__spark,
  .screenster-editor-bootstrap-loader .photozhop-editor-loader__content {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

.landing-page.is-leaving {
  opacity: 0;
}

.landing-hero__inner,
.landing-feature__inner,
.landing-final-cta__content,
.landing-footer {
  width: min(100% - 48px, 1200px);
  margin-inline: auto;
}

.landing-header {
  position: sticky;
  z-index: 20;
  top: 0;
  width: 100%;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0;
  padding-inline: max(24px, calc((100% - 1200px) / 2));
  border-bottom: 1px solid transparent;
  background: transparent;
  transition: background-color .2s ease, border-color .2s ease, backdrop-filter .2s ease;
}

.landing-header.is-scrolled {
  border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--bg-0) 78%, transparent);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.landing-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.landing-lessons-menu {
  position: relative;
  display: inline-flex;
}

.landing-lessons {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px 8px;
  border: 0;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  line-height: 1;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: color .2s ease, background-color .2s ease;
}

.landing-lessons:hover,
.landing-lessons:focus-visible {
  color: var(--ink);
  background: var(--accent-soft);
}

.landing-lessons__icon {
  display: block;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
}

.landing-lessons-menu::after {
  position: absolute;
  z-index: 29;
  top: 100%;
  right: 0;
  left: 0;
  height: 12px;
  content: "";
}

.landing-lessons-menu__dropdown {
  position: absolute;
  z-index: 30;
  top: calc(100% + 12px);
  right: 0;
  display: flex;
  width: min(320px, calc(100vw - 32px));
  min-width: 260px;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  corner-shape: squircle;
  background-color: rgba(238, 242, 247, .22);
  background: transparent;
  isolation: isolate;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity .2s ease, visibility 0s linear .2s, border-color .2s ease;
}

.landing-page.landing-lessons-menu-open .landing-lessons-menu__dropdown {
  border-color: var(--line);
  background-color: rgba(255, 255, 255, .72);
  background: color-mix(in srgb, var(--bg-0) 68%, transparent);
  -webkit-backdrop-filter: blur(40px) saturate(1.2);
  backdrop-filter: blur(40px) saturate(1.2);
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transition-delay: 0s;
}

.landing-lessons-backdrop {
  position: fixed;
  z-index: 19;
  display: block;
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  corner-shape: squircle;
  background-color: transparent;
  background: transparent;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity .2s ease, visibility 0s linear .2s, border-color .2s ease;
}

.landing-page.landing-lessons-menu-open .landing-lessons-backdrop {
  border-color: transparent;
  background-color: transparent;
  background: transparent;
  -webkit-backdrop-filter: blur(40px) saturate(1.2);
  backdrop-filter: blur(40px) saturate(1.2);
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.landing-lessons-menu__dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, color .2s ease, background-color .2s ease;
}

.landing-page.landing-lessons-menu-open .landing-lessons-menu__dropdown a {
  opacity: 1;
}

.landing-page.landing-lessons-menu-open.landing-lessons-menu-ready .landing-lessons-menu__dropdown a {
  opacity: 1;
  pointer-events: auto;
}

.landing-page.landing-lessons-menu-ready .landing-lessons-menu__dropdown a:hover,
.landing-page.landing-lessons-menu-ready .landing-lessons-menu__dropdown a:focus-visible {
  color: var(--ink);
  background: var(--accent-soft);
  outline: none;
}

.landing-lessons-menu__icon {
  display: block;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
}

.landing-header__cta-short {
  display: none;
}

.landing-brand {
  display: inline-flex;
  min-width: 0;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
}

.landing-brand img {
  display: block;
  flex: 0 0 auto;
  width: 154px;
  height: auto;
  object-fit: contain;
}

.landing-brand img.landing-brand__mascot {
  width: 42px;
  height: 42px;
}

.landing-brand__name {
  background: linear-gradient(110deg, #6d28d9, #3493dc, #6366f1, #125ed8);
  background-size: 300% 100%;
  background-position: 0% 50%;
  background-clip: text;
  color: transparent;
  font-family: "Russo One", var(--font-family-ui), sans-serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: template-assistant-shimmer 3s ease infinite;
}

.landing-cta {
  min-width: 208px;
  min-height: 50px;
  padding-inline: 22px;
}

.landing-header__cta {
  min-width: 190px;
  height: 40px;
  min-height: 40px;
  padding-inline: 18px;
  border-radius: 999px;
  font-size: 14px;
}

.landing-hero {
  position: relative;
  isolation: isolate;
  padding: clamp(52px, 8vw, 104px) 0 clamp(48px, 6vw, 80px);
}

.landing-hero__mesh {
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  opacity: .72;
}

.landing-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, .67fr) minmax(0, 1.33fr);
  align-items: center;
  gap: clamp(34px, 6vw, 80px);
}

.landing-hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.landing-hero__media {
  min-width: 0;
}

.landing-hero h1 {
  max-width: 690px;
  margin: 0;
  color: #6366f1;
  font-size: clamp(42px, 5.2vw, 72px);
  font-weight: 750;
  letter-spacing: -.055em;
  line-height: 1.02;
  background: linear-gradient(110deg, #6d28d9, #a855f7, #6366f1, #c026d3);
  background-size: 300% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: landing-title-shimmer 3s ease-in-out infinite;
}

@keyframes landing-title-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.landing-hero__copy>p {
  max-width: 570px;
  margin: 24px 0 28px;
  color: var(--muted);
  font-size: clamp(17px, 1.55vw, 20px);
  line-height: 1.6;
}

.landing-hero__caption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}

.landing-hero__video-caption {
  margin: 16px 0 0;
  color: #6366f1;
  font-size: clamp(18px, 2vw, 25px);
  font-weight: 680;
  letter-spacing: -.02em;
  line-height: 1.25;
  text-align: center;
  background: linear-gradient(110deg, #6d28d9, #a855f7, #6366f1, #c026d3);
  background-size: 300% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  animation: landing-hero-caption-in .7s ease-out .7s forwards,
    landing-title-shimmer 4.5s ease-in-out 1.4s infinite;
}

@keyframes landing-hero-caption-in {
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.landing-art-slot {
  position: relative;
  display: grid;
  width: 100%;
  height: clamp(300px, 36vw, 470px);
  min-width: 0;
  margin: 0;
  place-items: center;
}

.landing-art-slot__image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  background: transparent;
}

.landing-phone-scene {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 300px;
  pointer-events: none;
}

.landing-phone-scene__canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.landing-art-placeholder {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 28px;
  border: 1px dashed color-mix(in srgb, var(--accent) 28%, var(--line));
  border-radius: var(--radius-xl);
  color: var(--muted);
  background: color-mix(in srgb, var(--panel-strong) 35%, transparent);
  text-align: center;
}

.landing-art-placeholder svg {
  width: 42px;
  height: 42px;
  fill: none;
  stroke: color-mix(in srgb, var(--accent) 58%, var(--muted));
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.landing-art-placeholder span {
  font-size: 13px;
  font-weight: 600;
}

.landing-art-placeholder small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.landing-art-slot figcaption {
  position: absolute;
  right: 18px;
  bottom: 14px;
  color: var(--muted);
  font-size: 11px;
}

.landing-art-slot--video {
  height: auto;
  min-height: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--card-border);
  border-radius: calc(var(--radius-xl) + 4px);
  corner-shape: squircle;
  background: #000;
  box-shadow: var(--shadow);
}

.landing-art-slot--video iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.landing-feature {
  padding: clamp(48px, 5vw, 72px) 0;
}

.landing-feature__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
}

.landing-feature--screenshots .landing-feature__inner {
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
}

.landing-feature--screenshots .landing-art-slot {
  height: clamp(572px, 58.5vw, 845px);
}

.landing-feature--assistant .landing-feature__inner {
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
}

.landing-feature--featured .landing-feature__inner {
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
}

.landing-feature--featured .landing-art-slot {
  height: clamp(390px, 47vw, 610px);
}

.landing-feature--visual-left .landing-feature__copy {
  grid-column: 2;
  grid-row: 1;
}

.landing-feature--visual-left .landing-art-slot {
  grid-column: 1;
  grid-row: 1;
}

.landing-feature--visual-right .landing-feature__copy {
  grid-column: 1;
  grid-row: 1;
}

.landing-feature--visual-right .landing-art-slot {
  grid-column: 2;
  grid-row: 1;
}

.landing-feature--projects .landing-feature__inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(22px, 3vw, 36px);
}

.landing-feature--projects .landing-art-slot {
  width: 100%;
  height: clamp(220px, 24vw, 300px);
  padding: 20px;
  border: 1px dashed color-mix(in srgb, var(--accent) 28%, var(--line));
  border-radius: var(--radius-xl);
  corner-shape: squircle;
  background: color-mix(in srgb, var(--panel-strong) 35%, transparent);
}

.landing-feature--projects .landing-art-slot__image {
  inset: 20px;
  width: calc(100% - 40px);
  height: calc(100% - 40px);
}

.landing-feature--projects .landing-feature__copy {
  width: 100%;
}

.landing-feature--projects .landing-feature__copy h2,
.landing-feature--projects .landing-feature__copy > p {
  width: 100%;
  max-width: none;
}

.landing-feature__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.landing-reveal-ready .landing-feature__copy {
  opacity: 0;
  transform: translate3d(0, 30px, 0);
  transition: opacity .65s ease, transform .65s ease;
  will-change: opacity, transform;
}

.landing-reveal-ready .landing-feature.is-revealed .landing-feature__copy {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.landing-feature__copy h2,
.landing-final-cta h2 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 720;
  letter-spacing: -.045em;
  line-height: 1.08;
}

.landing-feature__copy h2 {
  color: #6366f1;
  background: linear-gradient(110deg, #6d28d9, #a855f7, #6366f1, #c026d3);
  background-size: 300% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: landing-section-shimmer 4.5s ease-in-out infinite;
}

@keyframes landing-section-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.landing-typewriter {
  position: relative;
  display: block;
  width: 100%;
}

.landing-typewriter__reserve {
  display: block;
  visibility: hidden;
  pointer-events: none;
  user-select: none;
}

.landing-typewriter__text {
  position: absolute;
  inset: 0;
  display: block;
  color: #6366f1;
  background: linear-gradient(110deg, #6d28d9, #a855f7, #6366f1, #c026d3);
  background-size: 300% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: landing-section-shimmer 4.5s ease-in-out infinite;
}

.landing-typewriter__cursor {
  display: inline-block;
  width: .07em;
  height: .82em;
  margin-left: .08em;
  vertical-align: -.08em;
  border-radius: 1px;
  background: #c026d3;
  box-shadow: 0 0 8px color-mix(in srgb, #c026d3 58%, transparent);
  -webkit-text-fill-color: initial;
  animation: landing-typewriter-cursor .72s step-end infinite;
}

@keyframes landing-typewriter-cursor {
  50% { opacity: 0; }
}

.landing-feature__copy>p,
.landing-final-cta p {
  max-width: 540px;
  margin: 20px 0 26px;
  color: var(--muted);
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.65;
}

.landing-feature__copy>p.landing-feature__note {
  margin: -10px 0 16px;
  color: var(--ink);
  font-weight: 650;
}

.landing-language-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 12px;
}

.landing-language-flow span {
  padding: 7px 10px;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel-strong) 54%, transparent);
}

.landing-language-flow b {
  color: var(--accent);
  font-weight: 600;
}

.landing-feature--featured {
  position: relative;
  isolation: isolate;
}

.landing-feature--featured::before {
  position: absolute;
  z-index: -1;
  inset: 18px 0;
  border-block: 1px solid var(--line);
  background: radial-gradient(ellipse at 50% 50%, var(--accent-soft), transparent 68%);
  content: "";
}

.landing-feature--featured .landing-art-placeholder {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  background: color-mix(in srgb, var(--panel-strong) 50%, transparent);
}

.landing-final-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: min(100% - 48px, 1200px);
  margin: 24px auto 52px;
  padding: clamp(38px, 5vw, 60px) 24px;
  border: 1px solid var(--card-border);
  border-radius: calc(var(--radius-xl) + 4px);
  corner-shape: squircle;
  text-align: center;
}

.landing-final-cta::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(115deg, color-mix(in srgb, var(--accent) 12%, transparent), transparent 42%, rgba(42, 171, 238, .08));
  content: "";
  pointer-events: none;
}

.landing-final-cta__content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.landing-final-cta h2 {
  max-width: 840px;
  color: #6366f1;
  background: linear-gradient(110deg, #6d28d9, #a855f7, #6366f1, #c026d3);
  background-size: 300% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: landing-title-shimmer 4.5s ease-in-out infinite;
}

.landing-final-cta p {
  max-width: 670px;
  margin: 18px 0 28px;
}

.landing-final-cta p strong {
  color: var(--ink);
  font-weight: 750;
}

.landing-contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

.landing-contact-button {
  display: inline-flex;
  min-width: 210px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  corner-shape: squircle;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(15, 23, 42, .12);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, filter .2s ease;
}

.landing-contact-button:hover,
.landing-contact-button:focus-visible {
  color: #fff;
  transform: translateY(-2px);
  outline: none;
}

.landing-contact-button img {
  display: block;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  filter: brightness(0) invert(1);
}

.landing-contact-button--max {
  border-color: rgba(125, 87, 232, .55);
  background: linear-gradient(135deg, #8a5cf0, #5b3aa8);
  box-shadow: 0 12px 28px rgba(102, 63, 196, .22);
}

.landing-contact-button--max:hover,
.landing-contact-button--max:focus-visible {
  border-color: rgba(155, 124, 255, .9);
  box-shadow: 0 16px 32px rgba(102, 63, 196, .3);
}

.landing-contact-button--telegram {
  border-color: rgba(42, 171, 238, .58);
  background: linear-gradient(135deg, #35b9f2, #168ccc);
  box-shadow: 0 12px 28px rgba(42, 171, 238, .22);
}

.landing-contact-button--telegram:hover,
.landing-contact-button--telegram:focus-visible {
  border-color: rgba(93, 205, 255, .92);
  box-shadow: 0 16px 32px rgba(42, 171, 238, .3);
}

.landing-contact-button__arrow {
  margin-left: auto;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
}

.landing-contact-fab {
  position: fixed;
  z-index: 60;
  right: 50px;
  bottom: 50px;
}

.landing-contact-fab__toggle {
  position: relative;
  display: grid;
  width: 56px;
  height: 56px;
  padding: 13px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 50%;
  color: #7046ca;
  background: linear-gradient(135deg, rgba(138, 92, 240, .98), rgba(91, 58, 168, .98));
  box-shadow: 0 14px 30px rgba(63, 38, 137, .24);
  cursor: pointer;
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.landing-contact-fab__toggle:hover,
.landing-contact-fab__toggle:focus-visible {
  border-color: rgba(255, 255, 255, .78);
  outline: none;
}

.landing-contact-fab[data-contact-channel="telegram"] .landing-contact-fab__toggle {
  color: #168ccc;
  border-color: rgba(93, 205, 255, .5);
  background: linear-gradient(135deg, rgba(53, 185, 242, .98), rgba(22, 140, 204, .98));
  box-shadow: 0 14px 30px rgba(42, 171, 238, .28);
}

.landing-contact-fab__icon {
  position: absolute;
  display: block;
  width: 30px;
  height: 30px;
  filter: brightness(0) invert(1);
  opacity: 0;
  transform: scale(.76);
  transition: opacity .25s ease, transform .25s ease;
}

.landing-contact-fab[data-contact-channel="max"] .landing-contact-fab__icon--max,
.landing-contact-fab[data-contact-channel="telegram"] .landing-contact-fab__icon--telegram {
  opacity: 1;
  transform: scale(1);
}

.landing-contact-fab__menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  display: flex;
  width: 230px;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  corner-shape: squircle;
  background: color-mix(in srgb, var(--bg-0) 78%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px) scale(.97);
  transform-origin: bottom right;
  visibility: hidden;
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}

.landing-contact-fab.is-open .landing-contact-fab__menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  visibility: visible;
  transition-delay: 0s;
}

.landing-contact-fab .landing-contact-button {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  justify-content: flex-start;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  font-size: 13px;
}

.landing-footer {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.landing-footer>span a {
  color: var(--accent);
  text-decoration: none;
}

.landing-footer>span a:hover {
  text-decoration: underline;
}

.landing-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 16px;
}

.landing-footer__legal a {
  color: var(--accent);
  text-decoration: none;
}

.landing-footer__legal a:hover,
.landing-footer__legal a:focus-visible {
  text-decoration: underline;
}

.landing-footer .landing-brand img {
  width: 128px;
}

.app-load-error {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--ink);
  text-align: center;
}

@media (max-width: 800px) {
  .landing-page {
    --landing-header-height: 62px;
  }

  .landing-hero__inner,
  .landing-feature__inner,
  .landing-final-cta__content,
  .landing-footer {
    width: min(100% - 36px, 660px);
  }

  .landing-header {
    min-height: 62px;
    padding-inline: max(18px, calc((100% - 660px) / 2));
  }

  .landing-hero {
    padding: 52px 0 54px;
  }

  .landing-hero__inner,
  .landing-feature__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  .landing-feature--screenshots .landing-feature__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .landing-feature--featured .landing-feature__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .landing-hero h1 {
    max-width: 620px;
    font-size: clamp(40px, 9vw, 64px);
  }

  .landing-hero__copy>p {
    margin-top: 18px;
  }

  .landing-feature {
    padding: 44px 0;
  }

  .landing-feature--visual-left .landing-feature__copy,
  .landing-feature--visual-left .landing-art-slot,
  .landing-feature--visual-right .landing-feature__copy,
  .landing-feature--visual-right .landing-art-slot {
    grid-column: 1;
    grid-row: auto;
  }

  .landing-feature__inner {
    gap: 26px;
  }

  .landing-art-slot {
    height: clamp(280px, 68vw, 420px);
  }

  .landing-feature--screenshots .landing-art-slot {
    height: clamp(546px, 140vw, 780px);
  }

  .landing-feature--featured .landing-art-slot {
    height: clamp(320px, 84vw, 520px);
  }

  .landing-art-slot--video {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .landing-feature--featured::before {
    inset: 0 calc((100vw - 100%) / -2);
    border: 0;
  }

  .landing-final-cta {
    width: min(100% - 36px, 660px);
    margin: 22px auto 44px;
    padding: 38px 24px;
  }

  .landing-contact-actions {
    flex-direction: column;
    align-items: center;
  }

  .landing-contact-actions .landing-contact-button {
    width: min(100%, 320px);
  }
}

@media (max-width: 480px) {
  .landing-page {
    --landing-header-height: 62px;
  }

  .landing-hero__inner,
  .landing-feature__inner,
  .landing-final-cta__content,
  .landing-footer {
    width: min(100% - 32px, 420px);
  }

  .landing-header {
    min-height: 62px;
    gap: 8px;
    padding-inline: max(16px, calc((100% - 420px) / 2));
  }

  .landing-header__actions {
    gap: 4px;
  }

  .landing-lessons {
    width: 40px;
    min-width: 40px;
    padding: 8px;
  }

  .landing-lessons__label,
  .landing-header__cta-full {
    display: none;
  }

  .landing-header__cta-short {
    display: inline;
  }

  .landing-brand img.landing-brand__mascot {
    width: 36px;
    height: 36px;
  }

  .landing-header__cta {
    min-width: 0;
    height: 40px;
    min-height: 40px;
    padding-inline: 9px;
    font-size: 11px;
  }

  .landing-hero {
    padding: 44px 0 44px;
  }

  .landing-hero h1 {
    font-size: clamp(38px, 11vw, 50px);
  }

  .landing-hero__copy>p {
    font-size: 16px;
  }

  .landing-cta {
    width: 100%;
    max-width: 360px;
  }

  .landing-header__cta {
    width: auto;
    max-width: none;
  }

  .landing-feature {
    padding: 38px 0;
  }

  .landing-feature__copy h2,
  .landing-final-cta h2 {
    font-size: clamp(30px, 9vw, 40px);
  }

  .landing-feature__copy>p,
  .landing-final-cta p {
    font-size: 15px;
  }

  .landing-art-slot {
    height: 270px;
  }

  .landing-feature--screenshots .landing-art-slot {
    height: 546px;
  }

  .landing-feature--featured .landing-art-slot {
    height: clamp(320px, 90vw, 500px);
  }

  .landing-art-slot--video {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .landing-language-flow {
    gap: 6px;
  }

  .landing-language-flow span {
    padding: 6px 8px;
  }

  .landing-final-cta {
    width: min(100% - 32px, 420px);
    margin-bottom: 30px;
    padding: 32px 20px;
  }

  .landing-contact-fab {
    right: 50px;
    bottom: 50px;
  }

  .landing-contact-fab__menu {
    width: min(230px, calc(100vw - 100px));
  }

  .landing-footer {
    min-height: 74px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding-block: 14px;
  }

  .landing-footer__legal {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-reveal-ready .landing-feature__copy {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .landing-hero h1 {
    animation: none;
    background-position: 50% 50%;
  }

  .landing-final-cta h2 {
    animation: none;
    background-position: 50% 50%;
  }

  .landing-feature__copy h2 {
    animation: none;
    background-position: 50% 50%;
  }

  .landing-typewriter__text {
    animation: none;
    background-position: 50% 50%;
  }

  .landing-typewriter__cursor {
    display: none;
  }

  .landing-hero__video-caption {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
