/* ==========================================================================
   RescriptAI Site — design system (Direction C: the route)
   ========================================================================== */

:root {
	--rs-sea: #0F3D45;
	--rs-sea-deep: #0B2F35;
	--rs-stone: #3E6870;
	--rs-ink: #0E1E22;
	--rs-muted: #3D5458;
	--rs-mist: #CFE0E2;
	--rs-dim: #9DB7BB;
	--rs-fog: #E6ECEE;
	--rs-line: #B9CBCF;
	--rs-crane: #E5B53A;
	--rs-crane-ink: #1B1400;
	--rs-white: #FFFFFF;
	--rs-font: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
	--rs-wrap: 1240px;
	--rs-pad: 28px;
	--rs-radius-lg: 32px;
	--rs-radius-md: 28px;
	--rs-radius-sm: 14px;
}

/* ---------- Base (replaces the Hello Elementor reset, which restyles every button pink) ---------- */
body.rs-site { margin: 0; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body.rs-site *, body.rs-site *::before, body.rs-site *::after { box-sizing: border-box; }
body.rs-site img { max-width: 100%; height: auto; }
body.rs-site button, body.rs-site input, body.rs-site select, body.rs-site textarea { font-family: inherit; }

/* ---------- Site-wide typography (optional, via settings) ---------- */
body.rs-typo {
	font-family: var(--rs-font);
	color: var(--rs-ink);
	background: var(--rs-fog);
	font-size: 18px;
	line-height: 1.6;
}
body.rs-typo .elementor-heading-title,
body.rs-typo h1, body.rs-typo h2, body.rs-typo h3, body.rs-typo h4 {
	font-family: var(--rs-font);
	font-weight: 700;
	letter-spacing: -0.035em;
	line-height: 1.05;
	color: inherit;
}
body.rs-typo .elementor-widget-text-editor { font-family: var(--rs-font); }
body.rs-typo .elementor-button {
	font-family: var(--rs-font);
	font-weight: 700;
	border-radius: 999px;
	background-color: var(--rs-sea);
	padding: 15px 24px;
}
body.rs-typo a { color: inherit; }

.rs-site .rs-sr,
.rs-sr {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden; clip: rect(0 0 0 0);
	white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

.rs-skip {
	position: absolute; left: 12px; top: -60px; z-index: 1000;
	background: var(--rs-crane); color: var(--rs-crane-ink);
	padding: 10px 16px; border-radius: 999px; font-weight: 700; text-decoration: none;
	font-family: var(--rs-font);
}
.rs-skip:focus { top: 12px; }

.rs-wrap { max-width: var(--rs-wrap); margin: 0 auto; padding-left: var(--rs-pad); padding-right: var(--rs-pad); box-sizing: border-box; }

/* Every RescriptAI component carries its own font so it looks right even without site-wide typography */
[class^="rs-"], [class*=" rs-"] { box-sizing: border-box; }
.rs-c { font-family: var(--rs-font); color: var(--rs-ink); font-size: 18px; line-height: 1.6; }
.rs-c h1, .rs-c h2, .rs-c h3, .rs-c p { margin: 0; font-family: var(--rs-font); }
.rs-c a { color: inherit; }

:where(.rs-c, .rs-header, .rs-footer) :focus-visible {
	outline: 3px solid var(--rs-crane);
	outline-offset: 3px;
	border-radius: 6px;
}

/* ---------- Buttons ---------- */
.rs-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	font-family: var(--rs-font); font-weight: 700; font-size: 16px; line-height: 1.2;
	text-decoration: none !important; border-radius: 999px;
	padding: 15px 24px; min-height: 48px; border: 1.5px solid transparent;
	cursor: pointer; transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}
.rs-btn--crane { background: var(--rs-crane); color: var(--rs-crane-ink) !important; }
.rs-btn--crane:hover { background: #F0C759; }
.rs-btn--sea { background: var(--rs-sea); color: var(--rs-white) !important; }
.rs-btn--sea:hover { background: #145059; }
.rs-btn--ghost { border-color: rgba(255,255,255,0.5); color: var(--rs-white) !important; font-weight: 600; }
.rs-btn--ghost:hover { border-color: var(--rs-white); }
.rs-btn--light { background: var(--rs-white); color: var(--rs-ink) !important; }
.rs-link { font-weight: 700; text-decoration: underline; text-underline-offset: 5px; }

/* ---------- Header ---------- */
.rs-header { background: var(--rs-sea); color: var(--rs-white); font-family: var(--rs-font); position: relative; z-index: 50; }
.rs-header__inner {
	max-width: var(--rs-wrap); margin: 0 auto; padding: 20px var(--rs-pad);
	display: flex; align-items: center; justify-content: space-between; gap: 14px 28px;
}
.rs-brand { display: flex; align-items: center; gap: 10px; color: var(--rs-white) !important; text-decoration: none !important; font-weight: 800; font-size: 22px; letter-spacing: -0.035em; }
.rs-header__nav { display: flex; align-items: center; gap: 28px; flex: 1 1 auto; justify-content: flex-end; }
.rs-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.rs-nav a { display: block; padding: 9px 13px; border-radius: 999px; color: var(--rs-mist) !important; text-decoration: none !important; font-size: 16px; }
.rs-nav a:hover { color: var(--rs-white) !important; }
.rs-nav a.is-current { color: var(--rs-white) !important; background: rgba(255,255,255,0.1); font-weight: 600; }
.rs-header__actions { display: flex; align-items: center; gap: 14px; }
.rs-lang { display: flex; align-items: center; gap: 2px; font-size: 14px; color: var(--rs-dim); }
.rs-lang a { color: var(--rs-dim) !important; text-decoration: none !important; padding: 8px 6px; border-radius: 8px; min-height: 36px; display: inline-flex; align-items: center; }
.rs-lang a:hover { color: var(--rs-white) !important; }
.rs-lang a[aria-current="true"] { color: var(--rs-white) !important; font-weight: 700; }
.rs-header .rs-btn { padding: 11px 20px; min-height: 44px; }
.rs-header .rs-nav-toggle { display: none; padding: 0; color: inherit; width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid rgba(255,255,255,0.3); background: transparent; cursor: pointer; align-items: center; justify-content: center; }
.rs-nav-toggle__bars, .rs-nav-toggle__bars::before, .rs-nav-toggle__bars::after { display: block; width: 18px; height: 2px; background: var(--rs-white); border-radius: 2px; position: relative; content: ""; }
.rs-nav-toggle__bars::before { position: absolute; top: -6px; }
.rs-nav-toggle__bars::after { position: absolute; top: 6px; }

@media (max-width: 1024px) {
	.rs-header .rs-nav-toggle { display: inline-flex; }
	.rs-header__inner { flex-wrap: wrap; }
	.rs-header__nav { display: none; flex: 1 1 100%; flex-direction: column; align-items: stretch; gap: 16px; padding: 8px 0 12px; }
	.rs-header.is-open .rs-header__nav { display: flex; }
	.rs-nav { flex-direction: column; align-items: stretch; }
	.rs-nav a { padding: 12px 6px; font-size: 18px; border-radius: 10px; }
	.rs-header__actions { justify-content: space-between; }
}

/* ---------- Footer ---------- */
.rs-footer { background: var(--rs-sea-deep); color: var(--rs-mist); font-family: var(--rs-font); font-size: 15px; }
.rs-footer__inner { max-width: var(--rs-wrap); margin: 0 auto; padding: 64px var(--rs-pad) 30px; display: flex; flex-direction: column; gap: 48px; }
.rs-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.rs-footer__brand { flex: 1 1 300px; max-width: 380px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.rs-footer__brand p { margin: 0; line-height: 1.6; }
.rs-footer__name { font-weight: 800; font-size: 26px; letter-spacing: -0.035em; color: var(--rs-white); }
.rs-footer__cols { display: flex; flex-wrap: wrap; gap: 40px 64px; }
.rs-footer__col { display: flex; flex-direction: column; gap: 10px; }
.rs-footer__title { color: var(--rs-white); font-weight: 700; }
.rs-footer__col a { color: var(--rs-mist) !important; text-decoration: none !important; }
.rs-footer__col a:hover { color: var(--rs-white) !important; }
.rs-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid rgba(255,255,255,0.12); padding-top: 22px; color: var(--rs-dim); font-size: 14px; }

/* ---------- Photo placeholder ---------- */
.rs-ph {
	background-color: var(--rs-stone);
	background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 14px);
	color: var(--rs-white);
	display: flex; align-items: flex-end;
	padding: 22px; font-size: 14px; font-weight: 600;
}
.rs-photo { position: relative; overflow: hidden; }
.rs-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rs-photo__caption { position: absolute; left: 22px; bottom: 18px; font-size: 14px; font-weight: 600; color: var(--rs-white); text-shadow: 0 1px 8px rgba(0,0,0,0.45); }

/* ---------- Hero ---------- */
.rs-hero { position: relative; background-color: var(--rs-sea); color: var(--rs-white); overflow: hidden; }
.rs-hero--hatch { background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.035) 0 2px, transparent 2px 16px); }
.rs-hero__bg { position: absolute; inset: 0; z-index: 0; }
.rs-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.rs-hero__bg::after { content: ""; position: absolute; inset: 0; background: rgba(11,47,53,0.72); }
.rs-hero > .rs-wrap { position: relative; z-index: 1; }
.rs-hero__body { padding-top: 72px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 26px; }
.rs-hero--simple .rs-hero__body { padding-bottom: 96px; }
.rs-hero__title { font-weight: 700; font-size: clamp(44px, 7.2vw, 92px); line-height: 0.96; letter-spacing: -0.045em; max-width: 9.8em; color: var(--rs-white); }
.rs-hero--simple .rs-hero__title { font-size: clamp(40px, 6vw, 80px); max-width: 11em; }
.rs-hero__text { font-size: clamp(18px, 1.8vw, 21px); color: var(--rs-mist); max-width: 32em; }
.rs-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.rs-route { padding-top: 72px; padding-bottom: 56px; }
.rs-route__track { position: relative; height: 120px; }
.rs-route__line, .rs-route__done { position: absolute; left: 0; top: 46px; height: 3px; }
.rs-route__line { right: 0; background: rgba(255,255,255,0.22); }
.rs-route__done { background: var(--rs-crane); width: var(--rs-progress, 60%); }
.rs-route__stop { position: absolute; top: 38px; display: flex; flex-direction: column; gap: 14px; transform: translateX(var(--rs-shift, 0)); }
.rs-route__stop--end { align-items: flex-end; }
.rs-route__dot { width: 18px; height: 18px; border-radius: 99px; background: var(--rs-crane); }
.rs-route__stop.is-upcoming .rs-route__dot { background: transparent; border: 3px solid rgba(255,255,255,0.4); }
.rs-route__label { font-size: 15px; color: var(--rs-mist); white-space: nowrap; }
.rs-route__stop--origin .rs-route__label, .rs-route__stop--end .rs-route__label { font-weight: 600; color: var(--rs-white); font-size: 17px; }
.rs-route__stop.is-upcoming .rs-route__label { color: var(--rs-dim); }
.rs-route__ship { position: absolute; top: 25px; left: calc(var(--rs-progress, 60%) - 22px); width: 44px; height: 44px; border-radius: 99px; background: var(--rs-crane); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 8px rgba(229,181,58,0.22); }
.rs-route__tag { position: absolute; top: -54px; left: clamp(0px, calc(var(--rs-progress, 60%) - 120px), calc(100% - 240px)); width: 240px; background: var(--rs-white); color: var(--rs-ink); border-radius: var(--rs-radius-sm); padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.rs-route__tag strong { font-weight: 700; }
.rs-route__tag span { font-size: 14px; color: var(--rs-muted); }
.rs-route__caption { margin-top: 16px !important; font-size: 13px; color: var(--rs-dim); }

/* the one orchestrated moment: the line draws, then the ship arrives */
@media (prefers-reduced-motion: no-preference) {
	.rs-route.is-animated .rs-route__done { animation: rs-draw 1400ms cubic-bezier(.2,.7,.2,1) both; transform-origin: left center; }
	.rs-route.is-animated .rs-route__ship, .rs-route.is-animated .rs-route__tag { animation: rs-arrive 500ms ease 1200ms both; }
}
@keyframes rs-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes rs-arrive { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (max-width: 767px) {
	.rs-route__stop:not(.rs-route__stop--origin):not(.rs-route__stop--end) .rs-route__label { display: none; }
	.rs-route__tag { width: 200px; left: clamp(0px, calc(var(--rs-progress, 60%) - 100px), calc(100% - 200px)); }
	.rs-route__tag span { display: none; }
}

/* ---------- Section heading block ---------- */
.rs-block { padding-top: 96px; padding-bottom: 64px; }
.rs-block--tight { padding-top: 48px; }
.rs-h2 { font-weight: 700; font-size: clamp(34px, 4.4vw, 56px); line-height: 1.0; letter-spacing: -0.045em; }
.rs-h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }
.rs-muted { color: var(--rs-muted); }

/* ---------- Device frames ---------- */
.rs-devices { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-end; justify-content: space-between; }
.rs-devices__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 44px; }
.rs-devices__head .rs-h2 { flex: 1 1 520px; max-width: 12em; }
.rs-devices__head p { flex: 0 1 380px; color: var(--rs-muted); }
.rs-browser { flex: 1 1 640px; min-width: 0; border-radius: 22px; overflow: hidden; background: var(--rs-white); box-shadow: 0 30px 80px rgba(15,61,69,0.18); }
.rs-browser__bar { height: 40px; background: #D5DFE2; display: flex; align-items: center; gap: 8px; padding: 0 16px; }
.rs-browser__bar i { width: 11px; height: 11px; border-radius: 99px; background: var(--rs-dim); display: block; }
.rs-browser__url { margin-left: 12px; background: var(--rs-white); border-radius: 999px; height: 24px; font-size: 12px; color: var(--rs-muted); display: flex; align-items: center; padding: 0 12px; font-style: normal; }
.rs-browser__screen { height: var(--rs-h, 560px); background: #F4F7F6; position: relative; overflow: hidden; }
.rs-browser__screen iframe, .rs-browser__screen img { width: 100%; height: 100%; border: 0; display: block; object-fit: cover; object-position: top left; }
.rs-phone-wrap { flex: 0 1 300px; display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 0 auto; }
.rs-phone { width: 291px; height: 630px; border-radius: 44px; background: var(--rs-ink); padding: 10px; box-shadow: 0 30px 80px rgba(15,61,69,0.25); }
.rs-phone__screen { width: 100%; height: 100%; border-radius: 35px; overflow: hidden; position: relative; background: #EEF3F1; }
.rs-phone__screen iframe { position: absolute; left: 0; top: 0; width: 390px !important; max-width: none !important; height: 844px; border: 0; transform: scale(0.6974); transform-origin: top left; }
.rs-phone__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.rs-devices--solo { align-items: center; justify-content: flex-start; gap: 48px 72px; }
.rs-devices--solo .rs-phone-wrap { margin: 0; }
.rs-points { flex: 1 1 380px; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.rs-points li { display: flex; gap: 22px; padding: 22px 0; border-top: 1.5px solid var(--rs-line); }
.rs-points li:last-child { border-bottom: 1.5px solid var(--rs-line); }
.rs-points__num { font-weight: 700; font-size: 15px; color: var(--rs-stone); padding-top: 5px; min-width: 24px; font-variant-numeric: tabular-nums; }
.rs-c .rs-points__title { margin: 0 0 4px; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.rs-points p { color: var(--rs-muted); font-size: 17px; }
.rs-device__note { font-size: 15px; color: var(--rs-muted); }
.rs-device-empty { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 24px; color: var(--rs-muted); font-size: 15px; background-image: repeating-linear-gradient(135deg, rgba(15,61,69,0.05) 0 2px, transparent 2px 14px); }
.rs-device-empty strong { color: var(--rs-ink); font-size: 17px; }

/* ---------- Statement + feature list ---------- */
.rs-split { display: flex; flex-wrap: wrap; gap: 64px; }
.rs-split > .rs-h2 { flex: 1 1 420px; font-size: clamp(32px, 4vw, 52px); line-height: 1.02; letter-spacing: -0.04em; }
.rs-split__body { flex: 1 1 420px; display: flex; flex-direction: column; gap: 30px; }
.rs-feature { display: flex; flex-direction: column; gap: 6px; }
.rs-feature p { color: var(--rs-muted); }
.rs-split__body .rs-link { align-self: flex-start; }
.rs-split--grid .rs-split__body { flex: 2 1 560px; flex-direction: row; flex-wrap: wrap; gap: 34px 48px; }
.rs-split--grid .rs-feature { flex: 1 1 240px; }

/* ---------- Steps (a real sequence) ---------- */
.rs-steps__list { display: flex; flex-wrap: wrap; gap: 28px 0; margin: 32px 0 0; padding: 0; list-style: none; counter-reset: rs-step; }
.rs-step { flex: 1 1 240px; padding-right: 28px; display: flex; flex-direction: column; gap: 10px; }
.rs-step:last-child { padding-right: 0; }
.rs-step__mark { display: flex; align-items: center; gap: 12px; }
.rs-step__num { width: 36px; height: 36px; border-radius: 99px; background: var(--rs-sea); color: var(--rs-white); font-weight: 700; display: flex; align-items: center; justify-content: center; flex: none; }
.rs-step:last-child .rs-step__num { background: var(--rs-crane); color: var(--rs-crane-ink); }
.rs-step__rule { flex: 1 1 auto; height: 2px; background: var(--rs-line); }
.rs-step:last-child .rs-step__rule { display: none; }
.rs-step__title { font-weight: 700; font-size: 20px; }
.rs-step__text { color: var(--rs-muted); font-size: 16px; }

/* ---------- Photo + panel ---------- */
.rs-photo-panel { display: flex; flex-wrap: wrap; gap: 20px; }
.rs-photo-panel .rs-photo, .rs-photo-panel .rs-ph { flex: 3 1 520px; min-width: 0; height: 460px; border-radius: var(--rs-radius-md); }
.rs-photo-panel__card { flex: 2 1 340px; min-width: 0; min-height: 460px; border-radius: var(--rs-radius-md); background: var(--rs-sea); color: var(--rs-white); padding: 36px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.rs-photo-panel__quote { font-size: 28px; line-height: 1.3; letter-spacing: -0.02em; }
.rs-photo-panel__foot { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; color: var(--rs-mist); }

/* ---------- Rows (promises, short statements) ---------- */
.rs-rows { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.rs-rows__head { flex: 1 1 380px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.rs-rows__head .rs-h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.02; letter-spacing: -0.04em; }
.rs-rows__list { flex: 1 1 520px; display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; border-bottom: 1.5px solid var(--rs-line); }
.rs-rows__item { padding: 18px 0; border-top: 1.5px solid var(--rs-line); font-size: 20px; }
.rs-rows--titled .rs-rows__head { flex-basis: 100%; }
.rs-rows--titled .rs-rows__list { flex-basis: 100%; }
.rs-rows--titled .rs-rows__item { display: flex; flex-wrap: wrap; gap: 12px 48px; padding: 30px 0; font-size: 19px; }
.rs-rows--titled .rs-rows__item h3 { flex: 1 1 340px; font-size: 30px; line-height: 1.15; letter-spacing: -0.03em; font-weight: 700; }
.rs-rows--titled .rs-rows__item p { flex: 2 1 480px; color: var(--rs-muted); max-width: 34em; }

/* ---------- CTA panel ---------- */
.rs-cta { background: var(--rs-sea); color: var(--rs-white); border-radius: var(--rs-radius-lg); padding: 48px 56px; display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; }
.rs-cta__text { display: flex; flex-direction: column; gap: 8px; max-width: 680px; }
.rs-cta__text .rs-h2 { font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.035em; }
.rs-cta__text p { color: var(--rs-mist); }
.rs-cta--light { background: var(--rs-white); color: var(--rs-ink); }
.rs-cta--light .rs-cta__text p { color: var(--rs-muted); }
.rs-cta__list { flex: 1 1 420px; margin: 0; display: flex; flex-direction: column; }
.rs-cta__list div { display: flex; gap: 24px; padding: 14px 0; border-top: 1px solid rgba(255,255,255,0.2); }
.rs-cta__list div:last-child { border-bottom: 1px solid rgba(255,255,255,0.2); }
.rs-cta__list dt { width: 120px; flex: none; font-weight: 700; }
.rs-cta__list dd { margin: 0; color: var(--rs-mist); }

/* ---------- Pricing ---------- */
.rs-pricing__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 36px; }
.rs-pricing__top .rs-h2 { flex: 1 1 480px; }
.rs-pricing__top p { flex: 1 1 100%; color: var(--rs-muted); max-width: 34em; }
.rs-toggle { display: inline-flex; gap: 4px; background: var(--rs-white); border-radius: 999px; padding: 5px; }
.rs-toggle button { background: transparent; color: var(--rs-muted); border: 0; border-radius: 999px; padding: 10px 18px; font-family: var(--rs-font); font-size: 16px; cursor: pointer; min-height: 44px; }
.rs-toggle button[aria-pressed="true"] { background: var(--rs-sea); color: var(--rs-white); font-weight: 700; }
.rs-pricing__controls { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.rs-currency { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.rs-currency__label { font-size: 15px; color: var(--rs-muted); }
.rs-toggle--small { padding: 4px; }
.rs-toggle--small button { padding: 8px 12px; font-size: 14px; min-height: 40px; letter-spacing: 0.02em; }
.rs-currency__note { flex: 1 1 100%; margin: 0; font-size: 14px; color: var(--rs-muted); max-width: 52em; }
.rs-currency__note a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.rs-plan__per { font-size: 17px; font-weight: 500; letter-spacing: 0; color: var(--rs-muted); }
.rs-plan--featured .rs-plan__per { color: var(--rs-mist); }
.rs-extra__price .rs-plan__per { font-size: 16px; }
.rs-addons .rs-plan__per { font-size: inherit; font-weight: 400; }
.rs-money { white-space: nowrap; }
.rs-plans { display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; }
.rs-plan { flex: 1 1 320px; min-width: 0; border-radius: var(--rs-radius-md); padding: 36px; display: flex; flex-direction: column; gap: 20px; background: var(--rs-white); box-shadow: 0 20px 60px rgba(15,61,69,0.1); }
.rs-plan--featured { background: var(--rs-ink); color: var(--rs-white); box-shadow: 0 30px 80px rgba(14,30,34,0.3); }
.rs-plan__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.rs-plan__name { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; }
.rs-plan__badge { font-size: 13px; font-weight: 700; background: var(--rs-crane); color: var(--rs-crane-ink); border-radius: 999px; padding: 4px 12px; }
.rs-plan__blurb { color: var(--rs-muted); min-height: 58px; }
.rs-plan--featured .rs-plan__blurb, .rs-plan--featured .rs-plan__period { color: var(--rs-mist); }
.rs-plan__price { font-weight: 700; font-size: 44px; letter-spacing: -0.04em; line-height: 1.1; display: block; }
.rs-plan__period { font-size: 15px; color: var(--rs-muted); }
.rs-plan__features { margin: 0; padding: 18px 0 0; list-style: none; display: flex; flex-direction: column; gap: 10px; border-top: 1.5px solid #E1E8EA; }
.rs-plan--featured .rs-plan__features { border-top-color: rgba(255,255,255,0.2); }
.rs-plan__features li { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; }
.rs-plan__features svg { flex: none; margin-top: 4px; }
.rs-plan .rs-btn { width: 100%; }
.rs-pricing [data-yearly] { display: none; }
.rs-pricing.is-yearly [data-yearly] { display: block; }
.rs-pricing.is-yearly [data-monthly] { display: none; }

.rs-extras { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 20px; }
.rs-extra { flex: 1 1 480px; min-width: 0; background: var(--rs-white); border-radius: var(--rs-radius-md); padding: 36px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.rs-extra .rs-plan__name { margin-bottom: 4px; }
.rs-extra__price { font-weight: 700; font-size: 28px; letter-spacing: -0.03em; }
.rs-addons { width: 100%; margin: 0; padding: 0; list-style: none; }
.rs-addons li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1.5px solid #E1E8EA; }
.rs-addons li span:last-child { color: var(--rs-muted); text-align: right; }

/* ---------- FAQ ---------- */
.rs-faq { display: flex; flex-wrap: wrap; gap: 48px; }
.rs-faq > .rs-h2 { flex: 1 1 320px; font-size: clamp(32px, 3.8vw, 48px); line-height: 1.02; letter-spacing: -0.04em; }
.rs-faq__list { flex: 2 1 560px; border-bottom: 1.5px solid var(--rs-line); }
.rs-faq__item { border-top: 1.5px solid var(--rs-line); }
.rs-faq__q { width: 100%; background: transparent; color: var(--rs-ink); border: 0; padding: 20px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-family: var(--rs-font); font-size: 20px; font-weight: 600; text-align: left; cursor: pointer; min-height: 44px; }
.rs-faq__sign { width: 36px; height: 36px; flex: none; border-radius: 99px; display: flex; align-items: center; justify-content: center; font-size: 22px; background: var(--rs-white); color: var(--rs-ink); transition: transform 160ms ease, background-color 160ms ease; }
.rs-faq__q[aria-expanded="true"] .rs-faq__sign { background: var(--rs-sea); color: var(--rs-white); transform: rotate(45deg); }
.rs-faq__a { padding: 0 48px 22px 0; color: var(--rs-muted); }
.rs-faq__a[hidden] { display: none; }

/* ---------- Demo form ---------- */
.rs-contact { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.rs-contact__intro { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.rs-contact__meta { display: flex; flex-direction: column; gap: 6px; color: var(--rs-mist); font-size: 16px; }
.rs-contact__meta a { color: var(--rs-white) !important; }
.rs-form-card { flex: 1 1 500px; min-width: 0; background: var(--rs-white); color: var(--rs-ink); border-radius: var(--rs-radius-lg); padding: 40px; box-shadow: 0 30px 80px rgba(14,30,34,0.25); }
.rs-form { display: flex; flex-direction: column; gap: 18px; }
.rs-form__title { font-weight: 700; font-size: 28px; letter-spacing: -0.03em; }
.rs-form__row { display: flex; flex-wrap: wrap; gap: 16px; }
.rs-field { flex: none; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rs-form__row > .rs-field { flex: 1 1 200px; }
.rs-field label { font-size: 15px; font-weight: 600; }
.rs-field input, .rs-field select, .rs-field textarea {
	background: #F2F6F7; border: 1.5px solid #D2DDE0; border-radius: var(--rs-radius-sm);
	padding: 13px 14px; font-family: var(--rs-font); font-size: 17px; color: var(--rs-ink); width: 100%; box-sizing: border-box; margin: 0;
}
.rs-field select { min-height: 52px; }
.rs-field textarea { resize: vertical; }
.rs-field input:focus, .rs-field select:focus, .rs-field textarea:focus { border-color: var(--rs-sea); outline: 2px solid var(--rs-sea); outline-offset: 0; }
.rs-check { display: flex; gap: 10px; align-items: center; font-size: 16px; }
.rs-check input { width: 20px; height: 20px; accent-color: var(--rs-sea); }
.rs-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.rs-form .rs-btn { width: 100%; min-height: 52px; font-size: 17px; }
.rs-form__error { color: #A3262A; font-weight: 600; }
.rs-form__done { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 32px 0; }
.rs-form__done-icon { width: 56px; height: 56px; border-radius: 99px; background: var(--rs-crane); display: flex; align-items: center; justify-content: center; }
.rs-form__done h2 { font-weight: 700; font-size: 32px; letter-spacing: -0.035em; line-height: 1.1; }
.rs-form__done p { color: var(--rs-muted); }

/* dark band behind the top of a section (used by contact and platform) */
.rs-band { background: linear-gradient(var(--rs-sea) 0 var(--rs-band, 70%), transparent var(--rs-band, 70%) 100%); color: var(--rs-white); }
.rs-band .rs-hero__title { color: var(--rs-white); }

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
	:root { --rs-pad: 20px; }
	.rs-block { padding-top: 64px; padding-bottom: 44px; }
	.rs-cta { padding: 32px 26px; }
	.rs-plan, .rs-extra, .rs-form-card { padding: 26px; }
	.rs-photo-panel .rs-photo, .rs-photo-panel .rs-ph { height: 300px; }
	.rs-photo-panel__card { min-height: 0; }
	.rs-browser__screen { height: 420px; }
	.rs-rows--titled .rs-rows__item h3 { font-size: 24px; }
	.rs-faq__a { padding-right: 0; }
}

/* ---------- Elementor integration ---------- */
/* RescriptAI widgets are full sections: no gaps between them */
.elementor-element.elementor-widget[class*="elementor-widget-rs-"] { margin-block-end: 0 !important; margin-bottom: 0 !important; }
.elementor-widget[class*="elementor-widget-rs-"] > .elementor-widget-container { padding: 0; margin: 0; }
.rs-site .elementor-section.elementor-section-full_width > .elementor-container { max-width: none; }
/* Hello Elementor's page wrapper adds side padding on some versions; let our sections bleed */
.rs-site.page-template-elementor_header_footer .site-main,
.rs-site .elementor-template-full-width .site-main { max-width: none; padding: 0; }

/* the hidden attribute always wins over component display rules */
.rs-c [hidden], .rs-header [hidden] { display: none !important; }

/* tighten the gap when a block follows a title-only hero */
.rs-hero--simple + * .rs-block:first-child, .rs-pricing { padding-top: 64px; }
.rs-route__tag strong { white-space: nowrap; }

/* live dashboard: rendered at desktop width, scaled down to fit the frame */
.rs-browser__screen { position: relative; overflow: hidden; }
.rs-browser__screen iframe.rs-scaled { position: absolute; left: 0; top: 0; width: 1440px !important; max-width: none !important; transform-origin: top left; }
/* Themes often set iframe { max-width: 100% }, which squeezes the demos. */
.rs-browser__screen iframe, .rs-phone__screen iframe { max-width: none !important; min-width: 0; }
