/*
Theme Name: Sublimation Printer Guide
Template: aff-base
Description: Print-shop look for sublimationprinterguide.com: crisp white paper, rich black and vivid CMYK accents, crop marks and halftone dots.
Version: 1.0.0
*/

:root {
	--bg: #ffffff;
	--surface: #ffffff;
	--surface-2: #f2f5f9;
	--ink: #0f1216;
	--ink-2: #343a44;
	--muted: #5f6774;
	--line: #e1e6ed;
	--accent: #0071b0;
	--accent-ink: #ffffff;
	--accent-soft: #e2f4fc;
	--accent-2: #c8106f;
	--good: #12805c;
	--bad: #c22a3a;
	--radius: 6px;
	--radius-sm: 4px;
	--shadow: 0 1px 2px rgba(15, 18, 22, .05), 0 10px 26px rgba(15, 18, 22, .07);
	--font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
	--font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--display-weight: 700;
	--display-tracking: -0.035em;

	/* Process colors */
	--c: #00a3e0;
	--m: #e5007e;
	--y: #ffd400;
	--k: #0f1216;
	--cmyk-bar: linear-gradient(90deg, var(--c) 0 25%, var(--m) 25% 50%, var(--y) 50% 75%, var(--k) 75% 100%);
}

/* ---------- Type & buttons ---------- */
.kicker { color: var(--ink-2); display: inline-flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; flex: none; width: 34px; height: 10px; background:
	radial-gradient(circle, var(--c) 0 4px, transparent 4.5px) 0 0 / 12px 10px no-repeat,
	radial-gradient(circle, var(--m) 0 4px, transparent 4.5px) 11px 0 / 12px 10px no-repeat,
	radial-gradient(circle, var(--y) 0 4px, transparent 4.5px) 22px 0 / 12px 10px no-repeat; }
.btn { border-radius: var(--radius); letter-spacing: -.005em; }
.btn--primary { background: var(--k); color: #fff; box-shadow: 3px 3px 0 var(--c); }
.btn--primary:hover { box-shadow: 4px 4px 0 var(--m); filter: none; }
.btn--ghost { border-width: 2px; }

/* ---------- Header: registration strip on top ---------- */
.site-header { background: rgba(255, 255, 255, .94); border-bottom: 1px solid var(--line); }
.site-header::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--cmyk-bar); }
.site-header__inner { min-height: 72px; padding-top: 4px; }
.brand__name { font-size: 20px; letter-spacing: -.04em; }
.nav__list a { border-radius: var(--radius-sm); font-weight: 500; }
.nav__list a:hover, .nav__list .current-menu-item a { background: transparent; color: var(--ink); box-shadow: inset 0 -3px 0 var(--m); border-radius: 0; }

/* ---------- Hero: halftone field and process-color glows ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 0; padding-bottom: 72px; background:
	radial-gradient(520px 320px at 12% 18%, rgba(0, 163, 224, .12), transparent 70%),
	radial-gradient(520px 320px at 88% 22%, rgba(229, 0, 126, .10), transparent 70%),
	radial-gradient(620px 300px at 50% 105%, rgba(255, 212, 0, .16), transparent 70%),
	#fff; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
	background: radial-gradient(circle, rgba(15, 18, 22, .13) 1.1px, transparent 1.6px) 0 0 / 16px 16px;
	-webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, transparent 35%, #000 100%);
	mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, transparent 35%, #000 100%); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--cmyk-bar); }
.hero__inner { position: relative; z-index: 1; }
.hero__title { font-size: clamp(38px, 6vw, 68px); max-width: 15em; margin-left: auto; margin-right: auto; line-height: 1.04; }
.hero-center .hero__art { max-width: 700px; }

/* ---------- Section heads with a crop mark ---------- */
.section__head h2 { position: relative; padding-left: 26px; }
.section__head h2::before { content: ""; position: absolute; left: 0; top: .2em; width: 14px; height: 14px; border-left: 2px solid var(--k); border-top: 2px solid var(--k); }

/* ---------- Silo tiles: press sheets with crop marks ---------- */
.silos__grid { gap: 18px; }
.silo { --tile: var(--c); position: relative; padding: 26px 22px 22px; border: 1px solid var(--line); border-radius: 2px; box-shadow: none; }
.silo::before, .silo::after { content: ""; position: absolute; width: 14px; height: 14px; border-color: var(--tile); border-style: solid; transition: inset .2s; }
.silo::before { left: 6px; top: 6px; border-width: 2px 0 0 2px; }
.silo::after { right: 6px; bottom: 6px; border-width: 0 2px 2px 0; }
.silos__grid .silo:nth-child(4n+2) { --tile: var(--m); }
.silos__grid .silo:nth-child(4n+3) { --tile: #e0b400; }
.silos__grid .silo:nth-child(4n+4) { --tile: var(--k); }
.silo__icon { width: 56px; height: 56px; padding: 8px; color: var(--ink); border-radius: 50%; background: color-mix(in srgb, var(--tile) 16%, #fff); box-shadow: 4px 4px 0 color-mix(in srgb, var(--tile) 55%, transparent); }
.silo:hover { transform: translateY(-2px); border-color: var(--line); box-shadow: 5px 5px 0 var(--tile); }
.silo:hover::before { left: 2px; top: 2px; }
.silo:hover::after { right: 2px; bottom: 2px; }
.silo__name { font-size: 20px; letter-spacing: -.03em; }

/* ---------- Cards: misregistration hover ---------- */
.card__link { border-radius: var(--radius); }
.card__link:hover { border-color: var(--ink); box-shadow: 4px 4px 0 var(--c), -4px -4px 0 rgba(229, 0, 126, .55); }
.card--lg .card__link { background: linear-gradient(160deg, #e9f7fd, #fff 55%); }
.cards--feature .card--lg:nth-child(2) .card__link { background: linear-gradient(160deg, #fdebf4, #fff 55%); }
.card__icon { color: var(--accent); }
.card__more { color: var(--accent-2); }

/* ---------- Teaser and promise ---------- */
.teaser__inner { background: #fff; border: 2px solid var(--k); border-radius: var(--radius); box-shadow: 8px 8px 0 var(--y); }
.promise__item { border-top: 0; border-radius: var(--radius); border: 1px solid var(--line); position: relative; padding-top: 30px; }
.promise__item::before { content: ""; position: absolute; left: 24px; top: 0; width: 56px; height: 6px; background: var(--c); }
.promise__grid .promise__item:nth-child(2)::before { background: var(--m); }
.promise__grid .promise__item:nth-child(3)::before { background: var(--y); }

/* ---------- Article ---------- */
.article__head { border-bottom: 0; box-shadow: 0 1px 0 var(--line); background:
	radial-gradient(circle, rgba(0, 163, 224, .16) 1.1px, transparent 1.6px) right top / 14px 14px no-repeat; }
.prose li::marker { color: var(--m); }
.prose blockquote { border-left-color: var(--c); }
.prose th { background: #f2f5f9; }
.aff-toc li a.is-active { border-left-color: var(--m); }

/* Quick picks: ink-drop bullets in process order */
.quick-picks { border-radius: var(--radius); border-color: var(--ink); }
.quick-picks li { position: relative; padding-left: 52px; }
.quick-picks li::before { content: ""; position: absolute; left: 20px; top: 20px; width: 15px; height: 15px; border-radius: 0 50% 50% 50%; transform: rotate(45deg); background: var(--c); }
.quick-picks li:nth-child(4n+2)::before { background: var(--m); }
.quick-picks li:nth-child(4n+3)::before { background: var(--y); }
.quick-picks li:nth-child(4n+4)::before { background: var(--k); }

/* Product box: CMYK color bar edge */
.aff-product { position: relative; overflow: hidden; border: 1.5px solid var(--ink); box-shadow: 5px 5px 0 rgba(0, 163, 224, .35); padding-left: 28px; }
.aff-product::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 7px; background: linear-gradient(180deg, var(--c) 0 25%, var(--m) 25% 50%, var(--y) 50% 75%, var(--k) 75% 100%); }
.aff-product__icon { background: var(--accent-soft); color: var(--accent); border-radius: 50%; }
.aff-product__badge { background: var(--k); color: #fff; border-radius: 2px; }
.aff-product__btn, .aff-cta__btn { border-radius: var(--radius); }
.aff-cta { border-left-color: var(--m); }

.faq summary::after { color: var(--m); }

/* ---------- Footer: rich black with color bar ---------- */
.site-footer { position: relative; background: #0b0d10; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--cmyk-bar); }
.site-footer a:hover { color: var(--y); }

/* ================================================================== *
 * Tools
 * ================================================================== */
.aff-tool { border: 1.5px solid var(--ink); border-radius: var(--radius); box-shadow: 6px 6px 0 var(--accent-soft); }
.aff-tool__result { background: #f2f5f9; }
.ags-note { font-size: 13.5px; line-height: 1.5; color: var(--muted); margin: 14px 0 0; }
.ags-note strong { color: var(--ink-2); }
.ags-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; border: 0; }
.ags-chips legend { font-size: 14px; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; padding: 0; }
.ags-chips button { min-height: 40px; padding: 0 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: #fff; font: 600 14px/1 var(--font-body); color: var(--ink-2); cursor: pointer; }
.ags-chips button:hover { border-color: var(--ink); }
.ags-chips button[aria-pressed="true"] { background: var(--k); border-color: var(--k); color: #fff; box-shadow: 2px 2px 0 var(--c); }

/* Temperature chart */
.ags-chart__pick { margin-bottom: 16px; }
.ags-chart__card { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1.5px solid var(--ink); border-radius: var(--radius); overflow: hidden; background: #fff; }
.ags-chart__cell { padding: 16px 18px; border-right: 1px solid var(--line); min-width: 0; }
.ags-chart__cell:last-child { border-right: 0; }
.ags-chart__label { display: block; font: 700 11.5px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.ags-chart__val { display: block; font: 700 22px/1.2 var(--font-display); letter-spacing: -.03em; color: var(--ink); overflow-wrap: anywhere; }
.ags-chart__sub { display: block; font-size: 14px; color: var(--ink-2); margin-top: 4px; }
.ags-chart__cell--temp { background: linear-gradient(180deg, #fff3f9, #fff); box-shadow: inset 0 4px 0 var(--m); }
.ags-chart__cell--time { background: linear-gradient(180deg, #ecf8fd, #fff); box-shadow: inset 0 4px 0 var(--c); }
.ags-chart__cell--press { background: linear-gradient(180deg, #fffbe3, #fff); box-shadow: inset 0 4px 0 var(--y); }
.ags-chart__meta { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin-top: 12px; font-size: 14px; color: var(--ink-2); }
.ags-chart__badge { display: inline-block; font: 700 11.5px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; background: var(--y); color: var(--k); padding: 6px 9px; border-radius: 2px; }
.ags-chart__extra { margin: 10px 0 0; font-size: 14.5px; color: var(--ink-2); }
.ags-chart__extra:empty { display: none; }
.ags-chart__tips { margin: 16px 0 0; padding: 12px 16px; border-left: 4px solid var(--c); background: #f2f5f9; font-size: 14.5px; line-height: 1.5; }
.ags-chart__tips p { margin: 0; }

/* Cost calculator */
.ags-cost fieldset { border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 14px; padding: 14px 16px 2px; min-width: 0; }
.ags-cost legend { font: 700 14px/1 var(--font-display); letter-spacing: -.01em; padding: 0 6px; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; }
.ags-cost legend::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--dot, var(--c)); }
.ags-cost fieldset:nth-of-type(2) { --dot: var(--m); }
.ags-cost fieldset:nth-of-type(3) { --dot: #e0b400; }
.ags-cost fieldset:nth-of-type(4) { --dot: var(--k); }
.ags-cost .aff-tool__grid { margin-bottom: 12px; }
.ags-hint { display: block; font-size: 12.5px; line-height: 1.4; color: var(--muted); margin-top: 5px; }
.ags-cost__total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; }
.ags-cost__total strong { font-size: 30px; letter-spacing: -.03em; }
.ags-cost__bar { display: flex; height: 16px; margin: 14px 0 12px; border-radius: 2px; overflow: hidden; background: #e1e6ed; }
.ags-cost__bar span { display: block; height: 100%; min-width: 0; transition: width .25s; }
.ags-cost__list { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.ags-cost__list li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid rgba(15, 18, 22, .08); }
.ags-cost__list li span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.ags-cost__list i { width: 12px; height: 12px; border-radius: 2px; flex: none; }
.ags-cost__list b { font-variant-numeric: tabular-nums; }
.ags-sw-ink { background: var(--c); }
.ags-sw-paper { background: var(--m); }
.ags-sw-blank { background: var(--y); }
.ags-sw-power { background: var(--k); }
.ags-sw-waste { background: #9aa4b2; }

/* Process diagram */
.ags-process__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: agsstep; }
.ags-process__step { position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; counter-increment: agsstep; }
.ags-process__step svg { display: block; width: 100%; height: auto; background: #f7f9fb; border-bottom: 1px solid var(--line); }
.ags-process__cap { padding: 12px 14px 14px; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.ags-process__cap b { display: flex; align-items: center; gap: 8px; font: 700 16.5px/1.25 var(--font-display); letter-spacing: -.02em; color: var(--ink); margin-bottom: 6px; }
.ags-process__cap b::before { content: counter(agsstep); display: inline-grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--k); color: #fff; font: 700 13px/1 var(--font-body); }
.ags-process__step:nth-child(1) { box-shadow: inset 0 4px 0 var(--c); }
.ags-process__step:nth-child(2) { box-shadow: inset 0 4px 0 var(--m); }
.ags-process__step:nth-child(3) { box-shadow: inset 0 4px 0 var(--y); }
.ags-process__step:nth-child(4) { box-shadow: inset 0 4px 0 var(--k); }
.ags-gas { animation: ags-rise 2.4s ease-in-out infinite; }
.ags-gas--2 { animation-delay: .8s; }
.ags-gas--3 { animation-delay: 1.6s; }
@keyframes ags-rise { 0%, 100% { transform: translateY(-4px); opacity: .55; } 50% { transform: translateY(5px); opacity: 1; } }

@media (max-width: 900px) {
	.ags-process__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
	.hero { padding-bottom: 52px; }
	.teaser__inner { box-shadow: 5px 5px 0 var(--y); }
	.aff-product { padding-left: 22px; }
	.ags-chart__card { grid-template-columns: 1fr; }
	.ags-chart__cell { border-right: 0; border-bottom: 1px solid var(--line); }
	.ags-chart__cell:last-child { border-bottom: 0; }
	.aff-tool { padding: 18px 16px; box-shadow: 4px 4px 0 var(--accent-soft); }
}
@media (max-width: 520px) {
	.ags-process__steps { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	.ags-gas { animation: none; }
}
