/* ALUNA AI — scoped styles (.aai…). Brand: navy #1b1491, blue #2b5fd8, orange #ff5a1f. */

.aai {
	--aai-navy: #1b1491;
	--aai-blue: #2b5fd8;
	--aai-orange: #ff5a1f;
	--aai-green: #17a864;
	--aai-red: #c8352b;
	--aai-ink: #141a3a;
	--aai-muted: #5a6285;
	--aai-line: #d9e0f2;
	--aai-soft: #eef2fb;
	--aai-card: #ffffff;
	display: grid;
	gap: 28px;
	width: 100%;
	max-width: 1180px;
	margin-left: auto !important;
	margin-right: auto !important;
	padding: 24px 0 56px;
	color: var(--aai-ink);
	font-size: 15px;
	line-height: 1.55;
	text-align: left;
}
.aai *, .aai *::before, .aai *::after { box-sizing: border-box; }
.aai h2, .aai h3 { margin: 0; color: inherit; line-height: 1.2; text-wrap: balance; }
.aai p { margin: 0; }
.aai ul { margin: 0; padding: 0; list-style: none; }
.aai [hidden] { display: none !important; }
.aai :focus-visible { outline: 2px solid var(--aai-orange); outline-offset: 2px; }
.aai-eyebrow { display: block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--aai-orange); margin-bottom: 6px; }
.aai-muted { color: var(--aai-muted); }

/* buttons */
.aai-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; border-radius: 11px; padding: 12px 20px; font-weight: 700; font-size: 15px; line-height: 1.2; text-decoration: none !important; transition: transform .15s, box-shadow .2s, background .2s; }
.aai-btn:hover { transform: translateY(-1px); }
.aai-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.aai-btn-primary { background: linear-gradient(110deg, var(--aai-navy), var(--aai-blue)); color: #fff !important; box-shadow: 0 8px 22px rgba(43,95,216,.28); }
.aai-btn-accent { background: var(--aai-orange); color: #fff !important; box-shadow: 0 8px 22px rgba(255,90,31,.3); }
.aai-btn-light { background: rgba(255,255,255,.14); color: #fff !important; border: 1px solid rgba(255,255,255,.4); }
.aai-btn-ghost { background: var(--aai-soft); color: var(--aai-ink) !important; }
.aai-btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 9px; }
.aai-link { display: block; margin-top: 4px; color: var(--aai-blue); font-size: 14px; }

/* hero + demo */
.aai-hero { border-radius: 20px; padding: clamp(18px, 3vw, 34px); color: #fff; background: radial-gradient(120% 140% at 0% 0%, #1b1491, #2b5fd8 70%, #3a7cf0); display: grid; gap: 20px; box-shadow: 0 24px 60px rgba(27,20,145,.25); }
.aai-hero-head { display: grid; gap: 10px; max-width: 760px; }
.aai-hero h2 { font-size: clamp(24px, 3.2vw, 36px); font-weight: 800; color: #fff; }
.aai-hero p { opacity: .9; }
.aai-badge { justify-self: start; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35); border-radius: 99px; padding: 5px 12px; }
.aai-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.aai-demo-video, .aai-demo-gif { display: block; width: 100%; height: auto; border-radius: 14px; background: #fff; box-shadow: 0 18px 40px rgba(8,12,60,.35); }

.aai-demo { position: relative; background: #fff; color: var(--aai-ink); border-radius: 14px; overflow: hidden; box-shadow: 0 18px 40px rgba(8,12,60,.35); }
.aai-demo-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: var(--aai-soft); font-size: 12px; color: var(--aai-muted); }
.aai-demo-bar i { width: 9px; height: 9px; border-radius: 50%; background: #c9d2ea; display: inline-block; }
.aai-demo-bar b { margin-left: auto; color: var(--aai-orange); letter-spacing: .08em; }
.aai-demo-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px; padding: 16px; }
.aai-demo-left { display: grid; gap: 12px; align-content: start; }
.aai-dl { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--aai-muted); margin-bottom: 5px; }
.aai-dtext { min-height: 96px; border: 1.5px solid var(--aai-line); border-radius: 9px; padding: 10px; font-size: 13.5px; line-height: 1.45; transition: border-color .3s; }
.aai-dtext.is-focus { border-color: var(--aai-blue); }
.aai-caret { display: inline-block; width: 1.5px; height: 1em; background: var(--aai-blue); vertical-align: -2px; animation: aai-blink 1s steps(1) infinite; }
@keyframes aai-blink { 50% { opacity: 0; } }
.aai-dcats { display: flex; flex-wrap: wrap; gap: 6px; }
.aai-dcats span { font-size: 12.5px; border: 1.5px solid var(--aai-line); border-radius: 99px; padding: 4px 11px; transition: all .25s; }
.aai-dcats span.is-on { border-color: var(--aai-navy); background: var(--aai-navy); color: #fff; }
.aai-dbtn { display: block; text-align: center; border-radius: 10px; padding: 11px; color: #fff; font-weight: 700; background: linear-gradient(110deg, var(--aai-navy), var(--aai-blue)); transition: transform .15s; }
.aai-dbtn.is-press { transform: scale(.96); }
.aai-demo-right { position: relative; border: 1.5px solid var(--aai-line); border-radius: 12px; min-height: 270px; background: #fbfcff; display: grid; place-items: center; overflow: hidden; }
.aai-dempty { color: #8a91b3; font-size: 13px; padding: 16px; text-align: center; }
.aai-dprog { position: absolute; left: 18px; right: 18px; top: 50%; transform: translateY(-50%); display: grid; gap: 8px; opacity: 0; transition: opacity .3s; }
.aai-dprog.is-on { opacity: 1; }
.aai-dstage { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--aai-muted); }
.aai-track { height: 8px; border-radius: 99px; background: #e6ebf8; overflow: hidden; }
.aai-track i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--aai-blue), var(--aai-orange)); transition: width .5s ease; }
.aai-dfig { position: absolute; inset: 8px; opacity: 0; transform: scale(.97); transition: opacity .6s, transform .6s; }
.aai-dfig.is-on { opacity: 1; transform: none; }
.aai-dfig svg { width: 100%; height: 100%; }
.aai-dfig .lbl { font: 600 12px/1 sans-serif; fill: var(--aai-ink); }
.aai-dfig .lbl-box { fill: none; stroke: none; }
.aai-dfig .is-sel .lbl-box { stroke: var(--aai-orange); stroke-width: 1.5; stroke-dasharray: 4 3; fill: rgba(255,90,31,.06); }
.aai-dtoast { position: absolute; right: 10px; bottom: 10px; background: var(--aai-ink); color: #fff; font-size: 12px; padding: 7px 11px; border-radius: 8px; opacity: 0; transform: translateY(6px); transition: all .3s; }
.aai-dtoast.is-on { opacity: 1; transform: none; }
.aai .aai-dsteps, .aai .aai-dsteps li { list-style: none !important; margin: 0 !important; }
.aai .aai-dsteps li::marker { content: none; }
.aai-dsteps { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 10px 16px 14px; border-top: 1px solid var(--aai-soft); font-size: 12px; color: #8a91b3; counter-reset: s; }
.aai-dsteps li { counter-increment: s; transition: color .3s; }
.aai-dsteps li::before { content: counter(s) " · "; font-weight: 700; }
.aai-dsteps li.is-on { color: var(--aai-navy); font-weight: 700; }
.aai-dcursor { position: absolute; left: 30px; top: 40px; width: 18px; height: 18px; pointer-events: none; z-index: 3; transition: left .7s cubic-bezier(.5,0,.2,1), top .7s cubic-bezier(.5,0,.2,1); }
.aai-dcursor path { fill: var(--aai-ink); stroke: #fff; stroke-width: 1.2; }

/* offer */
.aai-offer { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 22px; }
.aai-card { background: var(--aai-card); border: 1px solid var(--aai-line); border-radius: 16px; padding: clamp(18px, 2.4vw, 26px); }
.aai-card h2 { font-size: clamp(20px, 2.4vw, 26px); margin-bottom: 8px; }
.aai-feat { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; margin-top: 16px !important; }
.aai-feat li { display: grid; gap: 2px; }
.aai-feat span { color: var(--aai-muted); font-size: 14px; }
.aai-price { display: grid; gap: 14px; align-content: start; border: 2px solid var(--aai-navy); }
.aai-amt { font-size: 46px; font-weight: 800; line-height: 1; color: var(--aai-navy); }
.aai-amt small { font-size: 16px; color: var(--aai-muted); font-weight: 600; }
.aai-price ul { display: grid; gap: 6px; }
.aai-price li { position: relative; padding-left: 22px; color: var(--aai-muted); font-size: 14.5px; }
.aai-price li::before { content: "✓"; position: absolute; left: 0; color: var(--aai-green); font-weight: 800; }
.aai-fine { font-size: 12.5px; color: var(--aai-muted); }
.aai-err { color: var(--aai-red); font-size: 14px; }
.aai-note { border-radius: 12px; padding: 14px 16px; background: #fff7f2; border: 1px solid #ffd7c4; }
.aai-note-wait { background: var(--aai-soft); border-color: var(--aai-line); }

/* studio */
.aai-studio { display: grid; gap: 18px; }
.aai-studio-top { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
.aai-studio-top h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; }
.aai-credits { display: flex; align-items: center; gap: 14px; }
.aai-credits b { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--aai-navy); }
.aai-meter { width: 180px; height: 10px; border-radius: 99px; background: var(--aai-soft); overflow: hidden; }
.aai-meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--aai-green), var(--aai-blue)); transition: width .5s; }
.aai-small { font-size: 12.5px; color: var(--aai-muted); }
.aai-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 20px; align-items: start; }
.aai-form { display: grid; gap: 14px; }
.aai-field { display: grid; gap: 6px; }
.aai-field label { font-weight: 700; font-size: 14px; }
.aai-field input[type=text], .aai-field textarea, .aai-field select { width: 100%; border: 1.5px solid var(--aai-line); border-radius: 10px; padding: 10px 12px; font: inherit; color: var(--aai-ink); background: #fff; transition: border-color .2s, box-shadow .2s; }
.aai-field textarea { min-height: 150px; resize: vertical; }
.aai-field input:focus, .aai-field textarea:focus, .aai-field select:focus { border-color: var(--aai-blue); box-shadow: 0 0 0 3px rgba(43,95,216,.12); outline: none; }
.aai-wc.is-over { color: var(--aai-red); font-weight: 700; }
.aai-drop { border: 1.5px dashed var(--aai-line); border-radius: 10px; padding: 12px; font-size: 13.5px; color: var(--aai-muted); display: grid; gap: 6px; }
.aai-msg { border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.aai-msg.is-err { background: #fdecea; color: #8a1f17; }
.aai-msg.is-ok { background: #e8f7ef; color: #0d6b3d; }
.aai-msg.is-info { background: var(--aai-soft); color: var(--aai-ink); }

.aai-stage { position: relative; border: 1.5px solid var(--aai-line); border-radius: 14px; background: #fbfcff; min-height: 340px; display: grid; place-items: center; overflow: hidden; }
.aai-stage-empty { color: #8a91b3; text-align: center; padding: 24px; }
.aai-progress { width: min(420px, 86%); display: grid; gap: 10px; }
.aai-progress .aai-track { height: 10px; }
.aai-progress .aai-track i { transition: width .6s ease; }
.aai-steps { display: flex; justify-content: space-between; gap: 6px; font-size: 12px; color: #8a91b3; }
.aai-steps span.is-on { color: var(--aai-navy); font-weight: 700; }
.aai-steps span.is-done { color: var(--aai-green); }
.aai-figure { position: relative; width: 100%; line-height: 0; animation: aai-in .6s ease; }
@keyframes aai-in { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: none; } }
.aai-figure img { width: 100%; height: auto; display: block; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.aai-label { position: absolute; transform: translate(-50%, -50%); line-height: 1.15; white-space: nowrap; font: 700 clamp(10px, 1.45vw, 14px)/1.15 Helvetica, Arial, sans-serif; color: #141a3a; background: rgba(255,255,255,.82); border: 1.5px solid transparent; border-radius: 6px; padding: 2px 6px; cursor: pointer; }
.aai-label:hover { border-color: rgba(43,95,216,.5); }
.aai-label.is-sel { border-color: var(--aai-orange); border-style: dashed; }
.aai-label input { font: inherit; border: 0; padding: 0; margin: 0; width: 14ch; background: transparent; color: inherit; outline: none; }
.aai-lock { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--aai-muted); margin-top: 8px; }
.aai-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.aai-tools select { border: 1.5px solid var(--aai-line); border-radius: 9px; padding: 8px 10px; font: inherit; background: #fff; color: var(--aai-ink); }
.aai-panel { border: 1px solid var(--aai-line); border-radius: 12px; padding: 14px; display: grid; gap: 10px; background: #fff; margin-top: 12px; }
.aai-panel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.aai-projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.aai-proj { border: 1px solid var(--aai-line); border-radius: 12px; overflow: hidden; background: #fff; cursor: pointer; text-align: left; padding: 0; font: inherit; color: inherit; transition: transform .15s, box-shadow .2s; }
.aai-proj:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(27,20,145,.12); }
.aai-proj img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--aai-soft); }
.aai-proj span { display: block; padding: 8px 10px; font-size: 13px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.aai-account { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-size: 13.5px; color: var(--aai-muted); border-top: 1px solid var(--aai-line); padding-top: 14px; }
.aai-confirm { display: inline-flex; gap: 8px; align-items: center; }

/* header button */
.aai-header-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; margin: 0 14px 0 6px; padding: 10px 18px 10px 14px; border-radius: 99px; color: #fff !important; text-decoration: none !important; font-weight: 800; font-size: 14px; line-height: 1; letter-spacing: .06em; white-space: nowrap; background: linear-gradient(110deg, #1b1491, #2b5fd8 55%, #6a3df0); box-shadow: 0 6px 18px rgba(43,95,216,.35); transition: transform .2s, box-shadow .2s; }
.aai-header-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(43,95,216,.45); }
.aai-header-btn svg { width: 16px; height: 16px; fill: #fff; }
.aai-header-btn::after { content: ""; position: absolute; inset: -3px; border-radius: 99px; border: 2px solid rgba(43,95,216,.35); animation: aai-halo 2.6s ease-out infinite; pointer-events: none; }
@keyframes aai-halo { from { opacity: 1; transform: scale(.96); } to { opacity: 0; transform: scale(1.18); } }

@media (max-width: 820px) {
	.aai-offer, .aai-grid, .aai-demo-body { grid-template-columns: 1fr; }
	.aai-feat, .aai-panel-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	.aai *, .aai-header-btn::after { animation: none !important; transition: none !important; }
}

/* Compact header button when the header row is tight: a round icon like the cart/search icons. */
.aai-header-btn { flex: 0 0 auto !important; box-sizing: border-box; }
.aai-header-btn.is-compact { width: 44px !important; min-width: 44px; height: 44px !important; padding: 0 !important; justify-content: center; margin: 0 8px 0 4px; letter-spacing: 0; }
.aai-header-btn.is-compact span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.aai-header-btn.is-compact svg { width: 18px; height: 18px; }
