/* 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; }

/* Skin Picking Compass hero: the two ways to use it, as one panel split in two */
#landing .lp-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 24px;
  max-width: 540px;
  background: var(--lp-card);
  border: 1px solid var(--lp-border);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(26, 39, 51, 0.04), 0 8px 24px rgba(26, 39, 51, 0.05);
  overflow: hidden;
}
#landing .lp-option {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  color: var(--lp-text);
  text-decoration: none;
  transition: background 0.15s;
}
#landing .lp-option + .lp-option { border-left: 1px solid var(--lp-border); }
#landing .lp-option:hover { background: var(--lp-ocean-light); }
#landing .lp-option-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lp-ocean);
}
#landing .lp-option-price { font-family: var(--lp-serif); font-size: 26px; line-height: 1.15; }
#landing .lp-option-price small { font-family: var(--lp-body); font-size: 14px; color: var(--lp-text-2); }
#landing .lp-nowrap { white-space: nowrap; }
#landing .lp-option-what { font-size: 14px; color: var(--lp-text-2); line-height: 1.45; }
@media (max-width: 360px) {
  #landing .lp-options { grid-template-columns: 1fr; }
  #landing .lp-option + .lp-option { border-left: 0; border-top: 1px solid var(--lp-border); }
}

/* Small "Free trial" tag on the paid option */
#landing .lp-trial-tag {
  display: inline-block;
  vertical-align: middle;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--lp-ocean-light);
  color: var(--lp-ocean-dark);
  font-family: var(--lp-body);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

#landing .lp-free-tag {
  display: inline-block;
  vertical-align: middle;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e8f3eb;
  color: #3b6648;
  font-family: var(--lp-body);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* 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; }
}

#landing .lp-price .lp-trial-tag { margin-left: 6px; }

/* Both front pages: keep the whole hero (headline, options, buttons)
   on one laptop screen at 100% zoom. */
@media (min-width: 760px) {
  #landing .lp-hero { grid-template-columns: 1.15fr 0.85fr; padding-top: 12px; padding-bottom: 8px; gap: 24px 40px; }
  #landing .lp-hero h1 { font-size: clamp(34px, 3.6vw, 46px); }
  #landing .lp-eyebrow { margin-bottom: 10px; }
  #landing .lp-hero .lp-lead { font-size: 16px; line-height: 1.55; margin-top: 14px; }
  #landing .lp-options { margin-top: 18px; }
  #landing .lp-option { padding: 12px 18px; }
  #landing .lp-option-price { font-size: 22px; }
  #landing .lp-hero .lp-cta-row { margin-top: 18px; }
  #landing .lp-hero .lp-small { margin-top: 8px; }
}

/* Both front pages: the hero fills the first screen, with the
   "See how it helps" cue at the bottom, so the next section starts below
   the fold instead of peeking in. Nav is about 80px tall. */
@media (min-width: 760px) {
  #landing .lp-hero {
    min-height: calc(100vh - 80px);
    min-height: calc(100svh - 80px);
    box-sizing: border-box;
    grid-template-rows: 1fr auto;
    padding-bottom: 20px;
  }
}

/* Both front pages: on bigger screens, scale the hero up with the
   screen so it fills the first view instead of sitting small in it. */
@media (min-width: 1100px) {
  #landing .lp-nav,
  #landing .lp-hero { max-width: 1280px; }
  #landing .lp-hero { padding-left: 32px; padding-right: 32px; column-gap: 56px; }
  #landing .lp-nav { padding-left: 32px; padding-right: 32px; }
  #landing .lp-hero h1 { font-size: clamp(40px, min(3.9vw, 6.6vh), 64px); }
  #landing .lp-eyebrow { font-size: clamp(13px, 1.6vh, 15px); }
  #landing .lp-hero .lp-lead { font-size: clamp(16px, 2.1vh, 19px); max-width: 36em; }
  #landing .lp-options { max-width: 620px; }
  #landing .lp-option { padding: clamp(12px, 1.8vh, 18px) 20px; }
  #landing .lp-option-price { font-size: clamp(22px, 3vh, 28px); }
  #landing .lp-option-what { font-size: clamp(14px, 1.7vh, 15.5px); }
  #landing .lp-devices { max-width: 640px; }
}

/* Food & Body Compass: the founder and expert input cards, side by side
   on wider screens. */
#landing .lp-people { display: grid; gap: 20px; margin-top: 24px; }
@media (min-width: 900px) {
  #landing .lp-people { grid-template-columns: 1fr 1fr; }
  #landing .lp-people .lp-person { grid-template-columns: 72px 1fr; }
  #landing .lp-people .lp-avatar { width: 72px; height: 72px; font-size: 22px; }
}

/* Both front pages on phones: calmer type, the two options as two
   full-width rows (name and price on one line), and full-width buttons. */
@media (max-width: 759px) {
  #landing .lp-hero { gap: 28px; padding-top: 8px; }
  #landing .lp-eyebrow { font-size: 11.5px; margin-bottom: 10px; }
  #landing .lp-hero h1 { font-size: 32px; line-height: 1.12; }
  #landing .lp-hero .lp-lead { font-size: 16px; line-height: 1.55; margin-top: 14px; }
  #landing .lp-options { grid-template-columns: 1fr; margin-top: 20px; }
  #landing .lp-option {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: baseline;
    column-gap: 12px;
    row-gap: 4px;
    padding: 14px 16px;
  }
  #landing .lp-option + .lp-option { border-left: 0; border-top: 1px solid var(--lp-border); }
  #landing .lp-option-price { font-size: 22px; text-align: right; }
  #landing .lp-option-what { grid-column: 1 / -1; }
  #landing .lp-hero .lp-cta-row { flex-direction: column; gap: 10px; margin-top: 18px; }
  #landing .lp-hero .lp-cta-row .lp-btn { width: 100%; justify-content: center; text-align: center; box-sizing: border-box; }
  #landing .lp-hero .lp-small { text-align: center; }
}

/* Both front pages on phones: show the app picture straight after the
   headline, before the intro and the two options. */
@media (max-width: 759px) {
  #landing .lp-hero { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  #landing .lp-hero-text { display: contents; }
  #landing .lp-hero .lp-eyebrow { order: 1; align-self: flex-start; }
  #landing .lp-hero h1 { order: 2; }
  #landing .lp-hero .lp-devices { order: 3; margin: 22px auto 4px; max-width: 420px; }
  #landing .lp-hero .lp-lead { order: 4; }
  #landing .lp-hero .lp-options { order: 5; }
  #landing .lp-hero .lp-cta-row { order: 6; }
  #landing .lp-hero .lp-small { order: 7; }
  #landing .lp-hero .lp-scroll-cue { order: 8; align-self: center; margin-top: 24px; }
}

/* Food & Body Compass: guide cards that link to the guide pages. */
#landing a.lp-card-link { display: block; text-decoration: none; color: inherit; transition: border-color 0.15s; }
#landing a.lp-card-link:hover { border-color: var(--lp-ocean); }
#landing a.lp-card-link h3 { color: var(--lp-ocean); }
