/*
 * "Alternative" pages (/carrot-alternative/ …), templates/alternative.php. Loaded only there, after main.css and
 * site-check.css (the free check form).
 * Type scale on these pages (on top of main.css: body 17px, h1/h2 clamps, h3 1.16rem):
 *   --t-meta 13px (footnotes, labels) · --t-small 15px (card and table text) · --t-body 17px · --t-lead 18px.
 */
.page-alt {
	--t-meta: .8125rem;
	--t-small: .9375rem;
	--t-body: 1.0625rem;
	--t-lead: 1.125rem;
	--ok: #15803d;
	--ok-bg: #ecfdf3;
	--ok-ink: #14532d;
}

/* ---------- Hero ---------- */
.page-alt .page-hero h1 { max-width: 15ch; margin-bottom: 1.25rem; }
.page-alt .page-hero__answer { font-size: var(--t-lead); }
.alt-by { display: flex; align-items: center; gap: .8rem; margin: 1.5rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--line); max-width: 38rem; font-size: var(--t-small); line-height: 1.45; color: var(--muted); }
.alt-by img { flex: none; width: 2.75rem; height: 2.75rem; border-radius: 50%; object-fit: cover; border: 2px solid var(--white); box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.alt-by strong { display: block; color: var(--ink); font-weight: 700; }

/* ---------- Hero: cost calculator ---------- */
.alt-cost { --them: #8796ad; --me: var(--blue-600); padding: clamp(1.25rem, 1rem + 1vw, 1.75rem); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); box-shadow: var(--shadow-lg); }
.alt-cost__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; margin-bottom: 1.4rem; }
.alt-cost__title { display: flex; align-items: center; gap: .5rem; margin: 0; font-size: var(--t-meta); font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.alt-cost__title .icon { width: 1.05rem; height: 1.05rem; color: var(--blue-600); }
.alt-cost__row + .alt-cost__row { margin-top: 1.35rem; padding-top: 1.35rem; border-top: 1px dashed var(--line); }
.alt-cost__line { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 0 0 .6rem; }
.alt-cost__line span { font-size: var(--t-small); font-weight: 650; color: var(--text); }
.alt-cost__row--me .alt-cost__line span { color: var(--ink); }
.alt-cost__line strong { font-family: var(--font-head); font-size: clamp(1.3rem, 1.1rem + .8vw, 1.6rem); font-weight: 800; letter-spacing: -.02em; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.alt-cost__row small { display: block; margin-top: .5rem; font-size: var(--t-meta); color: var(--muted); line-height: 1.5; }
.alt-cost__bar { position: relative; height: .75rem; border-radius: 99px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.alt-cost__bar span, .alt-cost__bar::after { position: absolute; top: 0; bottom: 0; left: 0; content: ''; transition: width .55s var(--ease), left .55s var(--ease); }
.alt-cost__bar span { width: var(--lo); border-radius: 99px 0 0 99px; background: var(--them); }
.alt-cost__bar::after { left: var(--lo); width: calc(var(--hi) - var(--lo)); border-radius: 0 99px 99px 0; background: repeating-linear-gradient(-45deg, var(--them) 0 4px, color-mix(in srgb, var(--them) 40%, white) 4px 8px); }
.alt-cost__row--me .alt-cost__bar span { background: var(--me); }
.alt-cost__row--me .alt-cost__bar::after { background: repeating-linear-gradient(-45deg, var(--me) 0 4px, color-mix(in srgb, var(--me) 40%, white) 4px 8px); }
.alt-cost__save { display: flex; gap: .6rem; align-items: flex-start; margin: 1.4rem 0 0; padding: .85rem 1rem; border-radius: var(--r); background: var(--ok-bg); color: var(--ok-ink); font-size: var(--t-small); line-height: 1.55; transition: background-color .3s var(--ease), color .3s var(--ease); }
.alt-cost__save .icon { flex: none; width: 1.15rem; height: 1.15rem; margin-top: .15rem; color: var(--ok); }
.alt-cost__save strong { color: var(--ok-ink); font-variant-numeric: tabular-nums; }
.alt-cost__save.is-even { background: var(--sun-50); color: #6b4a00; }
.alt-cost__save.is-even .icon, .alt-cost__save.is-even strong { color: #6b4a00; }

/* Segmented switches (years, plan): radio buttons, shown by alt.js. */
.alt-seg { display: inline-flex; flex-wrap: wrap; gap: 2px; margin: 0; padding: 3px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); }
.alt-seg[hidden] { display: none; }
.alt-seg label { position: relative; cursor: pointer; }
.alt-seg input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.alt-seg span { display: block; padding: .35rem .8rem; border-radius: 99px; font-size: var(--t-meta); font-weight: 650; line-height: 1.3; color: var(--muted); white-space: nowrap; transition: background-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease); }
.alt-seg label:hover span { color: var(--ink); }
.alt-seg input:checked + span { background: var(--white); color: var(--ink); box-shadow: 0 1px 2px rgba(15, 30, 60, .12), 0 0 0 1px var(--line); }
.alt-seg input:focus-visible + span { outline: 2px solid var(--blue-600); outline-offset: 1px; }
.alt-seg--plans { margin-top: .75rem; }

/* ---------- Key facts ---------- */
.alt-facts .svc-facts__list dt { font-size: .75rem; }
.alt-facts .svc-facts__list small { font-size: var(--t-meta); }

/* ---------- An honest look: two open columns ---------- */
.alt-fair__grid { display: grid; gap: 2rem; }
.alt-fair__col h3 { display: flex; align-items: center; gap: .7rem; margin: 0 0 1.1rem; }
.alt-fair__col--why { padding-top: 2rem; border-top: 1px solid var(--line); }
.alt-fair__mark { display: inline-grid; place-items: center; width: 2rem; height: 2rem; flex: none; border-radius: 50%; background: #dcfce7; color: var(--ok); }
.alt-fair__mark .icon { width: 1.05rem; height: 1.05rem; }
.alt-fair__col--why .alt-fair__mark { background: var(--blue-100); color: var(--blue-700); }
.alt-fair__col ul, .alt-fit__card ul { list-style: none; display: grid; gap: .8rem; margin: 0; }
.alt-fair__col li { position: relative; padding-left: 1.2rem; font-size: var(--t-body); line-height: 1.6; color: var(--text); }
.alt-fair__col li::before { content: ''; position: absolute; left: 0; top: .7em; width: .4rem; height: .4rem; border-radius: 50%; background: #9aa8bd; }
.alt-fair__col--why li { color: var(--ink); }
.alt-fair__col--why li::before { background: var(--blue-600); }

/* ---------- Real work ---------- */
.alt-show__grid { display: grid; gap: 2.5rem; align-items: center; }
.alt-show__media { margin: 0; }
.alt-show__copy h2 { margin-bottom: 1rem; }
.alt-show__copy > p:not([class]) { margin: 0 0 1.5rem; font-size: var(--t-lead); color: var(--text); max-width: 34rem; }
.alt-show__project { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; margin: 0 0 .6rem; font-size: var(--t-small); color: var(--muted); }
.alt-show__project strong { font-family: var(--font-head); font-size: var(--t-body); color: var(--ink); }
.alt-show__project span:not(.alt-show__badge) { display: inline-flex; align-items: center; gap: .3rem; }
.alt-show__project .icon { width: .95rem; height: .95rem; }
.alt-show__badge { padding: .2rem .6rem; border-radius: 99px; background: var(--sun-50); color: #7a5300; font-size: .75rem; font-weight: 700; letter-spacing: .02em; }
.alt-show__badge--client { background: #dcfce7; color: var(--ok-ink); }
.alt-show__headline { margin: 0 0 1.25rem; padding-left: 1rem; border-left: 3px solid var(--blue-100); font-size: var(--t-small); line-height: 1.6; color: var(--text); max-width: 34rem; }

/* ---------- Comparison table (lighter header than the site default) ---------- */
.alt-compare .compare__table { font-size: var(--t-small); }
.alt-compare .compare__table thead th.is-mine { background: var(--blue-50); color: var(--blue-700); box-shadow: inset 0 3px 0 var(--blue-600); }
.alt-compare .compare__table td.is-mine { background: rgba(239, 245, 255, .7); }
.alt-compare .compare__table tbody tr { transition: background-color .15s var(--ease); }
.alt-compare .compare__note { font-size: var(--t-meta); line-height: 1.6; }
.alt-compare__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-top: 2rem; padding: 1.25rem 1.5rem; border: 1px solid var(--blue-100); border-radius: var(--r-lg); background: var(--blue-50); }
.alt-compare__cta p { margin: 0; font-size: var(--t-body); color: var(--text); }
.alt-compare__cta strong { color: var(--ink); }
.alt-compare__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; }
@media (min-width: 40rem) {
	.alt-compare .compare__table tbody tr:hover th, .alt-compare .compare__table tbody tr:hover td:not(.is-mine) { background: #fbfcfe; }
}
/* Phones: each row as one card, the two answers side by side (half the height of stacked cells). */
@media (max-width: 39.99rem) {
	.alt-compare .compare__table tbody tr { grid-template-columns: 1fr 1fr; }
	.alt-compare .compare__table tbody th { grid-column: 1 / -1; padding: .7rem 1rem; font-size: var(--t-small); }
	.alt-compare .compare__table td { padding: .8rem 1rem; font-size: .875rem; line-height: 1.5; border-bottom: 0; }
	.alt-compare .compare__table td + td { border-left: 1px solid var(--line); }
	.alt-compare .compare__table td::before { font-size: .6875rem; letter-spacing: .05em; }
	.alt-compare__cta { padding: 1.25rem; }
	.alt-compare__actions, .alt-compare__actions .btn { width: 100%; }
	.alt-compare__actions { justify-content: center; }
}

/* ---------- Free check band ---------- */
.alt-check__box { display: grid; gap: 1.75rem; align-items: center; padding: clamp(1.5rem, 1rem + 2.5vw, 3rem); border: 1px solid var(--blue-100); border-radius: calc(var(--r-lg) + 4px); background: radial-gradient(28rem 16rem at 100% 0%, rgba(47, 111, 228, .12), transparent 70%), radial-gradient(24rem 14rem at 0% 100%, rgba(255, 207, 77, .18), transparent 70%), var(--blue-50); }
.alt-check__copy h2 { margin-bottom: 1rem; }
.alt-check__copy p:last-child { margin: 0; font-size: var(--t-body); color: var(--text); }
.alt-check .sc-box { margin-top: 0; max-width: none; }

/* ---------- The switch: a numbered timeline ---------- */
.alt-move__list { list-style: none; display: grid; max-width: 44rem; }
.alt-move__step { position: relative; display: grid; grid-template-columns: 2.5rem 1fr; gap: 0 1.1rem; padding-bottom: 1.9rem; }
.alt-move__step:last-child { padding-bottom: 0; }
.alt-move__step::before { content: ''; position: absolute; left: calc(1.25rem - 1px); top: 2.5rem; bottom: 0; width: 2px; background: var(--blue-100); }
.alt-move__step:last-child::before { display: none; }
.alt-move__num { position: relative; z-index: 1; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border: 2px solid var(--blue-600); border-radius: 50%; background: var(--white); font-family: var(--font-head); font-size: 1rem; font-weight: 800; color: var(--blue-700); box-shadow: 0 0 0 5px var(--surface); }
.alt-move__step h3 { margin: .45rem 0 .35rem; }
.alt-move__step p { margin: 0; font-size: var(--t-small); line-height: 1.6; color: var(--muted); }
.alt-move__proof { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; margin: 2.5rem 0 0; padding: 1.15rem 1.4rem; border: 1px solid var(--line); border-left: 4px solid var(--sun); border-radius: var(--r); background: var(--white); font-size: var(--t-small); line-height: 1.6; }
.alt-move__proof strong { font-family: var(--font-head); font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem); font-weight: 800; letter-spacing: -.03em; color: var(--navy); white-space: nowrap; }
.alt-move__proof span { flex: 1 1 18rem; color: var(--text); }
.alt-move__proof a { font-weight: 700; white-space: nowrap; }

/* ---------- Stay or switch ---------- */
.alt-fit__grid { display: grid; gap: 1.25rem; align-items: start; }
.alt-fit__card { padding: clamp(1.4rem, 1.1rem + 1vw, 2rem); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); box-shadow: var(--shadow); }
.alt-fit__card h3 { margin: 0 0 1.1rem; }
.alt-fit__card li { font-size: var(--t-body); line-height: 1.6; }
.alt-fit__card:not(.alt-fit__card--go) li { position: relative; padding-left: 1.2rem; color: var(--text); }
.alt-fit__card:not(.alt-fit__card--go) li::before { content: ''; position: absolute; left: 0; top: .7em; width: .4rem; height: .4rem; border-radius: 50%; background: #9aa8bd; }
.alt-fit__card .link-arrow { margin-top: 1.4rem; font-size: var(--t-small); }
.alt-fit__card--go { border-color: var(--blue-100); background: linear-gradient(180deg, var(--blue-50), var(--white) 75%); }
.alt-fit__card--go li { display: flex; gap: .6rem; align-items: flex-start; color: var(--ink); }
.alt-fit__card--go li .icon { flex: none; width: 1.15rem; height: 1.15rem; margin-top: .25rem; color: var(--ok); }
.alt-fit__card--go .btn { margin-top: 1.5rem; }

/* The examples band is tinted here (on service pages it follows a white section and sits flush). */
.page-alt #examples > .section { padding-top: var(--section); }

/* Phones: full-width buttons in the cards and the closing band, like the hero. */
@media (max-width: 39.99rem) {
	.alt-fit__card--go .btn, .page-alt .cta-band__actions .btn { width: 100%; }
}

/* ---------- Wider screens ---------- */
@media (min-width: 48rem) {
	.alt-fair__grid { grid-template-columns: 1fr 1fr; gap: 0; }
	.alt-fair__col { padding-right: 2.5rem; }
	.alt-fair__col--why { padding: 0 0 0 2.5rem; border-top: 0; border-left: 1px solid var(--line); }
	.alt-fit__grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 64rem) {
	.alt-show__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 4rem; }
	.alt-check__box { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 3rem; }
	/* The timeline runs across: 3 steps a row, joined by a line. */
	.alt-move__list { grid-template-columns: repeat(3, 1fr); gap: 2.5rem 2rem; max-width: none; }
	.alt-move__step { grid-template-columns: 1fr; padding-bottom: 0; }
	.alt-move__step::before { left: 3.25rem; right: -1.25rem; top: calc(1.25rem - 1px); bottom: auto; width: auto; height: 2px; }
	.alt-move__step:nth-child(3n)::before, .alt-move__step:last-child::before { display: none; }
	.alt-move__step h3 { margin-top: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
	.alt-cost__bar span, .alt-cost__bar::after, .alt-cost__save, .alt-seg span { transition: none; }
}
