/* Binmek web – base styles shared across pages */

:root {
  /* Brand */
  --primary: #ff5263;
  --primary-dark: #e04355;
  --primary-light: #ffe4e7;
  --accent: #7c4dff;

  /* Light surfaces */
  --bg: #f9fafb;
  --surface: #ffffff;
  --surface-subtle: #f3f4f6;
  --border-subtle: #e5e7eb;
  --border-strong: #d1d5db;

  /* Dark surfaces */
  --bg-dark: #121212;
  --surface-dark: #1e1e1e;
  --surface-subtle-dark: #2d2d2d;
  --border-subtle-dark: #3a3a3a;

  /* Text */
  --text: #111827;
  --text-muted: #6b7280;
  --text-soft: #9ca3af;

  /* Semantic */
  --success: #16a34a;
  --warning: #f97316;
  --error: #dc2626;

  /* Radii */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 18px;
  --r-pill: 999px;

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;

  /* Typography */
  --font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --h1: 600 30px/1.2 var(--font-family);
  --h2: 600 24px/1.25 var(--font-family);
  --h3: 600 18px/1.3 var(--font-family);
  --h4: 500 16px/1.4 var(--font-family);
  --body: 400 15px/1.6 var(--font-family);
  --body-sm: 400 13px/1.45 var(--font-family);
  --label: 500 12px/1.4 var(--font-family);
  --button: 600 14px/1.4 var(--font-family);

  /* Shadows */
  --shadow-soft: 0 14px 40px rgba(15, 23, 42, 0.06);
  --shadow-header: 0 1px 0 rgba(15, 23, 42, 0.06);
  --shadow-focus: 0 0 0 3px rgba(255, 82, 99, 0.24);
}

html[data-theme="dark"] {
  --bg: var(--bg-dark);
  --surface: var(--surface-dark);
  --surface-subtle: var(--surface-subtle-dark);
  --border-subtle: var(--border-subtle-dark);
  --border-strong: #4b5563;
  --text: #f9fafb;
  --text-muted: #9ca3af;
  --text-soft: #6b7280;
  --shadow-soft: 0 24px 70px rgba(0, 0, 0, 0.7);
  --shadow-header: 0 1px 0 rgba(15, 23, 42, 0.7);
}

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

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font: var(--body);
  color: var(--text);
  background: radial-gradient(720px 420px at 10% 0, rgba(255, 82, 99, 0.12), transparent 60%),
    radial-gradient(720px 420px at 90% 0, rgba(124, 77, 255, 0.1), transparent 60%), var(--bg);
}

::selection {
  background: rgba(255, 82, 99, 0.16);
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

@media (min-width: 1280px) {
  .container {
    max-width: 1180px;
  }
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 20;
  padding: var(--space-2) var(--space-3);
  background: var(--surface);
  border-radius: var(--r-md);
  border: 1px solid var(--border-subtle);
}

.skip-link:focus-visible {
  left: var(--space-4);
  top: var(--space-4);
  outline: none;
  box-shadow: var(--shadow-focus);
}

/* Header / nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-header);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 10px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--text);
}

.brand-mark {
  width: 30px;
  height: 30px;
}

.brand-name {
  font: var(--h4);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.nav a {
  font: var(--body-sm);
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: var(--r-pill);
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--text);
  background: var(--surface-subtle);
  outline: none;
}

.nav a[aria-current="page"] {
  color: var(--text);
  background: var(--surface-subtle);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font: var(--button);
  cursor: pointer;
  background: transparent;
  color: var(--text);
  transition: background 150ms ease, border-color 150ms ease, transform 100ms ease, color 150ms ease;
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #ffffff;
  border-color: rgba(248, 250, 252, 0.04);
}

.btn-primary:visited {
  color: #ffffff;
}

.btn-primary:hover {
  transform: translateY(-1px);
  color: #ffffff;
}

.btn-outline {
  border-color: var(--border-subtle);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
}

.btn-outline:hover {
  border-color: var(--border-strong);
  background: var(--surface);
}

.btn-ghost {
  padding-inline: 10px;
  font: var(--body-sm);
}

.btn-ghost:hover {
  background: var(--surface-subtle);
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
}

.icon-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.icon-btn:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}

.icon {
  width: 20px;
  height: 20px;
}

.nav-toggle {
  display: none;
}

/* Layout */
main {
  display: block;
}

.section {
  padding: var(--space-7) 0;
}

.section-tight {
  padding: var(--space-5) 0;
}

.kicker {
  font: var(--label);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-soft);
}

.muted {
  color: var(--text-muted);
}

.small {
  font: var(--body-sm);
  color: var(--text-muted);
}

.card {
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  padding: var(--space-5);
}

.card-soft {
  border-radius: var(--r-xl);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  border: 1px solid color-mix(in srgb, var(--border-subtle) 70%, transparent);
}

.card-hover {
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
  border-color: color-mix(in srgb, var(--primary) 18%, var(--border-subtle));
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.section-header p {
  margin: 0;
  max-width: 520px;
  color: var(--text-muted);
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--surface-subtle);
  color: var(--text-muted);
  font: var(--body-sm);
}

.divider {
  height: 1px;
  border: 0;
  background: color-mix(in srgb, var(--border-subtle) 80%, transparent);
  margin: var(--space-6) 0;
}

/* Page hero (legal / support) */
.page-hero {
  padding: var(--space-6) 0 var(--space-4);
}

.page-hero-inner {
  padding: var(--space-5);
  border-radius: var(--r-xl);
  background: radial-gradient(720px 380px at 0 0, rgba(124, 77, 255, 0.15), transparent 60%),
    radial-gradient(720px 380px at 100% 0, rgba(255, 82, 99, 0.16), transparent 55%), var(--surface);
  border: 1px solid color-mix(in srgb, var(--border-subtle) 70%, transparent);
}

.page-hero-inner p {
  margin: var(--space-2) 0 0;
  color: var(--text-muted);
}

.prose {
  max-width: 820px;
}

.prose p {
  margin: var(--space-3) 0 0;
  color: var(--text-muted);
}

.prose ul {
  margin: var(--space-3) 0 0;
  padding-left: 20px;
  color: var(--text-muted);
}

.prose li {
  margin-top: 6px;
}

.faq {
  margin-top: var(--space-3);
  border-radius: var(--r-lg);
  border: 1px solid var(--border-subtle);
  background: var(--surface);
  overflow: hidden;
}

.faq summary {
  padding: var(--space-4);
  cursor: pointer;
  font: var(--body);
  color: var(--text);
}

.faq[open] summary {
  background: var(--surface-subtle);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq-body {
  padding: 0 var(--space-4) var(--space-4);
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(15, 23, 42, 0.04);
  padding: var(--space-5) 0;
  margin-top: var(--space-6);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.footer-links a {
  font: var(--body-sm);
  color: var(--text-muted);
}

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

@media (max-width: 640px) {
  .site-header-inner {
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2) var(--space-3);
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    order: 3;
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 6px 0 2px;
  }

  html[data-nav-open="true"] .nav {
    display: flex;
  }

  .header-actions {
    margin-left: auto;
  }

  .section {
    padding: var(--space-6) 0;
  }

  .section-tight {
    padding: var(--space-4) 0;
  }

  .page-hero-inner {
    padding: var(--space-4);
  }
}

@media (min-width: 768px) {
  .site-header-inner {
    padding-block: 12px;
  }

  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}

