/* The live demo page (T13.1), in the phnxtech.com palette. */
@font-face {
	font-family: "Inter";
	src: url("/assets/frappe/css/fonts/inter/InterVariable.woff2") format("woff2");
	font-weight: 100 900;
	font-display: swap;
}

:root {
	color-scheme: dark;
	--fire-700: #c80800;
	--fire-600: #ff4e00;
	--fire-500: #ff6a00;
	--fire-300: #ffa01f;
	--fire-grad: linear-gradient(135deg, var(--fire-700) 0%, var(--fire-600) 42%, var(--fire-500) 70%, var(--fire-300) 100%);
	--bg: #050506;
	--surface: #0c0c10;
	--surface-2: #15151b;
	--surface-3: #1e1e26;
	--border: rgba(255, 255, 255, 0.09);
	--text: #f0f0f0;
	--muted: #a8a8a8;
	--danger: #ff6b6b;
	--success: #22c55e;
	--radius: 0.75rem;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 16px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	-webkit-font-smoothing: antialiased;
}

a { color: var(--fire-300); }
a:hover { color: var(--fire-500); }

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; font-weight: 700; letter-spacing: -0.01em; }

.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }

.sr-only {
	position: absolute; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); white-space: nowrap;
}

/* header */
.top { border-bottom: 1px solid var(--border); background: rgba(5, 5, 6, 0.85); position: sticky; top: 0; z-index: 5; backdrop-filter: blur(8px); }
.top-row { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 0.6rem; color: var(--text); text-decoration: none; font-size: 1.15rem; letter-spacing: 0.02em; }
.brand:hover { color: var(--text); }
.brand b { background: var(--fire-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.top-links { display: flex; gap: 1.5rem; }
.top-links a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.top-links a:hover { color: var(--text); }

/* hero */
.hero {
	padding: 5rem 0 4rem;
	background: radial-gradient(ellipse 60% 70% at 15% 0%, rgba(255, 78, 0, 0.16), transparent 70%), var(--bg);
}
.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: center; }
.hero-grid > *, .lead-grid > * { min-width: 0; }
.eyebrow { color: var(--fire-300); text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.14em; font-weight: 600; margin: 0 0 1rem; }
.hero h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
.lead { color: var(--muted); font-size: 1.15rem; max-width: 38rem; }
.hero-actions { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; margin-top: 2rem; }
.meta { color: var(--muted); font-size: 0.9rem; margin: 0; }

/* buttons */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
	border-radius: 0.5rem; border: 1px solid transparent; padding: 0.8rem 1.4rem;
	font: inherit; font-weight: 600; cursor: pointer; transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn:focus-visible { outline: 2px solid var(--fire-300); outline-offset: 2px; }
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn-fire { background: var(--fire-grad); color: #fff; box-shadow: 0 0 24px rgba(255, 106, 0, 0.25); }
.btn-fire:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 0 32px rgba(255, 106, 0, 0.4); }
#try-demo { font-size: 1.1rem; padding: 1rem 2rem; }
.btn-ghost { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.btn-ghost:hover:not(:disabled) { background: var(--surface-3); }

/* cards */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; }
.card h3 { font-size: 1.15rem; }
.card p { color: var(--muted); margin: 0; }
.screen { display: block; margin: -0.5rem -0.5rem 1.25rem; border: 1px solid var(--border); border-radius: calc(var(--radius) / 2); overflow: hidden; }
.screen img { display: block; width: 100%; height: auto; transition: transform 0.2s ease; }
.screen:hover img, .screen:focus-visible img { transform: scale(1.03); }
.card-kicker { color: var(--muted); font-size: 0.9rem; margin: 0 0 0.25rem; }
.site-card h2 { font-size: 1.4rem; margin-bottom: 1rem; }
.site-card .btn { width: 100%; margin-top: 0.75rem; }
.site-field {
	display: flex; align-items: center; background: var(--surface-2);
	border: 1px solid var(--border); border-radius: 0.5rem; overflow: hidden;
}
.site-field:focus-within { border-color: var(--fire-500); }
.site-field input { flex: 1; width: 100%; min-width: 0; background: transparent; border: 0; color: var(--text); font: inherit; padding: 0.75rem 0 0.75rem 0.9rem; outline: none; }
.site-suffix { color: var(--muted); padding-right: 0.9rem; white-space: nowrap; font-size: 0.95rem; }

/* sections */
.band { padding: 4.5rem 0; border-top: 1px solid var(--border); }
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 2rem; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.steps li { position: relative; padding-left: 3.5rem; }
.steps p { color: var(--muted); margin: 0; }
.step-no {
	position: absolute; left: 0; top: 0; width: 2.4rem; height: 2.4rem; border-radius: 50%;
	display: grid; place-items: center; font-weight: 700; color: #fff; background: var(--fire-grad);
}
.panels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.way h3::before { content: ""; display: inline-block; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--fire-500); margin-right: 0.6rem; vertical-align: middle; }
.guide { margin: 2rem 0 0; }

.included { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem 2rem; }
.included li { display: flex; gap: 0.8rem; align-items: flex-start; }
.included p { color: var(--muted); margin: 0.15rem 0 0; font-size: 0.95rem; }
.category { color: var(--fire-300); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; margin-left: 0.5rem; }
.tick {
	flex: none; width: 1.3rem; height: 1.3rem; border-radius: 50%; margin-top: 0.15rem;
	background: rgba(255, 106, 0, 0.14); border: 1px solid rgba(255, 106, 0, 0.35); position: relative;
}
.tick::after {
	content: ""; position: absolute; left: 0.42rem; top: 0.2rem; width: 0.3rem; height: 0.6rem;
	border: solid var(--fire-300); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.included.compact { grid-template-columns: repeat(2, 1fr); gap: 0.6rem 1.5rem; margin: 1rem 0 1.5rem; }

/* lead form */
.lead-band { background: radial-gradient(ellipse 50% 80% at 100% 100%, rgba(255, 78, 0, 0.12), transparent 70%), var(--bg); }
.lead-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 3rem; align-items: start; }
.lead-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: 0.9rem; color: var(--muted); }
.field input, .field select, .field textarea {
	background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-radius: 0.5rem;
	padding: 0.7rem 0.85rem; font: inherit; width: 100%;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--fire-500); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.form-message, .field-error { margin: 0; font-size: 0.95rem; color: var(--danger); }
.field-error { margin-top: 0.5rem; }
.form-message.ok { color: var(--success); font-size: 1.05rem; }
.turnstile:empty { display: none; }

/* closed page */
.closed { min-height: 100vh; display: grid; place-items: center; text-align: center; }
.closed .lead { margin: 0 auto 2rem; }

/* footer */
.foot { border-top: 1px solid var(--border); padding: 2rem 0; color: var(--muted); font-size: 0.9rem; }
.foot-row { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--text); }

/* modal */
.modal {
	width: min(720px, 100% - 2rem); border: 1px solid var(--border); border-radius: var(--radius);
	background: var(--surface); color: var(--text); padding: 2rem;
}
.modal[open] { animation: modal-in 0.15s ease-out; }
.modal::backdrop { background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(3px); }
@keyframes modal-in { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; justify-content: space-between; align-items: center; }
.modal-head h2 { margin: 0; }
.modal p { color: var(--muted); }
.close { background: none; border: 0; color: var(--muted); font-size: 1.8rem; line-height: 1; cursor: pointer; padding: 0 0.25rem; }
.close:hover { color: var(--text); }
.modal-actions { display: flex; justify-content: flex-end; gap: 0.75rem; margin-top: 1.5rem; }
.modal .turnstile { margin-top: 0.5rem; }

.bar { height: 0.5rem; background: var(--surface-3); border-radius: 1rem; overflow: hidden; margin: 1.5rem 0; }
.bar span { display: block; height: 100%; width: 0; background: var(--fire-grad); transition: width 0.6s ease; }
.progress-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.progress-steps li { color: var(--muted); padding-left: 1.8rem; position: relative; }
.progress-steps li::before {
	content: ""; position: absolute; left: 0; top: 0.35rem; width: 0.9rem; height: 0.9rem; border-radius: 50%;
	border: 2px solid var(--surface-3);
}
.progress-steps li.active { color: var(--text); }
.progress-steps li.active::before { border-color: var(--fire-500); border-top-color: transparent; animation: spin 0.9s linear infinite; }
.progress-steps li.done { color: var(--text); }
.progress-steps li.done::before { background: var(--fire-500); border-color: var(--fire-500); }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
	* { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media (max-width: 860px) {
	.hero { padding: 3rem 0; }
	.hero-grid, .lead-grid, .steps, .panels, .included { grid-template-columns: 1fr; }
	.top-links { display: none; }
	.lead-form { grid-template-columns: 1fr; }
	.modal { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; border-radius: 0; display: none; }
	.modal[open] { display: flex; flex-direction: column; }
	.modal-start, .modal-progress { display: flex; flex-direction: column; flex: 1; }
	.modal-actions { margin-top: auto; padding-top: 1.5rem; }
	.modal-actions .btn { flex: 1; }
}
