:root {
  --bg-main: #FBF8F4;
  --bg-alt: #F3EEE8;
  --text-dark: #2F2B29;
  --text-muted: #5a5450;
  --accent-aqua: #79D4CD;
  --accent-blush: #D79D96;
  --bg-blush-soft: #EFD9D5;
  --font-heading: 'Nunito', sans-serif;
  --font-body: 'Manrope', sans-serif;
  --radius-soft: 24px;
  --radius-btn: 50px;
  --shadow-soft: 0 10px 40px rgba(47, 43, 41, 0.05);
  --shadow-glow: 0 15px 50px rgba(121, 212, 205, 0.15);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body,
button,
input,
select,
textarea {
  font-family: var(--font-body);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* =========================================================
   LOOPSI - GLOBAL HORIZONTAL OVERFLOW GUARD
   Keep overflow-x hidden only on html/body.
   Do not add overflow hidden/clip to #wrapper, #container or #content,
   because that can break sticky/fixed header behavior.
   Page-specific overflow issues should be fixed inside that page/section CSS.
   ========================================================= */

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  padding-top: 96px;
}

#wrapper,
#container,
#content,
.container,
.loopsi-container {
  min-width: 0;
}

#wrapper,
#container,
#content {
  width: 100%;
  max-width: 100%;
}

@media (max-width: 768px) {
  body {
    padding-top: 76px;
  }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.page-section {
  padding: 80px 0;
}

.bg-alt {
  background-color: var(--bg-alt);
}

.section-title {
  font-size: 2.75rem;
  text-align: center;
  margin-bottom: 48px;
  font-weight: 800;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.mb-4 {
  margin-bottom: 1.5rem;
}

.lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-weight: 700;
  font-size: 1.05rem;
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--text-dark);
  color: var(--bg-main);
}

.btn-primary:hover {
  background-color: var(--accent-aqua);
  color: var(--text-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-dark);
  border: 1px solid var(--accent-blush);
}

.btn-secondary:hover {
  background-color: var(--bg-blush-soft);
  border-color: var(--bg-blush-soft);
}

.kits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.beginner-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent-aqua);
  color: var(--text-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 30px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.soft-card {
  background: var(--bg-blush-soft);
  border-radius: var(--radius-soft);
  padding: 48px 32px;
  position: relative;
  overflow: hidden;
}

.soft-card.glow {
  box-shadow: var(--shadow-soft);
}

.soft-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(121, 212, 205, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

.email-signup {
  padding: 64px 0;
}

.signup-inner {
  max-width: 700px;
}

.signup-form {
  display: flex;
  gap: 16px;
}

.signup-form input {
  flex: 1;
  padding: 12px 20px;
  border-radius: var(--radius-btn);
  border: 1px solid rgba(47, 43, 41, 0.1);
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
}

.signup-form input:focus {
  border-color: var(--accent-aqua);
  box-shadow: 0 0 0 4px rgba(121, 212, 205, 0.1);
}

.site-footer {
  background: #fff;
  padding: 48px 0 24px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand {
  max-width: 300px;
}

.footer-logo,
.footer-logo-wrap .custom-logo {
  height: 32px;
  width: auto;
  margin-bottom: 20px;
}

.footer-logo-link,
.footer-logo-wrap .custom-logo-link {
  display: inline-flex;
  align-items: center;
}

.footer-brand p {
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 80px;
}

.footer-column-title {
  margin: 0 0 20px;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.2;
}

.link-column a {
  display: block;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.link-column a:hover {
  color: var(--accent-aqua);
}

.footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-menu li {
  margin: 0 0 12px;
  padding: 0;
}

.footer-menu li:last-child {
  margin-bottom: 0;
}

.footer-menu a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
}

.footer-menu a:hover {
  color: var(--accent-aqua);
}

.footer-bottom {
  border-top: 1px solid rgba(47, 43, 41, 0.05);
  padding-top: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

@media (max-width: 1024px) {
  .kits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .footer-inner {
    flex-direction: column;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .page-section {
    padding: 48px 0;
  }

  .section-title {
    font-size: 2.1rem;
    margin-bottom: 36px;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 18px;
  }

  .kits-grid {
    grid-template-columns: 1fr;
  }

  .signup-form {
    flex-direction: column;
  }

  .signup-form button {
    width: 100%;
  }
}