/* ==========================================================================
   TOP CNC — Landing (marketing) styles
   Depends on topcnc-base.css tokens.
   ========================================================================== */

/* --- Hero -------------------------------------------------------------- */
.topcnc-hero {
	position: relative;
	overflow: hidden;
	padding-block: var(--tc-space-16) var(--tc-space-12);
	background:
		radial-gradient(1200px 500px at 85% -10%, var(--tc-primary-100), transparent 70%),
		linear-gradient(180deg, #fff, var(--tc-bg-muted));
}
.topcnc-hero__glow {
	position: absolute; inset-inline-start: -10%; bottom: -40%;
	width: 60%; height: 80%;
	background: radial-gradient(closest-side, rgba(245, 158, 11, 0.18), transparent);
	pointer-events: none;
}
.topcnc-hero__inner {
	position: relative;
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: var(--tc-space-12);
	align-items: center;
}
.topcnc-hero__title { font-size: clamp(1.9rem, 3.6vw, 3rem); margin-bottom: var(--tc-space-4); }
.topcnc-hero__actions { display: flex; gap: var(--tc-space-3); flex-wrap: wrap; margin-top: var(--tc-space-6); }
.topcnc-hero__stats {
	list-style: none; display: flex; gap: var(--tc-space-8); flex-wrap: wrap;
	margin-top: var(--tc-space-10, 2.5rem); padding-top: var(--tc-space-6);
	border-top: 1px solid var(--tc-border);
}
.topcnc-hero__stats li { display: grid; gap: 2px; }
.topcnc-hero__stats strong { font-size: var(--tc-fs-xl); color: var(--tc-primary); }
.topcnc-hero__stats span { font-size: var(--tc-fs-sm); color: var(--tc-text-muted); }

@media (max-width: 1024px) {
	.topcnc-hero__inner { grid-template-columns: 1fr; }
	.topcnc-hero__visual { max-width: 560px; }
}

/* Machine passport mock card */
.topcnc-passport-card {
	background: #fff;
	border: 1px solid var(--tc-border);
	border-radius: var(--tc-radius-lg);
	box-shadow: var(--tc-shadow-lg);
	padding: var(--tc-space-6);
	display: grid; gap: var(--tc-space-4);
	transform: rotate(-1.5deg);
}
.topcnc-passport-card__head { display: flex; align-items: center; justify-content: space-between; gap: var(--tc-space-3); }
.topcnc-passport-card__name { font-weight: 700; font-size: var(--tc-fs-lg); }
.topcnc-passport-card__sub { font-size: var(--tc-fs-sm); color: var(--tc-text-muted); direction: ltr; text-align: right; }
.topcnc-passport-card__grid {
	display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--tc-space-2); margin: 0;
	background: var(--tc-bg-muted); border-radius: var(--tc-radius-sm); padding: var(--tc-space-3);
}
@media (max-width: 480px) { .topcnc-passport-card__grid { grid-template-columns: repeat(2, 1fr); } }
.topcnc-passport-card__grid dt { font-size: var(--tc-fs-xs); color: var(--tc-text-muted); }
.topcnc-passport-card__grid dd { margin: 0; font-weight: 700; font-size: var(--tc-fs-sm); }

.topcnc-chat-bubble {
	padding: var(--tc-space-3) var(--tc-space-4);
	border-radius: var(--tc-radius);
	font-size: var(--tc-fs-sm);
	line-height: 1.7;
}
.topcnc-chat-bubble--q { background: var(--tc-primary); color: #fff; justify-self: start; max-width: 85%; border-end-end-radius: 4px; }
.topcnc-chat-bubble--a { background: var(--tc-bg-muted); border: 1px solid var(--tc-border); display: grid; gap: var(--tc-space-2); }
.topcnc-cite {
	display: inline-flex; align-items: center; gap: 6px;
	font-size: var(--tc-fs-xs); color: var(--tc-primary-700);
	background: var(--tc-primary-100); padding: 2px 8px; border-radius: 6px; justify-self: start;
}
.topcnc-cite::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--tc-accent); }

/* --- Problem chips ----------------------------------------------------- */
.topcnc-chips { list-style: none; display: flex; flex-wrap: wrap; gap: var(--tc-space-3); }
.topcnc-chip {
	padding: 0.6rem 1rem; border-radius: 999px;
	background: #fff; border: 1px solid var(--tc-border);
	font-weight: 500; font-size: var(--tc-fs-sm);
}

/* --- Pillars ----------------------------------------------------------- */
.topcnc-feature { transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease; }
.topcnc-feature:hover { transform: translateY(-3px); box-shadow: var(--tc-shadow-lg); border-color: var(--tc-primary-100); color: inherit; }
.topcnc-feature__icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 52px; height: 52px; border-radius: 14px;
	background: var(--tc-primary-100); color: var(--tc-primary);
	margin-bottom: var(--tc-space-4);
}
.topcnc-feature__icon--ai { background: var(--tc-accent-100); color: var(--tc-accent-600); }
.topcnc-feature__icon--alarm { background: var(--tc-danger-100); color: var(--tc-danger); }
.topcnc-feature__icon--maintenance { background: var(--tc-success-100); color: var(--tc-success); }
.topcnc-feature h3 { font-size: var(--tc-fs-lg); }
.topcnc-feature p { color: var(--tc-text-muted); font-size: var(--tc-fs-sm); margin-bottom: var(--tc-space-3); }
.topcnc-feature__more { font-weight: 700; font-size: var(--tc-fs-sm); color: var(--tc-primary); }
.topcnc-feature__more::after { content: " ←"; }

/* --- Steps ------------------------------------------------------------- */
.topcnc-steps {
	list-style: none; counter-reset: step;
	display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--tc-space-6);
}
.topcnc-step {
	position: relative;
	background: rgba(255,255,255,0.04);
	border: 1px solid rgba(255,255,255,0.1);
	border-radius: var(--tc-radius);
	padding: var(--tc-space-6);
}
.topcnc-step__num {
	display: inline-flex; align-items: center; justify-content: center;
	width: 36px; height: 36px; border-radius: 50%;
	background: var(--tc-accent); color: #1a1200; font-weight: 700;
	margin-bottom: var(--tc-space-4);
}
.topcnc-step h3 { font-size: var(--tc-fs-lg); }
.topcnc-step p { color: var(--tc-text-on-dark-muted); font-size: var(--tc-fs-sm); margin: 0; }
@media (max-width: 900px) { .topcnc-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .topcnc-steps { grid-template-columns: 1fr; } }

/* --- Personas ---------------------------------------------------------- */
.topcnc-persona h3 { font-size: var(--tc-fs-lg); color: var(--tc-primary); }
.topcnc-persona p { color: var(--tc-text-muted); font-size: var(--tc-fs-sm); margin: 0; }

/* --- Trust ------------------------------------------------------------- */
.topcnc-trust-item { display: flex; gap: var(--tc-space-4); align-items: flex-start; }
.topcnc-trust-item__check {
	flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
	width: 36px; height: 36px; border-radius: 10px;
	background: var(--tc-success-100); color: var(--tc-success);
	margin-top: 4px;
}
.topcnc-trust-item h3 { font-size: var(--tc-fs-lg); margin-bottom: var(--tc-space-1); }
.topcnc-trust-item p { color: var(--tc-text-muted); margin: 0; }

/* --- CTA --------------------------------------------------------------- */
.topcnc-cta { padding-block: var(--tc-space-12) var(--tc-space-16); }
.topcnc-cta__box {
	background: linear-gradient(135deg, var(--tc-primary-700), var(--tc-primary));
	color: #fff; border-radius: var(--tc-radius-lg);
	padding: var(--tc-space-12) var(--tc-space-8);
	text-align: center;
}
.topcnc-cta__box .topcnc-section__title { color: #fff; }
.topcnc-cta__box .topcnc-lead { color: rgba(255,255,255,0.8); max-width: 60ch; margin-inline: auto; }
.topcnc-cta__box .topcnc-hero__actions { justify-content: center; }
.topcnc-cta__box .topcnc-btn--outline { color: #fff; border-color: rgba(255,255,255,0.5); }
.topcnc-cta__box .topcnc-btn--outline:hover { background: rgba(255,255,255,0.12); }

/* --- Reveal on scroll (progressive enhancement) ------------------------ */
.js .topcnc-card, .js .topcnc-step, .js .topcnc-trust-item { opacity: 0; transform: translateY(12px); transition: opacity 0.4s ease, transform 0.4s ease; }
.js .is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.js .topcnc-card, .js .topcnc-step, .js .topcnc-trust-item { opacity: 1; transform: none; transition: none; }
	.topcnc-passport-card { transform: none; }
}

/* ==========================================================================
   Inner pages: feature, pricing, about, contact
   ========================================================================== */

/* --- Page hero (shared) ------------------------------------------------ */
.topcnc-page-hero { padding-block: var(--tc-space-12); background: linear-gradient(180deg, #fff, var(--tc-bg-muted)); }
.topcnc-page-hero .topcnc-lead { max-width: 64ch; }
.topcnc-feature-hero .topcnc-feature__icon { width: 64px; height: 64px; border-radius: 18px; }
.topcnc-feature-hero .topcnc-btn { margin-top: var(--tc-space-4); }
.topcnc-section__head--center { text-align: center; margin-inline: auto; max-width: 820px; }
.topcnc-section__head--center .topcnc-lead { margin-inline: auto; }
.topcnc-text-muted { color: var(--tc-text-muted); }

/* --- Feature body ------------------------------------------------------ */
.topcnc-split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--tc-space-12); align-items: start; }
@media (max-width: 900px) { .topcnc-split { grid-template-columns: 1fr; gap: var(--tc-space-6); } }

.topcnc-painlist { list-style: none; display: grid; gap: var(--tc-space-3); }
.topcnc-painlist li {
	position: relative; padding: var(--tc-space-3) var(--tc-space-4);
	padding-inline-start: 2.6rem;
	background: #fff; border: 1px solid var(--tc-border); border-radius: var(--tc-radius-sm);
}
.topcnc-painlist li::before {
	content: "!"; position: absolute; inset-inline-start: 0.9rem; top: 50%; transform: translateY(-50%);
	width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
	background: var(--tc-danger-100); color: var(--tc-danger); font-weight: 700; font-size: var(--tc-fs-xs);
}

.topcnc-checklist { list-style: none; display: grid; gap: var(--tc-space-3); }
.topcnc-checklist li { position: relative; padding-inline-start: 2rem; }
.topcnc-checklist li::before {
	content: "\2713"; position: absolute; inset-inline-start: 0; top: 0.35rem;
	width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
	background: var(--tc-success-100); color: var(--tc-success); font-size: 12px; font-weight: 700;
}

.topcnc-steps--light .topcnc-step { background: #fff; border-color: var(--tc-border); box-shadow: var(--tc-shadow); }
.topcnc-steps--light .topcnc-step p { color: var(--tc-text-muted); }

.topcnc-trust-note {
	display: flex; gap: var(--tc-space-4); align-items: flex-start;
	background: #fff; border: 1px solid var(--tc-border); border-radius: var(--tc-radius); padding: var(--tc-space-6);
	border-inline-start: 4px solid var(--tc-success);
}
.topcnc-trust-note h3 { font-size: var(--tc-fs-lg); margin-bottom: var(--tc-space-1); }
.topcnc-trust-note p { margin: 0; color: var(--tc-text-muted); }

/* --- Pricing (plan cards + toggle live in topcnc-base.css, shared with the panel) --- */
.topcnc-plans { margin-top: var(--tc-space-12); }
.topcnc-toggle { margin-top: var(--tc-space-6); }

.topcnc-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.topcnc-compare { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--tc-border); min-width: 640px; }
.topcnc-compare th, .topcnc-compare td { padding: 0.8rem 1rem; border-bottom: 1px solid var(--tc-border); text-align: center; font-size: var(--tc-fs-sm); }
.topcnc-compare th[scope="row"] { text-align: right; font-weight: 500; width: 36%; }
.topcnc-compare th[scope="row"] small { display: block; color: var(--tc-text-muted); font-weight: 400; font-size: var(--tc-fs-xs); }
.topcnc-compare thead th { font-size: var(--tc-fs-lg); font-weight: 700; background: var(--tc-bg-muted); }
.topcnc-compare .is-featured { background: var(--tc-primary-100); }
.topcnc-compare__group th { text-align: right; background: var(--tc-bg-dark); color: #fff; font-weight: 700; }
.topcnc-compare__yes { color: var(--tc-success); display: inline-flex; }
.topcnc-compare__no { color: var(--tc-text-muted); }

.topcnc-faq { display: grid; gap: var(--tc-space-3); }
.topcnc-faq__item { background: #fff; border: 1px solid var(--tc-border); border-radius: var(--tc-radius-sm); padding: 0 var(--tc-space-4); }
.topcnc-faq__item summary { cursor: pointer; font-weight: 700; padding: var(--tc-space-4) 0; list-style: none; position: relative; padding-inline-end: 2rem; }
.topcnc-faq__item summary::-webkit-details-marker { display: none; }
.topcnc-faq__item summary::after { content: "+"; position: absolute; inset-inline-end: 0; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--tc-primary); }
.topcnc-faq__item[open] summary::after { content: "\2212"; }
.topcnc-faq__item p { color: var(--tc-text-muted); padding-bottom: var(--tc-space-4); margin: 0; }
.topcnc-faq__contact { margin-top: var(--tc-space-8); text-align: center; color: var(--tc-text-muted); }

/* --- Contact ----------------------------------------------------------- */
.topcnc-contact { display: grid; grid-template-columns: 1fr 1.6fr; gap: var(--tc-space-12); align-items: start; }
@media (max-width: 900px) { .topcnc-contact { grid-template-columns: 1fr; gap: var(--tc-space-6); } }
.topcnc-contact__aside h3 { font-size: var(--tc-fs-lg); }
.topcnc-contact__form { padding: var(--tc-space-8); }

/* Form and alert primitives live in topcnc-base.css (shared with auth/panel). */
