:root {
  --surface: #fff8f5;
  --surface-lowest: #ffffff;
  --surface-low: #fef1e9;
  --surface-mid: #f8ece3;
  --surface-high: #f2e6de;
  --surface-highest: #ece0d8;
  --ink: #201a16;
  --muted: #444841;
  --soft-muted: #6f756b;
  --outline: #c5c8be;
  --primary: #526049;
  --primary-strong: #3f4d38;
  --primary-soft: #d8e8cb;
  --primary-mid: #6a7961;
  --secondary: #8a4f39;
  --secondary-soft: #ffdbcf;
  --secondary-mid: #ffb196;
  --tertiary: #625b4d;
  --error: #ba1a1a;
  --error-soft: #ffdad6;
  --shadow: 0 20px 50px -28px rgba(82, 96, 73, 0.32);
  --shadow-soft: 0 12px 36px -24px rgba(138, 79, 57, 0.32);
  --radius-card: 24px;
  --radius-portal: 32px;
  --page: min(1120px, calc(100vw - 48px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--surface);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.visually-hidden-file {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

a {
  color: inherit;
}

.app-shell {
  min-height: 100vh;
  padding-bottom: 92px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--surface) 94%, white);
  border-bottom: 1px solid rgba(197, 200, 190, 0.45);
  backdrop-filter: blur(18px);
}

.topbar-inner {
  width: var(--page);
  margin: 0 auto;
  min-height: 76px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: var(--primary);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  text-align: left;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-lowest);
  color: var(--primary);
  box-shadow: inset 0 1px 6px rgba(82, 96, 73, 0.12);
  overflow: hidden;
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.asset-icon,
.note-icon,
.button-icon,
.refine-icon,
.animal-icon,
.inline-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: inline-block;
  flex: 0 0 auto;
  vertical-align: middle;
}

.note-icon {
  width: 30px;
  height: 30px;
  margin-top: -3px;
}

.button-icon {
  width: 20px;
  height: 20px;
  filter: saturate(0.95);
}

.refine-icon {
  width: 30px;
  height: 30px;
}

.inline-icon {
  width: 26px;
  height: 26px;
  margin-right: 6px;
  vertical-align: -7px;
}

.nav {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav button,
.footer-link {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  padding: 10px 12px;
  border-radius: 999px;
}

.nav button:hover,
.nav button.active,
.footer-link:hover {
  background: var(--surface-mid);
  color: var(--primary);
}

.back-button {
  justify-self: start;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--primary);
  cursor: pointer;
}

.back-button:hover {
  border-color: rgba(197, 200, 190, 0.7);
  background: var(--surface-low);
}

.progress-wrap {
  width: var(--page);
  margin: 0 auto;
  padding: 0 0 16px;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.progress-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.progress-dot {
  height: 6px;
  border-radius: 999px;
  background: var(--surface-highest);
}

.progress-dot.complete,
.progress-dot.current {
  background: var(--primary);
}

.progress-dot.current {
  box-shadow: 0 0 0 4px rgba(82, 96, 73, 0.12);
}

.page {
  width: var(--page);
  margin: 0 auto;
  padding: 56px 0 80px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(280px, 480px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 84px);
  min-height: calc(100vh - 190px);
  padding-bottom: 28px;
}

.hero-photo,
.memory-portal {
  overflow: hidden;
  border-radius: var(--radius-portal);
  background: var(--surface-mid);
  box-shadow: inset 0 4px 18px rgba(32, 26, 22, 0.05), var(--shadow);
}

.hero-photo {
  aspect-ratio: 4 / 5;
}

.hero-photo img,
.memory-portal img,
.preview-tile img,
.gallery-card img,
.mode-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-copy {
  display: grid;
  gap: 22px;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: 0;
  margin: 0;
}

h1 {
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.02;
  max-width: 760px;
}

h2 {
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.08;
}

h3 {
  font-size: 24px;
  line-height: 1.2;
}

p {
  margin: 0;
}

.lead {
  max-width: 660px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 13px 22px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-strong) 100%);
  color: white;
  box-shadow: 0 16px 34px -24px rgba(82, 96, 73, 0.9);
}

.btn-primary:hover {
  box-shadow: 0 20px 42px -22px rgba(82, 96, 73, 0.95);
}

.btn-secondary {
  background: var(--surface-lowest);
  border-color: rgba(117, 120, 112, 0.28);
  color: var(--primary);
}

.btn-secondary:hover {
  background: var(--surface-low);
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
}

.btn[disabled],
.btn.is-disabled {
  cursor: not-allowed;
  opacity: 0.45;
  box-shadow: none;
}

.section {
  display: grid;
  gap: 28px;
}

.section-header {
  display: grid;
  gap: 10px;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.section-header.align-left {
  margin: 0;
  text-align: left;
}

.subtle {
  color: var(--muted);
  line-height: 1.65;
}

.tiny-label {
  color: var(--secondary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.grid {
  display: grid;
  gap: 20px;
}

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

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

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

.card {
  background: var(--surface-lowest);
  border: 1px solid rgba(197, 200, 190, 0.42);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
}

.card.pad {
  padding: 24px;
}

.process-card {
  display: grid;
  gap: 14px;
  text-align: center;
  padding: 26px;
}

.pricing-teaser {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin-top: 40px;
}

.process-icon,
.soft-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  justify-self: center;
  border-radius: 50%;
  background: var(--surface-high);
  color: var(--primary);
  font-weight: 900;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

.upload-guide {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 20px;
}

.quality-list {
  display: grid;
  gap: 11px;
  margin-top: 16px;
}

.quality-list span {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-weight: 700;
}

.sample-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.sample-card {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 20px;
  background: var(--surface-lowest);
  border: 1px solid rgba(197, 200, 190, 0.45);
}

.sample-card .memory-portal {
  aspect-ratio: 1;
  border-radius: 20px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
}

.badge.good {
  background: var(--primary-soft);
  color: var(--primary-strong);
}

.badge.warn {
  background: var(--error-soft);
  color: var(--error);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.photo-slot {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 22px;
  border: 1px dashed rgba(117, 120, 112, 0.48);
  background: var(--surface-mid);
  color: var(--soft-muted);
  cursor: pointer;
}

.photo-slot.filled {
  border-style: solid;
  background: var(--surface-high);
}

.photo-slot input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.photo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-slot .remove {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: rgba(32, 26, 22, 0.72);
  color: white;
  cursor: pointer;
}

.privacy-note,
.gentle-note,
.error-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 16px;
  line-height: 1.55;
}

.privacy-note {
  background: var(--primary-soft);
  color: var(--primary-strong);
}

.gentle-note {
  background: var(--surface-high);
  color: var(--muted);
  border-left: 4px solid var(--secondary-mid);
}

.error-note {
  background: var(--error-soft);
  color: var(--error);
}

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

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

.field.full {
  grid-column: 1 / -1;
}

label,
.field-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.required {
  color: var(--secondary);
}

input,
select,
textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--outline);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  padding: 11px 2px;
  outline: none;
}

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

input:focus,
select:focus,
textarea:focus {
  border-bottom-color: var(--primary);
  box-shadow: 0 1px 0 var(--primary);
}

.invalid input,
.invalid select,
.invalid textarea {
  border-bottom-color: var(--error);
}

.field-error {
  color: var(--error);
  font-size: 12px;
  min-height: 16px;
}

.animal-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 4px;
}

.animal-icons button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(117, 120, 112, 0.2);
  border-radius: 50%;
  background: var(--surface-lowest);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.animal-icons button.selected {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: 0 0 0 3px rgba(82, 96, 73, 0.12);
}

.animal-icon {
  width: 30px;
  height: 30px;
}

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

.chip {
  border: 1px solid rgba(117, 120, 112, 0.28);
  background: var(--surface-low);
  color: var(--muted);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 750;
  cursor: pointer;
}

.chip.selected {
  border-color: transparent;
  background: var(--primary);
  color: white;
}

.profile-preview {
  position: sticky;
  top: 124px;
}

.identity-card {
  position: relative;
  overflow: hidden;
  min-height: 510px;
  display: flex;
  align-items: flex-end;
  padding: 14px;
  border-radius: 28px;
  background: var(--surface-high);
  box-shadow: var(--shadow);
}

.identity-card .memory-portal {
  position: absolute;
  inset: 14px;
  border-radius: 28px;
}

.identity-card .memory-portal img {
  filter: saturate(0.95);
}

.identity-overlay {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 248, 245, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 30px -24px rgba(32, 26, 22, 0.8);
}

.mode-card,
.scene-card,
.resource-card {
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.mode-card:hover,
.scene-card:hover {
  transform: translateY(-2px);
}

.mode-card.selected,
.scene-card.selected {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary-soft) 45%, white);
  box-shadow: 0 0 0 4px rgba(82, 96, 73, 0.12), var(--shadow-soft);
}

.mode-image {
  position: relative;
  height: 190px;
  overflow: hidden;
  border-radius: 22px;
  background: var(--surface-mid);
  margin-bottom: 18px;
}

.selected-check {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 180ms ease, transform 180ms ease;
}

.selected .selected-check {
  opacity: 1;
  transform: scale(1);
}

.owner-upload {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(197, 200, 190, 0.5);
}

.scene-card {
  min-height: 168px;
}

.scene-card .soft-icon {
  justify-self: start;
  margin-bottom: 14px;
}

.scene-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 16px;
  background: var(--surface-mid);
  margin-bottom: 14px;
}

.scene-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.option-row {
  display: grid;
  gap: 18px;
}

.loading-screen {
  min-height: calc(100vh - 250px);
  display: grid;
  place-items: center;
  text-align: center;
}

.loading-card {
  max-width: 600px;
  display: grid;
  gap: 22px;
  justify-items: center;
}

.loading-asset {
  width: 128px;
  height: 128px;
  object-fit: contain;
  border-radius: 32px;
  box-shadow: var(--shadow-soft);
}

.orbital {
  position: relative;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: var(--surface-lowest);
  box-shadow: inset 0 2px 18px rgba(82, 96, 73, 0.08), var(--shadow);
}

.orbital::before,
.orbital::after {
  content: "";
  position: absolute;
  inset: 15px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--primary);
  border-right-color: var(--secondary-mid);
  animation: spin 3.8s linear infinite;
}

.orbital::after {
  inset: 35px;
  animation-duration: 6s;
  animation-direction: reverse;
  border-top-color: var(--secondary);
  border-right-color: var(--primary-soft);
}

.heart-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--primary);
  font-size: 28px;
}

.loading-steps {
  width: min(420px, 100%);
  display: grid;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.loading-steps li {
  padding: 13px 16px;
  border-radius: 999px;
  background: var(--surface-lowest);
  color: var(--muted);
  font-weight: 800;
  box-shadow: var(--shadow-soft);
  opacity: 0.48;
  animation: loadingLine 5.2s ease-in-out infinite;
}

.loading-steps li:nth-child(2) {
  animation-delay: 1.3s;
}

.loading-steps li:nth-child(3) {
  animation-delay: 2.6s;
}

.loading-steps li:nth-child(4) {
  animation-delay: 3.9s;
}

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

@keyframes loadingLine {
  0%,
  72%,
  100% {
    opacity: 0.48;
    transform: translateY(0);
  }
  12%,
  28% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

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

.preview-tile {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: 28px;
  border: 2px solid transparent;
  background: var(--surface-mid);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.preview-tile.selected {
  border-color: var(--primary);
}

.preview-tile:not(.selected) img {
  filter: saturate(0.82);
  opacity: 0.86;
}

.tile-actions {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.preview-tile:hover .tile-actions,
.preview-tile:focus-within .tile-actions {
  opacity: 1;
  transform: translateY(0);
}

.mini-btn {
  border: 0;
  border-radius: 999px;
  background: rgba(255, 248, 245, 0.94);
  color: var(--primary);
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.refine-panel {
  display: grid;
  gap: 14px;
}

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

.refine-grid button {
  min-height: 92px;
  display: grid;
  place-items: center;
  gap: 6px;
  border: 1px solid rgba(197, 200, 190, 0.42);
  border-radius: 16px;
  background: var(--surface-lowest);
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.warning-illustration {
  width: min(100%, 240px);
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 20px;
  justify-self: center;
  box-shadow: var(--shadow-soft);
}

.social-share-cover {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  min-height: 180px;
  background: var(--surface-high);
  color: white;
}

.social-share-cover img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  filter: saturate(0.92) brightness(0.82);
}

.social-share-cover div {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  line-height: 1.16;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.38);
}

.gallery-empty {
  min-height: 360px;
  display: grid;
  place-items: center;
  text-align: center;
}

.empty-illustration {
  width: min(260px, 80vw);
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 24px;
  margin: 0 auto 10px;
  box-shadow: var(--shadow-soft);
}

.gallery-card {
  overflow: hidden;
}

.gallery-card img {
  aspect-ratio: 1;
}

.gallery-body {
  display: grid;
  gap: 8px;
  padding: 16px;
}

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

.resource-card {
  display: grid;
  gap: 8px;
  padding: 22px;
}

.resource-card a {
  color: var(--primary);
  font-weight: 800;
}

.price-card {
  position: relative;
  display: grid;
  gap: 16px;
}

.price-card.featured {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary-soft) 35%, white);
  box-shadow: 0 0 0 4px rgba(82, 96, 73, 0.12), var(--shadow);
}

.price-card.current {
  border-color: rgba(82, 96, 73, 0.62);
  background: linear-gradient(180deg, rgba(246, 244, 235, 0.98), rgba(255, 251, 247, 0.98));
}

.price-badge {
  justify-self: start;
  border-radius: 999px;
  background: var(--primary);
  color: white;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 800;
}

.price-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.price-line strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  line-height: 1;
}

.price-line span {
  color: var(--muted);
  font-weight: 800;
}

.price-card ul {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.price-card li {
  color: var(--muted);
  line-height: 1.45;
}

.price-card li::before {
  content: "OK";
  color: var(--primary);
  font-size: 11px;
  font-weight: 900;
  margin-right: 8px;
}

.account-grid {
  align-items: stretch;
}

.account-panel {
  display: grid;
  gap: 14px;
  align-content: start;
}

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

.check-row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid rgba(197, 200, 190, 0.52);
  border-radius: 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 700;
  background: var(--surface-lowest);
}

.check-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.check-row.invalid {
  border-color: rgba(185, 83, 62, 0.7);
  color: var(--error);
}

.plan-status,
.member-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.plan-status span,
.member-strip span {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(82, 96, 73, 0.08);
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
}

.member-welcome {
  background: linear-gradient(135deg, rgba(82, 96, 73, 0.1), rgba(173, 118, 73, 0.08));
}

.package-card {
  display: grid;
  gap: 16px;
  align-content: start;
}

.upsell-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.upsell-tile {
  min-height: 120px;
  display: grid;
  place-items: center;
  gap: 8px;
  border: 1px solid rgba(197, 200, 190, 0.42);
  border-radius: 18px;
  background: var(--surface-lowest);
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
}

.operator-card,
.payment-card {
  display: grid;
  gap: 10px;
}

.mvp-stack {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 26px;
  align-items: start;
}

.mvp-stack ol {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.55;
  font-weight: 700;
}

.footer {
  width: var(--page);
  margin: 0 auto;
  padding: 32px 0 120px;
  border-top: 1px solid rgba(197, 200, 190, 0.55);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
}

.bottom-nav {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 40;
  display: none;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  padding: 8px;
  border-radius: 22px;
  background: rgba(255, 248, 245, 0.96);
  border: 1px solid rgba(197, 200, 190, 0.6);
  box-shadow: 0 -8px 30px -24px rgba(82, 96, 73, 0.8);
  backdrop-filter: blur(18px);
}

.bottom-nav button {
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 18px;
  padding: 10px 4px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.bottom-nav button.active {
  background: var(--primary);
  color: white;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 96px;
  z-index: 60;
  transform: translateX(-50%);
  padding: 13px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  box-shadow: var(--shadow);
  font-weight: 800;
  animation: toast 2600ms ease forwards;
}

@keyframes toast {
  0% {
    opacity: 0;
    transform: translate(-50%, 12px);
  }
  12%,
  86% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, 12px);
  }
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(32, 26, 22, 0.62);
}

.modal-card {
  width: min(920px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: var(--surface);
  border-radius: 28px;
  box-shadow: 0 32px 80px -30px rgba(0, 0, 0, 0.55);
}

.modal-card img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  display: block;
  background: var(--surface-high);
}

.modal-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
}

.small {
  font-size: 13px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 860px) {
  :root {
    --page: min(100vw - 32px, 680px);
  }

  .app-shell {
    padding-bottom: 102px;
  }

  .topbar-inner {
    min-height: 68px;
  }

  .nav {
    display: none;
  }

  .brand {
    font-size: 21px;
    justify-self: center;
  }

  .hero,
  .split,
  .upload-guide {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    text-align: center;
  }

  .hero-copy,
  .hero-copy .button-row {
    justify-items: center;
    justify-content: center;
  }

  .hero-photo {
    width: min(340px, 100%);
    justify-self: center;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .pricing-teaser,
  .mvp-stack {
    grid-template-columns: 1fr;
  }

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

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

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

  .profile-preview {
    position: static;
  }

  .identity-card {
    min-height: 430px;
  }

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

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

  .bottom-nav {
    display: grid;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 35px;
  }

  .hero-photo {
    width: min(300px, 100%);
  }

  .lead {
    font-size: 16px;
    line-height: 1.6;
  }

  .hero-copy .button-row .btn-secondary {
    display: none;
  }

  .page {
    padding-top: 34px;
  }

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

  .progress-meta {
    display: grid;
    gap: 4px;
  }
}
