/* Styles theme.json can't express. Values mirror the original landing page. */

@keyframes atc-fade-up {
	from { opacity: 0; transform: translateY(14px); }
	to { opacity: 1; transform: translateY(0); }
}
.atc-fade-up { animation: atc-fade-up .6s ease both; }
@media (prefers-reduced-motion: reduce) {
	.atc-fade-up { animation: none; }
}

body { overflow-x: hidden; min-width: 320px; }

/* Keep the footer at the bottom of the window on short pages (e.g. Registro). */
.wp-site-blocks {
	display: flex;
	flex-direction: column;
	min-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px));
	min-height: calc(100dvh - var(--wp-admin--admin-bar--height, 0px));
}
.wp-site-blocks > footer { margin-top: auto; }
.atc-balance { text-wrap: balance; }
.atc-max-620 { max-width: 620px; margin-left: auto !important; margin-right: auto !important; }

/* Eyebrow pill */
.atc-pill {
	display: table;
	margin-left: auto !important;
	margin-right: auto !important;
	border-radius: 999px;
	padding: 6px 14px !important;
	line-height: 1.5;
}

/* Logos */
.atc-header .wp-block-site-logo img { height: 32px; width: auto; }
.atc-footer .wp-block-site-logo img { height: 24px; width: auto; }

/* Footer links */
.atc-foot-nav a { color: var(--wp--preset--color--muted); }
.atc-foot-nav a:hover { color: var(--wp--preset--color--primary); }
.atc-footer p { margin: 0; }

/* Browser frame around the product screenshot */
.atc-browser {
	border-radius: 20px;
	overflow: hidden;
	border: 1px solid var(--wp--preset--color--border);
	box-shadow: 0 30px 60px -20px oklch(0.145 0 0 / 0.25);
}
.atc-browser-bar {
	height: 34px;
	gap: 6px !important;
	padding: 0 14px;
	background: var(--wp--preset--color--surface);
	border-bottom: 1px solid var(--wp--preset--color--border);
}
.atc-browser-bar::before {
	content: "";
	flex: none;
	width: 9px;
	height: 9px;
	margin-right: 31px; /* room for the two shadow dots + gap before the URL */
	border-radius: 999px;
	background: oklch(0.85 0.05 30);
	box-shadow: 15px 0 0 oklch(0.85 0.08 90), 30px 0 0 oklch(0.8 0.1 155);
}
.atc-browser-url {
	margin: 0 !important;
	min-width: 0;
	padding: 3px 10px;
	background: #fff;
	border-radius: 6px;
	font-size: 11px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--wp--preset--color--subtle);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.atc-hero-shot { margin: 0 !important; }
/* Natural aspect ratio, so the whole screenshot is visible at every width. */
.atc-hero-shot img { display: block; width: 100%; height: auto; }

/* Benefit cards */
.atc-benefit-img { margin: 0 !important; }
.atc-benefit-img img,
.atc-img-placeholder {
	display: block;
	width: 100%;
	height: 210px;
	object-fit: cover;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 16px;
}
.atc-benefit-img img,
.atc-img-placeholder { box-sizing: border-box; }
.atc-img-placeholder {
	display: flex;
	flex-direction: column;
	gap: 10px;
	align-items: center;
	justify-content: center;
	padding: 16px;
	text-align: center;
	font-size: 13px;
	font-weight: 500;
	color: oklch(0.4 0 0);
	background: oklch(0.97 0 0);
	border: 1px dashed oklch(0.8 0 0);
}
.atc-img-placeholder svg { color: oklch(0.55 0 0); }
.atc-benefits h3 { margin-top: 0; margin-bottom: 0; }
.atc-benefits p { margin-bottom: 0; line-height: 1.6; }

/* Plans */
.atc-plans { align-items: stretch !important; }
.atc-plan {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	box-sizing: border-box;
	padding: 32px 28px 28px;
	background: #fff;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 20px;
}
.atc-plan.is-featured {
	border: 2px solid var(--wp--preset--color--primary);
	box-shadow: 0 30px 60px -24px oklch(0.5 0.134 242.749 / 0.35);
}
.atc-plan > * { margin: 0 !important; }
.atc-plan-badge {
	position: absolute;
	top: 0;
	left: 50%;
	transform: translate(-50%, -50%);
	padding: 5px 14px;
	border-radius: 999px;
	background: var(--wp--preset--color--primary);
	color: #fff;
	font-size: 12.5px;
	font-weight: 700;
	white-space: nowrap;
}
.atc-plan-name { font-size: 20px; }
.atc-plan.is-featured .atc-plan-name { color: var(--wp--preset--color--primary-dark); }
.atc-plan-price {
	margin-top: 10px !important;
	font-size: 40px;
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.1;
}
.atc-plan-period { font-size: 16px; font-weight: 500; letter-spacing: 0; color: var(--wp--preset--color--subtle); }

/* "?" tooltips on list items (see functions.php). */
.atc-tip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 17px;
	height: 17px;
	margin-left: 6px;
	padding: 0;
	vertical-align: -2px;
	border: 1px solid oklch(0.8 0 0);
	border-radius: 999px;
	background: #fff;
	color: var(--wp--preset--color--subtle);
	font: 700 10.5px/1 var(--wp--preset--font-family--poppins);
	cursor: help;
}
.atc-tip:hover,
.atc-tip:focus-visible,
.atc-tip.is-open { border-color: var(--wp--preset--color--primary); color: var(--wp--preset--color--primary); }
.atc-tip:focus-visible { outline: 3px solid oklch(0.5 0.134 242.749 / 0.35); outline-offset: 1px; }
.atc-tip-text {
	position: absolute;
	z-index: 20;
	left: 28px;
	right: 0;
	bottom: calc(100% + 10px);
	width: max-content;
	max-width: min(280px, calc(100% - 28px));
	padding: 10px 12px;
	border-radius: 10px;
	background: var(--wp--preset--color--ink);
	color: #fff;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.45;
	box-shadow: 0 12px 30px -10px oklch(0.145 0 0 / 0.45);
	opacity: 0;
	visibility: hidden;
	transform: translateY(4px);
	transition: opacity .15s ease, transform .15s ease, visibility .15s;
	pointer-events: none;
}
.atc-tip-text::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 18px;
	border: 6px solid transparent;
	border-top-color: var(--wp--preset--color--ink);
}
.atc-tip:hover + .atc-tip-text,
.atc-tip:focus-visible + .atc-tip-text,
.atc-tip.is-open + .atc-tip-text { opacity: 1; visibility: visible; transform: none; }

/* Editor: mark items that have a tooltip. The editor wraps the item text in a block-level
   element, so lay the item out as a row to keep the "?" next to the text. */
.has-atc-tip-editor {
	display: flex;
	align-items: center;
}
.has-atc-tip-editor::after {
	flex: none;
	content: "?";
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 17px;
	height: 17px;
	margin-left: 6px;
	vertical-align: -2px;
	border: 1px solid oklch(0.8 0 0);
	border-radius: 999px;
	color: var(--wp--preset--color--subtle);
	font-size: 10.5px;
	font-weight: 700;
	line-height: 1;
}

/* The editor gives every block position:relative; keep the badge on the card's top edge there too. */
.editor-styles-wrapper .atc-plan-badge.atc-plan-badge {
	position: absolute !important;
	width: max-content !important;
	max-width: none;
}
.atc-plan-desc { margin-top: 10px !important; line-height: 1.55; }
.atc-plan-features {
	list-style: none;
	padding: 20px 0 0 !important;
	margin-top: 20px !important;
	border-top: 1px solid var(--wp--preset--color--border);
	display: flex;
	flex-direction: column;
	gap: 12px;
	font-size: 15px;
	line-height: 1.5;
	color: var(--wp--preset--color--muted);
}
.atc-plan-features li { position: relative; padding-left: 28px; margin: 0; }
.atc-plan-features li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 2px;
	width: 18px;
	height: 18px;
	border-radius: 999px;
	background: var(--wp--preset--color--primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300518f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.atc-plan-cta { margin-top: auto !important; padding-top: 28px; }
.atc-plan .wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--primary);
	border: 2px solid var(--wp--preset--color--primary);
	padding: 13px 24px;
}
.atc-plan .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--wp--preset--color--primary-tint); }
.atc-plan.is-featured .wp-block-button__link { box-shadow: 0 8px 20px -6px oklch(0.5 0.134 242.749 / 0.5); }

@media (max-width: 760px) {
	.atc-plans .is-featured-column { order: -1; }

	.atc-plans { gap: 36px !important; }
	/* Global styles set the root padding on body, so override it there (not :root). */
	body {
		--wp--style--root--padding-left: 20px;
		--wp--style--root--padding-right: 20px;
	}

	/* One vertical rhythm for sections: 72px between sections, tighter inside the hero. */
	.atc-hero { padding-top: 48px !important; }
	.atc-hero h1 { margin-top: 20px !important; margin-bottom: 16px !important; }
	.atc-hero .has-large-font-size { font-size: var(--wp--preset--font-size--medium) !important; text-wrap: pretty; }
	.atc-plans-section > p.has-text-align-center,
	.atc-cta-box p.has-text-align-center,
	.atc-benefits p { text-wrap: balance; }
	.atc-hero .wp-block-group:has(> .has-large-font-size) { margin-bottom: 28px !important; }
	.wp-block-group:has(> .atc-browser) { padding-top: 48px !important; }
	.wp-block-group:has(> .atc-benefits),
	.atc-plans-section { padding-top: 72px !important; }
	.wp-block-group:has(> .atc-benefits) > * + * { margin-block-start: 32px !important; }
	.atc-plans-section > p.has-text-align-center { margin-bottom: 32px !important; }
	.wp-block-group:has(> .atc-cta-box) { padding-top: 72px !important; padding-bottom: 72px !important; }

	/* Benefits: centered like the section title; more space between items than inside them. */
	.atc-benefits { gap: 48px !important; text-align: center; }
	.atc-benefits > .wp-block-column > * + * { margin-block-start: 16px !important; }
	.atc-benefit-img img,
	.atc-img-placeholder { height: auto; aspect-ratio: 16 / 9; }

	.atc-plan { padding: 32px 24px 24px; }
	.atc-plan-price { font-size: 36px; }
	.atc-plan-cta { padding-top: 24px; }

	.atc-cta-box { padding: 44px 24px !important; }

	/* Footer: stacked and centered. */
	.atc-footer > .wp-block-group { flex-direction: column; align-items: center; gap: 14px; }
	.atc-footer > .wp-block-group > .wp-block-group { justify-content: center; row-gap: 8px; }
	.atc-foot-nav .wp-block-navigation__container { justify-content: center; }
}

/* Narrow screens: stack the waitlist form with a full-width button. */
@media (max-width: 560px) {
	.atc-waitlist__button { flex: 1 1 100%; }
}
