/* =====================================================================
   HUGGUI — DESIGN SYSTEM STYLESHEET
   Structure:
   1) Tokens
   2) Foundations
   3) Layout
   4) Components
   5) Sections
   6) Utilities
===================================================================== */


/* =====================================================================
   1) TOKENS — Colors, spacing, shadows, limits
===================================================================== */
:root {
  --bg: #FFEAC1;
  --cream: #FFF4D9;
  --text: #3A2F1F;
  --text-soft: #5A4A2F;
  --border: #BBA787;
  --accent: #C1904E;
  --accent-hover: #A8783B;

  --shadow-soft: 0 4px 20px rgba(0,0,0,0.08);
  --card-max: 520px;

  /* Used in language toggle */
  --card: var(--cream);
  --bg-soft: var(--bg);
  --text-strong: var(--text);
}


/* =====================================================================
   2) FOUNDATIONS — Reset, typography
===================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

h1, h2, h3 {
  color: var(--text);
  line-height: 1.3;
}

h1 { font-size: 2rem; margin-bottom: 12px; }
h2 { font-size: 1.6rem; margin-bottom: 1rem; }
p  { font-size: 1rem; color: var(--text-soft); }

/* Accessible focus styles for keyboard navigation */
*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}


/* =====================================================================
   3) LAYOUT — Page container & spacing
===================================================================== */
.content {
  max-width: 740px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
}

section {
  margin: 2.8rem auto;
}


/* =====================================================================
   4) COMPONENTS
===================================================================== */

/* -------------------- Header -------------------- */
.header {
  text-align: center;
  padding: 30px 20px 0;
}

.logo {
  width: 130px;
  margin-bottom: 6px;
}

.header > * {
  max-width: var(--card-max);
  margin-inline: auto;
}


/* -------------------- Buttons -------------------- */
button {
  padding: 14px 26px;
  background: var(--accent);
  color: white;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-size: 1.05rem;
  transition: 0.2s;
  box-shadow: var(--shadow-soft);
}

button:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}


/* -------------------- Form Fields -------------------- */
input[type="email"] {
  width: 100%;
  padding: 16px 18px;
  border-radius: 12px;
  border: 2px solid var(--border);
  background: #FFF8ED;
  font-size: 1rem;
  transition: 0.2s;
}

input[type="email"]:focus {
  border-color: var(--accent);
  background: #FFF4E2;
  box-shadow: 0 0 0 2px rgba(193,144,78,0.25);
}


/* -------------------- Section Container -------------------- */
.section-box {
  background: var(--bg);
  padding: 2rem 1.6rem;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  text-align: left;
}

.section-box > * {
  max-width: var(--card-max);
  margin-left: auto;
  margin-right: auto;
}

.section-box p,
.section-box ul,
.section-box li,
.section-inner {
  text-align: left;
  max-width: var(--card-max);
  margin-left: auto;
  margin-right: auto;
}

.section-box p + p {
  margin-top: 1.2rem;
}

.section-box > h2 {
  text-align: center;
  margin-bottom: 1.4rem;
}

.section-inner {
  max-width: var(--card-max);
  margin: 0 auto;
  width: 100%;
}


/* -------------------- CARD LIST (Base component) -------------------- */
.card-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: var(--card-max);
  width: 100%;
  margin: 0 auto;
}

.card-list li {
  background: var(--cream);
  border-left: 4px solid var(--accent);
  padding: 1.1rem 1.3rem;
  border-radius: 12px;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  transition: 0.2s ease;
  text-align: left;
}

/* Hover motion */
.card-list li:hover {
  background: #FFF2D7;
  transform: translateX(4px);
}

/* Default horizontal layout */
.card-list li {
  flex-direction: row;
}


/* -------------------- Language Toggle -------------------- */
.lang-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
  display: inline-flex;
  align-items: center;
  background: var(--card);
  padding: 4px 12px;
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  font-size: 0.9rem;
  gap: 4px;
  z-index: 20;
}

.lang-option {
  padding: 2px 8px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-soft);
  transition: 0.2s ease;
}

.lang-option.active {
  background: var(--bg-soft);
  color: var(--text-strong);
  font-weight: 600;
}

.lang-toggle .divider {
  color: var(--text-soft);
  opacity: 0.6;
}

.lang-option:hover {
  background: rgba(0,0,0,0.05);
  color: var(--text-strong);
}


/* -------------------- Scroll-to-top -------------------- */
.scroll-top-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: transparent;
  border: none;
  box-shadow: none;
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  bottom: 22px;
  right: 22px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .2s;
  -webkit-tap-highlight-color: transparent;
  z-index: 999;
}

.scroll-top-btn.show {
  opacity: 1;
  pointer-events: auto;
}

.scroll-top-btn:hover {
  transform: scale(1.03);
  background: rgba(58,47,31,0.02);
  box-shadow: 0 2px 5px rgba(0,0,0,0.08);
}

.scroll-arrow {
  width: 30px;
  height: 30px;
  pointer-events: none;
}


/* =====================================================================
   5) SECTIONS — Per-section layout tweaks
===================================================================== */

/* -------------------- WAITLIST SECTION -------------------- */
.waitlist.section-box {
  text-align: center;
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 420px;
  margin: 0 auto;
}

.waitlist-form button {
  width: auto;
  padding-inline: 34px;
  align-self: center;
  border-radius: 16px;
}

.waitlist-privacy {
  font-size: 0.82rem;
  opacity: 0.75;
  margin-top: 10px;
  line-height: 1.4;
}


/* -------------------- Why Huggui exists -------------------- */
.why-exists p {
  max-width: var(--card-max);
  margin: 0 auto 1.2rem;
}


/* -------------------- WHO IS HUGGUI FOR -------------------- */

/* Add spacing before first card */
.who-for p {
  margin-bottom: 2.2rem;
}

/* Vertical card layout ONLY here */
.who-for .card-list li {
  flex-direction: column;
  gap: 0.35rem;
}

.who-for .card-list strong {
  font-size: 1.05rem;
  color: var(--text);
}

.who-for .card-list span {
  display: block;
  color: var(--text-soft);
  line-height: 1.45;
}


/* -------------------- Why People Choose Huggui -------------------- */
.why-list .icon {
  font-size: 1.1rem;
}


/* -------------------- Store Badges -------------------- */
.store-badges .badge-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.6rem;
}

.store-badges .badge img {
  height: 48px;
  width: auto;
  filter: grayscale(100%) opacity(60%);
  transition: 0.25s;
  border-radius: 10px;
}

.store-badges .badge:hover img {
  filter: grayscale(0%) opacity(100%);
  transform: translateY(-3px);
}

.store-badges .store-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1.1rem;
}


/* =====================================================================
   FOOTER
===================================================================== */
.footer-links {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.85rem;
  opacity: 0.85;
}

.footer-links a {
  text-decoration: none;
  padding: 0 0.4rem;
  color: var(--text-soft);
  transition: 0.2s;
}

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

.footer-links a + a::before {
  content: " • ";
  opacity: 0.7;
}

.footer-copy {
  text-align: center;
  opacity: 0.7;
  font-size: 0.8rem;
  margin: 0.5rem 0 2rem;
}


/* =====================================================================
   5B) UNIFIED LINK STYLE — match footer everywhere
===================================================================== */
.section-box a,
.section-box a:visited {
  color: var(--text-soft);
  text-decoration: none;
  border-bottom: none;
  padding-bottom: 0;
  transition: color 0.2s ease;
}

.section-box a:hover {
  color: var(--accent);
}


/* =====================================================================
   6) UTILITIES / RESPONSIVE
===================================================================== */
@media (max-width: 600px) {
  button:not(.scroll-top-btn) {
    width: 100%;
  }

  .waitlist-form button {
    width: auto !important;
  }

  .scroll-top-btn {
    bottom: 18px;
    right: 18px;
  }
}