/* ClearaScan marketing pages (homepage and How it works, rebuild 19/10/26).
   Scoped to .hp so it never touches the shared nav, footer or other pages. Brand palette from
   docs/ClearaScan_Brand_Colours.md. */
.hp {
  --navy: #121A2D;
  --ink: #1E2A3D;
  --body: #5A6A7E;
  --blue: #0480CA;
  --green: #05AA53;
  --mint: #F2FBF6;
  --line: #D9E4E2;
  --btn: #2A4A75;
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, sans-serif;
}
.hp img { max-width: 100%; height: auto; display: block; }
.hp-wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.hp-center { text-align: center; }
.hp-center .hp-badge, .hp-center img, .hp-center .hp-narrow { margin-left: auto; margin-right: auto; }

/* Type */
.hp .hp-eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin: 0 0 12px; }
.hp .hp-eyebrow--light { color: #8fd3ff; }
.hp-h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.08; font-weight: 700; color: var(--navy); margin: 0 0 20px; letter-spacing: -.02em; }
.hp-h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.15; font-weight: 700; color: var(--navy); margin: 0 0 18px; letter-spacing: -.015em; }
.hp-h3 { font-size: 22px; line-height: 1.25; font-weight: 700; color: var(--navy); margin: 0 0 12px; }
.hp-hl { color: var(--green); }
.hp .hp-lead { font-size: 19px; line-height: 1.55; color: var(--ink); margin: 0 0 14px; }
.hp p { font-size: 17px; line-height: 1.6; color: var(--body); margin: 0 0 14px; }
.hp .hp-strap { font-weight: 600; color: var(--ink); }
.hp .hp-note { font-size: 14px; }
.hp .hp-more { margin-top: 14px; } /* guide links in the house link style (.hp a) */
.hp .hp-more a:hover { text-decoration: underline; }
.hp .hp-terms { font-size: 14px; color: var(--body); margin-top: 14px; }
.hp-narrow { max-width: 720px; }
.hp .hp-light, .hp-sec--navy .hp-h2 { color: #fff; }
.hp a:not(.hp-btn) { color: var(--btn); font-weight: 600; }

/* Buttons */
.hp-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 8px; }
.hp-ctas.hp-center, .hp-center .hp-ctas { justify-content: center; }
/* Same height and corner radius as the App Store badge (53 px tall) so buttons sit level with it */
.hp-btn { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; height: 53px; min-width: 180px; padding: 0 22px; border-radius: 9px; font-weight: 600; font-size: 16px; text-decoration: none; transition: transform .15s ease; }
.hp-btn--ghost { background: #fff; color: var(--btn); border: 1px solid var(--line); }
.hp-btn--primary { background: var(--green); color: #fff; }
.hp-btn:hover { transform: translateY(-1px); }
.hp-badge { display: inline-block; line-height: 0; transition: transform .15s ease; }
.hp-badge:hover { transform: translateY(-1px); }
.hp-badge img { height: 53px; width: auto; }

/* Sections */
.hp-sec { padding: 88px 0; }
.hp-sec--tint { background: var(--mint); }
.hp-sec--navy { background: var(--navy); }
.hp-sec--after-hero { padding-top: 24px; } /* the hero already leaves room for its overhanging phone */
.hp-wide { margin-top: 32px; border-radius: 20px; box-shadow: 0 18px 40px rgba(18, 26, 45, .12); }

/* Hero */
.hp-hero { padding: 56px 0 128px; }
.hp-hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hp-hero__visual { position: relative; }
.hp-hero__photo { border-radius: 24px; box-shadow: 0 18px 44px rgba(18, 26, 45, .16); }
.hp-hero__phone { position: absolute; width: 34%; right: -4%; bottom: -22%; filter: drop-shadow(0 18px 30px rgba(18, 26, 45, .28)); }

/* Two-column feature blocks */
.hp-split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.hp-split--flip .hp-split__copy { order: 2; }
.hp-split__media { margin: 0; }
.hp-split__media > img { border-radius: 20px; box-shadow: 0 18px 40px rgba(18, 26, 45, .12); }
.hp-split__copy .hp-badge { margin-top: 10px; }
.hp-split__media .hp-badge { display: table; margin: 28px auto 0; }
/* 16:9 video embed (Vimeo) */
.hp-embed { position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: var(--navy); box-shadow: 0 18px 40px rgba(18, 26, 45, .14); }
.hp-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* How it works */
.hp-how { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; margin: 32px 0; }
.hp-steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.hp-steps li { counter-increment: s; position: relative; padding: 0 0 26px 64px; color: #c9d5e4; font-size: 17px; line-height: 1.6; }
.hp-steps li::before { content: counter(s); position: absolute; left: 0; top: -4px; width: 44px; height: 44px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.hp-steps strong { display: block; color: #fff; font-size: 19px; margin-bottom: 4px; }
/* .hp prefix so it outranks .hp img { max-width: 100% }, which had kept this phone at full width */
.hp .hp-how__shot { display: block; margin: 0 auto; width: 100%; max-width: 220px; height: auto; }

/* Care Circle and Reaction Journal */
.hp-sec-head { margin-bottom: 36px; }
.hp-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.hp-card { display: grid; grid-template-columns: 150px 1fr; gap: 22px; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 26px; }

/* Testimonials */
.hp-quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 30px; text-align: left; }
.hp-quotes blockquote { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.hp-quotes p { color: var(--ink); }
.hp-quotes cite { font-style: normal; font-size: 14px; color: var(--body); }

/* Pricing */
.hp-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 32px 0 26px; text-align: left; }
.hp-plan { position: relative; border: 1px solid var(--line); border-radius: 18px; padding: 24px; background: #fff; }
.hp-plan__pill { position: absolute; top: -13px; right: 18px; background: var(--green); color: #fff; font-size: 13px; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.hp-plan--trial { border: 2px solid var(--green); }
.hp-plan h3 { margin: 0 0 6px; font-size: 18px; color: var(--navy); }
.hp .hp-price { font-size: 24px; font-weight: 700; color: var(--navy); margin: 0 0 12px; }
.hp-price__per { font-size: 15px; font-weight: 500; color: var(--body); }
.hp-plan ul { margin: 0; padding-left: 18px; color: var(--body); line-height: 1.7; }

/* FAQ */
.hp-faq { max-width: 820px; }
.hp-faq__more { text-align: center; margin-top: 24px; }
.hp-faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin: 0 0 12px; }
.hp-faq summary { list-style: none; cursor: pointer; padding: 18px 20px; font-weight: 600; color: var(--ink); display: flex; justify-content: space-between; gap: 12px; }
.hp-faq summary::-webkit-details-marker { display: none; }
.hp-faq summary::after { content: "+"; color: var(--btn); font-size: 22px; line-height: 1; }
.hp-faq details[open] summary::after { content: "-"; }
.hp-faq details p { padding: 0 20px 18px; margin: 0; }

/* Final call to action */
/* Closing band with logo (How it works, FAQ): pale background, small logo, big button */
.hp-cta-band { background: #EEF5FB; }
.hp-cta-band--mint { background: #E3F5EB; border-top: 1px solid #CFEBDB; }
.hp-cta-band__logo { width: 120px; margin: 0 auto 22px; }
.hp-cta-band .hp-ctas { margin-top: 10px; }
.hp-final .hp-badge { margin-top: 10px; }

/* Mobile */
@media (max-width: 900px) {
  .hp-sec { padding: 60px 0; }
  .hp-hero { padding: 28px 0 96px; }
  .hp-hero__grid, .hp-split, .hp-how, .hp-duo { grid-template-columns: 1fr; gap: 32px; }
  .hp-split--flip .hp-split__copy { order: 0; }
  .hp-hero__phone { width: 30%; right: 2%; bottom: -20%; }
  .hp-quotes, .hp-plans { grid-template-columns: 1fr; }
  .hp-card { grid-template-columns: 110px 1fr; padding: 20px; }
}
