/* AIC Guided Tour — brand dark #101820, gold #F0D351 / text gold #8B681D, square corners. */
.aict-backdrop,
.aict-spot,
.aict-card,
.aict-nudge {
	--t-ink: var(--aic-fg, #101820);
	--t-gold: var(--aic-gold, #F0D351);
	--t-gold-line: var(--aic-gold-line, #D0A72B);
	--t-gold-text: var(--aic-gold-text, #8B681D);
	--t-muted: var(--aic-muted, #5C5850);
	--t-line: var(--aic-line, #E7E2D9);
	--t-display: "Cormorant Garamond", Georgia, serif;
	--t-body: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
	box-sizing: border-box;
}
.aict-backdrop *, .aict-card *, .aict-nudge * { box-sizing: border-box; }

/* Blocks clicks on the page while the tour is open; the spot draws the dimming. */
.aict-backdrop { position: fixed; inset: 0; z-index: 100000; display: none; background: transparent; transition: background .2s ease; }
.aict-backdrop.is-on { display: block; }
.aict-backdrop.is-dim { background: rgba(16, 24, 32, .62); }

.aict-spot {
	position: fixed; z-index: 100001; display: none; pointer-events: none;
	box-shadow: 0 0 0 200vmax rgba(16, 24, 32, .62);
	outline: 2px solid var(--t-gold);
	outline-offset: 0;
	transition: top .25s ease, left .25s ease, width .25s ease, height .25s ease;
}
.aict-spot.is-on { display: block; }
.aict-spot.is-pulse { animation: aict-pulse 1.6s ease-in-out infinite; }
@keyframes aict-pulse { 50% { outline-color: rgba(240, 211, 81, .35); outline-offset: 4px; } }

.aict-card {
	position: fixed; z-index: 100002; display: none;
	width: min(380px, calc(100vw - 32px));
	padding: 26px 24px 20px;
	background: #fff; color: var(--t-ink);
	border-top: 3px solid var(--t-gold-line);
	box-shadow: 0 18px 50px rgba(16, 24, 32, .28);
	font-family: var(--t-body);
	opacity: 0; transform: translateY(6px);
	transition: opacity .2s ease, transform .2s ease;
}
.aict-card.is-on { display: block; }
.aict-card.is-in { opacity: 1; transform: none; }
.aict-card:focus { outline: none; }
.aict-card.is-center { top: 50% !important; left: 50% !important; transform: translate(-50%, calc(-50% + 6px)); width: min(440px, calc(100vw - 32px)); padding: 34px 32px 24px; }
.aict-card.is-center.is-in { transform: translate(-50%, -50%); }
.aict-card.is-sheet {
	top: auto !important; left: 0 !important; right: 0; bottom: 0;
	width: 100%; max-height: 62vh; overflow: auto;
	padding: 22px 20px calc(18px + env(safe-area-inset-bottom));
	transform: translateY(16px);
}
.aict-card.is-sheet.is-in { transform: none; }

.aict-close {
	position: absolute; top: 8px; right: 8px;
	width: 36px; height: 36px; padding: 0;
	display: inline-flex; align-items: center; justify-content: center;
	background: none; border: 0; border-radius: 0; color: var(--t-muted);
	font-size: 24px; line-height: 1; cursor: pointer;
}
@media (hover: hover) { .aict-close:hover { color: var(--t-ink); } }
.aict-close:focus-visible, .aict-btn:focus-visible { outline: 2px solid var(--t-gold); outline-offset: 2px; }

.aict-count { margin: 0 0 8px; font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--t-gold-text); }
.aict-title { margin: 0 32px 8px 0; font-family: var(--t-display); font-weight: 500; font-size: 28px; line-height: 1.12; color: var(--t-ink); }
.aict-card.is-center .aict-title { font-size: 34px; }
.aict-text { margin: 0; font-size: 15px; line-height: 1.6; color: var(--t-muted); }

.aict-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; }
.aict-dots { display: flex; gap: 6px; flex: none; }
.aict-dots span { width: 6px; height: 6px; background: var(--t-line); }
.aict-dots span.is-on { background: var(--t-ink); width: 18px; }
.aict-btns { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
.aict-btn {
	min-height: 42px; padding: 0 18px;
	border-radius: 0; cursor: pointer;
	font-family: var(--t-body); font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
}
.aict-btn[hidden] { display: none; }
.aict-btn--solid { background: var(--t-ink); color: #fff; border: 1px solid var(--t-ink); }
@media (hover: hover) { .aict-btn--solid:hover { background: var(--t-gold); border-color: var(--t-gold); color: var(--t-ink); } }
.aict-btn--ghost { background: none; color: var(--t-ink); border: 1px solid transparent; }
@media (hover: hover) { .aict-btn--ghost:hover { border-color: var(--t-line); } }

/* Non-blocking hint above "Start my design". */
.aict-nudge {
	position: fixed; z-index: 99990;
	width: min(300px, calc(100vw - 24px));
	padding: 16px 40px 16px 18px;
	background: var(--t-ink); color: #F3F3F3;
	border-top: 3px solid var(--t-gold);
	box-shadow: 0 12px 34px rgba(16, 24, 32, .3);
	font-family: var(--t-body);
	animation: aict-rise .25s ease-out;
}
.aict-nudge::after {
	content: ""; position: absolute; left: 50%; bottom: -8px; margin-left: -8px;
	border: 8px solid transparent; border-bottom: 0; border-top-color: var(--t-ink);
}
.aict-nudge.is-below::after { bottom: auto; top: -11px; border: 8px solid transparent; border-top: 0; border-bottom-color: var(--t-gold); }
.aict-nudge .aict-title { margin: 0 0 4px; font-size: 22px; color: #fff; }
.aict-nudge .aict-text { color: #D0D3D7; font-size: 14px; line-height: 1.5; }
.aict-nudge .aict-close { color: #9DA3AB; top: 4px; right: 4px; }
.aict-nudge .aict-close:hover { color: #fff; }
.aict-glow { box-shadow: 0 0 0 3px var(--aic-gold, #F0D351); animation: aict-glow 1.6s ease-in-out infinite; }
@keyframes aict-glow { 50% { box-shadow: 0 0 0 6px rgba(240, 211, 81, .35); } }
@keyframes aict-rise { from { opacity: 0; transform: translateY(6px); } }

/* "Take a quick tour" link under the hero buttons / editor title. */
.aict-inline { margin: 14px 0 0; }
.aics-panel .aict-inline { margin: -22px 0 0; } /* The panel spaces its blocks 32px apart. */
.aict-link {
	display: inline-flex; align-items: center; gap: 10px;
	min-height: 32px; padding: 0;
	background: none; border: 0; border-radius: 0; cursor: pointer;
	color: var(--aic-fg, #101820);
	font-family: Manrope, system-ui, sans-serif; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
}
.aict-link > span:last-child { border-bottom: 1px solid var(--aic-gold-line, #D0A72B); padding-bottom: 2px; }
.aict-link__icon {
	width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center;
	background: var(--aic-fg, #101820); color: var(--aic-gold, #F0D351);
	font-family: "Cormorant Garamond", Georgia, serif; font-size: 16px; font-weight: 600; letter-spacing: 0;
}
.aict-link:focus-visible { outline: 2px solid var(--aic-gold, #F0D351); outline-offset: 3px; }
.aict-inline.is-floating { position: fixed; left: 16px; bottom: 16px; z-index: 9990; margin: 0; padding: 8px 12px; background: #fff; border: 1px solid var(--aic-line, #E7E2D9); }

/* [aic_walkthrough_button] when the theme's button styles aren't on the page. */
.aict-start-btn { cursor: pointer; }
.aict-start-btn:not(.aic-btn) { min-height: 44px; padding: 0 22px; background: #101820; color: #fff; border: 1px solid #101820; border-radius: 0; font: 600 12px/1 Manrope, system-ui, sans-serif; letter-spacing: .16em; text-transform: uppercase; }

/* Keep the chat button out of the way while the tour is open. */
html.aict-open .aics-chat, html.aict-open #aics-chat, html.aict-open .aict-inline.is-floating { visibility: hidden; }

@media (prefers-reduced-motion: reduce) {
	.aict-spot, .aict-card, .aict-backdrop { transition: none; }
	.aict-spot.is-pulse, .aict-glow, .aict-nudge { animation: none; }
}
