@font-face {
	font-family: "Roboto";
	src: url("../fonts/Roboto-Thin.eot");
	src: url("../fonts/Roboto-Thin.eot?#iefix") format("embedded-opentype"),
		url("../fonts/Roboto-Thin.woff") format("woff"),
		url("../fonts/Roboto-Thin.ttf") format("truetype"),
		url("../fonts/Roboto-Thin.svg#Roboto-Thin") format("svg");
	font-weight: 100;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Roboto";
	src: url("../fonts/Roboto-Regular.eot");
	src: url("../fonts/Roboto-Regular.eot?#iefix") format("embedded-opentype"),
		url("../fonts/Roboto-Regular.woff") format("woff"),
		url("../fonts/Roboto-Regular.ttf") format("truetype"),
		url("../fonts/Roboto-Regular.svg#Roboto-Regular") format("svg");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: Roboto;
	src: url("../fonts/Roboto-MediumItalic.eot");
	src: url("../fonts/Roboto-MediumItalic.eot?#iefix") format("embedded-opentype"),
		url("../fonts/Roboto-MediumItalic.woff") format("woff"),
		url("../fonts/Roboto-MediumItalic.ttf") format("truetype"),
		url("../fonts/Roboto-MediumItalic.svg#Roboto-MediumItalic") format("svg");
	font-weight: 500;
	font-style: italic;
	font-display: swap;
}

@font-face {
	font-family: Roboto;
	src: url("../fonts/Roboto-BlackItalic.eot");
	src: url("../fonts/Roboto-BlackItalic.eot?#iefix") format("embedded-opentype"),
		url("../fonts/Roboto-BlackItalic.woff") format("woff"),
		url("../fonts/Roboto-BlackItalic.ttf") format("truetype"),
		url("../fonts/Roboto-BlackItalic.svg#Roboto-BlackItalic") format("svg");
	font-weight: 900;
	font-style: italic;
	font-display: swap;
}

@font-face {
	font-family: Roboto;
	src: url("../fonts/Roboto-Bold.eot");
	src: url("../fonts/Roboto-Bold.eot?#iefix") format("embedded-opentype"),
		url("../fonts/Roboto-Bold.woff") format("woff"),
		url("../fonts/Roboto-Bold.ttf") format("truetype"),
		url("../fonts/Roboto-Bold.svg#Roboto-Bold") format("svg");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: Roboto;
	src: url("../fonts/Roboto-ThinItalic.eot");
	src: url("../fonts/Roboto-ThinItalic.eot?#iefix") format("embedded-opentype"),
		url("../fonts/Roboto-ThinItalic.woff") format("woff"),
		url("../fonts/Roboto-ThinItalic.ttf") format("truetype"),
		url("../fonts/Roboto-ThinItalic.svg#Roboto-ThinItalic") format("svg");
	font-weight: 100;
	font-style: italic;
	font-display: swap;
}

@font-face {
	font-family: Roboto;
	src: url("../fonts/Roboto-LightItalic.eot");
	src: url("../fonts/Roboto-LightItalic.eot?#iefix") format("embedded-opentype"),
		url("../fonts/Roboto-LightItalic.woff") format("woff"),
		url("../fonts/Roboto-LightItalic.ttf") format("truetype"),
		url("../fonts/Roboto-LightItalic.svg#Roboto-LightItalic") format("svg");
	font-weight: 300;
	font-style: italic;
	font-display: swap;
}

@font-face {
	font-family: Roboto;
	src: url("../fonts/Roboto-BoldItalic.eot");
	src: url("../fonts/Roboto-BoldItalic.eot?#iefix") format("embedded-opentype"),
		url("../fonts/Roboto-BoldItalic.woff") format("woff"),
		url("../fonts/Roboto-BoldItalic.ttf") format("truetype"),
		url("../fonts/Roboto-BoldItalic.svg#Roboto-BoldItalic") format("svg");
	font-weight: 700;
	font-style: italic;
	font-display: swap;
}

@font-face {
	font-family: Roboto;
	src: url("../fonts/Roboto-Italic.eot");
	src: url("../fonts/Roboto-Italic.eot?#iefix") format("embedded-opentype"),
		url("../fonts/Roboto-Italic.woff") format("woff"),
		url("../fonts/Roboto-Italic.ttf") format("truetype"),
		url("../fonts/Roboto-Italic.svg#Roboto-Italic") format("svg");
	font-weight: 400;
	font-style: italic;
	font-display: swap;
}

@font-face {
	font-family: Roboto;
	src: url("../fonts/Roboto-Medium.eot");
	src: url("../fonts/Roboto-Medium.eot?#iefix") format("embedded-opentype"),
		url("../fonts/Roboto-Medium.woff") format("woff"),
		url("../fonts/Roboto-Medium.ttf") format("truetype"),
		url("../fonts/Roboto-Medium.svg#Roboto-Medium") format("svg");
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: Roboto;
	src: url("../fonts/Roboto-Black.eot");
	src: url("../fonts/Roboto-Black.eot?#iefix") format("embedded-opentype"),
		url("../fonts/Roboto-Black.woff") format("woff"),
		url("../fonts/Roboto-Black.ttf") format("truetype"),
		url("../fonts/Roboto-Black.svg#Roboto-Black") format("svg");
	font-weight: 900;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: Roboto;
	src: url("../fonts/Roboto-Light.eot");
	src: url("../fonts/Roboto-Light.eot?#iefix") format("embedded-opentype"),
		url("../fonts/Roboto-Light.woff") format("woff"),
		url("../fonts/Roboto-Light.ttf") format("truetype"),
		url("../fonts/Roboto-Light.svg#Roboto-Light") format("svg");
	font-weight: 300;
	font-style: normal;
	font-display: swap;
}

:root {
	--theme-color--primary: #e63748;
	--theme-color--primary-dark: #c42b34;
	--theme-color--primary-light: #ffebeb;
	--theme-color--secondary: #0bc86d;
	--theme-color--secondary-dark: #0cb061;
	--theme-color--secondary-light: #eaf6ef;
	--theme-color--darkest-grey: #1d2023;
	--theme-color--dark-grey: #2c3035;
	--theme-color--medium-grey: #5a636d;
	--theme-color--grey: #979797;
	--theme-color--light-grey: #dedede;
	--theme-color--lightest-grey: #f6f6f6;
	--theme-color--warning: #ec9101;
	--theme-color--light-warning: #fff7e1;
	--font-family: "Roboto", sans-serif;
}

body {
	font-family: var(--font-family);
}

.bg-container {
    /* Use the preloaded WebP first */
    background-image: url('../images/bg.webp');
    /* Fallbacks */
    background-image: 
        image-set(
            url('../images/bg.webp') type('image/webp'),
            url('../images/bg.jpg') type('image/jpeg'),
            url('../images/bg.png') type('image/png')
        );
    /* Ensure it covers properly */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.ribbon-desktop {
    --f: 0.5em;
    --r: 0.8em;
    position: relative;
    top: 0;
    left: calc(-1 * var(--f));
    display: inline-block;
    text-align: left;
    padding: 0.5rem 1.25rem 0.5rem 1.5rem;
    padding-inline: 1.5em;
    border-bottom: var(--f) solid #0005;
    border-right: var(--r) solid #0000;
    font-family: var(--font-family) !important;
    font-size: 0.875rem;
    font-weight: 800;
    letter-spacing: 0.0625rem;
    line-height: 1.8;
    text-transform: uppercase;
    color: #fff;
    background: #e63748;
    clip-path: polygon(
        0 0,
        0 calc(100% - var(--f)),
        var(--f) 100%,
        var(--f) calc(100% - var(--f)),
        100% calc(100% - var(--f)),
        calc(100% - var(--r)) calc(50% - var(--f) / 2),
        100% 0
    );
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.ribbon-mobile {
    --r: .8em;
    position: relative;
    display: inline-block;
    width: fit-content;
    padding: 0.5rem 1.25rem 0.5rem 1.5rem;
    padding-inline: calc(var(--r) + .8em);
    font-size: 0.875rem;
    font-weight: 800;
    letter-spacing: 0.0625rem;
    line-height: 1.8;
    text-transform: uppercase;
    color: #fff;
    background: #e63748;
    clip-path: polygon(0 0, 100% 0, calc(100% - var(--r)) 50%, 100% 100%, 0 100%, var(--r) 50%);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.headline {
	font-family: var(--font-family) !important;
	margin-bottom: 1.25rem;
	letter-spacing: 0;
	color: #fff;
	font-style: normal;
	font-weight: 400;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.checkout-headline {
	font-family: var(--font-family) !important;
	letter-spacing: 0;
	color: #fff;
	font-style: normal;
	font-weight: 400;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
.checkout-headline2 {
	font-family: var(--font-family) !important;
	letter-spacing: 0;
	color: #E63748;
	font-style: normal;
	font-weight: 500;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.subtitle{
	font-family: var(--font-family) !important;
	margin-bottom: 1.5625rem;
	letter-spacing: 0;
	color: #fff;
	font-style: normal;
	font-weight: 400;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.feature-text {
	font-family: var(--font-family) !important;
	margin-bottom: 0;
	letter-spacing: 0.025em;
	color: #fff;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.saving {
	font-family: var(--font-family) !important;
	margin-bottom: 0.3125rem;
	letter-spacing: 0;
	line-height: 1;
	color: #fff;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.price {
	font-family: var(--font-family) !important;
	font-weight: 500;
}

.rewards {
	font-family: var(--font-family) !important;
	line-height: 1;
	color: #fff;
	font-size: 0.75rem;
	text-align: left;
	font-weight: 400;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.feature-grid__heading {
	font-family: var(--font-family) !important;
	margin: 0 0 1.5625rem;
	font-weight: 400;
	letter-spacing: 0;
	line-height: 3rem;
	color: #1d2023;
	font-style: normal;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.feature-card__title {
	font-family: var(--font-family) !important;
	margin: 0 0 0.3125rem;
	font-weight: 400;
	line-height: 2.1875rem;
	color: #1d2023;
	font-size: 1.25rem;
	font-style: normal;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.feature-card__description {
	font-family: var(--font-family) !important;
	margin-bottom: 0;
	font-weight: 400;
	line-height: 1.5rem;
	color: #5a636d;
	font-size: 0.875rem;
	font-style: normal;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.feature-grid__subtitle {
	font-family: var(--font-family) !important;
	font-weight: 400;
	font-size: 1.125rem;
	letter-spacing: 0;
	line-height: 1.875rem;
	color: #5a636d;
	font-style: normal;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.feature-grid__list {
	font-family: var(--font-family) !important;
	font-weight: 400;
	font-size: 1.125rem;
	letter-spacing: 0;
	color: #5a636d;
	font-style: normal;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.footer__section-container__title {
	font-family: var(--font-family) !important;
	margin-bottom: 0.5rem;
	font-weight: 400;
	font-size: 0.9375rem;
	letter-spacing: 0;
	color: #fff;
	font-style: normal;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.footer__top {
	font-family: var(--font-family) !important;
	font-weight: 400;
	font-size: 0.875rem;
	letter-spacing: 0.01563rem;
	color: #979797;
	font-style: normal;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.footer__top:hover {
	color: #fff;
}

/* FAQ Specific Styles */
.faq-item.active .faq-answer {
    max-height: 300px; /* Adjust based on your content */
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: var(--theme-color--primary);
}

.faq-question:focus {
    outline: 2px solid var(--theme-color--primary);
    outline-offset: 2px;
}

.faq-answer {
    transition: max-height 0.3s ease-out;
}

.faq-item:hover .faq-question {
    background-color: var(--theme-color--lightest-grey);
}

.faq-item {
    border-color: var(--theme-color--light-grey);
    transition: border-color 0.3s ease;
}

.faq-item.active {
    border-color: var(--theme-color--primary);
}

.secure-terms-tracker__terms {
	background: #EAF6EF;
	padding: 10px;
	margin: 30px 0px 30px 0px;
	font-family: var(--font-family) !important;
	font-weight: 400;
	font-size: 0.875rem;
	letter-spacing: 0.01563rem;
	color: #32373b;
	font-style: normal;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.terms {
	font-family: var(--font-family) !important;
	font-weight: 400;
	letter-spacing: 0.01563rem;
	color: #1d2023;
	font-style: normal;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.checkout-button {
	font-family: var(--font-family) !important;
	font-weight: 600;
	font-size: 15px;
	font-style: normal;
	box-shadow: 0 10px 30px 0 rgba(11,200,109,0.35);
	border-radius: 31px;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.saving-tag {
	font-family: var(--font-family) !important;
	font-weight: 400;
	font-style: normal;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.checkout-product-headline {
	font-family: var(--font-family) !important;
	font-weight: 500;
	color: #1A1D21;
	font-style: normal;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Modal Animation */
#legal-modal {
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease-out;
}

#legal-modal > div {
    animation: slideIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Legal content styling */
.legal-content h3 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.legal-content ul {
    margin-bottom: 1rem;
}
