/* ==========================================================================
   WeGuests Landing Page
   ========================================================================== */

:root {
  --color-primary: #E73E34;
  --color-primary-dark: #c9342b;
  --color-accent: #F9A318;
  --color-accent-dark: #e08f0f;
  --color-navy: #242447;
  --color-navy-light: #3a3a6b;

  --color-bg: #ffffff;
  --color-bg-alt: #f7f8fc;
  --color-bg-muted: #eef0f6;
  --color-text: #242447;
  --color-text-muted: #5c5c7a;
  --color-text-light: #8888a0;
  --color-border: #e2e4ed;

  --font-family: 'Nunito', system-ui, -apple-system, sans-serif;
  --container-width: 1140px;
  --container-narrow: 760px;
  --header-height: 72px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(36, 36, 71, 0.06);
  --shadow-md: 0 4px 20px rgba(36, 36, 71, 0.08);
  --shadow-lg: 0 8px 40px rgba(36, 36, 71, 0.12);
  --transition: 0.2s ease;
}

/* Reset & base
   -------------------------------------------------------------------------- */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
}

html:has(#footer:target) {
  scroll-behavior: auto;
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-primary-dark);
}

ul, ol {
  list-style: none;
}

/* Layout
   -------------------------------------------------------------------------- */

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

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: 96px 0;
}

.section--alt {
  background: var(--color-bg-alt);
}

.section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section__title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  color: var(--color-navy);
  line-height: 1.25;
  margin-bottom: 16px;
}

.section__subtitle {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1;
  border: 2px solid transparent;
  border-radius: var(--radius);
  padding: 12px 24px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(231, 62, 52, 0.3);
}

.btn--primary:hover {
  background: var(--color-primary-dark);
  color: #fff;
  box-shadow: 0 4px 16px rgba(231, 62, 52, 0.35);
}

.btn--outline {
  background: transparent;
  color: var(--color-navy);
  border-color: var(--color-border);
}

.btn--outline:hover {
  border-color: var(--color-navy);
  color: var(--color-navy);
}

.btn--outline-dark {
  color: #242447;
  border-color: #242447;
}

.btn--outline-dark:hover {
  background: #242447;
  color: #fff;
  border-color: #242447;
}

.btn--sm {
  font-size: 0.875rem;
  padding: 10px 18px;
}

.btn--lg {
  font-size: 1rem;
  padding: 16px 32px;
}

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

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Language selector
   -------------------------------------------------------------------------- */

.lang-selector {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: var(--color-bg-muted);
  border-radius: 8px;
  padding: 3px;
}

.lang-selector__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 6px 10px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}

.lang-selector__btn:hover {
  color: var(--color-navy);
}

.lang-selector__btn--active {
  background: #fff;
  color: var(--color-navy);
  box-shadow: var(--shadow-sm);
}

.lang-selector--footer {
  background: rgba(255, 255, 255, 0.08);
}

.lang-selector--footer .lang-selector__btn {
  color: rgba(255, 255, 255, 0.6);
}

.lang-selector--footer .lang-selector__btn:hover {
  color: #fff;
}

.lang-selector--footer .lang-selector__btn--active {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  box-shadow: none;
}

/* User menu
   -------------------------------------------------------------------------- */

.user-menu {
  position: relative;
}

.user-menu__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1;
  cursor: pointer;
}

.user-menu__avatar[aria-expanded="true"] {
  box-shadow: 0 0 0 2px var(--color-primary);
}

.user-menu__popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 190px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  z-index: 110;
}

.user-menu__popover::before {
  content: '';
  position: absolute;
  top: -6px;
  right: 14px;
  width: 10px;
  height: 10px;
  background: #fff;
  border-top: 1px solid var(--color-border);
  border-left: 1px solid var(--color-border);
  transform: rotate(45deg);
}

.user-menu__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--color-navy);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
}

.user-menu__icon {
  flex-shrink: 0;
  color: var(--color-text-muted);
}

.user-menu__form {
  margin: 0;
}

.user-menu__item--logout {
  color: var(--color-text-muted);
}

/* Header
   -------------------------------------------------------------------------- */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition);
}

.header--scrolled {
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}

.header__logo img {
  height: 36px;
  width: auto;
}

.header__nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header__nav-list a {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.header__nav-list a:hover {
  color: var(--color-navy);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header__menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.header__menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-navy);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.header__menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header__menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.header__menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 520px;
  padding-top: var(--header-height);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: url('../assets/banner4.jpg') right center / cover no-repeat;
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    transparent 0%,
    transparent 50%,
    rgba(255, 255, 255, 0.15) 70%,
    transparent 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* Hero column width (fr only — no px/% mix):
   content % = contentFr ÷ (contentFr + imageFr)
   Desktop below: 4 ÷ 9 ≈ 44%. Widen: raise first number (e.g. 5fr 5fr → 50%). Narrow: lower it (e.g. 3fr 5fr → 37.5%). */
.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: calc(620px - var(--header-height));
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  align-items: center;
}

.hero__content {
  position: relative;
  isolation: isolate;
  margin-left: 10%; /* desktop inset — change in px only */
  padding: 64px 40px 80px 24px;
  max-width: 100%;
}

.hero__content::before {
  content: '';
  position: absolute;
  inset: 24px 32px 24px 0;
  background: linear-gradient(
    to bottom right,
    rgba(254, 205, 126, 0.65) 0%,
    rgba(246, 131, 57, 0.4) 100%
  );
  border-radius: var(--radius-lg);
  z-index: -1;
  pointer-events: none;
}

.hero__eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #242447;
  background: rgba(249, 163, 24, 0.2);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.hero__title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  color: #242447;
  margin-bottom: 20px;
}

.hero__subtitle {
  font-size: 1.125rem;
  font-weight: 500;
  color: #242447;
  line-height: 1.7;
  margin-bottom: 32px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.hero__note {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #242447;
}

/* Features
   -------------------------------------------------------------------------- */

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: box-shadow var(--transition), border-color var(--transition);
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.feature-card__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(231, 62, 52, 0.08);
  color: var(--color-primary);
  border-radius: 10px;
  margin-bottom: 16px;
}

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

.feature-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 8px;
}

.feature-card__text {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* Check-in gallery carousel
   -------------------------------------------------------------------------- */

.gallery-carousel {
  --gallery-slide-width: 300px;
  --gallery-slide-gap: 20px;
  --gallery-arrow-size: 44px;
  max-width: 100%;
  margin: 0 auto;
  padding: 12px 0 0;
}

.gallery-carousel__controls {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.gallery-carousel__viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  padding-top: 16px;
  padding-bottom: 8px;
}

.gallery-carousel__arrow {
  flex: 0 0 var(--gallery-arrow-size);
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--gallery-arrow-size);
  height: var(--gallery-arrow-size);
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--color-bg);
  color: var(--color-navy);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.gallery-carousel__arrow:hover {
  background: var(--color-bg-alt);
}

.gallery-carousel__arrow:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.gallery-carousel__icon {
  display: block;
}

.gallery-carousel__track {
  display: flex;
  gap: var(--gallery-slide-gap);
  align-items: flex-start;
  transition: transform 0.45s ease;
  will-change: transform;
}

.gallery-carousel__track--instant {
  transition: none !important;
}

.gallery-carousel__track--instant .gallery-carousel__slide,
.gallery-carousel__track--instant .gallery-carousel__media {
  transition: none !important;
}

.gallery-carousel__slide {
  flex: 0 0 var(--gallery-slide-width);
  opacity: 0.55;
  transition: opacity 0.45s ease;
  cursor: pointer;
}

.gallery-carousel__slide.is-active {
  opacity: 1;
  z-index: 1;
  cursor: default;
}

.gallery-carousel__figure {
  margin: 0;
  padding-bottom: 4px;
}

.gallery-carousel__media {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  background: var(--color-bg-muted);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transform: scale(0.9);
  transform-origin: center center;
  transition: transform 0.45s ease;
}

.gallery-carousel__slide.is-active .gallery-carousel__media {
  transform: scale(1.1);
  border-style: solid;
  border-color: var(--color-border);
}

.gallery-carousel__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-carousel__figure figcaption {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.gallery-carousel__caption {
  max-width: 360px;
  margin: 16px auto 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-navy);
  text-align: center;
  line-height: 1.45;
  min-height: 2.9em;
}

@media (prefers-reduced-motion: reduce) {
  .gallery-carousel__track,
  .gallery-carousel__slide {
    transition: none;
  }
}

/* Screenshot placeholders
   -------------------------------------------------------------------------- */

.screenshot-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  background: transparent;
  border-radius: var(--radius-lg);
}

.screenshot-placeholder--sm {
  min-height: 220px;
  flex: 1;
}

/* Images inside placeholders */
.screenshot-placeholder img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: calc(var(--radius-lg) - 2px);
}

.screenshot-row {
  display: flex;
  gap: 24px;
  margin-top: 56px;
}

/* How it works
   -------------------------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  counter-reset: step;
}

.step {
  position: relative;
  text-align: center;
}

.step__number {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.125rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(231, 62, 52, 0.25);
}

.step__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 8px;
}

.step__text {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* Pricing
   -------------------------------------------------------------------------- */

.pricing-free {
  display: flex;
  align-items: center;
  gap: 24px 32px;
  flex-wrap: wrap;
  background: var(--color-bg-alt);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 32px;
}

.pricing-free__content {
  flex: 1 1 280px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pricing-free__header {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.pricing-free__name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-text-muted);
}

.pricing-free__desc {
  font-size: 0.8125rem;
  color: var(--color-text-light);
  line-height: 1.5;
}

.pricing-free__features {
  font-size: 0.8125rem;
  color: var(--color-text-light);
  line-height: 1.5;
}

.pricing-free__features strong {
  font-weight: 600;
  color: var(--color-text-muted);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: center;
  margin-bottom: 32px;
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: box-shadow var(--transition);
}

.pricing-card:hover {
  box-shadow: var(--shadow-md);
}

.pricing-card--featured {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
  padding: 40px 28px 38px;
  transform: scale(1.02);
  z-index: 1;
}

.pricing-card__cta {
  margin-top: auto;
}

.pricing-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: var(--color-navy);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 16px;
  border-radius: 100px;
}

.pricing-card__name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 12px;
}

.pricing-card__price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 12px;
}

.pricing-card__amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-navy);
  line-height: 1;
}

.pricing-card__currency {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-muted);
}

.pricing-card__period {
  font-size: 0.875rem;
  color: var(--color-text-light);
}

.pricing-card__desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}

.pricing-card__features {
  flex: 1;
  margin-bottom: 28px;
}

.pricing-card__features li {
  position: relative;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  padding: 6px 0 6px 24px;
}

.pricing-card__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 8px;
  height: 8px;
  background: var(--color-primary);
  border-radius: 50%;
}

.pricing-card__features strong {
  color: var(--color-navy);
}

.pricing-note {
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-text-light);
}

.pricing-currency-form {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.pricing-currency-form select {
  appearance: none;
  padding: 10px 40px 10px 16px;
  font-family: var(--font-family);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-navy);
  background: var(--color-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%235c5c7a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  cursor: pointer;
}

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

/* FAQ
   -------------------------------------------------------------------------- */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item[open] {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-navy);
  cursor: pointer;
  list-style: none;
  transition: color var(--transition);
}

.faq-item__question::-webkit-details-marker {
  display: none;
}

.faq-item__question::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--color-primary);
  flex-shrink: 0;
  transition: transform var(--transition);
}

.faq-item[open] .faq-item__question::after {
  transform: rotate(45deg);
}

.faq-item__question:hover {
  color: var(--color-primary);
}

.faq-item__answer {
  padding: 0 24px 20px;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* Contact
   -------------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}

.contact-info__list {
  margin-top: 32px;
}

.contact-info__list li {
  margin-bottom: 20px;
}

.contact-info__list strong {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-light);
  margin-bottom: 4px;
}

.contact-info__list a {
  color: var(--color-navy);
  font-weight: 600;
}

.contact-info__list span {
  color: var(--color-text-muted);
}

.contact-form {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 6px;
}

.form-group label span {
  color: var(--color-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--color-text);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 12px 16px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(231, 62, 52, 0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-light);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-error {
  display: block;
  font-size: 0.8125rem;
  color: var(--color-primary);
  margin-top: 4px;
  min-height: 1.2em;
}

.form-group input.is-invalid,
.form-group textarea.is-invalid,
.form-group select.is-invalid {
  border-color: var(--color-primary);
}

[x-cloak] {
  display: none !important;
}

/* Country select (auth pages)
   -------------------------------------------------------------------------- */

.country-select {
  position: relative;
}

.country-select__trigger {
  display: block;
  width: 100%;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--color-text);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 12px 56px 12px 44px;
  text-align: left;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.country-select__value.is-placeholder {
  color: var(--color-text-light);
}

.country-select__trigger:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(231, 62, 52, 0.12);
}

.country-select__trigger.is-invalid {
  border-color: var(--color-primary);
}

.country-select__icon {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  display: flex;
  align-items: center;
  padding-inline-start: 16px;
  pointer-events: none;
  color: var(--color-text-muted);
}

.country-select__chevron {
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  display: flex;
  align-items: center;
  padding-inline-end: 16px;
  pointer-events: none;
  color: var(--color-text-muted);
}

.country-select__chevron-icon {
  width: 12px;
  height: 8px;
  transition: transform var(--transition);
}

.country-select__chevron-icon.is-open {
  transform: rotate(180deg);
}

.country-select__clear {
  position: absolute;
  inset-block: 0;
  inset-inline-end: 32px;
  z-index: 1;
  display: flex;
  align-items: center;
  padding: 4px;
  border: none;
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  border-radius: 4px;
}

.country-select__clear:hover {
  color: var(--color-text);
  background: var(--color-bg-muted);
}

.country-select__clear:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(231, 62, 52, 0.12);
}

.country-select__panel {
  position: absolute;
  z-index: 50;
  inset-inline: 0;
  top: calc(100% + 4px);
  max-height: 220px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-md);
}

.country-select__search-wrap {
  padding: 8px;
  border-bottom: 1px solid var(--color-border);
}

.country-select__search {
  width: 100%;
  font-family: inherit;
  font-size: 0.875rem;
  color: var(--color-text);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 8px 12px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.country-select__search::placeholder {
  color: var(--color-text-light);
}

.country-select__search:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(231, 62, 52, 0.12);
}

.country-select__list {
  max-height: 160px;
  overflow-y: auto;
  padding: 4px 0;
  margin: 0;
  list-style: none;
}

.country-select__option {
  display: block;
  width: 100%;
  padding: 10px 16px;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--color-text);
  text-align: start;
  cursor: pointer;
}

.country-select__option:hover,
.country-select__option.is-highlighted {
  background: var(--color-bg-alt);
}

.country-select__option.is-selected {
  font-weight: 600;
  background: var(--color-bg-muted);
}

.country-select__empty {
  padding: 16px;
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.form-feedback {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 600;
}

.form-feedback--success {
  background: rgba(34, 170, 100, 0.1);
  color: #1a8a52;
  border: 1px solid rgba(34, 170, 100, 0.25);
}

.form-feedback--error {
  background: rgba(231, 62, 52, 0.08);
  color: var(--color-primary-dark);
  border: 1px solid rgba(231, 62, 52, 0.2);
}

/* Auth pages
   -------------------------------------------------------------------------- */

.auth-body {
  min-height: 100vh;
}

.auth-page {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  padding: calc(var(--header-height) + 48px) 24px 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.auth-page__bg {
  position: absolute;
  inset: 0;
  background: url('../assets/banner4.jpg') center center / cover no-repeat;
  z-index: 0;
}

.auth-page__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(254, 205, 126, 0.35) 50%,
    rgba(246, 131, 57, 0.25) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.auth-page__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 440px;
}

.auth-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-lg);
}

.auth-card__header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-card__title {
  font-size: 1.625rem;
  font-weight: 800;
  color: var(--color-navy);
  line-height: 1.25;
  margin-bottom: 8px;
}

.auth-card__subtitle {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.auth-form .form-group {
  margin-bottom: 20px;
}

.auth-form__forgot {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.auth-form__forgot:hover {
  color: var(--color-primary);
}

.form-group--checkbox {
  margin-bottom: 24px;
}

.form-group--checkbox .auth-form__checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-text-muted);
  cursor: pointer;
}

.form-group--checkbox .auth-form__checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: #fff;
  accent-color: var(--color-primary);
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: none;
}

.form-group--checkbox .auth-form__checkbox input[type="checkbox"]:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(231, 62, 52, 0.12);
}

.auth-card__footer {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  text-align: center;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.auth-card__footer p + p {
  margin-top: 12px;
}

.auth-card__footer a {
  font-weight: 700;
}

.auth-card__footer .auth-form__forgot {
  font-weight: 600;
}

.auth-page__inner--signup {
  max-width: 480px;
}

.auth-card--signup .auth-card__header {
  margin-bottom: 24px;
}

.auth-perks {
  list-style: none;
  margin: 0 0 28px;
  padding: 16px 18px;
  background: rgba(249, 163, 24, 0.1);
  border: 1px solid rgba(249, 163, 24, 0.25);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-perks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-navy);
}

.auth-perks svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--color-primary);
}

.auth-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 28px;
}

.auth-steps__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 72px;
}

.auth-steps__number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--color-text-muted);
  background: var(--color-bg-alt);
  border: 2px solid var(--color-border);
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.auth-steps__label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  transition: color var(--transition);
}

.auth-steps__item.is-active .auth-steps__number,
.auth-steps__item.is-complete .auth-steps__number {
  color: #fff;
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.auth-steps__item.is-active .auth-steps__label,
.auth-steps__item.is-complete .auth-steps__label {
  color: var(--color-navy);
}

.auth-steps__line {
  flex: 1;
  max-width: 80px;
  height: 2px;
  margin: 0 8px;
  margin-bottom: 22px;
  background: var(--color-border);
  transition: background var(--transition);
}

.auth-steps__line.is-complete {
  background: var(--color-primary);
}

.auth-form__step {
  display: none;
}

.auth-form__step.is-active {
  display: block;
}

.auth-form__actions {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.auth-form__actions .btn--outline {
  flex: 0 0 auto;
  min-width: 96px;
}

.auth-form__actions .btn--primary {
  flex: 1;
}

.auth-recaptcha {
  margin-bottom: 20px;
}

.form-error--hidden {
  display: none;
}

/* Footer
   -------------------------------------------------------------------------- */

.footer {
  background: var(--color-navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 32px;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 2fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__tagline {
  margin-top: 12px;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.footer__nav {
  display: flex;
  gap: 64px;
}

.footer__nav-group h4 {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  margin-bottom: 16px;
}

.footer__nav-group a {
  display: block;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.65);
  padding: 4px 0;
  transition: color var(--transition);
}

.footer__nav-group a:hover {
  color: #fff;
}

.footer__lang-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  margin-bottom: 12px;
}

.footer__bottom {
  padding-top: 32px;
  font-size: 0.8125rem;
}

.footer__payments {
  margin-top: 24px;
}

.footer__payments-img {
  display: block;
  width: 90px;
  height: auto;
}

/* Legal pages
   -------------------------------------------------------------------------- */

.legal-page {
  padding: calc(var(--header-height) + 48px) 0 96px;
}

.legal-content__header {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--color-border);
}

.legal-content__header h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  color: var(--color-navy);
  line-height: 1.25;
}

.legal-section {
  margin-bottom: 40px;
}

.legal-section h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 16px;
}

.legal-section p {
  margin-bottom: 12px;
  color: var(--color-text);
  line-height: 1.7;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section ul {
  list-style: disc;
  margin: 12px 0 12px 24px;
}

.legal-section li {
  margin-bottom: 6px;
  line-height: 1.6;
  color: var(--color-text);
}

.legal-section li:last-child {
  margin-bottom: 0;
}

.legal-content__body h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-navy);
  margin: 40px 0 16px;
}

.legal-content__body h2:first-child {
  margin-top: 0;
}

.legal-content__body p {
  margin-bottom: 12px;
  color: var(--color-text);
  line-height: 1.7;
}

.legal-content__body p:last-child {
  margin-bottom: 0;
}

.legal-content__body ul {
  list-style: disc;
  margin: 12px 0 12px 24px;
}

.legal-content__body li {
  margin-bottom: 6px;
  line-height: 1.6;
  color: var(--color-text);
}

.legal-content__body li:last-child {
  margin-bottom: 0;
}

.legal-content__body a {
  color: var(--color-primary);
  text-decoration: underline;
}

/* Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }

  .pricing-card--featured {
    transform: none;
  }

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

  .footer__lang {
    grid-column: 1 / -1;
  }

  /* Tablet (md): content 3fr ÷ 4fr = 75%. Change first number only (e.g. 2fr 1fr → 67%). */
  .hero__inner {
    grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
  }

  .hero__content {
    margin-left: 40px;
  }

  /* md and below: stronger content panel (tune alpha 0–1 on both stops) */
  .hero__content::before {
    background: linear-gradient(
      to bottom right,
      rgba(254, 205, 126, 0.88) 0%,
      rgba(246, 131, 57, 0.45) 100%
    );
  }
}

@media (max-width: 900px) {
  .section {
    padding: 64px 0;
  }

  .header__nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    padding: 16px 24px 24px;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition), opacity var(--transition);
    box-shadow: var(--shadow-md);
  }

  .header__nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .header__nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .header__nav-list a {
    display: block;
    padding: 12px 0;
    width: 100%;
    border-bottom: 1px solid var(--color-border);
  }

  .header__menu-toggle {
    display: flex;
  }

  .header__actions .lang-selector {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero__bg {
    background-position: 65% center;
  }

  .hero__overlay {
    background: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.85) 0%,
      rgba(255, 255, 255, 0.6) 55%,
      rgba(255, 255, 255, 0.2) 100%
    );
  }

  .hero__content {
    margin-left: 0;
    padding: 48px 24px 64px 40px;
  }

  .hero__content::before {
    inset: 16px 16px 16px 0;
  }

  .hero__title,
  .hero__subtitle {
    max-width: none;
  }

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

  .screenshot-row {
    flex-direction: column;
  }

  .gallery-carousel {
    --gallery-slide-width: 240px;
    --gallery-slide-gap: 14px;
    --gallery-arrow-size: 40px;
  }

  .gallery-carousel__controls {
    gap: 4px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer__top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__nav {
    flex-direction: column;
    gap: 32px;
  }

  .footer__bottom {
    flex-direction: column;
  }

  .pricing-free {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
}

@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
  }

  .auth-page {
    padding-top: calc(var(--header-height) + 32px);
    padding-bottom: 48px;
  }

  .auth-card {
    padding: 32px 24px;
  }

  .auth-form__actions {
    flex-direction: column-reverse;
  }

  .auth-form__actions .btn--outline {
    min-width: 0;
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .contact-form {
    padding: 24px;
  }
}

@media (max-width: 599px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}
