/* App cost estimator page and the home page "Price My App" button. Uses the theme colours. */
:root {
	--lx-brand: #f26b1d;
	--lx-brand-soft: #ff9d5c;
	--lx-cyber: #22d3ee;
	--lx-edge: #1e2a42;
	--lx-panel: #0b1220;
	--lx-mute: #94a3b8;
}

/* ---------- Home page button ---------- */
@property --lx-cta-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.lx-est-cta-wrap { margin-top: 1.75rem; display: flex; flex-direction: column; align-items: flex-start; gap: .7rem; }
.lx-est-cta {
	position: relative; isolation: isolate; overflow: hidden;
	display: inline-flex; align-items: center; gap: 1rem;
	padding: .85rem 1.1rem .85rem .85rem; border-radius: 1.1rem;
	background: linear-gradient(135deg, #f26b1d 0%, #ff9d5c 55%, #f59e5b 100%);
	color: #fff; text-decoration: none;
	box-shadow: 0 14px 40px -12px rgba(242, 107, 29, .85), inset 0 1px 0 rgba(255, 255, 255, .25);
	transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
	animation: lx-cta-glow 3s ease-in-out infinite;
}
/* Light running around the border. */
.lx-est-cta::before {
	content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 2px;
	background: conic-gradient(from var(--lx-cta-angle), transparent 0deg, #22d3ee 70deg, #fff 110deg, transparent 170deg);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
	mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
	animation: lx-cta-spin 4s linear infinite;
}
.lx-est-cta:hover { transform: translateY(-3px) scale(1.02); filter: brightness(1.07); box-shadow: 0 20px 50px -12px rgba(242, 107, 29, .95), 0 0 0 4px rgba(34, 211, 238, .18); }
.lx-est-cta:active { transform: translateY(-1px) scale(.99); }
.lx-est-cta:focus-visible { outline: 2px solid #22d3ee; outline-offset: 3px; }

/* Shimmer sweeping across. */
.lx-est-cta-shine {
	position: absolute; inset: 0; z-index: 0; pointer-events: none;
	background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
	transform: translateX(-120%); animation: lx-cta-shine 3.2s ease-in-out infinite;
}
.lx-est-cta-icon {
	position: relative; z-index: 1; display: grid; place-items: center; flex-shrink: 0;
	width: 2.9rem; height: 2.9rem; border-radius: .8rem;
	background: rgba(5, 10, 20, .28); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25);
}
.lx-est-cta-icon svg { width: 1.4rem; height: 1.4rem; animation: lx-cta-tilt 3s ease-in-out infinite; }
/* Pulsing ring around the icon. */
.lx-est-cta-icon::after {
	content: ""; position: absolute; inset: -3px; border-radius: .95rem; border: 2px solid rgba(255, 255, 255, .7);
	animation: lx-cta-ping 2.2s ease-out infinite;
}
.lx-est-cta-text { position: relative; z-index: 1; display: flex; flex-direction: column; line-height: 1.2; }
.lx-est-cta-title { font-family: var(--font-display, inherit); font-size: 1.12rem; font-weight: 700; letter-spacing: -.01em; }
.lx-est-cta-sub { margin-top: .2rem; font-size: .76rem; font-weight: 500; color: rgba(255, 255, 255, .85); }
.lx-est-cta-arrow {
	position: relative; z-index: 1; display: grid; place-items: center; flex-shrink: 0; margin-left: .25rem;
	width: 2.2rem; height: 2.2rem; border-radius: 999px; background: #fff; color: #f26b1d;
	transition: transform .25s ease;
}
.lx-est-cta-arrow svg { width: 1.1rem; height: 1.1rem; animation: lx-cta-nudge 1.6s ease-in-out infinite; }
.lx-est-cta:hover .lx-est-cta-arrow { transform: translateX(4px) rotate(-8deg); }
.lx-est-cta-note { font-size: .82rem; color: var(--lx-mute); }
.lx-est-cta-note b { color: var(--lx-brand-soft); font-weight: 600; }
@media (max-width: 420px) {
	.lx-est-cta { gap: .75rem; }
	.lx-est-cta-title { font-size: 1rem; }
	.lx-est-cta-icon { width: 2.5rem; height: 2.5rem; }
}

@keyframes lx-cta-spin { to { --lx-cta-angle: 360deg; } }
@keyframes lx-cta-glow {
	0%, 100% { box-shadow: 0 14px 40px -12px rgba(242, 107, 29, .85), inset 0 1px 0 rgba(255, 255, 255, .25); }
	50% { box-shadow: 0 16px 48px -10px rgba(242, 107, 29, 1), 0 0 26px -4px rgba(34, 211, 238, .45), inset 0 1px 0 rgba(255, 255, 255, .25); }
}
@keyframes lx-cta-shine { 0%, 55% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
@keyframes lx-cta-ping { 0% { transform: scale(1); opacity: .8; } 80%, 100% { transform: scale(1.35); opacity: 0; } }
@keyframes lx-cta-nudge { 0%, 100% { transform: translateX(-2px); } 50% { transform: translateX(3px); } }
@keyframes lx-cta-tilt { 0%, 80%, 100% { transform: rotate(0); } 85% { transform: rotate(-10deg); } 90% { transform: rotate(8deg); } 95% { transform: rotate(-4deg); } }
@media (prefers-reduced-motion: reduce) {
	.lx-est-cta, .lx-est-cta::before, .lx-est-cta-shine, .lx-est-cta-icon svg, .lx-est-cta-icon::after, .lx-est-cta-arrow svg { animation: none; }
}

/* ---------- Page ---------- */
.lx-est-badge {
	display: inline-flex; align-items: center; gap: .4rem; margin-top: 1.25rem;
	padding: .3rem .8rem; border-radius: 999px; font-size: .75rem; font-weight: 600; letter-spacing: .04em;
	color: var(--lx-cyber); background: rgba(34, 211, 238, .1); border: 1px solid rgba(34, 211, 238, .35);
}
.lx-est-features { display: grid; gap: 1rem; margin-top: 2.5rem; }
@media (min-width: 768px) { .lx-est-features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .lx-est-features { grid-template-columns: repeat(4, 1fr); } }
.lx-est-feature {
	display: flex; flex-direction: column; gap: .3rem; padding: 1.25rem;
	border: 1px solid var(--lx-edge); border-radius: 1rem; background: rgba(13, 21, 38, .82);
}
.lx-est-feature-icon { font-size: 1.5rem; }
.lx-est-feature strong { color: #fff; font-weight: 600; }
.lx-est-feature span:last-child { color: var(--lx-mute); font-size: .875rem; line-height: 1.5; }

.lx-est { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; align-items: start; scroll-margin-top: 6rem; }
@media (min-width: 1024px) { .lx-est { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } }
.lx-est-main, .lx-est-side { padding: 1.5rem; }
@media (min-width: 640px) { .lx-est-main, .lx-est-side { padding: 2rem; } }
@media (min-width: 1024px) { .lx-est-side { position: sticky; top: 6rem; } }

.lx-est-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.lx-est-step, .lx-est-side-label, .lx-est-q-num {
	font-family: var(--font-geist-mono, monospace); font-size: .75rem; letter-spacing: .16em; text-transform: uppercase;
}
.lx-est-step { color: var(--lx-mute); }
.lx-est-currency { display: inline-flex; border: 1px solid var(--lx-edge); border-radius: 999px; padding: 3px; }
.lx-est-currency button {
	border: 0; background: none; color: var(--lx-mute); padding: .35rem .8rem; border-radius: 999px;
	font-size: .8rem; font-weight: 600; cursor: pointer;
}
.lx-est-currency button[aria-pressed="true"] { background: var(--lx-brand); color: #fff; }
.lx-est-progress { margin: 1rem 0 1.75rem; height: 4px; border-radius: 4px; background: var(--lx-edge); overflow: hidden; }
.lx-est-progress span { display: block; height: 100%; width: 25%; background: linear-gradient(90deg, var(--lx-brand), var(--lx-cyber)); transition: width .35s; }

.lx-est-q-num { color: var(--lx-brand-soft); }
.lx-est-q-title { margin-top: .5rem; font-family: var(--font-display, inherit); font-size: 1.6rem; font-weight: 600; color: #fff; line-height: 1.25; }
.lx-est-q-sub { margin-top: .4rem; color: var(--lx-mute); }

.lx-est-options { display: grid; gap: .75rem; margin-top: 1.5rem; }
.lx-est-option {
	display: flex; align-items: center; gap: 1rem; width: 100%; text-align: left; cursor: pointer;
	padding: 1rem 1.1rem; border-radius: 1rem; border: 1px solid var(--lx-edge); background: rgba(255, 255, 255, .02);
	color: inherit; font: inherit; transition: border-color .2s, background-color .2s;
}
.lx-est-option:hover { border-color: rgba(242, 107, 29, .5); }
.lx-est-option[aria-checked="true"] { border-color: var(--lx-brand); background: rgba(242, 107, 29, .08); }
.lx-est-option:focus-visible { outline: 2px solid var(--lx-cyber); outline-offset: 2px; }
.lx-est-option-icon {
	display: grid; place-items: center; flex: none; width: 3rem; height: 3rem; font-size: 1.5rem;
	border-radius: .8rem; background: rgba(255, 255, 255, .05);
}
.lx-est-option-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .2rem; }
.lx-est-option-text strong { color: #fff; font-weight: 600; }
.lx-est-option-text span { color: var(--lx-mute); font-size: .875rem; line-height: 1.45; }
.lx-est-option-price { flex: none; color: var(--lx-brand-soft); font-weight: 600; font-size: .9rem; }
.lx-est-radio { flex: none; width: 1.25rem; height: 1.25rem; border-radius: 50%; border: 2px solid var(--lx-edge); }
.lx-est-option[aria-checked="true"] .lx-est-radio { border-color: var(--lx-brand); box-shadow: inset 0 0 0 3px var(--lx-panel); background: var(--lx-brand); }
@media (max-width: 479px) {
	.lx-est-option { flex-wrap: wrap; }
	.lx-est-option-text { flex-basis: calc(100% - 4rem); }
	.lx-est-option-price { margin-left: 4rem; }
	.lx-est-radio { display: none; }
}

.lx-est-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.75rem; }
.lx-est-nav [data-next] { margin-left: auto; }
.lx-est-nav button:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }

/* Live estimate */
.lx-est-side-label { color: var(--lx-cyber); }
.lx-est-old { margin-top: 1rem; color: var(--lx-mute); font-size: .85rem; }
.lx-est-old s { color: #cad5e2; }
.lx-est-price { margin-top: .35rem; font-family: var(--font-display, inherit); font-size: 2rem; font-weight: 700; color: #fff; line-height: 1.2; }
.lx-est-save {
	display: inline-block; margin-top: .6rem; padding: .3rem .7rem; border-radius: .5rem;
	font-size: .8rem; font-weight: 600; color: #5ee9b5; background: rgba(0, 210, 148, .12);
}
.lx-est-hint { margin-top: .6rem; color: var(--lx-mute); font-size: .9rem; }
.lx-est-summary { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: .5rem; }
.lx-est-summary li {
	display: flex; justify-content: space-between; gap: 1rem; padding: .65rem .85rem; border-radius: .6rem;
	background: rgba(255, 255, 255, .03); font-size: .85rem; color: var(--lx-mute);
}
.lx-est-summary b { color: #64748b; font-weight: 500; text-align: right; }
.lx-est-summary li.is-set b { color: #fff; }
.lx-est-promises { list-style: none; margin: 1.25rem 0 0; padding: 1.25rem 0 0; border-top: 1px solid var(--lx-edge); display: grid; gap: .6rem; }
.lx-est-promises li { position: relative; padding-left: 1.2rem; font-size: .875rem; color: #cad5e2; }
.lx-est-promises li::before { content: ""; position: absolute; left: 0; top: .5em; width: .45rem; height: .45rem; border-radius: 50%; background: #00d294; }

/* Quote form */
.lx-est-fields { display: grid; gap: 1rem; margin-top: 1.5rem; }
@media (min-width: 640px) { .lx-est-fields { grid-template-columns: 1fr 1fr; } .lx-est-full { grid-column: 1 / -1; } }
.lx-est-fields label { display: flex; flex-direction: column; gap: .4rem; font-size: .85rem; color: #cad5e2; }
.lx-est-fields input, .lx-est-fields textarea {
	width: 100%; padding: .75rem .9rem; border-radius: .7rem; border: 1px solid var(--lx-edge);
	background: rgba(5, 10, 20, .6); color: #fff; font: inherit;
}
.lx-est-fields input:focus, .lx-est-fields textarea:focus { outline: none; border-color: var(--lx-brand); }
.lx-est-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.lx-est-error { margin-top: 1rem; color: #ff6568; font-size: .875rem; }
[data-lead-form] .btn-primary { margin-top: 1.5rem; }
.lx-est-done { text-align: center; padding: 1.5rem 0; }
.lx-est-done-icon {
	display: inline-grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 50%;
	font-size: 1.6rem; color: #00d294; background: rgba(0, 210, 148, .12);
}
.lx-est-note { margin-top: 1.5rem; text-align: center; font-size: .8rem; color: #64748b; }

.lx-est-maint { margin-top: .6rem; font-size: .8rem; line-height: 1.5; color: var(--lx-mute); }
.lx-est-maint b { color: #5ee9b5; font-weight: 600; }
.lx-est-maint s { color: #8a96a8; margin-left: .2rem; }
