:root {
  --bg: #f4f1e8;
  --bg-soft: #fbf8f2;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-strong: #ffffff;
  --surface-dark: #162033;
  --ink: #182234;
  --muted: #627086;
  --line: rgba(24, 34, 52, 0.1);
  --line-strong: rgba(24, 34, 52, 0.16);
  --brand: #2357ff;
  --brand-deep: #163fbf;
  --brand-ink: #163fbf;
  --accent: #f1b562;
  --mint: #43b99a;
  --danger: #bf4d4a;
  --success: #20905d;
  --shadow-xl: 0 36px 70px rgba(17, 24, 39, 0.12);
  --shadow-lg: 0 22px 48px rgba(17, 24, 39, 0.1);
  --shadow-md: 0 14px 30px rgba(17, 24, 39, 0.08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --passport-scan-duration: 3500ms;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  font-family: "Manrope", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 8% 6%, rgba(241, 181, 98, 0.22), transparent 24%),
    radial-gradient(circle at 82% 0%, rgba(35, 87, 255, 0.16), transparent 30%),
    radial-gradient(circle at 100% 38%, rgba(67, 185, 154, 0.11), transparent 24%),
    linear-gradient(180deg, #fbf8f1 0%, #f2efe6 100%);
}

a,
button,
select,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
}

img {
  max-width: 100%;
}

.page-shell {
  width: min(1440px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 24px 0 64px;
}

.topbar {
  position: sticky;
  top: 14px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 22px;
  margin-bottom: 24px;
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  box-shadow: var(--shadow-md);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 50%;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  border-radius: 50%;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong,
.brand {
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-copy strong {
  font-size: 1rem;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  min-height: 44px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(24, 34, 52, 0.08);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
}

.lang-switch select {
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 800;
}

.topnav a,
.topbar-cta,
.hero-secondary {
  text-decoration: none;
}

.topnav a {
  color: var(--ink);
  opacity: 0.8;
  font-weight: 700;
  font-size: 0.95rem;
  transition: opacity 180ms ease, transform 180ms ease;
}

.topnav a:hover,
.topnav a:focus-visible {
  opacity: 1;
  transform: translateY(-1px);
}

.topbar-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
  font-weight: 800;
  box-shadow: 0 14px 24px rgba(35, 87, 255, 0.22);
}

.hero {
  position: relative;
  display: grid;
  gap: 28px;
  padding: 34px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(251, 248, 243, 0.9)),
    rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto -14% 12% auto;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(35, 87, 255, 0.1), transparent 68%);
  pointer-events: none;
}

.hero-header,
.hero-layout,
.hero-aside,
.panel,
.requirements,
.guide {
  position: relative;
  z-index: 1;
}

.eyebrow,
.story-kicker,
.process-kicker,
.checkout-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  font-weight: 800;
}

.eyebrow,
.story-kicker,
.process-kicker,
.checkout-kicker {
  color: var(--brand-deep);
}

.hero h1,
.section-heading h2,
.panel h2,
.story-showcase h2,
.hero-spec-card h2 {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif;
  letter-spacing: -0.05em;
}

.hero h1 {
  max-width: 100%;
  font-size: clamp(2.45rem, 4.7vw, 4.2rem);
  line-height: 1.02;
  margin-top: 10px;
  text-wrap: pretty;
}

.lead {
  max-width: 70ch;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.75;
}

.hero-header {
  display: grid;
  gap: 14px;
}

.hero-reviews {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
}

.hero-review-stars {
  display: inline-flex;
  gap: 4px;
}

.hero-review-stars span {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: linear-gradient(135deg, #12c27b, #07a968);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(360px, 0.86fr);
  gap: 26px;
}

.tool-grid,
.guide {
  margin-top: 24px;
}

.cta-button,
.cta-secondary,
.hero-secondary,
.story-arrow,
.icon-btn,
.widget-head button,
.modal-close {
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    opacity 180ms ease;
}

.cta-button,
.cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 16px;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
}

.cta-button {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
  box-shadow: 0 18px 34px rgba(35, 87, 255, 0.22);
}

.cta-button:hover,
.cta-button:focus-visible,
.cta-secondary:hover,
.cta-secondary:focus-visible,
.hero-secondary:hover,
.hero-secondary:focus-visible,
.story-arrow:hover,
.story-arrow:focus-visible {
  transform: translateY(-1px);
}

.cta-button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
  transform: none;
}

.cta-secondary,
.hero-secondary {
  border: 1px solid rgba(24, 34, 52, 0.12);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.06);
}

.hero-secondary {
  min-height: 52px;
  padding: 0 18px;
  border-radius: 16px;
  font-weight: 800;
}

.hero-aside {
  display: grid;
  gap: 18px;
  align-content: start;
}

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

.hero-side-copy {
  margin: 0;
  color: var(--ink);
  font-size: 1.15rem;
  line-height: 1.55;
}

.hero-upload-panel {
  display: grid;
  gap: 12px;
  padding: 22px;
  border-radius: 28px;
  border: 1px dashed rgba(24, 34, 52, 0.24);
  background: rgba(255, 255, 255, 0.56);
  align-items: center;
}

.hero-upload-title {
  margin: 0;
  text-align: center;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--ink);
}

.hero-upload-actions {
  display: grid;
  justify-items: center;
}

.hero-upload-btn {
  width: min(100%, 340px);
  min-height: 58px;
  background: linear-gradient(135deg, #f5b400, #ffbf1f);
  color: #171717;
  box-shadow: 0 18px 30px rgba(245, 180, 0, 0.22);
}

.story-showcase,
.hero-spec-card,
.panel,
.requirements,
.guide {
  border: 1px solid rgba(255, 255, 255, 0.75);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(252, 249, 244, 0.84));
  box-shadow: var(--shadow-lg);
}

.story-showcase,
.hero-spec-card,
.panel,
.requirements,
.guide {
  border-radius: var(--radius-lg);
}

.story-showcase,
.hero-spec-card {
  padding: 22px;
}

.story-showcase-head,
.panel-heading,
.guide-card-head,
.preview-label-row,
.hero-spec-head,
.process-status-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.story-showcase-head h2,
.panel h2,
.hero-spec-card h2 {
  font-size: clamp(1.35rem, 2vw, 2rem);
  margin-top: 4px;
}

.story-nav {
  display: flex;
  gap: 10px;
}

.story-arrow {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(24, 34, 52, 0.1);
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.story-carousel {
  display: grid;
  min-height: 476px;
  margin-top: 18px;
}

.story-slide {
  display: grid;
  grid-area: 1 / 1;
  grid-template-columns: 1fr;
  grid-template-rows: minmax(338px, 1fr) auto;
  gap: 14px;
  min-height: 476px;
  height: 100%;
  align-content: stretch;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.story-slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.story-visual {
  min-height: 338px;
  height: 100%;
  display: grid;
  align-content: stretch;
  padding: 18px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(35, 87, 255, 0.12), transparent 28%),
    linear-gradient(135deg, #f6f9ff, #fff7ee 85%);
  border: 1px solid rgba(35, 87, 255, 0.08);
  overflow: hidden;
}

.mini-step,
.pose-badge,
.compare-state,
.compare-state-bad,
.spec-chip,
.panel-pill,
.frame-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
}

.mini-step {
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08);
}

.pose-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
  align-items: stretch;
}

.pose-card,
.flow-card,
.compare-card,
.spec-mini-card,
.spec-tile,
.guide-card,
.example-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(24, 34, 52, 0.08);
  box-shadow: 0 16px 28px rgba(17, 24, 39, 0.06);
}

.pose-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  align-content: start;
  padding: 12px;
  border-radius: 22px;
}

.pose-card p,
.story-copy p,
.spec-mini-card span,
.spec-tile span,
.guide-card p,
.panel-subtitle,
.target-line,
.disclaimer,
.process-lead,
.paywall-hint,
.payment-result-message,
.helper-line {
  color: var(--muted);
}

.pose-badge,
.compare-state,
.compare-state-bad,
.spec-chip,
.panel-pill,
.frame-chip {
  min-height: 30px;
  padding: 0 12px;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
}

.pose-badge,
.frame-chip {
  background: rgba(35, 87, 255, 0.1);
  color: var(--brand-deep);
}

.pose-portrait,
.compare-photo,
.guide-portrait,
.example-avatar,
.spec-face-illustration {
  position: relative;
  overflow: hidden;
}

.pose-portrait,
.guide-portrait,
.compare-photo,
.spec-face-illustration {
  background: #fdfefe;
}

.pose-portrait {
  aspect-ratio: 4 / 5;
  min-height: 190px;
  margin: 10px 0 6px;
  border-radius: 18px;
}

.pose-card p {
  margin: 0;
  line-height: 1.45;
}

.pose-portrait img,
.guide-portrait img,
.example-avatar img,
.spec-face-illustration img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.pose-portrait img,
.guide-portrait img {
  object-position: center top;
}

.guide-portrait img,
.example-avatar img {
  object-fit: cover;
  object-position: center 18%;
}

.before-after-panel img {
  object-position: center;
}

.compare-photo img,
.before-after-panel img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.story-copy h3,
.guide-card h3,
.requirement-card h3,
.dos-donts-card h3,
.metrics h3,
.source-preview h3,
.process-status-card h3 {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif;
  font-size: 1.1rem;
  letter-spacing: -0.03em;
}

.story-copy p {
  margin: 8px 0 0;
  line-height: 1.7;
}

.validation-card {
  margin-top: 18px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(191, 77, 74, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 247, 238, 0.96), rgba(255, 252, 247, 0.92));
  box-shadow: 0 16px 28px rgba(191, 77, 74, 0.08);
}

.validation-jump-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(191, 77, 74, 0.18);
  background: rgba(255, 247, 238, 0.94);
  color: #8c302c;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 22px rgba(191, 77, 74, 0.12);
  cursor: pointer;
}

.validation-jump-btn:hover,
.validation-jump-btn:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 244, 233, 0.98);
}

.validation-jump-btn:focus-visible {
  outline: 2px solid rgba(191, 77, 74, 0.26);
  outline-offset: 3px;
}

.validation-lead {
  margin: 10px 0 0;
  color: rgba(24, 34, 52, 0.82);
  font-size: 0.98rem;
  line-height: 1.65;
  font-weight: 700;
}

.validation-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.validation-actions {
  margin-top: 14px;
}

.validation-actions .cta-secondary {
  width: 100%;
}

.validation-actions .new-process-btn {
  border-color: rgba(15, 118, 110, 0.22);
  background: linear-gradient(135deg, #14b8a6, #0f766e);
  color: #ffffff;
  box-shadow: 0 18px 34px rgba(15, 118, 110, 0.24);
}

.validation-actions .new-process-btn:hover,
.validation-actions .new-process-btn:focus-visible {
  background: linear-gradient(135deg, #19c7b3, #115e59);
  border-color: rgba(15, 118, 110, 0.34);
  box-shadow: 0 20px 38px rgba(15, 118, 110, 0.28);
}

.validation-item {
  padding: 14px 15px;
  border-radius: 18px;
  border: 1px solid rgba(191, 77, 74, 0.16);
  background: rgba(255, 255, 255, 0.8);
}

.validation-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.validation-item-head strong {
  font-size: 0.98rem;
  color: var(--ink);
}

.validation-item p {
  margin: 8px 0 0;
  color: rgba(24, 34, 52, 0.84);
  line-height: 1.58;
}

.validation-item-fix {
  color: #8c302c;
  font-weight: 700;
}

.story-copy {
  min-height: 72px;
  display: grid;
  align-content: start;
}

.flow-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  height: 100%;
  align-items: stretch;
}

.flow-card {
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-rows: auto auto 1fr;
  align-content: start;
  padding: 18px;
  border-radius: 24px;
}

.flow-card strong {
  display: block;
  margin-top: 16px;
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif;
  font-size: 1.1rem;
}

.flow-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.flow-icon {
  width: 78px;
  height: 78px;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(35, 87, 255, 0.12), rgba(67, 185, 154, 0.16));
  position: relative;
}

.flow-icon::before,
.flow-icon::after {
  content: "";
  position: absolute;
}

.upload-icon::before {
  width: 28px;
  height: 28px;
  left: 25px;
  top: 25px;
  border-left: 4px solid var(--brand);
  border-top: 4px solid var(--brand);
  transform: rotate(45deg);
}

.upload-icon::after {
  width: 36px;
  height: 4px;
  left: 21px;
  bottom: 18px;
  border-radius: 999px;
  background: var(--brand);
}

.scan-icon::before {
  inset: 18px;
  border: 3px solid rgba(24, 34, 52, 0.22);
  border-radius: 18px;
}

.scan-icon::after {
  left: 14px;
  right: 14px;
  top: 37px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--mint), transparent);
}

.ready-icon::before {
  width: 32px;
  height: 18px;
  left: 18px;
  top: 26px;
  border-left: 5px solid var(--mint);
  border-bottom: 5px solid var(--mint);
  transform: rotate(-45deg);
}

.ready-icon::after {
  width: 18px;
  height: 18px;
  right: 18px;
  top: 18px;
  border-radius: 50%;
  background: rgba(241, 181, 98, 0.2);
  box-shadow: 0 0 0 12px rgba(241, 181, 98, 0.08);
}

.visual-compare {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 16px;
  height: 100%;
  align-items: center;
}

.compare-card {
  height: 100%;
  display: grid;
  align-content: start;
  padding: 16px;
  border-radius: 26px;
}

.compare-card.bad {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 236, 234, 0.82));
}

.compare-card.good {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(236, 249, 244, 0.84));
}

.compare-state {
  background: rgba(38, 175, 61, 0.754);
  color: var(--ink);
}

.compare-state-bad {
  background: rgb(235, 79, 79);
  color: var(--ink);
}

.compare-photo {
  width: min(100%, 280px);
  aspect-ratio: 1 / 1;
  margin-top: 12px;
  margin-inline: auto;
  border-radius: 18px;
  background-color: #f8fafc;
}

.compare-photo.raw::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18, 24, 35, 0.14), rgba(18, 24, 35, 0.02)),
    radial-gradient(circle at top left, rgba(255, 196, 133, 0.22), transparent 34%);
  z-index: 1;
}

.compare-photo.raw img {
  filter: saturate(0.9) contrast(0.9);
}

.compare-photo.final::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid rgba(35, 87, 255, 0.22);
  border-radius: 18px;
  z-index: 1;
  box-sizing: border-box;
}

.compare-photo.final img {
  background: #ffffff;
  padding: 0;
  object-fit: contain;
}

.compare-arrow {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--brand);
}

.story-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.download-page-shell {
  padding: 32px 0 48px;
}

.download-page-hero {
  max-width: 720px;
  margin: 0 auto 26px;
  text-align: center;
}

.download-page-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 28px;
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.75);
  background:
    radial-gradient(circle at top left, rgba(35, 87, 255, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(252, 249, 244, 0.86));
  box-shadow: var(--shadow-lg);
}

.download-page-preview,
.download-page-copy {
  display: flex;
  flex-direction: column;
}

.download-preview-frame {
  min-height: 420px;
  padding: 22px;
  border-radius: 26px;
  background: linear-gradient(180deg, #f7fafc, #ffffff);
  border: 1px solid rgba(24, 34, 52, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.download-preview-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.download-meta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.download-meta-item {
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(24, 34, 52, 0.08);
  box-shadow: 0 16px 28px rgba(17, 24, 39, 0.06);
}

.download-meta-item span,
.download-page-note {
  color: var(--muted);
}

.download-meta-item span {
  display: block;
  margin-bottom: 6px;
  font-size: 0.86rem;
}

.download-meta-item strong {
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif;
  font-size: 1.02rem;
  color: var(--ink);
}

.download-page-cta {
  width: 100%;
  margin-top: 20px;
}

.download-page-actions {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.download-page-cta {
  margin-top: 0;
}

.download-page-cta-secondary {
  width: 100%;
  justify-content: center;
}

.download-page-note {
  margin: 16px 0 0;
  line-height: 1.7;
}

.download-page-home {
  margin-top: 14px;
  align-self: flex-start;
}

.state-topbar {
  position: relative;
  top: 0;
}

.state-page-shell {
  padding: 8px 0 48px;
}

.state-page-card {
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  align-items: start;
  gap: 30px;
}

.state-page-main,
.state-page-sidebar {
  position: relative;
  z-index: 1;
}

.state-page-sidebar {
  display: grid;
  gap: 16px;
  align-content: start;
}

.state-page-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.state-page-badge.tone-neutral {
  background: rgba(24, 34, 52, 0.08);
  color: var(--ink);
}

.state-page-badge.tone-warning {
  background: rgba(241, 181, 98, 0.22);
  color: #8b5a13;
}

.state-page-badge.tone-danger {
  background: rgba(191, 77, 74, 0.14);
  color: var(--danger);
}

.state-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.state-page-note-card {
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(24, 34, 52, 0.08);
  box-shadow: 0 16px 28px rgba(17, 24, 39, 0.06);
}

.state-page-note-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.story-thumb {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(24, 34, 52, 0.08);
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}

.story-thumb.active {
  background: rgba(35, 87, 255, 0.11);
  color: var(--brand-deep);
  border-color: rgba(35, 87, 255, 0.18);
}

.hero-spec-card h2 {
  font-size: 1.3rem;
}

.spec-chip {
  background: rgba(67, 185, 154, 0.14);
  color: #0c755c;
}

.hero-spec-grid,
.spec-tiles,
.field-grid,
.guide-grid,
.requirement-layout,
.spec-grid,
.studio-preview-grid {
  display: grid;
  gap: 16px;
}

.hero-spec-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.spec-mini-card,
.spec-tile {
  border-radius: 20px;
  padding: 16px;
}

.spec-mini-card span,
.spec-tile span {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
}

.spec-mini-card strong,
.spec-tile strong {
  display: block;
  margin-top: 8px;
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif;
  letter-spacing: -0.03em;
}

.tool-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(420px, 0.94fr);
  gap: 18px;
}

.panel,
.requirements,
.guide {
  padding: 26px;
}

.panel-pill {
  background: rgba(24, 34, 52, 0.07);
  color: var(--ink);
}

.panel-subtitle {
  margin: 10px 0 0;
  line-height: 1.65;
}

.field-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 20px;
  align-items: start;
}

#uploadForm,
.admin-form {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 8px;
  align-content: start;
}

.field-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.field span {
  font-size: 0.92rem;
  font-weight: 800;
}

.field-document select {
  min-height: 88px;
  padding-top: 0;
  padding-bottom: 0;
}

select,
input[type="file"],
input[type="text"],
input[type="password"],
input[type="number"],
input[type="email"],
textarea {
  width: 100%;
  border: 1px solid rgba(24, 34, 52, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  padding: 14px 16px;
  outline: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

select:focus,
input[type="file"]:focus,
input[type="text"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
textarea:focus {
  border-color: rgba(35, 87, 255, 0.26);
  box-shadow: 0 0 0 4px rgba(35, 87, 255, 0.08);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.file-picker-field {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 88px;
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px solid rgba(24, 34, 52, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 255, 0.92)),
    radial-gradient(circle at top right, rgba(35, 87, 255, 0.08), transparent 34%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.file-picker-field:focus-within {
  border-color: rgba(35, 87, 255, 0.28);
  box-shadow: 0 0 0 4px rgba(35, 87, 255, 0.08);
}

.file-picker-field.has-file {
  border-color: rgba(67, 185, 154, 0.28);
}

.file-picker-field.is-highlighted {
  animation: upload-highlight 1.2s ease;
}

.file-input-native {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.file-input-trigger {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f1b562, #e79a36);
  color: #1e2430;
  font-weight: 800;
  box-shadow: 0 12px 22px rgba(231, 154, 54, 0.24);
  cursor: pointer;
}

.file-input-trigger:focus-visible {
  outline: 2px solid rgba(35, 87, 255, 0.34);
  outline-offset: 3px;
}

.file-input-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.file-input-copy strong {
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif;
  font-size: 0.92rem;
  letter-spacing: -0.02em;
}

.file-input-copy span {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

@keyframes upload-highlight {
  0%,
  100% {
    transform: translateY(0);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  }
  30% {
    transform: translateY(-1px);
    box-shadow:
      0 0 0 5px rgba(35, 87, 255, 0.12),
      0 16px 26px rgba(35, 87, 255, 0.14);
  }
}

.form-cta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.status-line {
  min-height: 22px;
  margin: 0;
  max-width: 100%;
  font-weight: 800;
  color: var(--brand-deep);
  overflow-wrap: anywhere;
}

.studio-preview-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  margin-top: 22px;
}

.preview-label-row {
  margin-bottom: 12px;
}

.premium-preview,
.result-stage,
.metrics,
.process-status-card {
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(24, 34, 52, 0.08);
}

.result-stage {
  min-height: 500px;
  display: grid;
  align-content: start;
}

.preview-frame {
  position: relative;
  min-height: 360px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(24, 34, 52, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(244, 247, 252, 0.9));
}

.preview-frame::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 18px;
  border: 1px dashed rgba(35, 87, 255, 0.18);
  pointer-events: none;
}

.preview-frame img {
  position: absolute;
  inset: 12px;
  width: calc(100% - 24px);
  height: calc(100% - 24px);
  object-fit: contain;
  object-position: center;
  display: none;
  z-index: 1;
}

.preview-frame.show-image img {
  display: block;
}

.preview-frame p {
  position: relative;
  z-index: 1;
  max-width: 26ch;
  margin: 0;
  padding: 0 20px;
  color: var(--muted);
  text-align: center;
  line-height: 1.6;
}

.source-frame,
.result-frame {
  height: 420px;
  min-height: 420px;
}

.processing-overlay {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  z-index: 2;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(35, 87, 255, 0.05));
  pointer-events: none;
}

.scan-line,
.scan-glow {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  animation: scan-sweep var(--passport-scan-duration) ease-in-out infinite alternate;
  will-change: top;
}

.scan-line {
  height: 210px;
  background: transparent;
}

.scan-line::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 7px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  box-shadow:
    0 0 22px rgba(35, 87, 255, 0.82),
    0 0 44px rgba(35, 87, 255, 0.36);
}

.scan-glow {
  height: 290px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(35, 87, 255, 0.11) 18%,
    rgba(35, 87, 255, 0.26) 50%,
    rgba(22, 63, 191, 0.13) 82%,
    rgba(255, 255, 255, 0) 100%
  );
  filter: blur(18px);
  opacity: 1;
}

@keyframes scan-sweep {
  0% {
    top: -105px;
  }
  100% {
    top: calc(100% - 105px);
  }
}

.process-status-card {
  display: grid;
  align-content: start;
  gap: 14px;
}

.process-status-card h3 {
  font-size: 1.2rem;
}

.process-badge {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  background: rgba(24, 34, 52, 0.08);
  color: var(--muted);
}

.process-badge.processing {
  background: rgba(35, 87, 255, 0.14);
  color: var(--brand-deep);
}

.process-badge.done {
  background: rgba(67, 185, 154, 0.16);
  color: #13775f;
}

.process-badge.error {
  background: rgba(191, 77, 74, 0.14);
  color: #9d302c;
}

.process-lead {
  margin: 0;
  line-height: 1.7;
}

.processing-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.processing-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(24, 34, 52, 0.08);
  background: rgba(255, 255, 255, 0.64);
  opacity: 0.62;
}

.processing-step strong {
  display: block;
  font-size: 0.96rem;
}

.processing-step p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.9rem;
}

.processing-step-index {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(24, 34, 52, 0.08);
  color: var(--ink);
  font-weight: 800;
}

.processing-step.is-active {
  opacity: 1;
  border-color: rgba(35, 87, 255, 0.18);
  box-shadow: 0 14px 28px rgba(35, 87, 255, 0.08);
}

.processing-step.is-active .processing-step-index {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
}

.processing-step.is-complete {
  opacity: 1;
  border-color: rgba(67, 185, 154, 0.22);
}

.processing-step.is-complete .processing-step-index {
  background: rgba(67, 185, 154, 0.16);
  color: #13775f;
}

.result-panel {
  display: grid;
  align-content: start;
  gap: 18px;
}

.checkout-shell {
  display: grid;
  gap: 16px;
  margin-bottom: 18px;
}

.checkout-copy {
  display: grid;
  gap: 12px;
}

.checkout-copy-main {
  display: grid;
  gap: 12px;
  padding: 4px 0 0;
}

.checkout-copy h3 {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.checkout-side {
  display: grid;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(35, 87, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 250, 255, 0.92)),
    radial-gradient(circle at top right, rgba(35, 87, 255, 0.08), transparent 36%);
}

.checkout-side-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.checkout-promise {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.checkout-promise span {
  display: inline-flex;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  align-items: center;
  border-radius: 999px;
  background: rgba(24, 34, 52, 0.05);
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.01em;
  font-weight: 800;
}

.paywall-box {
  position: relative;
  min-height: 440px;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 26px;
  border-radius: 26px;
  border: 1px solid rgba(35, 87, 255, 0.12);
  background:
    radial-gradient(circle at top right, rgba(35, 87, 255, 0.08), transparent 32%),
    radial-gradient(circle at bottom left, rgba(67, 185, 154, 0.05), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 255, 0.9));
  box-shadow: 0 24px 44px rgba(17, 24, 39, 0.08);
}

.paywall-box.is-paid {
  min-height: 0;
}

.paywall-loading {
  position: absolute;
  inset: 0;
  z-index: 4;
  border-radius: 26px;
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 18px;
  text-align: center;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
}

.paywall-loading p {
  margin: 0;
  font-weight: 800;
  color: var(--ink);
}

.paywall-spinner {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 3px solid rgba(35, 87, 255, 0.12);
  border-top-color: var(--brand);
  animation: paywall-spin 0.9s linear infinite;
}

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

.paywall-text {
  margin: 0;
  max-width: 54ch;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.65;
  color: rgba(24, 34, 52, 0.84);
}

.paywall-text-success {
  color: #13583c;
  background: rgba(67, 185, 154, 0.12);
  border: 1px solid rgba(67, 185, 154, 0.2);
  border-radius: 14px;
  padding: 10px 12px;
}

.status-badge,
.network-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.status-pending {
  background: #eef2f7;
  color: #3f5267;
  border-color: #d9e1ec;
}

.status-detected {
  background: #fff2df;
  color: #8a5718;
  border-color: #f2d3a4;
}

.status-confirming {
  background: #e7f2ff;
  color: #245499;
  border-color: #c2dcff;
}

.status-paid {
  background: #e8f8f1;
  color: #166a48;
  border-color: #b9e8d3;
}

.status-underpaid {
  background: #fde9e7;
  color: #8b302d;
  border-color: #f3c0bc;
}

.status-expired {
  background: #f0ecfb;
  color: #5c4491;
  border-color: #d7cdf3;
}

.status-error {
  background: #fde9e7;
  color: #97302c;
  border-color: #f3c0bc;
}

.network-mainnet {
  background: #e8f8f1;
  color: #166a48;
  border-color: #b9e8d3;
}

.network-testnet {
  background: #e7f2ff;
  color: #245499;
  border-color: #c2dcff;
}

.network-unknown {
  background: #eef2f7;
  color: #3f5267;
  border-color: #d9e1ec;
}

.btc-pay-info,
.btc-status-inline,
.stripe-summary-card {
  border-radius: 18px;
  border: 1px solid rgba(24, 34, 52, 0.08);
  background: rgba(255, 255, 255, 0.76);
  padding: 18px;
}

.btc-pay-info {
  margin-bottom: 12px;
}

.btc-pay-info p,
.stripe-summary-card p {
  margin: 0 0 8px;
  line-height: 1.6;
}

.btc-pay-info p:last-child,
.stripe-summary-card p:last-child {
  margin-bottom: 0;
}

.btc-address-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.icon-btn,
.widget-head button,
.modal-close {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(24, 34, 52, 0.12);
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.icon-btn:hover,
.widget-head button:hover,
.modal-close:hover {
  background: rgba(35, 87, 255, 0.08);
}

#stripePaymentElement,
#stripeBillingElement {
  margin-top: 8px;
  border-radius: 16px;
  border: 1px solid rgba(24, 34, 52, 0.08);
  background: rgba(255, 255, 255, 0.92);
  padding: 12px;
}

#stripeConfirmBtn {
  width: 100%;
  margin-top: 12px;
}

.paywall-actions {
  display: grid;
  gap: 10px;
}

.pay-btn,
.pay-reset-btn {
  width: 100%;
}

.widget-state,
.widget-confs,
.widget-amount,
.widget-timer {
  margin: 8px 0 0;
  line-height: 1.5;
}

.widget-progress-wrap {
  width: 100%;
  margin-top: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(24, 34, 52, 0.08);
  overflow: hidden;
}

.widget-progress-bar {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--brand), var(--mint));
  transition: width 220ms ease;
}

.btc-credit-notice {
  border: 1px solid rgba(67, 185, 154, 0.2);
  background: rgba(67, 185, 154, 0.12);
  color: #166a48;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 800;
}

.btc-tx-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.btc-tx-counter {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.btc-tx-item {
  border-radius: 16px;
  border: 1px solid rgba(24, 34, 52, 0.08);
  background: rgba(248, 250, 255, 0.9);
  padding: 12px;
}

.btc-tx-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.btc-tx-title {
  margin: 0;
  font-weight: 800;
  font-size: 0.88rem;
}

.btc-tx-item p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  word-break: break-all;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.result-bundle-card {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(35, 87, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 255, 0.92)),
    radial-gradient(circle at top right, rgba(35, 87, 255, 0.08), transparent 42%);
}

.metrics dl {
  margin: 0;
  display: grid;
  gap: 10px;
}

.metrics .metric-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(24, 34, 52, 0.08);
}

.metrics .metric-row:last-child {
  border-bottom: 0;
}

.metrics dt {
  color: var(--muted);
}

.metrics dd {
  margin: 0;
  font-weight: 800;
  text-align: right;
}

.section-heading h2 {
  margin-top: 10px;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.spec-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(300px, 0.72fr);
  margin-top: 22px;
}

.spec-visual-card,
.requirement-card,
.dos-donts-card {
  min-width: 0;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(24, 34, 52, 0.08);
}

.spec-canvas {
  position: relative;
  min-height: 390px;
  display: grid;
  place-items: center;
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(135deg, #f6f9ff, #fff8ef);
  border: 1px solid rgba(35, 87, 255, 0.08);
}

.spec-photo-window {
  position: relative;
  width: min(320px, 100%);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 26px;
  border: 2px solid rgba(24, 34, 52, 0.08);
  background: #ffffff;
  box-shadow: 0 24px 42px rgba(17, 24, 39, 0.08);
}

.spec-face-illustration::before,
.spec-face-illustration::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-top: 2px dashed rgba(67, 185, 154, 0.55);
  z-index: 2;
  pointer-events: none;
}

.spec-face-illustration::before {
  top: 10%;
}

.spec-face-illustration::after {
  top: 73%;
}

.spec-face-illustration {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
}

.spec-face-illustration img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #ffffff;
}

.spec-ruler {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(35, 87, 255, 0.16);
  color: var(--brand-deep);
  font-size: 0.82rem;
  font-weight: 800;
}

.spec-ruler-top {
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
}

.spec-ruler-left {
  left: 14px;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
}

.spec-ruler-right {
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
}

.spec-tiles {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
}

.spec-tile,
.requirement-block,
.requirement-blocks,
.dos-donts-card > div {
  min-width: 0;
}

.spec-tile strong,
.spec-tile span,
.requirement-card h3,
.dos-donts-card h3,
.target-line {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.target-line {
  margin: 10px 0 0;
  font-weight: 800;
  line-height: 1.55;
}

.requirement-blocks {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.requirement-block {
  padding-top: 14px;
  border-top: 1px solid rgba(24, 34, 52, 0.08);
}

.requirement-block h4 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 800;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.requirement-block ul,
.dos-donts-card ul {
  margin: 0;
  padding-left: 18px;
  line-height: 1.7;
  color: var(--muted);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.requirement-block li,
.dos-donts-card li {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.requirement-block li strong {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.guide-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 22px;
  align-items: stretch;
}

.guide-card {
  height: 100%;
  display: grid;
  grid-template-rows: auto auto 1fr;
  align-content: start;
  padding: 20px;
  border-radius: 24px;
}

.guide-card p {
  margin: 10px 0 0;
  line-height: 1.65;
}

.guide-portrait-row,
.example-grid {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.guide-portrait-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.guide-portrait {
  aspect-ratio: 4 / 5;
  min-height: 160px;
  border-radius: 20px;
  border: 1px solid rgba(24, 34, 52, 0.08);
  background: #fcfcfd;
}

.guide-portrait.ok::before,
.guide-portrait.kid::before {
  content: "✓";
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(67, 185, 154, 0.96);
  color: #fff;
  font-weight: 900;
  z-index: 2;
}

.guide-portrait.alt {
  background-color: #f7fbff;
}

.guide-portrait.warm {
  background-color: #fff8f2;
}

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

.before-after-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
  margin-top: 16px;
}

.examples-card {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  column-gap: 18px;
  row-gap: 0;
  align-items: start;
}

.examples-card .guide-card-head,
.examples-card > p {
  grid-column: 1 / -1;
}

.examples-card > p {
  margin-bottom: 0;
}

.examples-card .before-after-card,
.examples-card .example-grid {
  margin-top: 14px;
}

.examples-card .before-after-card {
  height: auto;
  align-self: start;
  gap: 10px;
}

.examples-card .example-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: start;
}

.before-after-panel {
  position: relative;
  display: grid;
  align-content: stretch;
  aspect-ratio: 4 / 5;
  min-height: 0;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(24, 34, 52, 0.1);
  background: #fff;
  box-shadow: 0 16px 28px rgba(17, 24, 39, 0.06);
}

.examples-card .before-after-panel {
  aspect-ratio: 3 / 4;
  max-height: clamp(220px, 24vw, 300px);
}

.before-after-panel.bad {
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.9), transparent 28%),
    linear-gradient(135deg, #efe7dd 0%, #f7efe8 44%, #ece1d5 100%);
}

.before-after-panel.bad::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(24, 34, 52, 0.12)),
    radial-gradient(circle at 72% 32%, rgba(197, 167, 132, 0.34), transparent 18%),
    linear-gradient(90deg, transparent 0 64%, rgba(108, 80, 54, 0.12) 64% 100%);
}

.before-after-panel.bad img {
  position: absolute;
  inset: 0;
  z-index: 1;
  object-fit: cover;
  object-position: center 18%;
  border-radius: inherit;
  filter: saturate(0.9) brightness(0.97);
}

.before-after-panel.bad::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 90, 90, 0.22), transparent 14%),
    linear-gradient(180deg, rgba(24, 34, 52, 0.14), transparent 40%);
}

.before-after-panel.good {
  background: linear-gradient(180deg, #ffffff, #f7fbff);
}

.before-after-panel.good::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid rgba(35, 87, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.9);
}

.before-after-panel.good img {
  position: absolute;
  inset: 0;
  z-index: 1;
  object-fit: cover;
  object-position: center 18%;
  background: #fff;
  border-radius: inherit;
}

.before-after-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
  min-height: 28px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #fff;
  font-size: 0.74rem;
  font-weight: 800;
}

.before-after-badge.bad {
  background: rgba(235, 74, 74, 0.94);
}

.before-after-badge.good {
  background: rgba(27, 180, 99, 0.94);
}

.before-after-arrow {
  display: none;
}

.example-card {
  position: relative;
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 14px;
  border-radius: 18px;
}

.example-card::after {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-weight: 900;
}

.example-card.pass::after {
  content: "✓";
  background: rgba(67, 185, 154, 0.96);
}

.example-card.fail::after {
  content: "×";
  background: rgba(191, 77, 74, 0.96);
}

.example-avatar {
  aspect-ratio: 4 / 5;
  min-height: 118px;
  border-radius: 16px;
  border: 1px solid rgba(24, 34, 52, 0.08);
  background: #fcfcfd;
}


.example-avatar.hair::before,
.example-avatar.glasses::before,
.example-avatar.hat::before {
  content: "";
  position: absolute;
}

.example-avatar.hair::before {
  inset: 0 auto 0 54%;
  width: 28%;
  background: rgba(56, 28, 20, 0.82);
  z-index: 1;
}

.example-avatar.glasses::before {
  left: 26%;
  right: 26%;
  top: 42%;
  height: 10px;
  border-top: 4px solid rgba(20, 28, 40, 0.7);
  z-index: 1;
}

.example-avatar.hat::before {
  left: 18%;
  right: 18%;
  top: 12%;
  height: 22px;
  border-radius: 999px 999px 8px 8px;
  background: rgba(223, 199, 145, 0.95);
  z-index: 1;
}

.example-card span {
  display: block;
  font-size: 0.88rem;
  font-weight: 800;
}

.disclaimer {
  margin: 18px 0 0;
  line-height: 1.65;
}

.payment-widget {
  position: sticky;
  top: 96px;
  z-index: 25;
  margin: 0 0 18px auto;
  width: min(420px, 100%);
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(248, 250, 255, 0.82));
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(14px);
}

.widget-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.widget-head-main {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.widget-actions {
  margin-top: 12px;
}

.payment-widget.widget-collapsed .widget-progress-wrap,
.payment-widget.widget-collapsed .widget-amount,
.payment-widget.widget-collapsed .widget-actions {
  display: none;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(13, 18, 27, 0.54);
  backdrop-filter: blur(8px);
}

.modal-card {
  width: min(760px, 100%);
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 28px 48px rgba(17, 24, 39, 0.24);
}

#invoiceModal .modal-card {
  width: min(920px, 100%);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.modal-head h3,
.payment-result-title {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif;
  letter-spacing: -0.04em;
}

.payment-result-modal {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(10, 16, 25, 0.42);
}

.payment-result-card {
  width: min(420px, 100%);
  padding: 22px 20px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 26px 48px rgba(17, 24, 39, 0.24);
  text-align: center;
  animation: payment-result-in 220ms ease forwards;
}

.payment-result-modal.closing .payment-result-card {
  animation: payment-result-out 180ms ease forwards;
}

.payment-result-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 1.9rem;
  font-weight: 900;
}

.payment-result-card.success .payment-result-icon {
  background: rgba(67, 185, 154, 0.14);
  color: #166a48;
}

.payment-result-card.error .payment-result-icon {
  background: rgba(191, 77, 74, 0.12);
  color: #97302c;
}

.payment-result-message {
  margin: 8px 0 0;
  line-height: 1.65;
}

@keyframes payment-result-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes payment-result-out {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
}

.invoice-body {
  margin: 0;
  padding: 14px;
  max-height: min(56vh, 440px);
  overflow: auto;
  border-radius: 18px;
  border: 1px solid rgba(24, 34, 52, 0.08);
  background: rgba(248, 250, 255, 0.84);
  font-size: 0.92rem;
  line-height: 1.55;
}

.invoice-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(24, 34, 52, 0.06);
  background: #fff;
  box-shadow: 0 20px 36px rgba(63, 78, 116, 0.08);
}

.invoice-banner {
  height: 118px;
  background: linear-gradient(165deg, #56678d 0%, #6d7ea6 55%, #f7f8fc 55.5%, #ffffff 100%);
}

.invoice-hero {
  padding: 24px 28px 8px;
  text-align: center;
}

.invoice-hero h4,
.invoice-total strong {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif;
  color: #354368;
}

.invoice-reference {
  margin: 10px 0 0;
  color: #8a97b6;
  font-size: 0.92rem;
}

.invoice-subtitle,
.invoice-footnote {
  color: #6d7c9f;
}

.invoice-subtitle {
  margin: 10px 0 0;
  font-size: 0.86rem;
}

.invoice-status-wrap {
  margin-top: 16px;
}

.invoice-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(165px, 1fr));
  gap: 14px;
  max-width: 820px;
  margin: 0 auto;
  padding: 8px 28px 0;
}

.invoice-meta-item {
  min-width: 0;
  min-height: 76px;
  display: grid;
  align-content: start;
  padding: 12px 14px;
  border: 1px solid #dde5f4;
  background: #fafcff;
}

.invoice-meta-item strong {
  display: block;
  margin-bottom: 4px;
  color: #8896b6;
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.invoice-meta-item span {
  font-weight: 800;
  color: #49577a;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.invoice-summary {
  padding: 28px 28px 0;
}

.invoice-section-label {
  margin: 0 0 12px;
  color: #6f7f9f;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 800;
}

.invoice-summary-card {
  width: min(100%, 620px);
  margin: 0 auto;
  border-radius: 16px;
  background: #f4f7fe;
  padding: 16px 22px;
}

.invoice-summary-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: baseline;
  padding: 10px 0;
  color: #49577a;
}

.invoice-summary-row + .invoice-summary-row {
  border-top: 1px solid #dde5f4;
}

.invoice-summary-row span {
  min-width: 0;
}

.invoice-summary-row strong {
  text-align: right;
  white-space: nowrap;
}

.invoice-summary-row-main {
  padding-top: 4px;
  padding-bottom: 14px;
}

.invoice-summary-row-total {
  font-weight: 800;
  color: #394669;
}

.invoice-line-items {
  width: 100%;
  border-collapse: collapse;
}

.invoice-line-items th,
.invoice-line-items td {
  padding: 10px 0;
  text-align: left;
  word-break: break-word;
  color: #49577a;
}

.invoice-line-items td:last-child,
.invoice-line-items th:last-child {
  text-align: right;
}

.invoice-line-items th {
  color: #8a97b6;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.invoice-line-items tbody tr + tr td {
  border-top: 1px solid #dde5f4;
}

.invoice-notes {
  width: min(100%, 620px);
  margin: 0 auto;
  padding: 28px 0 0;
  color: #5d6c8c;
}

.invoice-detail-block {
  margin-top: 10px;
}

.invoice-note-line {
  margin: 0 0 8px;
}

.invoice-line-items-secondary {
  margin-top: 16px;
}

.invoice-total {
  width: min(100%, 620px);
  margin: 28px auto 0;
  padding: 18px 22px;
  border-radius: 16px;
  background: #f4f7fe;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.invoice-total p,
.invoice-footnote,
.download-guard-body p,
.qr-modal-body p {
  margin: 0;
}

.invoice-total strong:last-child {
  font-size: 1.9rem;
}

.invoice-footnote {
  width: min(100%, 620px);
  margin: 28px auto 34px;
  padding-top: 22px;
  border-top: 1px solid #dbe2f0;
  font-size: 0.78rem;
}

.qr-modal-card {
  width: min(440px, 100%);
}

.qr-modal-body {
  display: grid;
  place-items: center;
  gap: 10px;
}

.qr-modal-body img {
  width: min(320px, 86vw);
  border-radius: 16px;
  border: 1px solid rgba(24, 34, 52, 0.08);
  background: #fff;
}

.download-guard-card {
  width: min(540px, 100%);
}

.download-guard-actions,
.admin-actions,
.wallet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hidden {
  display: none !important;
}

.admin-shell {
  padding-bottom: 36px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.admin-card {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(24, 34, 52, 0.08);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 30px rgba(17, 24, 39, 0.06);
}

.admin-card h3 {
  margin: 0 0 10px;
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif;
}

.helper-line {
  font-size: 0.84rem;
}

.qr-reader {
  width: 100%;
  min-height: 240px;
  border-radius: 18px;
  border: 1px dashed rgba(24, 34, 52, 0.16);
  background: rgba(248, 250, 255, 0.74);
  overflow: hidden;
}

#scanProgress {
  width: 100%;
  height: 10px;
  margin-top: 10px;
}

.wallet-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.wallet-list li {
  margin-bottom: 8px;
}

.wallet-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(24, 34, 52, 0.08);
  background: rgba(248, 250, 255, 0.84);
}

.wallet-meta {
  min-width: 0;
  color: var(--muted);
  font-size: 0.9rem;
  word-break: break-word;
}

.wallet-delete-btn {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(191, 77, 74, 0.18);
  background: rgba(191, 77, 74, 0.08);
  color: #97302c;
  font-weight: 800;
  cursor: pointer;
}

.wallet-delete-btn:hover {
  background: rgba(191, 77, 74, 0.14);
}

.reveal {
  animation: fade-up 520ms ease both;
}

.delay-1 {
  animation-delay: 90ms;
}

.delay-2 {
  animation-delay: 180ms;
}

.delay-3 {
  animation-delay: 260ms;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1220px) {
  .hero-layout,
  .tool-grid,
  .spec-grid,
  .studio-preview-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 28px;
  }

  .hero h1 {
    max-width: 100%;
  }

  .payment-widget {
    width: 100%;
  }
}

@media (max-width: 980px) {
  .page-shell {
    width: min(100vw - 20px, 100%);
    padding-top: 14px;
  }

  .topbar {
    position: static;
    flex-wrap: wrap;
    border-radius: 28px;
  }

  .topbar-actions {
    width: 100%;
    justify-content: space-between;
  }

  .topnav {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }

  .hero-layout,
  .hero-upload-actions,
  .field-grid,
  .hero-spec-grid,
  .guide-grid,
  .admin-grid,
  .guide-portrait-row,
  .example-grid,
  .pose-grid,
  .flow-strip,
  .spec-tiles,
  .visual-compare,
  .before-after-card {
    grid-template-columns: 1fr;
  }

  .result-actions,
  .admin-actions,
  .download-guard-actions,
  .wallet-actions {
    flex-direction: column;
  }

  .compare-arrow {
    justify-self: center;
    transform: rotate(90deg);
  }

  .story-showcase-head,
  .panel-heading,
  .process-status-head,
  .checkout-shell {
    grid-template-columns: 1fr;
    display: grid;
  }

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

  .story-slide .pose-grid,
  .story-slide .flow-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .story-slide .visual-compare {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 10px;
  }

  .story-carousel {
    min-height: 438px;
  }

  .story-slide {
    grid-template-rows: minmax(304px, 1fr) auto;
    min-height: 438px;
  }

  .story-visual {
    min-height: 304px;
  }

  .story-slide .pose-card,
  .story-slide .flow-card,
  .story-slide .compare-card {
    padding: 12px;
  }

  .story-slide .pose-portrait {
    min-height: 126px;
    margin: 8px 0 4px;
  }

  .story-slide .flow-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
  }

  .story-slide .flow-card strong,
  .story-slide .story-copy h3 {
    font-size: 1rem;
  }

  .story-slide .pose-card p,
  .story-slide .flow-card p,
  .story-slide .story-copy p {
    font-size: 0.88rem;
    line-height: 1.38;
  }

  .examples-card {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }

  .examples-card .before-after-card,
  .examples-card .example-grid {
    grid-column: 1;
  }

  .examples-card .example-grid {
    grid-column: 2;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100vw - 16px, 100%);
  }

  .hero,
  .panel,
  .requirements,
  .guide,
  .story-showcase,
  .hero-spec-card {
    padding: 20px;
    border-radius: 22px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(2.1rem, 11vw, 3.4rem);
  }

  .lead {
    font-size: 1rem;
  }

  .hero-side-copy {
    font-size: 1rem;
  }

  .topbar {
    padding: 14px 16px;
    gap: 14px;
  }

  .topbar-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .lang-switch {
    width: 100%;
    justify-content: space-between;
  }

  .brand-copy small,
  .topnav a:nth-child(n+3) {
    display: none;
  }

  .preview-frame {
    min-height: 280px;
  }

  .validation-jump-btn {
    top: 12px;
    right: 12px;
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.74rem;
  }

  .story-carousel {
    min-height: 0;
  }

  .story-slide,
  .result-stage,
  .paywall-box {
    min-height: 0;
  }

  .story-slide {
    grid-template-rows: minmax(264px, 1fr) auto;
    gap: 12px;
  }

  .story-visual {
    min-height: 264px;
    padding: 14px;
  }

  .story-copy {
    min-height: 0;
  }

  .story-slide .pose-grid,
  .story-slide .flow-strip {
    gap: 8px;
  }

  .story-slide .pose-card,
  .story-slide .flow-card,
  .story-slide .compare-card {
    padding: 10px;
    border-radius: 18px;
  }

  .story-slide .pose-portrait {
    min-height: 96px;
    border-radius: 14px;
    margin: 6px 0 3px;
  }

  .story-slide .flow-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .story-slide .flow-card strong {
    margin-top: 10px;
    font-size: 0.9rem;
  }

  .story-slide .pose-card p,
  .story-slide .flow-card p,
  .story-slide .story-copy p {
    font-size: 0.76rem;
    line-height: 1.32;
  }

  .story-slide .compare-photo {
    margin-top: 10px;
  }

  .guide-grid {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .guide-card {
    height: auto;
  }

  .examples-card {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .examples-card .before-after-card,
  .examples-card .example-grid {
    grid-column: 1;
  }

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

  .field-document select,
  .file-picker-field {
    min-height: 76px;
  }

  .download-page-card {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .state-page-card {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .download-preview-frame {
    min-height: 320px;
  }

  .source-frame,
  .result-frame {
    height: 320px;
    min-height: 320px;
  }

  .spec-canvas {
    min-height: 320px;
  }

  .spec-photo-window {
    width: min(250px, 100%);
  }

  .modal-card {
    padding: 14px;
    border-radius: 20px;
  }

  .invoice-meta {
    grid-template-columns: 1fr;
  }

  .cta-button,
  .cta-secondary,
  .hero-secondary,
  .topbar-cta {
    width: 100%;
  }

  .result-actions,
  .admin-actions,
  .download-guard-actions,
  .wallet-actions {
    flex-direction: column;
  }

  .hero-upload-actions {
    grid-template-columns: 1fr;
  }

  .file-picker-field {
    grid-template-columns: 1fr;
  }

  .file-input-trigger {
    width: 100%;
  }
}

.passport-landing-shell {
  width: min(1240px, calc(100vw - 28px));
}

.passport-topbar {
  top: 10px;
}

.passport-topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.passport-mini-link {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.passport-hero-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 22px;
}

.passport-hero-copy {
  display: grid;
  align-content: start;
  gap: 14px;
  padding-top: 14px;
}

.passport-copy-card,
.passport-hero-compare-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-lg);
}

.passport-cta-row,
.passport-chip-row,
.passport-footer-links,
.passport-footer-main {
  display: flex;
  gap: 14px;
}

.passport-cta-row,
.passport-chip-row,
.passport-footer-links {
  flex-wrap: wrap;
}

.passport-lead {
  max-width: 34rem;
}

.passport-promise {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.6;
}

.passport-hero-compare-card {
  display: grid;
  align-content: start;
}

.passport-flow-card,
.passport-upload-panel,
.passport-result-panel,
.passport-pricing-card,
.passport-step-card,
.passport-faq-item,
.passport-footer,
.passport-compare-card {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-lg);
}

.passport-flow-card {
  display: grid;
  gap: 16px;
  max-width: 520px;
  padding: 22px;
  border-radius: var(--radius-lg);
}

.passport-flow-head,
.passport-section,
.passport-result-panel {
  display: grid;
  gap: 10px;
}

.passport-flow-kicker,
.passport-flow-note,
.passport-section-lead,
.passport-footer-copy,
.passport-footer-disclaimer,
.passport-pricing-copy,
.passport-pricing-note {
  margin: 0;
}

.passport-flow-kicker {
  color: var(--brand-ink);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.passport-flow-note,
.passport-pricing-copy,
.passport-pricing-note {
  color: var(--muted);
}

.passport-flow-steps,
.passport-step-grid,
.passport-guide-grid,
.passport-compare-grid,
.passport-visual-flow {
  display: grid;
  gap: 14px;
}

.passport-flow-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.passport-flow-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.passport-flow-steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(35, 87, 255, 0.1);
  color: var(--brand-ink);
  font-size: 0.85rem;
  font-weight: 800;
}

.passport-flow-steps strong {
  font-size: 1rem;
}

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

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

.passport-hero-compare-grid {
  gap: 16px;
}

.passport-visual-flow {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.passport-upload-panel,
.passport-result-panel,
.passport-pricing-card,
.passport-step-card,
.passport-compare-card,
.passport-footer {
  border-radius: var(--radius-lg);
}

.passport-hero-preview-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.passport-upload-actions-grid {
  align-items: start;
}

.passport-submit-field {
  display: grid;
  align-content: start;
  gap: 10px;
}

.passport-submit-btn {
  min-width: 180px;
}

.passport-process-card {
  height: 100%;
}

.passport-trust-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(24, 34, 52, 0.08);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}

.passport-step-card,
.passport-pricing-card,
.passport-compare-card {
  padding: 24px;
}

.passport-hero-compare-item {
  padding: 0;
  box-shadow: none;
  background: transparent;
  border: 0;
}

.passport-hero-compare-frame {
  position: relative;
}

.passport-corner-chip {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
}

.passport-visual-step {
  position: relative;
  display: grid;
  gap: 18px;
}

.passport-visual-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 108px;
  right: -26px;
  width: 34px;
  border-top: 2px dashed rgba(24, 34, 52, 0.16);
}

.passport-visual-media {
  aspect-ratio: 1.35 / 1;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(244, 247, 252, 0.94), rgba(252, 252, 252, 0.94));
  border: 1px solid rgba(24, 34, 52, 0.06);
}

.passport-visual-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  border-radius: inherit;
}

.passport-visual-copy {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
}

.passport-visual-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(35, 87, 255, 0.08);
  color: var(--brand-ink);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.passport-visual-copy h3 {
  margin: 0;
  font-size: 1.08rem;
}

.passport-visual-copy p {
  margin: 0;
}

.passport-pricing-card {
  display: grid;
  gap: 14px;
  justify-items: center;
  text-align: center;
}

.passport-pricing-caption {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.passport-pricing-amount {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.05em;
}

.passport-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
}

.passport-compare-frame {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: calc(var(--radius-md) + 2px);
  background: linear-gradient(180deg, rgba(240, 245, 255, 0.92), rgba(251, 252, 255, 0.92));
}

.passport-compare-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.passport-faq-list {
  display: grid;
  gap: 14px;
}

.passport-faq-item {
  padding: 18px 20px;
  border-radius: var(--radius-md);
}

.passport-faq-item summary {
  cursor: pointer;
  font-weight: 800;
}

.passport-faq-item p {
  margin: 12px 0 0;
  color: var(--muted);
}

.passport-section-lead {
  max-width: 42rem;
}

.passport-flow-cta {
  justify-self: center;
  min-width: min(100%, 240px);
  margin-top: 4px;
}

.passport-proof-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
  padding: 22px 28px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-lg);
}

.passport-proof-item {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.passport-proof-item strong {
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif;
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  line-height: 1.15;
  color: #2289c9;
  letter-spacing: -0.05em;
  text-align: center;
}

.passport-proof-item span {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--muted);
}

.passport-section-divider {
  width: min(1180px, calc(100vw - 40px));
  height: 1px;
  margin: 26px auto 22px;
  background: linear-gradient(90deg, transparent, rgba(24, 34, 52, 0.16), transparent);
}

.passport-footer {
  margin-top: 24px;
  padding: 24px;
  border-radius: var(--radius-lg);
}

.passport-footer-main {
  align-items: flex-start;
  justify-content: space-between;
}

.passport-footer-links {
  justify-content: flex-end;
}

.passport-footer-links a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.passport-footer-link-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.passport-footer-link-button:hover,
.passport-footer-link-button:focus-visible {
  text-decoration: underline;
}

.support-email-body {
  display: grid;
  gap: 12px;
}

.support-email-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.passport-mobile-cta {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 48;
  min-height: 56px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
  font-weight: 800;
  box-shadow: 0 20px 34px rgba(35, 87, 255, 0.22);
}

.grecaptcha-badge {
  z-index: 34 !important;
}

@media (min-width: 1180px) {
  .passport-landing-shell {
    width: min(1480px, calc(100vw - 64px));
    padding-bottom: 72px;
  }

  .passport-topbar {
    top: 16px;
    padding: 18px 28px;
    margin-bottom: 30px;
  }

  .passport-hero {
    padding: 48px;
    border-radius: 36px;
  }

  .passport-hero-layout {
    grid-template-columns: minmax(0, 0.98fr) minmax(0, 1.02fr);
    gap: 38px;
  }

  .passport-copy-card,
  .passport-hero-compare-card,
  .passport-upload-panel,
  .passport-result-panel {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
    min-height: 100%;
  }

  .passport-hero-copy {
    gap: 18px;
    max-width: none;
    min-height: 100%;
    padding: 4px 0 0;
  }

  .passport-lead {
    max-width: 32rem;
    font-size: 1.16rem;
  }

  .passport-promise {
    max-width: 31rem;
    font-size: 1.02rem;
  }

  .passport-hero-preview-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    gap: 20px;
    margin-top: 24px;
  }

  .source-frame,
  .result-frame {
    height: 460px;
    min-height: 460px;
  }

  .passport-visual-flow {
    gap: 22px;
  }

  .passport-step-card,
  .passport-pricing-card,
  .passport-compare-card,
  .passport-footer {
    padding: 28px;
  }

  .passport-visual-media {
    aspect-ratio: 1.48 / 1;
  }

  .passport-compare-frame {
    aspect-ratio: 0.94 / 1;
  }

  .passport-file-field {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    row-gap: 10px;
  }

  .passport-file-field .file-picker-field {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 60px;
    padding: 10px 12px 10px 16px;
  }

  .passport-file-field .field-hint {
    margin-top: -2px;
  }

  .passport-file-field .file-input-copy {
    gap: 0;
  }

  .passport-file-field .file-input-copy span {
    font-size: 0.94rem;
  }

  .passport-file-field .file-input-trigger {
    min-width: 148px;
  }

  .passport-upload-actions-grid {
    grid-template-columns: minmax(0, 1fr) minmax(196px, 212px);
    column-gap: 18px;
    align-items: start;
  }

  .passport-submit-field {
    width: 100%;
    align-self: start;
    padding-top: 0;
  }

  .passport-submit-btn {
    width: 100%;
    min-height: 60px;
    padding-inline: 24px;
  }
}

@media (max-width: 1080px) {
  .passport-hero-layout,
  .passport-hero-preview-grid,
  .passport-step-grid,
  .passport-guide-grid,
  .passport-compare-grid,
  .passport-visual-flow {
    grid-template-columns: 1fr;
  }

  .passport-visual-step:not(:last-child)::after {
    display: none;
  }

  .passport-footer-main {
    flex-direction: column;
  }

  .passport-footer-links {
    justify-content: flex-start;
  }

  .passport-proof-strip {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (max-width: 860px) {
  .passport-landing-shell {
    width: min(100vw - 20px, 100%);
    padding-bottom: 162px;
  }

  .passport-topbar {
    top: 8px;
    border-radius: 28px;
  }

  .passport-topbar-actions {
    gap: 10px;
  }

  .passport-mini-link {
    font-size: 0.94rem;
  }

  .passport-hero-copy {
    padding-top: 0;
  }

  .passport-trust-chip {
    min-height: 34px;
    font-size: 0.84rem;
  }

  .passport-pricing-card,
  .passport-step-card,
  .passport-compare-card,
  .passport-footer,
  .passport-copy-card,
  .passport-hero-compare-card {
    padding: 20px;
  }

  .passport-file-field {
    display: grid;
    gap: 10px;
  }

  .passport-upload-actions-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .passport-submit-field {
    padding-top: 0;
  }

  .passport-mobile-cta {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 78px);
  }

  .grecaptcha-badge {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 12px) !important;
  }
}
