:root {
  --bg: #f8f9fa;
  --bg-panel: #ffffff;
  --bg-elev: #eef1f5;
  --border: #e2e5ec;
  --text: #1a1a2e;
  --text-dim: #555a6e;
  --gold: #f0d060;        /* light warm yellow-gold: button fills, accent borders */
  --gold-soft: #97791a;   /* deep warm gold: links and headings on light backgrounds */
  --gold-deep: #6f5910;   /* darker warm gold: link and nav hover states */
  --red: #cf2e2e;
  --max: 820px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold-soft); text-decoration: none; }
a:hover { color: var(--gold-deep); text-decoration: underline; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Minimal landing page */
.landing {
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px 64px;
}
.landing-logo {
  width: min(70vw, 300px);
  height: auto;
  border-radius: 24px;
  box-shadow: 0 12px 40px rgba(26, 26, 46, 0.12);
  margin-bottom: 32px;
}
.landing-line {
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--text);
  margin: 0 0 36px;
}
.landing-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 28px;
  font-size: 1rem;
}
.landing-links a { color: var(--gold-soft); font-weight: 500; }
.landing-links a:hover { color: var(--gold-deep); }
.landing-products {
  margin: 44px 0 0;
  font-size: 0.9rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 10px;
}
.landing-products .label {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.72rem;
  color: var(--text-dim);
}

/* Header */
header.site {
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 50;
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}
header.site .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: var(--text);
}
header.site .brand img { width: 38px; height: 38px; border-radius: 50%; }
header.site nav { display: flex; gap: 20px; font-size: 0.95rem; }
header.site nav a { color: var(--text-dim); }
header.site nav a:hover { color: var(--gold-deep); text-decoration: none; }

/* Hero */
.hero {
  text-align: center;
  padding: 72px 20px 56px;
}
.hero img.logo {
  width: min(60vw, 220px);
  height: auto;
  border-radius: 24px;
  box-shadow: 0 12px 40px rgba(26, 26, 46, 0.12);
  margin-bottom: 28px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin: 0 0 12px;
  letter-spacing: -0.5px;
}
.hero .tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--gold-soft);
  font-weight: 600;
  margin: 0 0 32px;
}
.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold) 0%, #e6c044 100%);
  color: #1a1206;
  font-weight: 700;
  padding: 14px 30px;
  border-radius: 999px;
  margin: 8px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(240, 208, 96, 0.5);
  text-decoration: none;
  color: #1a1206;
}
.btn.secondary {
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn.secondary:hover { border-color: var(--gold); color: var(--gold-deep); }

/* Feature cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin: 48px 0;
}
.card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(26, 26, 46, 0.06);
}
.card h3 { margin: 0 0 8px; color: var(--gold-soft); }
.card p { margin: 0; color: var(--text-dim); }

/* Legal pages */
.legal { padding: 48px 0 64px; }
.legal h1 { font-size: 2.2rem; margin-bottom: 4px; }
.legal .eff { color: var(--text-dim); font-size: 0.95rem; margin-top: 0; }
.legal h2 {
  margin-top: 36px;
  font-size: 1.35rem;
  color: var(--gold-soft);
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
}
.legal h3 { margin-top: 28px; font-size: 1.1rem; color: var(--text); }
.legal h4 { margin-top: 22px; margin-bottom: 4px; font-size: 1rem; color: var(--gold-soft); }
.legal p, .legal li { color: var(--text); }
.legal ul { padding-left: 22px; }
.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.92rem;
}
.legal th, .legal td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border: 1px solid var(--border);
}
.legal thead th {
  background: var(--bg-elev);
  color: var(--text);
  font-weight: 600;
}
.legal td a { overflow-wrap: anywhere; }
@media (max-width: 768px) {
  .legal table { display: block; overflow-x: auto; }
}
.legal .notice {
  background: var(--bg-elev);
  border-left: 3px solid var(--gold);
  padding: 14px 18px;
  border-radius: 8px;
  margin: 18px 0;
}

/* Footer */
footer.site {
  border-top: 1px solid var(--border);
  background: var(--bg-elev);
  padding: 36px 20px 48px;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.9rem;
}
footer.site nav { margin-bottom: 14px; display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
footer.site nav a { color: var(--text-dim); }
footer.site nav a:hover { color: var(--gold-deep); }
footer.site .legal-note { max-width: 640px; margin: 12px auto 0; font-size: 0.82rem; line-height: 1.5; }

/* Mobile header: hide the site title text next to the logo, keep just the logo
   icon, and let the nav links shrink and wrap so they never overflow. */
@media (max-width: 768px) {
  header.site .brand span { display: none; }
  header.site .wrap {
    flex-wrap: wrap;
    gap: 10px;
    row-gap: 6px;
  }
  header.site nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 14px;
    font-size: 0.85rem;
  }
  /* Keep long button labels (such as the contact email) inside the pill
     instead of overflowing the container on narrow screens. */
  .btn {
    max-width: 100%;
    overflow-wrap: anywhere;
    font-size: 0.95rem;
    padding: 13px 22px;
  }
  /* The contact email label is long: shrink it so it stays on one line
     inside the pill rather than wrapping awkwardly. */
  #contact .btn {
    font-size: 0.75rem;
    padding: 12px 16px;
    white-space: nowrap;
    overflow-wrap: normal;
  }
}
