/*
  Styles for Browser Fixer landing page
  Figma tokens mapped to CSS variables for consistency and easy updates
*/

:root {
  /* Colors (from Figma variables) */
  --color-white: #ffffff;
  /* Web/White */
  --color-oxford-blue: #374151;
  /* Web/Oxford Blue */
  --color-river-bed: #4b5563;
  /* Web/River Bed */
  --color-gray-chateau: #9ca3af;
  /* Web/Gray Chateau */
  --color-athens-gray: #f3f4f6;
  /* Web/Athens Gray */
  --color-light-blue: #f2f6fe;
  /* Light blue Color */
  --color-brand: #2563eb;
  /* Brand Color */
  --color-brand-200: #60a5fa;
  /* color/azure/68 */
  --color-success: #22c55e;
  /* Web/Mountain Meadow */
  --color-warning: #facc15;
  /* Web/Candlelight */

  /* Typography (Nimbus Sans L in Figma) */
  --font-family-sans: "Nimbus Sans L", system-ui, -apple-system, Segoe UI,
    Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";

  /* Font sizes and line heights */
  --fs-12: 12px;
  /* Small text */
  --lh-16: 16px;
  --fs-14: 14px;
  /* Label */
  --lh-20: 20px;
  --fs-16: 16px;
  /* Body */
  --lh-24: 24px;
  --fs-18: 18px;
  /* H4 */
  --lh-28: 28px;
  --fs-20: 20px;
  /* H3/H4 */
  --lh-28-2: 28px;
  --fs-24: 24px;
  /* H1 semantic */
  --lh-32: 32px;
  --fs-30: 30px;
  /* larger subheading */
  --fs-36: 36px;
  /* H2 */
  --lh-40: 40px;
  --fs-60: 60px;
  /* Display/Hero */
  --lh-32-5: 32.5px;
  /* provided but not directly used */

  /* Spacing */
  --space-xxs: 4px;
  --space-xs: 8px;
  --space-s: 12px;
  --space-m: 16px;
  --space-l: 24px;
  --space-xl: 32px;
  --space-2xl: 40px;
  --space-3xl: 48px;
  --space-4xl: 64px;

  /* Layout widths */
  --container: 1280px;
  /* Figma width/1280 */
  --radius-m: 12px;
  --radius-l: 16px;
  --shadow-soft: 0 10px 30px rgba(37, 99, 235, 0.08);
  --border-1: 1px;
  --border-2: 2px;
}

/* Base Reset and Typography */
* {
  box-sizing: border-box;
}

html:focus-within {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-oxford-blue);
  background: var(--color-white);
  font-family: var(--font-family-sans);
  font-size: var(--fs-16);
  line-height: var(--lh-24);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  padding: 8px 12px;
  background: var(--color-brand);
  color: var(--color-white);
  border-radius: 6px;
  z-index: 1000;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-athens-gray);
  padding: 16px 0;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 480px;
}

.site-header__brand {
  display: flex;
  align-items: center;
}

.site-header__logo {
  height: 32px;
  width: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-nav {
  display: none;
}

.site-nav__list {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.site-nav__link {
  font-size: var(--fs-16);
  line-height: var(--lh-24);
  color: var(--color-river-bed);
  font-weight: 400;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.site-nav__link:hover {
  color: var(--color-oxford-blue);
  transform: translateY(-1px);
}

/* Active nav link */
.site-nav__link--active {
  color: var(--color-brand);
  font-weight: 700;
  position: relative;
  transform: translateY(-1px);
}

/* Section highlighting when active */
section[id] {
  transition: all 0.3s ease;
}

section[id]:target {
  animation: sectionHighlight 0.5s ease-out;
}

@keyframes sectionHighlight {
  0% {
    background: rgba(37, 99, 235, 0.02);
  }

  50% {
    background: rgba(37, 99, 235, 0.05);
  }

  100% {
    background: transparent;
  }
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--color-brand);
  color: var(--color-white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
  z-index: 1000;
  opacity: 0;
  transform: translateY(20px);
}

.back-to-top:hover {
  background: var(--color-brand-200);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(37, 99, 235, 0.4);
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.site-header__cta {
  display: none;
}

.site-header__menu {
  border: 0;
  background: transparent;
  padding: 8px;
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}

.site-header__menu-bar {
  width: 24px;
  height: 2px;
  background: var(--color-oxford-blue);
  display: block;
}

/* Scroll Progress Indicator removed */

.site-nav-drawer[hidden] {
  display: none;
}

.site-nav-drawer {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-athens-gray);
}

.site-nav-drawer__list {
  list-style: none;
  margin: 0;
  padding: 16px 24px 24px;
  display: grid;
  gap: 12px;
}

/* Active state for mobile drawer links */
.site-nav-drawer__list a.active {
  color: var(--color-brand);
  font-weight: 700;
  position: relative;
  padding-left: 16px;
}

.site-nav-drawer__list a.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 20px;
  background: var(--color-brand);
  border-radius: 2px;
  animation: slideInLeft 0.3s ease-out;
}

@media (max-width: 1200px) {
  .site-header__inner {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .site-header__inner {
    gap: 16px;
  }

  .container {
    padding-inline: 16px;
  }
}

@keyframes slideInLeft {
  from {
    height: 0;
    opacity: 0;
  }

  to {
    height: 20px;
    opacity: 1;
  }
}

.no-scroll {
  overflow: hidden;
}

.badge {
  position: absolute;
  top: -13px;
  right: -14px;
  width: 120px;
  height: 120px;
  background-image: url("../images/Coming\ Soon.svg");
  background-size: cover;
  background-repeat: no-repeat;
  /* Ensure badge doesn't affect card layout */
  z-index: 1;
  pointer-events: none;
}

.download-card__icon-image {
  width: 100px;
  height: 100px;
  border-radius: 10px;
}

/* Buttons */
.btn {
  --btn-bg: transparent;
  --btn-color: var(--color-oxford-blue);
  --btn-border: var(--color-oxford-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  border: var(--border-2) solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--btn-color);
  font-weight: 700;
  font-size: var(--fs-16);
  line-height: var(--lh-24);
}

.btn-screenshot {
  border-color: var(--color-brand);
  color: var(--color-brand);
}

.btn-screenshot:hover {
  background: var(--color-brand);
  color: var(--color-white);
}

.btn-download:hover {
  background: #0043d5;
  color: var(--color-white);
  cursor: pointer;
}

.btn--block {
  width: 100%;
}

.btn--lg {
  padding: 14px 20px;
  font-size: var(--fs-18);
  line-height: var(--lh-28);
}

.btn--primary {
  --btn-bg: var(--color-brand);
  --btn-color: var(--color-white);
  --btn-border: var(--color-brand);
  box-shadow: var(--shadow-soft);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-color: var(--color-oxford-blue);
  --btn-border: var(--color-athens-gray);
}

.btn--outline {
  --btn-bg: transparent;
  --btn-border: var(--color-white);
  --btn-color: var(--color-white);
}

.btn--inverted {
  --btn-bg: var(--color-white);
  --btn-border: var(--color-white);
  --btn-color: var(--color-brand);
}

/* Hero */
.hero {
  background: #eef4ff;
  padding: 72px 0;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.hero__title {
  font-weight: 700;
  font-size: 44px;
  line-height: 1.15;
  color: var(--color-oxford-blue);
  margin: 0 0 12px;
}

.hero__subtitle {
  color: var(--color-river-bed);
  margin: 0 0 20px;
  max-width: 56ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0 12px;
}

.hero__bullets {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  color: var(--color-river-bed);
}

/* Bullet item */
.hero__bullet {
  position: relative;
  padding-left: 18px;
  font-weight: 500;
}

.hero__bullet::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-success);
}

/* Highlight color in heading */
.hero__title--accent {
  color: var(--color-brand);
}

.hero__media {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__media-card img {
  width: min(560px, 100%);
  height: auto;
  display: block;
}

/* Section header */
.section-header {
  text-align: center;
  margin-bottom: 32px;
}

.section-header__title {
  font-weight: 700;
  font-size: var(--fs-36);
  line-height: var(--lh-40);
  color: var(--color-oxford-blue);
  margin: 0 0 8px 0;
}

.section-header__subtitle {
  color: var(--color-river-bed);
  margin: 0;
}

/* Features */
.features {
  padding: 56px 0;
  background: var(--color-white);
}

.features__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .features__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

.screenshots__grid {
  grid-template-columns: 1fr;
}

.feature-card {
  border-radius: 12px;
  background: rgba(245, 245, 245, 0.5);
  border: 1px solid var(--color-athens-gray);
  border-radius: var(--radius-l);
  padding: 20px;
  display: grid;
  gap: 8px;
  position: relative;
  /* Ensure consistent grid layout */
  grid-template-rows: auto auto 1fr;
  align-items: start;
}

.feature-card:hover {
  border-radius: 12px;
  background: var(--color-grey-9650, rgba(245, 245, 245, 0.5));
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.feature-card--ribbon {
  overflow: visible;
}

.feature-card--ribbon .feature-card__ribbon {
  position: absolute;
  top: -10px;
  right: -52px;
  background: #f97316;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  width: 220px;
  height: 34px;
  line-height: 34px;
  text-align: center;
  border-radius: 4px;
  transform: rotate(45deg);
  transform-origin: right center;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
  z-index: 3;
  pointer-events: none;
}

.feature-card--popular {
  border-color: var(--color-brand);
  box-shadow: 0 0 0 1px var(--color-brand);
}

.feature-card__badge {
  position: absolute;
  top: -8px;
  right: 16px;
  background: #f97316;
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transform: rotate(15deg);
}

.feature-card__icon {
  width: 40px;
  height: 40px;
  /* Ensure consistent positioning */
  align-self: start;
}

.feature-card__title {
  margin: 0;
  font-size: var(--fs-20);
  line-height: var(--lh-28-2);
  font-weight: 700;
  color: var(--color-oxford-blue);
  /* Ensure consistent vertical alignment across all cards */
  align-self: start;
}

.feature-card__text {
  margin: 0;
  color: var(--color-river-bed);
}

/* Screenshots */
.screenshots {
  padding: 56px 0;
  background: var(--color-white);
}

.screenshots__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .screenshots__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

.screenshot {
  background: transparent;
  border: none;
  border-radius: var(--radius-l);
  padding: 0;
  position: relative;
  overflow: hidden;
  text-align: left;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.screenshot--large {
  padding: 0;
  grid-column: span 1;
}

.screenshot--small {
  /* Small screenshots for bottom row */
  padding: 0;
  grid-column: span 1;
}

.screenshot img {
  width: 100%;
  height: auto;
  border-radius: 16px 16px 0 0;
  display: block;
  object-fit: cover;
}

/* Screenshot caption card (white only below image) */
.screenshot__caption {
  background: var(--color-white);
  border-left: 1px solid var(--color-athens-gray);
  border-right: 1px solid var(--color-athens-gray);
  border-bottom: 1px solid var(--color-athens-gray);
  border-top: none;
  border-radius: 0 0 16px 16px;
  padding: 18px 20px;
  margin-top: -1px;
  /* visually merge border with image */
  box-shadow: var(--shadow-soft);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.screenshot--small .screenshot__caption {
  padding: 14px 16px;
}

.screenshot__title {
  margin: 0 0 8px 0;
  font-size: var(--fs-16);
  line-height: var(--lh-28);
  font-weight: 700;
  color: var(--color-oxford-blue);
}

.screenshot__title__light {
  margin: 0 0 8px 0;
  font-size: var(--fs-14);
  line-height: var(--lh-28);
  font-weight: 400;
  color: var(--color-oxford-blue);
}

.screenshot--large .screenshot__title {
  font-size: var(--fs-20);
  line-height: var(--lh-28-2);
}

.screenshot--small .screenshot__title {
  font-size: var(--fs-14);
  line-height: var(--lh-20);
  margin-bottom: 0;
}

.screenshot__text {
  margin: 0;
  color: var(--color-river-bed);
  font-size: var(--fs-14);
  line-height: var(--lh-20);
}

.screenshot--small .screenshot__text {
  display: none;
}

/* Popular badge for middle screenshot */
.screenshot--popular::before {
  content: "POPULAR";
  position: absolute;
  top: -8px;
  right: 16px;
  background: #f97316;
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transform: rotate(15deg);
  z-index: 10;
}

/* Coming Soon Banner */
.coming-soon-banner-screenshot {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 118px;
  height: 118px;
  background-image: url("../images/Coming\ Soon.svg");
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 2;
  pointer-events: none;
}

/* Responsive sizing for the Coming Soon badge */
@media (max-width: 1200px) {
  .coming-soon-banner-screenshot {
    width: 104px;
    height: 104px;
    top: 12px;
    right: 12px;
  }
}

@media (max-width: 1024px) {
  .coming-soon-banner-screenshot {
    width: 88px;
    height: 88px;
    top: 15px;
    right: 13px;
  }
}

/* Tweak just above tablet breakpoint where layout was breaking */
@media (max-width: 820px) {
  .coming-soon-banner-screenshot {
    width: 72px;
    height: 72px;
    top: 0;
    right: 0;
  }
}

@media (max-width: 768px) {
  .coming-soon-banner-screenshot {
    width: 68px;
    height: 68px;
    top: 0;
    right: 0;
  }
}

@media (max-width: 480px) {
  .coming-soon-banner-screenshot {
    width: 90px;
    height: 90px;
    top: 0;
    right: 0;
  }
}

/* Testimonials */
.testimonials {
  padding: 56px 0;
  border-radius: 12px;
  background: var(--color-white-solid, #fff);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.testimonial {
  border-radius: var(--radius-l);
  background: var(--color-white-solid, #fff);
  box-shadow: 0 14px 28px rgba(16, 24, 40, 0.12);
  padding: 24px;
  border: 1px solid var(--color-athens-gray);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  margin: 0px !important;
}

.testimonial__stars {
  display: flex;
  gap: 2px;
}

.star {
  color: #fbbf24;
  font-size: 16px;
  line-height: 1;
}

.testimonial__quote {
  margin: 0 0 20px 0;
  font-size: var(--fs-14);
  line-height: var(--lh-24);
  color: var(--color-oxford-blue);
  font-style: normal;
}

.testimonial__author {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.author__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 16px;
  flex-shrink: 0;
}

.author__avatar--blue {
  background: #3b82f6;
}

.author__avatar--green {
  background: #10b981;
}

.author__avatar--purple {
  background: #8b5cf6;
}

.author__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.author__name {
  font-weight: 600;
  font-size: var(--fs-14);
  color: var(--color-oxford-blue);
  line-height: var(--lh-20);
}

.author__title {
  font-size: var(--fs-12);
  color: var(--color-gray-chateau);
  line-height: var(--lh-16);
}

/* Statistics Section */
.testimonials__stats {
  margin-top: 48px;
  padding: 32px 0;
  border-radius: 16px;
  background: rgba(37, 99, 235, 0.1);
  border-radius: var(--radius-l);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
  border: 1px solid var(--color-athens-gray);
  box-shadow: var(--shadow-soft);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.stat__number {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-brand);
  line-height: 1;
}

.stat__label {
  font-size: var(--fs-14);
  color: var(--color-river-bed);
  line-height: var(--lh-20);
}

/* Mobile stats layout */
@media (max-width: 786px) {
  .testimonials__stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 32px;
    padding: 24px;
  }

  .stat__number {
    font-size: 24px;
  }

  .testimonials__grid {
    grid-template-columns: repeat(1, 1fr);
  }

  .hero {
    padding: 48px 0;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }

  .hero__title {
    font-size: 32px;
    line-height: 1.2;
  }

  .hero__media {
    order: -1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
  }

  .hero__media img {
    max-width: 100%;
    height: auto;
  }

  .hero__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
  }

  .features__grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 480px) {
  .container {
    padding-inline: 12px;
  }

  .hero {
    padding: 32px 0;
  }

  .hero__title {
    font-size: 28px;
    line-height: 1.25;
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .features__grid {
    grid-template-columns: repeat(1, 1fr) !important;
  }

  .screenshots__grid {
    grid-template-columns: repeat(1, 1fr) !important;
  }

  .coming-soon-banner-screenshot {
    top: -1px;
    right: -3px;
  }

  .section-header__title {
    font-size: 28px;
    line-height: 32px;
  }

  .features {
    padding: 40px 0;
  }

  .screenshots {
    padding: 40px 0;
  }
}

/* User Categories */
.user-categories {
  padding: 80px 0;
  background: var(--color-grey-98, #f9fafb);
}

.user-categories__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 48px;
}

.user-category {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: center;
  border-radius: 12px;
  background: #fff;
  box-shadow: 10px 1px 20px 30px rgba(213, 216, 218, 0.14);
  padding: 0;
  overflow: hidden;
}

.user-category__image {
  border-radius: 0;
  overflow: hidden;
}

.user-category__image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
}

.user-category__content {
  text-align: left;
  padding: 16px;
}

.user-category__badge {
  display: inline-block;
  background: var(--color-azure-5210, rgba(41, 171, 226, 0.1));
  color: var(--color-brand);
  border-radius: 20px;
  font-size: var(--fs-12);
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.user-category__title {
  margin: 0 0 12px 0;
  font-size: var(--fs-24);
  line-height: var(--lh-32);
  font-weight: 700;
  color: var(--color-oxford-blue);
}

.user-category__text {
  margin: 0;
  font-size: var(--fs-16);
  line-height: var(--lh-24);
  color: var(--color-river-bed);
}

/* Desktop layout - 2x2 grid */
@media (min-width: 768px) {
  .user-categories__grid {
    gap: 48px 40px;
    max-width: 1000px;
    margin: 48px auto 0;
  }

  .user-category {
    display: flex;
    gap: 0;
    align-items: stretch;
    padding: 0;
  }

  .user-category--image-left {
    flex-direction: row;
  }

  /* Force images to be on the left for both variants to match reference */
  .user-category--image-right {
    flex-direction: row;
  }

  .user-category__content {
    flex: 1;
    min-width: 0;
    padding: 20px;
  }

  /* Constrain image column and keep proper cover fit on tablet/desktop */
  .user-category__image {
    flex: 0 0 45%;
    width: 45%;
    height: auto;
  }

  .user-category__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
}

@media (max-width: 768px) {
  .user-categories__grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1024px) {
  .user-categories {
    padding: 100px 0;
  }

  .user-categories__grid {
    gap: 30px;
  }

  .user-category {
    gap: 0;
    padding: 0;
  }

  /* Keep same layout at >=1024px; no changes needed beyond 768px rules */
}

/* CTA */
.cta {
  padding: 56px 0;
  background: var(--color-brand);
  color: var(--color-white);
}

.cta__inner {
  display: grid;
  gap: 16px;
  align-items: center;
  grid-template-columns: 1fr;
}

.cta__title {
  margin: 0;
  font-weight: 700;
  font-size: var(--fs-30);
  line-height: 38px;
}

.cta__subtitle {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

.cta__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* FAQ */
.faq {
  padding: 56px 0;
}

.faq__list {
  display: grid;
  gap: 12px;
}

.faq__item {
  background: var(--color-white);
  border: 1px solid var(--color-athens-gray);
  border-radius: var(--radius-l);
  padding: 16px;
}

.faq__question {
  cursor: pointer;
  font-weight: 700;
}

.faq__answer {
  margin-top: 8px;
  color: var(--color-river-bed);
}

/* Footer */
.site-footer {
  padding: 40px 0;
  background: var(--color-white);
  border-top: 1px solid var(--color-athens-gray);
}

.site-footer__inner {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  align-items: center;
  text-align: center;
}

.site-footer__logo {
  height: 34px;
}

.site-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 16px;
  justify-content: center;
}

.site-footer__copy {
  margin: 0;
  color: var(--color-gray-chateau);
  font-size: var(--fs-14);
  line-height: var(--lh-20);
}

/* Footer (Figma) */
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 32px 0;
}

.footer-tagline-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-tagline {
  font-size: var(--fs-14);
  line-height: var(--lh-20);
  color: white;
  font-weight: 400;
}

.footer-tagline-title {
  font-size: var(--fs-14);
  line-height: var(--lh-20);
  color: white;
  font-weight: 700;
}

.footer-brand {
  display: flex;
  align-items: center;
}

.footer-title {
  margin: 0 0 8px 0;
  font-weight: 700;
  font-size: var(--fs-20);
  line-height: var(--lh-28);
  color: var(--color-oxford-blue);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer-links a {
  color: var(--color-river-bed);
  font-size: var(--fs-14);
  line-height: var(--lh-20);
}

.footer-links a:hover {
  color: var(--color-oxford-blue);
}

.footer-bottom {
  border-top: 1px solid var(--color-athens-gray);
  padding: 16px 0 32px;
  text-align: center;
}

/* Footer bar variant per screenshot */
.footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-tagline-container {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-tagline {
  margin: 0;
  color: var(--color-gray-chateau);
  font-size: var(--fs-14);
  line-height: var(--lh-20);
}

.footer-right {
  text-align: right;
}

.footer-links {
  display: flex;
  gap: 16px;
  margin-bottom: 8px;
  justify-content: flex-end;
}

.footer-links .footer-link {
  color: #ffffff !important;
  font-size: var(--fs-14);
  line-height: var(--lh-20);
  text-decoration: none !important;
  transition: color 0.2s ease;
  font-weight: 500;
}

.footer-links .footer-link:hover {
  color: #60a5fa !important;
  text-decoration: underline !important;
}

.footer-copy {
  margin: 0;
  color: var(--color-gray-chateau);
  font-size: var(--fs-14);
  line-height: var(--lh-20);
}

.footer-made {
  margin: 2px 0 0 0;
  color: var(--color-gray-chateau);
  font-size: 12px;
  line-height: 16px;
}

.heart {
  color: #ef4444;
}

/* Larger screens */
@media (min-width: 768px) {
  .site-header__menu {
    display: none;
  }

  .site-nav {
    display: block;
    flex: 1;
    display: flex;
    justify-content: center;
  }

  .site-header__inner {
    justify-content: flex-start;
  }

  .hero {
    padding: 88px 0 72px;
  }

  .hero__inner {
    align-items: center;
    gap: 40px;
  }

  .hero__title {
    font-size: var(--fs-60);
    line-height: 64px;
  }

  .screenshots__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: auto auto;
    gap: 24px;
    align-items: start;
  }

  /* Top row: 2 equal large screenshots */
  .screenshot--large:nth-child(1) {
    grid-column: 1 / span 3;
    grid-row: 1;
  }

  .screenshot--large:nth-child(2) {
    grid-column: 4 / span 3;
    grid-row: 1;
  }

  /* Bottom row: 3 smaller screenshots in equal widths */
  .screenshot--small:nth-child(3) {
    grid-column: 1 / span 2;
    grid-row: 2;
  }

  .screenshot--small:nth-child(4) {
    grid-column: 3 / span 2;
    grid-row: 2;
  }

  .screenshot--small:nth-child(5) {
    grid-column: 5 / span 2;
    grid-row: 2;
  }

  .testimonials__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .cta__inner {
    grid-template-columns: 1fr auto;
  }

  .site-footer__inner {
    grid-template-columns: auto 1fr auto;
    text-align: left;
  }

  .site-footer__list {
    justify-content: center;
  }
}

/* Download */
.download {
  padding: 80px 0;
  background: var(--color-white);
}

.download__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}

.download__badge {
  display: inline-block;
  background: var(--color-brand);
  color: var(--color-white);
  font-size: var(--fs-12);
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.download__title {
  margin: 0 0 8px 0;
  font-weight: 700;
  font-size: var(--fs-36);
  line-height: var(--lh-40);
  color: var(--color-oxford-blue);
}

.download__subtitle {
  margin: 0 0 16px 0;
  color: var(--color-river-bed);
}

.site-footer {
  padding: 40px 20px;
}

.site-footer__inner {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  align-items: center;
  text-align: center;
}

.download__bullets {
  list-style: none;
  margin: 0 0 16px 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.download__bullet {
  position: relative;
  padding-left: 28px;
}

.download__bullet::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-success);
}

.download__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  color: var(--color-gray-chateau);
  font-size: var(--fs-14);
}

.meta__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.meta__item img {
  width: 18px;
  height: 18px;
}

.download__card {
  background: var(--color-light-blue);
  border: 1px solid var(--color-athens-gray);
  border-radius: var(--radius-l);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.download__logo {
  height: 28px;
  margin: 0 auto 16px;
}

.btn--xl {
  padding: 16px 24px;
  font-size: 20px;
  line-height: 28px;
}

.download__button {
  width: 100%;
  justify-content: center;
  gap: 10px;
}

.download__button-icon {
  width: 20px;
  height: 20px;
}

.download__note {
  margin: 12px 0 0 0;
  color: var(--color-river-bed);
  font-size: var(--fs-14);
}

.download__note a {
  color: var(--color-brand);
  text-decoration: underline;
}

@media (min-width: 896px) {
  .download__inner {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
  }
}

/* Download — centered card (per Figma) */
.download__heading {
  text-align: center;
  margin: 0 0 32px 0;
  font-weight: 700;
  font-size: var(--fs-36);
  line-height: var(--lh-40);
  color: var(--color-oxford-blue);
}

.download-card {
  width: 448px;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 16px;
  background: var(--color-white-solid, #fff);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 8px 10px -6px rgba(0, 0, 0, 0.1);
  padding: 28px 24px 24px;
  text-align: center;
}

.download-card__icon img {
  width: 56px;
  height: 56px;
  display: block;
  margin: 0 auto 12px;
}

.download-card__title {
  margin: 0 0 6px 0;
  font-weight: 700;
  font-size: var(--fs-20);
  line-height: var(--lh-28-2);
  color: var(--color-oxford-blue);
}

.download-card__subtitle {
  margin: 0 0 16px 0;
  color: var(--color-river-bed);
  font-size: var(--fs-14);
  line-height: var(--lh-20);
}

.download-info {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
  color: #6b7280;
  font-size: var(--fs-14);
  line-height: var(--lh-20);
}

.download-info li {
  margin: 4px 0;
}

.info__label {
  color: #6b7280;
  font-weight: 700;
}

.download-features {
  list-style: none;
  padding: 0;
  margin: 8px 0 16px 0;
  display: grid;
  gap: 10px;
  color: #424242;
}

.download-features li {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.download-features img {
  width: 16px;
  height: 16px;
}

.download-card__button {
  width: min(100%, 360px);
  margin: 4px auto 0 auto;
  border-radius: 12px;
  background-color: var(--color-brand);
  color: var(--color-white);
  cursor: pointer;
}

.download-card__button:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0px 12px 20px -3px rgba(0, 0, 0, 0.15),
    0px 6px 8px -4px rgba(0, 0, 0, 0.1);
}
.download-card__button:active {
  transform: translateY(0);
  box-shadow: 0px 8px 12px -3px rgba(0, 0, 0, 0.1),
    0px 4px 6px -4px rgba(0, 0, 0, 0.1);
}
.download-card__button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

/* Disabled state for download button */
.download-card__button:disabled {
  background-color: #9ca3af !important;
  color: #6b7280 !important;
  cursor: not-allowed !important;
  opacity: 0.6 !important;
  transform: none !important;
  box-shadow: none !important;
  border-color: #9ca3af !important;
}

.download-card__button:disabled:hover {
  background-color: #9ca3af !important;
  color: #6b7280 !important;
  transform: none !important;
  box-shadow: none !important;
}
/* Disable all download buttons */
/* .btn[href="#download"],
.btn[href="#"] {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  background-color: #9ca3af !important;
  color: #6b7280 !important;
  border-color: #9ca3af !important;
}

.btn[href="#download"]:hover,
.btn[href="#"]:hover {
  opacity: 0.5 !important;
  transform: none !important;
  background-color: #9ca3af !important;
  color: #6b7280 !important;
  border-color: #9ca3af !important;
} */

.download-card__fineprint {
  margin: 12px 0 0 0;
  font-size: 12px;
  line-height: 16px;
  color: var(--color-gray-chateau);
}

@media (min-width: 1024px) {
  .section-header {
    margin-bottom: 40px;
  }

  .feature-card {
    padding: 24px;
  }

  .screenshot {
    padding: 24px;
  }

  .testimonial {
    padding: 24px;
  }

  .testimonials__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 896px) {
  .footer-grid {
    grid-template-columns: 1.2fr repeat(3, 1fr);
    align-items: start;
  }

  .footer-bottom {
    text-align: left;
  }
}

/* Dark footer background like Figma */
.site-footer {
  background: #3f3f3f;
}

.footer-tagline,
.footer-copy,
.footer-made {
  color: rgba(255, 255, 255, 0.72);
}

/* Contact */
.contact {
  padding: 80px 0;
  background: var(--color-grey-98, #f9fafb);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.contact__inner {
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
}

.contact__form {
  border-radius: 16px;
  background: var(--color-white-solid, #fff);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 8px 10px -6px rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.form__field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.form__field label {
  font-size: var(--fs-14);
  line-height: var(--lh-20);
  color: var(--color-oxford-blue);
}

.form__field input,
.form__field textarea {
  width: 100%;
  border: 1px solid var(--color-azure-84, #d1d5db);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: var(--fs-18);
}

/* Ensure placeholder text uses the same font as the rest of the site */
.form__field input::placeholder,
.form__field textarea::placeholder {
  font-family: var(--font-family-sans);
  color: var(--color-gray-chateau);
  opacity: 1;
  /* consistent color across browsers */
}

.form__field input::-webkit-input-placeholder,
.form__field textarea::-webkit-input-placeholder {
  font-family: var(--font-family-sans);
  color: var(--color-gray-chateau);
}

.form__field input::-moz-placeholder,
.form__field textarea::-moz-placeholder {
  font-family: var(--font-family-sans);
  color: var(--color-gray-chateau);
}

.form__field input:-ms-input-placeholder,
.form__field textarea:-ms-input-placeholder {
  font-family: var(--font-family-sans);
  color: var(--color-gray-chateau);
}

.form__field input::-ms-input-placeholder,
.form__field textarea::-ms-input-placeholder {
  font-family: var(--font-family-sans);
  color: var(--color-gray-chateau);
}

.form__field input:focus,
.form__field textarea:focus {
  outline: none;
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Error state styles */
.form__field input.error,
.form__field textarea.error {
  border-color: #f87171;
  background-color: rgba(254, 242, 242, 0.8);
}

.form__field input.error:focus,
.form__field textarea.error:focus {
  border-color: #f87171;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.1);
  background-color: rgba(254, 242, 242, 0.8);
}

/* Error message styles */
.error-message {
  display: none;
  color: #ef4444;
  font-size: var(--fs-12);
  line-height: var(--lh-16);
  margin-top: 4px;
  font-weight: 500;
}

.contact__submit {
  width: 100%;
  justify-content: center;
  border-radius: 12px;
  cursor: pointer;
}
.contact__submit:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0px 12px 20px -3px rgba(0, 0, 0, 0.15),
    0px 6px 8px -4px rgba(0, 0, 0, 0.1);
}

.ccpa-form__input.error:focus,
.ccpa-form__textarea.error:focus,
.ccpa-form__select.error:focus {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.contact__submit {
  width: 100%;
  justify-content: center;
  border-radius: 12px;
  cursor: pointer;
}

.contact__submit:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0px 12px 20px -3px rgba(0, 0, 0, 0.15),
    0px 6px 8px -4px rgba(0, 0, 0, 0.1);
}

.contact__fineprint {
  margin: 8px 0 0 0;
  font-size: var(--fs-14);
  color: var(--color-gray-chateau);
}

.contact__submit:active {
  transform: translateY(0);
  box-shadow: 0px 8px 12px -3px rgba(0, 0, 0, 0.1),
    0px 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.contact__submit:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

.contact__fineprint {
  margin: 8px 0 0 0;
  font-size: var(--fs-14);
  color: var(--color-gray-chateau);
}
.contact__submit:active {
  transform: translateY(0);
  box-shadow: 0px 8px 12px -3px rgba(0, 0, 0, 0.1),
    0px 4px 6px -4px rgba(0, 0, 0, 0.1);
}
.contact__submit:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

/* Mobile tweaks for contact form */
@media (max-width: 480px) {
  .contact {
    padding: 56px 0;
  }

  .contact__form {
    padding: 16px;
    border-radius: 12px;
  }

  .form__field {
    margin-bottom: 12px;
  }
}

.contact__aside {
  display: none;
}

.contact-card {
  background: var(--color-white);
  border: 1px solid var(--color-athens-gray);
  border-radius: var(--radius-l);
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.contact-card__title {
  margin: 0 0 4px 0;
  font-size: var(--fs-18);
  line-height: var(--lh-28);
  font-weight: 700;
  color: var(--color-oxford-blue);
}

.contact-card__text {
  margin: 0 0 16px 0;
  color: var(--color-river-bed);
}

.contact-card__text a {
  color: var(--color-brand);
  text-decoration: underline;
}

/* Centered single column at all breakpoints to match screenshot */

/* Figma Footer Implementation */
.figma-footer {
  background: #424242;
  padding: 48px 0 30px;
  color: #ffffff;
}

.figma-footer__container {
  max-width: 1216px;
  margin: 0 auto;
  padding: 0 80px;
}

.figma-footer__content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.figma-footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.figma-footer__brand {
  display: flex;
  align-items: center;
  gap: 0;
}

.figma-footer__logo {
  width: 40px;
  height: 40px;
  border-radius: 5.625px;
  overflow: hidden;
}

.figma-footer__logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.figma-footer__brand-text {
  padding-left: 12px;
}

.figma-footer__title {
  font-family: "Nimbus Sans L", sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 28px;
  color: #ffffff;
  margin: 0;
}

.figma-footer__subtitle {
  font-family: "Nimbus Sans L", sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: #9ca3af;
  margin: 0;
}

.figma-footer__nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.figma-footer__link {
  font-family: "Nimbus Sans L", sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 20px;
  color: #f3f4f6;
  text-decoration: none;
  border-radius: 8px;
  padding: 8px 16px;
  transition: all 0.2s ease;
  display: inline-block;
}

.figma-footer__link:hover,
.figma-footer__link:focus {
  /* background-color: #1d4ed8; */
  color: #ffffff;
  /* padding: 20px 30px; */
  text-decoration: underline;
  outline: none;
}

.figma-footer__link:active {
  color: #1d4ed8;
}

.figma-footer__divider {
  width: 100%;
  height: 1px;
  background: #4b5563;
  margin: 0;
}

.figma-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.figma-footer__copyright {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.figma-footer__copyright p {
  font-family: "Nimbus Sans L", sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 16px;
  color: #9ca3af;
  margin: 0;
  text-align: right;
}

.figma-footer__disclaimer p {
  font-family: "Nimbus Sans L", sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 16px;
  color: #9ca3af;
  margin: 0;
}

/* Responsive adjustments for Figma footer */
@media (max-width: 1400px) {
  .figma-footer__container {
    padding: 0 60px;
  }
}

@media (max-width: 1200px) {
  .figma-footer__container {
    padding: 0 40px;
  }
}

@media (max-width: 768px) {
  .figma-footer__container {
    padding: 0 16px;
  }

  .figma-footer__top {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .figma-footer__nav {
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
  }

  .figma-footer__link {
    font-size: 11px;
    padding: 6px 12px;
  }

  .figma-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .figma-footer__disclaimer {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .figma-footer {
    padding: 32px 0 20px;
  }

  .figma-footer__container {
    padding: 0 12px;
  }

  .figma-footer__brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .figma-footer__brand-text {
    padding-left: 0;
  }

  .figma-footer__nav {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .figma-footer__link {
    padding: 4px 8px;
    font-size: 10px;
  }
}

@media (max-width: 1024px) {
  .figma-footer__nav {
    gap: 0px;
  }
}

/* ===== PERFORMANCE BENEFITS SECTION ===== */
/* Figma Node: 748:1262 - Take Control Performance Section */

.performance-benefits {
  padding: 80px 0;
  background: var(--color-white);
}

.performance-benefits__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 64px;
  max-width: 1216px;
  margin-left: auto;
  margin-right: auto;
  justify-items: center;
}

/* Performance Cards - Figma Nodes: 748:1270-1275 */
.performance-card {
  background: var(--color-white);
  border-radius: 12px;
  box-shadow: 0px 9px 25px -5px rgba(0, 0, 0, 0.04);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 36px;
  width: 100%;
  max-width: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid transparent;
}

.performance-card:hover {
  transform: translateY(-2px);
  box-shadow: 0px 12px 30px -5px rgba(0, 0, 0, 0.08);
}

/* Card Images */
.performance-card__image {
  width: 100%;
  height: 162px;
  border-radius: 10px;
  background-size: cover;
  background-repeat: no-repeat;
}

/* Specific image positioning to match Figma exactly */
.performance-card__image--speed {
  background-image: url("../images/take-control_1.png");
  background-position: center;
  background-size: contain;
}

.performance-card__image--performance {
  background-image: url("../images/take-control_2.png");
  background-position: center;
  background-size: contain;
}

.performance-card__image--security {
  background-image: url("../images/take-control_3.png");
  background-position: center;
  background-size: contain;
}

.performance-card__image--stability {
  background-image: url("../images/take-control_4.png");
  background-position: center;
  background-size: contain;
}

.performance-card__image--resources {
  background-image: url("../images/take-control_5.png");
  background-position: center;
  background-size: contain;
}

.performance-card__image--privacy {
  background-image: url("../images/take-control_6.png");
  background-position: center;
  background-size: contain;
}

/* Card Content */
.performance-card__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
  text-align: center;
}

.performance-card__title {
  font-size: var(--fs-20);
  font-weight: 700;
  line-height: var(--lh-28);
  color: var(--color-oxford-blue);
  margin: 0;
}

.performance-card__text {
  font-size: var(--fs-16);
  font-weight: 400;
  line-height: var(--lh-24);
  color: var(--color-river-bed);
  margin: 0;
}

/* Responsive Design */
@media (max-width: 640px) {
  .performance-benefits {
    padding: 48px 0px;
  }

  .performance-benefits__grid {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 48px;
    max-width: none;
  }

  .performance-card {
    width: 100%;
    padding: 16px;
    gap: 24px;
  }
}

@media (min-width: 641px) and (max-width: 1023px) {
  .performance-benefits {
    padding: 64px 32px;
  }

  .performance-benefits__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .performance-card {
    width: 100%;
  }
}

@media (min-width: 1024px) {
  .performance-benefits {
    padding: 80px 64px;
  }

  .performance-benefits__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .performance-card {
    border: 1px solid var(--color-oxford-blue);
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .performance-card {
    transition: none;
  }

  .performance-card:hover {
    transform: none;
  }
}

/* Notification Styles */
.notification {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  color: white;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.25;
  max-width: 400px;
  word-wrap: break-word;
  animation: slideInRight 0.3s ease-out;
}

.notification--success {
  background-color: #22c55e;
}

.notification--error {
  background-color: #ef4444;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Mobile responsive adjustments for notifications */
@media (max-width: 768px) {
  .notification {
    top: 0.5rem;
    right: 0.5rem;
    left: 0.5rem;
    max-width: none;
    font-size: 13px;
    padding: 0.625rem 1rem;
  }
}

/* ==========================================================================
   Thank You Popup Styles
   ========================================================================== */

.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(71, 85, 105, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-out;
  overflow-y: auto;
  padding: 40px 20px;
}

.popup-overlay.show {
  display: flex;
}

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

.popup-container {
  position: relative;
  background: transparent;
  border-radius: 24px;
  max-width: 1100px;
  width: 100%;
  box-shadow: none;
  animation: popupSlideUp 0.4s ease-out;
  padding: 60px 70px;
  overflow: visible;
  max-height: 90vh;
}

.popup-content {
  max-height: calc(90vh - 120px);
  overflow-y: auto;
  overflow-x: visible;
  padding-right: 10px;
  text-align: center;
}

/* Custom Scrollbar */
.popup-content::-webkit-scrollbar {
  width: 5px;
}

.popup-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.popup-content::-webkit-scrollbar-thumb {
  background: rgba(156, 163, 175, 0.5);
  border-radius: 10px;
}

.popup-content::-webkit-scrollbar-thumb:hover {
  background: rgba(156, 163, 175, 0.7);
}

@keyframes popupSlideUp {
  from {
    transform: translateY(50px) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.popup-close {
  position: absolute;
  top: 24px;
  left: 24px;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  font-size: 32px;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s ease;
  line-height: 1;
  padding: 0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.popup-close:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.popup-title {
  font-size: 48px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 12px 0;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.popup-subtitle {
  font-size: 20px;
  color: #e5e7eb;
  margin: 0 0 50px 0;
  font-weight: 400;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.popup-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.popup-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: cardSlideIn 0.6s ease-out forwards;
  opacity: 0;
}

.popup-step:nth-child(1) {
  animation-delay: 0.2s;
}

.popup-step:nth-child(2) {
  animation-delay: 0.4s;
}

.popup-step:nth-child(3) {
  animation-delay: 0.6s;
}

@keyframes cardSlideIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-badge {
  position: absolute;
  top: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: #2563eb;
  color: white;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  animation: badgePop 0.4s ease-out forwards;
  animation-delay: inherit;
}

@keyframes badgePop {
  0% {
    transform: translateX(-50%) scale(0);
  }
  60% {
    transform: translateX(-50%) scale(1.1);
  }
  100% {
    transform: translateX(-50%) scale(1);
  }
}

.step-visual {
  width: 100%;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: 16px;
  padding: 10px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.step-visual:hover {
  transform: translateY(-5px);
}

.step-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}

.step-info {
  text-align: center;
}

.step-title {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 8px 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.step-description {
  font-size: 16px;
  color: #d1d5db;
  margin: 0;
  line-height: 1.5;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Popup Footer */
.popup-footer {
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.popup-footer p {
  font-size: 16px;
  color: #d1d5db;
  margin: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.popup-link {
  color: #60a5fa;
  text-decoration: none;
  font-weight: 500;
}

.popup-link:hover {
  text-decoration: underline;
  color: #93c5fd;
}

/* Responsive Design - Hide Popup on Mobile and Tablets */
@media (max-width: 786px) {
  .popup-overlay {
    display: none !important;
  }
}

@media (max-width: 1440px) {
  .popup-title{
    font-size: 36px;
  }
}

@media (max-width: 1200px) {
  .popup-container {
    padding: 50px 60px;
    max-height: 85vh;
  }

  .popup-content {
    max-height: calc(85vh - 100px);
  }

  .popup-steps {
    gap: 30px;
  }
}

@media (max-width: 787px) {
  .popup-container {
    max-width: 100%;
    padding: 40px 30px;
  }
}

@media (max-width: 968px) {
  .popup-container {
    padding: 40px 30px;
    max-height: 85vh;
  }

  .popup-content {
    max-height: calc(85vh - 80px);
  }

  .popup-title {
    font-size: 36px;
  }

  .popup-subtitle {
    font-size: 18px;
    margin-bottom: 40px;
  }

  .popup-steps {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .step-visual {
    height: auto;
    min-height: 240px;
    padding: 10px;
  }

  .step-image {
    max-height: 240px;
  }
}

@media (max-width: 640px) {
  .popup-overlay {
    padding: 10px;
  }

  .popup-container {
    padding: 30px 20px;
    border-radius: 16px;
    max-height: 90vh;
  }

  .popup-content {
    max-height: calc(90vh - 60px);
    padding-right: 5px;
  }

  .popup-title {
    font-size: 28px;
  }

  .popup-subtitle {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .popup-close {
    top: 16px;
    left: 16px;
    width: 32px;
    height: 32px;
    font-size: 24px;
  }

  .step-badge {
    font-size: 12px;
    padding: 6px 16px;
  }

  .step-title {
    font-size: 20px;
  }

  .step-description {
    font-size: 14px;
  }

  .step-visual {
    min-height: 200px;
    padding: 8px;
  }

  .step-image {
    max-height: 200px;
  }

  .popup-steps {
    gap: 40px;
  }
}

/* ==========================================================================
   Download Indicator with Up-Down Animation
   ========================================================================== */

.download-indicator {
  position: fixed;
  top: 7%;
  right: 85px;
  z-index: 10002;
  animation: indicatorFadeIn 0.8s ease-out 1s forwards;
  opacity: 0;
}

@keyframes indicatorFadeIn {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.download-indicator-image {
  width: 200px;
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 30px rgba(37, 99, 235, 0.5));
  animation: upDownBounce 2s ease-in-out infinite;
}

@keyframes upDownBounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Responsive adjustments for download indicator */
@media (max-width: 1440px) {
  .download-indicator {
    right: 20px;
  }

  .download-indicator-image {
    width: 180px;
  }
}

@media (max-width: 1200px) {
  .download-indicator {
    right: 15px;
  }

  .download-indicator-image {
    width: 160px;
  }
}

@media (min-width: 787px) and (max-width: 1024px) {
  .download-indicator {
    right: 10px;
  }

  .download-indicator-image {
    width: 140px;
  }
}

@media (max-width: 786px) {
  .download-indicator {
    display: none;
  }
}
