@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  color-scheme: light dark;
  --page-bg: #fdf9f7;
  --page-bg-soft: #f8f0ea;
  --surface: #ffffff;
  --surface-soft: #fdf5f0;
  --surface-overlay: rgb(255 252 250 / 0.95);
  --text: #2c1810;
  --heading: #1a0e0a;
  --muted: #7a5a4e;
  --faint: #a08070;
  --border: #e8d0c4;
  --border-strong: #9e6b59;
  --button-bg: #8b4f3e;
  --button-bg-hover: #7a4235;
  --button-fg: #ffffff;
  --button-muted: #d4a898;
  --danger: #c0392b;
  --success: #4a7c59;
  --accent-rose: #c07268;
  --accent-teal: #7a9e8a;
  --shadow: 0 20px 48px rgb(43 20 10 / 0.11);
  --shadow-soft: 0 8px 24px rgb(43 20 10 / 0.07);
  --white: #ffffff;
  --rose-50: #fdf0ed;
  --rose-100: #f9ddd6;
  --rose-700: #8b4f3e;
  --amber-100: #fdf3e6;
  --amber-700: #8b6a2e;
  --gray-100: #f5ede8;
  --gray-200: #e8d0c4;
  --gray-400: #a08070;
  --gray-500: #907060;
  --gray-600: #7a5a4e;
  --gray-700: #4a2e24;
  --gray-800: #2c1810;
  --indigo-50: #fdf5f0;
  --indigo-100: #e8d0c4;
  --indigo-200: #e0bfad;
  --indigo-400: #a06a58;
  --indigo-600: #8b4f3e;
  --green-50: #eef5ef;
  --green-200: #b8d4bc;
  --green-800: #4a7c59;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page-bg: #150c08;
    --page-bg-soft: #1c1009;
    --surface: #201208;
    --surface-soft: #2a1810;
    --surface-overlay: rgb(20 12 8 / 0.95);
    --text: #f5ede8;
    --heading: #fff8f5;
    --muted: #c8a898;
    --faint: #a08878;
    --border: #4a2e22;
    --border-strong: #c09080;
    --button-bg: #c09080;
    --button-bg-hover: #d0a090;
    --button-fg: #1a0e0a;
    --button-muted: #6a4035;
    --danger: #f07060;
    --success: #7ab88a;
    --accent-rose: #e09080;
    --accent-teal: #90b8a0;
    --shadow: 0 20px 48px rgb(0 0 0 / 0.5);
    --shadow-soft: 0 8px 24px rgb(0 0 0 / 0.35);
    --rose-50: #2a1810;
    --rose-100: #3a2018;
    --rose-700: #c09080;
    --amber-100: #2a2010;
    --amber-700: #d4a060;
    --gray-100: #2a1810;
    --gray-200: #4a2e22;
    --gray-400: #a08878;
    --gray-500: #a08878;
    --gray-600: #c8a898;
    --gray-700: #f0e0d8;
    --gray-800: #f5ede8;
    --indigo-50: #2a1810;
    --indigo-100: #4a2e22;
    --indigo-200: #5a3828;
    --indigo-400: #c09080;
    --indigo-600: #c09080;
    --green-50: #162018;
    --green-200: #2a4a30;
    --green-800: #7ab88a;
  }
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
    Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  background: var(--page-bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4 {
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
}

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 16px;
  background: var(--page-bg-soft);
}

.finder-card {
  width: 100%;
  max-width: 448px;
  padding: 36px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.admin-card {
  max-width: 560px;
}

.setup-card {
  max-width: 920px;
}

.header {
  margin-bottom: 32px;
  text-align: center;
}

.camera {
  margin-bottom: 16px;
  font-size: 48px;
  line-height: 1;
}

h1 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0.01em;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.landing-page {
  min-height: 100vh;
  background: var(--page-bg);
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto;
  padding: 18px max(24px, calc((100vw - 1120px) / 2));
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gray-800);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--gray-600);
  font-size: 14px;
  font-weight: 600;
}

.nav-actions a:not(.nav-button):hover {
  color: var(--rose-700);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  background: var(--surface);
  color: var(--gray-800);
  cursor: pointer;
  transition:
    border-color 200ms ease,
    background 200ms ease;
}

.nav-button {
  border-radius: 999px;
  padding: 9px 18px;
  background: var(--button-bg);
  color: var(--button-fg);
  box-shadow: var(--shadow-soft);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav-button:hover {
  background: var(--button-bg-hover);
  color: var(--button-fg);
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.95fr);
  align-items: center;
  gap: 48px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 58px 24px 56px;
}

.hero-copy h1 {
  max-width: 620px;
  margin: 0;
  color: var(--heading);
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.01em;
  font-weight: 600;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--rose-700);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-text {
  max-width: 560px;
  margin-top: 22px;
  color: var(--gray-600);
  font-size: 18px;
  line-height: 1.7;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-badges span {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 14px;
  background: var(--surface);
  color: var(--gray-700);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 13px 22px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.primary-link {
  background: var(--button-bg);
  color: var(--button-fg);
  box-shadow: var(--shadow-soft);
}

.primary-link:hover {
  background: var(--button-bg-hover);
  color: var(--button-fg);
}

.secondary-link {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--gray-800);
}

.hero-preview {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: 28px;
  background: var(--surface-soft);
  box-shadow: var(--shadow);
}

.hero-preview::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, rgb(0 0 0 / 0.02), rgb(0 0 0 / 0.30));
  pointer-events: none;
}

.hero-preview img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.preview-panel {
  position: absolute;
  z-index: 1;
  right: 22px;
  bottom: 22px;
  display: grid;
  gap: 4px;
  min-width: 210px;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px;
  background: var(--surface-overlay);
  box-shadow: var(--shadow-soft);
}

.preview-label {
  color: var(--gray-500);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.preview-panel strong {
  color: var(--gray-800);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 22px;
  font-weight: 600;
}

.preview-panel span:last-child {
  width: fit-content;
  border-radius: 999px;
  padding: 5px 12px;
  background: var(--green-50);
  color: var(--green-800);
  font-size: 13px;
  font-weight: 700;
}

.preview-panel small {
  color: var(--gray-500);
  font-size: 12px;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px 36px;
}

.proof-strip div {
  display: grid;
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.proof-strip strong {
  color: var(--gray-800);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 18px;
  font-weight: 600;
}

.proof-strip span {
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.5;
}

.landing-section,
.buy-section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 72px 24px;
}

.section-heading {
  max-width: 640px;
  margin-bottom: 28px;
}

.section-heading h2,
.buy-section h2 {
  margin: 0;
  color: var(--gray-800);
  font-size: 40px;
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.01em;
}

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

.feature-grid article {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.feature-grid article:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

.feature-grid h3 {
  margin: 0 0 10px;
  color: var(--gray-800);
  font-size: 20px;
  font-weight: 600;
}

.feature-grid p,
.process-list li,
.buy-section p {
  color: var(--gray-600);
  line-height: 1.65;
}

.sales-points {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding-left: 20px;
  color: var(--gray-700);
  font-weight: 600;
  line-height: 1.5;
}

.feature-grid code {
  color: var(--amber-700);
  font-weight: 800;
}

.process-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.process-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  display: grid;
  gap: 14px;
  align-content: start;
  border-radius: 16px;
  padding: 22px;
  background: var(--rose-50);
  font-weight: 500;
}

.reviews-section {
  background: var(--page-bg-soft);
}

.reviews-section .section-heading p:last-child {
  margin-top: 10px;
  color: var(--gray-600);
  line-height: 1.6;
}

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

.reviews-grid figure {
  display: grid;
  gap: 14px;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.reviews-grid figure div {
  color: var(--accent-rose);
  font-size: 15px;
  letter-spacing: 0.05em;
}

.reviews-grid blockquote {
  margin: 0;
  color: var(--gray-800);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 20px;
  font-weight: 500;
  font-style: italic;
  line-height: 1.5;
}

.reviews-grid figcaption {
  color: var(--gray-500);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.process-list span {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--amber-100);
  color: var(--amber-700);
  font-weight: 800;
  font-size: 15px;
}

.buy-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: 28px;
  align-items: center;
  margin-bottom: 24px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
}

.app-footer {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 4px 24px 24px;
  color: var(--gray-500);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.page-shell > .app-footer {
  max-width: 920px;
  padding: 0 8px;
}

.app-footer p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.app-footer a {
  color: var(--rose-700);
}

.app-footer a:hover {
  text-decoration: underline;
}

.contact-card {
  display: grid;
  gap: 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.contact-line {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  background: var(--surface-soft);
  color: var(--gray-800);
  box-shadow: var(--shadow-soft);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.contact-line:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

.contact-line small {
  display: block;
  color: var(--gray-500);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-line strong {
  display: block;
  color: var(--rose-700);
  font-size: 15px;
  overflow-wrap: break-word;
  word-break: break-word;
}

.contact-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--rose-700);
  font-size: 20px;
  font-weight: 900;
}

.header p {
  color: var(--gray-500);
  font-size: 14px;
  line-height: 1.5;
}

.header strong {
  color: var(--gray-600);
  font-weight: 500;
}

.search-wrap {
  position: relative;
}

input,
textarea {
  width: 100%;
  border: 1.5px solid var(--gray-200);
  border-radius: 12px;
  padding: 12px 16px;
  color: var(--gray-800);
  background: var(--surface);
  font: inherit;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease;
}

input::placeholder,
textarea::placeholder {
  color: var(--gray-400);
}

input:focus,
textarea:focus {
  border-color: var(--accent-rose);
  box-shadow: 0 0 0 3px rgb(192 114 104 / 0.12);
  outline: none;
}

input:disabled,
textarea:disabled {
  background: var(--surface-soft);
  color: var(--muted);
  cursor: not-allowed;
}

input[type="file"] {
  padding: 8px;
  border-style: dashed;
  border-color: var(--border);
  cursor: pointer;
}

input[type="file"]::file-selector-button {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--gray-700);
  font-weight: 600;
  cursor: pointer;
  transition:
    background 150ms ease,
    border-color 150ms ease;
}

input[type="file"]::file-selector-button:hover {
  background: var(--border);
  border-color: var(--gray-400);
}

input[type="file"]:focus::file-selector-button {
  outline: 2px solid var(--accent-rose);
  outline-offset: 2px;
}

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

button {
  border: 0;
  border-radius: 12px;
  padding: 10px 16px;
  background: var(--button-bg);
  color: var(--button-fg);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition:
    background 200ms ease,
    opacity 200ms ease,
    transform 150ms ease;
}

button:hover:not(:disabled) {
  background: var(--button-bg-hover);
  transform: translateY(-1px);
}

button:active:not(:disabled) {
  transform: translateY(0);
}

button:focus {
  outline: 2px solid var(--accent-rose);
  outline-offset: 2px;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

button:disabled::after {
  content: "";
}

button.is-loading {
  position: relative;
  color: transparent;
  cursor: wait;
}

button.is-loading::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  top: 50%;
  left: 50%;
  margin-left: -7px;
  margin-top: -7px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 600ms linear infinite;
}

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

.secondary-button {
  border: 1.5px solid var(--gray-200);
  background: var(--surface);
  color: var(--gray-700);
  transition:
    border-color 200ms ease,
    background 200ms ease,
    box-shadow 200ms ease;
}

.secondary-button:hover:not(:disabled) {
  border-color: var(--border-strong);
  background: var(--surface-soft);
  box-shadow: var(--shadow-soft);
  color: var(--gray-800);
}

.secondary-button:disabled {
  opacity: 0.5;
  border-color: var(--gray-200);
}

.link-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--rose-700);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.import-status {
  min-height: 20px;
  color: var(--gray-500);
  font-size: 13px;
}

.import-status.error {
  color: var(--danger);
}

.import-status.success {
  color: var(--success);
}

.support-contact {
  margin-top: 14px;
  color: var(--gray-600);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.support-contact a {
  color: var(--rose-700);
  font-weight: 700;
  overflow-wrap: break-word;
  word-break: break-word;
}

.support-contact a:hover {
  text-decoration: underline;
}

.admin-form,
.admin-output {
  display: grid;
  gap: 10px;
}

.payment-summary {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  background: var(--surface-soft);
}

.payment-summary div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--gray-800);
  font-weight: 700;
}

.payment-summary strong {
  color: var(--rose-700);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 28px;
  font-weight: 600;
}

.payment-summary p {
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.55;
}

.access-code-form {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  border-top: 1px solid var(--gray-200);
  padding-top: 16px;
}

.access-code-form label {
  color: var(--gray-600);
  font-size: 13px;
  font-weight: 600;
}

.access-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.auth-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
  color: var(--rose-700);
  font-size: 14px;
  font-weight: 700;
}

.metadata-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.metadata-grid label {
  display: grid;
  gap: 7px;
  color: var(--gray-600);
  font-size: 13px;
  font-weight: 600;
}

.share-tools {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 12px;
  margin-bottom: 18px;
}

.share-card,
.guest-link-field {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  background: var(--surface-soft);
}

.share-card {
  display: grid;
  gap: 12px;
  align-content: start;
}

.share-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.share-card-header h2 {
  margin: 0 0 4px;
  color: var(--gray-800);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}

.share-card-header p {
  margin: 0;
  color: var(--gray-600);
  font-size: 13px;
  line-height: 1.45;
}

.share-card-header span {
  flex: 0 0 auto;
  color: var(--success);
  font-size: 12px;
  font-weight: 700;
}

.copy-link-button {
  width: 100%;
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  color: var(--gray-800);
  text-align: left;
}

.copy-link-button span {
  display: block;
  overflow-wrap: break-word;
  word-break: break-word;
  line-height: 1.45;
}

.copy-link-button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.qr-card .secondary-button {
  flex: 0 0 auto;
}

.qr-code-panel {
  display: grid;
  justify-items: center;
}

.qr-code-frame {
  position: relative;
  width: min(100%, 280px);
  aspect-ratio: 1;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  background: #fff;
}

.qr-code-frame img {
  display: block;
  width: 100%;
  height: 100%;
}

.qr-code-frame span {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 2px solid #fff;
  border-radius: 6px;
  padding: 6px 9px;
  background: #fff;
  color: #111;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 10px rgb(0 0 0 / 14%);
}

.guest-link-field span {
  color: var(--gray-500);
  font-size: 12px;
  line-height: 1.45;
}

.template-download {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  background: var(--surface-soft);
}

.template-download h2 {
  margin: 0 0 4px;
  color: var(--gray-800);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}

.template-download p {
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.5;
}

.template-download .secondary-link {
  flex: 0 0 auto;
}

.form-help {
  margin-top: -4px;
  color: var(--gray-600);
  font-size: 13px;
  line-height: 1.45;
}

.warning-text {
  font-weight: 600;
}

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

.group-editor {
  display: grid;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  background: var(--surface-soft);
}

.group-editor-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.group-editor-header h2 {
  margin: 0 0 4px;
  color: var(--gray-800);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}

.group-editor-header p,
.editor-empty {
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.5;
}

#editor-row-count {
  flex: 0 0 auto;
  color: var(--gray-500);
  font-size: 13px;
  font-weight: 700;
}

.group-editor-rows {
  display: grid;
  gap: 12px;
}

.group-editor-row {
  display: grid;
  gap: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  background: var(--surface);
}

.group-editor-row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.group-editor-label {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--gray-700);
  letter-spacing: 0.02em;
}

.group-members {
  display: grid;
  gap: 8px;
}

.group-member-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 8px;
}

.group-editor-row label {
  display: grid;
  gap: 5px;
  color: var(--gray-600);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.delete-editor-row {
  min-height: 46px;
}

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

.setup-panel {
  align-content: start;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 18px;
  background: var(--surface);
}

.setup-panel h2 {
  margin: 0 0 4px;
  color: var(--gray-800);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}

.admin-form label,
.admin-output h2 {
  color: var(--faint);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-output {
  margin-top: 18px;
  border-top: 1px solid var(--gray-200);
  padding-top: 18px;
}

.admin-output h2 {
  margin: 0;
}

.admin-output p {
  color: var(--gray-500);
  font-size: 13px;
}

.setup-output input + input {
  margin-top: 10px;
}

.setup-open-link {
  width: fit-content;
  margin-top: 10px;
}

.admin-output code {
  color: var(--gray-700);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
}

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

.couple-status {
  margin-top: 12px;
  color: var(--gray-500);
  font-size: 13px;
  text-align: center;
}

.results {
  margin-top: 24px;
}

.result-count {
  margin-bottom: 12px;
  color: var(--gray-500);
  font-size: 14px;
}

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

.match-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--rose-100);
  border-radius: 14px;
  padding: 14px 18px;
  background: var(--rose-50);
}

.match-name {
  min-width: 0;
  color: var(--gray-800);
  font-weight: 500;
  overflow-wrap: anywhere;
}

.group-pill {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 5px 14px;
  background: var(--button-bg);
  color: var(--button-fg);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.group-card {
  margin-top: 16px;
}

.group-card:first-child {
  margin-top: 0;
}

.group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-radius: 14px 14px 0 0;
  padding: 10px 18px;
  background: var(--button-bg);
  color: var(--button-fg);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.group-size {
  color: var(--button-muted);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 400;
  white-space: nowrap;
}

.member-list {
  max-height: 224px;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  border: 1px solid var(--indigo-200);
  border-top: 0;
  border-radius: 0 0 14px 14px;
  list-style: none;
}

.member-list li {
  padding: 11px 18px;
  color: var(--gray-700);
  font-size: 14px;
}

.member-list li + li {
  border-top: 1px solid var(--gray-100);
}

.summary {
  margin-top: 16px;
  border: 1px solid var(--green-200);
  border-radius: 14px;
  padding: 16px;
  background: var(--green-50);
  color: var(--green-800);
  text-align: center;
  font-weight: 600;
}

.empty {
  padding: 32px 0;
  text-align: center;
}

.empty-icon {
  margin-bottom: 10px;
  font-size: 32px;
  line-height: 1;
}

.empty p {
  color: var(--gray-500);
}

.empty .hint {
  margin-top: 4px;
  color: var(--gray-400);
  font-size: 14px;
}

@media (min-width: 1120px) {
  .setup-card {
    max-width: 1120px;
  }

  .finder-card {
    max-width: 1120px;
  }

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

@media (max-width: 860px) {
  .site-nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px 14px;
    padding: 12px 18px;
  }

  .brand {
    min-width: 0;
    font-size: 17px;
    line-height: 1.2;
  }

  .brand span {
    flex: 0 0 auto;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0;
    background: var(--surface);
    color: var(--gray-800);
    box-shadow: var(--shadow-soft);
  }

  .nav-toggle-icon,
  .nav-toggle-icon::before,
  .nav-toggle-icon::after {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    content: "";
    transition:
      transform 160ms ease,
      opacity 160ms ease;
  }

  .nav-toggle-icon {
    position: relative;
  }

  .nav-toggle-icon::before,
  .nav-toggle-icon::after {
    position: absolute;
    left: 0;
    top: 0;
  }

  .nav-toggle-icon::before {
    transform: translateY(-6px);
  }

  .nav-toggle-icon::after {
    transform: translateY(6px);
  }

  .site-nav.is-open .nav-toggle-icon {
    transform: rotate(45deg);
  }

  .site-nav.is-open .nav-toggle-icon::before {
    opacity: 0;
  }

  .site-nav.is-open .nav-toggle-icon::after {
    transform: rotate(90deg);
  }

  .nav-actions {
    grid-column: 1 / -1;
    display: none;
    width: 100%;
    gap: 6px;
    padding-top: 6px;
    font-size: 15px;
  }

  .site-nav.is-open .nav-actions {
    display: grid;
  }

  .nav-actions a {
    width: 100%;
    border-radius: 10px;
    padding: 12px;
    background: var(--surface);
  }

  .nav-actions a.nav-button {
    background: var(--button-bg);
    color: var(--button-fg);
    text-align: center;
    box-shadow: var(--shadow-soft);
  }

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

  .landing-hero,
  .feature-grid,
  .process-list,
  .proof-strip,
  .reviews-grid,
  .buy-section,
  .template-download,
  .setup-grid,
  .share-tools,
  .metadata-grid {
    grid-template-columns: 1fr;
  }

  .template-download {
    align-items: stretch;
    flex-direction: column;
  }

  .group-editor-header {
    display: grid;
    grid-template-columns: 1fr;
  }

  .landing-hero {
    gap: 28px;
    padding-top: 30px;
  }

  .hero-preview,
  .hero-preview img {
    min-height: 360px;
  }

  .section-heading h2,
  .buy-section h2 {
    font-size: 32px;
  }
}

@media (max-width: 420px) {
  .finder-card {
    padding: 24px;
  }

  .access-code-row {
    grid-template-columns: 1fr;
  }

  .match-item {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .button-row {
    flex-direction: column;
    align-items: stretch;
  }
}
