/* landing.css — the TradesPilot landing page (landing.html). Layout and copy follow the owner's
   handoff design (tradespilot-handoff/reference/landing.html); shared tokens live in site.css. */

/* header over the hero */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 10; padding: 20px var(--gutter); transition: background .25s, box-shadow .25s, padding .25s; }
.site-header.stuck { position: fixed; background: rgba(10, 29, 51, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 6px 24px rgba(0, 0, 0, .25); padding-top: 12px; padding-bottom: 12px; }
.site-header nav { max-width: var(--max); margin: 0 auto; display: flex; align-items: center; gap: 16px 32px; }
.site-header .links { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-left: auto; align-items: center; font-size: 16px; font-weight: 500; }
.site-header .links a { color: #fff; text-decoration: none; }
.site-header .links a:hover { color: var(--tp-peach); }
.site-header .links a.btn { color: var(--tp-navy); }
.site-header .links .btn.white { padding: 12px 20px; min-height: 44px; font-size: 16px; }
@media (max-width: 1000px) { .site-header .links .nav-section { display: none; } }
@media (max-width: 480px) { .site-header { padding-top: 14px; } .site-header .brand span { font-size: 20px; } .site-header .brand svg { width: 30px; height: 30px; } .site-header .links { gap: 8px 14px; font-size: 15px; } .site-header .links .btn.white { padding: 10px 14px; font-size: 15px; } }

/* hero slider */
.hero { position: relative; height: clamp(640px, 92vh, 860px); overflow: hidden; background: var(--tp-navy-deep); color: #fff; }
.slide { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .9s ease; }
.slide.on { opacity: 1; pointer-events: auto; }
.slide picture, .slide img.bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.slide img.bg { object-fit: cover; object-position: 70% center; transition: transform 7s ease-out; }
.slide.on img.bg { transform: scale(1.04); }
.slide .shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 22, 40, .92) 0%, rgba(8, 22, 40, .7) 42%, rgba(8, 22, 40, .05) 75%); }
.slide .copy { position: relative; max-width: var(--max); height: 100%; margin: 0 auto; padding: 0 var(--gutter) 90px; display: flex; flex-direction: column; justify-content: center; gap: 24px; }
.slide h1, .slide h2 { max-width: 680px; font-size: clamp(44px, 6vw, 84px); line-height: .98; }
.slide p { max-width: 530px; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--tp-ink-on-dark); }
.slide .ctas { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 900px) {
  .slide .shade { background: linear-gradient(180deg, rgba(8, 22, 40, .55) 0%, rgba(8, 22, 40, .82) 45%, rgba(8, 22, 40, .92) 100%); }
  .slide .copy { justify-content: flex-end; padding-bottom: 150px; }
}
.sample-card { position: absolute; right: clamp(16px, 6vw, 96px); bottom: 120px; width: 300px; background: rgba(255, 255, 255, .96); border-radius: 18px; padding: 18px 20px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); display: flex; flex-direction: column; gap: 11px; color: var(--tp-navy); }
@media (max-width: 900px) { .sample-card { display: none; } }
.sample-card .head { display: flex; justify-content: space-between; align-items: center; }
.sample-card .head b { font-weight: 800; font-size: 15px; }
.sample-card .tag { font-family: var(--tp-font-mono); font-size: 12px; color: #4A5868; }
.sample-card .row { display: flex; gap: 10px; font-size: 14px; align-items: center; }
.sample-card .row.kv { justify-content: space-between; }
.sample-card .row.kv b { font-weight: 700; }
.sample-card .struck { font-size: 14px; color: var(--tp-ink-muted); text-decoration: line-through; }
.tick, .warn { flex: none; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; }
.tick { background: var(--tp-pass); color: #fff; }
.warn { background: var(--tp-orange); color: var(--tp-navy); font-size: 14px; }
.sample-card .cta { background: var(--tp-navy); color: #fff; border-radius: 10px; padding: 10px 12px; font-size: 14px; font-weight: 700; text-align: center; }

.hero-controls { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; padding: 0 var(--gutter) 32px; }
.hero-controls > div { max-width: var(--max); margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.hero-tabs { display: flex; flex-wrap: wrap; gap: 10px 24px; flex-grow: 1; }
.hero-tabs button { background: none; border: 0; border-top: 3px solid rgba(255, 255, 255, .35); padding: 10px 0 0; min-height: 44px; min-width: 150px; cursor: pointer; text-align: left; color: #B9C6D4; font: 600 15px var(--tp-font-display); position: relative; }
.hero-tabs button[aria-selected="true"] { color: #fff; border-top-color: transparent; }
.hero-tabs button[aria-selected="true"]::before { content: ""; position: absolute; left: 0; right: 0; top: -3px; height: 3px; background: var(--tp-orange); transform-origin: left; animation: tp-progress 6s linear forwards; }
.hero.still .hero-tabs button[aria-selected="true"]::before { animation: none; }
@keyframes tp-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero-arrows { display: flex; gap: 10px; }
.hero-arrows button { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .5); background: rgba(8, 22, 40, .4); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.hero-arrows button:hover { border-color: #fff; }
@media (max-width: 640px) { .hero-tabs button { min-width: 0; flex: 1 1 0; font-size: 13px; } .hero-arrows { display: none; } }

/* sections */
.section { padding: clamp(64px, 9vw, 120px) var(--gutter); }
.section > .inner { max-width: var(--max); margin: 0 auto; }
.section h2 { font-size: clamp(36px, 4.4vw, 60px); }
.section.dark { background: var(--tp-navy-deep); color: #fff; }
.lead { font-size: 18px; line-height: 1.6; color: var(--tp-ink-muted); }
.dark .lead { color: var(--tp-ink-on-dark); }

.trades { background: var(--tp-navy); color: #fff; padding: 22px var(--gutter); }
.trades > div { max-width: var(--max); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 12px 40px; align-items: center; font-size: 17px; font-weight: 600; }
.trades .eyebrow { font-size: 13px; color: var(--tp-peach); }
.trades .soon { color: #AFC0D2; }

.how-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 56px; }
.how-head h2 { max-width: 720px; }
.how-head p { max-width: 420px; }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.step { background: #fff; border-radius: var(--tp-radius-card); padding: 32px; display: flex; flex-direction: column; gap: 14px; min-height: 260px; }
.step .eyebrow { letter-spacing: 0; text-transform: none; }
.step h3 { font-size: 26px; font-stretch: 106%; letter-spacing: -.01em; }
.step p { font-size: 17px; color: var(--tp-ink-muted); }
.step.navy { background: var(--tp-navy); color: #fff; }
.step.navy .eyebrow { color: var(--tp-peach); }
.step.navy p { color: var(--tp-ink-on-dark); }

.split { display: flex; flex-wrap: wrap; gap: 64px; align-items: center; }
.split > .text { flex: 1 1 440px; display: flex; flex-direction: column; gap: 22px; }
.split > .visual { flex: 1 1 360px; display: flex; justify-content: center; }
.split .btn { align-self: flex-start; }

/* phone mock (compliance) */
.phone { width: 320px; max-width: 100%; background: var(--tp-paper); color: var(--tp-navy); border-radius: 40px; padding: 14px; box-shadow: 0 40px 90px rgba(0, 0, 0, .5); }
.phone .screen { background: #fff; border-radius: 28px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.phone .head { display: flex; justify-content: space-between; align-items: center; }
.phone .head b { font-weight: 800; font-size: 17px; }
.phone .photo { height: 150px; border-radius: 16px; background: #DCE3EA center/cover no-repeat; }
.phone .check-row { display: flex; justify-content: space-between; font-size: 14px; padding: 10px 0; border-bottom: 1px solid #E6E9ED; }
.phone .check-row:last-of-type { border-bottom: 0; }
.phone .pass { font-weight: 700; color: var(--tp-pass); }
.phone .needs { font-weight: 700; color: var(--tp-ember); }
.phone .feedback { background: #FFF1E8; border-radius: 12px; padding: 12px; font-size: 13px; line-height: 1.5; color: #5A2A0A; }

/* app showcase (real screens from the app, fake data) */
.showcase { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 860px) { .showcase { grid-template-columns: 1fr; justify-items: center; } }
.showcase .text { display: flex; flex-direction: column; gap: 22px; }
.screen-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.screen-list button { width: 100%; text-align: left; display: flex; gap: 14px; align-items: flex-start; background: transparent; border: 0; border-left: 3px solid #D3CEC4; padding: 12px 16px; cursor: pointer; font: inherit; color: var(--tp-navy); border-radius: 0 12px 12px 0; transition: background .2s, border-color .2s; }
.screen-list button:hover { background: rgba(255, 255, 255, .6); }
.screen-list button[aria-selected="true"] { border-left-color: var(--tp-orange); background: #fff; }
.screen-list b { display: block; font-size: 18px; font-weight: 800; }
.screen-list span { font-size: 15px; color: var(--tp-ink-muted); }
.device { width: 300px; max-width: 80vw; aspect-ratio: 390 / 844; background: #0A1D33; border-radius: 46px; padding: 12px; box-shadow: 0 40px 90px rgba(14, 42, 71, .35), inset 0 0 0 2px #24384F; position: relative; }
.device .glass { position: relative; width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: #F5F6F4; }
.device img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity .7s ease; }
.device img.on { opacity: 1; }
.device .label { position: absolute; left: 50%; bottom: -44px; transform: translateX(-50%); white-space: nowrap; font-family: var(--tp-font-mono); font-size: 12px; color: var(--tp-ink-muted); }

/* funnel */
.funnel { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 40px; }
.funnel > div { border-top: 3px solid var(--tp-navy); padding-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.funnel > div:last-child { border-top-color: var(--tp-orange); }
.funnel b { font-weight: 800; font-size: 20px; }
.funnel span { font-size: 16px; color: var(--tp-ink-muted); }

/* pricing */
.pricing-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 36px; }
.pricing-head h2 { max-width: 640px; }
.offer-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; background: var(--tp-navy); color: #fff; border-radius: 18px; padding: 16px 22px; margin-bottom: 24px; }
.offer-bar b { font-size: 18px; }
.offer-bar span { color: var(--tp-ink-on-dark); font-size: 15px; }
.offer-bar .pill { background: var(--tp-orange); color: var(--tp-navy); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.plan { background: #fff; border-radius: var(--tp-radius-card); padding: 34px; display: flex; flex-direction: column; gap: 18px; position: relative; border: 2px solid transparent; }
.plan.featured { border-color: var(--tp-orange); }
.plan .badge { position: absolute; top: -14px; left: 28px; background: var(--tp-orange); color: var(--tp-navy); font: 500 12px var(--tp-font-mono); letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; border-radius: var(--tp-radius-pill); }
.plan h3 { font-size: 28px; font-stretch: 106%; letter-spacing: -.01em; }
.plan .blurb { color: var(--tp-ink-muted); font-size: 16px; min-height: 3em; }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price .now { font-size: 56px; font-weight: 800; font-stretch: 108%; letter-spacing: -.04em; line-height: 1; }
.price .per { font-size: 17px; color: var(--tp-ink-muted); font-weight: 600; }
.price .was { font-size: 20px; color: var(--tp-ink-muted); text-decoration: line-through; font-weight: 600; }
.price-note { font-size: 15px; color: var(--tp-ink-muted); min-height: 2.6em; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 16px; }
.plan li { display: flex; gap: 10px; }
.plan li::before { content: "✓"; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--tp-pass); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; margin-top: 1px; }
.plan li.no::before { content: "–"; background: #E2DED6; color: var(--tp-ink-muted); }
.plan li.no { color: #7A8796; }
.plan .btn { margin-top: auto; }
.fine { margin-top: 22px; font-size: 14.5px; color: var(--tp-ink-muted); }

/* faq */
.faq { max-width: 880px; margin: 40px auto 0; display: grid; gap: 12px; }
.faq details { background: #fff; border-radius: 18px; padding: 0 24px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-size: 18px; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--tp-paper); display: grid; place-items: center; font-size: 20px; font-weight: 600; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--tp-ink-muted); font-size: 16.5px; }

/* call to action band */
.cta-band { max-width: var(--max); margin: 0 auto; background: var(--tp-orange); border-radius: 28px; padding: clamp(36px, 5vw, 72px); display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; }
.cta-band > div:first-child { flex: 1 1 520px; display: flex; flex-direction: column; gap: 16px; }
.cta-band h2 { font-size: clamp(34px, 4vw, 54px); color: var(--tp-navy); }
.cta-band p { font-size: 18px; color: #2A1406; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* footer extras */
.footer .contact { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.mono-tag { font-family: var(--tp-font-mono); font-size: 12px; color: #4A5868; }
/* crossfade: the outgoing words leave first, the new ones arrive after the photo, so text never overlaps */
.slide .copy, .slide .sample-card { transition: opacity .35s ease; }
.slide:not(.on) .copy, .slide:not(.on) .sample-card { opacity: 0; }
.slide.on .copy, .slide.on .sample-card { transition: opacity .5s ease .45s; }
/* narrow phones: one header button, Sign in (the demo button is further down the page) */
.site-header .links { flex-wrap: nowrap; }
@media (max-width: 520px) {
  .site-header .links .demo-top { display: none; }
  .site-header .links a.signin { border: 1.5px solid rgba(255, 255, 255, .6); border-radius: var(--tp-radius-pill); padding: 9px 18px; font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; }
}
