/*
Theme Name: ReadRite
Theme URI: https://cyberchute.com/
Author: Tim Trott
Author URI: https://timtrottwrites.com/
Description: A block theme for ReadRite™, the pronunciation intelligence layer for AI narration. Studio-dark hero, ReadRite blue and green palette, and a full homepage built from editable patterns. Every homepage section is also available in the block inserter under "ReadRite Sections".
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: readrite
Tags: block-patterns, full-site-editing, one-column, wide-blocks, custom-colors, custom-logo, editor-style
*/

/* -------------------------------------------------------------
   Base
------------------------------------------------------------- */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

/* Sections sit flush against one another. */
.wp-site-blocks > main,
.wp-site-blocks > footer { margin-block-start: 0; }
.rr-home > *,
.rr-page > * { margin-block: 0; }

[id] { scroll-margin-top: 96px; }

::selection { background: #5BD13F; color: #060F2B; }

sup.rr-tm,
h1 sup, h2 sup, h3 sup { font-size: 0.42em; vertical-align: super; line-height: 0; font-weight: 600; margin-left: 0.04em; }
.rr-statement sup, .rr-pipeline sup, .rr-cta__brand sup { font-size: 0.45em; vertical-align: super; line-height: 0; }

mark {
	background: linear-gradient(transparent 55%, rgba(91, 209, 63, 0.45) 55%);
	color: inherit;
	padding: 0 0.1em;
}

/* Headings inherit white in dark sections. */
.has-white-color h1,
.has-white-color h2,
.has-white-color h3,
.has-white-color h4 { color: inherit; }

/* -------------------------------------------------------------
   Header: logo top-left, menu top-right, sticky
------------------------------------------------------------- */
.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 100;
}
.admin-bar .wp-site-blocks > header.wp-block-template-part { top: 32px; }
@media (max-width: 782px) {
	.admin-bar .wp-site-blocks > header.wp-block-template-part { top: 46px; }
}
@media (max-width: 600px) {
	.admin-bar .wp-site-blocks > header.wp-block-template-part { top: 0; }
}

.rr-header {
	background: rgba(255, 255, 255, 0.94);
	-webkit-backdrop-filter: saturate(160%) blur(10px);
	backdrop-filter: saturate(160%) blur(10px);
	border-bottom: 1px solid var(--wp--preset--color--line);
	box-shadow: 0 6px 24px -18px rgba(11, 36, 99, 0.45);
	padding-top: 0.5rem;
	padding-bottom: 0.5rem;
}
.rr-header__inner { gap: 1.5rem; }

.rr-logo,
.rr-footer__logo { margin: 0; line-height: 0; flex-shrink: 0; }
.rr-logo img {
	height: clamp(56px, 6vw, 76px) !important;
	width: auto !important;
	display: block;
}

.rr-nav .wp-block-navigation-item__content {
	color: var(--wp--preset--color--navy);
	text-decoration: none;
	padding: 0.4rem 0.15rem;
	position: relative;
}
.rr-nav .wp-block-navigation__container { gap: 1.75rem; }
.rr-nav .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2px;
	border-radius: 2px;
	background: linear-gradient(90deg, #0B63CE, #5BD13F);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.25s ease;
}
.rr-nav .wp-block-navigation-item__content:hover::after,
.rr-nav .current-menu-item > .wp-block-navigation-item__content::after { transform: scaleX(1); }
.rr-nav .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--blue); }
.rr-nav .wp-block-navigation__responsive-container-open {
	color: var(--wp--preset--color--navy);
	padding: 0.4rem;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 10px;
}
.rr-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 2rem;
	font-size: 1.35rem;
}

/* -------------------------------------------------------------
   Shared section rhythm and type
------------------------------------------------------------- */
.rr-section {
	padding-top: var(--wp--preset--spacing--70);
	padding-bottom: var(--wp--preset--spacing--70);
	position: relative;
}

.rr-eyebrow {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--blue);
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin-bottom: 0.25rem;
}
.rr-eyebrow::before {
	content: "";
	width: 28px;
	height: 3px;
	border-radius: 3px;
	background: linear-gradient(90deg, #0B63CE, #5BD13F);
	flex-shrink: 0;
}
.rr-eyebrow.has-text-align-center { justify-content: center; }
.has-white-color .rr-eyebrow { color: var(--wp--preset--color--lime); }

.rr-section h2 { margin-top: 0.25rem; }

.rr-intro {
	font-size: var(--wp--preset--font-size--large);
	color: var(--wp--preset--color--muted);
	line-height: 1.55;
}
.has-white-color .rr-intro { color: rgba(255, 255, 255, 0.78); }

.rr-statement {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 600;
	line-height: 1.25;
	color: var(--wp--preset--color--navy);
	max-width: 880px !important;
	margin-top: 1.5rem !important;
	margin-bottom: 1.5rem !important;
}
.has-white-color .rr-statement { color: #fff; }
.rr-statement--left { max-width: none !important; }

.rr-callout {
	border-left: 4px solid var(--wp--preset--color--green);
	background: var(--wp--preset--color--surface);
	padding: 1.25rem 1.5rem;
	border-radius: 0 var(--wp--custom--radius) var(--wp--custom--radius) 0;
	font-weight: 600;
	color: var(--wp--preset--color--navy);
	margin-top: 2rem !important;
}

/* Outline buttons */
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	border: 2px solid currentColor;
	color: var(--wp--preset--color--navy);
	padding: calc(0.85rem - 2px) calc(1.6rem - 2px);
}
.has-white-color .wp-block-button.is-style-outline > .wp-block-button__link { color: #fff; }
.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: #fff;
	color: var(--wp--preset--color--ink);
	border-color: #fff;
}
.wp-block-button__link { transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease; }
.wp-block-button:not(.is-style-outline) > .wp-block-button__link {
	box-shadow: 0 10px 24px -12px rgba(42, 157, 39, 0.8);
}
.wp-block-button__link:hover { transform: translateY(-1px); }

/* -------------------------------------------------------------
   Hero
------------------------------------------------------------- */
.rr-hero-image { margin: 0 !important; line-height: 0; background: #060F2B; }
.rr-hero-image img {
	width: 100%;
	height: auto;
	display: block;
}
@media (max-width: 700px) {
	.rr-hero-image img {
		height: 230px;
		object-fit: cover;
		object-position: 28% center;
	}
}

.rr-hero {
	padding-top: var(--wp--preset--spacing--60);
	padding-bottom: var(--wp--preset--spacing--70);
	overflow: hidden;
}
.rr-hero::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 3px;
	background: linear-gradient(90deg, #0B63CE 0%, #12A3EC 55%, #5BD13F 100%);
}
.rr-hero__cols { gap: clamp(2rem, 5vw, 4.5rem); }
.rr-hero__title {
	font-size: var(--wp--preset--font-size--display);
	line-height: 1.05;
	letter-spacing: -0.02em;
	margin: 0;
}
.rr-hero__lede {
	font-size: var(--wp--preset--font-size--large);
	color: #B9D9F7;
	max-width: 36rem;
	margin-top: 1.25rem;
}
.rr-hero__buttons { margin-top: 2rem; gap: 0.85rem; }

/* "Now playing" listening panel */
.rr-listen {
	background: linear-gradient(160deg, rgba(18, 163, 236, 0.14), rgba(255, 255, 255, 0.04));
	border: 1px solid rgba(18, 163, 236, 0.35);
	border-radius: 20px;
	padding: 1.75rem 1.75rem 1.5rem;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03) inset, 0 30px 60px -30px rgba(18, 163, 236, 0.55);
	color: rgba(255, 255, 255, 0.86);
	position: relative;
}
.rr-listen > * { margin-block: 0 !important; }
.rr-listen > * + * { margin-block-start: 0.9rem !important; }
.rr-listen::after {
	/* waveform */
	content: "";
	display: block;
	height: 36px;
	margin-top: 1.25rem;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='36' viewBox='0 0 320 36'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' x2='1'%3E%3Cstop offset='0' stop-color='%235BD13F'/%3E%3Cstop offset='1' stop-color='%2312A3EC'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg fill='url(%23g)'%3E%3Crect x='0' y='14.0' width='3' height='7.9' rx='1.5'/%3E%3Crect x='5' y='7.9' width='3' height='20.2' rx='1.5'/%3E%3Crect x='10' y='5.2' width='3' height='25.7' rx='1.5'/%3E%3Crect x='15' y='9.1' width='3' height='17.7' rx='1.5'/%3E%3Crect x='20' y='7.5' width='3' height='21.0' rx='1.5'/%3E%3Crect x='25' y='4.5' width='3' height='27.0' rx='1.5'/%3E%3Crect x='30' y='4.2' width='3' height='27.7' rx='1.5'/%3E%3Crect x='35' y='7.6' width='3' height='20.7' rx='1.5'/%3E%3Crect x='40' y='13.6' width='3' height='8.8' rx='1.5'/%3E%3Crect x='45' y='9.3' width='3' height='17.3' rx='1.5'/%3E%3Crect x='50' y='11.5' width='3' height='13.0' rx='1.5'/%3E%3Crect x='55' y='11.0' width='3' height='14.0' rx='1.5'/%3E%3Crect x='60' y='5.4' width='3' height='25.1' rx='1.5'/%3E%3Crect x='65' y='1.0' width='3' height='34.0' rx='1.5'/%3E%3Crect x='70' y='4.5' width='3' height='27.0' rx='1.5'/%3E%3Crect x='75' y='10.4' width='3' height='15.1' rx='1.5'/%3E%3Crect x='80' y='13.1' width='3' height='9.9' rx='1.5'/%3E%3Crect x='85' y='11.8' width='3' height='12.3' rx='1.5'/%3E%3Crect x='90' y='13.1' width='3' height='9.7' rx='1.5'/%3E%3Crect x='95' y='9.2' width='3' height='17.7' rx='1.5'/%3E%3Crect x='100' y='1.3' width='3' height='33.4' rx='1.5'/%3E%3Crect x='105' y='3.0' width='3' height='30.0' rx='1.5'/%3E%3Crect x='110' y='4.9' width='3' height='26.2' rx='1.5'/%3E%3Crect x='115' y='10.5' width='3' height='15.0' rx='1.5'/%3E%3Crect x='120' y='10.7' width='3' height='14.7' rx='1.5'/%3E%3Crect x='125' y='10.0' width='3' height='16.0' rx='1.5'/%3E%3Crect x='130' y='13.4' width='3' height='9.2' rx='1.5'/%3E%3Crect x='135' y='5.9' width='3' height='24.2' rx='1.5'/%3E%3Crect x='140' y='3.8' width='3' height='28.3' rx='1.5'/%3E%3Crect x='145' y='4.6' width='3' height='26.9' rx='1.5'/%3E%3Crect x='150' y='7.5' width='3' height='21.0' rx='1.5'/%3E%3Crect x='155' y='7.7' width='3' height='20.6' rx='1.5'/%3E%3Crect x='160' y='5.0' width='3' height='26.1' rx='1.5'/%3E%3Crect x='165' y='8.6' width='3' height='18.8' rx='1.5'/%3E%3Crect x='170' y='13.9' width='3' height='8.1' rx='1.5'/%3E%3Crect x='175' y='7.5' width='3' height='21.0' rx='1.5'/%3E%3Crect x='180' y='5.7' width='3' height='24.6' rx='1.5'/%3E%3Crect x='185' y='8.5' width='3' height='19.0' rx='1.5'/%3E%3Crect x='190' y='7.7' width='3' height='20.5' rx='1.5'/%3E%3Crect x='195' y='3.2' width='3' height='29.7' rx='1.5'/%3E%3Crect x='200' y='3.1' width='3' height='29.8' rx='1.5'/%3E%3Crect x='205' y='9.1' width='3' height='17.8' rx='1.5'/%3E%3Crect x='210' y='10.9' width='3' height='14.3' rx='1.5'/%3E%3Crect x='215' y='9.0' width='3' height='18.0' rx='1.5'/%3E%3Crect x='220' y='11.5' width='3' height='13.0' rx='1.5'/%3E%3Crect x='225' y='9.2' width='3' height='17.5' rx='1.5'/%3E%3Crect x='230' y='4.3' width='3' height='27.3' rx='1.5'/%3E%3Crect x='235' y='1.0' width='3' height='34.0' rx='1.5'/%3E%3Crect x='240' y='3.4' width='3' height='29.3' rx='1.5'/%3E%3Crect x='245' y='10.9' width='3' height='14.2' rx='1.5'/%3E%3Crect x='250' y='11.9' width='3' height='12.3' rx='1.5'/%3E%3Crect x='255' y='13.7' width='3' height='8.6' rx='1.5'/%3E%3Crect x='260' y='13.7' width='3' height='8.6' rx='1.5'/%3E%3Crect x='265' y='7.3' width='3' height='21.5' rx='1.5'/%3E%3Crect x='270' y='3.3' width='3' height='29.4' rx='1.5'/%3E%3Crect x='275' y='2.2' width='3' height='31.7' rx='1.5'/%3E%3Crect x='280' y='8.1' width='3' height='19.8' rx='1.5'/%3E%3Crect x='285' y='9.3' width='3' height='17.4' rx='1.5'/%3E%3Crect x='290' y='8.1' width='3' height='19.7' rx='1.5'/%3E%3Crect x='295' y='8.5' width='3' height='19.1' rx='1.5'/%3E%3Crect x='300' y='12.3' width='3' height='11.4' rx='1.5'/%3E%3Crect x='305' y='6.7' width='3' height='22.6' rx='1.5'/%3E%3Crect x='310' y='2.5' width='3' height='31.0' rx='1.5'/%3E%3Crect x='315' y='5.3' width='3' height='25.5' rx='1.5'/%3E%3C/g%3E%3C/svg%3E") left center / auto 100% repeat-x;
	opacity: 0.9;
}
.rr-listen__label {
	font-family: var(--wp--preset--font-family--heading);
	text-transform: uppercase;
	letter-spacing: 0.16em;
	font-size: 0.78rem;
	font-weight: 600;
	color: #FF8A80;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}
.rr-listen__label::before {
	content: "";
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #FF5A4E;
	box-shadow: 0 0 0 0 rgba(255, 90, 78, 0.7);
	animation: rr-pulse 1.8s infinite;
}
@keyframes rr-pulse {
	0% { box-shadow: 0 0 0 0 rgba(255, 90, 78, 0.6); }
	70% { box-shadow: 0 0 0 9px rgba(255, 90, 78, 0); }
	100% { box-shadow: 0 0 0 0 rgba(255, 90, 78, 0); }
}
.rr-listen strong {
	color: #fff;
	text-decoration: underline wavy #FF5A4E;
	text-underline-offset: 5px;
	text-decoration-thickness: 2px;
}
.rr-listen__beat {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.45rem;
	font-weight: 600;
	color: #fff;
}
.rr-listen__payoff {
	font-weight: 600;
	color: var(--wp--preset--color--lime);
	padding-top: 0.9rem;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* -------------------------------------------------------------
   See How It Works / Problem
------------------------------------------------------------- */
.rr-how .rr-statement { margin-bottom: 0.5rem !important; }
.rr-consider {
	color: var(--wp--preset--color--muted);
	font-style: italic;
	margin-top: 0.5rem !important;
}
.rr-demo {
	gap: 1.5rem !important;
	margin-top: 1.5rem !important;
	margin-bottom: 2.5rem !important;
}
.rr-demo__card {
	background: #fff;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 20px;
	padding: 2rem 2rem 1.75rem;
	box-shadow: 0 24px 50px -32px rgba(11, 36, 99, 0.4);
	position: relative;
	overflow: hidden;
}
.rr-demo__card::before {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	width: 5px;
	background: var(--wp--preset--color--blue);
}
.rr-demo__card--alt::before { background: var(--wp--preset--color--green); }
.rr-demo__card > * { margin-block: 0 !important; }
.rr-demo__card > * + * { margin-block-start: 1rem !important; }
.rr-demo__tag {
	display: inline-block;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--blue);
	background: rgba(11, 99, 206, 0.08);
	padding: 0.3rem 0.7rem;
	border-radius: 999px;
}
.rr-demo__card--alt .rr-demo__tag {
	color: var(--wp--preset--color--green);
	background: rgba(42, 157, 39, 0.1);
}
.rr-demo__sentence {
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(1.5rem, 2.6vw, 2.1rem);
	font-weight: 500;
	line-height: 1.25;
	color: var(--wp--preset--color--navy);
}
.rr-demo__sentence strong {
	font-weight: 700;
	color: var(--wp--preset--color--blue);
	background: linear-gradient(transparent 62%, rgba(18, 163, 236, 0.22) 62%);
	padding: 0 0.08em;
}
.rr-demo__card--alt .rr-demo__sentence strong {
	color: var(--wp--preset--color--green);
	background: linear-gradient(transparent 62%, rgba(91, 209, 63, 0.28) 62%);
}
.rr-demo__say {
	color: var(--wp--preset--color--muted);
	display: flex;
	align-items: center;
	gap: 0.6rem;
}
.rr-demo__say::before {
	content: "";
	width: 22px;
	height: 16px;
	flex-shrink: 0;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 16'%3E%3Cpath d='M1 6h3l4-4v12l-4-4H1z' fill='%23000'/%3E%3Cpath d='M12 4.5a4.5 4.5 0 010 7M15 2a8 8 0 010 12' stroke='%23000' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 16'%3E%3Cpath d='M1 6h3l4-4v12l-4-4H1z' fill='%23000'/%3E%3Cpath d='M12 4.5a4.5 4.5 0 010 7M15 2a8 8 0 010 12' stroke='%23000' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.rr-demo__say strong {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.15rem;
	color: var(--wp--preset--color--body-copy);
	letter-spacing: 0.02em;
}

.rr-pivot {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--xx-large);
	font-weight: 700;
	line-height: 1.12;
	color: var(--wp--preset--color--navy);
	margin-bottom: 2.25rem !important;
}
.rr-pivot span {
	background: linear-gradient(90deg, #0B63CE, #2A9D27);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* -------------------------------------------------------------
   Heteronym dictionary card
------------------------------------------------------------- */
.rr-heteronym .wp-block-columns { gap: clamp(2rem, 5vw, 4.5rem); }
.rr-dict {
	background: #fff;
	border-radius: 22px;
	border: 1px solid var(--wp--preset--color--line);
	padding: clamp(1.75rem, 4vw, 2.75rem);
	box-shadow: 0 30px 60px -36px rgba(11, 36, 99, 0.45);
	position: relative;
}
.rr-dict::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 6px;
	border-radius: 22px 22px 0 0;
	background: linear-gradient(90deg, #0B63CE 0%, #12A3EC 55%, #5BD13F 100%);
}
.rr-dict > * { margin-block: 0 !important; max-width: none !important; }
.rr-dict > * + * { margin-block-start: 1rem !important; }
.rr-dict__word {
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(2.2rem, 4.5vw, 3.2rem);
	font-weight: 700;
	line-height: 1;
	color: var(--wp--preset--color--navy);
	letter-spacing: 0.01em;
}
.rr-dict__meta {
	color: var(--wp--preset--color--muted);
	font-size: 1.05rem;
	margin-block-start: 0.6rem !important;
	padding-bottom: 1rem;
	border-bottom: 1px dashed var(--wp--preset--color--line);
}
.rr-dict__meta strong { color: var(--wp--preset--color--blue); font-weight: 600; }
.rr-dict__def strong { color: var(--wp--preset--color--green); font-family: var(--wp--preset--font-family--heading); }
.rr-dict__examples-label {
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}
.rr-dict__examples {
	list-style: none;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.6rem;
	margin-block-start: 0.6rem !important;
}
.rr-dict__examples li {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 12px;
	padding: 0.65rem 0.9rem;
	color: var(--wp--preset--color--muted);
	margin: 0;
}
.rr-dict__examples li strong {
	color: var(--wp--preset--color--navy);
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.1rem;
}
.rr-dict__examples li em { color: var(--wp--preset--color--body-copy); }
@media (max-width: 480px) {
	.rr-dict__examples { grid-template-columns: 1fr; }
}

/* -------------------------------------------------------------
   Solution (navy)
------------------------------------------------------------- */
.rr-solution {
	background-image:
		radial-gradient(ellipse at 15% 0%, rgba(18, 163, 236, 0.22), transparent 55%),
		radial-gradient(ellipse at 100% 100%, rgba(91, 209, 63, 0.14), transparent 50%);
	color: rgba(255, 255, 255, 0.84);
}
.rr-solution .rr-statement { font-size: var(--wp--preset--font-size--x-large); }
.rr-solution strong { color: #fff; }
.rr-goal {
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(1.7rem, 3.4vw, 2.6rem);
	font-weight: 700;
	line-height: 1.15;
	margin-top: 2rem !important;
	margin-bottom: 2rem !important;
	padding: 1.75rem 1rem;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.rr-goal::before,
.rr-goal::after { color: var(--wp--preset--color--lime); }
.rr-goal::before { content: "\201C"; }
.rr-goal::after { content: "\201D"; }

/* -------------------------------------------------------------
   Why: the correction loop
------------------------------------------------------------- */
.rr-why .wp-block-columns { gap: clamp(2rem, 5vw, 4.5rem); }
.rr-loop__label {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: 1.15rem;
	color: var(--wp--preset--color--navy);
}
.rr-loop {
	list-style: none;
	counter-reset: rr-loop;
	padding: 0;
	margin-top: 1rem;
	position: relative;
}
.rr-loop::before {
	content: "";
	position: absolute;
	left: 19px;
	top: 20px;
	bottom: 20px;
	border-left: 2px dashed var(--wp--preset--color--line);
}
.rr-loop li {
	counter-increment: rr-loop;
	position: relative;
	padding: 0.55rem 0 0.55rem 3.5rem;
	margin: 0 0 0.45rem;
	min-height: 40px;
	display: flex;
	align-items: center;
	font-weight: 500;
}
.rr-loop li::before {
	content: counter(rr-loop);
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: #fff;
	border: 2px solid var(--wp--preset--color--line);
	color: var(--wp--preset--color--navy);
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
}
.rr-loop li:last-child::before {
	content: "\21BB";
	background: #FFF1F0;
	border-color: #FFC9C4;
	color: #D9382C;
	font-size: 1.25rem;
}
.rr-loop li:last-child { color: #B42318; }

.is-style-readrite-card {
	background: #fff;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius);
	padding: 1.75rem;
	box-shadow: 0 18px 40px -30px rgba(11, 36, 99, 0.45);
}
.is-style-readrite-card > * { margin-block: 0 !important; max-width: none !important; }
.is-style-readrite-card > * + * { margin-block-start: 0.65rem !important; }

.rr-why__fix {
	margin-top: 2rem !important;
	border-left: 5px solid var(--wp--preset--color--green);
	background: linear-gradient(135deg, rgba(91, 209, 63, 0.08), rgba(18, 163, 236, 0.06)), #fff;
}
.rr-why__fix-lead {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: 1.2rem;
	line-height: 1.35;
	color: var(--wp--preset--color--navy);
}

/* -------------------------------------------------------------
   Save time: workflow comparison
------------------------------------------------------------- */
.rr-flowbox {
	border-radius: 20px;
	padding: 1.5rem clamp(1.25rem, 3vw, 2rem) 1.75rem;
	margin-top: 1.5rem !important;
}
.rr-flowbox > * { max-width: none !important; }
.rr-flowbox h3 {
	font-size: 0.9rem;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	margin: 0;
}
.rr-flowbox--without {
	background: #fff;
	border: 1px solid var(--wp--preset--color--line);
}
.rr-flowbox--without h3 { color: var(--wp--preset--color--muted); }
.rr-flowbox--with {
	background: var(--wp--preset--color--navy);
	background-image: radial-gradient(ellipse at 100% 0%, rgba(91, 209, 63, 0.22), transparent 60%);
	box-shadow: 0 30px 60px -36px rgba(11, 36, 99, 0.7);
}
.rr-flowbox--with h3 { color: var(--wp--preset--color--lime); }

.rr-flow {
	list-style: none;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 2.2rem;
	margin-top: 1.1rem !important;
}
.rr-flow li {
	position: relative;
	margin: 0;
	padding: 0.55rem 1.1rem;
	border-radius: 999px;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: 1.05rem;
	line-height: 1.2;
	white-space: nowrap;
	border: 1px solid transparent;
}
.rr-flow li:not(:last-child)::after {
	content: "\2192";
	position: absolute;
	right: -1.6rem;
	top: 50%;
	transform: translateY(-52%);
	font-weight: 400;
	font-size: 1.15rem;
}
.rr-flowbox--without .rr-flow li {
	background: var(--wp--preset--color--surface);
	border-color: var(--wp--preset--color--line);
	color: var(--wp--preset--color--muted);
}
.rr-flowbox--without .rr-flow li:nth-child(n+3) {
	background: #FFF4F2;
	border-color: #FFD3CD;
	color: #B42318;
}
.rr-flowbox--without .rr-flow li::after { color: #9AA6BD; }
.rr-flowbox--with .rr-flow li {
	background: rgba(255, 255, 255, 0.07);
	border-color: rgba(255, 255, 255, 0.18);
	color: #fff;
}
.rr-flowbox--with .rr-flow li::after { color: rgba(255, 255, 255, 0.55); }
.rr-flowbox--with .rr-flow li.rr-flow__brand {
	background: linear-gradient(90deg, #12A3EC, #5BD13F);
	border-color: transparent;
	color: var(--wp--preset--color--ink);
	box-shadow: 0 0 24px rgba(91, 209, 63, 0.45);
}

.rr-scale {
	margin-top: 1rem !important;
	gap: 1.25rem !important;
}
.rr-scale .wp-block-column {
	background: #fff;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius);
	padding: 1.25rem 1.5rem;
}
.rr-scale .wp-block-column p { margin: 0; }

/* -------------------------------------------------------------
   Card grids (Who / More)
------------------------------------------------------------- */
.rr-grid {
	gap: 1.25rem;
	margin-top: 2.5rem !important;
}
.rr-who .rr-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}
.rr-who .rr-card {
	flex: 0 1 calc((100% - 3.75rem) / 4);
	min-width: 15rem;
	margin: 0 !important;
}
@media (max-width: 600px) {
	.rr-who .rr-card { flex-basis: 100%; }
}
.rr-card {
	position: relative;
	overflow: hidden;
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
	padding-top: 2rem;
}
.rr-card::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 4px;
	background: linear-gradient(90deg, #0B63CE, #12A3EC 55%, #5BD13F);
	transform: scaleX(0.18);
	transform-origin: left;
	transition: transform 0.35s ease;
}
.rr-card:hover { transform: translateY(-4px); box-shadow: 0 28px 50px -30px rgba(11, 36, 99, 0.55); }
.rr-card:hover::before { transform: scaleX(1); }
.rr-card h3 { margin: 0; font-size: 1.25rem; }
.rr-card p { color: var(--wp--preset--color--muted); font-size: 0.98rem; }

.rr-grid--dark .is-style-readrite-card {
	background: rgba(255, 255, 255, 0.045);
	border-color: rgba(255, 255, 255, 0.12);
	box-shadow: none;
}
.rr-grid--dark .rr-card h3 { color: #fff; }
.rr-grid--dark .rr-card p { color: rgba(255, 255, 255, 0.72); }
.rr-grid--dark .rr-card:hover { border-color: rgba(91, 209, 63, 0.5); box-shadow: 0 28px 50px -30px rgba(18, 163, 236, 0.5); }

/* -------------------------------------------------------------
   Control: review mock-up
------------------------------------------------------------- */
.rr-control .wp-block-columns { gap: clamp(2rem, 5vw, 4.5rem); }
.rr-review {
	background: #fff;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 20px;
	padding: 3.25rem 1.75rem 1.75rem;
	box-shadow: 0 40px 70px -40px rgba(11, 36, 99, 0.55);
	position: relative;
	overflow: hidden;
}
.rr-review::before {
	/* window bar */
	content: "ReadRite review";
	position: absolute;
	inset: 0 0 auto 0;
	height: 2.25rem;
	display: flex;
	align-items: center;
	padding-left: 4.5rem;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
	background:
		radial-gradient(circle at 1.15rem 50%, #FF5F57 0.3rem, transparent 0.32rem),
		radial-gradient(circle at 2.05rem 50%, #FEBC2E 0.3rem, transparent 0.32rem),
		radial-gradient(circle at 2.95rem 50%, #28C840 0.3rem, transparent 0.32rem),
		var(--wp--preset--color--surface);
	border-bottom: 1px solid var(--wp--preset--color--line);
}
.rr-review > * { margin-block: 0 !important; max-width: none !important; }
.rr-review > * + * { margin-block-start: 1rem !important; }
.rr-review__intro { color: var(--wp--preset--color--muted); font-size: 0.95rem; }
.rr-review__alert {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	padding: 0.85rem 1rem;
	border-radius: 12px;
	background: #FFF8E6;
	border: 1px solid #FBE3A6;
	color: #7A4B00;
}
.rr-review__alert::before {
	content: "!";
	flex-shrink: 0;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: #F5A524;
	color: #fff;
	font-weight: 800;
	font-size: 0.85rem;
}
.rr-review__sample {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.5rem;
	font-weight: 500;
	color: var(--wp--preset--color--navy);
	padding: 0.5rem 0;
}
.rr-review__sample sup.rr-tm,
h1 sup, h2 sup, h3 sup { font-size: 0.42em; vertical-align: super; line-height: 0; font-weight: 600; margin-left: 0.04em; }
.rr-statement sup, .rr-pipeline sup, .rr-cta__brand sup { font-size: 0.45em; vertical-align: super; line-height: 0; }

mark {
	background: rgba(245, 165, 36, 0.22);
	border-bottom: 2px solid #F5A524;
	border-radius: 4px;
	padding: 0 0.15em;
}
.rr-review__choices { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.rr-review__choices span {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	padding: 0.5rem 1.1rem;
	border-radius: 999px;
	border: 2px solid var(--wp--preset--color--line);
	color: var(--wp--preset--color--muted);
}
.rr-review__choices span.is-picked {
	border-color: var(--wp--preset--color--green);
	background: rgba(91, 209, 63, 0.14);
	color: #1C6E1A;
}
.rr-review__choices span.is-picked::before { content: "\2713\00a0"; }
.rr-review__decide {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.35rem;
	font-weight: 700;
	color: var(--wp--preset--color--green);
	padding-top: 1rem;
	border-top: 1px solid var(--wp--preset--color--line);
}

/* -------------------------------------------------------------
   Works with: pipeline
------------------------------------------------------------- */
.rr-works .wp-block-columns { gap: clamp(2rem, 5vw, 4.5rem); }
.rr-pipeline {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	max-width: 380px;
	margin-inline: auto;
}
.rr-pipeline li {
	position: relative;
	text-align: center;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	font-size: 0.95rem;
	color: var(--wp--preset--color--navy);
	background: #fff;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 14px;
	padding: 1rem 1.25rem;
	margin: 0 0 2.5rem;
	box-shadow: 0 14px 30px -24px rgba(11, 36, 99, 0.5);
}
.rr-pipeline li:not(:last-child)::after {
	content: "\2193";
	position: absolute;
	left: 50%;
	bottom: -2.2rem;
	transform: translateX(-50%);
	font-size: 1.5rem;
	line-height: 2rem;
	font-weight: 400;
	color: var(--wp--preset--color--sky);
	letter-spacing: 0;
}
.rr-pipeline li:last-child { margin-bottom: 0; }
.rr-pipeline li.rr-pipeline__brand {
	background: linear-gradient(90deg, #0B63CE, #12A3EC 55%, #5BD13F);
	color: #fff;
	border-color: transparent;
	font-size: 1.15rem;
	box-shadow: 0 20px 40px -20px rgba(18, 163, 236, 0.75);
}
.rr-pipeline li.rr-pipeline__final {
	background: var(--wp--preset--color--navy);
	color: #fff;
	border-color: transparent;
}

/* -------------------------------------------------------------
   Benefit: check list
------------------------------------------------------------- */
.rr-benefit .wp-block-columns { gap: clamp(2rem, 5vw, 4.5rem); }
.is-style-readrite-check {
	list-style: none;
	padding: 0;
	margin: 0;
}
.is-style-readrite-check li {
	position: relative;
	padding: 1rem 1.25rem 1rem 3.75rem;
	margin: 0 0 0.75rem;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius);
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: 1.15rem;
	color: var(--wp--preset--color--navy);
}
.is-style-readrite-check li::before {
	content: "";
	position: absolute;
	left: 1.1rem;
	top: 50%;
	transform: translateY(-50%);
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat,
		var(--wp--preset--color--green);
	box-shadow: 0 6px 14px -6px rgba(42, 157, 39, 0.8);
}

/* -------------------------------------------------------------
   Closing CTA
------------------------------------------------------------- */
.rr-cta {
	color: rgba(255, 255, 255, 0.82);
	overflow: hidden;
}
.rr-cta::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 3px;
	background: linear-gradient(90deg, #0B63CE 0%, #12A3EC 55%, #5BD13F 100%);
}
.rr-cta h2 { font-size: var(--wp--preset--font-size--xx-large); }
.rr-cta__beat {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.6rem;
	font-weight: 700;
	color: #FF8A80;
}
.rr-cta__quote {
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(1.8rem, 4vw, 2.8rem);
	font-weight: 700;
	font-style: italic;
	color: #fff;
	text-shadow: 0 0 40px rgba(18, 163, 236, 0.55);
	margin-top: 1.5rem !important;
	margin-bottom: 1.5rem !important;
}
.rr-cta__brand {
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(2.4rem, 5vw, 3.4rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	color: #fff;
	margin-top: 3rem !important;
	line-height: 1;
}
.rr-cta__brand span { color: var(--wp--preset--color--lime); }
.rr-cta__tagline {
	font-size: var(--wp--preset--font-size--large);
	color: #B9D9F7;
	margin-top: 0.75rem !important;
}
.rr-cta .wp-block-buttons { margin-top: 2rem; }

/* -------------------------------------------------------------
   Footer
------------------------------------------------------------- */
.rr-footer {
	padding-top: var(--wp--preset--spacing--60);
	padding-bottom: 1.5rem;
	border-top: 1px solid var(--wp--preset--color--line);
}
.rr-footer__inner { gap: 1.5rem; }
.rr-footer__brand { gap: 1.25rem; }
.rr-footer__logo img { height: 64px !important; width: auto !important; display: block; }
.rr-footer__tagline {
	margin: 0;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 500;
	color: var(--wp--preset--color--navy);
	max-width: 16rem;
	line-height: 1.35;
}
.rr-footer__nav .wp-block-navigation-item__content { color: var(--wp--preset--color--navy); text-decoration: none; }
.rr-footer__nav .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--green); }
.rr-footer__legal {
	max-width: var(--wp--style--global--wide-size) !important;
	margin-top: 2.5rem !important;
	padding-top: 1.25rem;
	border-top: 1px solid var(--wp--preset--color--line);
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
}

/* -------------------------------------------------------------
   Inner pages (About, Contact, posts)
------------------------------------------------------------- */
.rr-page-banner {
	padding-top: var(--wp--preset--spacing--60);
	padding-bottom: var(--wp--preset--spacing--60);
	position: relative;
}
.rr-page-banner::after {
	content: "";
	position: absolute;
	inset: auto 0 0 0;
	height: 3px;
	background: linear-gradient(90deg, #0B63CE 0%, #12A3EC 55%, #5BD13F 100%);
}
.rr-page-banner__title { margin: 0; font-size: var(--wp--preset--font-size--xx-large); }
.rr-page-banner__meta { color: #B9D9F7; margin-top: 0.75rem; }
.rr-page-image { margin-top: var(--wp--preset--spacing--50) !important; }
.rr-page-image img { border-radius: 18px; }
.rr-page-content {
	padding-top: var(--wp--preset--spacing--60);
	padding-bottom: var(--wp--preset--spacing--70);
}
.rr-page-content > .alignfull:first-child { margin-top: calc(-1 * var(--wp--preset--spacing--60)) !important; }
.rr-page-content > .alignfull:last-child { margin-bottom: calc(-1 * var(--wp--preset--spacing--70)) !important; }
.rr-post-item { padding-bottom: 2rem; margin-bottom: 2rem; border-bottom: 1px solid var(--wp--preset--color--line); }
.rr-post-item h2 { font-size: var(--wp--preset--font-size--x-large); }
.rr-post-item h2 a { color: var(--wp--preset--color--navy); text-decoration: none; }
.rr-post-item h2 a:hover { color: var(--wp--preset--color--blue); }
.rr-post-nav { padding-bottom: var(--wp--preset--spacing--60); display: flex; justify-content: space-between; gap: 1rem; }

/* Forms (Contact Form 7, WPForms, core search) pick up the palette. */
.rr-page-content input[type="text"],
.rr-page-content input[type="email"],
.rr-page-content input[type="tel"],
.rr-page-content input[type="url"],
.rr-page-content textarea,
.rr-page-content select,
.wp-block-search__input {
	width: 100%;
	font: inherit;
	color: var(--wp--preset--color--body-copy);
	background: #fff;
	border: 1px solid #C7D3E6;
	border-radius: 12px;
	padding: 0.8rem 1rem;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.rr-page-content input:focus,
.rr-page-content textarea:focus,
.rr-page-content select:focus,
.wp-block-search__input:focus {
	outline: none;
	border-color: var(--wp--preset--color--blue);
	box-shadow: 0 0 0 4px rgba(11, 99, 206, 0.15);
}
.rr-page-content input[type="submit"],
.rr-page-content button[type="submit"] {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: 1.05rem;
	color: #fff;
	background: var(--wp--preset--color--green);
	border: 0;
	border-radius: 999px;
	padding: 0.85rem 1.8rem;
	cursor: pointer;
}
.rr-page-content input[type="submit"]:hover,
.rr-page-content button[type="submit"]:hover { background: var(--wp--preset--color--lime); color: var(--wp--preset--color--ink); }

.rr-search { max-width: 520px !important; margin-inline: auto !important; }
.rr-search .wp-block-search__button {
	border-radius: 999px;
	background: var(--wp--preset--color--green);
	color: #fff;
	border: 0;
	padding-inline: 1.4rem;
}
.rr-404 { min-height: 55vh; display: flex; flex-direction: column; justify-content: center; }

/* -------------------------------------------------------------
   Small screens
------------------------------------------------------------- */
@media (max-width: 781px) {
	.rr-hero__title { font-size: clamp(2.2rem, 9vw, 2.8rem); }
	.rr-flow li { font-size: 0.95rem; }
	.rr-pivot { font-size: 1.9rem; }
	.rr-footer__inner { flex-direction: column; align-items: flex-start !important; }
	.rr-footer__nav .wp-block-navigation__container { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Keep the hero section flush under the banner in the Site Editor too. */
.rr-hero-image + .rr-hero { margin-block-start: 0 !important; }
.rr-page .rr-page-content { min-height: 40vh; }
