/* Opt-in landing pages (_layouts/landing.njk). Colors, type and buttons come from site.css; the form is .optin.
   One centred composition: headline, a card (picture on the left, form on the right), the benefits underneath. */
.lp-hero{ position:relative; overflow:hidden; background:var(--cream-deep); padding:56px 0 72px; }
.lp-hero::before{ content:""; position:absolute; inset:-30% -10% auto 50%; height:120%; background:radial-gradient(closest-side, rgba(251,211,90,.24), transparent 70%); pointer-events:none; }
/* A page that is only the hero fills the screen between header and footer, with the content in the middle */
.lp > .lp-hero:only-child{ min-height:calc(100vh - 77px - 67px); display:flex; align-items:center; }
.lp-hero > .wrap{ position:relative; width:100%; }

.lp-head{ text-align:center; max-width:880px; margin:0 auto 36px; }
.lp-head h1{ font-size:clamp(2rem, 4.2vw, 3.1rem); text-wrap:balance; margin:0 0 .35em; }
.lp-head h1 em{ font-style:normal; color:var(--berry); }
.lp-head .lead{ max-width:32em; margin:0 auto; font-size:1.18rem; }

.lp-panel{ display:grid; grid-template-columns:1fr 1fr; max-width:1000px; margin:0 auto; background:var(--paper); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); overflow:hidden; }
.lp-panel:has(.lp-box:only-child){ grid-template-columns:1fr; max-width:520px; }

/* Left: the picture fills its half edge to edge; the cover card sits centred on a soft teal panel */
.lp-visual{ position:relative; min-height:420px; background:linear-gradient(180deg, #C9E5E3, #A9D3D0); display:grid; place-items:center; padding:36px; }
.lp-photo{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:50% 22%; }
.lp-photo.is-mockup{ position:static; height:auto; object-fit:contain; }   /* transparent mockup: whole, centred on the teal panel */
.lp-card{ width:100%; max-width:340px; background:var(--cream); border:1px solid var(--line); border-radius:16px; padding:26px; box-shadow:0 18px 40px -18px rgba(31,43,45,.35); transform:rotate(-2deg); }
.lp-card-label{ display:block; font-size:.7rem; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:var(--berry); }
.lp-card strong{ display:block; font-size:1.45rem; line-height:1.25; margin:.2em 0 .6em; }
.lp-card ol{ margin:0; padding-left:1.2em; color:var(--ink-soft); font-size:.95rem; }
.lp-card ol li{ margin-bottom:5px; }
.lp-card .hand{ display:block; margin-top:10px; font-size:1.6rem; }

/* Right: the form, fields stacked so nothing gets cut off */
.lp-box{ align-self:center; padding:40px 44px; }
.lp-box h2{ font-size:1.55rem; margin:0 0 .7em; }
.lp-box .optin{ margin:0; padding:0; border:0; box-shadow:none; max-width:none; background:none; }
.lp-box .fields{ grid-template-columns:1fr; gap:16px; }
.lp-box .optin .btn{ margin-top:20px; }

/* The benefits: three short items in one quiet row under the card (keep them short so they never wrap into uneven rows) */
.lp-checks{ display:flex; flex-wrap:wrap; justify-content:center; gap:8px 32px; max-width:1000px; margin:28px auto 0; font-size:1rem; color:var(--ink-soft); }
.lp-checks li{ margin:0; }

/* What's inside. When the next chapter (Melanie) has the same background, drop its top padding so the gap is 96px, not 192 */
.section.lp-inside + .section.lp-about{ padding-top:0; }
.lp-inside .section-head{ text-align:center; max-width:36em; margin:0 auto 40px; }
.lp-items{ list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; justify-content:center; gap:20px; }   /* 3 + 2, every card the same width, so none looks more important */
.lp-items li{ flex:0 0 calc((100% - 40px) / 3); display:flex; gap:18px; align-items:flex-start; background:var(--paper); border:1px solid var(--line); border-radius:var(--radius); padding:24px; }
.lp-items:has(> li:nth-child(4):last-child) li{ flex-basis:calc((100% - 20px) / 2); }   /* exactly 4: 2 + 2 instead of 3 + 1 */
.lp-num{ flex-shrink:0; width:44px; height:44px; border-radius:50%; background:var(--berry-soft); color:var(--berry); font-weight:700; display:grid; place-items:center; }
.lp-items h3{ font-size:1.15rem; margin:0 0 .25em; }
.lp-items p{ margin:0; font-size:1rem; color:var(--ink-soft); }

/* A few warm lines from Melanie */
.lp-about-grid{ display:grid; grid-template-columns:300px 1fr; gap:56px; align-items:end; max-width:900px; margin:0 auto; }   /* photo on the teal arch from .about-photo in site.css */
.lp-about-text{ align-self:center; }
.lp-about p{ font-size:1.12rem; color:var(--ink-soft); }
.lp-about .hand{ font-size:1.7rem; }

/* Closing push + second form */
.lp-final{ background:var(--cream-deep); text-align:center; }
.lp-final .lead{ max-width:30em; margin:0 auto; }
.lp-final .optin{ margin:30px auto 0; text-align:left; }

@media (max-width: 900px){
  .lp-hero{ padding:40px 0 56px; }
  .lp-panel{ grid-template-columns:1fr; max-width:560px; }
  .lp-visual{ min-height:0; padding:28px; }
  .lp-photo{ position:static; height:auto; aspect-ratio:16 / 11; padding:0; }
  .lp-visual:has(.lp-photo){ padding:0; display:block; }
  .lp-visual:has(.is-mockup){ padding:24px; display:grid; }
  .lp-photo.is-mockup{ aspect-ratio:auto; }
  .lp-box{ padding:28px 24px; }
  .lp-checks{ flex-direction:column; align-items:flex-start; max-width:560px; gap:8px; }
  .lp-items li{ flex-basis:calc((100% - 20px) / 2); }
  .lp-about-grid{ grid-template-columns:1fr; gap:32px; }
  .lp-about .about-photo{ max-width:300px; margin:0 auto; }
}
@media (max-width: 620px){
  .lp-items li{ flex-basis:100%; }
}

/* Phones: the form comes right after the headline; the cover card moves under it (same order as the homepage's
   sign-up band). A photo or mockup stays on top, but lower, so the form still starts on the first screen. */
@media (max-width: 620px){
  .lp-hero{ padding:28px 0 48px; }
  .lp-head{ margin-bottom:24px; }
  .lp-head h1{ font-size:1.9rem; }
  .lp-head .lead{ font-size:1.05rem; }
  .lp-visual:has(.lp-card){ order:2; padding:26px 22px; }
  .lp-card{ padding:20px 22px; }
  .lp-photo{ aspect-ratio:2 / 1; }
  .lp-visual:has(.is-mockup){ padding:16px 24px; }
  .lp-photo.is-mockup{ max-height:170px; width:auto; margin:0 auto; }
  .lp-box{ padding:24px 20px 26px; }
  .lp-box h2{ font-size:1.35rem; }
  .lp-checks{ margin-top:22px; }
}
