/* ==========================================================================
   InvoicesTemplate — "Clarity × Get Paid" skin (child of ABM Base)
   Colors: --wp--preset--color--{base|surface|contrast|muted|primary|accent|accent-2|accent-3|line}
   ========================================================================== */

:root {
	--it-cream: var(--wp--preset--color--base);
	--it-white: var(--wp--preset--color--surface);
	--it-ink: var(--wp--preset--color--contrast);
	--it-muted: var(--wp--preset--color--muted);
	--it-forest: var(--wp--preset--color--primary);
	--it-lime: var(--wp--preset--color--accent);
	--it-coral: var(--wp--preset--color--accent-2);
	--it-lilac: var(--wp--preset--color--accent-3);
	--it-line: var(--wp--preset--color--line);
	--it-head: var(--wp--preset--font-family--heading);
}

.it-muted { color: var(--it-muted); }

/* ---------- Header ---------- */
.it-topbar { background: var(--it-lime); color: var(--it-forest); font-size: .9rem; font-weight: 600; padding-block: .55rem; }
.it-topbar p { margin: 0; }
.it-topbar a { color: var(--it-forest); }

.it-header { border-bottom: 1px solid var(--it-line); }
.it-logo {
	font-family: var(--it-head); font-weight: 800; font-size: 1.55rem; letter-spacing: -.04em;
	color: var(--it-ink); text-decoration: none; display: inline-flex; align-items: center; gap: .15rem;
}
.it-logo span { background: var(--it-forest); color: var(--it-lime); padding: .05rem .5rem; border-radius: 9px; }
.it-logo--light { color: var(--it-cream); }
.it-logo--light span { background: var(--it-lime); color: var(--it-forest); }

.it-nav .wp-block-navigation-item__content { color: var(--it-ink); position: relative; }
.it-nav .wp-block-navigation-item__content::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: .15rem; height: 3px; border-radius: 3px;
	background: var(--it-lime); transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.it-nav .wp-block-navigation-item__content:hover::after { transform: scaleX(1); }
.it-header__actions { gap: .5rem; }
.it-header-search .wp-block-search__button {
	width: 46px; height: 46px; min-height: 46px; padding: 0; border: 2px solid var(--it-ink);
	background: transparent; color: var(--it-ink); border-radius: 999px;
}
.it-header-search .wp-block-search__button svg { fill: currentColor; }
.it-btn-header .wp-block-button__link { padding: .7rem 1.2rem; }

/* ---------- Sections ---------- */
.it-sec { padding-block: var(--wp--preset--spacing--60); }
.it-sec__title { font-size: clamp(2rem, 4.5vw, 3.2rem); margin: 0; }
.it-sec__head { gap: 1rem 2rem; margin-bottom: 1.75rem; }
.it-sec__head > * { margin: 0; }

/* ---------- Hero ---------- */
.it-hero-wrap { padding-top: clamp(1rem, 3vw, 2rem); padding-bottom: 0; }
.it-hero {
	position: relative; overflow: hidden; gap: 2.5rem;
	background: var(--it-forest); color: var(--it-cream);
	border-radius: clamp(20px, 3vw, 36px);
	padding: clamp(1.75rem, 5vw, 4rem);
}
.it-hero::before {
	content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%;
	background: radial-gradient(circle, rgba(200,241,105,.18), transparent 70%); pointer-events: none;
}
.it-hero > * { flex: 1 1 420px; min-width: 0; }
.it-hero__text { display: flex; flex-direction: column; gap: 1.1rem; }
.it-hero__text > * { margin: 0; }
.it-badge {
	align-self: flex-start; display: inline-block; font-size: .85rem; font-weight: 600;
	background: rgba(200,241,105,.12); color: var(--it-lime); border: 1px solid rgba(200,241,105,.35);
	padding: .35rem .9rem; border-radius: 999px;
}
.it-hero__title { color: var(--it-cream); font-size: clamp(3rem, 7.5vw, 6.5rem); line-height: .9; letter-spacing: -.055em; }
.it-hero__title mark, .it-hl { background: none; color: var(--it-lime); }
.it-hero__lead { font-size: 1.2rem; color: #DDE8DF; max-width: 34rem; }

.it-search .wp-block-search__inside-wrapper {
	background: var(--it-cream); border-radius: 999px; padding: 6px; border: 0; max-width: 560px;
}
.it-search .wp-block-search__input { border: 0; background: transparent; font-size: 1rem; color: var(--it-ink); }
.it-search .wp-block-search__button {
	margin: 0; border: 0; background: var(--it-lime); color: var(--it-forest); padding-inline: 1.5rem;
	transition: transform .2s ease;
}
.it-search .wp-block-search__button:hover { transform: scale(1.04); }

.it-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.it-chips a {
	color: var(--it-cream); text-decoration: none; font-weight: 600; font-size: .9rem;
	border: 1.5px solid rgba(255,248,236,.35); border-radius: 999px; padding: .45rem .95rem;
	transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.it-chips a:hover { background: var(--it-lime); color: var(--it-forest); border-color: var(--it-lime); }

/* Hero illustration */
.it-hero__art { position: relative; min-height: 400px; }
.it-paper { position: absolute; border-radius: 20px; }
.it-paper--back {
	left: 6%; top: 46px; width: 230px; height: 300px; background: var(--it-coral);
	transform: rotate(-9deg); animation: it-drift 9s ease-in-out infinite;
}
.it-paper--front {
	left: 22%; top: 22px; width: 270px; height: 340px; background: var(--it-cream); color: var(--it-ink);
	padding: 24px; box-sizing: border-box; font-size: 13px; transform: rotate(3deg);
	box-shadow: 0 30px 60px rgba(0,0,0,.25); animation: abm-float 7s ease-in-out infinite;
}
.it-paper__top { display: flex; justify-content: space-between; align-items: center; }
.it-paper__top strong { font-family: var(--it-head); font-weight: 800; font-size: 26px; letter-spacing: -.03em; }
.it-paper__top span { background: var(--it-lime); color: var(--it-forest); font-weight: 700; font-size: 11px; padding: 3px 8px; border-radius: 6px; }
.it-paper__due { margin: 4px 0 18px; color: var(--it-muted); font-size: 12px; }
.it-paper__row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1.5px solid var(--it-ink); }
.it-paper__total { display: flex; justify-content: space-between; padding-top: 12px; font-weight: 800; font-size: 16px; }
.it-stamp {
	position: absolute; right: 4%; bottom: 18px; width: 132px; height: 132px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: var(--it-lime); color: var(--it-forest); border: 4px solid var(--it-forest);
	box-shadow: 0 0 0 4px var(--it-lime);
	font-family: var(--it-head); font-weight: 800; font-size: 34px; letter-spacing: -.02em;
	transform: rotate(-14deg); animation: abm-pop .8s .6s cubic-bezier(.2,1.4,.4,1) both;
}
.it-coin { position: absolute; border-radius: 50%; background: var(--it-lilac); animation: abm-float 5s ease-in-out infinite; }
.it-coin--1 { width: 26px; height: 26px; left: 2%; bottom: 40px; animation-delay: -1s; }
.it-coin--2 { width: 16px; height: 16px; right: 34%; top: 6px; background: var(--it-lime); animation-delay: -3s; }
@keyframes it-drift { 0%, 100% { transform: rotate(-9deg) translateY(0); } 50% { transform: rotate(-6deg) translateY(8px); } }
@media (max-width: 600px) {
	.it-hero__art { min-height: 330px; transform: scale(.85); transform-origin: top left; }
}

/* ---------- Formats ---------- */
.it-formats { gap: .75rem 2rem; padding-block: 1.75rem; }
.it-format { margin: 0; display: inline-flex; align-items: center; gap: .55rem; font-weight: 600; color: #3D3D3D; }
.it-format::before { content: ""; width: 22px; height: 22px; border-radius: 6px; background: #999; flex: none; }
.it-format--word::before { background: #2B579A; }
.it-format--excel::before { background: #217346; }
.it-format--pdf::before { background: #B91C1C; }
.it-format--docs::before { background: #4285F4; }
.it-format--sheets::before { background: #0F9D58; }

/* ---------- Marquee ---------- */
.it-marquee { overflow: hidden; background: var(--it-ink); color: var(--it-lime); padding-block: 1rem; }
.it-marquee__track { display: flex; width: max-content; animation: abm-marquee 38s linear infinite; }
.it-marquee:hover .it-marquee__track { animation-play-state: paused; }
.it-marquee__list { display: flex; margin: 0; padding: 0; list-style: none; }
.it-marquee__list li {
	font-family: var(--it-head); font-weight: 800; font-size: clamp(1.4rem, 2.6vw, 2rem); letter-spacing: -.02em;
	padding-inline: 1.25rem; white-space: nowrap; display: flex; align-items: center; gap: 2.5rem;
}
.it-marquee__list li::after { content: "✦"; color: var(--it-coral); font-size: .8em; }

/* ---------- Trade tiles ---------- */
.it-tiles { gap: 1rem; margin-top: 1.75rem; }
.it-tile {
	position: relative; border-radius: 24px; padding: 1.4rem; min-height: 180px;
	display: flex; flex-direction: column; justify-content: flex-end; gap: .25rem; color: var(--it-ink);
	transition: transform .35s ease, box-shadow .35s ease;
}
.it-tile:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: 0 18px 40px rgba(14,59,46,.18); }
.it-tile > * { margin: 0; }
.it-tile__icon { position: absolute; top: 1.3rem; left: 1.4rem; transition: transform .4s ease; }
.it-tile:hover .it-tile__icon { transform: rotate(-12deg) scale(1.1); }
.it-tile h3 { font-size: 1.7rem; letter-spacing: -.03em; }
.it-tile h3 a { color: inherit; text-decoration: none; }
.it-tile h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.it-tile p { font-size: .95rem; opacity: .85; }
.it-tile--coral { background: var(--it-coral); }
.it-tile--lime { background: var(--it-lime); }
.it-tile--lilac { background: var(--it-lilac); }
.it-tile--ink { background: var(--it-ink); color: var(--it-cream); }

/* ---------- Steps ---------- */
.it-steps-wrap { background: var(--it-white); border-block: 1px solid var(--it-line); }
.it-steps { gap: 1.25rem; margin-top: 2rem; counter-reset: step; }
.it-step { position: relative; padding: 1.75rem; border-radius: 24px; background: var(--it-cream); }
.it-step > * { margin: 0 0 .4rem; }
.it-step__num {
	font-family: var(--it-head); font-weight: 800; font-size: 3.2rem; line-height: 1; letter-spacing: -.04em;
	color: var(--it-forest); -webkit-text-stroke: 0; margin-bottom: .75rem !important;
}
.it-step:nth-child(2) .it-step__num { color: #B5461D; }
.it-step:nth-child(3) .it-step__num { color: #5B3FC4; }
.it-step h3 { font-size: 1.4rem; }
.it-step p:last-child { color: var(--it-muted); }

/* ---------- Pills & template cards ---------- */
.it-pills { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; }
.it-pills a {
	display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; border-radius: 999px;
	border: 2px solid var(--it-ink); color: var(--it-ink); font-weight: 700; font-size: .9rem; text-decoration: none;
	transition: background .2s ease, color .2s ease;
}
.it-pills a:hover, .it-pills a.is-active { background: var(--it-ink); color: var(--it-lime); }

.it-cards { gap: 1.25rem; }
.it-card { position: relative; background: var(--it-white); border-radius: 22px; padding: 12px 12px 18px; }
.it-card > * { margin: 0; }
.it-card h3 { font-size: 1.15rem; margin: .9rem .4rem .1rem; }
.it-card h3 a { color: var(--it-ink); text-decoration: none; }
.it-card h3 a::after { content: ""; position: absolute; inset: 0; }
.it-card .it-muted { margin-inline: .4rem; font-size: .9rem; }
.it-thumb { height: 210px; border-radius: 16px; padding: 22px 34px 0; overflow: hidden; }
.it-thumb--cream { background: var(--it-cream); }
.it-thumb--lime { background: var(--it-lime); }
.it-thumb--lilac { background: var(--it-lilac); }
.it-thumb--coral { background: var(--it-coral); }
.it-thumb__doc {
	height: 100%; background: #fff; border-radius: 10px 10px 0 0; padding: 16px; box-sizing: border-box;
	display: flex; flex-direction: column; gap: 9px; box-shadow: 0 8px 20px rgba(14,59,46,.12);
	transition: transform .45s ease;
}
.it-card:hover .it-thumb__doc { transform: translateY(-8px) rotate(-1.5deg); }
.it-thumb__doc b { font-family: var(--it-head); font-size: 14px; letter-spacing: -.02em; }
.it-thumb__doc--table b { font-family: inherit; font-size: 10px; color: var(--it-muted); letter-spacing: .04em; }
.it-thumb__doc i { display: block; height: 7px; border-radius: 4px; background: #EFE8DA; }
.it-thumb__doc i.it-short { width: 55%; }
.it-thumb__doc i.it-bar--coral { width: 55%; height: 9px; background: var(--it-coral); }
.it-thumb__doc i.it-block { height: 30px; background: var(--it-forest); border-radius: 6px; }
.it-thumb__doc i.it-dot { width: 40px; height: 40px; border-radius: 50%; background: var(--it-ink); }
.it-cards + .wp-block-buttons { margin-top: 2rem; }
.is-style-outline .wp-block-button__link { border: 2px solid var(--it-ink); color: var(--it-ink); background: transparent; }
.is-style-outline .wp-block-button__link:hover { background: var(--it-ink); color: var(--it-lime); }

/* ---------- Tools ---------- */
.it-tools-wrap { background: var(--it-forest); color: var(--it-cream); }
.it-tools-wrap .it-sec__title { color: var(--it-cream); }
.it-tools__lead { color: #DDE8DF; font-size: 1.15rem; margin-top: .5rem; }
.it-tools { gap: 1.25rem; margin-top: 2rem; }
.it-tool { background: #154A3A; border: 1px solid #2A6050; border-radius: 22px; padding: 1.5rem; }
.it-tool > * { margin: 0 0 .4rem; }
.it-tool h3 { color: var(--it-cream); font-size: 1.35rem; }
.it-tool p { color: #CFE0D6; }
.it-tool__tag {
	display: inline-block; background: var(--it-lime); color: var(--it-forest) !important;
	font-weight: 700; font-size: .78rem; padding: .25rem .65rem; border-radius: 999px; margin-bottom: .9rem !important;
}

/* ---------- Guides (latest posts) ---------- */
.it-guides .abm-post-card { background: var(--it-white); }
@media (min-width: 900px) {
	.it-guides .wp-block-post-template { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.it-guides .wp-block-post-template > li:first-child { grid-column: span 2; grid-row: span 2; }
	.it-guides .wp-block-post-template > li:first-child .wp-block-post-title { font-size: clamp(1.6rem, 2.6vw, 2.3rem); }
	.it-guides .wp-block-post-template > li:first-child .wp-block-post-featured-image { aspect-ratio: 16/9; }
	.it-guides .wp-block-post-template > li:not(:first-child) .wp-block-post-excerpt { display: none; }
}

/* ---------- FAQ ---------- */
.it-faq { gap: 2rem 4rem; }
.it-faq__intro { flex: 1 1 280px; }
.it-faq__intro > * { margin: 0 0 .75rem; }
.it-faq__list { flex: 2 1 520px; min-width: 0; }
.it-faq .wp-block-details { background: var(--it-white); border: 0; border-radius: 18px; padding: 1.1rem 1.35rem; margin-bottom: .75rem; }
.it-faq .wp-block-details[open] { box-shadow: 0 0 0 2px var(--it-ink); }
.it-faq .wp-block-details summary::after { background: var(--it-lime); color: var(--it-forest); font-weight: 800; }

/* ---------- Packs ---------- */
.it-packs-wrap { background: var(--it-coral); color: var(--it-ink); }
.it-packs-wrap .it-sec__title { color: var(--it-ink); }
.it-soon { background: var(--it-ink); color: var(--it-lime); font-weight: 700; padding: .35rem .9rem; border-radius: 999px; }
.it-packs { gap: 1.25rem; }
.it-pack { background: var(--it-cream); border-radius: 24px; padding: 1.5rem; display: flex; flex-direction: column; }
.it-pack > * { margin: 0 0 .5rem; }
.it-pack h3 { font-size: 1.45rem; }
.it-pack__foot { margin-top: auto !important; padding-top: 1rem; align-items: center; }
.it-price { font-family: var(--it-head); font-weight: 800; font-size: 1.3rem; margin: 0; }
.it-pack--dark { background: var(--it-forest); color: var(--it-cream); }
.it-pack--dark h3 { color: var(--it-cream); }
.it-pack--dark .wp-block-button__link { background: var(--it-lime); color: var(--it-forest); }

/* ---------- Newsletter ---------- */
.it-news {
	background: var(--it-forest); color: var(--it-cream); border-radius: 32px;
	padding: clamp(1.75rem, 5vw, 3.5rem); gap: 1.5rem 3rem;
}
.it-news > * { flex: 1 1 380px; min-width: 0; }
.it-news h2 { color: var(--it-cream); font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: 0 0 .5rem; }
.it-news__text p { color: #CFE0D6; margin: 0; }
.it-news .abm-newsletter input[type="email"] { border-color: var(--it-cream); background: var(--it-cream); }
.it-news .abm-newsletter :is(button, input[type="submit"]) { background: var(--it-lime); color: var(--it-forest); }

/* ---------- Footer ---------- */
.it-footer { background: var(--it-forest); color: #DDE8DF; padding-block: var(--wp--preset--spacing--60) 1.5rem; margin-top: var(--wp--preset--spacing--50); }
.it-footer__grid { gap: 2rem; }
.it-footer h4 { color: var(--it-lime); font-size: 1rem; letter-spacing: .02em; margin: 0 0 .75rem; }
.it-footer p { margin: 0; line-height: 2; }
.it-footer__brand p { margin-top: .75rem; line-height: 1.6; max-width: 22rem; }
.it-footer a { color: #DDE8DF; text-decoration: none; }
.it-footer a:hover { color: var(--it-lime); }
.it-footer__bottom { border-top: 1px solid #2A6050; margin-top: 2.5rem; padding-top: 1.25rem; font-size: .85rem; gap: .5rem 2rem; }

/* ---------- Single post ---------- */
.abm-single .abm-kicker a { color: #B5461D; }
.it-download { background: var(--it-forest); }
.it-download > * { margin: 0 0 .6rem; }
.it-download h3 { font-size: 1.4rem; }
.it-download p { color: #CFE0D6; }
.it-download__kicker { display: inline-block; background: var(--it-lime); color: var(--it-forest) !important; font-weight: 700; font-size: .8rem; padding: .2rem .6rem; border-radius: 999px; }
.it-btn-lime .wp-block-button__link { background: var(--it-lime); color: var(--it-forest); }
.it-btn-lime .wp-block-button__link:hover { background: var(--it-cream); color: var(--it-forest); }
.abm-toc { background: var(--it-white); }
.abm-progress { background: var(--it-coral); }
.abm-single .wp-block-post-content blockquote { border-left: 0; background: var(--it-lime); border-radius: 18px; padding: 1.25rem 1.5rem; }
.abm-post-card { background: var(--it-white); }

/* Mobile header */
@media (max-width: 781px) {
	.it-header .abm-header__inner { flex-wrap: nowrap !important; }
	.it-header__actions { margin-left: auto; }
	.it-header .it-btn-header, .it-header__actions .wp-block-buttons { display: none !important; }
}
