/* rocosearch.com base styles (header, buttons, menu, footer). Tokens from docs/design/tokens.css. No outside fonts, scripts or trackers:
   Outfit and Inter are self-hosted in /fonts (Open Font Licence). */

@font-face {
	font-family: "Outfit";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("../fonts/outfit-600-latin.woff2") format("woff2");
}

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/inter-latin.woff2") format("woff2");
}

:root {
	--rs-accent: #4f46e5;
	--rs-accent-hover: #4338ca;
	--rs-accent-tint: #eef2ff;
	--rs-accent-line: #c7d2fe;
	--rs-accent-on-deep: #a5b4fc;
	--rs-ink: #0f172a;
	--rs-text-2: #475569;
	--rs-text-3: #64748b;
	--rs-surface: #ffffff;
	--rs-canvas: #f8fafc;
	--rs-border: #e2e8f0;
	--rs-border-strong: #cbd5e1;
	--rs-deep: #0f172a;
	--rs-deep-text-2: #94a3b8;
	--rs-success: #047857;
	--rs-success-bg: #ecfdf5;
	--rs-font-display: "Outfit", "Inter", system-ui, sans-serif;
	--rs-font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--rs-shadow-dropdown: 0 12px 32px rgba(15, 23, 42, 0.14), 0 1px 2px rgba(15, 23, 42, 0.08);
}

* {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--rs-surface);
	color: var(--rs-ink);
	font: 16px/1.55 var(--rs-font-body);
}

a {
	color: var(--rs-accent);
}

a:hover {
	color: var(--rs-accent-hover);
}

:focus-visible {
	outline: 3px solid var(--rs-accent);
	outline-offset: 2px;
}

h1,
h2,
h3 {
	margin: 0;
	font-family: var(--rs-font-display);
	font-weight: 600;
	letter-spacing: -0.025em;
	line-height: 1.1;
}

h1 {
	font-size: clamp(36px, 6vw, 56px);
	line-height: 1.05;
}

h2 {
	font-size: clamp(28px, 4vw, 36px);
}

h3 {
	font-family: var(--rs-font-body);
	font-size: 18px;
	letter-spacing: 0;
}

p {
	margin: 0;
}

.wrap {
	max-width: 1120px;
	margin: 0 auto;
	padding: 0 24px;
}

/* Header */
.site-header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 28px;
	max-width: 1120px;
	margin: 0 auto;
	padding: 20px 24px;
}

.brand {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--rs-ink);
	text-decoration: none;
}

.brand img {
	width: 36px;
	height: 36px;
}

.brand span {
	font-family: var(--rs-font-display);
	font-weight: 600;
	font-size: 26px;
	letter-spacing: -0.025em;
	line-height: 1;
}

.nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 24px;
	margin-left: auto;
	font-size: 15px;
	font-weight: 500;
}

.nav a {
	color: var(--rs-ink);
	text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
	color: var(--rs-accent);
}

/* Phone menu */
.menu-toggle {
	display: none;
	position: relative;
	z-index: 30;
	width: 44px;
	height: 44px;
	margin-left: auto;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: transparent;
	cursor: pointer;
}

.menu-toggle:hover {
	background: var(--rs-canvas);
}

.menu-toggle__bar {
	position: absolute;
	left: 11px;
	width: 22px;
	height: 2px;
	border-radius: 2px;
	background: var(--rs-ink);
	transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.2s ease, top 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.menu-toggle__bar:nth-child(1) { top: 14px; }
.menu-toggle__bar:nth-child(2) { top: 21px; }
.menu-toggle__bar:nth-child(3) { top: 28px; }

.menu-toggle.is-open .menu-toggle__bar:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-toggle.is-open .menu-toggle__bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.is-open .menu-toggle__bar:nth-child(3) { top: 21px; transform: rotate(-45deg); }

.menu-backdrop {
	display: none;
}

@media (max-width: 799px) {
	.has-menu .menu-toggle {
		display: block;
	}

	.has-menu .menu-backdrop {
		display: block;
		position: fixed;
		inset: 0;
		z-index: 10;
		background: rgba(15, 23, 42, 0.45);
		-webkit-backdrop-filter: blur(6px);
		backdrop-filter: blur(6px);
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.3s ease, visibility 0s linear 0.3s;
	}

	.has-menu .menu-backdrop.is-open {
		opacity: 1;
		visibility: visible;
		transition: opacity 0.3s ease;
	}

	.has-menu .nav {
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		z-index: 20;
		width: min(360px, 86vw);
		margin: 0;
		padding: 96px 28px 28px;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		background: var(--rs-surface);
		box-shadow: -24px 0 60px rgba(15, 23, 42, 0.18);
		transform: translateX(100%);
		visibility: hidden;
		transition: transform 0.38s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s linear 0.38s;
		overflow-y: auto;
	}

	.has-menu .nav.is-open {
		transform: translateX(0);
		visibility: visible;
		transition: transform 0.38s cubic-bezier(0.2, 0.8, 0.2, 1);
	}

	.has-menu .nav > a {
		display: block;
		padding: 16px 0;
		border-bottom: 1px solid var(--rs-border);
		font-family: var(--rs-font-display);
		font-weight: 600;
		font-size: 26px;
		letter-spacing: -0.02em;
		color: var(--rs-ink);
		opacity: 0;
		transform: translateY(8px);
	}

	.has-menu .nav.is-open > a {
		animation: menu-link 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both;
	}

	.has-menu .nav.is-open > a:nth-child(1) { animation-delay: 0.08s; }
	.has-menu .nav.is-open > a:nth-child(2) { animation-delay: 0.14s; }
	.has-menu .nav.is-open > a:nth-child(3) { animation-delay: 0.2s; }
	.has-menu .nav.is-open > a:nth-child(4) { animation-delay: 0.26s; }

	.has-menu .nav > a.button {
		margin-top: auto;
		padding: 16px 20px;
		border-bottom: 0;
		border-radius: 12px;
		font-family: var(--rs-font-body);
		font-size: 17px;
		letter-spacing: 0;
		text-align: center;
		color: #fff;
	}

	.has-menu .nav > a[aria-current="page"] {
		color: var(--rs-accent);
	}

	body.menu-open {
		overflow: hidden;
	}
}

@keyframes menu-link {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.menu-toggle__bar,
	.has-menu .menu-backdrop,
	.has-menu .nav {
		transition: none;
	}

	.has-menu .nav.is-open > a {
		animation: none;
		opacity: 1;
		transform: none;
	}
}

/* Buttons */
.button {
	display: inline-block;
	padding: 14px 22px;
	border-radius: 10px;
	font-weight: 600;
	font-size: 16px;
	text-decoration: none;
	line-height: 1.2;
}

.button--primary {
	background: var(--rs-accent);
	color: #fff;
}

.button--primary:hover {
	background: var(--rs-accent-hover);
	color: #fff;
}

.button--secondary {
	border: 1px solid var(--rs-border-strong);
	color: var(--rs-ink);
}

.button--secondary:hover {
	border-color: var(--rs-accent);
	color: var(--rs-accent);
}

.button--small {
	padding: 10px 16px;
	border-radius: 8px;
	font-size: 15px;
}

.button--block {
	display: block;
	text-align: center;
	padding: 15px 20px;
	font-size: 17px;
}

/* Hero */
.hero {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 40px;
	max-width: 1120px;
	margin: 0 auto;
	padding: 48px 24px 56px;
}

.hero__copy {
	flex: 1 1 440px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.eyebrow {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--rs-accent);
}

.lead {
	font-size: 19px;
	line-height: 1.55;
	color: var(--rs-text-2);
	max-width: 560px;
}

.lead--small {
	font-size: 15px;
}

.lead--on-deep {
	color: var(--rs-deep-text-2);
}

.actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
}

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

/* The dropdown demo */
.demo {
	flex: 1 1 400px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 36px 28px;
	border-radius: 20px;
	background: var(--rs-accent-tint);
}

.demo__box {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 16px;
	border: 1px solid var(--rs-border-strong);
	border-radius: 12px;
	background: #fff;
	font-size: 18px;
	box-shadow: var(--rs-shadow-dropdown);
}

.demo__box svg {
	width: 20px;
	height: 20px;
	flex: none;
}

.demo__caret {
	width: 2px;
	height: 20px;
	background: var(--rs-ink);
}

.demo__list {
	padding: 8px;
	border: 1px solid var(--rs-border);
	border-radius: 12px;
	background: #fff;
	font-size: 16px;
	box-shadow: var(--rs-shadow-dropdown);
}

.demo__showing {
	padding: 8px 12px 6px;
	font-size: 14px;
	color: var(--rs-text-2);
}

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

.demo__row {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 10px 12px;
	border-radius: 8px;
}

.demo__row--on {
	background: #f1f5f9;
}

.demo__thumb {
	width: 48px;
	height: 48px;
	border-radius: 8px;
	flex: none;
}

.demo__thumb--blue {
	background: #bfdbfe;
}

.demo__thumb--green {
	background: #bbf7d0;
}

.demo__thumb--red {
	background: #fecaca;
}

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

.demo__all {
	margin-top: 4px;
	padding: 10px 12px 6px;
	border-top: 1px solid var(--rs-border);
	font-size: 14px;
	font-weight: 600;
	color: var(--rs-ink);
}

/* Sections */
.section {
	padding: 64px 0;
}

.section--canvas {
	background: var(--rs-canvas);
}

.section--deep {
	background: var(--rs-deep);
	color: #fff;
}

.section__intro {
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-width: 640px;
	margin-bottom: 36px;
}

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

.section--deep .section__intro p {
	color: var(--rs-deep-text-2);
}

.section--deep .eyebrow {
	color: var(--rs-accent-on-deep);
}

.cards {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}

.card {
	flex: 1 1 240px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 24px;
	border: 1px solid var(--rs-border);
	border-radius: 14px;
	background: #fff;
}

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

.card__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: var(--rs-accent-tint);
	color: var(--rs-accent);
}

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

/* Plans */
.plans {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}

.plan {
	flex: 1 1 320px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 28px;
	border: 1px solid var(--rs-border);
	border-radius: 14px;
	background: #fff;
}

.plan--pro {
	border-color: var(--rs-accent-line);
	box-shadow: 0 12px 32px rgba(79, 70, 229, 0.1);
}

.plan__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
}

.plan__name {
	font-size: 20px;
	font-weight: 600;
}

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

.plan ul,
.price ul {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 8px;
	font-size: 15px;
	color: #334155;
}

/* Pro page */
.features {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}

.feature {
	flex: 1 1 220px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.feature h3 {
	font-size: 16px;
}

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

.price {
	flex: 0 1 380px;
	min-width: 300px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 32px;
	border: 1px solid var(--rs-accent-line);
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 16px 40px rgba(79, 70, 229, 0.12);
}

.price__amount {
	display: flex;
	align-items: baseline;
	gap: 8px;
}

.price__amount b {
	font-family: var(--rs-font-display);
	font-weight: 600;
	font-size: 52px;
	letter-spacing: -0.025em;
	line-height: 1;
}

.price__amount span {
	font-size: 16px;
	color: var(--rs-text-2);
}

.price__note {
	font-size: 13px;
	line-height: 1.5;
	color: var(--rs-text-3);
	text-align: center;
}

.split {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 40px;
}

.split > * {
	flex: 1 1 380px;
	min-width: 0;
}

.split__copy {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.panel {
	padding: 18px;
	border-radius: 14px;
	background: #fff;
	color: var(--rs-ink);
	font-size: 13px;
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.panel__title {
	margin-bottom: 8px;
	font-weight: 600;
	font-size: 14px;
}

.panel__row {
	display: grid;
	grid-template-columns: 1fr 60px auto;
	gap: 8px;
	align-items: center;
	padding: 8px 6px;
	border-bottom: 1px solid #f1f5f9;
}

.panel__row:last-child {
	border-bottom: 0;
}

.panel__row--fixed {
	background: var(--rs-success-bg);
	border-radius: 6px;
}

.panel__count {
	color: var(--rs-text-2);
}

.panel__fix {
	display: flex;
	gap: 6px;
}

.chip {
	padding: 5px 9px;
	border: 1px solid var(--rs-border-strong);
	border-radius: 6px;
	font-size: 12px;
}

.chip--accent {
	border-color: var(--rs-accent-line);
	background: var(--rs-accent-tint);
	color: #3730a3;
	font-weight: 600;
}

.fixed {
	font-size: 12px;
	font-weight: 600;
	color: var(--rs-success);
}

.faq {
	display: flex;
	flex-wrap: wrap;
	gap: 20px 40px;
}

.faq div {
	flex: 1 1 300px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.faq h3 {
	font-size: 16px;
}

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

/* Footer */
.site-footer {
	padding: 48px 0;
	background: var(--rs-deep);
	color: #fff;
}

.site-footer .wrap {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-start;
	gap: 24px 40px;
}

.site-footer .brand {
	color: #fff;
}

.site-footer .brand img {
	width: 30px;
	height: 30px;
}

.site-footer .brand span {
	font-size: 22px;
}

.site-footer p {
	max-width: 360px;
	margin-top: 12px;
	font-size: 14px;
	line-height: 1.55;
	color: var(--rs-deep-text-2);
}

.site-footer nav {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 28px;
	font-size: 14px;
}

.site-footer nav a {
	color: #fff;
	text-decoration: none;
}

.site-footer nav a.quiet {
	color: var(--rs-accent-on-deep);
}

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

	.demo {
		padding: 24px 16px;
	}

	.section {
		padding: 48px 0;
	}

	.price {
		min-width: 0;
		flex-basis: 100%;
	}
}
