/* Landing page: shown at "/" to logged-out visitors (see index.html).
   Everything is scoped under #landing so none of it can touch the app.
   Colours and fonts match the app's design tokens in src/index.css. */

html.is-landing body {
  margin: 0;
  background: #f8f6f2;
}

#landing {
  --lp-ocean: #3a6a8a;
  --lp-ocean-dark: #2d5570;
  --lp-ocean-light: #e8f0f5;
  --lp-sage: #4a7c59;
  --lp-bg: #f8f6f2;
  --lp-bg-2: #efebe4;
  --lp-card: #ffffff;
  --lp-border: #e5e0d8;
  --lp-text: #1a2733;
  --lp-text-2: #5a6a78;
  --lp-serif: 'DM Serif Display', Georgia, serif;
  --lp-body: 'DM Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  font-family: var(--lp-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--lp-text);
  background: var(--lp-bg);
  -webkit-font-smoothing: antialiased;
}

#landing *, #landing *::before, #landing *::after { box-sizing: border-box; }
#landing h1, #landing h2, #landing h3, #landing p, #landing ul, #landing ol { margin: 0; padding: 0; }
#landing a { color: var(--lp-ocean); }
#landing img { max-width: 100%; display: block; }

/* ── Nav ─────────────────────────────────────────────────────────────── */

#landing .lp-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1080px;
  margin: 0 auto;
  padding: max(16px, env(safe-area-inset-top)) 20px 16px;
}

#landing .lp-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--lp-text);
  font-weight: 700;
  font-size: 16px;
}

#landing .lp-nav-login {
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  padding: 8px 16px;
  border: 1.5px solid var(--lp-border);
  border-radius: 999px;
  background: var(--lp-card);
}

/* ── Buttons ─────────────────────────────────────────────────────────── */

#landing .lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}

#landing .lp-btn-primary { background: var(--lp-ocean); color: #fff; }
#landing .lp-btn-primary:hover { background: var(--lp-ocean-dark); }
#landing .lp-btn-ghost { background: var(--lp-card); color: var(--lp-ocean); border: 1.5px solid var(--lp-border); }
#landing .lp-btn-ghost:hover { border-color: var(--lp-ocean); }
#landing .lp-btn:focus-visible, #landing a:focus-visible, #landing summary:focus-visible {
  outline: 3px solid var(--lp-ocean);
  outline-offset: 2px;
}

/* ── Hero ────────────────────────────────────────────────────────────── */

#landing .lp-hero {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 20px 16px;
  display: grid;
  gap: 40px;
  align-items: center;
}

#landing .lp-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--lp-sage);
  margin-bottom: 14px;
}

#landing h1 {
  font-family: var(--lp-serif);
  font-weight: 400;
  font-size: clamp(34px, 8vw, 54px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

#landing h1 em { color: var(--lp-ocean); }

#landing .lp-lead {
  font-size: 18px;
  color: var(--lp-text-2);
  margin-top: 18px;
  max-width: 34em;
}

#landing .lp-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

#landing .lp-small {
  font-size: 14px;
  color: var(--lp-text-2);
  margin-top: 12px;
}

#landing .lp-center { text-align: center; }

/* Devices: the real app on a laptop, with the phone in front */

#landing .lp-devices {
  position: relative;
  width: 100%;
  max-width: 560px;
  justify-self: center;
  padding-right: 18%;
  padding-bottom: 6%;
}

#landing .lp-laptop-screen {
  border: 10px solid var(--lp-text);
  border-bottom-width: 14px;
  border-radius: 14px 14px 0 0;
  background: var(--lp-text);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(26, 39, 51, 0.16);
}

#landing .lp-laptop-screen img { width: 100%; height: auto; border-radius: 3px; }

#landing .lp-laptop-base {
  height: 12px;
  margin: 0 -7%;
  background: linear-gradient(#d9d4cc, #bfb9b0);
  border-radius: 0 0 14px 14px;
}

#landing .lp-phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 34%;
  border: 6px solid var(--lp-text);
  border-radius: 22px;
  background: var(--lp-text);
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(26, 39, 51, 0.25);
}

#landing .lp-phone img { width: 100%; height: auto; border-radius: 16px; }

/* Scroll cue */

#landing .lp-scroll-cue {
  grid-column: 1 / -1;
  justify-self: center;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 14px;
  font-weight: 600;
  color: var(--lp-text-2);
  text-decoration: none;
  padding: 6px 12px;
}

#landing .lp-scroll-cue svg { animation: lp-bob 1.8s ease-in-out infinite; color: var(--lp-ocean); }

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

/* ── Sections ────────────────────────────────────────────────────────── */

#landing .lp-section {
  padding: 56px 20px;
}

#landing .lp-section > * {
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
}

#landing .lp-tint { background: var(--lp-bg-2); }

#landing h2 {
  font-family: var(--lp-serif);
  font-weight: 400;
  font-size: clamp(28px, 6vw, 38px);
  line-height: 1.15;
  margin-bottom: 14px;
}

#landing h3 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

#landing .lp-section-lead {
  color: var(--lp-text-2);
  font-size: 18px;
  margin-bottom: 24px;
}

/* Moments */

#landing .lp-moments-wrap { display: grid; gap: 28px; }

#landing .lp-moments-note {
  font-weight: 600;
  color: var(--lp-ocean);
}

#landing .lp-moments { list-style: none; border-top: 1px solid var(--lp-border); }

#landing .lp-moments li {
  padding: 18px 0 18px 22px;
  border-bottom: 1px solid var(--lp-border);
  position: relative;
}

#landing .lp-moments li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 27px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lp-ocean);
  opacity: 0.55;
}

#landing .lp-moments h3 { font-size: 18px; }
#landing .lp-moments p { color: var(--lp-text-2); margin-top: 2px; }

/* Steps */

#landing .lp-steps {
  list-style: none;
  display: grid;
  gap: 16px;
  margin-top: 8px;
}

#landing .lp-steps li {
  background: var(--lp-card);
  border-radius: 16px;
  padding: 22px;
}

#landing .lp-steps p { color: var(--lp-text-2); margin-top: 6px; }

#landing .lp-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--lp-ocean-light);
  color: var(--lp-ocean);
  font-weight: 800;
  margin-bottom: 12px;
}

/* Cards */

#landing .lp-cards { display: grid; gap: 14px; margin-top: 8px; }

#landing .lp-card {
  background: var(--lp-card);
  border: 1px solid var(--lp-border);
  border-radius: 16px;
  padding: 22px;
}

#landing .lp-card p { color: var(--lp-text-2); margin-top: 6px; }

/* Person */

#landing .lp-person {
  display: grid;
  gap: 20px;
  background: var(--lp-card);
  border-radius: 18px;
  padding: 24px;
}

#landing .lp-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--lp-ocean-light);
  color: var(--lp-ocean);
  font-family: var(--lp-serif);
  font-size: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#landing .lp-person-role { color: var(--lp-sage); font-weight: 700; font-size: 15px; margin-top: 2px; }
#landing .lp-person p + p { margin-top: 12px; }
#landing .lp-person-role + p { margin-top: 12px; }
#landing .lp-credentials { list-style: none; display: grid; gap: 8px; margin-top: 16px; font-size: 15px; }
#landing .lp-credentials li { padding-left: 24px; position: relative; }
#landing .lp-credentials li::before { content: "✓"; position: absolute; left: 0; color: #3b6648; font-weight: 800; }
#landing .lp-person-links { margin-top: 16px; font-weight: 600; }
#landing .lp-avatar-img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
#landing .lp-built-by { font-size: 14px; color: var(--lp-text-2); margin-top: 16px; }

/* Pricing */

#landing .lp-plans { display: grid; gap: 16px; margin-top: 8px; }

#landing .lp-plan {
  background: var(--lp-card);
  border: 1.5px solid var(--lp-border);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#landing .lp-plan .lp-btn { margin-top: auto; }

#landing .lp-plan-list { list-style: none; display: grid; gap: 6px; margin: 4px 0 8px; font-size: 15px; }
#landing .lp-plan-list li { padding-left: 24px; position: relative; }
#landing .lp-plan-list li::before { content: "✓"; position: absolute; left: 0; color: var(--lp-sage); font-weight: 800; }

#landing .lp-plan-badge {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #3b6648; /* darker sage: AA contrast on the pale badge */
  background: #e8f3eb;
  padding: 4px 10px;
  border-radius: 999px;
}

#landing .lp-plan-badge-alt { color: var(--lp-ocean); background: var(--lp-ocean-light); }

#landing .lp-price { font-size: 16px; color: var(--lp-text-2); }
#landing .lp-price strong { font-family: var(--lp-serif); font-weight: 400; font-size: 36px; color: var(--lp-text); }

/* Privacy checks */

#landing .lp-checks { list-style: none; display: grid; gap: 10px; }
#landing .lp-checks li { padding-left: 30px; position: relative; }
#landing .lp-checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--lp-sage);
  font-weight: 800;
}

/* FAQ */

#landing details {
  background: var(--lp-card);
  border: 1px solid var(--lp-border);
  border-radius: 14px;
  padding: 0 18px;
  margin-bottom: 10px;
}

#landing summary {
  cursor: pointer;
  font-weight: 700;
  padding: 16px 0;
  list-style: none;
  position: relative;
  padding-right: 28px;
}

#landing summary::-webkit-details-marker { display: none; }
#landing summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 14px;
  font-size: 22px;
  color: var(--lp-ocean);
}
#landing details[open] summary::after { content: "–"; }
#landing details p { color: var(--lp-text-2); padding-bottom: 16px; }

/* Final CTA */

#landing .lp-final {
  text-align: center;
  padding: 64px 20px;
  background: var(--lp-ocean);
  color: #fff;
}

#landing .lp-final h2 { color: #fff; max-width: 640px; margin: 0 auto 24px; }
#landing .lp-final .lp-btn-primary { background: #fff; color: var(--lp-ocean); }
#landing .lp-final .lp-btn-primary:hover { background: var(--lp-ocean-light); }
#landing .lp-final .lp-small, #landing .lp-final .lp-small a { color: #e8f0f5; }

/* Footer */

#landing .lp-footer {
  padding: 40px 20px max(40px, env(safe-area-inset-bottom));
  font-size: 14px;
  color: var(--lp-text-2);
}

#landing .lp-footer > * { max-width: 1040px; margin-left: auto; margin-right: auto; }
#landing .lp-support { background: var(--lp-card); border: 1px solid var(--lp-border); border-radius: 14px; padding: 16px 18px; }
#landing .lp-footer-links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 20px; }
#landing .lp-legal { margin-top: 14px; }

/* ── Larger screens ──────────────────────────────────────────────────── */

@media (min-width: 760px) {
  #landing .lp-hero { grid-template-columns: 1fr 1fr; padding-top: 32px; padding-bottom: 24px; gap: 32px 48px; }
  #landing .lp-steps, #landing .lp-cards { grid-template-columns: repeat(3, 1fr); }
  #landing .lp-plans { grid-template-columns: 1fr 1fr; }
  #landing .lp-person { grid-template-columns: 96px 1fr; padding: 32px; }
  #landing .lp-section { padding: 80px 20px; }
  #landing .lp-moments-wrap { grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  #landing * { transition: none !important; animation: none !important; }
}
