/* rocosearch.com page sections. Loaded after base.css, which holds the header, buttons, menu and footer. */

.skip {
	position: absolute;
	left: -9999px;
}

.skip:focus {
	left: 16px;
	top: 16px;
	z-index: 50;
	padding: 10px 14px;
	border-radius: 8px;
	background: #fff;
}

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

.wrap--narrow {
	max-width: 820px;
}

.nav a {
	white-space: nowrap;
}

/* The header button keeps its white text: the menu link colours must not win. */
.nav a.button--primary,
.nav a.button--primary:hover {
	color: #fff;
}

/* Hero, centred like the category leaders */
.hero--center {
	display: block;
	max-width: 1120px;
	padding: 40px 24px 0;
	text-align: center;
}

.hero--center h1 {
	max-width: 920px;
	margin: 14px auto 0;
	font-size: clamp(34px, 5.4vw, 58px);
}

.hero--center .lead {
	max-width: 760px;
	margin: 20px auto 0;
}

.hero__picture {
	margin: 40px auto -120px;
	max-width: 1080px;
	position: relative;
	z-index: 1;
}

.hero__picture img,
.reason__picture img {
	display: block;
	width: 100%;
	height: auto;
}

.hero + .section {
	padding-top: 180px;
}

.featurerow {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 18px 26px;
	margin: 32px auto 0;
	padding: 0;
	max-width: 980px;
	list-style: none;
	font-size: 13px;
	font-weight: 500;
	color: var(--rs-text-2);
}

.featurerow li {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	width: 108px;
	line-height: 1.3;
}

.featurerow span {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: var(--rs-accent-tint);
	color: var(--rs-accent);
}

.featurerow svg,
.card__icon svg {
	width: 22px;
	height: 22px;
}

.actions--center {
	justify-content: center;
	margin-top: 32px;
}

.button--primary {
	box-shadow: 0 8px 20px rgba(79, 70, 229, 0.28);
}

.button--light {
	background: #fff;
	color: var(--rs-ink);
}

.button--light:hover {
	background: var(--rs-accent-tint);
	color: var(--rs-ink);
}

.badges {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px 14px;
	margin: 22px 0 0;
	padding: 0;
	list-style: none;
	font-size: 13px;
	color: var(--rs-text-2);
}

.badges li {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border: 1px solid var(--rs-border);
	border-radius: 999px;
	background: #fff;
	text-align: left;
}

.badges svg {
	width: 18px;
	height: 18px;
	flex: none;
	color: var(--rs-success);
}

.badges b {
	color: var(--rs-ink);
}

/* Sections */
.section--tight {
	padding: 48px 0;
}

.section__intro--center {
	margin-left: auto;
	margin-right: auto;
	max-width: 760px;
	text-align: center;
}

.section__intro--center h2 {
	text-wrap: balance;
}

.grid {
	display: grid;
	gap: 20px;
}

.grid--3 {
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid .card {
	flex: none;
}

.tile {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 4px;
}

.tile p {
	font-size: 15px;
	line-height: 1.55;
	color: var(--rs-text-2);
}

.tile .card__icon,
.grid .card__icon {
	margin-bottom: 4px;
}

/* Proof strip */
.proof__heading {
	text-align: center;
	font-size: clamp(24px, 3.4vw, 30px);
}

.proof {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 12px 28px;
	margin: 32px 0 0;
	padding: 0;
	list-style: none;
}

.proof li {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding-left: 16px;
	border-left: 3px solid var(--rs-accent-line);
}

.proof b {
	font-family: var(--rs-font-display);
	font-weight: 600;
	font-size: 34px;
	letter-spacing: -0.025em;
	line-height: 1.1;
	color: var(--rs-accent);
}

.proof span {
	font-size: 14px;
	line-height: 1.45;
	color: var(--rs-text-2);
}

/* The seven reasons */
.wrap--wide {
	max-width: 1240px;
}

.reason {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	gap: 56px;
	align-items: center;
	padding: 36px 0;
}

.reason--flip .reason__picture {
	order: 2;
}

.reason__copy {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.reason__heading {
	font-family: var(--rs-font-display);
	font-weight: 600;
	font-size: clamp(24px, 3.2vw, 32px);
	letter-spacing: -0.025em;
	line-height: 1.12;
}

.reason__copy p {
	font-size: 16px;
	line-height: 1.6;
	color: var(--rs-text-2);
}

.reason__copy .eyebrow {
	font-size: 13px;
	line-height: 1.4;
	color: var(--rs-accent);
}

.tagpro {
	margin-left: 6px;
	padding: 2px 7px;
	border-radius: 6px;
	background: var(--rs-accent);
	color: #fff;
	font-size: 11px;
	letter-spacing: 0.04em;
}

.ticks {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 4px 0 0;
	padding: 0;
	list-style: none;
	font-weight: 600;
	font-size: 15px;
}

.ticks li {
	display: flex;
	align-items: center;
	gap: 10px;
}

.ticks svg {
	width: 22px;
	height: 22px;
	flex: none;
	padding: 4px;
	border-radius: 50%;
	background: var(--rs-success-bg);
	color: var(--rs-success);
	stroke-width: 3;
}

.more {
	font-weight: 600;
	text-decoration: none;
}

.more:hover {
	text-decoration: underline;
}

a.card--link {
	color: inherit;
	text-decoration: none;
	transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

a.card--link:hover {
	border-color: var(--rs-accent-line);
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
	transform: translateY(-2px);
}

a.card--link .more {
	margin-top: auto;
	padding-top: 4px;
	color: var(--rs-accent);
}

a.card--link:hover .more {
	text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
	a.card--link {
		transition: none;
	}

	a.card--link:hover {
		transform: none;
	}
}

/* Free and Pro */
.compare {
	/* Keeps the hidden screen-reader labels inside the scrolling box on phones. */
	position: relative;
	overflow-x: auto;
	border: 1px solid var(--rs-border);
	border-radius: 14px;
	background: #fff;
}

.compare table {
	width: 100%;
	min-width: 520px;
	border-collapse: collapse;
	font-size: 15px;
}

.compare th,
.compare td {
	padding: 13px 18px;
	border-bottom: 1px solid var(--rs-border);
	text-align: center;
}

.compare tbody th {
	text-align: left;
	font-weight: 500;
}

.compare thead th {
	font-family: var(--rs-font-display);
	font-size: 20px;
	font-weight: 600;
}

.compare thead th:last-child,
.compare td:last-child {
	background: var(--rs-accent-tint);
}

.compare tr:last-child th,
.compare tr:last-child td {
	border-bottom: 0;
}

.compare__price td,
.compare__price th {
	font-weight: 600;
}

.yes svg {
	width: 20px;
	height: 20px;
	color: var(--rs-success);
	stroke-width: 3;
}

.no {
	color: var(--rs-border-strong);
}

.note--center {
	margin-top: 16px;
	text-align: center;
}

/* Questions */
.faqs {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.faqs details {
	border: 1px solid var(--rs-border);
	border-radius: 12px;
	background: #fff;
}

.faqs summary {
	position: relative;
	padding: 18px 52px 18px 20px;
	font-weight: 600;
	font-size: 17px;
	cursor: pointer;
	list-style: none;
}

.faqs summary::-webkit-details-marker {
	display: none;
}

.faqs summary::after {
	content: "";
	position: absolute;
	right: 22px;
	top: 50%;
	width: 9px;
	height: 9px;
	border-right: 2px solid var(--rs-accent);
	border-bottom: 2px solid var(--rs-accent);
	transform: translateY(-70%) rotate(45deg);
	transition: transform 0.2s ease;
}

.faqs details[open] summary::after {
	transform: translateY(-30%) rotate(-135deg);
}

.faqs p {
	padding: 0 20px 20px;
	font-size: 16px;
	line-height: 1.6;
	color: var(--rs-text-2);
}

/* Closing band */
.closing {
	padding: 72px 0;
	background: var(--rs-accent);
	color: #fff;
	text-align: center;
}

.closing h2 {
	text-wrap: balance;
}

.closing p {
	max-width: 620px;
	margin: 14px auto 0;
	font-size: 18px;
	color: #e0e7ff;
}

.closing .closing__note {
	margin-top: 16px;
	font-size: 14px;
}

.closing .button--light {
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.25);
}

/* Feature pages */
.pagehero {
	max-width: 880px;
	margin: 0 auto;
	padding: 48px 24px 24px;
	text-align: center;
}

.pagehero h1 {
	margin-top: 14px;
	font-size: clamp(32px, 5vw, 50px);
}

.pagehero .lead {
	margin: 18px auto 0;
	max-width: 680px;
}

.pagepicture {
	max-width: 960px;
	margin: 24px auto 0;
	padding: 0 24px;
}

.pagepicture img {
	display: block;
	width: 100%;
	height: auto;
}

.prose {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.prose h2 {
	margin-top: 8px;
}

.prose p,
.prose li {
	font-size: 17px;
	line-height: 1.65;
	color: var(--rs-text-2);
}

.prose b,
.prose strong {
	color: var(--rs-ink);
}

.prose ul {
	margin: 0;
	padding-left: 22px;
}

.steps3 {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 20px;
}

.callout {
	padding: 18px 20px;
	border-radius: 12px;
	background: var(--rs-accent-tint);
	font-size: 15px;
	line-height: 1.55;
	color: #3730a3;
}

@media (max-width: 860px) {
	.reason {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
		padding: 28px 0;
	}

	.reason--flip .reason__picture {
		order: 0;
	}

	.hero__picture {
		margin-bottom: -60px;
	}

	.hero + .section {
		padding-top: 100px;
	}

	.featurerow li {
		width: 92px;
		font-size: 12px;
	}
}

@media (max-width: 600px) {
	.hero--center {
		padding-top: 16px;
	}

	.badges li {
		width: 100%;
		justify-content: flex-start;
	}

	.closing {
		padding: 56px 0;
	}
}

/* The phone menu waits off-screen to the right; never let that widen the page. */
html,
body {
	overflow-x: clip;
}

.price--center {
	margin: 0 auto;
	max-width: 440px;
}

.steps3 .card p + p {
	margin-top: 0;
}

/* Comparison pages */
.checked {
	margin-top: 18px;
	font-size: 14px;
	color: var(--rs-text-3);
}

.compare--text table {
	min-width: 640px;
}

.compare--text th,
.compare--text td {
	text-align: left;
	vertical-align: top;
	line-height: 1.5;
}

.compare--text tbody th {
	width: 26%;
	font-weight: 600;
}

.compare--text td {
	width: 37%;
	color: var(--rs-text-2);
}

.compare--text thead th:last-child,
.compare--text td:last-child {
	background: transparent;
}

.compare--text thead th:nth-child(2),
.compare--text td:nth-child(2) {
	background: var(--rs-accent-tint);
	color: var(--rs-ink);
}

.choose {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 20px;
}

.choose .card {
	gap: 16px;
}

.choose .ticks li {
	align-items: flex-start;
	font-size: 16px;
	line-height: 1.5;
	color: var(--rs-text-2);
}

.card--pick {
	border-color: var(--rs-accent);
	box-shadow: 0 0 0 3px var(--rs-accent-tint);
}

.sources {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 24px;
	border: 1px solid var(--rs-border);
	border-radius: 14px;
	font-size: 14px;
	line-height: 1.6;
	color: var(--rs-text-2);
}

.sources h2 {
	font-size: 20px;
}

.sources ul {
	margin: 0;
	padding-left: 20px;
}

/* Documentation */
.docs {
	display: grid;
	grid-template-columns: 230px minmax(0, 1fr);
	gap: 56px;
	align-items: start;
	padding-top: 48px;
	padding-bottom: 72px;
}

.docs__nav {
	position: sticky;
	top: 24px;
	font-size: 15px;
}

.docs__label {
	margin-bottom: 10px;
	font-family: var(--rs-font-display);
	font-size: 17px;
	font-weight: 600;
}

.docs__label a {
	color: inherit;
	text-decoration: none;
}

.docs__nav ul {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.docs__nav li a {
	display: block;
	padding: 7px 12px;
	border-radius: 8px;
	color: var(--rs-text-2);
	text-decoration: none;
}

.docs__nav li a:hover {
	background: var(--rs-canvas);
	color: var(--rs-ink);
}

.docs__nav li a[aria-current="page"] {
	background: var(--rs-accent-tint);
	color: var(--rs-accent-hover);
	font-weight: 600;
}

.docs__body {
	max-width: 720px;
}

.docs__body h1 {
	font-size: clamp(30px, 4.4vw, 42px);
}

.docs__body h2 {
	margin-top: 18px;
	font-size: 24px;
}

.docs__body ol {
	margin: 0;
	padding-left: 22px;
}

.docs__body pre {
	margin: 0;
	padding: 14px 16px;
	overflow-x: auto;
	border-radius: 10px;
	background: var(--rs-deep);
	color: #fff;
	font-size: 14px;
}

.docs__body :not(pre) > code {
	padding: 2px 6px;
	border-radius: 5px;
	background: var(--rs-canvas);
	border: 1px solid var(--rs-border);
	font-size: 0.9em;
	color: var(--rs-ink);
}

@media (max-width: 800px) {
	.docs {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
		padding-top: 28px;
		padding-bottom: 48px;
	}

	.docs__nav {
		position: static;
		order: 2;
		padding-top: 24px;
		border-top: 1px solid var(--rs-border);
	}
}

/* Footer columns */
.site-footer nav.footer-nav {
	display: grid;
	grid-template-columns: repeat(4, auto);
	gap: 28px 40px;
}

/* Room for four link columns beside the brand. */
.site-footer .wrap > div:first-child {
	max-width: 260px;
}

.footer-nav div {
	display: flex;
	flex-direction: column;
	gap: 9px;
}

.site-footer .footer-nav__label {
	margin: 0 0 2px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--rs-deep-text-2);
}

.site-footer nav.footer-nav a:hover {
	text-decoration: underline;
}

@media (max-width: 700px) {
	.site-footer nav.footer-nav {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 28px 24px;
		width: 100%;
	}
}

/* On phones a comparison reads as a stack: the question, then each answer. */
@media (max-width: 700px) {
	.compare--text table {
		display: block;
		min-width: 0;
	}

	.compare--text thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
	}

	.compare--text tbody,
	.compare--text tr,
	.compare--text tbody th,
	.compare--text td {
		display: block;
		width: auto;
	}

	.compare--text tr {
		padding: 16px;
		border-bottom: 1px solid var(--rs-border);
	}

	.compare--text tr:last-child {
		border-bottom: 0;
	}

	.compare--text tbody th,
	.compare--text td {
		padding: 0;
		border: 0;
	}

	.compare--text tbody th {
		font-size: 16px;
	}

	.compare--text td {
		margin-top: 8px;
		padding: 9px 12px;
		border-radius: 8px;
	}

	.compare--text td:last-child {
		background: var(--rs-canvas);
	}

	.compare--text td::before {
		content: attr(data-label);
		display: block;
		margin-bottom: 2px;
		font-size: 11px;
		font-weight: 600;
		letter-spacing: 0.06em;
		text-transform: uppercase;
		color: var(--rs-text-3);
	}
}

/* Guides: sub-headings and numbered steps inside long articles. */
.prose h3 {
	margin-top: 6px;
	font-size: 20px;
}

.prose ol {
	margin: 0;
	padding-left: 22px;
}

/* The try-it box on the home page: a search of the demo site. */
.try {
	max-width: 620px;
	margin: 0 auto;
}

.try__box {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 4px 16px;
	border: 2px solid var(--rs-accent);
	border-radius: 14px;
	background: var(--rs-surface);
	box-shadow: 0 0 0 5px var(--rs-accent-tint);
}

.try__box svg {
	flex: 0 0 22px;
	width: 22px;
	height: 22px;
	color: var(--rs-accent);
}

.try__box input {
	flex: 1;
	min-width: 0;
	padding: 12px 0;
	border: 0;
	outline: 0;
	background: none;
	font: inherit;
	font-size: 18px;
	color: var(--rs-ink);
}

.try__chips {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 14px;
	font-size: 14px;
	color: var(--rs-text-3);
}

.try__chips button,
.try__again {
	padding: 6px 12px;
	border: 1px solid var(--rs-accent-line);
	border-radius: 999px;
	background: var(--rs-accent-tint);
	font: inherit;
	font-size: 14px;
	color: #3730a3;
	cursor: pointer;
}

.try__chips button:hover,
.try__again:hover {
	border-color: var(--rs-accent);
}

.try__results {
	margin-top: 16px;
	padding: 8px;
	border: 1px solid var(--rs-border);
	border-radius: 14px;
	background: var(--rs-surface);
	box-shadow: var(--rs-shadow-dropdown);
	text-align: left;
}

.try__group,
.try__showing {
	padding: 8px 10px 4px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--rs-text-3);
}

.try__showing {
	font-size: 14px;
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
}

.try__showing b {
	color: var(--rs-ink);
}

.try__item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 10px;
	border-radius: 10px;
	color: inherit;
	text-decoration: none;
}

a.try__item:hover {
	background: var(--rs-canvas);
}

.try__image {
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	border-radius: 8px;
	background: var(--rs-accent-tint);
	object-fit: cover;
}

.try__body {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.try__title {
	font-weight: 600;
	color: var(--rs-ink);
}

.try__meta {
	font-size: 14px;
	color: var(--rs-text-3);
}

.try__empty {
	padding: 12px 10px;
	color: var(--rs-text-2);
}

.try__status {
	min-height: 22px;
	margin-top: 10px;
	font-size: 14px;
	text-align: center;
	color: var(--rs-text-3);
}

.try__note {
	margin-top: 4px;
}

/* Pro page: three licence sizes side by side. */
.tiers {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	align-items: stretch;
}

.tiers .price {
	min-width: 0;
	gap: 10px;
	padding: 28px 24px;
	box-shadow: none;
	text-align: center;
}

.tiers .price__amount {
	justify-content: center;
}

.price--pick {
	border: 2px solid var(--rs-accent);
	box-shadow: 0 16px 40px rgba(79, 70, 229, 0.16) !important;
}

.price__badge {
	align-self: center;
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--rs-accent);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #fff;
}

.price__sites {
	font-weight: 600;
	font-size: 18px;
	color: var(--rs-ink);
}

.price__for {
	font-size: 15px;
	color: var(--rs-text-2);
}

.tiers__all {
	width: fit-content;
	margin: 28px auto 0;
}

.tiers__note {
	max-width: 640px;
	margin: 24px auto;
	text-align: center;
}

@media (max-width: 700px) {
	.tiers {
		grid-template-columns: minmax(0, 1fr);
	}
}

.tiers .price .button {
	margin-top: auto;
}

/* Cookie choice, shown only when analytics is set up and no choice is made. */
.consent {
	position: fixed;
	right: 16px;
	bottom: 16px;
	left: 16px;
	z-index: 50;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 20px;
	max-width: 720px;
	margin: 0 auto;
	padding: 16px 20px;
	border: 1px solid var(--rs-border);
	border-radius: 14px;
	background: var(--rs-surface);
	box-shadow: var(--rs-shadow-dropdown);
}

.consent[hidden] {
	display: none;
}

.consent p {
	flex: 1 1 320px;
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
	color: var(--rs-text-2);
}

.consent__actions {
	display: flex;
	gap: 10px;
}
