/* ============================================================
   Krévelle — shared theme
   Used by index.html (homepage) and shop/index.html (transitional
   shop page) so both stay visually consistent from one file.
   ============================================================ */

/* ---------- Theme tokens ----------
   Brand palette derived from the Krévelle logo:
   radial gradient (#6D7486 center → #0A0D13 edges) + warm gold #F1C15F */
:root {
  --bg-center:    #6D7486;   /* gradient center (lighter blue-gray) */
  --bg-edge:      #0A0D13;   /* gradient edges (near-black) */
  --surface:      #14171f;   /* card background — dark enough for both ends of gradient */
  --surface-hov:  #1c1f29;   /* card hover */
  --border:       #2a2f3d;   /* subtle border */
  --border-hov:   #3d4359;
  --text:         #f5f1ea;   /* warm cream */
  --text-muted:   #b3afa1;   /* warm muted */
  --text-subtle:  #7a8197;
  --gold:         #F1C15F;   /* primary gold from logo */
  --gold-light:   #ffd480;
  --gold-glow:    rgba(241, 193, 95, 0.20);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-edge);
  background-image: radial-gradient(ellipse 90% 70% at 50% 45%, var(--bg-center) 0%, var(--bg-edge) 75%);
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Subtle grain texture for premium depth */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Faint gold accent over the gradient */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 50% 30% at 50% 35%, rgba(241, 193, 95, 0.06) 0%, transparent 70%);
}

/* ---------- Layout ---------- */
.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeUp 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

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

/* ---------- Eyebrow / status pill ---------- */
.eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 32px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid rgba(241, 193, 95, 0.28);
  border-radius: 999px;
  background: rgba(241, 193, 95, 0.08);
}
.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 var(--gold-glow);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(241, 193, 95, 0.6); }
  50%      { box-shadow: 0 0 0 8px rgba(241, 193, 95, 0); }
}

/* ---------- Logo ---------- */
.logo-img {
  max-width: 320px;
  width: 100%;
  height: auto;
  display: block;
}
.logo-img.logo-img--sm {
  max-width: 240px;
}

.tagline {
  margin-top: 20px;
  font-size: 15px;
  font-weight: 300;
  color: var(--text-muted);
  text-align: center;
  max-width: 360px;
  line-height: 1.6;
}

.tagline em {
  font-style: italic;
  font-weight: 500;
  color: var(--gold-light);
}

/* ---------- Divider ---------- */
.divider {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 40px 0 28px;
  opacity: 0.6;
}

/* ---------- Section labels ---------- */
.section-label {
  align-self: flex-start;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin: 24px 0 10px 4px;
}
.section-label:first-of-type { margin-top: 0; }

/* ---------- Email capture ---------- */
.email-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.email-row {
  display: flex;
  gap: 6px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.email-row:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}
.email-row input[type="email"] {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
  color: var(--text);
}
.email-row input[type="email"]::placeholder { color: var(--text-subtle); }
.email-row input[type="email"]:focus { outline: none; }

/* Honeypot — hidden from real users, bots fill it */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Turnstile widget container */
.turnstile-wrap {
  display: flex;
  justify-content: center;
  min-height: 65px;
}
.email-row button {
  border: none;
  background: var(--gold);
  color: var(--bg-edge);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 10px 20px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}
.email-row button:hover { background: var(--gold-light); }
.email-row button:active { transform: scale(0.97); }
.email-row button:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 2px;
}

.form-message {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--text-muted);
  text-align: center;
  min-height: 16px;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.form-message.show { opacity: 1; }

/* ---------- Links stack ---------- */
.links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition:
    transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
}

.link:hover {
  transform: translateY(-2px);
  background: var(--surface-hov);
  border-color: var(--border-hov);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

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

.link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.link-content {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.link-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--gold);
}

.link-arrow {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--text-subtle);
  transition: transform 0.25s ease, color 0.25s ease;
}

.link:hover .link-arrow {
  transform: translateX(3px);
  color: var(--gold-light);
}

/* ---------- Footer ---------- */
.footer {
  margin-top: 56px;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-subtle);
  text-align: center;
}

.footer a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.footer a:hover {
  color: var(--gold-light);
  border-color: currentColor;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
