/* FRSite – pricing cards. Uses theme tokens with safe fallbacks. */
.frs-pricing {
	--p-accent: var(--c-accent, #2f6bff);
	--p-accent-2: var(--c-accent-3, #7a4dff);
	--p-ink: #0b1020;
	--p-card: #ffffff;
	--p-muted: #5b6478;
	--p-soft: rgba(47, 107, 255, .1);
	color: var(--c-text, #eef1f7);
	text-align: center;
}
.frs-pricing input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }

/* 1 écran ⟷ Multi-écrans switch */
.frs-pricing .frs-switch { display: flex; align-items: center; justify-content: center; gap: .9rem; margin-bottom: 1.4rem; }
.frs-switch__label { font-weight: 800; font-size: 1.05rem; color: rgba(255, 255, 255, .45); cursor: pointer; user-select: none; transition: color .2s; }
.frs-switch__label.is-active { color: #fff; }
.frs-switch__toggle { position: relative; cursor: pointer; }
.frs-switch__track { display: block; width: 62px; height: 34px; border-radius: 999px; background: #2a3145; transition: background-color .2s; }
.frs-switch__thumb { position: absolute; top: 4px; left: 4px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); transition: transform .2s; }
.frs-pricing .frs-switch input:checked + .frs-switch__track { background: linear-gradient(135deg, var(--p-accent), var(--p-accent-2)); }
.frs-pricing .frs-switch input:checked + .frs-switch__track .frs-switch__thumb { transform: translateX(28px); }
.frs-pricing .frs-switch input:focus-visible + .frs-switch__track { outline: 2px solid var(--c-accent-2, #ffb547); outline-offset: 3px; }

/* Formula tabs */
.frs-pricing .frs-tabs {
	display: inline-grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 4px;
	padding: 6px;
	margin: 0 auto 2.25rem;
	border-radius: 999px;
	background: #151b2b;
	border: 1px solid rgba(255, 255, 255, .06);
	width: min(100%, 640px);
}
.frs-pricing .frs-tab { cursor: pointer; }
.frs-pricing .frs-tab span {
	display: block;
	padding: .8rem .5rem;
	border-radius: 999px;
	font-weight: 900;
	font-size: clamp(.82rem, 2.4vw, 1.05rem);
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #fff;
	transition: background-color .2s, color .2s;
}
.frs-pricing .frs-tab:hover span { background: rgba(255, 255, 255, .06); }
.frs-pricing .frs-tab input:checked + span { background: #fff; color: var(--p-ink); }
.frs-pricing .frs-tab input:focus-visible + span { outline: 2px solid var(--c-accent-2, #ffb547); outline-offset: 2px; }

/* Cards */
.frs-pricing .frs-cards {
	display: grid;
	gap: 1.25rem;
	grid-template-columns: 1fr;
	max-width: 1240px;
	margin-inline: auto;
	text-align: left;
}
@media (min-width: 640px) { .frs-pricing .frs-cards { grid-template-columns: repeat(2, 1fr); }}
@media (min-width: 1080px) { .frs-pricing .frs-cards { grid-template-columns: repeat(4, 1fr); }}

.frs-pricing .frs-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 1.5rem 1.25rem 1.6rem;
	border-radius: 18px;
	background: var(--p-card);
	color: var(--p-ink);
	border: 1.5px solid var(--p-accent);
	box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .7);
	transition: transform .2s, box-shadow .2s;
}
.frs-pricing .frs-card:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -24px rgba(47, 107, 255, .55); }
.frs-pricing .frs-card.is-popular { box-shadow: 0 0 0 3px rgba(47, 107, 255, .25), 0 18px 40px -24px rgba(0, 0, 0, .7); }

.frs-card__dur {
	display: inline-flex;
	align-items: center;
	gap: .3rem;
	padding: .3rem .8rem;
	border-radius: 999px;
	background: var(--p-soft);
	border: 1px solid rgba(47, 107, 255, .3);
	color: var(--p-accent);
	font-size: .78rem;
	font-weight: 800;
}
.frs-card__title {
	margin: .9rem 0 0;
	text-align: center;
	font-size: 1.2rem;
	line-height: 1.45;
	font-weight: 900;
	letter-spacing: .06em;
	color: var(--p-ink);
}
.frs-card__devices {
	margin: .3rem 0 0;
	font-size: .78rem;
	font-weight: 800;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--p-muted);
}
.frs-card__badge {
	margin-top: .35rem;
	padding: .3rem 1.1rem;
	background: var(--p-ink);
	color: #fff;
	font-size: .78rem;
	font-weight: 800;
	clip-path: polygon(10% 0, 90% 0, 100% 50%, 90% 100%, 10% 100%, 0 50%);
}
.frs-card__price {
	margin: .5rem 0 1rem;
	font-size: clamp(2.6rem, 5vw, 3rem);
	line-height: 1.1;
	font-weight: 900;
	color: var(--p-accent);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}
.frs-card__features {
	list-style: none;
	margin: 0 0 1.25rem;
	padding: 0;
	width: 100%;
	display: grid;
	gap: .55rem;
	font-size: .9rem;
	font-weight: 600;
	color: #1b2233;
	flex: 1;
}
.frs-card__features li { display: flex; align-items: flex-start; gap: .55rem; line-height: 1.3; }
.frs-card__features .frs-check { flex: none; color: var(--p-accent); margin-top: -.05rem; }
.frs-card__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .55rem;
	padding: .95rem 1.6rem;
	border-radius: 10px;
	background: linear-gradient(135deg, var(--p-accent), var(--p-accent-2));
	color: #fff !important;
	font-weight: 900;
	font-size: 1.05rem;
	letter-spacing: .03em;
	text-transform: uppercase;
	text-decoration: none !important;
	box-shadow: 0 12px 24px -12px rgba(47, 107, 255, .8);
	transition: transform .15s, box-shadow .15s;
}
.frs-card__cta:hover { transform: translateY(-1px); box-shadow: 0 16px 28px -12px rgba(47, 107, 255, .95); }
.frs-card__cta:focus-visible { outline: 3px solid var(--c-accent-2, #ffb547); outline-offset: 3px; }

.frs-pricing__note { margin: 1.5rem 0 0; font-size: .85rem; color: var(--c-muted, #9aa4b8); }

/* Comparison tables */
.frs-compare { overflow-x: auto; margin: 1.5rem 0; border: 1px solid var(--c-border, rgba(255, 255, 255, .09)); border-radius: 16px; }
.frs-compare table { width: 100%; border-collapse: collapse; min-width: 480px; font-variant-numeric: tabular-nums; }
.frs-compare caption { text-align: left; padding: 1rem 1.1rem .25rem; font-weight: 700; }
.frs-compare th, .frs-compare td { padding: .75rem 1.1rem; text-align: left; border-bottom: 1px solid var(--c-border, rgba(255, 255, 255, .09)); }
.frs-compare thead th { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--c-muted, #9aa4b8); }
.frs-compare tbody tr:last-child > * { border-bottom: 0; }
.frs-compare td { font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
	.frs-pricing *, .frs-card, .frs-card__cta { transition: none !important; }
}


/* Isolate the cards from article ("prose") styles on content pages. */
.frs-pricing .frs-card p, .frs-pricing .frs-card li, .frs-pricing .frs-card h3, .frs-pricing .frs-card ul { margin-top: 0; }
.frs-pricing .frs-card__features { padding-left: 0; }
.frs-pricing .frs-card__features li { color: #1b2233; margin: 0; }
.frs-pricing .frs-card__features li::marker { content: none; }
.frs-pricing .frs-card__title { color: #0b1020; }
.frs-pricing .frs-card__devices { color: #4a5368; }
.frs-pricing .frs-card__features li span { color: #1b2233; }

/* Keep prices on one line across cards: non-popular cards reserve the badge's height. */
.frs-pricing .frs-card__badge { height: 28px; line-height: 28px; padding: 0 1.1rem; margin-top: .4rem; }
.frs-pricing .frs-card:not(.is-popular) .frs-card__title,
.frs-pricing .frs-card:not(.is-popular) .frs-card__devices { margin-bottom: 0; }
@media (min-width: 640px) {
	.frs-pricing .frs-card:not(.is-popular) .frs-card__price { margin-top: calc(28px + .4rem + .65rem); }
}

/* Phones: swipeable cards (scroll-snap) instead of a long vertical stack. */
@media (max-width: 639px) {
	.frs-pricing .frs-cards {
		grid-template-columns: none;
		grid-auto-flow: column;
		grid-auto-columns: 86%;
		gap: .9rem;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		overscroll-behavior-x: contain;
		padding: .5rem 7% 1.25rem;
		margin-inline: calc(-1 * var(--gutter, 1rem));
		scrollbar-width: none;
	}
	.frs-pricing .frs-cards::-webkit-scrollbar { display: none; }
	.frs-pricing .frs-card { scroll-snap-align: center; }
	.frs-pricing .frs-card:hover { transform: none; }
	.frs-pricing .frs-tabs { gap: 2px; padding: 4px; }
	.frs-pricing .frs-tab span { padding: .7rem .2rem; font-size: .74rem; letter-spacing: .01em; }
	.frs-pricing__hint { display: block; }
}
.frs-pricing__hint { display: none; margin: -.25rem 0 0; font-size: .8rem; color: var(--c-muted, #9aa4b8); }

/* =========================================================================
   Free trial form
   ========================================================================= */
.frs-trial {
	--t-accent: var(--c-accent, #2f6bff);
	--t-accent2: var(--c-accent-3, #7a4dff);
	--t-line: rgba(255, 255, 255, .12);
	--t-field: #0d1426;
	--t-err: #ff6b7a;
	max-width: 860px;
	margin-inline: auto;
	padding: clamp(1.25rem, 4vw, 2.25rem);
	border-radius: 24px;
	background:
		radial-gradient(70% 60% at 100% 0%, rgba(122, 77, 255, .18), transparent 60%),
		radial-gradient(60% 50% at 0% 100%, rgba(47, 107, 255, .14), transparent 60%),
		var(--c-surface, #121a2e);
	border: 1px solid rgba(47, 107, 255, .28);
	box-shadow: 0 30px 70px -40px rgba(0, 0, 0, .9);
	color: var(--c-text, #eef1f7);
	text-align: left;
}
.frs-trial *, .frs-trial *::before, .frs-trial *::after { box-sizing: border-box; }
.frs-trial p { margin: 0; color: inherit; }
.frs-trial__grid { display: grid; gap: 1.1rem 1.25rem; }
@media (min-width: 720px) { .frs-trial__grid { grid-template-columns: 1fr 1fr; } }
.frs-trial .frs-field { margin: 0 0 1.1rem; border: 0; padding: 0; min-width: 0; }
.frs-trial__grid .frs-field { margin: 0; }
.frs-trial__grid + .frs-field { margin-top: 1.4rem; }
.frs-trial label, .frs-trial legend { display: block; font-weight: 700; font-size: .92rem; margin-bottom: .45rem; padding: 0; color: #e6ebf5; }
.frs-trial .req { color: var(--c-accent-2, #ffb547); }
.frs-trial .opt { font-weight: 500; color: var(--c-muted, #9aa4b8); }
.frs-trial input[type="text"], .frs-trial select, .frs-trial textarea {
	width: 100%;
	padding: .85rem 1rem;
	border-radius: 12px;
	border: 1px solid var(--t-line);
	background: var(--t-field);
	color: #fff;
	font: inherit;
	font-size: 1rem;
	line-height: 1.4;
	transition: border-color .15s, box-shadow .15s, background-color .15s;
	appearance: none;
	-webkit-appearance: none;
}
.frs-trial select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239aa4b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 1rem center;
	padding-right: 2.75rem;
}
/* Dropdown list: explicit light panel with dark text (the dark color-scheme made options unreadable). */
.frs-trial select { color-scheme: light dark; }
.frs-trial select option { background-color: #ffffff; color: #0b1020; font-weight: 500; padding: .5rem; }
.frs-trial select option:checked { background-color: #dbe7ff; color: #0b1020; font-weight: 700; }
.frs-trial select option:hover, .frs-trial select option:focus { background-color: #eef3ff; color: #0b1020; }
.frs-trial select option[disabled] { color: #6b7487; }
.frs-trial select:invalid { color: #8e98ad; }
.frs-trial select:valid { color: #ffffff; }
.frs-trial input::placeholder, .frs-trial textarea::placeholder { color: #6f7a90; }
.frs-trial input[type="text"]:hover, .frs-trial select:hover, .frs-trial textarea:hover { border-color: rgba(255, 255, 255, .24); }
.frs-trial input[type="text"]:focus, .frs-trial select:focus, .frs-trial textarea:focus {
	outline: none;
	border-color: var(--t-accent);
	box-shadow: 0 0 0 4px rgba(47, 107, 255, .22);
	background: #0f1830;
}
.frs-trial textarea { resize: vertical; min-height: 96px; }
.frs-field__help { margin-top: .4rem !important; font-size: .8rem; color: var(--c-muted, #9aa4b8) !important; }
.frs-field__error { display: none; margin-top: .4rem !important; font-size: .82rem; font-weight: 600; color: var(--t-err) !important; }
.frs-field.is-invalid .frs-field__error { display: block; }
.frs-field.is-invalid input[type="text"], .frs-field.is-invalid select, .frs-field.is-invalid textarea { border-color: var(--t-err); box-shadow: 0 0 0 3px rgba(255, 107, 122, .15); }
.frs-field.is-invalid .frs-chip span, .frs-field.is-invalid .frs-server__box { border-color: rgba(255, 107, 122, .55); }

/* Category chips */
.frs-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.frs-chip { margin: 0 !important; cursor: pointer; }
.frs-chip input, .frs-server input, .frs-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.frs-chip span {
	display: inline-flex; align-items: center; gap: .4rem;
	padding: .55rem .9rem; border-radius: 999px;
	border: 1px solid var(--t-line); background: rgba(255, 255, 255, .03);
	font-weight: 600; font-size: .88rem; color: #d6dcea;
	transition: background-color .15s, border-color .15s, color .15s;
}
.frs-chip span::before {
	content: ""; width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid #6f7a90; flex: none;
	transition: background-color .15s, border-color .15s;
}
.frs-chip:hover span { border-color: rgba(255, 255, 255, .3); }
.frs-chip input:checked + span { background: rgba(47, 107, 255, .18); border-color: var(--t-accent); color: #fff; }
.frs-chip input:checked + span::before {
	border-color: var(--t-accent);
	background: var(--t-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat;
}
.frs-chip input:focus-visible + span, .frs-server input:focus-visible + .frs-server__box, .frs-check input:focus-visible + span::before { outline: 2px solid var(--c-accent-2, #ffb547); outline-offset: 2px; }

/* Server cards */
.frs-servers { display: grid; gap: .6rem; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 480px) { .frs-servers { grid-template-columns: 1fr; } }
.frs-server { margin: 0 !important; cursor: pointer; }
.frs-server__box {
	display: grid; gap: .15rem; height: 100%;
	padding: .9rem 1rem; border-radius: 14px;
	border: 1px solid var(--t-line); background: rgba(255, 255, 255, .03);
	transition: border-color .15s, background-color .15s, box-shadow .15s;
	position: relative;
}
.frs-server__name { font-weight: 900; font-size: 1rem; letter-spacing: .04em; text-transform: uppercase; color: #fff; }
.frs-server__hint { font-size: .8rem; color: var(--c-muted, #9aa4b8); font-weight: 500; }
.frs-server:hover .frs-server__box { border-color: rgba(255, 255, 255, .3); }
.frs-server input:checked + .frs-server__box {
	border-color: var(--t-accent);
	background: linear-gradient(135deg, rgba(47, 107, 255, .22), rgba(122, 77, 255, .16));
	box-shadow: 0 10px 24px -16px rgba(47, 107, 255, .9);
}
.frs-server input:checked + .frs-server__box::after {
	content: ""; position: absolute; top: .7rem; right: .7rem; width: 18px; height: 18px; border-radius: 50%;
	background: var(--t-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* Consent */
.frs-check { display: flex !important; gap: .7rem; align-items: flex-start; font-weight: 500 !important; font-size: .88rem !important; color: #c9d1e1 !important; cursor: pointer; }
.frs-check > span { position: relative; padding-left: 1.85rem; }
.frs-check > span::before {
	content: ""; position: absolute; left: 0; top: .1rem; width: 20px; height: 20px; border-radius: 6px;
	border: 1.5px solid #6f7a90; background: var(--t-field); transition: background-color .15s, border-color .15s;
}
.frs-check input:checked + span::before {
	border-color: var(--t-accent);
	background: var(--t-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.frs-check a { color: #8fb0ff; }
.frs-field--consent.is-invalid .frs-check > span::before { border-color: var(--t-err); }

/* Submit */
.frs-trial__submit { display: grid; gap: .75rem; justify-items: center; margin-top: 1.5rem; text-align: center; }
.frs-trial__btn {
	position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
	width: 100%; max-width: 420px; padding: 1.05rem 1.75rem; border: 0; border-radius: 14px; cursor: pointer;
	background: linear-gradient(135deg, var(--t-accent), var(--t-accent2)); color: #fff;
	font: inherit; font-weight: 900; font-size: 1.08rem; letter-spacing: .02em;
	box-shadow: 0 16px 32px -14px rgba(47, 107, 255, .85);
	transition: transform .15s, box-shadow .15s, opacity .15s;
}
.frs-trial__btn:hover { transform: translateY(-2px); box-shadow: 0 20px 36px -14px rgba(47, 107, 255, 1); }
.frs-trial__btn:focus-visible { outline: 3px solid var(--c-accent-2, #ffb547); outline-offset: 3px; }
.frs-trial__btn:disabled { opacity: .8; cursor: progress; transform: none; }
.frs-trial__spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: frs-spin .8s linear infinite; }
.frs-trial__btn.is-loading .frs-trial__spinner { display: inline-block; }
@keyframes frs-spin { to { transform: rotate(360deg); } }
.frs-trial__note { font-size: .8rem; color: var(--c-muted, #9aa4b8) !important; }

/* Alerts & confirmation */
.frs-trial__alert { margin-bottom: 1.25rem; padding: .9rem 1.1rem; border-radius: 12px; background: rgba(255, 107, 122, .1); border: 1px solid rgba(255, 107, 122, .4); color: #ffd3d8; font-weight: 600; }
.frs-trial__success { text-align: center; padding: clamp(1rem, 4vw, 2rem) .5rem; outline: none; animation: frs-pop .45s cubic-bezier(.2, .8, .2, 1.2); }
.frs-trial__success-icon {
	display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; margin-bottom: 1rem;
	background: linear-gradient(135deg, #22c55e, #3ddc97); color: #fff; box-shadow: 0 16px 34px -14px rgba(61, 220, 151, .8);
}
.frs-trial__success h3 { margin: 0 0 .5rem; font-size: clamp(1.4rem, 3vw, 1.8rem); color: #fff; }
.frs-trial__success p { max-width: 52ch; margin: 0 auto 1.4rem; color: #c9d1e1; }
.frs-trial__success-actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
@keyframes frs-pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.frs-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .frs-trial__success { animation: none; } .frs-trial__spinner { animation-duration: 2s; } }
.frs-trial__success:focus, .frs-trial__success:focus-visible { outline: none; }
