:root {
  --ink: #14221e;
  --muted: #5e6b66;
  --paper: #fbfaf4;
  --cream: #f1eadc;
  --green: #0e6f54;
  --green-dark: #083d35;
  --teal: #104f5a;
  --gold: #b88742;
  --rose: #c46763;
  --line: rgba(20, 34, 30, 0.14);
  --shadow: 0 24px 70px rgba(11, 43, 35, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 16px;
  left: 50%;
  width: min(1120px, calc(100% - 28px));
  height: 58px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 10px 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(251, 250, 244, 0.84);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #fff;
  background: var(--green-dark);
  font-size: 0.78rem;
  letter-spacing: 0;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: #33423d;
  font-size: 0.92rem;
  font-weight: 700;
}

.header-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  color: #fff;
  background: var(--ink);
  font-weight: 800;
  white-space: nowrap;
}

.hero {
  position: relative;
  min-height: 860px;
  overflow: hidden;
  color: #fff;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("assets/malayali-nikah-hero.png");
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(8, 35, 30, 0.92) 0%, rgba(8, 35, 30, 0.72) 42%, rgba(8, 35, 30, 0.24) 100%),
    linear-gradient(180deg, rgba(8, 35, 30, 0.26) 0%, rgba(8, 35, 30, 0.12) 64%, var(--paper) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 32px));
  min-height: 860px;
  margin: 0 auto;
  padding: 132px 0 86px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(330px, 0.72fr);
  align-items: center;
  gap: 54px;
}

.hero-copy {
  max-width: 650px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Playfair Display", Georgia, serif;
  letter-spacing: 0;
}

h1 {
  max-width: 690px;
  margin-bottom: 22px;
  font-size: clamp(3.35rem, 8vw, 6.9rem);
  line-height: 0.91;
}

.hero-text {
  max-width: 620px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.12rem;
  line-height: 1.7;
}

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

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
}

.primary-button {
  color: var(--green-dark);
  background: #fff;
}

.secondary-button {
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
}

.phone-shell {
  position: relative;
  justify-self: end;
  width: min(100%, 388px);
  min-height: 660px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 34px;
  background: rgba(253, 250, 240, 0.94);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.locked-preview .profile-card,
.locked-preview .mini-panel,
.locked-preview .deck-status {
  filter: blur(8px);
  opacity: 0.52;
}

.preview-lock {
  position: absolute;
  inset: 74px 16px 16px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: var(--green-dark);
  background: rgba(251, 250, 244, 0.64);
  font-weight: 900;
  text-align: center;
  pointer-events: none;
}

.preview-lock.hidden {
  display: none;
}

.phone-status,
.app-topbar,
.profile-body,
.action-row,
.screen-header,
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.phone-status {
  padding: 4px 8px 12px;
  font-size: 0.78rem;
  font-weight: 800;
}

.status-dots {
  color: var(--green);
  letter-spacing: 0;
}

.app-topbar {
  margin-bottom: 14px;
}

.app-label {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.icon-button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--green-dark);
  font-size: 1.25rem;
}

.profile-card,
.mini-panel,
.feature-card,
.screen-card,
.signup-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
}

.profile-card {
  overflow: hidden;
}

.profile-photo {
  display: flex;
  align-items: end;
  min-height: 315px;
  padding: 18px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(11, 43, 35, 0) 42%, rgba(11, 43, 35, 0.88) 100%),
    linear-gradient(135deg, #c8d4b8, #0f6252 48%, #f1dfc1);
}

.profile-photo span {
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.24);
  font-size: 0.8rem;
  font-weight: 800;
}

.profile-body {
  gap: 14px;
  padding: 18px 18px 8px;
}

.profile-body h2 {
  margin-bottom: 4px;
  font: 800 1.55rem/1.1 Inter, sans-serif;
}

.profile-body p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.match-score {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  font-weight: 900;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 18px 18px;
}

.chips span,
.segmented span,
.country-grid span,
.prompt-list span {
  border-radius: 999px;
  background: #edf4ec;
  color: #275044;
  font-size: 0.78rem;
  font-weight: 800;
}

.chips span {
  padding: 7px 10px;
}

.action-row {
  justify-content: center;
  gap: 16px;
  padding: 18px 0;
}

.action-row button {
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  color: var(--green-dark);
  background: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  font-size: 1.6rem;
  font-weight: 900;
  cursor: pointer;
}

.action-row button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.action-row button:nth-child(3) {
  color: #fff;
  background: var(--green);
}

.action-row button:nth-child(2) {
  color: var(--rose);
}

.mini-panel {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 10px;
  padding: 13px;
}

.mini-panel p {
  margin-bottom: 0;
  color: #3d4b46;
  font-size: 0.84rem;
  line-height: 1.5;
}

.mini-dot {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--rose);
}

.deck-status {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  text-align: center;
}

.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 86px 0;
}

.section-heading {
  max-width: 690px;
  margin-bottom: 32px;
}

.section h2,
.join-section h2 {
  margin-bottom: 14px;
  color: var(--green-dark);
  font-size: clamp(2.15rem, 5vw, 4.6rem);
  line-height: 0.98;
}

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

.sample-section {
  padding-top: 70px;
}

.sample-browser {
  display: grid;
  grid-template-columns: minmax(230px, 0.38fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.locked-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(184, 135, 66, 0.42);
  border-radius: 8px;
  background: #fff6df;
}

.locked-notice strong {
  color: var(--green-dark);
}

.locked-notice span {
  flex: 1;
  color: var(--muted);
}

.locked-notice a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  color: #fff;
  background: var(--green-dark);
  font-size: 0.86rem;
  font-weight: 900;
}

.locked-notice.hidden {
  display: none;
}

.sample-browser.locked {
  position: relative;
  pointer-events: none;
  user-select: none;
}

.sample-browser.locked .sample-list,
.sample-browser.locked .sample-detail {
  filter: blur(8px);
  opacity: 0.45;
}

.sample-browser.locked::after {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  border-radius: 8px;
  color: var(--green-dark);
  background: rgba(251, 250, 244, 0.58);
  content: "Membership required to view profiles";
  font-weight: 900;
  text-align: center;
}

.sample-list {
  display: grid;
  gap: 8px;
}

.sample-profile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 58px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fffdf7;
  text-align: left;
  cursor: pointer;
}

.sample-profile span {
  font-weight: 900;
}

.sample-profile strong {
  color: var(--green);
  font-size: 0.82rem;
}

.sample-profile.active {
  color: #fff;
  background: var(--green-dark);
}

.sample-profile.active strong {
  color: #f2d9a8;
}

.sample-detail {
  display: grid;
  grid-template-columns: minmax(210px, 0.42fr) minmax(0, 1fr);
  min-height: 430px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf7;
}

.sample-avatar {
  display: flex;
  align-items: flex-end;
  padding: 20px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(11, 43, 35, 0) 42%, rgba(11, 43, 35, 0.88) 100%),
    linear-gradient(135deg, #c8d4b8, #0f6252, #f1dfc1);
}

.sample-avatar span {
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.26);
  font-size: 0.8rem;
  font-weight: 900;
}

.sample-info {
  padding: 28px;
}

.sample-info h3 {
  margin-bottom: 8px;
  color: var(--green-dark);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 0.98;
}

.sample-info > p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.65;
}

.sample-chips {
  padding: 12px 0 20px;
}

.sample-note {
  max-width: 560px;
  margin-bottom: 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.feature-card {
  min-height: 250px;
  padding: 24px;
  background: #fffdf7;
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 32px;
  border-radius: 50%;
  color: #fff;
  background: var(--teal);
  font-size: 0.8rem;
  font-weight: 900;
}

.feature-card h3,
.trust-list h3,
.screen-card h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
}

.feature-card p,
.app-copy p,
.trust-list p,
.join-section p,
.profile-tip,
.screen-card p {
  color: var(--muted);
  line-height: 1.65;
}

.app-section {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 34px;
  align-items: center;
  width: 100%;
  max-width: none;
  padding: 86px max(16px, calc((100vw - 1120px) / 2));
  background: #e8efe8;
}

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

.screen-card {
  min-height: 340px;
  padding: 18px;
  background: #fffdf7;
}

.screen-card label {
  display: block;
  margin: 22px 0 8px;
  color: #53605b;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.segmented span,
.country-grid span {
  display: grid;
  min-height: 36px;
  place-items: center;
}

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

.range-track,
.profile-progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #dae2dc;
}

.range-track span {
  display: block;
  width: 66%;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.toggle-row {
  margin-top: 18px;
  gap: 14px;
  font-size: 0.88rem;
}

.toggle-row strong {
  color: var(--green);
}

.dark-screen {
  color: #fff;
  background: var(--green-dark);
}

.dark-screen .screen-header,
.dark-screen p {
  color: rgba(255, 255, 255, 0.78);
}

.prompt-list {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.prompt-list span {
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.profile-progress {
  margin: 36px 0 22px;
}

.profile-progress span {
  display: block;
  width: 82%;
  height: 100%;
  border-radius: inherit;
  background: var(--gold);
}

.trust-section {
  padding-bottom: 42px;
}

.trust-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.trust-list > div {
  min-height: 180px;
  padding: 26px;
  background: #fffdf7;
}

.join-section {
  width: min(1120px, calc(100% - 32px));
  margin: 44px auto 76px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.55fr);
  gap: 42px;
  align-items: center;
  padding: 38px;
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(8, 61, 53, 0.96), rgba(16, 79, 90, 0.96)),
    url("assets/malayali-nikah-hero.png") center/cover;
}

.join-section h2,
.join-section p {
  color: #fff;
}

.membership-card {
  max-width: 440px;
  margin-top: 26px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
}

.membership-card span {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.membership-card strong {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-size: 3rem;
  line-height: 1;
}

.membership-card p {
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.86);
}

.stripe-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin-bottom: 12px;
  border-radius: 8px;
  color: var(--green-dark);
  background: #fff;
  font-weight: 900;
}

.stripe-button.disabled {
  opacity: 0.52;
  cursor: not-allowed;
}

.membership-card small {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.45;
}

.signup-form {
  display: grid;
  gap: 10px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.94);
}

.signup-form label {
  color: var(--green-dark);
  font-size: 0.82rem;
  font-weight: 900;
}

.signup-form input,
.signup-form select {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.signup-form button {
  min-height: 48px;
  margin-top: 8px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--green);
  font-weight: 900;
}

.form-note {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.form-note.success {
  padding: 10px;
  border-radius: 8px;
  color: var(--green-dark);
  background: #e7f3df;
  font-weight: 800;
}

.site-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 860px) {
  .desktop-nav {
    display: none;
  }

  .brand span:last-child {
    overflow: hidden;
    max-width: 190px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero,
  .hero-content {
    min-height: auto;
  }

  .hero-content {
    grid-template-columns: 1fr;
    padding: 112px 0 56px;
    gap: 34px;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(8, 35, 30, 0.92) 0%, rgba(8, 35, 30, 0.8) 52%, rgba(8, 35, 30, 0.56) 100%),
      linear-gradient(180deg, rgba(8, 35, 30, 0) 0%, var(--paper) 100%);
  }

  h1 {
    font-size: clamp(3rem, 16vw, 4.85rem);
  }

  .hero-text {
    font-size: 1rem;
  }

  .phone-shell {
    justify-self: center;
  }

  .locked-notice {
    align-items: stretch;
    flex-direction: column;
  }

  .product-grid,
  .screens-grid,
  .trust-list,
  .sample-browser,
  .sample-detail,
  .join-section,
  .app-section {
    grid-template-columns: 1fr;
  }

  .app-section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .join-section {
    padding: 24px;
  }

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

@media (max-width: 520px) {
  .site-header {
    top: 10px;
    width: calc(100% - 18px);
  }

  .header-action {
    min-width: 0;
    max-width: 132px;
    font-size: 0.86rem;
  }

  .hero-content {
    width: min(100% - 22px, 1120px);
    padding-top: 96px;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .phone-shell {
    min-height: 0;
    padding: 12px;
    border-radius: 26px;
  }

  .profile-photo {
    min-height: 245px;
  }

  .section {
    width: calc(100% - 24px);
    padding: 58px 0;
  }

  .section h2,
  .join-section h2 {
    font-size: 2.35rem;
  }

  .feature-card,
  .trust-list > div {
    min-height: auto;
    padding: 20px;
  }

  .screen-card {
    min-height: 300px;
  }

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

  .sample-profile {
    align-items: flex-start;
    flex-direction: column;
    min-height: 76px;
  }

  .sample-detail {
    min-height: 0;
  }

  .sample-avatar {
    min-height: 240px;
  }

  .join-section {
    width: calc(100% - 24px);
    margin-bottom: 48px;
  }
}
