@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&family=DM+Serif+Display:ital@0;1&display=swap');

:root {
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', sans-serif;

  --black: #0a0a0a;
  --white: #ffffff;
  --gray-50: #f9f9f8;
  --gray-100: #f2f2f0;
  --gray-200: #e8e8e5;
  --gray-300: #d4d4d0;
  --gray-400: #a8a8a3;
  --gray-500: #737370;
  --gray-600: #4a4a47;
  --gray-900: #1a1a18;

  --accent: #0a0a0a;
  --accent-hover: #222222;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --border: 1px solid var(--gray-200);
  --border-strong: 1px solid var(--gray-300);

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);

  --transition: 0.18s ease;
  --transition-slow: 0.32s ease;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.1; letter-spacing: -0.02em; }
h1 { font-size: clamp(36px, 5vw, 56px); }
h2 { font-size: clamp(28px, 3.5vw, 40px); }
h3 { font-size: clamp(20px, 2.5vw, 28px); }

p { color: var(--gray-500); line-height: 1.7; }

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

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

button { font-family: var(--font-body); cursor: pointer; border: none; outline: none; }

input, textarea, select {
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  border: var(--border);
  border-radius: var(--radius-md);
  padding: 11px 14px;
  background: var(--white);
  color: var(--black);
  width: 100%;
  transition: border-color var(--transition);
}
input:focus, textarea:focus { border-color: var(--black); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-body);
  transition: all var(--transition);
  white-space: nowrap;
  cursor: pointer;
  border: none;
}
.btn-primary { background: var(--black); color: var(--white); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--black); border: 1px solid var(--gray-300); }
.btn-outline:hover { border-color: var(--black); background: var(--gray-50); }
.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-lg { padding: 15px 32px; font-size: 15px; }

/* ── Nav ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 64px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: var(--border);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.3px;
}
.nav-logo-mark {
  width: 32px; height: 32px;
  background: var(--black);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
}
.nav-logo-mark svg { width: 18px; height: 18px; }
.nav-logo-tld { color: var(--gray-400); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: 14px;
  color: var(--gray-500);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--black); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.lang-switch {
  display: flex;
  background: var(--gray-100);
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 2px;
}
.lang-btn {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  color: var(--gray-400);
  background: transparent;
  border: none;
  transition: all var(--transition);
}
.lang-btn.active {
  background: var(--white);
  color: var(--black);
  box-shadow: var(--shadow-sm);
}

/* ── Badge ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  border: var(--border);
  color: var(--gray-500);
  background: var(--gray-50);
}
.badge-dark { background: var(--black); color: var(--white); border-color: var(--black); }
.badge-green { background: #e8f5e9; color: #2e7d32; border-color: #c8e6c9; }

/* ── Section ── */
.section { padding: 80px 40px; }
.section-sm { padding: 48px 40px; }
.container { max-width: 1200px; margin: 0 auto; }
.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.2px;
  color: var(--gray-400);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
}

/* ── Cards ── */
.card {
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.card:hover { border-color: var(--gray-300); box-shadow: var(--shadow-sm); }
.card-featured { border-width: 1.5px; border-color: var(--black); }

/* ── Chip / Tag ── */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 13px;
  border-radius: var(--radius-full);
  font-size: 13px;
  border: var(--border);
  color: var(--gray-500);
  cursor: pointer;
  transition: all var(--transition);
  background: var(--white);
}
.chip:hover, .chip.active {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

/* ── Footer ── */
.site-footer {
  border-top: var(--border);
  padding: 28px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--gray-400);
}
.pay-chips { display: flex; gap: 6px; }
.pay-chip {
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: var(--border);
  font-size: 12px;
  color: var(--gray-500);
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.55s ease both; }
.fade-up-2 { animation: fadeUp 0.55s ease 0.08s both; }
.fade-up-3 { animation: fadeUp 0.55s ease 0.16s both; }
.fade-up-4 { animation: fadeUp 0.55s ease 0.24s both; }

/* ── Utilities ── */
.text-muted { color: var(--gray-400); }
.text-small { font-size: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav { padding: 0 20px; }
  .nav-links { display: none; }
  .section { padding: 48px 20px; }
  .section-sm { padding: 32px 20px; }
  .site-footer { flex-direction: column; gap: 14px; text-align: center; }
  /* FIX: prevent horizontal overflow on mobile globally */
  body { overflow-x: hidden; }
  .container { padding: 0 20px; }
}

/* ── Coupon Bar ── */
#py-coupon-bar {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  animation: slideDown 0.4s ease;
}
@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
#py-coupon-bar button { font-family: var(--font-body); }
#coupon-claim-btn:hover { opacity: 0.85; }
