/* AstriOnLine — in-depth tarot reading. Palette follows the astrionline theme (as the birth chart report). */
.aot {
	--aot-ink: #f6f0e4;
	--aot-muted: #c9c4d2;
	--aot-dim: #8f8aa3;
	--aot-gold: #d3a967;
	--aot-gold-bright: #efcf91;
	--aot-line: rgba(211, 169, 103, .32);
	--aot-card: rgba(19, 20, 58, .72);
	--aot-serif: Georgia, "Times New Roman", serif;
	color: var(--aot-ink);
	max-width: 1080px;
	margin: 0 auto;
}

.aot *, .aot *::before, .aot *::after { box-sizing: border-box; }
.aot [hidden] { display: none !important; }

.aot-form, .aot-box, .aot-toc {
	border: 1px solid var(--aot-line);
	border-radius: 8px;
	background: var(--aot-card);
	padding: clamp(20px, 4vw, 36px);
	margin: 0 0 28px;
}

.aot .aot-title, .aot h1, .aot h2, .aot h3 {
	color: var(--aot-ink);
	font-family: var(--aot-serif);
	font-weight: 400;
	line-height: 1.25;
	margin: 0 0 12px;
}

.aot .aot-title { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.aot .aot-subtitle { font-size: clamp(1.25rem, 2.4vw, 1.55rem); margin-top: 26px; }
.aot p { color: var(--aot-muted); line-height: 1.7; }

.aot-kicker {
	color: var(--aot-gold-bright) !important;
	font-size: .75rem;
	font-weight: 650;
	letter-spacing: .16em;
	text-transform: uppercase;
	margin: 0 0 6px;
}

/* Form */
.aot-form { max-width: 860px; margin-left: auto; margin-right: auto; }
.aot-form--inner { margin: 22px 0 8px; background: rgba(7, 9, 25, .35); }
.aot-plans { border: 0; margin: 18px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.aot-plan { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 16px 18px; border: 1px solid var(--aot-line); border-radius: 8px; background: rgba(7, 9, 25, .45); cursor: pointer; }
.aot-plan:has(input:checked) { border-color: var(--aot-gold-bright); background: linear-gradient(135deg, rgba(140, 107, 174, .28), rgba(19, 20, 58, .7)); box-shadow: 0 0 0 1px var(--aot-gold) inset; }
.aot-plan input { accent-color: var(--aot-gold); width: 18px; height: 18px; margin: 0; }
.aot-plan__body { display: grid; gap: 3px; }
.aot-plan__body strong { color: var(--aot-ink); font-family: var(--aot-serif); font-weight: 400; font-size: 1.12rem; }
.aot-plan__body > span { color: var(--aot-dim); font-size: .86rem; line-height: 1.4; }
.aot-plan__price { color: var(--aot-gold-bright); font-family: var(--aot-serif); font-size: 1.3rem; white-space: nowrap; }
.aot-badge { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 4px; background: linear-gradient(135deg, #efcf91, #bd8d4e); color: #0b0b16; font-family: system-ui, sans-serif; font-size: .66rem; font-style: normal; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; vertical-align: middle; }

.aot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; margin: 18px 0; }
.aot-field { display: flex; flex-direction: column; gap: 6px; }
.aot-field--wide { grid-column: 1 / -1; }
.aot-field > span { color: var(--aot-gold-bright); font-size: .85rem; letter-spacing: .04em; }
.aot-field small, .aot-help { color: var(--aot-dim) !important; font-size: .82rem; margin: 0; }
.aot input[type="text"], .aot input[type="email"], .aot select, .aot textarea {
	width: 100%;
	min-height: 46px;
	padding: 10px 12px;
	border: 1px solid var(--aot-line);
	border-radius: 4px;
	background: rgba(7, 9, 25, .7);
	color: var(--aot-ink);
	font: inherit;
	color-scheme: dark;
}
.aot textarea { resize: vertical; min-height: 92px; line-height: 1.5; }
.aot input:focus-visible, .aot select:focus-visible, .aot textarea:focus-visible, .aot button:focus-visible, .aot a:focus-visible { outline: 2px solid var(--aot-gold-bright); outline-offset: 2px; }
.aot-check { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; color: var(--aot-muted); line-height: 1.5; font-size: .92rem; }
.aot-check input { margin-top: 4px; accent-color: var(--aot-gold); }
.aot-check a, .aot-help a { color: var(--aot-gold-bright); }

.aot-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 12px 26px;
	border: 1px solid var(--aot-gold);
	border-radius: 4px;
	background: linear-gradient(135deg, #efcf91, #bd8d4e);
	color: #0b0b16 !important;
	font: inherit;
	font-weight: 650;
	text-decoration: none !important;
	cursor: pointer;
}
.aot-button--wide { width: 100%; margin: 12px 0; }
.aot-button:disabled { opacity: .6; cursor: progress; }
.aot-button--ghost { background: transparent; color: var(--aot-gold-bright) !important; min-height: 42px; padding: 8px 18px; }
.aot-error { color: #f3a28a !important; margin: 10px 0; }
.aot-notice { max-width: 860px; margin: 0 auto 20px; border-left: 3px solid var(--aot-gold); padding: 8px 14px; background: rgba(211, 169, 103, .08); }

/* Waiting / writing */
.aot-wait { max-width: 760px; margin-left: auto; margin-right: auto; text-align: center; }
.aot-writing { max-width: 980px; margin-left: auto; margin-right: auto; }
.aot-spinner { width: 44px; height: 44px; margin: 10px auto 14px; border-radius: 50%; border: 3px solid var(--aot-line); border-top-color: var(--aot-gold-bright); animation: aot-spin 1.1s linear infinite; }
@keyframes aot-spin { to { transform: rotate(360deg); } }
.aot-progress-text { margin: 16px 0 6px; color: var(--aot-ink) !important; }
.aot-bar { display: block; height: 10px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; margin-bottom: 20px; }
.aot-bar > span { display: block; height: 100%; background: linear-gradient(90deg, #bd8d4e, #efcf91); transition: width .6s ease; }
.aot-writing .aot-card { animation: aot-reveal .7s ease both; }
.aot-writing .aot-slot--2 { animation-name: aot-reveal-cross; }
@keyframes aot-reveal { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes aot-reveal-cross { from { opacity: 0; } to { opacity: 1; } }
.aot-writing .aot-slot--2 { animation-delay: .15s; }
.aot-writing .aot-slot--3 { animation-delay: .3s; }
.aot-writing .aot-slot--4 { animation-delay: .45s; }
.aot-writing .aot-slot--5 { animation-delay: .6s; }
.aot-writing .aot-slot--6 { animation-delay: .75s; }
.aot-writing .aot-slot--7 { animation-delay: .9s; }
.aot-writing .aot-slot--8 { animation-delay: 1.05s; }
.aot-writing .aot-slot--9 { animation-delay: 1.2s; }
.aot-writing .aot-slot--10 { animation-delay: 1.35s; }

/* Question */
.aot-question { margin: 18px 0 22px; padding: 18px 22px; border-left: 3px solid var(--aot-gold); background: rgba(7, 9, 25, .4); border-radius: 0 6px 6px 0; }
.aot-question__text { margin: 4px 0 6px; color: var(--aot-ink) !important; font-family: var(--aot-serif); font-style: italic; font-size: clamp(1.1rem, 2.2vw, 1.35rem); line-height: 1.5; }

/* The Celtic cross: cross on the left, staff (7–10, smaller) on the right. */
.aot-spread { display: flex; flex-wrap: wrap; gap: 24px 36px; align-items: center; justify-content: center; container-type: inline-size; }
.aot-cross {
	--w: clamp(54px, 15vw, 104px);
	--h: calc(var(--w) * 1.7222);
	--g: calc(var(--w) * .24);
	display: grid;
	grid-template-columns: var(--w) var(--w) var(--w) calc(var(--w) * .75);
	grid-template-rows: repeat(12, calc(var(--h) / 4));
	column-gap: var(--g);
	row-gap: calc(var(--g) / 3);
	flex: 0 0 auto;
}
.aot-card { position: relative; margin: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.aot-card img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 6px; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .45)); }
.aot-card.is-reversed img { transform: rotate(180deg); }
.aot-card__n { position: absolute; top: -8px; left: -8px; z-index: 3; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #efcf91, #bd8d4e); color: #0b0b16; font: 700 .74rem/1 system-ui, sans-serif; box-shadow: 0 2px 6px rgba(0, 0, 0, .4); }
.aot-slot--5 { grid-column: 2; grid-row: 1 / 5; }
.aot-slot--4 { grid-column: 1; grid-row: 5 / 9; }
.aot-slot--1 { grid-column: 2; grid-row: 5 / 9; }
.aot-slot--2 { grid-column: 2; grid-row: 5 / 9; z-index: 2; transform: rotate(90deg) scale(.82); }
.aot-slot--2 .aot-card__n { transform: rotate(-90deg); top: auto; bottom: -8px; }
.aot-slot--6 { grid-column: 3; grid-row: 5 / 9; }
.aot-slot--3 { grid-column: 2; grid-row: 9 / 13; }
.aot-slot--10 { grid-column: 4; grid-row: 1 / 4; }
.aot-slot--9 { grid-column: 4; grid-row: 4 / 7; }
.aot-slot--8 { grid-column: 4; grid-row: 7 / 10; }
.aot-slot--7 { grid-column: 4; grid-row: 10 / 13; }
.aot-legend { flex: 1 1 280px; max-width: 420px; list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.aot-legend li { display: grid; grid-template-columns: 26px 1fr; column-gap: 10px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); color: var(--aot-ink); font-size: .95rem; line-height: 1.35; }
.aot-legend__n { grid-row: span 2; color: var(--aot-gold-bright); font-family: var(--aot-serif); font-size: 1.1rem; }
.aot-legend__pos { color: var(--aot-dim); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; }
.aot-legend strong { font-weight: 600; }
.aot-legend em, .aot-card-text__pos em { color: #f3a28a; font-size: .85em; }
.aot-legend em { grid-column: 2; }

/* Reading */
.aot-reading { max-width: 980px; margin: 0 auto; }
.aot-reading__header h1 { font-size: clamp(1.9rem, 4.4vw, 2.9rem); margin: 0 0 16px; }
.aot-box--spread { padding-top: 24px; }
.aot-box--spread .aot-subtitle { margin-top: 0; text-align: center; }
.aot .aot-toc { max-width: 760px; margin: 0 auto 10px; padding: 22px 26px; }
.aot .aot-toc h2 { font-size: 1.3rem; }
.aot .aot-toc ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 28px; margin: 0; padding-left: 1.4em; color: var(--aot-muted); font-size: .95rem; line-height: 1.45; }
.aot .aot-toc a { color: var(--aot-gold-bright); text-decoration: none; }
.aot .aot-toc a:hover { text-decoration: underline; }

.aot-chapter { max-width: 860px; margin: 0 auto; padding: 26px 0 8px; }
.aot-chapter__head { margin-bottom: 18px; }
.aot-chapter__number { color: var(--aot-gold) !important; font-size: .74rem !important; font-weight: 650; letter-spacing: .18em; text-transform: uppercase; margin: 0 0 4px !important; }
.aot .aot-chapter h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); }
.aot-chapter p { font-size: 1.02rem; line-height: 1.85; }
.aot .aot-chapter h3 { color: var(--aot-gold-bright); font-size: 1.28rem; margin: 6px 0 10px; }
.aot-lead { color: var(--aot-ink) !important; font-family: var(--aot-serif); font-size: clamp(1.12rem, 2.2vw, 1.3rem) !important; line-height: 1.75 !important; margin: 0 0 22px; }
.aot-lead::first-letter { float: left; font-size: 3.4em; line-height: .9; padding: 6px 10px 0 0; color: var(--aot-gold-bright); }
.aot-card-text { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 26px; align-items: start; margin: 26px 0; }
.aot-card--side { height: auto; }
.aot-card--side img { height: auto; }
.aot-card-text__pos { margin: 0 0 4px !important; color: var(--aot-dim) !important; font-size: .85rem !important; letter-spacing: .04em; }
.aot-card-text__pos strong { color: var(--aot-ink); font-weight: 600; }
.aot-connection, .aot-advice { clear: both; margin: 26px 0 6px; padding: 22px 24px; border: 1px solid rgba(211, 169, 103, .35); border-radius: 8px; background: linear-gradient(135deg, rgba(140, 107, 174, .2), rgba(19, 20, 58, .6)); }
.aot .aot-connection h3, .aot .aot-advice h3 { margin: 0 0 10px; font-size: 1.1rem; }
.aot-connection p:last-child { margin-bottom: 0; }
.aot-advice ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; counter-reset: tip; }
.aot-advice li { counter-increment: tip; position: relative; padding: 14px 14px 14px 48px; border-radius: 6px; background: rgba(7, 9, 25, .45); color: var(--aot-muted); font-size: .92rem; line-height: 1.55; }
.aot-advice li::before { content: counter(tip); position: absolute; left: 14px; top: 13px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #efcf91, #bd8d4e); color: #0b0b16; font-size: .78rem; font-weight: 700; }
.aot-closing { margin-top: 24px; color: var(--aot-ink) !important; font-family: var(--aot-serif); font-size: 1.1rem !important; }
.aot blockquote.aot-quote { clear: both; margin: 30px auto 34px; padding: 0 12px; max-width: 640px; text-align: center; border: 0; background: none; box-shadow: none; }
.aot blockquote.aot-quote::before { content: "“"; display: block; color: var(--aot-gold); font-family: var(--aot-serif); font-size: 4rem; line-height: .7; margin-bottom: 10px; }
.aot blockquote.aot-quote::after { content: ""; display: block; width: 72px; height: 1px; margin: 18px auto 0; background: var(--aot-gold); }
.aot .aot-quote p { margin: 0; color: var(--aot-gold-bright); font-family: var(--aot-serif); font-style: italic; font-size: clamp(1.25rem, 2.6vw, 1.6rem); line-height: 1.5; }
.aot-chips { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.aot-chips li { padding: 5px 12px; border-radius: 4px; background: rgba(211, 169, 103, .12); color: var(--aot-muted); font-size: .82rem; }
.aot-chips strong { color: var(--aot-gold-bright); }
.aot-divider { display: flex; align-items: center; gap: 16px; max-width: 860px; margin: 26px auto 8px; color: var(--aot-gold); }
.aot-divider::before, .aot-divider::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--aot-line), transparent); }
.aot-disclaimer { max-width: 860px; margin: 26px auto 0; color: var(--aot-dim) !important; font-size: .85rem; }

.aot-strip { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; max-width: 980px; margin: 0 auto 24px; padding: 16px 22px; border: 1px solid var(--aot-line); border-radius: 8px; background: linear-gradient(90deg, rgba(140, 107, 174, .25), rgba(19, 20, 58, .75)); }
.aot-strip p { margin: 0; color: var(--aot-ink); }

/* Pack page */
.aot-pass { max-width: 860px; margin-left: auto; margin-right: auto; }
.aot-pass__status { color: var(--aot-ink) !important; font-size: 1.05rem; }
.aot-credits { list-style: none; display: flex; gap: 10px; margin: 6px 0 0; padding: 0; }
.aot-credits li { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #efcf91, #bd8d4e); color: #0b0b16; font-size: 1rem; }
.aot-credits li.is-used { background: rgba(255, 255, 255, .06); color: var(--aot-dim); }
.aot-list { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.aot-list li { display: grid; grid-template-columns: auto 1fr auto auto; gap: 8px 16px; align-items: center; padding: 12px 14px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 6px; background: rgba(7, 9, 25, .4); }
.aot-list__date { color: var(--aot-dim); font-size: .85rem; white-space: nowrap; }
.aot-list__q { color: var(--aot-ink); font-family: var(--aot-serif); font-style: italic; }
.aot-list__status { color: var(--aot-gold-bright); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; }

/* Banner */
.aot.aot-cta { display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: center; margin: 32px auto; padding: clamp(22px, 4vw, 34px); border: 1px solid var(--aot-line); border-radius: 8px; background: linear-gradient(90deg, rgba(10, 11, 32, .97) 0%, rgba(10, 11, 32, .9) 50%, rgba(10, 11, 32, .45) 100%), var(--aot-hero) right center / cover no-repeat, #13143a; }
.aot-cta__copy { flex: 3 1 340px; min-width: 0; }
.aot .aot-cta h2 { font-size: clamp(1.35rem, 2.6vw, 1.8rem); margin: 4px 0 10px; }
.aot-cta p:last-child { margin-bottom: 0; }
.aot-cta__action { flex: 1 1 220px; display: grid; gap: 10px; justify-items: center; text-align: center; }
.aot-cta__price { color: var(--aot-ink); font-family: var(--aot-serif); font-size: 1.25rem; }
.aot-tool-banner { margin-top: 10px; margin-bottom: 10px; }

/* Theme launch template: the personal page has no hero; the sales page shows its hero buttons. */
.ao-page-tarocchi-lettura main { padding-top: 120px; }
.ao-internal-page .inner-hero.tarocchi-approfonditi-hero .hero-actions { display: flex !important; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.tarot-order-section { padding-bottom: 80px; }

@media (max-width: 720px) {
	.aot-grid { grid-template-columns: 1fr; }
	.aot .aot-toc ol { grid-template-columns: 1fr; }
	.aot-card-text { grid-template-columns: 76px minmax(0, 1fr); gap: 16px; }
	.aot-list li { grid-template-columns: 1fr auto; }
	.aot-list__q { grid-column: 1 / -1; }
	.aot.aot-cta { background: linear-gradient(180deg, rgba(10, 11, 32, .95), rgba(10, 11, 32, .84)), var(--aot-hero) 70% center / cover no-repeat, #13143a; }
	.aot-spread { gap: 22px; }
	.aot-legend { max-width: none; }
}

@media (max-width: 520px) {
	.aot-button { width: 100%; }
	.aot-plan { grid-template-columns: auto 1fr; }
	.aot-plan__price { grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) {
	.aot-spinner, .aot-writing .aot-card { animation: none; }
}

/* Print / Save as PDF: dark ink on white, no forms or links to other pages. */
@media print {
	.aot { --aot-ink: #111; --aot-muted: #222; --aot-dim: #555; --aot-gold: #8a6326; --aot-gold-bright: #6d4c17; --aot-line: #b9a47f; --aot-card: #fff; color: #111; }
	body, .site, main { background: #fff !important; }
	header.site-header, footer, .site-footer, nav:not(.aot-toc), .aot-button, .aot-noprint, .ao-partner-banner, .aot-cta { display: none !important; }
	.aot-box, .aot-question { background: #fff !important; }
	.aot-box--spread { break-inside: avoid; border: 0; }
	.aot-chapter { break-before: page; }
	.aot-card-text, .aot-connection, .aot-advice, .aot-quote { break-inside: avoid; }
	.aot-connection, .aot-advice, .aot-advice li { background: #fff !important; }
	.aot-card img { filter: none; }
	.aot-divider { display: none; }
}
