/**
 * Offers page. Loaded after home.css on /offers/ only, and uses its colour
 * tokens, buttons, section heads, FAQ and closing band.
 *
 * Each deal is a tear-off ticket: a coloured stub with the discount, a dashed
 * perforation with two notches, and the plan on the right. --notch is the
 * colour of the band behind the ticket, so the notches look cut out.
 */

/* ── Hero ─────────────────────────────────────────── */
.offers-hero { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(56px, 8vw, 96px); }
.offers-hero::before {
	content: ""; position: absolute; inset: -20% -10% auto; height: 120%; z-index: -1;
	background:
		radial-gradient(40% 55% at 78% 40%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
		radial-gradient(40% 50% at 12% 10%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 70%);
}
.offers-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.offers-hero-grid > * { min-width: 0; }
.offers-hero .eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.offers-hero .eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 22%, transparent); }
.offers-hero h1 { font-size: clamp(38px, 4.8vw, 58px); font-weight: 800; line-height: 1.05; letter-spacing: -.035em; margin-bottom: 20px; }
.offers-hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--brand-ink), var(--brand) 45%, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.offer-facts { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 28px; }
.offer-facts li { display: grid; gap: 2px; padding-left: 16px; border-left: 2px solid var(--line); }
.offer-facts li:first-child { padding-left: 0; border-left: 0; }
.offer-facts b { font-size: 24px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.offer-facts span { color: var(--muted); font-size: 13.5px; }

.hero-ticket { position: relative; padding: 26px 8px 26px 16px; --notch: var(--bg); }
.hero-ticket::before {
	content: ""; position: absolute; inset: 40px 0 10px 40px; border-radius: 22px; transform: rotate(4deg);
	background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 30%, var(--surface)), color-mix(in srgb, var(--accent) 30%, var(--surface)));
}
.hero-ticket .ticket { transform: rotate(-2deg); box-shadow: var(--shadow-lg); }
.ribbon { position: absolute; z-index: 2; top: 8px; left: 4px; background: var(--ink); color: var(--bg); font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 999px; transform: rotate(-6deg); }

/* ── Tickets ──────────────────────────────────────── */
.tint { --notch: var(--tint); }
.ticket { position: relative; display: grid; grid-template-columns: 104px 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease; }
.tickets .ticket:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.ticket::before, .ticket::after { content: ""; position: absolute; left: 93px; width: 22px; height: 22px; border-radius: 50%; background: var(--notch, var(--bg)); border: 1px solid var(--line); z-index: 1; }
.ticket::before { top: -12px; clip-path: inset(50% 0 0 0); }
.ticket::after { bottom: -12px; clip-path: inset(0 0 50% 0); }
.stub { display: grid; place-content: center; text-align: center; gap: 2px; color: #fff; border-radius: 17px 0 0 17px; border-right: 2px dashed color-mix(in srgb, #fff 55%, transparent); background: linear-gradient(160deg, var(--c), color-mix(in srgb, var(--c) 62%, #0b1f2a)); }
.stub b { font-size: 30px; font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.stub span { font-size: 13px; opacity: .9; }
.ticket-body { padding: 18px 20px; display: grid; gap: 14px; min-width: 0; }
.ticket-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ticket-head > div { min-width: 0; }
.ticket-head h3 { font-size: 17px; font-weight: 700; letter-spacing: -.015em; }
.ticket-head p { color: var(--muted); font-size: 13.5px; }
.cycle { margin-left: auto; flex: none; font-size: 12px; padding: 2px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); }
.ticket-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.ticket-price s { color: var(--muted); font-size: 15px; }
.ticket-price strong { font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.ticket-price small { color: var(--muted); font-size: 13.5px; }
.ticket-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 14px; border-top: 1px dashed var(--line); }
.save { font-size: 13.5px; font-weight: 600; color: var(--brand-ink); }

.ticket-big { grid-template-columns: 136px 1fr; border-radius: 22px; }
.ticket-big::before, .ticket-big::after { left: 125px; }
.ticket-big .stub { border-radius: 21px 0 0 21px; }
.ticket-big .stub b { font-size: 46px; }
.ticket-big .ticket-body { padding: 26px; gap: 18px; }
.ticket-big .ticket-head h3 { font-size: 21px; }
.ticket-big .ticket-price strong { font-size: 44px; }

.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 30px; }
.chip-btn { font: 500 14px/1 var(--f); padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer; display: inline-flex; gap: 7px; align-items: center; }
.chip-btn span { font-size: 12px; color: var(--muted); }
.chip-btn:hover { border-color: color-mix(in srgb, var(--ink) 30%, var(--line)); }
.chip-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip-btn[aria-pressed="true"] span { color: inherit; opacity: .7; }
.tickets { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
/* an odd last ticket sits centred instead of alone on the left */
.tickets .ticket.last-odd { grid-column: 1 / -1; justify-self: center; width: calc(50% - 11px); }

/* ── Lowest price per plugin ──────────────────────── */
.lowest { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; box-shadow: var(--shadow-sm); }
.low { display: grid; grid-template-columns: auto 1fr auto auto; gap: 18px; align-items: center; padding: 18px 24px; border-top: 1px solid var(--line); transition: background .2s; }
.low:first-child { border-top: 0; }
.low:hover { background: var(--surface-2); }
.low-name { font-size: 17px; font-weight: 600; min-width: 0; }
.low-name small { display: block; color: var(--muted); font-size: 13.5px; font-weight: 400; margin-top: 2px; }
.low-price { display: flex; align-items: baseline; gap: 6px; font-size: 22px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.low-price small { font-size: 13px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.low-out { font-size: 15px; font-weight: 600; }
.low .go { width: 18px; height: 18px; color: var(--brand-ink); transition: transform .2s; }
.low:hover .go { transform: translateX(4px); }

@media (max-width: 1100px) {
	.offers-hero-grid { grid-template-columns: 1fr; }
	.hero-ticket { max-width: 560px; }
	.tickets { grid-template-columns: 1fr; max-width: 720px; margin-inline: auto; }
	.tickets .ticket.last-odd { width: auto; justify-self: stretch; }
	.why { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 760px) {
	.why { grid-template-columns: 1fr; }
	.ticket, .ticket-big { grid-template-columns: 84px 1fr; }
	.ticket::before, .ticket::after, .ticket-big::before, .ticket-big::after { left: 73px; }
	.stub b, .ticket-big .stub b { font-size: 26px; }
	.ticket-body, .ticket-big .ticket-body { padding: 16px; gap: 12px; }
	.ticket-price strong, .ticket-big .ticket-price strong { font-size: 28px; }
	.ticket-head { flex-wrap: wrap; }
	.cycle { margin-left: 0; }
	.hero-ticket { padding: 22px 0 18px 4px; }
	.low { grid-template-columns: auto 1fr; gap: 6px 14px; padding: 16px; }
	.low .picon { grid-row: span 2; }
	.low .go { display: none; }
}
