/* Additions that theme.json cannot express. Loaded on the front end and in the editor. */

body { -webkit-font-smoothing: antialiased; }
.roitune-home { overflow-x: clip; }

/* Header */
.roitune-header {
	position: sticky;
	top: 0;
	z-index: 50;
	padding-block: 0.75rem;
	background: rgba(255, 255, 255, 0.78);
	backdrop-filter: saturate(180%) blur(14px);
	-webkit-backdrop-filter: saturate(180%) blur(14px);
	border-bottom: 1px solid rgba(21, 23, 28, 0.06);
}
.admin-bar .roitune-header { top: var(--wp-admin--admin-bar--height, 0px); }
.roitune-logo { font-size: 1.375rem; font-weight: 800; letter-spacing: -0.04em; }
.roitune-logo a { color: var(--wp--preset--color--ink); }
.roitune-logo a::after { content: "."; color: var(--wp--preset--color--orange); }
.roitune-nav .wp-block-navigation-item__content { padding: 0.4rem 0.7rem; border-radius: 8px; }
.roitune-nav .wp-block-navigation-item__content:hover { background: rgba(21, 23, 28, 0.06); color: inherit; }
.roitune-header__cta { gap: 0.5rem; }
.roitune-header__cta .wp-block-button__link { padding: 0.55rem 1rem; }

/* Buttons */
.wp-block-button.is-style-roitune-quiet > .wp-block-button__link {
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--ink);
	box-shadow: inset 0 0 0 1px rgba(21, 23, 28, 0.1);
}
.wp-block-button.is-style-roitune-quiet > .wp-block-button__link:hover { box-shadow: inset 0 0 0 1px rgba(21, 23, 28, 0.35); }
.wp-block-button__link { transition: background-color 0.15s, box-shadow 0.15s, transform 0.15s; }
.wp-block-button__link:hover { transform: translateY(-1px); }

/* Small labels */
.roitune-overline { text-transform: uppercase; letter-spacing: 0.14em; font-weight: 600; }
.roitune-eyebrow {
	display: table;
	margin-inline: auto !important;
	padding: 0.3rem 0.9rem 0.3rem 0.3rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.7);
	box-shadow: inset 0 0 0 1px rgba(21, 23, 28, 0.08);
}
.roitune-eyebrow mark { padding: 0.15rem 0.55rem; margin-right: 0.4rem; border-radius: 999px; font-weight: 600; }
.roitune-pill {
	display: inline-block;
	align-self: flex-start;
	padding: 0.3rem 0.85rem;
	border-radius: 999px;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

/* Hero */
.roitune-hero h1 { max-width: 20ch; margin-inline: auto; }
.roitune-hero h1 + p { max-width: 38rem; margin-inline: auto; line-height: 1.5; font-size: clamp(1.0625rem, 1.4vw, 1.25rem) !important; }
.wp-site-blocks > main, .wp-site-blocks > footer { margin-block-start: 0; }
.roitune-app {
	background: var(--wp--preset--color--base);
	border-radius: 18px;
	box-shadow: 0 1px 0 rgba(21, 23, 28, 0.04), 0 30px 80px -20px rgba(26, 40, 92, 0.28), 0 0 0 1px rgba(21, 23, 28, 0.06);
	overflow: hidden;
}
.roitune-app__bar { padding: 0.85rem 1.25rem; border-bottom: 1px solid var(--wp--preset--color--line); background: #fbfaf8; }
.roitune-app__bar p { margin: 0; }
.roitune-app__bar p:first-child::before {
	content: "";
	display: inline-block;
	width: 44px;
	height: 10px;
	margin-right: 0.9rem;
	vertical-align: middle;
	background: radial-gradient(circle at 5px 5px, #ff6159 5px, transparent 5.5px), radial-gradient(circle at 22px 5px, #ffbd2e 5px, transparent 5.5px), radial-gradient(circle at 39px 5px, #28c941 5px, transparent 5.5px);
}
.roitune-app__stat { color: var(--wp--preset--color--muted); }
.roitune-app__table { margin: 0; overflow-x: auto; }
.roitune-app__table table { border-collapse: collapse; width: 100%; min-width: 640px; font-variant-numeric: tabular-nums; }
.roitune-app__table th, .roitune-app__table td { border: 0; border-bottom: 1px solid var(--wp--preset--color--line); padding: 0.8rem 1.25rem; text-align: left; white-space: nowrap; }
.roitune-app__table thead { border: 0; }
.roitune-app__table th { font-size: 0.75rem; font-weight: 600; color: var(--wp--preset--color--muted); text-transform: uppercase; letter-spacing: 0.08em; background: #fbfaf8; }
.roitune-app__table td:nth-child(3), .roitune-app__table td:nth-child(5) { font-family: var(--wp--preset--font-family--mono); }
.roitune-app__table td:nth-child(5) { font-weight: 600; }
.roitune-app__table tbody tr:last-child td { border-bottom: 0; }
.roitune-app__table figcaption { margin: 0; padding: 0.6rem 1.25rem; font-size: 0.75rem; color: var(--wp--preset--color--muted); text-align: left; border-top: 1px solid var(--wp--preset--color--line); }
.roitune-chip { display: inline-block; padding: 0.15rem 0.6rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600; }
.roitune-logos { gap: 0.6rem; margin-top: 1rem !important; }
.roitune-logo-pill {
	margin: 0;
	padding: 0.5rem 1rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.75);
	box-shadow: inset 0 0 0 1px rgba(21, 23, 28, 0.08);
	font-weight: 600;
	font-size: 0.9375rem;
	color: #3b404a;
}

/* Colour cards */
.roitune-card { border-radius: 32px; padding: 1rem; }
.roitune-card > .wp-block-columns { gap: clamp(1.5rem, 3vw, 3rem); margin: 0; }
.roitune-card__text { display: flex; flex-direction: column; padding: clamp(0.75rem, 2vw, 1.75rem); }
.roitune-card__text > .wp-block-heading { margin-top: 1.25rem; }
.roitune-card__text > .roitune-note { margin-top: auto; padding-top: 0.25rem; }
.roitune-card__text { gap: 0; }
.roitune-card__text > p:not(.roitune-pill) { margin-bottom: 1.75rem; }
.roitune-card__text > .wp-block-buttons { margin-top: 1.5rem; }
.roitune-note { border-top: 1px solid rgba(21, 23, 28, 0.1); }
.roitune-note p { margin: 0.75rem 0 0; }
.roitune-note__label { text-transform: uppercase; letter-spacing: 0.14em; font-weight: 700; }
.roitune-card__art { margin: 0; }
.roitune-card__art img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 22px; }
.roitune-stack > .roitune-card + .roitune-card { margin-top: 1.25rem; }
.has-sand-background-color.roitune-card { padding: clamp(1.75rem, 3.5vw, 3.25rem); }

/* Steps and pricing */
.roitune-step { background: var(--wp--preset--color--sand); border-radius: 24px; padding: 1.75rem; }
.roitune-step__num {
	display: inline-grid;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	margin: 0;
	border-radius: 12px;
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--base);
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.875rem;
	font-weight: 600;
}
.roitune-pricing { border-radius: 24px; padding: clamp(1.75rem, 3vw, 2.5rem); gap: 1.5rem; }
.roitune-pricing p { margin-bottom: 0; }

/* Closing */
.roitune-closing { overflow: hidden; }
.roitune-closing__art img { display: block; width: 100%; }

/* Footer */
.roitune-footer__links { list-style: none; padding: 0; }
.roitune-footer__links li { margin: 0.4rem 0; }
.roitune-footer a { text-decoration: none; }
.roitune-footer a:hover { text-decoration: underline; }

@media (max-width: 781px) {
	.roitune-hide-mobile { display: none !important; }
	.roitune-card__art img { aspect-ratio: 5 / 4; }
	.roitune-pricing { flex-direction: column; align-items: flex-start !important; }
}

/* Profit diagnosis page */
.roitune-diag-pitch { display: flex; flex-direction: column; }
.roitune-diag-pitch h1 { margin-top: 1.25rem; }
.roitune-ticks { list-style: none; padding: 0; margin-top: 1.5rem; }
.roitune-ticks li { position: relative; padding-left: 2rem; margin: 0.6rem 0; }
.roitune-ticks li::before {
	content: "✓";
	position: absolute;
	left: 0;
	top: 0.15rem;
	width: 1.35rem;
	height: 1.35rem;
	display: grid;
	place-items: center;
	border-radius: 999px;
	background: var(--wp--preset--color--ink);
	color: #9ef0b4;
	font-size: 0.75rem;
	font-weight: 700;
}
.roitune-timeline { padding-top: 1.5rem; border-top: 1px solid rgba(21, 23, 28, 0.1); }
.roitune-timeline__item { gap: 0.9rem; }
.roitune-timeline__item .roitune-step__num { width: 2rem; height: 2rem; border-radius: 10px; flex: none; }
.roitune-timeline__item p { margin: 0; }

.roitune-form-card {
	border-radius: 24px;
	padding: clamp(1.5rem, 3vw, 2.25rem);
	box-shadow: 0 30px 80px -24px rgba(26, 40, 92, 0.28), 0 0 0 1px rgba(21, 23, 28, 0.06);
}
.roitune-form-card > h2 { margin-top: 0; }
.roitune-form { display: grid; gap: 1rem; margin-top: 1.25rem; }
.roitune-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.roitune-field { display: grid; gap: 0.35rem; font-size: 0.8125rem; font-weight: 600; min-width: 0; }
.roitune-field input, .roitune-field select, .roitune-field textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 0.7rem 0.85rem;
	border: 1px solid #d9d5cc;
	border-radius: 10px;
	background: #fff;
	font: inherit;
	font-size: 0.9375rem;
	font-weight: 400;
	color: var(--wp--preset--color--ink);
}
.roitune-field input:focus, .roitune-field select:focus, .roitune-field textarea:focus { outline: 2px solid var(--wp--preset--color--orange); outline-offset: 1px; border-color: transparent; }
.roitune-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.roitune-fieldset legend { font-size: 0.8125rem; font-weight: 600; margin-bottom: 0.5rem; padding: 0; }
.roitune-checks { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.roitune-check { display: inline-flex; align-items: flex-start; gap: 0.5rem; font-size: 0.8125rem; cursor: pointer; }
.roitune-checks .roitune-check { position: relative; }
.roitune-checks .roitune-check input { position: absolute; opacity: 0; pointer-events: none; }
.roitune-checks .roitune-check span {
	padding: 0.4rem 0.8rem;
	border-radius: 999px;
	background: var(--wp--preset--color--sand);
	box-shadow: inset 0 0 0 1px rgba(21, 23, 28, 0.08);
	transition: background-color 0.12s, color 0.12s;
}
.roitune-checks .roitune-check input:checked + span { background: var(--wp--preset--color--ink); color: #fff; }
.roitune-checks .roitune-check input:focus-visible + span { outline: 2px solid var(--wp--preset--color--orange); outline-offset: 2px; }
.roitune-check--consent { color: var(--wp--preset--color--muted); line-height: 1.45; }
.roitune-check--consent input { margin-top: 0.2rem; accent-color: var(--wp--preset--color--orange); }
.roitune-form__submit {
	justify-self: start;
	border: 0;
	cursor: pointer;
	padding: 0.85rem 1.4rem;
	border-radius: 10px;
	background: var(--wp--preset--color--orange);
	color: #fff;
	font: inherit;
	font-weight: 600;
	font-size: 0.9375rem;
}
.roitune-form__submit:hover { background: var(--wp--preset--color--ink); }
.roitune-form__fine { margin: 0; font-size: 0.75rem; color: var(--wp--preset--color--muted); }
.roitune-form__error { margin: 0; padding: 0.75rem 1rem; border-radius: 10px; background: #fde2dd; color: #a3260e; font-size: 0.875rem; }
.roitune-form__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.roitune-form--done { text-align: center; padding: 2rem 0; }
.roitune-form__done-mark { width: 3rem; height: 3rem; margin: 0 auto; display: grid; place-items: center; border-radius: 999px; background: #dff5e6; color: #15692f; font-size: 1.4rem; font-weight: 700; }

.roitune-mini-card { border-radius: 24px; padding: 1.75rem; display: flex; flex-direction: column; }
.roitune-mini-card h3 { margin-top: 1rem; }

.roitune-faq { border-bottom: 1px solid var(--wp--preset--color--line); padding: 1.1rem 0; }
.roitune-faq summary { cursor: pointer; font-weight: 600; font-size: 1.0625rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.roitune-faq summary::-webkit-details-marker { display: none; }
.roitune-faq summary::after { content: "+"; font-weight: 400; font-size: 1.4rem; line-height: 1; color: var(--wp--preset--color--muted); }
.roitune-faq[open] summary::after { content: "−"; }
.roitune-faq p { margin: 0.75rem 0 0; }

@media (max-width: 600px) {
	.roitune-form__row { grid-template-columns: 1fr; }
}

/* Landing pages: full-width sections inside post content. */
.roitune-landing > .wp-block-post-content > .alignfull { max-width: none; }
.roitune-landing > .wp-block-post-content > .alignwide { max-width: var(--wp--style--global--wide-size); }

/* Contact */
.roitune-routes > .roitune-route { border-radius: 18px; padding: 1rem 1.25rem; }
.roitune-route p { margin: 0; }
.roitune-route p + p { margin-top: 0.35rem; }
.roitune-form-card__title { font-size: 1.5rem; margin-top: 0; }

/* Articles, pages and post lists */
.roitune-prose { font-size: 1.0625rem; line-height: 1.75; }
.roitune-prose h2 { margin-top: 2.5rem; font-size: 1.5rem; letter-spacing: -0.02em; }
.roitune-prose h3 { margin-top: 2rem; }
.roitune-prose a { color: var(--wp--preset--color--orange); }
.roitune-prose ul, .roitune-prose ol { padding-left: 1.25rem; }
.roitune-prose li + li { margin-top: 0.4rem; }
.roitune-article__dek { margin-top: 0.75rem; }
.roitune-article__img img { border-radius: 22px; }

.roitune-posts .wp-block-post-template { gap: 1.25rem; }
.roitune-post-card { height: 100%; box-sizing: border-box; padding: 1rem 1rem 1.5rem; border-radius: 22px; background: var(--wp--preset--color--sand); }
.roitune-post-card__img img { border-radius: 14px; }
.roitune-post-card .wp-block-post-title { margin-top: 0.5rem; letter-spacing: -0.02em; }
.roitune-post-card .wp-block-post-title a { text-decoration: none; }
.roitune-post-card .roitune-overline a { color: var(--wp--preset--color--orange); text-decoration: none; }
.roitune-empty { border-radius: 24px; padding: 3rem 1.5rem; }

/* 404 */
.roitune-404__code {
	display: table;
	margin-inline: auto !important;
	padding: 0.35rem 0.9rem;
	border-radius: 999px;
	background: var(--wp--preset--color--ink);
	color: #fff;
	font-family: var(--wp--preset--font-family--mono);
	font-weight: 600;
	letter-spacing: 0.1em;
}
