/**
 * Promos route — handoff section I.
 *
 * The starburst is the page's one real trick and it appears three times, so it
 * is a variable rather than three copies of a gradient nobody would recognise
 * as the same thing on sight: --burst, in tokens.css, shared with the stickers
 * page and the homepage.
 */

/*
 * Full-bleed, like every other route built from a mock. .as-main is 860px wide
 * with its own inline padding by default — fine for a text page, wrong for one
 * whose hero is a starburst that has to reach both edges. Releasing it here and
 * putting the gutter on the wrap is the pattern route-home, route-info,
 * route-contact and route-checkout all use.
 *
 * The first version of this file skipped that line and then fought .as-section
 * with !important to get the padding back — which produced a 732px content
 * column inside a 1545px window and a hero with rounded corners floating in
 * the middle of the page.
 */
.as-main.as-route-promos { max-width: none; padding-inline: 0; }

/* 1160, the mock's figure — the same width as the contact and checkout routes. */
/* -- Hero --------------------------------------------------------------- */
.as-route-promos .as-promo-hero {
	background: var(--burst);
	padding: 72px var(--gutter);
}
.as-promo-hero__card {
	position: relative;
	max-width: 900px; margin: 0 auto;
	display: flex; flex-direction: column; gap: var(--space-3); align-items: center;
	padding: 36px 52px; border-radius: var(--radius-xl);
	background: var(--color-surface); box-shadow: var(--shadow-xl);
	transform: rotate(-1deg);
	text-align: center;
}
.as-promo-hero__kicker {
	margin: 0;
	color: var(--atomic-blue);
}
/*
 * 84px is the mock's figure and it is the whole point of the hero, but it is
 * also 19 characters that must not run off a phone. clamp() keeps the top end
 * exact and lets the bottom end be whatever fits.
 */
.as-promo-hero__title {
	margin: 0;
	font-size: clamp(38px, 8.5vw, 84px); line-height: 1; font-weight: 800;
	letter-spacing: -0.03em; text-transform: uppercase;
}
.as-promo-hero__sub {
	margin: 0; max-width: 54ch;
	font-size: var(--text-body); line-height: var(--leading-body); color: var(--color-text-muted);
}
.as-promo-hero__badge {
	position: absolute; top: -18px; right: -16px;
	padding: 11px 19px; border-radius: var(--radius-pill);
	background: var(--atomic-dark); color: var(--color-text-invert);
	font-size: var(--text-body); font-weight: 800;
	transform: rotate(5deg); box-shadow: 0 6px 14px rgba(36, 41, 56, 0.35);
	pointer-events: none; /* it overlaps the card's corner. */
}

/* ── Section heads ────────────────────────────────────────────────────────── */
.as-promo__head {
	display: flex; align-items: baseline; justify-content: space-between;
	gap: var(--space-4); flex-wrap: wrap; margin-bottom: 22px;
}
.as-promo__head p { margin: 0; font-size: var(--text-sm); color: var(--color-text-muted); }

/* ── Bundle cards ─────────────────────────────────────────────────────────── */
.as-route-promos .as-promo-bundles { padding: 56px 0 20px; }
/*
 * minmax(0, 1fr), not 1fr. A bare 1fr is minmax(auto, 1fr) and auto means "no
 * smaller than the content", so a grid item that reports a large intrinsic
 * width drags its column out with it. With a product photo missing — which is
 * every pre-2026 upload on this machine — the slot's aspect-ratio box had no
 * width to work from, resolved to something enormous, and the three columns
 * came out 3023px / 3023px / 197px against a 732px wrap. Capping the minimum at
 * zero lets the column decide the width and the content fit inside it.
 */
.as-promo__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-7); }

/*
 * Tilted, and the tilt is per-card — passed in as --tilt so the angles stay
 * with the content they belong to instead of becoming three nth-child rules
 * that break the moment a bundle is unpublished.
 */
.as-promo-card {
	position: relative;
	display: flex; flex-direction: column;
	padding: 10px 10px 0; border: 1.5px solid rgba(45, 56, 75, 0.1); border-radius: var(--radius-lg);
	background: var(--color-surface); color: var(--color-text);
	box-shadow: var(--shadow-card);
	transform: rotate(var(--tilt, 0deg));
	transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.as-promo-card:hover {
	transform: rotate(0deg) translateY(-6px);
	box-shadow: var(--shadow-card-hover);
	color: var(--color-text);
}
.as-promo-card__shot { display: block; width: 100%; border-radius: var(--radius-md); overflow: hidden; background: var(--color-surface-alt); }
.as-promo-card__shot .as-slot { width: 100%; border-radius: var(--radius-md); }
.as-promo-card__deal {
	position: absolute; top: -12px; right: -8px;
	padding: 8px 15px; border-radius: var(--radius-pill);
	background: var(--atomic-dark); color: var(--color-text-invert);
	font-size: var(--text-sm); font-weight: 800;
	transform: rotate(3deg); box-shadow: 0 4px 10px rgba(36, 41, 56, 0.3);
}
.as-promo-card__body { display: flex; flex-direction: column; gap: var(--space-1-5); padding: 16px 12px 18px; }
.as-promo-card__name {
	display: flex; align-items: center; justify-content: space-between; gap: var(--space-2-5);
	font-size: var(--text-body); font-weight: 700;
}
.as-promo-card__go { flex: none; color: var(--atomic-blue); font-size: var(--text-body-lg); font-weight: 800; }
.as-promo-card__how { font-size: var(--text-xs); line-height: 1.55; color: var(--color-text-muted); }
.as-promo-card__facts { display: flex; flex-wrap: wrap; gap: var(--space-1-5); padding-top: 2px; }

/* ── Code cards ───────────────────────────────────────────────────────────── */
.as-route-promos .as-promo-codes { padding: 48px 0 56px; }
.as-promo__codes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-7); }
.as-promo-code {
	position: relative; overflow: hidden;
	display: flex; flex-direction: column; gap: var(--space-3-5);
	padding: 36px 40px; border-radius: var(--radius-xl);
}
.as-promo-code--dark { background: var(--atomic-dark); color: var(--color-text-invert); }
.as-promo-code--outline { border: 1.5px solid rgba(45, 56, 75, 0.14); }

/* The starburst again, as a disc bleeding off the card's top corner. */
.as-promo-code__burst {
	position: absolute; top: -40px; right: -40px;
	width: 160px; height: 160px; border-radius: 50%; opacity: 0.4;
	background: repeating-conic-gradient(from 0deg at 50% 50%, var(--atomic-blue) 0deg 12deg, transparent 12deg 24deg);
}
.as-promo-code__figure { margin: 0; font-size: var(--text-h1); font-weight: 800; line-height: 1; letter-spacing: var(--tracking-tight); }
.as-promo-code__figure--blue { color: var(--atomic-blue); }
.as-promo-code__what { margin: 0; font-size: var(--text-body); font-weight: 700; }
.as-promo-code--dark .as-promo-code__what { color: var(--atomic-blue); }
.as-promo-code__text { margin: 0; font-size: var(--text-sm); line-height: var(--leading-body); color: var(--color-text-muted); }
.as-promo-code--dark .as-promo-code__text { color: #c3c8d2; }
.as-promo-code__foot {
	margin: auto 0 0; padding-top: 14px; border-top: 1px solid rgba(45, 56, 75, 0.1);
	font-size: var(--text-xs); line-height: var(--leading-body); color: var(--color-text-muted);
}

/* Sits on the dark card, so the field is the dark input pair from tokens. */
.as-promo-code__form { position: relative; display: flex; gap: var(--space-2); margin-top: auto; padding-top: 6px; }
.as-promo-code__form input[type="email"] {
	flex: 1; min-width: 0; min-height: 46px; padding: 0 18px; box-sizing: border-box;
	border: 1px solid var(--atomic-input-border); border-radius: var(--radius-pill);
	background: var(--atomic-input-bg); color: var(--color-text-invert);
	font-family: inherit; font-size: var(--text-sm);
}
.as-promo-code__form input::placeholder { color: var(--color-placeholder); }
.as-promo-code__form .as-btn { flex: none; min-height: 46px; padding: 0 22px; font-size: var(--text-sm); }

/* The signed-in branch: a sentence where the form was. */
.as-promo-code__signedin {
	position: relative; margin: auto 0 0; padding-top: 10px;
	font-size: var(--text-sm); line-height: var(--leading-body); color: #c3c8d2;
}
.as-promo-code__signedin a { color: var(--atomic-blue); font-weight: 700; }
.as-promo-news__signedin { flex: 1; min-width: 320px; margin: 0; display: flex; }
.as-promo-news__signedin .as-btn { min-height: 52px; padding: 0 26px; font-size: var(--text-sm); }

/* ── Newsletter band ──────────────────────────────────────────────────────── */
.as-route-promos .as-promo-news { padding: 0 0 56px; }
/* The band and its card are the shared starburst recipe (primitives.css). */
.as-promo-news__band {
	flex-wrap: wrap;
	padding: 44px var(--space-12);
	box-sizing: border-box;
}
.as-promo-news__card {
	--tilt: -1deg;
	flex: 1; min-width: 300px;
	flex-direction: column; gap: var(--space-1);
	padding: 22px var(--space-7);
	box-shadow: var(--shadow-card);
}
.as-promo-news__title { margin: 0; font-size: var(--text-h3); font-weight: 800; }
.as-promo-news__text { margin: 0; font-size: var(--text-sm); font-weight: 500; color: var(--color-text-muted); }
.as-promo-news__form { flex: 1; min-width: 320px; display: flex; gap: var(--space-2-5); }
.as-promo-news__form input[type="email"] {
	flex: 1; min-width: 0; min-height: 52px; padding: 0 20px; box-sizing: border-box;
	border: 0; border-radius: var(--radius-pill);
	background: var(--color-surface); color: var(--color-text);
	font-family: inherit; font-size: var(--text-sm);
}
.as-promo-news__form input::placeholder { color: var(--color-placeholder); }
.as-promo-news__form .as-btn { flex: none; min-height: 52px; padding: 0 26px; font-size: var(--text-sm); }

/* ── Narrow ───────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
	.as-route-promos .as-promo-hero { padding: 48px 24px; }
	.as-promo__wrap { padding-inline: 24px; }
	.as-promo-hero__card { padding: 28px 24px; }
	.as-promo-hero__badge { top: -14px; right: -8px; font-size: var(--text-sm); padding: 9px 15px; }
	.as-route-promos .as-promo-bundles { padding: 40px 0 16px; }
	.as-route-promos .as-promo-codes { padding: 32px 0 40px; }
	.as-route-promos .as-promo-news { padding: 0 0 40px; }
	.as-promo__grid { grid-template-columns: 1fr; }
	.as-promo__codes { grid-template-columns: 1fr; }
	.as-promo-code { padding: 28px 24px; }
	.as-promo-news__band { padding: 28px 24px; gap: var(--space-6); }

	/* The tilts are charming at three-across and untidy in a single column. */
	.as-promo-card { transform: none; }
}

@media (max-width: 560px) {
	.as-promo-code__form { flex-wrap: wrap; }
	.as-promo-news__form { flex-wrap: wrap; }
	.as-promo-code__form .as-btn,
	.as-promo-news__form .as-btn { flex: 1; }
}

/* ── Bundle price pill ─────────────────────────────────────────────────────
 * Mirrors .as-cat-card__price so a Split bundle and an ordinary product read
 * the same on /stickers/. Defined here rather than reused from
 * route-category.css because this card also renders on /promos/, which does
 * not load that sheet.
 * ────────────────────────────────────────────────────────────────────────── */
.as-promo-card__pricewrap { display: block; height: 0; position: relative; z-index: 2; }
.as-promo-card__price {
	position: absolute; right: 16px; top: -30px;
	padding: 8px 15px; border-radius: var(--radius-pill);
	border: 4px solid var(--color-surface);
	background: var(--atomic-blue); color: var(--color-text-invert);
	font-size: var(--text-sm); font-weight: 800; white-space: nowrap;
	transform: rotate(2deg); box-shadow: 0 4px 10px rgba(36, 41, 56, 0.25);
}
.as-promo-card__price .amount,
.as-promo-card__price bdi { color: inherit; font: inherit; }
