/* Product pages laid out like the homepage (layouts/Landing.astro).
   The hero reuses .hero, .hero__band and .hero__fud from style.css, and the offer
   card reuses .book__* from book.css; this file adds the band illustrations
   and the sections the Markdown body is split into
   (src/data/landing.ts). */

.lp{--lp-red:#D6262C;--lp-amber:#B45309;--lp-blue:#2F64C8}
:root:not([data-theme=light]) .lp{--lp-red:#FF8A8E;--lp-amber:#F5B65B;--lp-blue:#8FB8FF}

/* ---------- Hero ---------- */
.lp-crumbs{margin:0 0 22px}
.lp-crumbs ol{list-style:none;display:flex;flex-wrap:wrap;justify-content:center;gap:6px 10px;margin:0;padding:0;font-size:12.5px;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-faint)}
.lp-crumbs li{display:flex;align-items:center;gap:10px}
.lp-crumbs li+li::before{content:"/";color:var(--line-strong)}
.lp-crumbs a{color:var(--ink-faint);transition:color .15s ease}
.lp-crumbs a:hover{color:var(--ink)}
.lp-crumbs [aria-current]{color:var(--ink-dim)}
.lp-hero__title{max-width:20ch}
.lp-hero__ghost{padding:14px 26px;font-size:16px;font-weight:500}

/* ---------- Hero band ---------- */
.lp-band__stage{display:flex;align-items:center;justify-content:center;max-width:1320px;min-height:440px;margin:0 auto;padding:56px 32px}
.lp-link{flex:none;width:72px;height:24px;overflow:visible}
.lp-band__agent{flex:none;display:block;width:clamp(240px,25vw,340px);height:auto}

/* Phone mockup, drawn in CSS so it stays sharp and weighs nothing. */
.lp-phone{position:relative;z-index:1;flex:none;width:208px;aspect-ratio:9/18.5;padding:9px;border-radius:36px;background:#17181A;box-shadow:0 40px 60px -30px rgba(12,24,40,.55),inset 0 0 0 1px rgba(255,255,255,.08)}
.lp-phone__screen{position:relative;display:flex;flex-direction:column;gap:9px;height:100%;padding:12px 12px 14px;overflow:hidden;border-radius:28px;background:#F2F8FF;color:#17181A;font-size:11px;line-height:1.3}
.lp-phone__status{display:flex;align-items:center;justify-content:space-between;font-weight:600;font-size:10.5px}
.lp-rec{display:inline-flex;align-items:center;gap:5px;padding:3px 8px;border-radius:999px;background:#D6262C;color:#fff;font-size:9.5px;letter-spacing:.04em}
.lp-rec i{width:6px;height:6px;border-radius:50%;background:#fff}
@media (prefers-reduced-motion:no-preference){.lp-rec i,.lp-phone__recBtn i{animation:lpBlink 1.4s ease-in-out infinite}}
@keyframes lpBlink{50%{opacity:.25}}
.lp-phone__title{margin:4px 0 2px;font-size:17px;font-weight:700;letter-spacing:-.01em}
.lp-phone__row{display:flex;align-items:center;gap:9px;padding:8px;border-radius:12px;background:#fff;box-shadow:0 1px 0 rgba(12,36,63,.06)}
.lp-phone__thumb{flex:none;width:30px;height:30px;border-radius:8px;background:#CCE0FF}
.lp-phone__thumb--b{background:#FFD9DA}
.lp-phone__lines{flex:1;display:flex;flex-direction:column;gap:5px}
.lp-phone__lines b{display:block;height:6px;border-radius:3px;background:#DCE7F5}
.lp-phone__lines b+b{width:60%}
.lp-phone__price{font-weight:600}
.lp-phone__field{padding:9px 10px;border:1px dashed #A9C8FF;border-radius:10px;color:#5E6773}
.lp-phone__total{display:flex;justify-content:space-between;margin-top:auto;font-weight:600}
.lp-phone__pay{position:relative;padding:11px;border-radius:999px;background:#17181A;color:#F2F8FF;font-weight:600;text-align:center}
.lp-phone__tap{position:absolute;right:30%;top:50%;width:26px;height:26px;margin-top:-13px;border-radius:50%;background:rgba(214,38,44,.35);box-shadow:0 0 0 6px rgba(214,38,44,.15)}
@media (prefers-reduced-motion:no-preference){.lp-phone__tap{animation:lpTap 2.4s ease-out infinite}}
@keyframes lpTap{0%{transform:scale(.4);opacity:0}15%{opacity:1}60%{transform:scale(1.15);opacity:.9}100%{transform:scale(1.4);opacity:0}}
.lp-phone__card{height:78px;border-radius:14px;background:linear-gradient(135deg,#A9C8FF,#CCE0FF)}
.lp-phone__recBtn{position:absolute;right:12px;bottom:16px;display:inline-flex;align-items:center;gap:6px;padding:8px 13px;border-radius:999px;background:#D6262C;color:#fff;font-weight:700;font-size:11.5px;box-shadow:0 10px 20px -8px rgba(214,38,44,.7)}
.lp-phone__recBtn i{width:7px;height:7px;border-radius:50%;background:#fff}

/* Event chips beside the phone, in the style of the homepage's friction chips. */
.lp-events{position:relative;z-index:2;flex:none;list-style:none;display:flex;flex-direction:column;align-items:flex-start;gap:10px;margin:0 0 0 -44px;padding:0}
.lp-events li{display:inline-flex;align-items:center;gap:10px;padding:9px 16px 9px 10px;border-radius:999px;background:#F2F8FF;color:#17181A;font-size:14px;font-weight:500;white-space:nowrap;box-shadow:0 14px 28px -16px rgba(12,24,40,.5)}
.lp-events__t{padding:2px 7px;border-radius:999px;background:#DCE7F5;font-size:11.5px;font-variant-numeric:tabular-nums}
.lp-events li.lp-events__err{background:#FFE3E4;color:#B3161C}
.lp-events__err .lp-events__t{background:#FFC9CB}
.lp-events li:nth-child(2){margin-left:22px}

/* Audit card: the agent's answer. */
.lp-audit{flex:none;width:310px;padding:16px;border-radius:20px;background:#F2F8FF;color:#17181A;box-shadow:0 30px 50px -28px rgba(12,24,40,.55)}
.lp-audit__head{display:flex;justify-content:space-between;margin:0 0 12px;padding:0 2px 10px;border-bottom:1px solid rgba(12,36,63,.1);font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:#5E6773}
.lp-audit__row{display:flex;align-items:center;gap:10px;margin:0;padding:8px 2px;font-size:13.5px}
.lp-audit__row+.lp-audit__row{border-top:1px solid rgba(12,36,63,.06)}
.lp-audit__text{flex:1;min-width:0}
.lp-audit__t{flex:none;padding:2px 8px;border-radius:999px;background:#17181A;color:#F2F8FF;font-size:11.5px;font-variant-numeric:tabular-nums}

/* Priority pills, in the band and in the audit table of the body. */
.lp-pill{display:inline-block;flex:none;padding:3px 9px;border-radius:999px;font-size:11.5px;font-weight:600;letter-spacing:.02em;line-height:1.3;white-space:nowrap}
.lp-pill--high{background:rgba(214,38,44,.12);color:var(--lp-red)}
.lp-pill--medium{background:rgba(217,119,6,.14);color:var(--lp-amber)}
.lp-pill--low{background:rgba(47,100,200,.12);color:var(--lp-blue)}
.lp-audit .lp-pill--high{color:#D6262C}.lp-audit .lp-pill--medium{color:#B45309}.lp-audit .lp-pill--low{color:#2F64C8}
.lp-audit .lp-pill{width:64px;text-align:center}

/* Setup terminal: always dark, like the homepage's agent screenshot. */
.lp-term{--ink:#CCE0FF;--ink-dim:#CCE0FF;--ink-faint:rgba(204,224,255,.6);--line:rgba(204,224,255,.10);--accent:#CCE0FF;position:relative;z-index:1;flex:0 1 560px;min-width:0;border-radius:18px;background:#17181A;color:var(--ink);border:1px solid rgba(204,224,255,.16);box-shadow:0 40px 60px -30px rgba(12,24,40,.6);overflow:hidden}
.lp-term__body{display:flex;flex-direction:column;gap:11px;padding:20px 22px 22px;font-size:14px;line-height:1.5}
.lp-term__prompt{margin:0 0 4px;padding:12px 14px;border:1px solid rgba(204,224,255,.16);border-radius:10px;color:#F2F8FF;font-weight:500}
.lp-term__prompt::before{content:"\203A  ";color:#8FB8FF}
.lp-term__line{display:flex;align-items:baseline;gap:10px;margin:0;color:rgba(204,224,255,.78)}
.lp-term__line i{flex:none;width:6px;height:6px;border-radius:50%;background:#8FB8FF;transform:translateY(-2px)}
.lp-term__line b{color:#F2F8FF;font-weight:600}
.lp-term__line--ok{color:#8FD6A8}
.lp-term__line--ok i{background:#8FD6A8}
.lp-term__line--ok::after{content:"\2713";margin-left:2px}
.lp--setup .lp-band__stage,.lp--test .lp-band__stage{gap:0}
/* Web audits rate fixes as conversion risk, friction or polish: wider pills. */
.lp--test .lp-audit .lp-pill{width:74px}

@media (max-width:1180px){
  .lp--recording .lp-band__agent,.lp--recording .lp-link:last-of-type{display:none}
}
@media (max-width:760px){
  .lp-band__stage{flex-direction:column;min-height:0;padding:36px 16px 40px}
  /* Vertical dotted connector between the stacked items, as on the homepage. */
  .lp-link{display:block;width:8px;height:40px;margin:12px 0}
  .lp-link *{display:none}
  .lp-link{background:radial-gradient(circle,#17181A 3px,transparent 3.5px) top/8px 8px no-repeat,radial-gradient(circle,#17181A 3px,transparent 3.5px) bottom/8px 8px no-repeat,repeating-linear-gradient(#17181A 0 4px,transparent 4px 9px) center/1.6px calc(100% - 12px) no-repeat}
  .lp--recording .lp-link:last-of-type{display:none}
  .lp-events{align-items:center;margin:-24px 0 0}
  .lp-events li:nth-child(2){margin-left:0}
  .lp-audit{width:min(100%,340px)}
  .lp-term{flex:none;width:100%}
  .lp-phone{width:190px}
}

/* ---------- Body sections ---------- */
.lp-body{font-size:16px;line-height:1.7;color:var(--ink-dim)}
.lp-body a{color:var(--ink);text-decoration:underline;text-decoration-color:var(--line-strong);text-underline-offset:3px;transition:text-decoration-color .15s ease}
.lp-body a:hover{text-decoration-color:var(--ink)}
.lp-body strong{color:var(--ink);font-weight:600}
.lp-body p{margin:0 0 16px;max-width:72ch}
.lp-body code{font-family:var(--font-mono);font-size:.9em;padding:1px 6px;border-radius:5px;background:rgba(var(--accent-rgb),.08);color:var(--ink);overflow-wrap:anywhere}
.lp-body pre{margin:14px 0 8px;padding:16px 18px;overflow-x:auto;border-radius:var(--radius-md);background:#17181A;border:1px solid rgba(204,224,255,.14);color:#E3EEFF;font-size:13.5px;line-height:1.6}
.lp-body pre code{padding:0;background:none;color:inherit;font-size:inherit;overflow-wrap:normal}
[data-theme=light] .lp-body{color:#2B3442}

.lp-intro{padding:88px 0 40px}
.lp-intro__inner{max-width:900px;text-align:center}
.lp-intro p{max-width:none;margin:0 auto;font-size:clamp(19px,2.1vw,24px);line-height:1.5;letter-spacing:-.01em;color:var(--ink)}

.lp-sec{position:relative;padding:80px 0}
.lp-sec__head{max-width:760px;margin:0 0 40px}
.lp-sec__title{margin:0;font-family:var(--font-gradient);font-size:var(--fs-h2);line-height:1.15;font-weight:500;letter-spacing:-.02em;color:var(--ink);text-wrap:balance;scroll-margin-top:90px}
.lp-sec__body>:last-child{margin-bottom:0}
.lp-sec__body>p{font-size:15.5px}

/* Cards: each bullet becomes a card; its bold lead is the card title. */
.lp-sec--cards .lp-sec__body>ul{list-style:none;counter-reset:lpcard;display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:16px;margin:0 0 24px;padding:0}
.lp-sec--cards .lp-sec__body>ul>li{counter-increment:lpcard;position:relative;padding:26px 24px 24px;border-radius:var(--radius-lg);border:1px solid var(--line-strong);background:linear-gradient(165deg,var(--surface-raised),var(--surface) 72%);font-size:15px;line-height:1.6}
.lp-sec--cards .lp-sec__body>ul>li::before{content:counter(lpcard,decimal-leading-zero);display:block;margin:0 0 18px;font-size:12.5px;font-weight:600;color:var(--ink-faint)}
.lp-sec--cards .lp-sec__body>ul>li>strong:first-child{display:block;margin:0 0 6px;font-size:18px;letter-spacing:-.01em}

/* Steps: numbered circles on a rail, as in "How it works" on the homepage. */
.lp-sec--steps .lp-sec__body>ol{list-style:none;counter-reset:lpstep;position:relative;display:flex;flex-direction:column;gap:30px;max-width:860px;margin:0 0 28px;padding:0}
.lp-sec--steps .lp-sec__body>ol::before{content:"";position:absolute;left:22px;top:8px;bottom:8px;width:2px;border-radius:2px;background:var(--line-strong)}
.lp-sec--steps .lp-sec__body>ol>li{counter-increment:lpstep;position:relative;min-height:46px;padding:10px 0 0 72px;font-size:15.5px;line-height:1.65}
.lp-sec--steps .lp-sec__body>ol>li::before{content:counter(lpstep,decimal-leading-zero);position:absolute;left:0;top:0;z-index:1;display:flex;align-items:center;justify-content:center;width:46px;height:46px;border-radius:50%;border:1px solid var(--line-strong);background:var(--surface);font-size:14.5px;font-weight:600;color:var(--ink)}
.lp-sec--steps .lp-sec__body>ol>li>p{margin:0 0 10px}
.lp-sec--steps .lp-sec__body>ol>li>strong:first-child,.lp-sec--steps .lp-sec__body>ol>li>p:first-child>strong:first-child{font-size:17px}

/* A step list without code is short: put it in a card next to its heading, like the
   homepage's setup card. Lists with code blocks keep the full width. */
.lp-sec--steps:not(.lp-sec--code) .lp-sec__inner{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:56px;align-items:start;padding-top:56px;padding-bottom:56px;border-radius:var(--radius-lg);border:1px solid var(--line-strong);background:linear-gradient(165deg,var(--surface-raised),var(--surface) 72%);box-shadow:0 60px 80px -50px rgba(0,0,0,.26)}
.lp-sec--steps:not(.lp-sec--code){padding-left:32px;padding-right:32px}
/* The homepage's landscape under the card, fading out behind the text. */
.lp-sec--steps:not(.lp-sec--code) .lp-sec__inner{background:linear-gradient(180deg,rgba(34,36,40,.94) 35%,rgba(23,24,26,.72)),#17181A center bottom/cover no-repeat url("../how-bg-dark.webp")}
[data-theme=light] .lp-sec--steps:not(.lp-sec--code) .lp-sec__inner{background:linear-gradient(180deg,rgba(242,248,255,.96) 40%,rgba(242,248,255,.72)),#F2F8FF center bottom/cover no-repeat url("../how-bg-light.webp")}
.lp-sec--steps:not(.lp-sec--code) .lp-sec__inner{max-width:1256px;padding-left:56px;padding-right:56px}
.lp-sec--steps:not(.lp-sec--code) .lp-sec__head{position:sticky;top:110px;margin:0}

/* Tables in a card that scrolls sideways on narrow screens. */
.lp-table{margin:0 0 24px;overflow-x:auto;border-radius:var(--radius-lg);border:1px solid var(--line-strong);background:var(--surface)}
.lp-table table{width:100%;border-collapse:collapse;font-size:14.5px;line-height:1.55}
.lp-table th{padding:16px 20px 14px;text-align:left;vertical-align:bottom;font-size:12px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-faint);border-bottom:1px solid var(--line-strong);white-space:nowrap}
.lp-table td{padding:16px 20px;vertical-align:top;color:var(--ink-dim);border-bottom:1px solid var(--line)}
.lp-table td:first-child{color:var(--ink);font-weight:600}
.lp-table tr:last-child td{border-bottom:0}
.lp-table tbody tr{transition:background .15s ease}
.lp-table tbody tr:hover{background:rgba(var(--accent-rgb),.04)}
[data-theme=light] .lp-table{background:#fff;box-shadow:0 30px 50px -40px rgba(12,36,63,.35)}
[data-theme=light] .lp-table td{color:#2B3442}
.lp-table table:has(th:nth-child(5)){min-width:880px}

/* The sample audit sits on the homepage's pricing background, in a dark card. */
.lp-sec[data-section=what-the-audit-looks-like]{background:var(--ground) center/cover no-repeat url("../pricing-bg-dark-1600.webp")}
[data-theme=light] .lp-sec[data-section=what-the-audit-looks-like]{background-image:url("../pricing-bg-white-1600.webp")}
.lp-sec[data-section=what-the-audit-looks-like] .lp-table{--ink:#CCE0FF;--ink-dim:rgba(204,224,255,.82);--ink-faint:rgba(204,224,255,.6);--line:rgba(204,224,255,.10);--line-strong:rgba(204,224,255,.18);--lp-red:#FF8A8E;--lp-amber:#F5B65B;--lp-blue:#8FB8FF;background:#17181A;box-shadow:0 60px 80px -50px rgba(0,0,0,.7)}
.lp-sec[data-section=what-the-audit-looks-like] .lp-table td{color:var(--ink-dim)}
[data-theme=light] .lp-sec[data-section=what-the-audit-looks-like] .lp-sec__body>p{color:#17181A}

/* Requirements and capture tables: label column stays narrow. */
.lp-table td:first-child:not(:only-child){width:1%;white-space:nowrap}
.lp-table table:has(th:nth-child(5)) td:first-child{width:auto}

/* ---------- Offer and byline ---------- */
.lp-offer{padding:100px 0 40px}
.lp-offer .book__lead a,.lp-offer__note a,.lp-offer .book__steps a{color:var(--ink);text-decoration:underline;text-decoration-color:var(--line-strong);text-underline-offset:3px}
.lp-offer__note{margin:28px 0 0;font-size:14px;line-height:1.6;color:var(--ink-faint)}
.lp-offer .book__offer{text-decoration:none}

.lp-byline{padding:0 0 56px}
.lp-byline p{margin:0 auto;padding-top:24px;max-width:760px;border-top:1px solid var(--line);font-size:13px;line-height:1.6;text-align:center;color:var(--ink-faint)}
.lp-byline a{color:var(--ink-dim);text-decoration:underline;text-decoration-color:var(--line-strong);text-underline-offset:3px}

@media (max-width:980px){
  .lp-sec--steps:not(.lp-sec--code) .lp-sec__inner{grid-template-columns:1fr;gap:36px}
  .lp-sec--steps:not(.lp-sec--code) .lp-sec__head{position:static}
}
@media (max-width:640px){
  .lp-hero__ghost{width:100%}
  .lp-intro{padding:56px 0 16px}
  .lp-intro__inner{text-align:left}
  .lp-sec{padding:56px 0}
  .lp-sec__head{margin-bottom:28px}
  .lp-sec--steps:not(.lp-sec--code){padding-left:12px;padding-right:12px}
  .lp-sec--steps:not(.lp-sec--code) .lp-sec__inner{padding:32px 20px}
  .lp-sec--steps .lp-sec__body>ol>li{padding-left:56px}
  .lp-sec--steps .lp-sec__body>ol>li::before{width:38px;height:38px;font-size:12.5px}
  .lp-sec--steps .lp-sec__body>ol::before{left:18px}
  .lp-sec--steps .lp-sec__body>ol{gap:24px}
  .lp-table th,.lp-table td{padding:12px 14px}
  .lp-table td:first-child:not(:only-child){white-space:normal;min-width:7rem}
  .lp-offer{padding:56px 0 24px}
}
