/* ============================================================
   Actinium — AI Website Preview Generator
   Koristi tokene teme (main.css :root): --bg --ink --navy --blue
   --sky --wash --gray --line --grad --r --sh
   ============================================================ */

/* ---------- Forma (/ai-preview/) ---------- */

.ac-preview-tool { padding-bottom: 110px; }

.apt-head { max-width: 780px; margin-bottom: 54px; }
.apt-lead { margin-top: 18px; }

#ac-preview-form { max-width: 780px; }

.apt-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 22px;
}
.apt-span2 { grid-column: 1 / -1; }

.apt-field label {
	display: block;
	font-weight: 700;
	font-size: 14.5px;
	margin-bottom: 8px;
}
.apt-field .opt { font-weight: 400; color: var(--gray); font-size: 13px; }

.apt-field input,
.apt-field select,
.apt-field textarea {
	width: 100%;
	font: inherit;
	font-size: 16px;
	color: var(--ink);
	background: #fff;
	border: 1.5px solid var(--line);
	border-radius: 12px;
	padding: 13px 16px;
	transition: border-color .2s, box-shadow .2s;
}
.apt-field textarea { resize: vertical; min-height: 54px; }
.apt-field input:focus,
.apt-field select:focus,
.apt-field textarea:focus {
	outline: none;
	border-color: var(--blue);
	box-shadow: 0 0 0 4px rgba(46, 134, 214, .14);
}
.apt-field input::placeholder,
.apt-field textarea::placeholder { color: #9aa7b8; }

.apt-field input[type="file"] { padding: 10px 12px; cursor: pointer; }
.apt-field input[type="file"]::file-selector-button {
	font: inherit;
	font-weight: 700;
	font-size: 14px;
	color: var(--blue);
	background: var(--wash);
	border: 0;
	border-radius: 8px;
	padding: 8px 16px;
	margin-right: 14px;
	cursor: pointer;
}

/* Honeypot — van ekrana, nevidljivo i za čitače */
.apt-hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; pointer-events: none; }

.apt-submit { margin-top: 34px; border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.apt-submit:disabled { opacity: .6; cursor: wait; transform: none; }

.apt-note {
	margin-top: 16px;
	font-size: 13.5px;
	color: var(--gray);
}

.apt-error {
	margin-top: 22px;
	padding: 16px 20px;
	border: 1.5px solid rgba(211, 47, 47, .35);
	border-radius: 12px;
	background: rgba(211, 47, 47, .06);
	color: #b3261e;
	font-size: 15px;
	max-width: 780px;
}
.apt-error a { color: var(--blue); font-weight: 700; text-decoration: underline; }

/* ---------- Loading ---------- */

/* display:flex bi pregazio browserov [hidden] { display:none } — vraćamo ga eksplicitno */
.apt-loading[hidden] { display: none; }

.apt-loading {
	min-height: 40vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 26px;
	text-align: center;
}
.apt-spinner {
	width: 58px;
	height: 58px;
	border-radius: 50%;
	background:
		linear-gradient(var(--bg), var(--bg)) padding-box,
		conic-gradient(#2e86d6, #39b9ee, rgba(57, 185, 238, 0)) border-box;
	border: 5px solid transparent;
	animation: apt-spin 1s linear infinite;
}
@keyframes apt-spin { to { transform: rotate(360deg); } }

.apt-loading-text {
	font-family: 'Schibsted Grotesk', sans-serif;
	font-weight: 700;
	font-size: 19px;
	color: var(--ink);
}

/* ---------- Generisani preview (/preview/{hash}/) ---------- */

.ac-generated { background: var(--bg); }

/* Sticky bar — jasno da je koncept */
.acg-bar {
	position: sticky;
	top: 0;
	z-index: 60;
	background: var(--navy);
	border-bottom: 1px solid var(--line-d, rgba(255, 255, 255, .12));
}
.acg-bar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding-top: 12px;
	padding-bottom: 12px;
}
.acg-badge {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: #fff;
	font-weight: 700;
	font-size: 13.5px;
	letter-spacing: .06em;
	text-transform: uppercase;
	min-width: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.acg-bar-btn { padding: 10px 20px; font-size: 14px; flex: none; }

/* Hero */
.acg-hero {
	position: relative;
	padding: 120px 0 100px;
	overflow: hidden;
}
.acg-brand {
	font-weight: 700;
	font-size: 14px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--blue);
	margin-bottom: 24px;
}
.acg-h1 { max-width: 15ch; }
.acg-sub {
	color: var(--gray);
	font-size: 19px;
	max-width: 56ch;
	margin-top: 24px;
}
.acg-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.acg-ctas .btn { cursor: default; }

/* Kvadrati-motiv u pozadini hero-a */
.acg-squares { position: absolute; inset: 0; pointer-events: none; }
.acg-squares i {
	position: absolute;
	display: block;
	background: var(--grad);
	border-radius: 4px;
	opacity: .10;
	animation: acg-float 9s ease-in-out infinite;
}
.acg-squares i:nth-child(1) { width: 90px; height: 90px; top: 14%; right: 12%; }
.acg-squares i:nth-child(2) { width: 46px; height: 46px; top: 52%; right: 24%; animation-delay: -3s; }
.acg-squares i:nth-child(3) { width: 26px; height: 26px; top: 30%; right: 34%; animation-delay: -6s; }
@keyframes acg-float {
	0%, 100% { transform: translateY(0) rotate(0deg); }
	50%      { transform: translateY(-22px) rotate(8deg); }
}

/* Value props */
.acg-props { padding: 80px 0; background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.acg-props-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 44px;
}
.acg-idx {
	display: block;
	font-family: 'Schibsted Grotesk', sans-serif;
	font-weight: 900;
	font-size: 15px;
	letter-spacing: .12em;
	color: var(--sky);
	margin-bottom: 14px;
}
.acg-prop h3 { font-size: 21px; margin-bottom: 10px; }
.acg-prop p { color: var(--gray); font-size: 16px; }

/* About strip */
.acg-about { padding: 90px 0; background: var(--wash); }
.acg-about p {
	font-family: 'Schibsted Grotesk', sans-serif;
	font-weight: 700;
	font-style: italic;
	font-size: clamp(22px, 3vw, 34px);
	line-height: 1.3;
	letter-spacing: -.02em;
	max-width: 30ch;
	margin: 0 auto;
	text-align: center;
	text-wrap: balance;
}

/* Services */
.acg-services { padding: 96px 0; }
.acg-services > .wrap > h2 { margin-bottom: 46px; max-width: 22ch; }
.acg-svc-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 22px;
}
.acg-svc {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--r);
	padding: 30px 28px;
	box-shadow: 0 10px 34px rgba(13, 23, 40, .05);
}
.acg-svc .sq { margin-bottom: 18px; }
.acg-svc h3 { font-size: 19px; margin-bottom: 10px; }
.acg-svc p { color: var(--gray); font-size: 15.5px; }

/* Closing CTA */
.acg-close {
	padding: 100px 0;
	background: var(--grad);
	color: #fff;
	text-align: center;
}
.acg-close h2 { max-width: 20ch; margin: 0 auto 34px; }
.acg-close .btn { cursor: default; }

/* Actinium pitch — jasno odvojen od preview-a */
.acg-pitch {
	position: relative;
	padding: 110px 0 120px;
	background: var(--navy);
	color: #fff;
	text-align: center;
	border-top: 1px solid rgba(255, 255, 255, .14);
}
.acg-pitch-label {
	position: absolute;
	top: -11px;
	left: 50%;
	transform: translateX(-50%);
	background: var(--bg);
	color: var(--gray);
	border: 1px solid var(--line);
	border-radius: 999px;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .18em;
	text-transform: uppercase;
	padding: 4px 16px;
	white-space: nowrap;
}
.acg-pitch .kick { justify-content: center; }
.acg-pitch h2 { max-width: 18ch; margin: 0 auto 22px; }
.acg-pitch p { color: rgba(255, 255, 255, .78); max-width: 58ch; margin: 0 auto; font-size: 17px; }
.acg-pitch p strong { color: #fff; }
.acg-pitch-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 40px; }
.acg-btn-ghost { background: transparent; }
.acg-pitch .acg-btn-ghost { border-color: rgba(255, 255, 255, .25); color: #fff; }
.acg-pitch .acg-btn-ghost:hover { border-color: var(--sky); color: var(--sky); }

/* ---------- Responsive ---------- */

@media (max-width: 820px) {
	.apt-grid { grid-template-columns: 1fr; gap: 18px; }
	.acg-hero { padding: 80px 0 70px; }
	.acg-props-grid { grid-template-columns: 1fr; gap: 34px; }
	.acg-bar-inner { flex-wrap: nowrap; }
	.acg-badge { font-size: 12px; }
	.acg-bar-btn { padding: 9px 14px; font-size: 13px; }
	.acg-squares i:nth-child(1) { width: 54px; height: 54px; right: 6%; }
}

@media (prefers-reduced-motion: reduce) {
	.acg-squares i { animation: none; }
	.apt-spinner { animation-duration: 2.5s; }
}

/* ---------- Landing sekcije ispod forme (/ai-preview/) ---------- */

.apt-sec { padding: 90px 0; }
.apt-sec--wash { background: var(--wash); }
.apt-sec .kick { margin-bottom: 14px; display: inline-flex; }
.apt-sec h2 { max-width: 640px; margin-bottom: 46px; }

.apt-steps {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}
.apt-step {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--r);
	padding: 28px 26px;
}
.apt-step__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 10px;
	background: var(--grad);
	color: #fff;
	font-weight: 800;
	font-size: 17px;
	margin-bottom: 18px;
}
.apt-step h3 { font-size: 18px; margin-bottom: 10px; }
.apt-step p { font-size: 15px; color: var(--gray); line-height: 1.6; }

.apt-caps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
.apt-cap {
	position: relative;
	padding: 6px 0 6px 25px;
}
.apt-cap::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 3px;
	border-radius: 3px;
	background: var(--grad);
}
.apt-cap h3 { font-size: 18px; margin-bottom: 10px; }
.apt-cap p { font-size: 15px; color: var(--gray); line-height: 1.6; }

.apt-honest {
	margin-top: 54px;
	background: var(--ink);
	color: #fff;
	border-radius: var(--r);
	padding: 36px 40px;
	max-width: 860px;
}
.apt-honest h3 { color: #fff; font-size: 20px; margin-bottom: 10px; }
.apt-honest p { color: #b8c6d9; font-size: 15.5px; line-height: 1.65; }

.apt-faq { max-width: 780px; }
.apt-faq__item {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 14px;
	padding: 0 24px;
	margin-bottom: 12px;
}
.apt-faq__item summary {
	cursor: pointer;
	font-weight: 700;
	font-size: 16.5px;
	padding: 20px 0;
	list-style: none;
	position: relative;
	padding-right: 34px;
}
.apt-faq__item summary::-webkit-details-marker { display: none; }
.apt-faq__item summary::after {
	content: "+";
	position: absolute;
	right: 2px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 22px;
	font-weight: 400;
	color: var(--blue);
	transition: transform .2s;
}
.apt-faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.apt-faq__item p { padding: 0 0 20px; color: var(--gray); font-size: 15px; line-height: 1.65; }

.apt-cta { text-align: center; padding-bottom: 120px; }
.apt-cta h2 { margin: 0 auto 16px; }
.apt-cta .lead { max-width: 560px; margin: 0 auto 30px; color: var(--gray); }

@media (max-width: 1024px) {
	.apt-steps { grid-template-columns: repeat(2, 1fr); }
	.apt-caps { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.apt-sec { padding: 64px 0; }
	.apt-steps { grid-template-columns: 1fr; }
	.apt-honest { padding: 28px 24px; }
}
