/* Shop, tools, landing pages and client portal. Same tokens as site.css. */
.h3 { font: 800 1.3rem/1.2 var(--display); color: var(--navy); margin: 0 0 12px; }
.small { font-size: 13.5px; }
.muted { color: var(--ink-2); }
.err { background: var(--red-tint); color: var(--red); font-weight: 700; padding: 10px 14px; border-radius: 10px; }
.okmsg { background: var(--green-tint); color: var(--green); font-weight: 700; padding: 10px 14px; border-radius: 10px; }
.lnk { background: none; border: 0; padding: 0; color: var(--blue); font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; }
.lnk:hover { text-decoration: underline; }
.box { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.row-acts { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.tag-warn { background: var(--yellow-tint); color: #8a6a00; }

/* Packages on service + LP pages */
.pk { margin-top: 40px; scroll-margin-top: 170px; }
.pk-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.pk-head h2 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.8rem); }
.cur-switch { font-size: 13.5px; color: var(--ink-2); display: flex; gap: 6px; align-items: center; }
.cur-switch a { padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--navy); font-weight: 700; }
.cur-switch a[aria-current] { background: var(--navy); color: #fff; border-color: var(--navy); }
.pk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.pk-card { position: relative; border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 6px; background: #fff; }
.pk-card > .tag { position: absolute; top: -11px; left: 18px; background: var(--yellow); color: var(--navy); }
.pk-pop { border: 2px solid var(--blue); box-shadow: 0 18px 34px -24px rgba(31,95,224,.7); }
.pk-card > b { font: 800 1.2rem/1.2 var(--display); color: var(--navy); }
.pk-blurb { color: var(--ink-2); font-size: 14px; }
.pk-price { font: 800 1.9rem/1.1 var(--display); color: var(--navy); margin: 8px 0 0; font-variant-numeric: tabular-nums; }
.pk-price small { display: block; font: 400 12.5px/1.4 var(--text); color: var(--ink-2); }
.pk-card .ticks { margin: 12px 0 16px; font-size: 14.5px; gap: 8px; }
.pk-acts { margin-top: auto; display: grid; gap: 8px; }
.pk-note { margin-top: 14px; font-size: 13.5px; color: var(--ink-2); max-width: 80ch; }
.lp-wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--m); }

/* Cart / checkout / pay */
.shop { max-width: var(--max); margin: 28px auto 0; padding: 0 var(--m); display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.shop-main { min-width: 0; }
.sum { position: sticky; top: 120px; display: grid; gap: 12px; }
.lines { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.lines li { display: flex; gap: 12px; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff; }
.lines li > span:first-child { display: grid; gap: 2px; min-width: 0; }
.lines li small { color: var(--ink-2); font-size: 13px; }
.lines .amt { font-weight: 700; color: var(--navy); white-space: nowrap; margin-left: auto; font-variant-numeric: tabular-nums; }
.lines.small li { padding: 8px 10px; font-size: 14px; }
.tot { margin: 0; display: grid; gap: 6px; }
.tot div { display: flex; justify-content: space-between; gap: 12px; } .tot dt { color: var(--ink-2); } .tot dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.tot .grand { border-top: 1px solid var(--line); padding-top: 10px; font-size: 1.15rem; } .tot .grand dt { color: var(--navy); font-weight: 800; }
.coupon label { font-weight: 700; font-size: 13.5px; } .coupon div { display: flex; gap: 8px; margin-top: 4px; }
.coupon input { flex: 1; min-width: 0; border: 1px solid #cdd7e6; border-radius: 10px; padding: 8px 10px; font: inherit; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.agree input { margin-top: 4px; width: 18px; height: 18px; min-height: 0; accent-color: var(--blue); flex: none; }
.testpay { border: 2px dashed #f3d36a; background: var(--yellow-tint); border-radius: 14px; padding: 18px; display: grid; gap: 10px; }
.next-steps { padding-left: 20px; margin: 0 0 16px; display: grid; gap: 6px; }

/* Tools */
.est-fee { display: block; }
.est label.chk, label.chk { display: flex; gap: 8px; align-items: center; font-weight: 500; }
.score { font: 800 4rem/1 var(--display); color: var(--blue); margin: 4px 0 8px; }
.meter { height: 10px; background: var(--soft-2); border-radius: 10px; overflow: hidden; margin-bottom: 16px; }
.meter span { display: block; height: 100%; background: var(--blue); border-radius: 10px; }
.qz { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.qz legend { font-weight: 700; color: var(--navy); padding: 0 4px; font-size: 15px; }
.qz label { display: flex; gap: 6px; align-items: center; font-size: 14.5px; }
.qz input { width: 18px; height: 18px; min-height: 0; accent-color: var(--blue); }
.chk-row { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.chk-row:last-child { border-bottom: 0; } .chk-row input { width: 18px; height: 18px; accent-color: var(--blue); }
.finder2 fieldset legend { padding: 0; }
.cmp { width: 100%; border-collapse: collapse; } .cmp th, .cmp td { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.cmp th { color: var(--ink-2); font-size: 13px; } .cmp tr.hl td { background: var(--blue-tint); } .cmp a { color: var(--blue); text-decoration: none; }
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.slots { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.slots legend { font-weight: 700; font-size: 14px; color: var(--navy); margin-bottom: 6px; }
.slot input { position: absolute; opacity: 0; }
.slot span { display: inline-block; padding: 9px 13px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; cursor: pointer; transition: background-color .15s, border-color .15s; }
.slot input:checked + span { background: var(--navy); color: #fff; border-color: var(--navy); }
.slot input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.slot input:disabled + span { opacity: .4; text-decoration: line-through; cursor: not-allowed; }

/* Landing pages */
.lp-top { background: #fff; border-bottom: 1px solid var(--line); }
.lp-top .top-in { justify-content: space-between; }
.lp-hero .hero-form { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: 0 24px 44px -30px rgba(11,42,91,.5); scroll-margin-top: 20px; }
.lp-hero .hero-form h2 { font-size: 1.5rem; } .lp-hero .hero-form .enq { border: 0; box-shadow: none; padding: 0; margin-top: 12px; }
.lp-from { margin-top: 18px; color: var(--navy); }
.lp-trust .ticks { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: center; }
.lp-foot { text-align: center; padding: 32px 16px; color: var(--ink-2); font-size: 14px; border-top: 1px solid var(--line); margin-top: 64px; }
.lp-foot a { color: var(--blue); }

/* Portal */
.portal { background: var(--soft); }
.portal-main { max-width: 1100px; margin: 0 auto; padding: 28px var(--m) 64px; display: grid; gap: 16px; }
.portal-main > h1 { font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.4rem); }
.portal-tag { font-size: 13px; font-weight: 700; color: var(--blue); background: var(--blue-tint); padding: 4px 10px; border-radius: 999px; margin-right: auto; }
.portal .top-in { gap: 12px; } .portal-who { font-weight: 700; color: var(--navy); }
.login-box { max-width: 460px; margin: 40px auto; } .login-box h1 { font-size: 1.6rem; margin-bottom: 8px; } .login-box .enq { border: 0; box-shadow: none; padding: 0; margin-top: 16px; }
.reminders { border-color: #f3d36a; background: var(--yellow-tint); }
.ord { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-top: 10px; }
.ord-h { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.st-paid, .st-won, .st-approved { background: var(--green-tint) !important; color: var(--green) !important; }
.st-failed, .st-lost, .st-cancelled { background: var(--red-tint) !important; color: var(--red) !important; }
.st-pending, .st-quoted { background: var(--yellow-tint) !important; color: #8a6a00 !important; }
.track { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; counter-reset: t; }
.track li { counter-increment: t; font-size: 12px; text-align: center; color: var(--ink-2); text-transform: capitalize; padding-top: 14px; border-top: 4px solid var(--soft-2); }
.track li.done { border-color: var(--green); color: var(--green); } .track li.on { border-color: var(--blue); color: var(--blue); font-weight: 700; }
.docs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.docs li { display: flex; gap: 12px; justify-content: space-between; align-items: center; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.docs li > span { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; } .docs .tag { font-size: 11.5px; }
.upl { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .upl input[type=file] { font-size: 13px; max-width: 240px; }
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

@media (max-width: 900px) {
  .shop { grid-template-columns: minmax(0, 1fr); } .sum { position: static; }
  .cols2 { grid-template-columns: 1fr; } .track { grid-template-columns: repeat(4, 1fr); row-gap: 10px; }
}
@media (max-width: 600px) { .portal-tag { display: none; } .score { font-size: 3.2rem; } }
.nav-link { white-space: nowrap; }
@media (max-width: 1380px) { .nav .nav-link[href="/blog"], .nav .nav-link[href="/about-us"] { display: none; } }
@media (max-width: 1260px) { .nav .nav-link[href="/client-register"] { display: none; } }
/* Home video block */
.vid-in { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.vid-card { position: relative; border-radius: 22px; overflow: hidden; background: var(--navy); aspect-ratio: 16 / 9; box-shadow: 0 30px 60px -34px rgba(11,42,91,.6); }
.vid-card video { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--navy); }
.vid-play { position: absolute; inset: 0; margin: auto; width: max-content; height: 64px; display: inline-flex; align-items: center; gap: 10px; padding: 0 24px 0 18px; border: 0; border-radius: 999px;
  background: var(--yellow); color: var(--navy); font: 700 16px/1 var(--text); cursor: pointer; box-shadow: 0 14px 30px -12px rgba(0,0,0,.55); transition: transform .2s; }
.vid-play:hover { transform: scale(1.05); } .vid-play:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.vid-card.playing .vid-play { display: none; }
.vid-copy h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); } .vid-copy > p:not(.pill) { margin: 12px 0 20px; color: var(--ink-2); }
@media (max-width: 900px) { .vid-in { grid-template-columns: minmax(0, 1fr); } .vid-play { height: 54px; font-size: 15px; } }
.top .mark, .top .top-cta { flex: none; }
@media (max-width: 1500px) { .nav .nav-link[href="/client-register"] { display: none; } }
@media (max-width: 1440px) { .nav .nav-link[href="/blog"] { display: none; } }
@media (max-width: 1320px) { .nav .nav-link[href="/about-us"], .nav .nav-link[href="/book"] { display: none; } }
@media (max-width: 430px) { .top-cart { display: none; } .top .mark span { font-size: .95rem; } }
@media (max-width: 370px) { .top .mark span { display: none; } }
/* Header layout (final): brand and CTA never shrink; the nav takes the leftover space and clips, links hide by width first. */
.top-in { display: flex; align-items: center; gap: 16px; flex-wrap: nowrap; }
.top .mark { flex: 0 0 auto; min-width: max-content; }
.top .top-cta { flex: 0 0 auto; white-space: nowrap; }
.top .nav { flex: 1 1 auto; min-width: 0; justify-content: flex-end; overflow: hidden; margin-left: 0; }
.top .nav .mega-wrap { flex: none; }
.top .top-cart, .top .top-login, .top .burger { flex: 0 0 auto; }
/* Priority+ nav: links that do not fit move into "More". Never clip the start. */
.top .nav { justify-content: flex-start; overflow: visible; }
.top .nav .nav-link[href] { display: inline-flex !important; }
.top .nav .nav-link.moved { display: none !important; }
.nav-more { position: relative; flex: none; }
.nav-more[hidden] { display: none; }
.nav-more-list { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 6px;
  box-shadow: 0 20px 36px -18px rgba(11,42,91,.35); z-index: 50; display: grid; }
.nav-more-list[hidden] { display: none; }
.nav-more-list a { padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); white-space: nowrap; }
.nav-more-list a:hover { background: var(--soft); color: var(--blue); }
@media (max-width: 1180px) { .top .nav { display: none; } }
/* Hero video layout fixes */
.stage3d:has(.hv-vid) .cert { display: none; }
.stage3d .chip { pointer-events: none; }
.hero-visual:has(.hv-vid) .hv-card { top: 30%; bottom: auto; left: 0; width: min(220px, 34%); }
@media (max-width: 900px) { .stage3d:has(.hv-vid) .chip-2 { display: none; } }
