:root {
  --white: #ffffff;
  --rose-50: #fff1f2;
  --rose-100: #ffe4e6;
  --rose-700: #be123c;
  --amber-100: #fef3c7;
  --amber-700: #b45309;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --indigo-50: #eef2ff;
  --indigo-100: #e0e7ff;
  --indigo-200: #c7d2fe;
  --indigo-400: #818cf8;
  --indigo-600: #4f46e5;
  --green-50: #f0fdf4;
  --green-200: #bbf7d0;
  --green-800: #166534;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

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

.page-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: linear-gradient(135deg, #eff6ff, var(--indigo-100));
}

.finder-card {
  width: 100%;
  max-width: 448px;
  padding: 32px;
  border-radius: 16px;
  background: var(--white);
  box-shadow:
    0 20px 25px -5px rgb(0 0 0 / 0.1),
    0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.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: 24px;
  line-height: 32px;
  font-weight: 700;
}

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:
    linear-gradient(180deg, #fff7ed 0%, #fffaf7 38%, #ffffff 100%);
}

.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 rgb(254 215 170 / 0.55);
  background: rgb(255 250 247 / 0.9);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gray-800);
  font-weight: 800;
}

.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;
}

.nav-button {
  border-radius: 999px;
  padding: 9px 14px;
  background: linear-gradient(135deg, var(--rose-700), #ea580c);
  color: var(--white);
  box-shadow: 0 10px 22px rgb(190 18 60 / 0.18);
}

.nav-button:hover {
  color: var(--white);
  box-shadow: 0 12px 26px rgb(190 18 60 / 0.26);
}

.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: #18181b;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.95;
  letter-spacing: 0;
}

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

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

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

.hero-badges span {
  border: 1px solid #fed7aa;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgb(255 255 255 / 0.78);
  color: var(--gray-700);
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 10px 25px rgb(154 52 18 / 0.08);
}

.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 18px;
  font-size: 15px;
  font-weight: 800;
}

.primary-link {
  background: linear-gradient(135deg, var(--rose-700), #ea580c);
  color: var(--white);
  box-shadow: 0 14px 28px rgb(190 18 60 / 0.25);
}

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

.hero-preview {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: 24px;
  background: var(--gray-100);
  box-shadow:
    0 24px 70px rgb(15 23 42 / 0.18),
    0 2px 0 rgb(255 255 255 / 0.7) inset;
}

.hero-preview::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, rgb(0 0 0 / 0.04), rgb(0 0 0 / 0.34)),
    linear-gradient(135deg, rgb(190 18 60 / 0.15), transparent 48%);
  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 rgb(255 255 255 / 0.55);
  border-radius: 16px;
  padding: 16px;
  background: rgb(255 255 255 / 0.92);
  box-shadow: 0 16px 35px rgb(0 0 0 / 0.18);
}

.preview-label {
  color: var(--gray-500);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.preview-panel strong {
  color: var(--gray-800);
  font-size: 20px;
}

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

.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 #fed7aa;
  border-radius: 8px;
  padding: 16px;
  background: rgb(255 255 255 / 0.82);
  box-shadow: 0 14px 36px rgb(154 52 18 / 0.08);
}

.proof-strip strong {
  color: var(--gray-800);
}

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

.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: 36px;
  line-height: 1.08;
}

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

.feature-grid article {
  border: 1px solid #fed7aa;
  border-radius: 8px;
  padding: 22px;
  background: var(--white);
  box-shadow: 0 16px 36px rgb(154 52 18 / 0.06);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.feature-grid article:hover {
  transform: translateY(-3px);
  border-color: #fb923c;
  box-shadow: 0 20px 44px rgb(154 52 18 / 0.12);
}

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

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

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

.process-section {
  border-top: 1px solid #ffedd5;
  border-bottom: 1px solid #ffedd5;
}

.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: 8px;
  padding: 20px;
  background: var(--rose-50);
  font-weight: 600;
}

.reviews-section {
  background: linear-gradient(180deg, #ffffff, #fff7ed);
}

.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 #fecdd3;
  border-radius: 8px;
  padding: 22px;
  background: var(--white);
  box-shadow: 0 18px 44px rgb(190 18 60 / 0.08);
}

.reviews-grid figure div {
  color: #f59e0b;
  font-size: 15px;
  letter-spacing: 0;
}

.reviews-grid blockquote {
  margin: 0;
  color: var(--gray-800);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
}

.reviews-grid figcaption {
  color: var(--gray-500);
  font-size: 13px;
  font-weight: 700;
}

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

.buy-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: 28px;
  align-items: center;
  margin-bottom: 24px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, #fff7ed, #fff1f2),
    var(--white);
}

.contact-card {
  display: grid;
  gap: 14px;
  border: 1px solid #fed7aa;
  border-radius: 18px;
  padding: 22px;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.96), rgb(255 247 237 / 0.82)),
    var(--white);
  box-shadow: 0 24px 58px rgb(154 52 18 / 0.16);
}

.contact-line {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  padding: 12px;
  background: rgb(255 255 255 / 0.86);
  color: var(--gray-800);
  box-shadow: 0 10px 24px rgb(154 52 18 / 0.07);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.contact-line:hover {
  transform: translateY(-2px);
  border-color: #fb923c;
  box-shadow: 0 16px 34px rgb(154 52 18 / 0.12);
}

.contact-line small {
  display: block;
  color: var(--gray-500);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

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

.contact-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff1f2, #ffedd5);
  color: var(--rose-700);
  font-size: 20px;
  font-weight: 900;
}

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

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

.search-wrap {
  position: relative;
}

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

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

input:focus,
textarea:focus {
  border-color: var(--indigo-400);
  outline: none;
}

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

button {
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  background: var(--indigo-600);
  color: var(--white);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

button:focus {
  outline: 2px solid var(--indigo-400);
  outline-offset: 2px;
}

.secondary-button {
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-700);
}

.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: #b91c1c;
}

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

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

.payment-summary {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  padding: 16px;
  background: rgb(255 247 237 / 0.76);
}

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

.payment-summary strong {
  color: var(--rose-700);
  font-size: 24px;
}

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

.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(3, 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;
}

.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: 8px;
  padding: 18px;
  background: var(--white);
}

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

.admin-form label,
.admin-output h2 {
  color: var(--gray-600);
  font-size: 13px;
  font-weight: 600;
}

.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;
}

.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: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.match-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--indigo-100);
  border-radius: 12px;
  padding: 12px 16px;
  background: var(--indigo-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: 4px 12px;
  background: var(--indigo-600);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.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: 12px 12px 0 0;
  padding: 8px 16px;
  background: var(--indigo-600);
  color: var(--white);
  font-weight: 600;
}

.group-size {
  color: var(--indigo-200);
  font-size: 14px;
  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 12px 12px;
  list-style: none;
}

.member-list li {
  padding: 10px 16px;
  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: 12px;
  padding: 16px;
  background: var(--green-50);
  color: var(--green-800);
  text-align: center;
  font-weight: 600;
}

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

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

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

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

@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: 15px;
    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 #fed7aa;
    border-radius: 8px;
    padding: 0;
    background: var(--white);
    color: var(--gray-800);
    box-shadow: 0 10px 22px rgb(154 52 18 / 0.08);
  }

  .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: 8px;
    padding: 12px;
    background: rgb(255 255 255 / 0.74);
  }

  .nav-actions a.nav-button {
    background: linear-gradient(135deg, var(--rose-700), #ea580c);
    color: var(--white);
    text-align: center;
    box-shadow: 0 12px 26px rgb(190 18 60 / 0.22);
  }

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

  .landing-hero,
  .feature-grid,
  .process-list,
  .proof-strip,
  .reviews-grid,
  .buy-section,
  .setup-grid,
  .metadata-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: 30px;
  }
}

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

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

  .button-row {
    flex-direction: column;
  }
}
