/* =========================================================
   OnlySaver — Base Stylesheet
   Structure:
   1. Design tokens (custom properties)
   2. Reset / base
   3. Typography
   4. Layout primitives (container, section)
   5. Header + navigation
   6. Footer
   7. Reusable components (buttons, badges, cards)
   8. Utilities
   9. Responsive breakpoints
   ========================================================= */

/* ---------------------------------------------------------
   1. Design tokens
   --------------------------------------------------------- */
:root {
  /* Brand colors */
  --color-white: #ffffff;
  --color-surface: #f7f6fb;          /* soft lavender-white surface */
  --color-surface-alt: #efeafb;      /* slightly deeper surface for contrast blocks */
  --color-ink: #1a1523;              /* primary text, near-black with a purple cast */
  --color-ink-soft: #564f68;         /* secondary text */
  --color-border: #e4e0f0;

  --color-purple-900: #2a0f5c;       /* deep gradient anchor */
  --color-purple-700: #4c1d95;
  --color-purple-500: #7c3aed;       /* primary brand purple */
  --color-purple-300: #c4b1f5;

  --color-accent: #f0a93b;           /* amber accent, used sparingly for savings/badges */
  --color-accent-ink: #6b4200;

  --color-success: #1f9d63;
  --color-danger: #d1435b;

  --gradient-brand: linear-gradient(135deg, var(--color-purple-900) 0%, var(--color-purple-500) 100%);

  /* Typography */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --fs-h1: clamp(2rem, 1.6rem + 2vw, 3.25rem);
  --fs-h2: clamp(1.5rem, 1.3rem + 1vw, 2.25rem);
  --fs-h3: clamp(1.15rem, 1.05rem + 0.5vw, 1.5rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;

  /* Spacing scale */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;

  /* Shape + shadow */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --shadow-sm: 0 2px 8px rgba(42, 15, 92, 0.06);
  --shadow-md: 0 12px 32px rgba(42, 15, 92, 0.12);

  /* Layout */
  --container-width: 1140px;
  --header-height: 76px;
}

/* ---------------------------------------------------------
   2. Reset / base
   --------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--color-white);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* Visible keyboard focus */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-purple-500);
  outline-offset: 2px;
}

/* ---------------------------------------------------------
   3. Typography
   --------------------------------------------------------- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--color-ink);
  margin: 0 0 var(--space-2);
}

h1 {
  font-size: var(--fs-h1);
}

h2 {
  font-size: var(--fs-h2);
}

h3 {
  font-size: var(--fs-h3);
}

p {
  margin: 0 0 var(--space-2);
  max-width: 68ch;
  color: var(--color-ink-soft);
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-small);
  color: var(--color-purple-500);
}

/* ---------------------------------------------------------
   4. Layout primitives
   --------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: var(--space-3);
}

.section {
  padding-block: var(--space-6);
}

.section--tight {
  padding-block: var(--space-4);
}

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

.section--brand {
  background: var(--gradient-brand);
  color: var(--color-white);
}

.section--brand h1,
.section--brand h2,
.section--brand h3,
.section--brand p {
  color: var(--color-white);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.grid {
  display: grid;
  gap: var(--space-3);
}

.text-center {
  text-align: center;
  margin-inline: auto;
}

/* ---------------------------------------------------------
   5. Header + navigation
   --------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

/* Logo */
.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--color-ink);
  white-space: nowrap;
}

.brand__mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.brand__name span {
  color: var(--color-purple-500);
}

/* Primary nav */
.nav {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.nav__link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-ink-soft);
  padding-block: 0.35rem;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav__link:hover,
.nav__link[aria-current="page"] {
  color: var(--color-ink);
  border-color: var(--color-purple-500);
}

.nav__cta {
  display: none; /* shown from tablet breakpoint up, alongside inline button below */
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--color-ink);
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle__bar::before {
  position: absolute;
  top: -6px;
}

.nav-toggle__bar::after {
  position: absolute;
  top: 6px;
}

/* When mobile nav is open (class toggled via JS) */
.site-header.nav-open .nav-toggle__bar {
  background-color: transparent;
}

.site-header.nav-open .nav-toggle__bar::before {
  transform: translateY(6px) rotate(45deg);
}

.site-header.nav-open .nav-toggle__bar::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------------------------------------------------------
   6. Footer
   --------------------------------------------------------- */
.site-footer {
  background-color: var(--color-purple-900);
  color: rgba(255, 255, 255, 0.82);
  padding-block: var(--space-5) var(--space-3);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.15s ease;
}

.site-footer a:hover {
  color: var(--color-white);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer__brand .brand {
  color: var(--color-white);
}

.footer__brand .brand__name span {
  color: var(--color-purple-300);
}

.footer__desc {
  color: rgba(255, 255, 255, 0.68);
  font-size: var(--fs-small);
  max-width: 32ch;
}

.footer__heading {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: var(--space-2);
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: var(--fs-small);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding-top: var(--space-3);
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.6);
}

.footer__disclosure {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  max-width: 70ch;
  margin-top: var(--space-2);
}

/* ---------------------------------------------------------
   7. Reusable components
   --------------------------------------------------------- */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

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

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

.btn--primary {
  background: var(--gradient-brand);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  box-shadow: var(--shadow-md);
}

.btn--secondary {
  background-color: var(--color-white);
  color: var(--color-purple-700);
  border-color: var(--color-purple-300);
}

.btn--secondary:hover {
  background-color: var(--color-surface-alt);
}

.btn--ghost {
  background-color: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.5);
}

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

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background-color: var(--color-surface-alt);
  color: var(--color-purple-700);
}

.badge--accent {
  background-color: rgba(240, 169, 59, 0.16);
  color: var(--color-accent-ink);
}

.badge--success {
  background-color: rgba(31, 157, 99, 0.14);
  color: var(--color-success);
}

/* Cards */
.card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  box-shadow: var(--shadow-sm);
}

/* ---------------------------------------------------------
   8. Utilities
   --------------------------------------------------------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ---------------------------------------------------------
   9. Responsive breakpoints
   --------------------------------------------------------- */

/* Tablet and up: show inline nav CTA */
@media (min-width: 768px) {
  .nav__cta {
    display: inline-flex;
  }
}

/* Below desktop: collapse nav into a mobile panel */
@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-3);
    gap: var(--space-3);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
  }

  .site-header.nav-open .nav {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }

  .nav__cta {
    display: inline-flex;
    width: 100%;
  }
}

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

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

  :root {
    --space-6: 3rem;
  }
}

/* =========================================================
   10. Homepage — hero, featured offer, deals grid, features,
       steps, categories, FAQ and final CTA.
   Added in the homepage build step; scoped to classes only
   used on index.html so other pages are unaffected.
   ========================================================= */

/* Small helper: a compact button used inside dense grids */
.btn--sm {
  padding: 0.6rem 1.1rem;
  font-size: 0.85rem;
}

/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--gradient-brand);
  color: var(--color-white);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: var(--space-5);
  padding-block: var(--space-6);
}

.hero__eyebrow {
  display: inline-block;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
  font-size: var(--fs-small);
  margin-bottom: var(--space-1);
}

.hero__content h1 {
  color: var(--color-white);
  max-width: 14ch;
}

.hero__subtitle {
  color: rgba(255, 255, 255, 0.85);
  max-width: 42ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-block: var(--space-3);
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-2);
  padding: 0;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
}

.trust-badge svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Hero visual — built entirely from CSS shapes + simple inline SVG */
.hero__visual {
  position: relative;
  min-height: 340px;
}

.hero__blob {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle at 32% 30%, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0) 62%),
    rgba(255, 255, 255, 0.08);
  border-radius: 42% 58% 65% 35% / 45% 40% 60% 55%;
}

.hero__chart {
  position: absolute;
  left: 6%;
  bottom: 8%;
  width: 52%;
  max-width: 220px;
}

.hero__float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--color-white);
  color: var(--color-ink);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 0.6rem 1rem;
  font-weight: 600;
  animation: onlysaver-float 5.5s ease-in-out infinite;
}

.hero__float--tag {
  top: 6%;
  right: 4%;
  flex-direction: column;
  align-items: center;
  padding: 0.9rem 1.2rem;
  animation-duration: 5s;
}

.hero__float-percent {
  font-family: var(--font-display);
  font-size: 1.7rem;
  line-height: 1;
  color: var(--color-purple-700);
}

.hero__float-label {
  font-size: 0.7rem;
  color: var(--color-ink-soft);
  margin-top: 0.15rem;
}

.hero__float--trust {
  bottom: 16%;
  left: 0;
  font-size: 0.85rem;
  animation-duration: 6.5s;
  animation-delay: 0.4s;
}

.hero__float--trust svg {
  width: 20px;
  height: 20px;
  color: var(--color-success);
  flex-shrink: 0;
}

.hero__float--domain {
  bottom: 2%;
  right: 16%;
  font-size: 0.8rem;
  animation-duration: 7s;
  animation-delay: 0.8s;
}

.hero__float--domain svg {
  width: 18px;
  height: 18px;
  color: var(--color-purple-500);
  flex-shrink: 0;
}

@keyframes onlysaver-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* ---------------------------------------------------------
   Featured Hostinger offer
   --------------------------------------------------------- */
.offer-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.offer-card__badge {
  background: var(--gradient-brand);
  color: var(--color-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: var(--space-4);
  text-align: center;
}

.offer-card__badge-value {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
}

.offer-card__badge-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}

.offer-card__body {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.offer-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

/* ---------------------------------------------------------
   Why OnlySaver — feature cards
   --------------------------------------------------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}

.feature-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background-color: var(--color-surface-alt);
  color: var(--color-purple-700);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-2);
}

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

.feature-card h3 {
  margin-bottom: 0.35rem;
}

.feature-card p {
  font-size: 0.92rem;
  margin-bottom: 0;
}

/* ---------------------------------------------------------
   How it works — steps
   --------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.step {
  position: relative;
  text-align: center;
  padding-inline: var(--space-2);
}

.step:not(:first-child)::before {
  content: "";
  position: absolute;
  top: 28px;
  left: -50%;
  width: 100%;
  height: 2px;
  background-color: var(--color-purple-300);
  z-index: 1;
}

.step__circle {
  position: relative;
  z-index: 2;
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-2);
  border-radius: 50%;
  background: var(--gradient-brand);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.step__circle svg {
  width: 24px;
  height: 24px;
}

.step__index {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--color-purple-500);
  margin-bottom: 0.2rem;
}

.step p:last-child {
  font-size: 0.92rem;
  margin-bottom: 0;
}

/* ---------------------------------------------------------
   Hosting categories
   --------------------------------------------------------- */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.category-card {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-3);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-purple-300);
}

.category-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background-color: var(--color-surface-alt);
  color: var(--color-purple-700);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.category-card__title {
  margin: 0;
  font-size: 1.02rem;
}

.category-card__link {
  margin-left: auto;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--color-surface-alt);
  color: var(--color-purple-700);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.category-card__link svg {
  width: 16px;
  height: 16px;
}

.category-card:hover .category-card__link {
  background-color: var(--color-purple-500);
  color: var(--color-white);
  transform: translateX(2px);
}

/* ---------------------------------------------------------
   FAQ
   --------------------------------------------------------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-width: 820px;
}

.faq-item {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font-display);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding-block: 0.35rem;
}

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

.faq-item__icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--color-surface-alt);
  color: var(--color-purple-700);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.faq-item__icon svg {
  width: 12px;
  height: 12px;
}

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

.faq-item p {
  margin-top: var(--space-1);
  margin-bottom: 0;
  font-size: 0.94rem;
}

/* ---------------------------------------------------------
   Final CTA
   --------------------------------------------------------- */
.cta-panel {
  position: relative;
  overflow: hidden;
  background: var(--gradient-brand);
  border-radius: var(--radius-xl);
  padding: var(--space-6) var(--space-4);
  text-align: center;
  color: var(--color-white);
}

.cta-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.2), transparent 55%);
}

.cta-panel > * {
  position: relative;
  z-index: 1;
}

.cta-panel h2,
.cta-panel p {
  color: var(--color-white);
}

.cta-panel p {
  margin-inline: auto;
}

/* ---------------------------------------------------------
   Homepage responsive adjustments
   --------------------------------------------------------- */
@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
    padding-block: var(--space-5);
    text-align: center;
  }

  .hero__content h1,
  .hero__subtitle {
    max-width: none;
    margin-inline: auto;
  }

  .hero__actions,
  .trust-badges {
    justify-content: center;
  }

  .hero__visual {
    min-height: 260px;
    order: -1;
  }

  .offer-card {
    grid-template-columns: 1fr;
  }

  .offer-card__badge {
    flex-direction: row;
    padding: var(--space-3);
  }

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

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

  .steps {
    grid-template-columns: 1fr;
    gap: var(--space-3);
    max-width: 360px;
    margin-inline: auto;
  }

  .step:not(:first-child)::before {
    display: none;
  }
}

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

  .offer-card__actions {
    flex-direction: column;
  }

  .offer-card__actions .btn {
    width: 100%;
  }
}

/* =========================================================
   11. Popular Hostinger Deals — sidebar + long horizontal
       deal-row listing (replaces the small 4-column card
       grid from the previous homepage pass).
   ========================================================= */

/* ---------------------------------------------------------
   Sidebar + main list layout
   --------------------------------------------------------- */
.deals-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: var(--space-4);
  align-items: start;
  margin-top: var(--space-4);
}

.deals-sidebar {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-3);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: calc(var(--header-height) + var(--space-2));
  max-height: calc(100vh - var(--header-height) - var(--space-4));
  display: flex;
  flex-direction: column;
}

.deals-sidebar__heading {
  font-size: 1.1rem;
  margin-bottom: var(--space-2);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--color-border);
}

.deals-sidebar__list {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-right: 0.25rem;
}

.deals-sidebar__list li a {
  display: block;
  font-size: 0.88rem;
  color: var(--color-ink-soft);
  padding: 0.5rem 0.6rem;
  border-radius: var(--radius-sm);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.deals-sidebar__list li a:hover {
  background-color: var(--color-surface-alt);
  color: var(--color-purple-700);
}

.deals-main {
  min-width: 0; /* allow long titles to wrap instead of overflowing the grid */
}

.deals-main__more {
  display: flex;
  justify-content: center;
  margin-top: var(--space-4);
}

/* ---------------------------------------------------------
   Month groups
   --------------------------------------------------------- */
.deal-groups {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.deal-month-group__rows {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.deal-month-heading {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding-bottom: var(--space-1);
  border-bottom: 2px solid var(--color-border);
}

.deal-month-heading h3 {
  margin-bottom: 0;
  font-size: 1.2rem;
}

.deal-month-heading--current {
  border-bottom-color: var(--color-purple-500);
}

.deal-month-heading--current h3 {
  color: var(--color-purple-700);
}

/* Current-month countdown */
.month-countdown {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  background-color: var(--color-surface-alt);
  border-radius: var(--radius-md);
  padding: 0.6rem var(--space-2);
  margin-top: var(--space-2);
}

.month-countdown__label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-purple-700);
}

.month-countdown__timer {
  display: flex;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--color-ink-soft);
}

.month-countdown__timer strong {
  font-family: var(--font-display);
  color: var(--color-ink);
  font-size: 0.95rem;
}

/* ---------------------------------------------------------
   Deal row — long horizontal card
   --------------------------------------------------------- */
.deal-row {
  display: grid;
  grid-template-columns: 30% 50% 20%;
  gap: var(--space-3);
  align-items: center;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-3);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.deal-row:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--color-purple-300);
}

.deal-row__left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  padding-right: var(--space-2);
  border-right: 1px dashed var(--color-border);
  height: 100%;
  justify-content: center;
}

.deal-row__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: var(--color-surface-alt);
  color: var(--color-purple-700);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
}

.deal-row__brand {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.deal-row__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--gradient-brand);
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.deal-row__brand-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-ink);
}

.deal-row__category {
  font-size: 0.82rem;
  color: var(--color-ink-soft);
}

.deal-row__badge {
  margin-top: 0.1rem;
}

.deal-row__center {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}

.deal-row__title {
  font-size: 1.15rem;
  margin-bottom: 0;
  line-height: 1.3;
}

.deal-row__desc {
  font-size: 0.9rem;
  margin-bottom: 0;
}

.deal-row__referral-badge {
  align-self: flex-start;
  margin-top: 0.1rem;
}

.deal-row__right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
  padding-left: var(--space-2);
  border-left: 1px dashed var(--color-border);
  height: 100%;
}

.deal-row__discount {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-purple-700);
  line-height: 1;
}

.deal-row__cta {
  width: 100%;
  white-space: nowrap;
}

.deal-row__sublink {
  font-size: 0.78rem;
  color: var(--color-ink-soft);
}

/* ---------------------------------------------------------
   Responsive — Section 3 layout
   --------------------------------------------------------- */
@media (max-width: 1024px) {
  .deals-layout {
    grid-template-columns: 240px 1fr;
  }

  .deal-row {
    grid-template-columns: 34% 42% 24%;
  }
}

@media (max-width: 900px) {
  .deals-layout {
    grid-template-columns: 1fr;
  }

  .deals-sidebar {
    position: static;
    max-height: none;
  }

  .deals-sidebar__list {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: visible;
    padding-bottom: 0.5rem;
  }

  .deals-sidebar__list li {
    flex-shrink: 0;
  }

  .deals-sidebar__list li a {
    white-space: nowrap;
    background-color: var(--color-surface-alt);
  }

  .deal-row {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .deal-row__left {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    border-right: none;
    border-bottom: 1px dashed var(--color-border);
    padding-right: 0;
    padding-bottom: var(--space-2);
  }

  .deal-row__right {
    flex-direction: row;
    justify-content: space-between;
    border-left: none;
    border-top: 1px dashed var(--color-border);
    padding-left: 0;
    padding-top: var(--space-2);
  }

  .deal-row__cta {
    width: auto;
  }
}

@media (max-width: 560px) {
  .deal-row__right {
    flex-direction: column;
    align-items: stretch;
  }

  .deal-row__cta {
    width: 100%;
  }
}

/* =========================================================
   12. Hostinger Deals page — hero banner, hosting-type
       filter, and filter-driven hide states. The long
       horizontal deal-row / sidebar / month-group components
       themselves are shared with the homepage (see section 11).
   ========================================================= */

.eyebrow--upper {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---------------------------------------------------------
   Page hero banner
   --------------------------------------------------------- */
.page-hero {
  background: var(--gradient-brand);
  color: var(--color-white);
  text-align: center;
  padding-block: var(--space-6) var(--space-5);
}

.page-hero .eyebrow--upper {
  color: rgba(255, 255, 255, 0.75);
}

.page-hero h1 {
  color: var(--color-white);
  max-width: 22ch;
  margin-inline: auto;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 60ch;
  margin-inline: auto;
}

.page-hero__month {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.26);
  color: var(--color-white);
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  margin-top: var(--space-2);
  font-weight: 600;
  font-size: 0.9rem;
}

.page-hero__month svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ---------------------------------------------------------
   Sidebar hosting-type filter
   --------------------------------------------------------- */
.deals-sidebar__filter {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
}

.deals-sidebar__heading--filter {
  font-size: 0.95rem;
  padding-bottom: 0;
  border-bottom: none;
  margin-bottom: var(--space-1);
}

.filter-select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.65rem 2.2rem 0.65rem 0.9rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-ink);
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23564f68' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  background-size: 16px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.filter-select:hover {
  border-color: var(--color-purple-300);
}

.filter-select:focus-visible {
  outline: none;
  border-color: var(--color-purple-500);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.18);
}

.deals-sidebar__filter-note {
  font-size: 0.78rem;
  color: var(--color-ink-soft);
  margin-top: var(--space-1);
  margin-bottom: 0;
}

/* ---------------------------------------------------------
   Filter-driven hide states (frontend-only; no data is
   removed, rows/groups are just hidden from view)
   --------------------------------------------------------- */
.deal-row.is-filtered-out {
  display: none;
}

.deal-month-group.is-empty {
  display: none;
}

/* =========================================================
   13. About page components — feature list, step note and
       the transparency callout box.
   ========================================================= */
.info-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-width: 760px;
}

.info-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3);
}

.info-list li svg {
  width: 22px;
  height: 22px;
  color: var(--color-purple-700);
  flex-shrink: 0;
  margin-top: 2px;
}

.info-list li span {
  color: var(--color-ink-soft);
  font-size: 0.95rem;
}

.callout {
  background-color: var(--color-surface-alt);
  border: 1px solid var(--color-purple-300);
  border-radius: var(--radius-xl);
  padding: var(--space-4);
}

.callout p {
  margin-bottom: 0;
  max-width: none;
}

.callout a {
  color: var(--color-purple-700);
  font-weight: 600;
}

.steps-note {
  margin-top: var(--space-3);
  font-size: 0.9rem;
  color: var(--color-ink-soft);
  text-align: center;
  max-width: 60ch;
  margin-inline: auto;
}

/* =========================================================
   14. Contact page — info card + validated contact form.
       There is no backend: the form never claims to submit
       anywhere, it only validates and then points the visitor
       to a real email address (see assets/js/contact-page.js).
   ========================================================= */
.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.35fr;
  gap: var(--space-4);
  align-items: start;
}

.contact-card {
  background: var(--gradient-brand);
  color: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-4);
  box-shadow: var(--shadow-md);
}

.contact-card h2 {
  color: var(--color-white);
}

.contact-card p {
  color: rgba(255, 255, 255, 0.85);
}

.contact-card__email {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--color-white);
  font-weight: 600;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  margin-top: var(--space-2);
  transition: background-color 0.15s ease;
}

.contact-card__email svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.contact-card__email:hover {
  background-color: rgba(255, 255, 255, 0.24);
}

.contact-card__note {
  margin-top: var(--space-3);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
}

.contact-form {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
}

.contact-form h2 {
  margin-bottom: 0.4rem;
}

.form-note {
  font-size: 0.85rem;
  color: var(--color-ink-soft);
  margin-bottom: var(--space-3);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: var(--space-3);
}

.form-group label {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--color-ink);
}

.form-group input,
.form-group textarea {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-ink);
  background-color: var(--color-white);
  resize: vertical;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-purple-500);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.16);
}

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

.form-error {
  display: block;
  min-height: 1.1em;
  font-size: 0.8rem;
  color: var(--color-danger);
}

.form-success {
  margin-top: var(--space-3);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
  background-color: rgba(31, 157, 99, 0.1);
  border: 1px solid rgba(31, 157, 99, 0.35);
  border-radius: var(--radius-md);
  padding: var(--space-3);
}

.form-success p {
  margin-bottom: 0;
  color: var(--color-ink);
  max-width: none;
}

/* ---------------------------------------------------------
   Responsive — contact page
   --------------------------------------------------------- */
@media (max-width: 860px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   15. Legal pages — shared document layout used by Privacy
       Policy, Terms & Conditions, Affiliate Disclosure,
       Disclaimer and Cookie Policy.
   ========================================================= */
.legal-header {
  padding-block: var(--space-5) var(--space-3);
  border-bottom: 1px solid var(--color-border);
}

.legal-updated {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: var(--color-surface-alt);
  color: var(--color-purple-700);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin-top: var(--space-1);
  margin-bottom: 0;
}

.legal-content {
  max-width: 860px;
  margin-inline: auto;
}

.legal-content h2 {
  font-size: 1.4rem;
  margin-top: var(--space-5);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
}

.legal-content h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.legal-content h3 {
  font-size: 1.1rem;
  margin-top: var(--space-3);
}

.legal-content p,
.legal-content li {
  color: var(--color-ink-soft);
  max-width: none;
}

.legal-content ul,
.legal-content ol {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0 0 var(--space-2);
  padding-left: 1.3rem;
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-2) 0 var(--space-3);
  font-size: 0.92rem;
}

.legal-content table th,
.legal-content table td {
  border: 1px solid var(--color-border);
  padding: 0.6rem 0.8rem;
  text-align: left;
  vertical-align: top;
}

.legal-content table th {
  background-color: var(--color-surface-alt);
  font-weight: 600;
  color: var(--color-ink);
}

.legal-content a {
  color: var(--color-purple-700);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-content__intro {
  font-size: 1.02rem;
}

/* A visibly marked placeholder for details not yet finalized
   (e.g. a jurisdiction), so it reads as "to be completed"
   rather than an invented fact. */
.legal-placeholder {
  background-color: var(--color-surface-alt);
  border: 1px dashed var(--color-purple-300);
  border-radius: var(--radius-sm);
  padding: 0.15rem 0.5rem;
  font-style: italic;
  color: var(--color-ink-soft);
}
