/* LoveSpringAI — shared styles */

:root {
  --navy: #0b1f3a;
  --navy-soft: #223a5e;
  --blue: #3b6fd6;
  --blue-light: #dbe6fb;
  --blue-pale: #f2f6fd;
  --ink: #16233b;
  --muted: #5b6b85;
  --line: #e2e8f4;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 31, 58, 0.08);
  --container: 1120px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
  --space-6: 96px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

h1, h2, h3 {
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 var(--space-2);
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
}

h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

p {
  margin: 0 0 var(--space-2);
  color: var(--muted);
}

.lede {
  font-size: 1.15rem;
  color: var(--navy-soft);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: var(--space-2);
}

.eyebrow::after {
  content: "";
  display: block;
  width: 32px;
  height: 2px;
  background: var(--blue);
}

/* ---------- header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2) var(--space-3);
  max-width: var(--container);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--navy);
  text-decoration: none;
}

.brand img {
  width: 28px;
  height: 28px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-weight: 600;
  color: var(--navy-soft);
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--blue);
}

.nav-cta {
  background: var(--navy);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700 !important;
}

.nav-cta:hover {
  background: var(--blue);
  color: var(--white) !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  position: relative;
  transition: 0.2s;
}

.nav-toggle span::before {
  position: absolute;
  top: -7px;
}

.nav-toggle span::after {
  position: absolute;
  top: 7px;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--blue);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
}

/* ---------- sections & layout helpers ---------- */

section {
  padding: var(--space-6) 0;
  position: relative;
  overflow: hidden;
  z-index: 0;
}

.section-tight {
  padding: var(--space-5) 0;
}

.section-alt {
  background: var(--blue-pale);
}

.section-dark {
  background: var(--navy);
  color: var(--white);
}

.section-dark h1,
.section-dark h2,
.section-dark h3 {
  color: var(--white);
}

.section-dark p {
  color: rgba(255, 255, 255, 0.75);
}

.section-dark .eyebrow {
  color: #9db8ee;
}

.section-dark .eyebrow::after {
  background: #9db8ee;
}

.grid {
  display: grid;
  gap: var(--space-3);
}

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

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

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

.center {
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- hero ---------- */

.hero {
  padding: var(--space-6) 0 var(--space-5);
}

.hero-full {
  min-height: calc(100vh - 65px);
  display: flex;
  align-items: center;
}

.hero-inner {
  max-width: 760px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(600px 400px at 85% 10%, var(--blue-light), transparent 60%),
    radial-gradient(480px 320px at 6% 95%, var(--blue-pale), transparent 55%),
    linear-gradient(180deg, #ffffff, #ffffff);
}

.wave-lines {
  position: absolute;
  right: -10%;
  top: 10%;
  width: 640px;
  height: 420px;
  opacity: 0.6;
  z-index: -1;
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  line-height: 1.05;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: var(--space-3);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  z-index: 1;
}

.scroll-cue:hover {
  color: var(--blue);
}

@media (max-width: 860px) {
  .hero-full {
    min-height: calc(100vh - 58px);
    padding-top: calc(var(--space-5) + 40px);
    padding-bottom: var(--space-4);
  }

  .scroll-cue {
    bottom: var(--space-2);
  }
}

/* decorative section motifs */

.bg-dots {
  position: absolute;
  top: 12%;
  right: 4%;
  width: 300px;
  height: 300px;
  z-index: -1;
  pointer-events: none;
}

.bg-mountains {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 160px;
  z-index: -1;
  pointer-events: none;
}

/* ---------- cards ---------- */

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-3);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue-light), #c3d5f7);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-2);
  color: var(--blue);
  transition: transform 0.25s ease;
}

/* moments row */

.moments {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.moment {
  text-align: center;
}

.moment:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: #c3d5f7;
}

.moment .card-icon {
  margin-left: auto;
  margin-right: auto;
}

.moment:hover .card-icon {
  transform: scale(1.08);
}

.moment h3 {
  font-size: 1rem;
}

.moments .moment:nth-child(2) { transition-delay: 0.08s; }
.moments .moment:nth-child(3) { transition-delay: 0.16s; }
.moments .moment:nth-child(4) { transition-delay: 0.24s; }

/* model flow */

.model-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin-top: var(--space-4);
  flex-wrap: wrap;
  position: relative;
}

.model-flow::before {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  top: 22px;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.25) 12%,
    rgba(255, 255, 255, 0.25) 88%,
    transparent
  );
  z-index: 0;
}

.model-step {
  flex: 1;
  min-width: 130px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.model-step .card-icon {
  margin: 0 auto 12px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.06));
  color: var(--white);
}

.model-step:hover .card-icon {
  transform: translateY(-3px) scale(1.06);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.1));
}

.model-step span {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
}

.model-arrow {
  color: rgba(255, 255, 255, 0.4);
  font-size: 1.4rem;
  flex: 0 0 auto;
  position: relative;
  z-index: 1;
}

.model-flow .model-step:nth-child(3) { transition-delay: 0.08s; }
.model-flow .model-step:nth-child(5) { transition-delay: 0.16s; }
.model-flow .model-step:nth-child(7) { transition-delay: 0.24s; }
.model-flow .model-step:nth-child(9) { transition-delay: 0.32s; }

.model-step-caption {
  margin: 6px 0 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
  min-height: 4rem;
}

.model-tagline {
  text-align: center;
  margin-top: var(--space-4);
  font-weight: 700;
  color: var(--white);
  font-size: 1.05rem;
}

/* comparison card */

.compare-card {
  margin-top: var(--space-3);
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.15);
  overflow: hidden;
}

.compare-label {
  padding: var(--space-2) var(--space-3);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--white);
  background: var(--navy-soft);
}

.compare-label-win {
  background: var(--blue);
}

.compare-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: var(--space-2) var(--space-3);
  font-size: 0.95rem;
  background: var(--white);
  border-top: 1px solid var(--line);
}

.compare-lose {
  color: var(--muted);
}

.compare-win {
  color: var(--ink);
  font-weight: 600;
  background: var(--blue-pale);
}

.compare-icon {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  margin-top: 2px;
}

.compare-lose .compare-icon {
  background: rgba(91, 107, 133, 0.14);
  color: var(--muted);
}

.compare-win .compare-icon {
  background: var(--blue);
  color: var(--white);
}

@media (max-width: 860px) {
  .compare-card {
    grid-template-columns: 1fr;
  }
}

/* proof section */

.proof-quote {
  margin-top: var(--space-3);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
}

.proof-grid {
  align-items: center;
}

.phone-mockup {
  max-width: 240px;
  margin: 0 auto;
  background: var(--navy);
  border-radius: 24px;
  padding: 8px;
  box-shadow: var(--shadow);
}

.phone-notch {
  width: 42px;
  height: 4px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  margin: 5px auto 8px;
}

.phone-screen {
  background: var(--white);
  border-radius: 17px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 255px;
}

.phone-screen-comic {
  padding: 8px;
  gap: 8px;
}

.comic-frame {
  position: relative;
  background: var(--white);
  border: 2.3px solid var(--ink);
  border-radius: 14px;
  padding: 12px 11px 0;
  display: flex;
  flex-direction: column;
  gap: 17px;
  overflow: hidden;
}

.comic-bubble {
  position: relative;
  align-self: center;
  background: var(--white);
  border: 1.9px solid var(--ink);
  color: var(--ink);
  max-width: 92%;
  font-size: 0.53rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.35;
}

.comic-bubble-plain {
  border-radius: 999px;
  padding: 8px 14px;
  text-align: center;
  opacity: 0.85;
}

.comic-bubble-tail {
  border-radius: 14px;
  padding: 9px 11px;
  text-align: left;
}

.comic-bubble-tail::after {
  content: "";
  position: absolute;
  bottom: -7px;
  left: 50%;
  width: 12px;
  height: 12px;
  background: var(--white);
  border-right: 1.9px solid var(--ink);
  border-bottom: 1.9px solid var(--ink);
  transform: translateX(-50%) rotate(45deg);
}

.comic-bubble-tail p {
  margin: 0 0 5px;
  color: var(--navy);
}

.comic-avatars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-top: 3px;
}

.comic-avatar {
  width: auto;
  height: 128px;
  object-fit: contain;
  object-position: bottom;
}

.comic-inputbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  padding: 8px 11px;
  font-size: 0.54rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.comic-inputbar-icons {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
}

.chat-plan {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.chat-plan li {
  display: flex;
  gap: 6px;
  align-items: flex-start;
}

.chat-plan-num {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-size: 0.51rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* numbered list */

.steps {
  list-style: none;
  margin: var(--space-4) 0 0;
  padding: 0;
  display: grid;
  gap: var(--space-3);
}

.steps li {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}

.step-num {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.steps p {
  margin: 0;
}

/* team */

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 320px));
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.team-card {
  text-align: center;
  padding: var(--space-4) var(--space-2);
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: #c3d5f7;
}

.avatar-gradient {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--navy-soft));
  box-shadow: 0 8px 20px rgba(59, 111, 214, 0.3);
  margin: 0 auto var(--space-2);
  transition: transform 0.25s ease;
}

.team-card:hover .avatar-gradient {
  transform: scale(1.06);
}

.team-card .role {
  color: var(--blue);
  font-weight: 600;
  font-size: 0.9rem;
}

.team-card .bio {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: var(--space-1);
}

.social-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue-pale);
  color: var(--blue);
  opacity: 0.55;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: var(--space-2) auto 0;
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: var(--space-4) 0;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.footer-links {
  display: flex;
  gap: var(--space-3);
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--blue);
}

.footer-copy {
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---------- legal pages ---------- */

.legal {
  max-width: 780px;
  margin: 0 auto;
  padding: var(--space-5) var(--space-3);
}

.legal h2 {
  margin-top: var(--space-4);
}

.legal .updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: var(--space-4);
}

/* ---------- contact form ---------- */

.form-wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: var(--space-3);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.field {
  margin-bottom: var(--space-3);
}

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: 6px;
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font: inherit;
  color: var(--ink);
  background: var(--blue-pale);
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: var(--space-2);
}

.form-status {
  margin-top: var(--space-2);
  font-weight: 600;
  display: none;
}

.form-status.visible {
  display: block;
}

.form-status.ok {
  color: #1a7f4b;
}

.form-status.error {
  color: #b3261e;
}

/* ---------- cookie banner ---------- */

.cookie-banner {
  position: fixed;
  left: var(--space-3);
  right: var(--space-3);
  bottom: var(--space-3);
  max-width: 720px;
  margin: 0 auto;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  box-shadow: var(--shadow);
  z-index: 60;
  transform: translateY(140%);
  transition: transform 0.35s ease;
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-banner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  flex: 1;
}

.cookie-banner a {
  color: var(--white);
  text-decoration: underline;
}

.cookie-banner .btn-primary {
  background: var(--blue);
  flex: 0 0 auto;
}

.cookie-banner .btn-primary:hover {
  background: var(--white);
  color: var(--navy);
}

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-3);
    gap: var(--space-2);
    border-bottom: 1px solid var(--line);
    transform: translateY(-130%);
    transition: transform 0.25s ease;
  }

  .nav-links.open {
    transform: translateY(0);
  }

  .nav-toggle {
    display: block;
  }

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

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

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

  .model-flow {
    flex-direction: column;
  }

  .model-flow::before {
    display: none;
  }

  .model-arrow {
    transform: rotate(90deg);
  }

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

  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .bg-dots {
    width: 60%;
    opacity: 0.6;
  }
}

@media (max-width: 520px) {
  .moments {
    grid-template-columns: 1fr;
  }

  .bg-dots {
    display: none;
  }
}

/* ---------- scroll reveal ---------- */

.grid-2 .reveal:nth-child(2) {
  transition-delay: 0.1s;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .reveal.in-view {
    opacity: 1;
    transform: translateY(0);
  }

  .scroll-cue svg {
    animation: scroll-bob 1.8s ease-in-out infinite;
  }

  @keyframes scroll-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
  }

  .btn {
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  }

  .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
  }

  .moment .card-icon {
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
  }

  .moment:hover .card-icon {
    color: var(--white);
    background: linear-gradient(135deg, var(--blue), var(--navy-soft));
  }
}
