﻿@font-face {
  font-family: "Coolvetica RG";
  src: url("/assets/fonts/Coolvetica/coolvetica rg.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Coolvetica RG";
  src: url("/assets/fonts/Coolvetica/coolvetica rg.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Coolvetica RG";
  src: url("/assets/fonts/Coolvetica/coolvetica rg.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Coolvetica RG";
  src: url("/assets/fonts/Coolvetica/coolvetica rg.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #070809;
  --bg-top: #0a0c0f;
  --bg-soft: #101317;
  --bg-elevated: #14171b;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-strong: rgba(255, 255, 255, 0.05);
  --surface-hover: rgba(255, 255, 255, 0.08);
  --surface-hero: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  --line: rgba(255, 255, 255, 0.08);
  --line-soft: rgba(255, 255, 255, 0.05);
  --text: #f5f7f8;
  --text-soft: #c8cdd2;
  --text-muted: #8d949d;
  --text-faint: #626973;
  --accent: #7FF7EA;
  --accent-strong: #143C37;
  --accent-soft: rgba(127, 247, 234, 0.2);
  --accent-rgb: 127, 247, 234;
  --accent-strong-rgb: 20, 60, 55;
  --accent-gradient: linear-gradient(180deg, #63d8ca 0%, #48bfb2 52%, #2f8f84 100%);
  --accent-gradient-soft: linear-gradient(180deg, rgba(99, 216, 202, 0.94), rgba(72, 191, 178, 0.9) 52%, rgba(47, 143, 132, 0.88) 100%);
  --danger: #ff7f8f;
  --warning: #ffb347;
  --info: #7d89ff;
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.22);
  --shadow-md: 0 18px 60px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 30px 90px rgba(0, 0, 0, 0.42);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;
  --space-9: 48px;
  --space-10: 64px;
  --pill: 999px;
  --font-ui: "Coolvetica RG", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Coolvetica RG", "Helvetica Neue", Arial, sans-serif;
  --type-display-size: clamp(1.95rem, 2.8vw, 2.55rem);
  --type-display-line: 1.02;
  --type-h1-size: clamp(2.1rem, 2.8vw, 2.75rem);
  --type-h1-line: 1.04;
  --type-h2-size: clamp(1.55rem, 2vw, 2.1rem);
  --type-h2-line: 1.08;
  --type-h3-size: 1.1rem;
  --type-h3-line: 1.2;
  --type-body-l-size: 1rem;
  --type-body-l-line: 1.65;
  --type-body-m-size: 0.94rem;
  --type-body-m-line: 1.58;
  --type-body-s-size: 0.84rem;
  --type-body-s-line: 1.45;
  --type-caption-size: 0.76rem;
  --type-caption-line: 1.45;
  --type-label-size: 0.72rem;
  --type-label-line: 1.3;
  --control-height: 48px;
  --control-padding-x: 16px;
  --card-padding: 18px;
  --panel-padding: 16px;
}

* {
  box-sizing: border-box;
  font-family: var(--font-ui);
}

*::before,
*::after {
  font-family: var(--font-ui);
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-ui);
  font-feature-settings: "cv01", "ss03";
  background:
    radial-gradient(circle at top left, rgba(var(--accent-rgb), 0.1), transparent 24%),
    radial-gradient(circle at 85% 10%, rgba(var(--accent-rgb), 0.18), transparent 18%),
    linear-gradient(180deg, #090a0c 0%, #070809 36%, #0a0c10 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: 0;
}

body::before {
  top: -140px;
  right: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.12), transparent 68%);
  filter: blur(24px);
}

body::after {
  left: -120px;
  bottom: 60px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.14), transparent 72%);
  filter: blur(20px);
}

button,
select,
textarea,
input {
  font: inherit;
  font-family: var(--font-ui);
}

button,
input,
select,
textarea,
option,
label,
p,
span,
strong,
small,
div {
  font-family: var(--font-ui);
}

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

.landing-body {
  overflow-x: hidden;
  background:
    radial-gradient(circle at 80% 46%, rgba(100, 225, 211, 0.42), transparent 0, transparent 22%),
    radial-gradient(circle at 16% 2%, rgba(73, 206, 190, 0.12), transparent 18%),
    linear-gradient(180deg, #020606 0%, #031010 100%);
}

.landing-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 32px 32px 80px;
}

.landing-bg-glow {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  filter: blur(48px);
}

.landing-bg-glow--right {
  top: 80px;
  right: -140px;
  width: 760px;
  height: 980px;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.42), rgba(var(--accent-rgb), 0.1) 38%, transparent 72%);
}

.landing-bg-glow--top {
  top: -160px;
  left: 44%;
  width: 420px;
  height: 240px;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.1), transparent 72%);
}

.landing-topbar,
.landing-hero-card {
  position: relative;
  z-index: 1;
  width: min(1260px, calc(100vw - 96px));
  margin: 0 auto;
}

.landing-topbar {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 0 20px;
  border: 1px solid rgba(160, 226, 216, 0.18);
  border-radius: 20px;
  background:
    radial-gradient(circle at 83% 22%, rgba(110, 219, 205, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(56, 91, 87, 0.78) 0%, rgba(21, 29, 30, 0.94) 26%, rgba(12, 16, 18, 0.98) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(160, 226, 216, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 10px 24px rgba(0, 0, 0, 0.16);
  z-index: 6;
}

.landing-topbar__brand {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
}

.legal-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 32px 32px 80px;
}

.legal-page__shell {
  width: min(980px, calc(100vw - 64px));
  margin: 0 auto;
}

.legal-page__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--text-soft);
  text-decoration: none;
  font-size: var(--type-body-s-size);
  line-height: var(--type-body-s-line);
}

.legal-page__back:hover {
  color: var(--accent);
}

.legal-card {
  position: relative;
  overflow: hidden;
  padding: 28px 28px 32px;
  border: 1px solid rgba(160, 226, 216, 0.18);
  border-radius: 28px;
  background:
    radial-gradient(circle at 86% 18%, rgba(var(--accent-rgb), 0.14), transparent 24%),
    linear-gradient(180deg, rgba(56, 91, 87, 0.64) 0%, rgba(18, 23, 26, 0.94) 24%, rgba(11, 13, 16, 0.98) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(160, 226, 216, 0.06),
    0 18px 50px rgba(0, 0, 0, 0.28);
}

.legal-card__eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: var(--type-label-size);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.legal-card h1 {
  margin: 0 0 12px;
  font-size: clamp(2.1rem, 4vw, 3.25rem);
  line-height: 0.98;
}

.legal-card__lead {
  max-width: 760px;
  margin: 0 0 28px;
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.7;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.legal-meta__chip {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.82rem;
}

.legal-content {
  display: grid;
  gap: 18px;
}

.legal-section {
  padding: 20px 20px 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.02);
}

.legal-section h2 {
  margin: 0 0 12px;
  font-size: 1.12rem;
  line-height: 1.2;
}

.legal-section p,
.legal-section li {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.68;
}

.legal-section ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
}

.legal-page__footer {
  margin-top: 20px;
  color: var(--text-faint);
  font-size: 0.82rem;
  line-height: 1.6;
}

.legal-page__footer a,
.legal-section a {
  color: var(--accent);
  text-decoration: none;
}

.legal-page__footer a:hover,
.legal-section a:hover {
  text-decoration: underline;
}

.landing-topbar__brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 999px;
  box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.34);
}

.landing-topbar__brand-name {
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.landing-topbar__burger,
.landing-mobile-menu {
  display: none;
}

.landing-topbar__nav {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 28px;
}

.landing-topbar__nav a {
  color: rgba(255, 255, 255, 0.44);
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.landing-topbar__actions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 10px;
  justify-self: end;
  margin-left: auto;
}

.landing-topbar__button {
  min-height: 40px;
  min-width: 154px;
  padding: 0 20px;
  letter-spacing: 0.08em;
}

.landing-topbar .landing-topbar__button {
  font-size: 0.68rem;
}

.landing-topbar .ghost-button {
  border-color: rgba(160, 226, 216, 0.1);
  background: rgba(18, 24, 26, 0.38);
  color: rgba(255, 255, 255, 0.82);
}

.landing-topbar__actions button,
.landing-mobile-menu__actions button,
.landing-hero-panel__cta {
  cursor: pointer;
}

.landing-hero-card {
  margin-top: 20px;
  padding: 54px 26px 0;
  border: 1px solid rgba(160, 226, 216, 0.12);
  border-radius: 20px;
  background:
    radial-gradient(circle at 83% 22%, rgba(110, 219, 205, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(56, 91, 87, 0.78) 0%, rgba(21, 29, 30, 0.94) 26%, rgba(12, 16, 18, 0.98) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 24px 80px rgba(0, 0, 0, 0.3);
}

.landing-hero-panel {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.landing-hero-panel__kicker {
  margin: 0 0 8px;
  color: #7feee0;
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.landing-hero-panel h1 {
  margin: 0;
  color: #fbfbfb;
  font-family: var(--font-display);
  max-width: 980px;
  margin-inline: auto;
  font-size: clamp(2.9rem, 3.65vw, 4.15rem);
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.landing-hero-panel__text {
  max-width: 640px;
  margin: 18px auto 0;
  color: rgba(255, 255, 255, 0.48);
  font-size: 1.12rem;
  line-height: 1.32;
  letter-spacing: -0.02em;
}

.landing-hero-panel__cta {
  min-width: 182px;
  min-height: 52px;
  margin-top: 22px;
  padding: 0 28px;
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
}

.landing-gallery {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: end;
  gap: 0;
  margin-top: 26px;
  min-height: 500px;
}

.landing-gallery--mobile {
  display: none;
}

.landing-gallery__item {
  --card-parallax-x: 0px;
  --card-parallax-y: 0px;
  position: relative;
  overflow: hidden;
  margin: 0;
  border-radius: 18px;
  background: #16191c;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.26);
  transform: translate3d(var(--card-parallax-x), var(--card-parallax-y), 0);
  will-change: transform;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.landing-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.5s ease, filter 0.5s ease;
}

.landing-gallery__item img.is-swapping {
  opacity: 0.08;
  filter: saturate(0.82) blur(1.5px);
}

.landing-gallery__item:hover {
  transform: translate3d(var(--card-parallax-x), var(--card-parallax-y), 0) scale(1.035);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.32);
}

.landing-gallery__item:hover img {
  transform: scale(1.03);
}

.landing-gallery__item--left img {
  object-position: center;
}

.landing-gallery__item--center img {
  object-position: center top;
}

.landing-gallery__item--right img {
  object-position: center;
}

.landing-gallery__item--left,
.landing-gallery__item--right {
  width: 326px;
  height: 344px;
}

.landing-gallery__item--left {
  margin-right: -34px;
}

.landing-gallery__item--right {
  margin-left: -34px;
}

.landing-gallery__item--center {
  z-index: 2;
  width: 432px;
  height: 474px;
}

.landing-gallery-controls {
  display: none;
}

.landing-anchor-row {
  position: absolute;
  inset: auto auto 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.landing-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 26px;
  width: min(1260px, calc(100vw - 96px));
  margin: 28px auto 0;
}

.landing-section {
  position: relative;
  overflow: hidden;
  padding: 34px 30px;
  border: 1px solid rgba(160, 226, 216, 0.12);
  border-radius: 20px;
  background:
    radial-gradient(circle at 83% 22%, rgba(110, 219, 205, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(39, 59, 58, 0.46) 0%, rgba(15, 20, 22, 0.94) 24%, rgba(11, 15, 17, 0.98) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 18px 50px rgba(0, 0, 0, 0.22);
  animation: landing-section-rise 0.7s ease both;
}

.landing-section::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 180px;
  height: 1px;
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.9), transparent);
}

.landing-section::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.1), transparent 72%);
  filter: blur(8px);
  pointer-events: none;
}

.landing-section--workflow {
  background:
    radial-gradient(circle at 15% 0%, rgba(var(--accent-rgb), 0.12), transparent 28%),
    linear-gradient(180deg, rgba(39, 59, 58, 0.48) 0%, rgba(15, 20, 22, 0.95) 24%, rgba(11, 15, 17, 0.98) 100%);
}

.landing-section--features {
  background:
    radial-gradient(circle at 88% 18%, rgba(var(--accent-rgb), 0.1), transparent 24%),
    linear-gradient(180deg, rgba(36, 53, 54, 0.46) 0%, rgba(15, 20, 22, 0.95) 24%, rgba(11, 15, 17, 0.98) 100%);
}

.landing-section--how {
  background:
    radial-gradient(circle at 50% -10%, rgba(var(--accent-rgb), 0.08), transparent 32%),
    linear-gradient(180deg, rgba(35, 49, 49, 0.46) 0%, rgba(15, 20, 22, 0.95) 24%, rgba(11, 15, 17, 0.98) 100%);
}

.landing-section--faq {
  background:
    radial-gradient(circle at 85% 10%, rgba(var(--accent-rgb), 0.08), transparent 28%),
    linear-gradient(180deg, rgba(32, 46, 47, 0.46) 0%, rgba(15, 20, 22, 0.95) 24%, rgba(11, 15, 17, 0.98) 100%);
}

.landing-section__intro {
  max-width: 760px;
}

.landing-section__eyebrow {
  margin: 0 0 8px;
  color: #7feee0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.landing-section h2 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(2rem, 2.5vw, 2.9rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.landing-features-title span {
  display: block;
  white-space: nowrap;
}

.landing-faq-title {
  white-space: nowrap;
}

.landing-faq-title span {
  display: block;
}

.landing-section__lead {
  max-width: 720px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.54);
  font-size: 1rem;
  line-height: 1.55;
}

.legal-footer {
  position: relative;
  z-index: 1;
}

.legal-footer__inner {
  width: min(1260px, calc(100vw - 96px));
  margin: 0 auto;
  padding: 26px 0 8px;
  border-top: 1px solid rgba(160, 226, 216, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.legal-footer__brand {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.legal-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
}

.legal-footer__nav a {
  color: rgba(255, 255, 255, 0.56);
  text-decoration: none;
  font-size: 0.84rem;
  transition: color 0.2s ease;
}

.legal-footer__nav a:hover {
  color: rgba(127, 247, 234, 0.88);
}

.legal-footer--landing {
  margin-top: 34px;
}

.legal-footer--app .legal-footer__inner {
  width: auto;
  margin: 0 32px 24px;
  padding-top: 18px;
}

.landing-card-grid,
.landing-step-list,
.landing-faq-accordion {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.landing-card-grid--three,
.landing-step-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.landing-info-card,
.landing-feature-panel,
.landing-step-item,
.landing-faq-item {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.012));
  transition:
    transform 0.28s ease,
    border-color 0.28s ease,
    background 0.28s ease,
    box-shadow 0.28s ease;
}

.landing-info-card::before,
.landing-feature-panel::before,
.landing-step-item::before,
.landing-faq-item::before {
  content: "";
  position: absolute;
  inset: auto -20% -60% auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.12), transparent 70%);
  pointer-events: none;
}

.landing-info-card:hover,
.landing-feature-panel:hover,
.landing-step-item:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--accent-rgb), 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.016));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 18px 40px rgba(0, 0, 0, 0.18);
}

.landing-info-card__index,
.landing-step-item__label {
  color: #7feee0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.landing-info-card h3,
.landing-feature-panel h3,
.landing-step-item h3,
.landing-faq-item h3 {
  margin: 14px 0 10px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.landing-info-card p,
.landing-feature-panel p,
.landing-step-item p,
.landing-faq-item p {
  margin: 0;
  color: rgba(255, 255, 255, 0.54);
  line-height: 1.58;
}

.landing-feature-panel ul {
  margin: 0;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.6;
}

.landing-feature-panel li + li {
  margin-top: 8px;
}

.landing-feature-panel {
  min-height: 220px;
  padding: 28px;
}

.landing-step-list {
  counter-reset: steps;
}

.landing-step-item {
  min-height: 248px;
  padding: 28px;
}

.landing-step-item__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.landing-step-item__label::before {
  content: "";
  width: 26px;
  height: 1px;
  background: rgba(var(--accent-rgb), 0.82);
  display: inline-block;
}

.landing-faq-accordion {
  gap: 14px;
}

.landing-faq-item {
  padding: 0;
}

.landing-faq-item summary {
  position: relative;
  display: block;
  padding: 22px 58px 22px 24px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.16rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  list-style: none;
  cursor: pointer;
}

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

.landing-faq-item summary::before,
.landing-faq-item summary::after {
  content: "";
  position: absolute;
  right: 24px;
  top: 50%;
  width: 14px;
  height: 1.5px;
  background: rgba(var(--accent-rgb), 0.92);
  transform: translateY(-50%);
  transition: transform 0.24s ease, opacity 0.24s ease;
}

.landing-faq-item summary::after {
  transform: translateY(-50%) rotate(90deg);
}

.landing-faq-item[open] summary::after {
  opacity: 0;
  transform: translateY(-50%) rotate(90deg) scaleX(0.3);
}

.landing-faq-item__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s ease;
}

.landing-faq-item[open] .landing-faq-item__body {
  grid-template-rows: 1fr;
}

.landing-faq-item__body p {
  overflow: hidden;
  padding: 0 24px 22px;
}

.auth-modal[hidden] {
  display: none;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
}

.auth-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(3, 6, 8, 0.74);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.auth-modal__dialog {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(520px, calc(100vw - 32px));
  margin: min(8vh, 64px) auto;
  padding: 28px;
  border: 1px solid rgba(160, 226, 216, 0.16);
  border-radius: 28px;
  background:
    radial-gradient(circle at 84% 12%, rgba(110, 219, 205, 0.14), transparent 24%),
    linear-gradient(180deg, rgba(42, 63, 61, 0.94) 0%, rgba(15, 20, 22, 0.985) 24%, rgba(11, 15, 17, 1) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 32px 90px rgba(0, 0, 0, 0.34);
}

.auth-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(160, 226, 216, 0.14);
  border-radius: 999px;
  background: rgba(18, 24, 26, 0.38);
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
}

.auth-modal__panel {
  display: grid;
  gap: 18px;
}

.auth-modal__eyebrow {
  margin: 0;
  color: #7feee0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.auth-modal__title {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.5rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
}

.auth-modal__text {
  margin: -6px 0 0;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.98rem;
  line-height: 1.55;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-field {
  display: grid;
  gap: 8px;
}

.auth-field span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.auth-field input {
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  outline: none;
}

.auth-field input:focus {
  border-color: rgba(var(--accent-rgb), 0.34);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.12);
}

.auth-consent {
  position: relative;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 10px 24px rgba(0, 0, 0, 0.14);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.84rem;
  line-height: 1.55;
  cursor: pointer;
}

.auth-consent input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.auth-consent__text {
  display: block;
}

.auth-consent:hover .step-share-toggle__control {
  border-color: rgba(var(--accent-rgb), 0.3);
}

.auth-consent input:focus-visible + .step-share-toggle__control {
  outline: 2px solid rgba(var(--accent-rgb), 0.36);
  outline-offset: 3px;
}

.auth-consent input:checked + .step-share-toggle__control {
  border-color: rgba(var(--accent-rgb), 0.56);
  background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.28), rgba(var(--accent-rgb), 0.14));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 10px 24px rgba(var(--accent-rgb), 0.18);
}

.auth-consent input:checked + .step-share-toggle__control .step-share-toggle__check {
  border-color: rgba(255, 255, 255, 0.96);
}

.auth-consent a,
.auth-modal__switch-button {
  color: var(--accent);
}

.step-share-toggle {
  position: relative;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.88rem;
  line-height: 1.5;
}

.step-share-toggle--inline {
  margin-top: 0;
  min-height: 52px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 10px 24px rgba(0, 0, 0, 0.14);
  cursor: pointer;
}

.step-share-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.step-share-toggle__control {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 6px 16px rgba(0, 0, 0, 0.16);
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.step-share-toggle__check {
  width: 10px;
  height: 6px;
  border-left: 2px solid transparent;
  border-bottom: 2px solid transparent;
  transform: rotate(-45deg) translateY(-1px);
  transition: border-color 160ms ease;
}

.step-share-toggle__label {
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.step-share-toggle:hover .step-share-toggle__control {
  border-color: rgba(var(--accent-rgb), 0.3);
}

.step-share-toggle input:focus-visible + .step-share-toggle__control {
  outline: 2px solid rgba(var(--accent-rgb), 0.36);
  outline-offset: 3px;
}

.step-share-toggle input:checked + .step-share-toggle__control {
  border-color: rgba(var(--accent-rgb), 0.56);
  background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.28), rgba(var(--accent-rgb), 0.14));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 10px 24px rgba(var(--accent-rgb), 0.18);
}

.step-share-toggle input:checked + .step-share-toggle__control .step-share-toggle__check {
  border-color: rgba(255, 255, 255, 0.96);
}

.step-share-toggle__status {
  min-height: 20px;
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.82rem;
}

.step-share-toggle__status--footer {
  margin-top: 10px;
}

.step-share-toggle__status[data-tone="success"] {
  color: var(--accent);
}

.step-share-toggle__status a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.step-share-toggle__status a:hover {
  opacity: 0.88;
}

.step-share-toggle__status[data-tone="error"] {
  color: var(--danger);
}

.auth-form__status {
  min-height: 22px;
  margin: 0;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.84rem;
}

.auth-form__status[data-tone="error"] {
  color: var(--danger);
}

.auth-form__status[data-tone="success"] {
  color: var(--accent);
}

.auth-form__submit {
  width: 100%;
  min-height: 54px;
}

.auth-modal__switch {
  margin: 0;
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.9rem;
}

.auth-modal__switch-button {
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

body.auth-modal-open {
  overflow: hidden;
}

@keyframes landing-section-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.app-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  height: 100vh;
  padding: var(--space-6) var(--space-4);
  border-right: 1px solid var(--line-soft);
  background:
    linear-gradient(180deg, rgba(15, 18, 22, 0.88), rgba(10, 12, 15, 0.78)),
    rgba(9, 11, 13, 0.74);
  backdrop-filter: saturate(160%) blur(22px);
}

.brand {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  padding: var(--space-2) var(--space-2) var(--space-4);
  color: var(--text);
  text-decoration: none;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border-radius: 18px;
  background: transparent;
  box-shadow:
    0 0 28px rgba(var(--accent-rgb), 0.14);
}

.brand__logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(var(--accent-rgb), 0.18));
}

.brand h1,
.hero h2,
.stage h3,
.card h4,
.panel p {
  margin-top: 0;
}

.brand h1 {
  margin-bottom: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.eyebrow,
.stage__eyebrow,
.panel__label {
  margin: 0 0 var(--space-2);
  font-family: var(--font-display);
  color: var(--text-faint);
  font-size: var(--type-label-size);
  line-height: var(--type-label-line);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.panel {
  padding: var(--panel-padding);
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.panel__hint {
  margin: var(--space-3) 0 0;
  font-family: var(--font-ui);
  color: var(--text-muted);
  font-size: var(--type-caption-size);
  line-height: var(--type-caption-line);
}

#format-note.panel__hint {
  margin-top: 10px;
}

.process-panel {
  margin-top: auto;
}

.account-panel {
  background:
    radial-gradient(circle at 82% 18%, rgba(var(--accent-rgb), 0.12), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.018));
}

.account-card {
  display: grid;
  gap: 14px;
}

.account-card > span,
.account-card > strong {
  display: none;
}

.account-card__top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.account-avatar-wrap {
  position: relative;
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
}

.account-avatar {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  border-radius: 18px;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(103, 219, 207, 0.26), rgba(41, 92, 86, 0.38));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 30px rgba(0, 0, 0, 0.18);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.account-avatar.has-image {
  color: transparent;
  text-indent: -9999px;
}

.account-avatar-add {
  position: absolute;
  right: -4px;
  bottom: -4px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.95), rgba(46, 152, 142, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 8px 18px rgba(0, 0, 0, 0.22);
  color: #091012;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
}

.account-avatar-add:hover {
  transform: translateY(-1px);
}

.account-card__identity {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.account-card__identity-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.account-card__identity strong {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  min-width: 0;
}

.account-logout {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.72);
}

.account-logout img {
  width: 14px;
  height: 14px;
  object-fit: contain;
  opacity: 0.74;
}

.account-logout:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.account-logout:hover img {
  opacity: 1;
}

.account-card__identity span {
  color: var(--text-muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  display: none;
}

.account-card__identity span:not([hidden]) {
  display: block;
}

.account-card__plan {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.028);
}

.account-card__plan-label {
  color: var(--text-muted);
  font-size: calc(0.74rem - 3px);
  letter-spacing: 0.02em;
  text-transform: none;
}

.account-card__plan-name {
  color: var(--text);
  font-family: var(--font-display);
  font-size: calc(1.08rem + 4px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.account-card__plan-usage {
  color: rgba(255, 255, 255, 0.72);
  font-size: calc(0.84rem - 1px);
}

.account-card__button {
  min-height: 42px;
  width: 100%;
}

.billing-modal[hidden] {
  display: none;
}

.billing-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: hidden;
}

body.billing-modal-open {
  overflow: hidden;
}

.billing-modal__backdrop {
  position: fixed;
  inset: 0;
  border: 0;
  background: rgba(3, 6, 9, 0.84);
  backdrop-filter: blur(12px);
  cursor: pointer;
}

.billing-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  padding: 24px;
  border: 1px solid rgba(var(--accent-rgb), 0.14);
  border-radius: 28px;
  background:
    radial-gradient(circle at 86% 12%, rgba(var(--accent-rgb), 0.12), transparent 24%),
    linear-gradient(180deg, rgba(34, 50, 50, 0.97), rgba(12, 16, 19, 0.985));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
  overflow-y: auto;
  scrollbar-gutter: stable;
  scrollbar-width: none;
}

.billing-modal__dialog::-webkit-scrollbar {
  display: none;
}

.billing-modal__header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.billing-modal__eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.billing-modal__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.5rem);
  letter-spacing: -0.04em;
}

.billing-modal__text {
  margin: 10px 0 0;
  max-width: 640px;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.billing-modal__close {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
}

.billing-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.billing-plan-card {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
}

.billing-plan-card.is-free {
  border-color: rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(20, 22, 25, 0.96), rgba(12, 14, 16, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.015),
    0 14px 34px rgba(0, 0, 0, 0.24);
}

.billing-plan-card.is-free .billing-plan-card__name,
.billing-plan-card.is-free .billing-plan-card__price {
  color: rgba(255, 255, 255, 0.92);
}

.billing-plan-card.is-free .billing-plan-card__summary {
  color: rgba(255, 255, 255, 0.5);
}

.billing-plan-card.is-free .billing-plan-card__list {
  color: rgba(255, 255, 255, 0.56);
}

.billing-plan-card.is-free .billing-plan-card__list li::marker {
  color: rgba(168, 168, 168, 0.9);
}

.billing-plan-card.is-free .billing-plan-card__badge {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.68);
}

.billing-plan-card.is-free .billing-plan-card__button {
  background: linear-gradient(180deg, rgba(186, 186, 186, 0.95) 0%, rgba(114, 114, 114, 0.96) 100%);
  color: #0f1113;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 10px 24px rgba(0, 0, 0, 0.22);
}

.billing-plan-card.is-free .billing-plan-card__button:hover {
  background: linear-gradient(180deg, rgba(210, 210, 210, 0.98) 0%, rgba(132, 132, 132, 0.98) 100%);
}

.billing-plan-card.is-featured {
  border-color: rgba(var(--accent-rgb), 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 20px 50px rgba(0, 0, 0, 0.18);
}

.billing-plan-card__top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.billing-plan-card__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.billing-plan-card__price {
  color: var(--text);
  font-size: calc(1rem + 10px);
  font-weight: 600;
  margin-top: 10px;
}

.billing-plan-card__badge {
  align-self: start;
  padding: 6px 10px;
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.billing-plan-card__summary {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
}

.billing-plan-card__list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  list-style: disc;
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.6;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.billing-plan-card__list li {
  margin: 0;
}

.billing-plan-card__list li::marker {
  color: rgba(var(--accent-rgb), 0.88);
}

.billing-plan-card__button {
  width: 100%;
  min-height: 56px;
  margin-top: auto;
}

.billing-plan-card__button--muted {
  background: linear-gradient(180deg, rgba(235, 235, 235, 0.88) 0%, rgba(156, 156, 156, 0.92) 100%);
  color: #101214;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 10px 24px rgba(0, 0, 0, 0.18);
}

.billing-plan-card__button--muted:hover {
  background: linear-gradient(180deg, rgba(245, 245, 245, 0.92) 0%, rgba(172, 172, 172, 0.96) 100%);
}

.process-list {
  margin: 0;
  padding-left: 18px;
  color: var(--text-muted);
  display: grid;
  gap: var(--space-2);
  line-height: var(--type-body-s-line);
}

.process-list__item {
  padding: 4px 0;
  cursor: pointer;
  transition: color 0.22s ease, transform 0.22s ease;
}

.process-list__item.is-available {
  color: var(--text-soft);
}

.process-list__item.is-active {
  color: var(--text);
  font-weight: 600;
  transform: translateX(3px);
}

.pill,
.upload-button,
.ghost-button,
.primary-button {
  border: 0;
  border-radius: var(--pill);
  cursor: pointer;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease,
    color 0.22s ease,
    opacity 0.22s ease;
}

.pill:disabled,
.upload-button:disabled,
.ghost-button:disabled,
.primary-button:disabled {
  opacity: 0.46;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.pill-stack {
  display: grid;
  gap: 10px;
}

.pill {
  width: 100%;
  min-height: var(--control-height);
  padding: 0 var(--control-padding-x);
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
  text-align: left;
  font-size: var(--type-body-s-size);
  line-height: 1;
}

.pill__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.pill__meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(141, 148, 157, 0.95);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pill__badge {
  padding: 4px 8px;
  border: 1px solid rgba(var(--accent-rgb), 0.14);
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.08);
  color: rgba(180, 255, 246, 0.86);
}

.pill__lock {
  width: 11px;
  height: 11px;
  object-fit: contain;
  opacity: 0.9;
}

.pill:not(.is-locked) .pill__meta {
  opacity: 0;
}

.pill.is-locked {
  color: rgba(194, 199, 205, 0.78);
}

.pill--active {
  border-color: rgba(var(--accent-rgb), 0.34);
  background:
    linear-gradient(135deg, rgba(var(--accent-rgb), 0.28), rgba(var(--accent-strong-rgb), 0.3)),
    rgba(255, 255, 255, 0.05);
  color: var(--text);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 26px rgba(var(--accent-rgb), 0.18);
}

.pill--active .pill__meta {
  opacity: 1;
}

.select {
  width: 100%;
  min-height: var(--control-height);
  padding: 0 46px 0 var(--control-padding-x);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  appearance: none;
  -webkit-appearance: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none'%3E%3Cpath d='M1.25 1.5L7 7.25L12.75 1.5' stroke='%23C8CDD2' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 16px center / 14px 9px no-repeat,
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.02)),
    #191d22;
  color: var(--text);
  outline: none;
  color-scheme: dark;
  cursor: pointer;
  font-size: var(--type-body-s-size);
}

.select option {
  background-color: #191d22;
  color: var(--text);
}

.select option:checked,
.select option:hover {
  background-color: #234C43;
  color: var(--text);
}

.select--resolution-locked option:disabled {
  color: rgba(141, 148, 157, 0.95);
}

.resolution-dropdown,
.format-dropdown {
  position: relative;
}

.resolution-dropdown__trigger,
.format-dropdown__trigger {
  width: 100%;
  min-height: var(--control-height);
  padding: 0 46px 0 var(--control-padding-x);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none'%3E%3Cpath d='M1.25 1.5L7 7.25L12.75 1.5' stroke='%23C8CDD2' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 16px center / 14px 9px no-repeat,
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.02)),
    #191d22;
  color: var(--text);
  cursor: pointer;
  font-size: var(--type-body-s-size);
  text-align: left;
}

.resolution-dropdown.is-open .resolution-dropdown__trigger,
.resolution-dropdown__trigger:hover,
.format-dropdown.is-open .format-dropdown__trigger,
.format-dropdown__trigger:hover {
  border-color: rgba(var(--accent-rgb), 0.34);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.1);
}

.resolution-dropdown__menu,
.format-dropdown__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 8;
  display: grid;
  gap: 0;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0 0 16px 16px;
  background: #1b2026;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.resolution-dropdown__menu[hidden],
.format-dropdown__menu[hidden] {
  display: none;
}

.resolution-dropdown__option,
.format-dropdown__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 24px;
  padding: 4px 12px;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: var(--type-body-s-size);
  text-align: left;
}

.resolution-dropdown__option:hover,
.format-dropdown__option:hover {
  background: rgba(255, 255, 255, 0.04);
}

.resolution-dropdown__option.is-selected,
.format-dropdown__option.is-selected {
  background: rgba(151, 193, 241, 0.9);
  color: #0c1116;
}

.resolution-dropdown__option-meta,
.format-dropdown__option-meta {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  color: rgba(141, 148, 157, 0.95);
  font-size: 0.68rem;
  letter-spacing: 0.01em;
}

.resolution-dropdown__option-lock,
.format-dropdown__option-lock {
  width: 10px;
  height: 10px;
  object-fit: contain;
  opacity: 0.9;
}

.resolution-dropdown__option:not(.is-locked) .resolution-dropdown__option-meta,
.format-dropdown__option:not(.is-locked) .format-dropdown__option-meta {
  opacity: 0;
}

.resolution-dropdown__option.is-locked,
.format-dropdown__option.is-locked {
  color: rgba(141, 148, 157, 0.95);
}

.resolution-dropdown__option.is-locked.is-selected,
.format-dropdown__option.is-locked.is-selected {
  color: #0c1116;
}

.session-card__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: var(--space-2);
  font-family: var(--font-ui);
  color: var(--text-muted);
  font-size: var(--type-body-s-size);
  line-height: var(--type-body-s-line);
}

.session-card__row strong {
  color: var(--text-soft);
  text-align: right;
}

.status--ready {
  color: var(--accent);
}

.workspace {
  padding: var(--space-5) var(--space-7) var(--space-7);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-4);
  align-items: start;
  margin-bottom: var(--space-5);
  padding: 30px 32px;
  border: 1px solid var(--line);
  border-radius: 38px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
    radial-gradient(circle at 78% 22%, rgba(var(--accent-rgb), 0.2), transparent 22%),
    linear-gradient(135deg, rgba(var(--accent-strong-rgb), 0.24), transparent 38%);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06), transparent 70%);
  filter: blur(10px);
}

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

.hero__tips {
  position: absolute;
  right: 26px;
  bottom: 22px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
  z-index: 2;
  max-width: min(760px, 68%);
}

.hero-tip {
  position: relative;
}

.hero-tip__trigger {
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-size: calc(0.88rem - 2px);
  line-height: 1.2;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  cursor: pointer;
}

.hero-tip__trigger:hover {
  color: var(--text);
}

.hero-tip__popup {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  width: min(380px, 44vw);
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(10, 14, 18, 0.96);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.3);
  color: rgba(255, 255, 255, 0.82);
  font-size: calc(0.84rem - 2px);
  line-height: 1.5;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.hero-tip__popup::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 100%;
  width: 12px;
  height: 12px;
  background: rgba(10, 14, 18, 0.96);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transform: rotate(45deg) translateY(-7px);
}

.hero-tip:hover .hero-tip__popup,
.hero-tip:focus-within .hero-tip__popup {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.hero-tip__popup p {
  margin: 0;
}

.hero-tip__popup--list {
  width: min(420px, 50vw);
}

.hero-tip__popup--list ul {
  margin: 8px 0;
  padding-left: 18px;
}

.hero-tip__popup--list li {
  margin: 0 0 4px;
}

@media (max-width: 1100px) {
  .hero__tips {
    right: 22px;
    bottom: 18px;
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 62%;
  }

  .hero-tip__popup,
  .hero-tip__popup--list {
    width: min(360px, calc(100vw - 80px));
  }
}

.hero h2 {
  max-width: none;
  margin: 0 0 var(--space-2);
  font-family: var(--font-display);
  font-size: var(--type-display-size);
  font-weight: 600;
  line-height: var(--type-display-line);
  letter-spacing: -0.04em;
}

.hero__text,
.stage__text,
.placeholder span,
.card__text,
.field span,
.lightbox__caption {
  font-family: var(--font-ui);
  color: var(--text-muted);
}

.hero__text {
  max-width: 82ch;
  margin: 0;
  font-size: clamp(0.95rem, 1.02vw, 1.08rem);
  line-height: 1.42;
  letter-spacing: -0.015em;
  white-space: normal;
}

.primary-button,
.upload-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--control-height);
  padding: 0 18px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.primary-button {
  background: var(--accent-gradient);
  color: #f3fbf8;
  border: 1px solid rgba(130, 255, 240, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 10px 22px rgba(var(--accent-strong-rgb), 0.18);
}

.ghost-button.generate-button {
  border: 1px solid rgba(130, 255, 240, 0.18);
  background: var(--accent-gradient);
  color: #f3fbf8;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 10px 22px rgba(var(--accent-strong-rgb), 0.18);
}

.upload-button {
  flex: 0 0 auto;
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid var(--line-soft);
}

.ghost-button {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-soft);
  border: 1px solid var(--line-soft);
}

.step-advance-button {
  border: 1px solid transparent;
  color: var(--text);
  background:
    linear-gradient(#14171b, #14171b) padding-box,
    var(--accent-gradient-soft) border-box;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 12px 30px rgba(var(--accent-rgb), 0.14);
}

.stage {
  position: relative;
  margin-bottom: var(--space-4);
  padding: var(--space-6);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.stage:nth-of-type(2) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01)),
    linear-gradient(135deg, rgba(var(--accent-strong-rgb), 0.16), transparent 38%);
}

.stage:nth-of-type(3) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01)),
    linear-gradient(135deg, rgba(var(--accent-rgb), 0.09), transparent 32%);
}

.stage::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.stage__header {
  display: flex;
  justify-content: space-between;
  gap: var(--space-5);
  margin-bottom: var(--space-5);
}

.stage__title-group {
  display: grid;
  gap: var(--space-2);
}

.stage h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--type-h1-size);
  font-weight: 590;
  line-height: var(--type-h1-line);
  letter-spacing: -0.045em;
}

.stage__text {
  max-width: 68ch;
  margin: 0;
  font-size: var(--type-body-m-size);
  line-height: var(--type-body-m-line);
}

#step-1 .stage__text {
  max-width: none;
  font-size: var(--type-body-m-size);
  line-height: var(--type-body-m-line);
}

.stage__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: start;
  justify-content: flex-end;
}

.meta-chip {
  padding: 8px 12px;
  font-family: var(--font-ui);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-soft);
  font-size: var(--type-caption-size);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.stage__grid {
  display: grid;
  gap: var(--space-4);
}

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

#step-1 .stage__grid--double {
  align-items: stretch;
}

#step-1 .stage__grid--double > .card {
  min-height: 520px;
}

#step-1 .stage__grid--double > .card .dropzone {
  flex: 1;
  min-height: 380px;
}

.stage__grid--triple {
  grid-template-columns: 1fr 1fr 1.08fr;
}

#step-2 .stage__grid--triple {
  align-items: stretch;
  gap: var(--space-4);
}

#step-2 .stage__grid--triple > .card {
  min-height: 404px;
}

#step-2 .stage__grid--triple > .card .dropzone,
#step-2 .stage__grid--triple > .card .grid-preview {
  flex: 1;
  min-height: 252px;
}

#step-2 {
  padding: var(--space-5);
}

#step-2 .stage__header {
  margin-bottom: var(--space-4);
}

#step-2 h3 {
  font-size: var(--type-h2-size);
}

#step-2 .stage__text {
  max-width: none;
  font-size: var(--type-body-m-size);
  line-height: var(--type-body-m-line);
}

#step-2 .card {
  gap: var(--space-3);
  padding: var(--card-padding);
}

#step-2 .card h4 {
  font-size: var(--type-h3-size);
}

#step-2 .stage__footer {
  margin-top: var(--space-4);
}

#step-3 .stage__grid--triple {
  align-items: stretch;
  gap: var(--space-4);
}

#step-3 .stage__grid--triple > .card {
  min-height: 404px;
}

#step-3 .stage__grid--triple > .card .dropzone,
#step-3 .stage__grid--triple > .card .grid-preview,
#step-3 .stage__grid--triple > .card .mini-canvas {
  flex: 1;
  min-height: 252px;
}

#step-3 {
  padding: var(--space-5);
}

#step-3 .stage__header {
  margin-bottom: var(--space-4);
}

#step-3 h3 {
  font-size: var(--type-h2-size);
}

#step-3 .stage__text {
  max-width: none;
  font-size: var(--type-body-m-size);
  line-height: var(--type-body-m-line);
}

#step-3 .card {
  gap: var(--space-3);
  padding: var(--card-padding);
}

#step-3 .card h4 {
  font-size: var(--type-h3-size);
}

#step-3 .stage__footer {
  margin-top: var(--space-4);
}

body.format-single #step-2,
body.format-single #step-3 {
  padding: var(--space-4);
}

body.format-single #step-2 .stage__header,
body.format-single #step-3 .stage__header {
  margin-bottom: var(--space-3);
}

body.format-single #step-2 .stage__grid--triple,
body.format-single #step-3 .stage__grid--triple {
  gap: var(--space-3);
}

body.format-single #step-2 .stage__grid--triple > .card,
body.format-single #step-3 .stage__grid--triple > .card {
  min-height: 404px;
}

body.format-single #step-2 .stage__grid--triple > .card .dropzone,
body.format-single #step-2 .stage__grid--triple > .card .grid-preview,
body.format-single #step-2 .stage__grid--triple > .card .mini-canvas,
body.format-single #step-3 .stage__grid--triple > .card .dropzone,
body.format-single #step-3 .stage__grid--triple > .card .grid-preview,
body.format-single #step-3 .stage__grid--triple > .card .mini-canvas {
  min-height: 252px;
}

body.format-single #step-2 .grid-preview,
body.format-single #step-3 .grid-preview,
body.format-single #step-2 .grid-preview--mini,
body.format-single #step-3 .grid-preview--mini {
  min-height: 252px;
}

body.format-single #step-2 .grid-preview--single > .grid-tile,
body.format-single #step-3 .grid-preview--single > .grid-tile {
  min-height: 252px;
}

body.format-single #step-2 .stage__footer,
body.format-single #step-3 .stage__footer {
  margin-top: var(--space-4);
}

.card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  min-width: 0;
  padding: var(--card-padding);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 1px 0 rgba(255, 255, 255, 0.02);
}

.prompt-card {
  margin-top: 18px;
}

.card--result {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
}

.stage__footer {
  display: flex;
  justify-content: flex-end;
  margin-top: var(--space-5);
}

.stage__footer--split {
  justify-content: space-between;
  gap: 12px;
}

.stage__footer-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.card__text {
  margin: 0;
  line-height: 1.62;
}

.card__top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: nowrap;
}

.card h4 {
  margin-bottom: 0;
  font-family: var(--font-display);
  font-size: var(--type-h3-size);
  font-weight: 590;
  letter-spacing: -0.01em;
}

.badge {
  padding: 7px 10px;
  font-family: var(--font-display);
  border: 1px solid rgba(var(--accent-rgb), 0.24);
  border-radius: var(--pill);
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.result-note {
  margin: 0;
  min-height: 24px;
  font-family: var(--font-ui);
  color: var(--text-muted);
  font-size: var(--type-body-s-size);
  line-height: var(--type-body-s-line);
}

.result-note:empty {
  display: none;
}

.result-note[data-tone="success"] {
  color: var(--accent);
}

.result-note[data-tone="error"] {
  color: var(--danger);
}

.file-input {
  display: none;
}

.result-note--subtle {
  color: var(--text-faint);
}

.dropzone,
.mini-canvas {
  position: relative;
  overflow: hidden;
  min-height: 340px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 22px;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.035), transparent 45%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.012)),
    #101317;
}

.dropzone::before,
.mini-canvas::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  pointer-events: none;
}

.dropzone--result {
  min-height: 460px;
}

.dropzone img {
  position: absolute;
  inset: 16px;
  width: calc(100% - 32px);
  height: calc(100% - 32px);
  object-fit: contain;
  object-position: center;
  border-radius: 16px;
  opacity: 0;
  cursor: zoom-in;
  transition: opacity 0.28s ease, transform 0.4s ease, filter 0.3s ease;
}

#identity-preview {
  filter: contrast(1.03) saturate(1.03);
}

.dropzone.has-image img {
  opacity: 1;
}

.dropzone.has-image .placeholder {
  opacity: 0;
  pointer-events: none;
}

.placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
}

.placeholder::before {
  content: "";
  width: 88px;
  height: 88px;
  margin-inline: auto;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
    url("/assets/icons/user-icon.svg") center / 52px 52px no-repeat;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 10px 30px rgba(0, 0, 0, 0.18);
}

#outfit-placeholder::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
    url("/assets/icons/outfit-icon.svg") center / 52px 52px no-repeat;
}

#location-placeholder::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
    url("/assets/icons/location-icon.svg") center / 52px 52px no-repeat;
}

.placeholder strong {
  max-width: 18ch;
  margin-inline: auto;
  font-family: var(--font-display);
  font-size: var(--type-h2-size);
  font-weight: 590;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-soft);
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-family: var(--font-ui);
  font-size: 0.83rem;
}

.field textarea {
  width: 100%;
  min-height: 110px;
  padding: 15px 16px;
  font-family: var(--font-ui);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.028);
  color: var(--text);
  resize: vertical;
  line-height: 1.6;
  outline: none;
}

.field textarea:focus,
.select:focus {
  border-color: rgba(var(--accent-rgb), 0.34);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.14);
}

.grid-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  min-height: 460px;
}

#step-2 .grid-preview {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-2);
  min-height: 252px;
}

#step-3 .grid-preview {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-2);
  min-height: 252px;
}

.grid-preview--single {
  display: block;
}

.grid-preview--mini {
  min-height: 252px;
}

#step-3 .grid-preview--mini,
#step-3 .mini-canvas {
  min-height: 252px;
}

.grid-tile {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.012)),
    linear-gradient(180deg, #15191e, #0c0f13);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
}

#step-2 .grid-tile {
  aspect-ratio: 4 / 5;
  border-radius: 18px;
}

#step-2 .grid-tile__label {
  left: 8px;
  bottom: 8px;
  padding: 5px 8px;
  font-size: 0.64rem;
}

#step-3 .grid-tile {
  aspect-ratio: 4 / 5;
  border-radius: 18px;
}

.grid-preview--single > .grid-tile {
  width: 100%;
  max-width: none;
  aspect-ratio: auto;
  min-height: 252px;
  height: 100%;
  justify-self: stretch;
  align-self: stretch;
}

.grid-preview--single > .grid-tile .grid-tile__image {
  background-position: center;
  background-size: contain;
}

body.format-single #step-2 .dropzone,
body.format-single #step-2 .mini-canvas,
body.format-single #step-2 .dropzone--result,
body.format-single #step-2 .grid-preview,
body.format-single #step-2 .grid-preview--mini,
body.format-single #step-3 .dropzone,
body.format-single #step-3 .mini-canvas,
body.format-single #step-3 .dropzone--result,
body.format-single #step-3 .grid-preview,
body.format-single #step-3 .grid-preview--mini {
  min-height: 252px;
}

body.format-single #step-2 .grid-preview--single > .grid-tile,
body.format-single #step-3 .grid-preview--single > .grid-tile {
  min-height: 252px;
}

#step-3 .grid-tile__label {
  left: 8px;
  bottom: 8px;
  padding: 5px 8px;
  font-size: 0.64rem;
}

.grid-tile__image {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  filter: saturate(1.04) contrast(1.03);
  transition: transform 0.35s ease, filter 0.35s ease;
}

.grid-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 36%, rgba(0, 0, 0, 0.42)),
    linear-gradient(180deg, transparent 54%, rgba(0, 0, 0, 0.24));
}

.grid-tile__label {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 1;
  padding: 6px 10px;
  font-family: var(--font-display);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--pill);
  background: rgba(6, 7, 8, 0.5);
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.grid-tile--interactive {
  cursor: zoom-in;
}

.grid-tile--interactive:hover .grid-tile__image {
  transform: scale(1.035);
  filter: saturate(1.08) contrast(1.05);
}

.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(3, 4, 5, 0.82);
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.lightbox__dialog {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  width: min(92vw, 920px);
  margin: 4vh auto;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(17, 21, 25, 0.92);
  box-shadow: var(--shadow-lg);
  backdrop-filter: saturate(140%) blur(18px);
}

.lightbox__dialog img {
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 18px;
  background: #0d1013;
}

.lightbox__close {
  justify-self: end;
  width: 42px;
  height: 42px;
  font-family: var(--font-display);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

.lightbox__caption {
  margin: 0;
}

.dropzone.is-dragover {
  border-color: rgba(var(--accent-rgb), 0.34);
  background:
    radial-gradient(circle at top, rgba(var(--accent-rgb), 0.16), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
    #101317;
}

.loading-overlay[hidden],
.grid-tile__loading[hidden] {
  display: none;
}

.loading-overlay,
.grid-tile__loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-content: center;
  gap: 12px;
  padding: 18px;
  text-align: center;
  background: rgba(6, 8, 10, 0.6);
  backdrop-filter: blur(8px);
}

.loading-overlay__spinner {
  width: 42px;
  height: 42px;
  margin: 0 auto;
  border: 3px solid rgba(255, 255, 255, 0.14);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

.loading-overlay__percent {
  font-family: var(--font-display);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.grid-tile__loading .loading-overlay__spinner {
  width: 34px;
  height: 34px;
}

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

.primary-button:hover,
.upload-button:hover,
.ghost-button:hover,
.pill:hover {
  transform: translateY(-1px);
}

.primary-button:hover {
  background: linear-gradient(180deg, #72e0d3 0%, #56cabc 52%, #379d91 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 12px 24px rgba(var(--accent-strong-rgb), 0.2);
}

.ghost-button.generate-button:hover {
  background: linear-gradient(180deg, #72e0d3 0%, #56cabc 52%, #379d91 100%);
  border-color: rgba(130, 255, 240, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 12px 24px rgba(var(--accent-strong-rgb), 0.2);
}

.step-advance-button:hover {
  background:
    linear-gradient(#171b20, #171b20) padding-box,
    linear-gradient(135deg, rgba(150, 255, 243, 1), rgba(83, 221, 208, 1) 44%, rgba(26, 75, 68, 1)) border-box;
  border-color: transparent;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 14px 32px rgba(var(--accent-rgb), 0.18);
}

.upload-button:hover,
.ghost-button:hover,
.pill:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: var(--surface-hover);
}

@media (max-width: 1180px) {
  .landing-bg-glow--right {
    right: -260px;
    width: 460px;
    height: 620px;
  }

  .landing-content,
  .landing-topbar,
  .landing-hero-card,
  .legal-footer__inner {
    width: min(1260px, calc(100vw - 64px));
  }

  .landing-card-grid--three,
  .landing-step-list,
  .landing-faq-grid {
    grid-template-columns: 1fr;
  }

  .landing-card-grid--two {
    grid-template-columns: 1fr;
  }

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

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .process-panel {
    margin-top: 0;
  }
}

@media (max-width: 1100px) {
  .landing-topbar,
  .landing-hero-card,
  .landing-content,
  .legal-footer__inner {
    width: min(653px, calc(100vw - 32px));
  }

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

  .stage__header {
    display: grid;
  }

  .stage__meta {
    justify-content: start;
  }

  .stage__grid--double,
  .stage__grid--triple {
    grid-template-columns: 1fr;
  }

  #step-1 .stage__grid--double > .card {
    min-height: auto;
  }

}

@media (max-width: 720px) {
  body.mobile-menu-open {
    overflow: hidden;
  }

  .app-shell .process-panel,
  .app-shell .hero {
    display: none;
  }

  .app-shell .account-panel {
    display: block;
    margin-top: 0;
    order: 1;
  }

  .app-shell .brand {
    order: 0;
  }

  .app-shell .sidebar > .panel:not(.account-panel) {
    order: 2;
  }

  .app-shell .account-panel .panel__label {
    margin-bottom: 10px;
  }

  .app-shell .account-card {
    gap: 12px;
  }

  .app-shell .account-card__top {
    gap: 10px;
  }

  .app-shell .account-avatar-wrap,
  .app-shell .account-avatar {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .app-shell .account-avatar {
    border-radius: 16px;
    font-size: 0.92rem;
  }

  .app-shell .account-avatar-add {
    width: 20px;
    height: 20px;
    right: -3px;
    bottom: -3px;
    font-size: 0.82rem;
  }

  .app-shell .account-card__identity strong {
    font-size: 0.96rem;
  }

  .app-shell .account-logout {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
  }

  .app-shell .account-card__plan {
    padding: 10px 12px;
  }

  .app-shell .account-card__plan-name {
    font-size: 1.05rem;
  }

  .app-shell .account-card__plan-usage {
    font-size: 0.75rem;
  }

  .app-shell .account-card__button {
    min-height: 40px;
  }

  .landing-page {
    padding: 18px 16px 40px;
  }

  .landing-topbar {
    display: grid;
    grid-template-columns: auto auto;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    min-height: 68px;
    padding: 0 16px;
  }

  .landing-topbar,
  .landing-hero-card,
  .landing-content,
  .legal-footer__inner {
    width: min(653px, calc(100vw - 32px));
  }

  .legal-footer__inner {
    padding-top: 18px;
    display: grid;
    gap: 12px;
    justify-content: stretch;
  }

  .legal-footer__nav {
    justify-content: start;
    gap: 10px 14px;
  }

  .legal-footer__nav a {
    font-size: 0.78rem;
  }

  .legal-footer--app .legal-footer__inner {
    margin: 0 16px 20px;
  }

  .landing-topbar__nav,
  .landing-topbar__actions {
    display: none;
  }

  .landing-topbar__brand {
    z-index: 2;
  }

  .landing-topbar__burger {
    position: relative;
    z-index: 2;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(160, 226, 216, 0.16);
    border-radius: 999px;
    background: rgba(18, 24, 26, 0.38);
    cursor: pointer;
  }

  .landing-topbar__burger span {
    width: 16px;
    height: 1.5px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.88);
    border-radius: 999px;
  }

  .landing-mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 5;
    display: grid;
    align-content: start;
    gap: 16px;
    padding: 28px 16px 20px;
    border: 0;
    border-radius: 0;
    background:
      linear-gradient(180deg, rgba(24, 38, 38, 0.985) 0%, rgba(13, 18, 20, 0.995) 100%);
    backdrop-filter: blur(14px);
  }

  .landing-mobile-menu[hidden] {
    display: none;
  }

  .landing-mobile-menu::before {
    content: "";
    position: absolute;
    top: 6px;
    left: 16px;
    right: 16px;
    bottom: auto;
    height: 430px;
    border: 1px solid rgba(160, 226, 216, 0.12);
    border-radius: 20px;
    background:
      radial-gradient(circle at 84% 16%, rgba(110, 219, 205, 0.12), transparent 24%),
      linear-gradient(180deg, rgba(41, 61, 60, 0.94) 0%, rgba(15, 20, 22, 0.98) 24%, rgba(11, 15, 17, 1) 100%);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.03),
      0 18px 40px rgba(0, 0, 0, 0.24);
  }

  .landing-mobile-menu__nav,
  .landing-mobile-menu__actions {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 14px;
  }

  .landing-mobile-menu__topbar {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 20px 0;
  }

  .landing-mobile-menu__brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    text-decoration: none;
  }

  .landing-mobile-menu__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 16px;
    border: 1px solid rgba(160, 226, 216, 0.14);
    border-radius: 999px;
    background: rgba(18, 24, 26, 0.38);
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
  }

  .landing-mobile-menu__nav {
    padding: 10px 20px 0;
  }

  .landing-mobile-menu__nav a {
    color: rgba(255, 255, 255, 0.86);
    text-decoration: none;
    font-size: 1.08rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 8px 0;
  }

  .landing-mobile-menu__actions {
    margin-top: 2px;
    padding: 0 20px;
  }

  .landing-mobile-menu__actions .landing-topbar__button {
    width: 100%;
    min-width: 0;
  }

  .landing-hero-card {
    padding: 30px 12px 14px;
  }

  .billing-modal__dialog {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    padding: 18px;
    border-radius: 22px;
  }

  .billing-modal__header {
    align-items: start;
  }

  .billing-plan-grid {
    grid-template-columns: 1fr;
  }

  .auth-modal__dialog {
    width: calc(100vw - 24px);
    margin: 12px auto;
    padding: 22px 18px 18px;
    border-radius: 22px;
  }

  .auth-modal__close {
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
  }

  .auth-modal__title {
    font-size: clamp(1.7rem, 8vw, 2.1rem);
  }

  .landing-section {
    padding: 22px 18px;
  }

  .landing-section h2 {
    font-size: clamp(1.7rem, 7vw, 2.2rem);
  }

  .landing-features-title span,
  .landing-faq-title span {
    white-space: nowrap;
  }

  .landing-feature-panel,
  .landing-step-item,
  .landing-info-card {
    min-height: 0;
    padding: 22px 18px;
  }

  .landing-faq-item summary {
    padding: 18px 48px 18px 18px;
    font-size: 1rem;
  }

  .landing-faq-item__body p {
    padding: 0 18px 18px;
  }

  .landing-hero-panel h1 {
    font-size: clamp(2rem, 9.2vw, 2.7rem);
  }

  .landing-hero-panel__text {
    font-size: 0.92rem;
  }

  .landing-gallery {
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
    gap: 14px;
    min-height: 0;
    margin-top: 22px;
    padding: 4px 2px 8px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .landing-gallery--desktop {
    display: none;
  }

  .landing-gallery--mobile {
    display: flex;
  }

  .landing-gallery::-webkit-scrollbar {
    display: none;
  }

  .landing-gallery-controls {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
  }

  .landing-gallery-controls__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(160, 226, 216, 0.16);
    border-radius: 999px;
    background: rgba(18, 24, 26, 0.52);
    color: var(--text);
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  }

  .landing-gallery-controls__button span {
    font-size: 1rem;
    line-height: 1;
  }

  .landing-gallery__item--left,
  .landing-gallery__item--right,
  .landing-gallery__item--center {
    flex: 0 0 calc(100vw - 56px);
    width: calc(100vw - 56px);
    height: auto;
    margin: 0;
    aspect-ratio: 4 / 5;
    scroll-snap-align: center;
  }

  body::before,
  body::after {
    display: none;
  }

  .workspace {
    padding: 16px;
  }

  .sidebar {
    padding: 16px;
  }

  .hero,
  .stage,
  .card {
    padding: 18px;
  }

  .hero {
    border-radius: 28px;
  }

  .hero h2 {
    font-size: clamp(1.55rem, 6vw, 2.2rem);
    white-space: normal;
  }

  .hero__text {
    font-size: var(--type-body-l-size);
    line-height: var(--type-body-l-line);
    white-space: normal;
  }

  .grid-preview {
    gap: 8px;
  }

  .grid-tile {
    border-radius: 16px;
  }

  .dropzone,
  .mini-canvas {
    min-height: 280px;
  }

  .dropzone--result,
  .grid-preview {
    min-height: 360px;
  }

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

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

  .primary-button,
  .upload-button,
  .ghost-button {
    width: 100%;
    justify-content: center;
  }

  .stage__footer,
  .stage__footer--split {
    flex-direction: column;
  }

  .stage__footer-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .card__top {
    align-items: start;
    flex-direction: column;
  }
}




