/* =========================================================================
   AN Marketplace — Onboarding ("Sell in 4 taps")
   visionOS "Liquid Glass" · Coda Edition
   ========================================================================= */

.anmkt-onboard,
.anmkt-onboard *,
.anmkt-onboard *::before,
.anmkt-onboard *::after { box-sizing: border-box; }

.anmkt-onboard {
	/* Tokens */
	--ink: #f4f7fb;
	--ink-soft: rgba(244, 247, 251, .66);
	--ink-faint: rgba(244, 247, 251, .40);
	--line: rgba(255, 255, 255, .12);
	--glass: rgba(255, 255, 255, .055);
	--glass-2: rgba(255, 255, 255, .09);
	--blur: 26px;
	--radius: 28px;
	--radius-sm: 16px;
	--emerald: #34d399;
	--cobalt: #5b8cff;
	--amber: #f6c177;
	--rose: #ff9b8a;
	--shadow: 0 30px 80px -32px rgba(0, 0, 0, .75);
	--font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, system-ui, sans-serif;

	position: relative;
	isolation: isolate;
	overflow: hidden;
	max-width: 640px;
	margin: 40px auto;
	padding: clamp(20px, 5vw, 40px);
	border-radius: 32px;
	border: 1px solid var(--line);
	background:
		radial-gradient(120% 90% at 0% 0%, rgba(91, 140, 255, .16), transparent 55%),
		radial-gradient(120% 90% at 100% 0%, rgba(52, 211, 153, .14), transparent 55%),
		linear-gradient(180deg, #0a0f1a, #05070d 70%);
	color: var(--ink);
	font-family: var(--font);
	-webkit-font-smoothing: antialiased;
	box-shadow: var(--shadow);
}

/* --- Aurora ------------------------------------------------------------- */
.anmkt-aurora { position: absolute; inset: -20%; z-index: 0; pointer-events: none; filter: blur(60px); opacity: .55; }
.anmkt-aurora span { position: absolute; width: 46%; height: 46%; border-radius: 50%; }
.anmkt-aurora__a { top: -6%; left: -4%; background: radial-gradient(circle, rgba(91, 140, 255, .9), transparent 60%); animation: anmkt-drift 22s ease-in-out infinite; }
.anmkt-aurora__b { top: 8%; right: -8%; background: radial-gradient(circle, rgba(52, 211, 153, .8), transparent 60%); animation: anmkt-drift 26s ease-in-out infinite reverse; }
.anmkt-aurora__c { bottom: -12%; left: 24%; background: radial-gradient(circle, rgba(246, 193, 119, .55), transparent 60%); animation: anmkt-drift 30s ease-in-out infinite; }

@keyframes anmkt-drift {
	0%, 100% { transform: translate(0, 0) scale(1); }
	33% { transform: translate(8%, 6%) scale(1.12); }
	66% { transform: translate(-6%, 3%) scale(.94); }
}

.anmkt-onboard > *:not(.anmkt-aurora) { position: relative; z-index: 1; }

/* --- Header ------------------------------------------------------------- */
.anmkt-eyebrow {
	margin: 0 0 12px;
	font-size: .72rem;
	font-weight: 600;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--emerald);
}
.anmkt-onboard__title {
	margin: 0 0 10px;
	font-size: clamp(1.7rem, 6vw, 2.4rem);
	font-weight: 600;
	line-height: 1.04;
	letter-spacing: -.02em;
	background: linear-gradient(180deg, #ffffff, rgba(255, 255, 255, .72));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.anmkt-onboard__sub {
	margin: 0 0 26px;
	max-width: 46ch;
	font-size: 1rem;
	line-height: 1.5;
	color: var(--ink-soft);
}

/* --- Progress ----------------------------------------------------------- */
.anmkt-prog { display: flex; gap: 10px; margin-bottom: 22px; }
.anmkt-prog__seg { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.anmkt-prog__seg::before {
	content: ""; height: 4px; border-radius: 99px;
	background: rgba(255, 255, 255, .12); transition: background .4s ease, box-shadow .4s ease;
}
.anmkt-prog__seg span { font-size: .72rem; font-weight: 600; color: var(--ink-faint); transition: color .3s ease; }
.anmkt-prog__seg.is-active::before,
.anmkt-prog__seg.is-done::before {
	background: linear-gradient(90deg, var(--cobalt), var(--emerald));
	box-shadow: 0 0 18px -2px rgba(52, 211, 153, .6);
}
.anmkt-prog__seg.is-active span,
.anmkt-prog__seg.is-done span { color: var(--ink); }

/* --- Glass panel -------------------------------------------------------- */
.anmkt-panel {
	position: relative; overflow: hidden;
	padding: clamp(18px, 4vw, 28px);
	border-radius: var(--radius);
	border: 1px solid var(--line);
	background: var(--glass);
	-webkit-backdrop-filter: blur(var(--blur)) saturate(160%);
	backdrop-filter: blur(var(--blur)) saturate(160%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 20px 50px -28px rgba(0, 0, 0, .6);
}
.anmkt-panel::before {
	content: ""; position: absolute; inset: 0 0 auto; height: 42%;
	background: linear-gradient(180deg, rgba(255, 255, 255, .14), transparent);
	pointer-events: none;
}
.anmkt-stage { min-height: 300px; }

/* --- Steps -------------------------------------------------------------- */
.anmkt-step { display: none; }
.anmkt-step.is-active { display: block; animation: anmkt-stepin .45s cubic-bezier(.22, 1, .36, 1); }
@keyframes anmkt-stepin {
	from { opacity: 0; transform: translateY(14px) scale(.99); filter: blur(2px); }
	to { opacity: 1; transform: none; filter: none; }
}
.anmkt-step__title { margin: 0 0 6px; font-size: 1.28rem; font-weight: 600; letter-spacing: -.01em; }
.anmkt-step__sub { margin: 0 0 22px; font-size: .94rem; line-height: 1.45; color: var(--ink-soft); }

/* --- Fields ------------------------------------------------------------- */
.anmkt-field { margin-bottom: 18px; }
.anmkt-field > label {
	display: block; margin-bottom: 8px;
	font-size: .82rem; font-weight: 600; color: var(--ink-soft);
}
.anmkt-opt { margin-left: 6px; font-weight: 400; color: var(--ink-faint); font-size: .76rem; }
.anmkt-field input,
.anmkt-field textarea {
	width: 100%; padding: 14px 16px;
	font-family: inherit; font-size: 1rem; color: var(--ink);
	background: rgba(255, 255, 255, .045);
	border: 1px solid var(--line); border-radius: var(--radius-sm);
	outline: none; transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.anmkt-field textarea { resize: vertical; min-height: 84px; line-height: 1.5; }
.anmkt-field input::placeholder,
.anmkt-field textarea::placeholder { color: var(--ink-faint); }
.anmkt-field input:focus,
.anmkt-field textarea:focus {
	border-color: rgba(52, 211, 153, .7);
	background: rgba(255, 255, 255, .07);
	box-shadow: 0 0 0 4px rgba(52, 211, 153, .16);
}
.anmkt-field input.anmkt-invalid,
.anmkt-field textarea.anmkt-invalid {
	border-color: rgba(255, 155, 138, .8);
	box-shadow: 0 0 0 4px rgba(255, 155, 138, .14);
}

/* --- Chips -------------------------------------------------------------- */
.anmkt-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.anmkt-chip {
	display: inline-flex; align-items: center; gap: 7px;
	padding: 9px 14px;
	font-family: inherit; font-size: .86rem; font-weight: 500; color: var(--ink-soft);
	background: var(--glass-2); border: 1px solid var(--line); border-radius: 99px;
	cursor: pointer; transition: transform .18s ease, border-color .2s ease, background .2s ease, color .2s ease;
}
.anmkt-chip__emoji { font-size: 1rem; line-height: 1; }
.anmkt-chip:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, .28); }
.anmkt-chip.is-selected {
	color: #04140d; font-weight: 600;
	background: linear-gradient(120deg, var(--emerald), #7ef0c0);
	border-color: transparent;
	box-shadow: 0 8px 24px -8px rgba(52, 211, 153, .65);
}

/* --- Photo dropzone ----------------------------------------------------- */
.anmkt-drop {
	position: relative; display: flex; align-items: center; justify-content: center;
	width: 100%; aspect-ratio: 1 / 1; max-height: 360px;
	border-radius: var(--radius); overflow: hidden; cursor: pointer;
	border: 1.5px dashed rgba(255, 255, 255, .22);
	background: rgba(255, 255, 255, .03);
	transition: border-color .25s ease, background .25s ease;
}
.anmkt-drop:hover { border-color: rgba(52, 211, 153, .55); background: rgba(255, 255, 255, .05); }
.anmkt-drop__preview {
	position: absolute; inset: 0; background-size: cover; background-position: center;
	opacity: 0; transition: opacity .4s ease;
}
.anmkt-drop.has-image { border-style: solid; border-color: var(--line); }
.anmkt-drop.has-image .anmkt-drop__preview { opacity: 1; }
.anmkt-drop.has-image .anmkt-drop__cta { opacity: 0; }
.anmkt-drop__cta {
	position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 6px;
	text-align: center; color: var(--ink-soft); transition: opacity .3s ease; pointer-events: none;
}
.anmkt-drop__icon {
	display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 4px;
	font-size: 1.6rem; border-radius: 50%; background: var(--glass-2); border: 1px solid var(--line);
}
.anmkt-drop__label { font-weight: 600; font-size: 1rem; color: var(--ink); }
.anmkt-drop__hint { font-size: .78rem; color: var(--ink-faint); }
.anmkt-file { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }

/* --- Review summary ----------------------------------------------------- */
.anmkt-review { margin-top: 18px; }
.anmkt-review:empty { display: none; }
.anmkt-review__card {
	border-radius: var(--radius-sm); border: 1px solid var(--line);
	background: rgba(255, 255, 255, .04); padding: 14px 16px;
}
.anmkt-review__row { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; font-size: .9rem; }
.anmkt-review__row + .anmkt-review__row { border-top: 1px solid rgba(255, 255, 255, .07); }
.anmkt-review__k { color: var(--ink-faint); }
.anmkt-review__v { color: var(--ink); font-weight: 500; text-align: right; word-break: break-word; }

/* --- Honeypot ----------------------------------------------------------- */
.anmkt-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* --- Error -------------------------------------------------------------- */
.anmkt-error { min-height: 20px; margin: 16px 0 0; font-size: .86rem; color: var(--rose); }

/* --- Nav buttons -------------------------------------------------------- */
.anmkt-onboard__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; }
.anmkt-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 13px 26px; font-family: inherit; font-size: .95rem; font-weight: 600;
	border: 1px solid transparent; border-radius: 99px; cursor: pointer; text-decoration: none;
	transition: transform .18s ease, box-shadow .25s ease, background .25s ease, border-color .2s ease, opacity .2s ease;
}
.anmkt-btn--solid {
	color: #04140d;
	background: linear-gradient(120deg, var(--cobalt), var(--emerald));
	box-shadow: 0 12px 30px -10px rgba(52, 211, 153, .6), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.anmkt-btn--solid:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -10px rgba(52, 211, 153, .7); }
.anmkt-btn--solid:active { transform: translateY(0) scale(.98); }
.anmkt-btn--ghost { color: var(--ink-soft); background: var(--glass-2); border-color: var(--line); }
.anmkt-btn--ghost:hover { color: var(--ink); border-color: rgba(255, 255, 255, .3); }
.anmkt-btn:disabled { opacity: .35; pointer-events: none; }
.anmkt-btn:focus-visible { outline: 2px solid var(--emerald); outline-offset: 3px; }

/* --- Success overlay ---------------------------------------------------- */
.anmkt-success {
	position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center;
	padding: 24px; border-radius: 32px;
	background: rgba(5, 7, 13, .72);
	-webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
	animation: anmkt-fade .4s ease;
}
.anmkt-success[hidden] { display: none; }
@keyframes anmkt-fade { from { opacity: 0; } to { opacity: 1; } }
.anmkt-success__inner { text-align: center; max-width: 420px; }
.anmkt-orbit { position: relative; width: 96px; height: 96px; margin: 0 auto 22px; }
.anmkt-orbit__core {
	position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.4rem;
	border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(52, 211, 153, .35), rgba(91, 140, 255, .12));
	border: 1px solid var(--line);
}
.anmkt-orbit__ring {
	position: absolute; inset: -10px; border-radius: 50%;
	border: 1.5px solid transparent; border-top-color: var(--emerald); border-right-color: var(--cobalt);
	animation: anmkt-spin 1.6s linear infinite;
}
@keyframes anmkt-spin { to { transform: rotate(360deg); } }
.anmkt-success__title { margin: 0 0 10px; font-size: 1.5rem; font-weight: 600; }
.anmkt-success__msg { margin: 0 0 22px; color: var(--ink-soft); line-height: 1.5; }
.anmkt-success__actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* --- Reduced motion ----------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	.anmkt-aurora span,
	.anmkt-orbit__ring { animation: none !important; }
	.anmkt-step.is-active { animation: none; }
	.anmkt-btn, .anmkt-chip { transition: none; }
}
