/* =========================================================
   LifeMates — Shared Design System
   Premium, editorial, mature relationship platform
   ========================================================= */

:root {
  /* Palette */
  --ink: #1c1b19;
  --ink-soft: #3a3833;
  --muted: #6b6459;
  --line: #e6e0d6;
  --ivory: #f7f3ec;
  --paper: #fffdf9;
  --forest: #1f3d34;
  --forest-deep: #16302a;
  --forest-soft: #2e5749;
  --brass: #a9812f;
  --brass-soft: #c39a4a;
  --white: #ffffff;

  /* Type */
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Metrics */
  --wrap: 1180px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(28, 27, 25, 0.06);
  --shadow: 0 18px 45px -24px rgba(28, 27, 25, 0.35);
  --shadow-lg: 0 40px 90px -40px rgba(22, 48, 42, 0.45);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--forest-soft); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--brass); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.9rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }

p { margin: 0 0 1.1em; color: var(--ink-soft); }

:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--paper { background: var(--paper); }
.section--ivory { background: var(--ivory); }
.section--forest { background: var(--forest); color: #efe9de; }
.section--forest h1,
.section--forest h2,
.section--forest h3 { color: #fbf7ef; }
.section--forest p { color: #cdc7ba; }
.section--forest .checklist li { color: #d8d2c5; }
.section--forest .checklist li::before { background-color: var(--brass); }
.section--forest .lead { color: #cdc7ba; }

.center { text-align: center; }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 62ch; }
.center .lead { margin-left: auto; margin-right: auto; }

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 18px;
}
.section--forest .eyebrow { color: var(--brass-soft); }

.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  padding: 15px 30px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease),
    color 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--forest); color: #fdfaf4; }
.btn--primary:hover { background: var(--forest-deep); color: #fff; box-shadow: var(--shadow); }
.btn--gold { background: var(--brass); color: #241a05; }
.btn--gold:hover { background: var(--brass-soft); color: #241a05; }
.btn--ghost { background: transparent; color: var(--forest); border-color: var(--forest); }
.btn--ghost:hover { background: var(--forest); color: #fdfaf4; }
.btn--light { background: transparent; color: #f4efe6; border-color: rgba(244,239,230,0.5); }
.btn--light:hover { background: #f4efe6; color: var(--forest-deep); }
.btn--block { width: 100%; }
.btn--lg { padding: 17px 38px; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(247, 243, 236, 0.9);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.brand {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
}
.brand:hover { color: var(--ink); }
.brand .brand-dot { color: var(--brass); }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 6px 0;
  position: relative;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--brass);
  transition: width 0.25s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after,
.nav a.active::after { width: 100%; }
.nav a.active { color: var(--ink); }

.header-cta { display: flex; align-items: center; gap: 14px; }
.header-cta .btn { padding: 11px 22px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 44px; height: 44px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 20px; height: 2px;
  background: var(--ink);
  position: relative;
  transition: 0.25s var(--ease);
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(16,30,26,0.9) 0%, rgba(16,30,26,0.62) 45%, rgba(16,30,26,0.25) 100%);
}
.hero__inner { position: relative; z-index: 2; padding: 120px 0; max-width: 640px; }
.hero h1 { color: #fff; }
.hero p { color: #e7e1d5; font-size: 1.22rem; max-width: 52ch; }
.hero .eyebrow { color: var(--brass-soft); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }
.hero__note { margin-top: 22px; font-size: 0.9rem; color: #cfc9bc; }

/* Compact page hero */
.page-hero {
  position: relative;
  color: #fff;
  padding: 108px 0 96px;
  overflow: hidden;
}
.page-hero__bg { position: absolute; inset: 0; z-index: 0; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(16,30,26,0.82), rgba(16,30,26,0.7));
}
.page-hero__inner { position: relative; z-index: 2; max-width: 720px; }
.page-hero h1 { color: #fff; }
.page-hero p { color: #e7e1d5; font-size: 1.15rem; max-width: 60ch; }
.page-hero .eyebrow { color: var(--brass-soft); }

/* ---------- Grid & cards ---------- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }
.card__num {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--brass);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px; height: 54px;
  border: 1.5px solid var(--brass);
  border-radius: 50%;
  margin-bottom: 20px;
}
.card__icon {
  width: 52px; height: 52px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: rgba(31,61,52,0.08);
  color: var(--forest);
  margin-bottom: 20px;
}
.card__icon svg { width: 26px; height: 26px; }

/* ---------- Split feature ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split--reverse .split__media { order: 2; }
.split__media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.split__body h2 { margin-bottom: 18px; }

/* ---------- Value list ---------- */
.checklist { list-style: none; margin: 24px 0 0; padding: 0; }
.checklist li {
  position: relative;
  padding-left: 34px;
  margin-bottom: 16px;
  color: var(--ink-soft);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--forest);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f7f3ec' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
}

/* ---------- Testimonials ---------- */
.quote {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin: 0;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.quote__text {
  font-family: var(--serif);
  font-size: 1.22rem;
  line-height: 1.5;
  color: var(--ink);
  margin: 0 0 24px;
}
.quote__person { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.quote__person img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.quote__meta strong { display: block; font-size: 0.98rem; color: var(--ink); }
.quote__meta span { font-size: 0.85rem; color: var(--muted); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; text-align: center; }
.stat__num { font-family: var(--serif); font-size: 2.6rem; color: var(--brass-soft); }
.stat__label { font-size: 0.95rem; color: #cdc7ba; }

/* ---------- Steps timeline ---------- */
.steps { display: grid; gap: 30px; grid-template-columns: repeat(4, 1fr); }
.step { text-align: left; }
.step__n {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--brass);
  border: 1.5px solid var(--brass);
  width: 46px; height: 46px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.step h3 { font-size: 1.25rem; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  color: #fff;
  text-align: center;
  padding: 92px 0;
  overflow: hidden;
}
.cta-band__bg { position: absolute; inset: 0; z-index: 0; }
.cta-band__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-band__scrim { position: absolute; inset: 0; z-index: 1; background: rgba(16,30,26,0.82); }
.cta-band__inner { position: relative; z-index: 2; max-width: 640px; margin: 0 auto; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #e2dccf; }

/* ---------- Pricing ---------- */
.plan {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px 34px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.plan--featured {
  border: 1.5px solid var(--brass);
  box-shadow: var(--shadow);
  position: relative;
}
.plan__flag {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--brass); color: #241a05;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 6px 16px; border-radius: 40px;
}
.plan h3 { font-size: 1.5rem; margin-bottom: 6px; }
.plan__price { font-family: var(--serif); font-size: 2.8rem; color: var(--ink); line-height: 1; margin: 12px 0 4px; }
.plan__price small { font-family: var(--sans); font-size: 0.95rem; color: var(--muted); font-weight: 500; }
.plan__desc { color: var(--muted); font-size: 0.95rem; min-height: 48px; }
.plan .checklist { flex: 1; }
.plan .btn { margin-top: 24px; }

/* ---------- FAQ / accordion ---------- */
.accordion { max-width: 820px; margin: 0 auto; }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-trigger {
  width: 100%;
  background: none;
  border: 0;
  text-align: left;
  padding: 26px 44px 26px 0;
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--ink);
  cursor: pointer;
  position: relative;
}
.acc-trigger::after {
  content: "+";
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-family: var(--sans); font-size: 1.6rem; color: var(--brass); font-weight: 300;
  transition: transform 0.25s var(--ease);
}
.acc-item.open .acc-trigger::after { content: "\2212"; }
.acc-panel { max-height: 0; overflow: hidden; transition: max-height 0.3s var(--ease); }
.acc-panel__inner { padding: 0 0 26px; color: var(--ink-soft); }

/* ---------- Forms ---------- */
.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 42px;
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 15px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--forest-soft);
  box-shadow: 0 0 0 3px rgba(46,87,73,0.15);
}
.field textarea { min-height: 140px; resize: vertical; }
.field--check { display: flex; align-items: flex-start; gap: 12px; }
.field--check input { width: auto; margin-top: 4px; }
.field--check label { font-weight: 400; font-size: 0.9rem; color: var(--muted); margin: 0; }
.field-error { color: #a13b2c; font-size: 0.85rem; margin-top: 6px; display: none; }
.field.invalid input,
.field.invalid select,
.field.invalid textarea { border-color: #a13b2c; }
.field.invalid .field-error { display: block; }
.form-note { font-size: 0.85rem; color: var(--muted); margin-top: 18px; }
.form-success {
  display: none;
  background: rgba(31,61,52,0.08);
  border: 1px solid var(--forest-soft);
  color: var(--forest-deep);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 22px;
  font-size: 0.95rem;
}
.form-success.show { display: block; }

.auth-shell { display: grid; grid-template-columns: 1.05fr 1fr; min-height: calc(100vh - 74px); }
.auth-shell__media { position: relative; }
.auth-shell__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.auth-shell__media .cap {
  position: absolute; z-index: 2; left: 40px; bottom: 40px; right: 40px; color: #fff;
}
.auth-shell__media .scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,30,26,0.25), rgba(16,30,26,0.78)); }
.auth-shell__form { display: flex; align-items: center; justify-content: center; padding: 60px 40px; }
.auth-box { width: 100%; max-width: 440px; }

/* ---------- Legal / prose ---------- */
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { margin-top: 44px; font-size: 1.7rem; }
.prose h3 { margin-top: 28px; }
.prose ul { padding-left: 22px; color: var(--ink-soft); }
.prose li { margin-bottom: 8px; }
.prose .updated { color: var(--muted); font-size: 0.9rem; margin-bottom: 30px; }

/* ---------- Trust strip ---------- */
.trust {
  display: flex; flex-wrap: wrap; gap: 40px; justify-content: center; align-items: center;
}
.trust__item { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 0.92rem; }
.trust__item svg { width: 22px; height: 22px; color: var(--forest-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest-deep); color: #cbc6ba; padding: 72px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.site-footer .brand { color: #fbf7ef; font-size: 1.6rem; }
.site-footer p { color: #a9a598; font-size: 0.94rem; }
.footer-col h4 {
  font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: #d8d3c6; margin-bottom: 18px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 11px; }
.footer-col a { color: #b3aea1; font-size: 0.94rem; }
.footer-col a:hover { color: #fff; }
.footer-contact li { color: #b3aea1; font-size: 0.94rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 54px; padding-top: 26px;
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center;
  font-size: 0.86rem; color: #928d81;
}
.footer-bottom .legal-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-bottom a { color: #928d81; }
.footer-bottom a:hover { color: #fff; }
.age-badge {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(255,255,255,0.2); border-radius: 40px; padding: 5px 14px;
  font-size: 0.8rem; color: #cbc6ba;
}

/* ---------- Cookie banner ---------- */
.cookie {
  position: fixed; z-index: 90; left: 24px; right: 24px; bottom: 24px;
  max-width: 560px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 24px 26px;
  transform: translateY(140%);
  transition: transform 0.4s var(--ease);
}
.cookie.show { transform: translateY(0); }
.cookie p { font-size: 0.9rem; margin-bottom: 16px; }
.cookie__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cookie__actions .btn { padding: 10px 20px; font-size: 0.9rem; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Misc ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.section-head { max-width: 660px; margin: 0 auto 56px; }
.contact-block { line-height: 1.9; }
.contact-block strong { color: var(--ink); display: block; font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brass); margin-top: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-3, .grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 34px; }
  .split--reverse .split__media { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-shell__media { min-height: 240px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .nav, .header-cta .btn--ghost { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.open {
    display: flex; position: absolute; top: 74px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 12px 24px 24px;
  }
  .nav.open a { padding: 14px 0; border-bottom: 1px solid var(--line); width: 100%; }
  .grid-2, .grid-3, .grid-4, .steps, .stats { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero__inner { padding: 90px 0; }
  .cookie { left: 16px; right: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
