/* Licensing sales page (license.kiwitxt.co.nz) - builds on territory-page.css (ktp-*) in the KiwiTxt design. */
.ktl-lp { overflow-x: clip; }
.ktl-lp section[id] { scroll-margin-top: 84px; }

/* nav */
.lp-tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--acc); background: var(--tint); border-radius: 99px; padding: 5px 10px; margin-right: auto; white-space: nowrap; }
.lp-links { display: flex; gap: 4px; }
.lp-links a, .lp-login { color: var(--mute) !important; font-size: 15px; font-weight: 500; padding: 8px 10px; border-radius: 8px; white-space: nowrap; }
.lp-links a:hover, .lp-login:hover { color: var(--acc) !important; }

/* hero */
.lp-hero { position: relative; background: radial-gradient(900px 420px at 85% 0%, rgba(121,60,242,.12), transparent 70%), radial-gradient(700px 380px at 0% 100%, rgba(155,107,255,.08), transparent 70%); }
.lp-hero h1 span { color: var(--acc); }
.ktp .lp-hero .ktp-lead { margin-bottom: 28px; }
.lp-avail { display: inline-flex; align-items: center; gap: 8px; background: #ecfdf3; color: #067647; border: 1px solid #abefc6; border-radius: 99px; padding: 7px 14px; font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.lp-avail .ktp-i { width: 16px; height: 16px; }
.lp-ledger { gap: 0; }
.lp-ledger .ktp-card-label { margin-bottom: 6px; }
.lp-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--mute); }
.lp-row b { font-family: "Space Grotesk", Inter, sans-serif; font-size: 20px; color: var(--ink); white-space: nowrap; }
.lp-strike { text-decoration: line-through; text-decoration-color: #e5484d; color: var(--mute) !important; font-size: 17px !important; }
.lp-hi { border-bottom: 0; margin: 10px 0 16px; padding: 14px 16px; background: var(--tint); border-radius: 12px; color: var(--ink); font-weight: 600; }
.lp-hi b { color: var(--acc); font-size: 28px; }

.ktp .lp-sub { color: var(--mute); font-size: 18px; margin-top: 14px; }
.ktp-head .lp-sub { margin-left: auto; margin-right: auto; }
.lp-fine { color: var(--mute); font-size: 13px; margin-top: 14px !important; }
.lp-grid4 { grid-template-columns: repeat(4, 1fr); }

/* comparison */
.lp-tablewrap { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.lp-compare, .lp-terr { width: 100%; border-collapse: collapse; font-size: 15px; }
.lp-compare th, .lp-compare td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.lp-compare thead th { font-family: "Space Grotesk", Inter, sans-serif; font-size: 16px; background: var(--card); }
.lp-compare tbody th { font-weight: 600; color: var(--ink); white-space: nowrap; }
.lp-compare td { color: var(--mute); }
.lp-compare tr:last-child > * { border-bottom: 0; }
.lp-compare .lp-us { background: rgba(121,60,242,.06); color: var(--ink); font-weight: 600; }
.lp-compare thead .lp-us { background: var(--acc); color: #fff; }
.lp-compare td .ktp-i { width: 18px; height: 18px; vertical-align: -4px; margin-right: 6px; }
.lp-yes { color: #12b76a; }
.lp-no { color: #e5484d; }

/* steps */
.lp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.lp-steps li { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 26px; }
.lp-steps h3 { font-size: 19px; margin: 16px 0 8px; }
.lp-steps p { color: var(--mute); font-size: 15px; }
.lp-num { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--acc); color: #fff; font-family: "Space Grotesk", Inter, sans-serif; font-weight: 700; font-size: 18px; box-shadow: 0 8px 18px rgba(121,60,242,.3); }

/* calculator */
.lp-calc { display: grid; grid-template-columns: 1.1fr 1fr; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 70px rgba(121,60,242,.14); max-width: 980px; margin: 0 auto; }
.lp-calc-in { background: #fff; padding: 32px; display: flex; flex-direction: column; gap: 10px; }
.lp-calc-in label { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; margin-top: 10px; gap: 12px; }
.lp-calc-in output { font-family: "Space Grotesk", Inter, sans-serif; font-size: 24px; color: var(--acc); font-weight: 700; }
.lp-calc input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--acc) var(--v, 30%), var(--line) var(--v, 30%)); outline: none; margin: 6px 0 4px; }
.lp-calc input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 3px solid var(--acc); box-shadow: 0 4px 12px rgba(121,60,242,.35); cursor: pointer; }
.lp-calc input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--acc); cursor: pointer; }
.lp-calc input[type=range]:focus-visible { box-shadow: 0 0 0 4px var(--tint); }
.lp-calc select, .lp-filter select { width: 100%; font: inherit; font-size: 15px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
.lp-calc-out { background: linear-gradient(150deg, #5b21d6 0%, #793cf2 60%, #9b6bff 100%); color: #fff; padding: 32px; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.lp-out { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.18); color: #ece6ff; }
.lp-out b { font-family: "Space Grotesk", Inter, sans-serif; font-size: 22px; color: #fff; white-space: nowrap; }
.lp-big { border-bottom: 0; padding-top: 16px; }
.lp-big span { color: #fff; font-weight: 600; }
.lp-big b { font-size: clamp(34px, 4.4vw, 46px); }
.ktp .lp-be { color: #ece6ff; font-size: 15px; margin: 4px 0 18px; min-height: 1.5em; }
.lp-calc + .lp-fine { max-width: 980px; margin-left: auto; margin-right: auto; text-align: center; }

/* included + portal mock */
.lp-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.lp-h2 { font-size: clamp(26px, 3.6vw, 38px); margin-bottom: 22px !important; }
.lp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.lp-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--mute); }
.lp-list li .ktp-i { color: var(--acc); margin-top: 3px; }
.lp-list b { color: var(--ink); }
.lp-mock { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 30px 70px rgba(121,60,242,.16); overflow: hidden; }
.lp-mock-top { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: linear-gradient(135deg, #5b21d6, #793cf2); color: #fff; font-size: 13px; font-weight: 600; }
.lp-mock-top i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.45); }
.lp-mock-top span { margin-left: 8px; }
.lp-mock-body { padding: 18px; display: grid; gap: 10px; }
.lp-mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 6px; }
.lp-mock-stats div { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.lp-mock-stats small { display: block; color: var(--mute); font-size: 12px; }
.lp-mock-stats b { font-family: "Space Grotesk", Inter, sans-serif; font-size: 22px; }
.lp-mock-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.lp-mock-row div { flex: 1; min-width: 0; }
.lp-mock-row b { display: block; font-size: 14px; }
.lp-mock-row small { color: var(--mute); font-size: 12px; }
.lp-mock-row em { font-style: normal; font-size: 12px; font-weight: 600; color: #067647; background: #ecfdf3; border-radius: 99px; padding: 4px 10px; }
.lp-mock-row em.lp-trial { color: var(--deep); background: var(--tint); }
.lp-av { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--tint); color: var(--acc); font-weight: 700; font-size: 13px; flex: none; }
.lp-mock-note { color: var(--mute); font-size: 11px; text-align: right; }

/* territories */
.lp-filter { display: flex; gap: 12px; margin-bottom: 16px; }
.lp-search { flex: 1; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 0 14px; background: #fff; }
.lp-search:focus-within, .lp-filter select:focus { border-color: var(--acc); box-shadow: 0 0 0 4px var(--tint); outline: none; }
.lp-search .ktp-i { color: var(--mute); }
.lp-search input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 15px; padding: 12px 0; background: transparent; color: var(--ink); }
.lp-filter select { width: auto; min-width: 190px; }
.lp-terr th, .lp-terr td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.lp-terr thead th { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); background: var(--card); white-space: nowrap; }
.lp-terr td { color: var(--mute); }
.lp-terr td b { display: block; color: var(--ink); }
.lp-terr td small { display: block; font-size: 13px; color: var(--mute); margin-top: 2px; }
.lp-terr td:nth-child(n+2):nth-child(-n+5) { white-space: nowrap; }
.lp-terr td:last-child { text-align: right; }
.lp-terr tbody tr:hover { background: var(--card); }
.lp-terr tr.lp-sel { background: rgba(18,183,106,.08); }
.lp-terr tr.lp-sel td:first-child { box-shadow: inset 4px 0 0 #12b76a; }
.lp-claim { padding: 9px 18px; font-size: 14px; box-shadow: none; }
.lp-terr .lp-none td { text-align: center; padding: 28px; }
.lp-more { text-align: center; margin-top: 18px !important; }
.screen-reader-text { position: absolute !important; left: 0; top: 0; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }

/* pricing */
.lp-price { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; max-width: 980px; margin: 0 auto; }
.lp-price-main { background: #fff; border: 2px solid var(--acc); border-radius: 22px; padding: 32px; box-shadow: 0 30px 70px rgba(121,60,242,.16); }
.lp-price-big { font-family: "Space Grotesk", Inter, sans-serif; font-size: 56px; font-weight: 700; color: var(--ink); line-height: 1.1; margin: 8px 0 14px; }
.lp-price-big span { font-family: Inter, sans-serif; font-size: 16px; font-weight: 500; color: var(--mute); margin-left: 8px; }
.lp-price-rows { display: grid; gap: 8px; margin-bottom: 22px; }
.lp-price-rows div { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; color: var(--mute); }
.lp-price-rows b { font-family: "Space Grotesk", Inter, sans-serif; font-size: 22px; color: var(--acc); }
.lp-price-rows small { font-family: Inter, sans-serif; font-size: 13px; color: var(--mute); font-weight: 500; }
.lp-price-list li { font-size: 17px; color: var(--ink); }
.lp-price-list .ktp-i { color: #12b76a !important; }

/* FAQ */
.lp-faq { display: grid; gap: 10px; }
.lp-faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; }
.lp-faq details[open] { border-color: var(--acc); box-shadow: 0 10px 30px rgba(121,60,242,.08); }
.lp-faq summary { cursor: pointer; list-style: none; padding: 18px 28px 18px 0; font-weight: 600; position: relative; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--acc); font-weight: 500; }
.lp-faq details[open] summary::after { content: "\2212"; }
.ktp .lp-faq p { color: var(--mute); padding-bottom: 18px; }

/* final band */
.lp-band-ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.lp-btn-ghost { border: 1px solid rgba(255,255,255,.55); color: #fff !important; }
.lp-btn-ghost:hover { background: rgba(255,255,255,.12); }

/* sticky mobile CTA */
.lp-sticky { display: none; }

@media (max-width: 1100px) {
	.lp-links { display: none; }
	.lp-grid4 { grid-template-columns: 1fr 1fr; }
	.lp-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
	.lp-calc, .lp-split, .lp-price { grid-template-columns: 1fr; }
	.lp-split { gap: 36px; }
	.lp-price { gap: 28px; }
}
@media (max-width: 620px) {
	.lp-tag { display: none; }
	.lp-grid4, .lp-steps { grid-template-columns: 1fr; }
	.lp-calc-in, .lp-calc-out, .lp-price-main { padding: 24px 20px; }
	.lp-filter { flex-direction: column; }
	.lp-filter select { width: 100%; }
	.lp-price-big { font-size: 46px; }
	.lp-hi b { font-size: 24px; }
	.lp-compare th, .lp-compare td, .lp-terr th, .lp-terr td { padding: 12px; }
	.lp-compare th:nth-child(4), .lp-compare td:nth-child(4) { display: none; }
	.lp-compare tbody th { white-space: normal; }
	.lp-terr thead { display: none; }
	.lp-terr, .lp-terr tbody { display: block; }
	.lp-terr tr[data-q] { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; row-gap: 2px; padding: 14px; border-bottom: 1px solid var(--line); }
	.lp-terr tr[data-q][hidden] { display: none; }
	.lp-terr tr[data-q] td { padding: 0; border: 0; white-space: normal !important; }
	.lp-terr tr[data-q] td:nth-child(1) { grid-column: 1; }
	.lp-terr tr[data-q] td:nth-child(2), .lp-terr tr[data-q] td:nth-child(3) { display: none; }
	.lp-terr tr[data-q] td:nth-child(4), .lp-terr tr[data-q] td:nth-child(5) { grid-column: 1; font-size: 13px; }
	.lp-terr tr[data-q] td:nth-child(4)::before { content: "Population "; }
	.lp-terr tr[data-q] td:nth-child(5)::before { content: "Licence "; }
	.lp-terr tr[data-q] td:last-child { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
	.lp-terr tr.lp-sel td:first-child { box-shadow: none; }
	.lp-terr tr.lp-sel { box-shadow: inset 4px 0 0 #12b76a; }
	.lp-terr .lp-none { display: block; }
	.lp-terr .lp-none[hidden] { display: none; }
	.lp-terr .lp-none td { display: block; }
	.lp-mock-stats b { font-size: 18px; }
	.ktp-hero .ktp-btn-xl { width: 100%; }
	.lp-sticky { display: block; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; transform: translateY(140%); transition: transform .25s; }
	.lp-sticky.on { transform: none; }
	.lp-sticky .ktp-btn { box-shadow: 0 12px 30px rgba(91,33,214,.45); padding: 15px 20px; }
	.ktp-foot { padding-bottom: 90px; }
}
@media (max-width: 420px) {
	.lp-login { padding: 8px 6px; font-size: 14px; }
	.ktp-nav .ktp-wrap { gap: 8px; }
	.lp-row { font-size: 14px; }
}
@media (max-width: 360px) {
	.ktp-nav-cta { padding: 8px 10px; font-size: 12px; }
	.ktp-logo img { height: 28px; }
}
@media (prefers-reduced-motion: reduce) {
	.lp-sticky { transition: none; }
}
