/* Spa Timer — public product page (lib/landing.php).
   Loaded after app.css on the landing page only. One light look on purpose:
   warm white, deep navy, teal. The illustrations are drawn on white, so the page
   stays light whatever the phone's setting. Everything is prefixed lp-. */

body.landing {
  --lp-navy:   #0B1F33;
  --lp-navy-2: #132D47;
  --lp-teal:   #0A7C80;   /* on warm white: 4.9:1 */
  --lp-teal-2: #3CCBC4;   /* on navy */
  --lp-white:  #FBF8F3;
  --lp-paper:  #FFFFFF;
  --lp-sand:   #F2EBDF;
  --lp-ink:    #0B1F33;
  --lp-soft:   #42566B;
  --lp-line:   rgba(11, 31, 51, .11);
  --lp-shadow: 0 30px 60px -32px rgba(11, 31, 51, .35), 0 2px 8px rgba(11, 31, 51, .06);
  --lp-r:      22px;
  --lp-max:    1200px;
  --lp-pad:    clamp(16px, 4vw, 40px);
  color-scheme: light;
  background: var(--lp-white);
  color: var(--lp-ink);
  font-size: 17px;
  line-height: 1.6;
  padding-bottom: 0;
}
body.landing .sea { display: none; }
body.landing h1, body.landing h2, body.landing h3 {
  font-family: var(--font-body); font-variation-settings: normal; font-weight: 800; letter-spacing: -.025em; color: inherit;
}
body.landing a { color: var(--lp-teal); }
body.landing a:hover { color: var(--lp-navy); }
body.landing :focus-visible { outline: 3px solid var(--lp-teal); outline-offset: 3px; }
html:has(body.landing) { scroll-padding-top: 84px; scroll-padding-bottom: 0; }
@media (min-width: 720px) { body.landing { font-size: 18px; } }

.lp-in { width: 100%; max-width: calc(var(--lp-max) + 2 * var(--lp-pad)); margin: 0 auto; padding: 0 var(--lp-pad); }
.lp-narrow { max-width: calc(820px + 2 * var(--lp-pad)); }
.lp-sec { padding: clamp(64px, 10vw, 120px) 0; }
.lp-sec h2 { font-size: clamp(30px, 4.6vw, 48px); line-height: 1.08; margin: 0 0 22px; max-width: 18em; text-wrap: balance; }
.lp-kicker { margin: 0 0 14px; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--lp-teal); }
.lp-big { font-size: clamp(18px, 1.9vw, 21px); line-height: 1.65; color: var(--lp-soft); margin: 0; }
.lp-muted { color: var(--lp-soft); }
.lp figure { margin: 0; }
.lp img { width: 100%; height: auto; }

/* ---- buttons ---- */
.lp-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 28px; border-radius: 999px;
          font-weight: 800; font-size: 17px; text-decoration: none; border: 2px solid transparent; cursor: pointer;
          transition: background .2s, color .2s, border-color .2s, transform .2s; }
body.landing .lp-btn--solid { background: var(--lp-navy); color: #fff; }
body.landing .lp-btn--solid:hover { background: var(--lp-teal); color: #fff; }
body.landing .lp-btn--line { border-color: var(--lp-navy); color: var(--lp-navy); background: transparent; }
body.landing .lp-btn--line:hover { background: var(--lp-navy); color: #fff; }
.lp-btn--sm { min-height: 42px; padding: 0 20px; font-size: 15px; }
.lp-btn--block { width: 100%; }
.lp-btn:active { transform: translateY(1px); }

/* ---- nav ---- */
.lp-nav { position: sticky; top: 0; z-index: 20; background: rgba(251, 248, 243, .92); border-bottom: 1px solid var(--lp-line);
          padding-top: env(safe-area-inset-top, 0px);
          -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); }
.lp-nav__in { display: flex; align-items: center; gap: 24px; min-height: 68px;
              max-width: calc(var(--lp-max) + 2 * var(--lp-pad)); margin: 0 auto; padding: 0 var(--lp-pad); }
.lp-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
body.landing .lp-brand, body.landing .lp-brand:hover { color: var(--lp-navy); }
.lp-nav__links { display: none; gap: 28px; margin-left: auto; }
body.landing .lp-nav__links a { color: var(--lp-soft); text-decoration: none; font-weight: 700; font-size: 15px; }
body.landing .lp-nav__links a:hover { color: var(--lp-navy); }
.lp-nav .lp-btn { margin-left: auto; }
@media (min-width: 760px) { .lp-nav__links { display: flex; } .lp-nav .lp-btn { margin-left: 8px; } }

/* ---- 1 hero ---- */
.lp-hero { padding: clamp(36px, 7vw, 96px) 0 clamp(56px, 8vw, 110px);
           background: radial-gradient(70% 60% at 85% 30%, rgba(60, 203, 196, .16), transparent 70%); }
.lp-hero__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .lp-hero__grid { grid-template-columns: 1fr 1.05fr; gap: 56px; } }
.lp-hero h1 { font-size: clamp(38px, 6vw, 72px); line-height: 1.02; letter-spacing: -.035em; margin: 0 0 24px; text-wrap: balance; }
.lp-hero h1 span { display: block; color: var(--lp-teal); }
.lp-lede { font-size: clamp(19px, 2vw, 22px); line-height: 1.55; color: var(--lp-soft); max-width: 30em; margin: 0; }
.lp-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
@media (max-width: 420px) { .lp-cta .lp-btn { flex: 1 1 100%; } }
.lp-hero__art { border-radius: 28px; overflow: hidden; background: #fff; box-shadow: var(--lp-shadow); border: 1px solid var(--lp-line); }

/* ---- 2 problem ---- */
.lp-problem { background: var(--lp-sand); }
.lp-problem .lp-big { color: var(--lp-ink); font-size: clamp(19px, 2.1vw, 23px); line-height: 1.7; }

/* ---- shared image frame ---- */
.lp-frame { background: #fff; border-radius: var(--lp-r); border: 1px solid var(--lp-line); box-shadow: var(--lp-shadow); overflow: hidden; }

/* ---- 3 how ---- */
.lp-how__art { margin: 40px 0 0; padding: clamp(10px, 2vw, 28px); }
.lp-steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 640px)  { .lp-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .lp-steps { grid-template-columns: repeat(5, 1fr); } }
.lp-steps li { background: var(--lp-paper); border: 1px solid var(--lp-line); border-radius: 18px; padding: 22px 20px; }
/* phone: number beside the text, so five steps don't take five screens */
@media (max-width: 639px) {
  .lp-steps { gap: 10px; }
  .lp-steps li { display: grid; grid-template-columns: 34px 1fr; column-gap: 16px; padding: 18px; }
  .lp-steps__n { grid-row: span 2; margin: 0; }
  .lp-steps h3 { margin-top: 4px; }
}
.lp-steps li:last-child { background: var(--lp-navy); color: #fff; border-color: var(--lp-navy); }
.lp-steps__n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; margin-bottom: 14px;
               font-weight: 800; font-size: 15px; color: #fff; background: var(--lp-teal); }
.lp-steps li:last-child .lp-steps__n { background: var(--lp-teal-2); color: var(--lp-navy); }
.lp-steps h3 { font-size: 19px; margin: 0 0 6px; }
.lp-steps p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--lp-soft); }
.lp-steps li:last-child p { color: rgba(255, 255, 255, .82); }
.lp-note { display: flex; gap: 14px; align-items: flex-start; margin: 28px 0 0; padding: 20px 22px; border-radius: 18px;
           background: rgba(10, 124, 128, .08); border: 1px solid rgba(10, 124, 128, .22); font-size: 17px; }
.lp-note svg { flex: 0 0 26px; width: 26px; height: 26px; fill: none; stroke: var(--lp-teal); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---- 4/5 split ---- */
.lp-split__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) {
  .lp-split__grid { grid-template-columns: 1fr 1.1fr; gap: 72px; }
  .lp-split--flip .lp-split__grid { grid-template-columns: .8fr 1fr; }
}
.lp-split--flip .lp-split__copy { order: -1; }
@media (min-width: 960px) { .lp-split--flip .lp-split__copy { order: 0; } }
.lp-box { background: var(--lp-sand); }
.lp-box__art { max-width: 480px; justify-self: center; width: 100%; }
.lp-parts { margin: 8px 0 0; display: grid; gap: 0; }
.lp-parts > div { padding: 18px 0; border-top: 1px solid var(--lp-line); display: grid; gap: 4px; }
.lp-parts > div:last-child { border-bottom: 1px solid var(--lp-line); }
@media (min-width: 640px) { .lp-parts > div { grid-template-columns: 9.5em 1fr; gap: 20px; } }
.lp-parts dt { font-weight: 800; }
.lp-parts dd { margin: 0; color: var(--lp-soft); font-size: 17px; }

/* ---- cards (6, 8) ---- */
.lp-cards { display: grid; gap: 16px; margin-top: 36px; }
@media (min-width: 820px) { .lp-cards--3 { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.lp-card { background: var(--lp-paper); border: 1px solid var(--lp-line); border-radius: var(--lp-r); padding: 30px 26px; }
.lp-card h3 { font-size: 21px; margin: 0 0 8px; }
.lp-card p { margin: 0; color: var(--lp-soft); font-size: 17px; }
.lp-card__icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 20px; background: var(--lp-navy); }
.lp-card__icon svg { width: 26px; height: 26px; fill: none; stroke: var(--lp-teal-2); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.lp-states { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lp-states li { padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 800; background: var(--lp-sand); color: var(--lp-navy); }
.lp-states li[data-s="full"] { background: var(--lp-teal); color: #fff; }

/* ---- 7 safety (dark band) ---- */
.lp-dark { background: var(--lp-navy); color: #fff;
           background-image: radial-gradient(60% 80% at 100% 0%, rgba(60, 203, 196, .16), transparent 70%); }
.lp-dark .lp-kicker { color: var(--lp-teal-2); }
.lp-dark .lp-big { color: rgba(255, 255, 255, .75); }
.lp-safety { display: grid; gap: 40px; }
@media (min-width: 960px) { .lp-safety { grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: start; } }
.lp-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.lp-checks li { position: relative; padding: 20px 0 20px 46px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 18px; line-height: 1.5; }
.lp-checks li:last-child { border-bottom: 1px solid rgba(255, 255, 255, .12); }
.lp-checks li::before { content: ""; position: absolute; left: 0; top: 19px; width: 28px; height: 28px; border-radius: 50%;
                        background: var(--lp-teal-2) no-repeat center / 14px
                        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3.5 3.5L11 1.5' fill='none' stroke='%230B1F33' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* ---- 9 where it stands + form ---- */
.lp-stands { background: var(--lp-sand); }
.lp-stands__grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 960px) { .lp-stands__grid { grid-template-columns: 1fr .9fr; gap: 72px; } }
.lp-track { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 0; }
.lp-track li { position: relative; padding: 0 0 22px 40px; font-weight: 700; color: var(--lp-soft); }
.lp-track li::before { content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%;
                       border: 2px solid rgba(11, 31, 51, .25); background: var(--lp-white); box-sizing: border-box; }
.lp-track li::after { content: ""; position: absolute; left: 10px; top: 27px; bottom: 2px; width: 2px; background: rgba(11, 31, 51, .15); }
.lp-track li:last-child { padding-bottom: 0; }
.lp-track li:last-child::after { display: none; }
.lp-track li.done { color: var(--lp-ink); }
.lp-track li.done::before { border-color: var(--lp-teal); background: var(--lp-teal) no-repeat center / 11px
                            url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3.5 3.5L11 1.5' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.lp-track li.done::after { background: var(--lp-teal); }
.lp-track li.now { color: var(--lp-ink); }
.lp-track li.now::before { border-color: var(--lp-teal); box-shadow: inset 0 0 0 4px var(--lp-white), inset 0 0 0 11px var(--lp-teal); }
.lp-form-card { background: var(--lp-paper); border-radius: 26px; padding: clamp(26px, 4vw, 40px); box-shadow: var(--lp-shadow); border: 1px solid var(--lp-line); }
.lp-form-card h3 { font-size: 26px; margin: 0 0 6px; }
.lp-form-card > p { margin: 0 0 22px; }
.lp-form { display: grid; gap: 16px; }
.lp-form label > span { display: block; font-size: 15px; font-weight: 800; margin-bottom: 6px; }
.lp-form input[type=text], .lp-form input[type=email] {
  width: 100%; min-height: 54px; padding: 12px 16px; border-radius: 14px; font-size: 17px;
  background: var(--lp-white); color: var(--lp-ink); border: 1.5px solid rgba(11, 31, 51, .18); transition: border-color .2s, box-shadow .2s; }
.lp-form input:focus { outline: none; border-color: var(--lp-teal); box-shadow: 0 0 0 4px rgba(10, 124, 128, .18); }
.lp-check { display: flex; align-items: center; gap: 12px; cursor: pointer; padding: 4px 0; }
.lp-form .lp-check > span { display: inline; margin: 0; font-weight: 700; }
.lp-check input { width: 22px; height: 22px; flex: 0 0 auto; accent-color: var(--lp-teal); }
.lp-form .lp-btn { margin-top: 6px; }
.lp-flash { margin: 0 0 18px; padding: 12px 16px; border-radius: 12px; font-weight: 700; font-size: 16px;
            background: #FDECEA; border: 1px solid #F3B5AE; color: #8A2318; }

/* ---- 10 FAQ ---- */
.lp-faq details { border-top: 1px solid var(--lp-line); }
.lp-faq details:last-of-type { border-bottom: 1px solid var(--lp-line); }
.lp-faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px;
                  padding: 22px 0; font-weight: 800; font-size: clamp(18px, 2vw, 21px); letter-spacing: -.01em; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: ""; flex: 0 0 32px; height: 32px; border-radius: 50%; background: var(--lp-sand) no-repeat center / 14px
                         url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M7 1v12M1 7h12' fill='none' stroke='%230B1F33' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
                         transition: transform .25s; }
.lp-faq details[open] summary::after { transform: rotate(45deg); }
.lp-faq details p { margin: -6px 0 24px; color: var(--lp-soft); max-width: 40em; }

/* ---- 11 footer ---- */
.lp-foot { background: var(--lp-navy); color: rgba(255, 255, 255, .72); padding: 56px 0 calc(84px + env(safe-area-inset-bottom, 0px)); font-size: 16px; }
.lp-foot__grid { display: grid; gap: 28px; }
@media (min-width: 760px) { .lp-foot__grid { grid-template-columns: 1fr auto; align-items: start; } }
body.landing .lp-foot .lp-brand { color: #fff; }
.lp-foot p { margin: 12px 0 0; }
body.landing .lp-foot a { color: #fff; }
body.landing .lp-foot a:hover { color: var(--lp-teal-2); }
.lp-foot nav { display: flex; flex-wrap: wrap; gap: 10px 26px; }
body.landing .lp-foot nav a { text-decoration: none; font-weight: 700; }
.lp-foot__small { margin: 36px 0 0; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px; color: rgba(255, 255, 255, .5); }

/* the floating Get help button, in the page's colours */
body.landing .help-fab { background: var(--lp-teal); border-color: transparent; color: #fff; box-shadow: 0 10px 30px -10px rgba(11, 31, 51, .5); }
body.landing .help-fab:hover { background: var(--lp-navy); color: #fff; }

@media (prefers-reduced-motion: reduce) { .lp-btn, .lp-faq summary::after { transition: none; } }

/* ---- inner pages: /how-it-works/, /for-installers/, /faq/ (2026-11-07) ---- */
/* Nav links show on phones too, as a second row under the brand. */
@media (max-width: 759px) {
  .lp-nav__in { flex-wrap: wrap; row-gap: 0; }
  .lp-nav__links { display: flex; order: 3; width: 100%; gap: 22px; padding: 0 0 12px; overflow-x: auto; }
  body.landing .lp-nav__links a { font-size: 14px; white-space: nowrap; }
}
body.landing .lp-nav__links a[aria-current="page"] { color: var(--lp-navy); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.lp-pagehead { padding: clamp(40px, 7vw, 88px) 0 clamp(8px, 2vw, 24px);
               background: radial-gradient(70% 80% at 85% 20%, rgba(60, 203, 196, .14), transparent 70%); }
.lp-pagehead h1 { font-size: clamp(34px, 5.4vw, 60px); line-height: 1.05; letter-spacing: -.03em; margin: 0 0 20px; text-wrap: balance; }
.lp-pagehead .lp-lede { margin: 0; }
.lp-olist { margin: 8px 0 0; padding: 0; list-style: none; counter-reset: st; display: grid; gap: 0; }
.lp-olist li { counter-increment: st; position: relative; padding: 18px 0 18px 52px; border-top: 1px solid var(--lp-line); line-height: 1.55; }
.lp-olist li:last-child { border-bottom: 1px solid var(--lp-line); }
.lp-olist li::before { content: counter(st); position: absolute; left: 0; top: 16px; width: 32px; height: 32px; border-radius: 50%;
                       background: var(--lp-sand); color: var(--lp-navy); font-weight: 800; font-size: 15px; display: grid; place-items: center; }
.lp-more { margin: 24px 0 0; font-weight: 700; }
.lp-faq--page { padding-top: clamp(24px, 4vw, 48px); }
.lp-endcta { background: var(--lp-sand); }
