/* ── Google Font ───────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;800&display=swap');

/* ── Reset & base ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #f4f6f9;
  --surface:     #ffffff;
  --border:      #d0d7de;
  --accent:      #0969da;
  --accent2:     #1a7f37;
  --text:        #1f2328;
  --muted:       #57606a;
  --radius:      10px;
  --sidebar-w:   210px;
  --max-width:   960px;
}

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 0.93rem;
}

/* ── Sidebar ───────────────────────────────────────────────────────────────── */
.sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 200;
  overflow-y: auto;
}

.sidebar-brand {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
}
.sidebar-brand a {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.sidebar-nav {
  flex: 1;
  padding: 0.75rem 0;
  display: flex;
  flex-direction: column;
}

.nav-label {
  font-size: 0.67rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  padding: 0.4rem 1rem 0.2rem;
  font-weight: 600;
}

.sidebar-nav a {
  display: block;
  padding: 0.38rem 1rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.15s, background 0.15s;
}
.sidebar-nav a:hover { color: var(--text); background: #f0f6ff; }

.sidebar-bottom {
  padding: 0.75rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.sidebar-bottom > a:not(.bmc-side-btn) {
  display: block;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.79rem;
  padding: 0.2rem 0.25rem;
  transition: color 0.15s;
}
.sidebar-bottom > a:not(.bmc-side-btn):hover { color: var(--text); }

.bmc-side-btn {
  display: block !important;
  margin-top: 0.5rem;
  padding: 0.48rem 0.8rem;
  background: #f5c518;
  color: #1a1a1a !important;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.82rem;
  text-align: center;
  text-decoration: none !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
  transition: opacity 0.15s, transform 0.15s;
}
.bmc-side-btn:hover { opacity: 0.88; transform: translateY(-1px); }

/* ── Mobile toggle ─────────────────────────────────────────────────────────── */
.sidebar-toggle {
  display: none;
  position: fixed;
  top: 0.75rem; left: 0.75rem;
  z-index: 300;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 7px;
  width: 40px; height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  box-shadow: 0 1px 5px rgba(0,0,0,0.12);
}
.sidebar-toggle span {
  display: block; width: 100%; height: 2px;
  background: var(--text); border-radius: 2px;
}

.sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 150;
}
.sidebar-overlay.visible { display: block; }

/* ── Page wrap ─────────────────────────────────────────────────────────────── */
.page-wrap { margin-left: var(--sidebar-w); }

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 300px;
  background-image: url('hero.jpg');
  background-size: cover;
  background-position: center 38%;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

/* White veil — lower = more photo visible */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255, 255, 255, 0.60);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 2.5rem 3rem;
  max-width: 620px;
}

.hero-content h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--text);
}

.hero-content h1 .accent {
  background: linear-gradient(110deg, #0969da 0%, #1a7f37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 400;
  max-width: 420px;
}

.bmc-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.4rem;
  padding: 0.65rem 1.5rem;
  background: #f5c518;
  color: #1a1a1a;
  border-radius: 10px;
  text-decoration: none;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 3px 10px rgba(0,0,0,0.14);
  transition: opacity 0.15s, transform 0.15s;
}
.bmc-hero-btn:hover { opacity: 0.88; transform: translateY(-2px); }
.bmc-hero-btn .cup { font-size: 1.2rem; }

/* ── Ad banner ─────────────────────────────────────────────────────────────── */
.ad-banner {
  max-width: var(--max-width);
  margin: 1rem auto;
  padding: 0 1.5rem;
  min-height: 90px;
}

/* ── Main ──────────────────────────────────────────────────────────────────── */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.6rem 1.5rem 3rem;
}

.intro { margin-bottom: 1.8rem; }
.intro h2 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.4rem; }
.intro p  { color: var(--muted); max-width: 640px; }

/* ── App grid ──────────────────────────────────────────────────────────────── */
.section-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 0.9rem;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.app-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.app-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(9,105,218,0.1);
  transform: translateY(-2px);
}

.app-icon { font-size: 1.5rem; }
.app-card h3 { font-size: 0.97rem; font-weight: 700; }

.category {
  font-size: 0.7rem;
  color: var(--accent2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.app-card p:not(.category) {
  color: var(--muted);
  font-size: 0.83rem;
  flex: 1;
  line-height: 1.48;
}

.btn {
  display: inline-block;
  margin-top: 0.4rem;
  padding: 0.38rem 0.95rem;
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.82rem;
  align-self: flex-start;
  transition: background 0.15s;
}
.btn:hover { background: #0860c8; }

/* ── BMC panel ─────────────────────────────────────────────────────────────── */
.bmc-panel {
  margin-top: 2.2rem;
  background: linear-gradient(135deg, #fffbea 0%, #fff8d6 100%);
  border: 1.5px solid #e8c84a;
  border-radius: 14px;
  padding: 1.8rem 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  box-shadow: 0 2px 14px rgba(230,190,40,0.15);
}

.bmc-panel-icon {
  font-size: 3rem;
  line-height: 1;
  flex-shrink: 0;
}

.bmc-panel-text { flex: 1; }
.bmc-panel-text h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.3rem;
}
.bmc-panel-text p {
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.5;
}

.bmc-panel-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
  padding: 0.65rem 1.5rem;
  background: #f5c518;
  color: #1a1a1a;
  border-radius: 10px;
  text-decoration: none;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 3px 10px rgba(0,0,0,0.12);
  transition: opacity 0.15s, transform 0.15s;
  white-space: nowrap;
}
.bmc-panel-btn:hover { opacity: 0.88; transform: translateY(-2px); }

/* ── Footer ────────────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 1.4rem 1.5rem;
  color: var(--muted);
  font-size: 0.8rem;
  background: var(--surface);
}
footer a { color: var(--accent); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ── Cookie banner ─────────────────────────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: var(--sidebar-w); right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.07);
  z-index: 500;
  padding: 0.9rem 1.5rem;
}
.cookie-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cookie-content p { flex: 1; font-size: 0.82rem; color: var(--muted); min-width: 220px; }
.cookie-content a { color: var(--accent); }
.cookie-actions { display: flex; gap: 0.6rem; flex-shrink: 0; }
.btn-accept, .btn-decline {
  padding: 0.38rem 0.9rem;
  border: none; border-radius: 6px;
  cursor: pointer; font-size: 0.82rem; font-weight: 600;
}
.btn-accept  { background: var(--accent); color: #fff; }
.btn-decline { background: var(--bg); color: var(--muted); border: 1px solid var(--border); }
.btn-decline:hover { color: var(--text); }

/* ── Legal sub-pages ───────────────────────────────────────────────────────── */
.page-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 2rem;
}
.page-header h1 { font-family: 'Outfit', sans-serif; font-size: 1.6rem; font-weight: 800; color: var(--text); }
.page-header p  { color: var(--muted); font-size: 0.9rem; margin-top: 0.2rem; }

.legal-wrap {
  max-width: 720px; margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}
.legal-wrap h1 { font-size: 1.5rem; margin-bottom: 1.2rem; color: var(--text); }
.legal-wrap h2 { font-size: 1rem; margin: 1.4rem 0 0.4rem; color: var(--accent); }
.legal-wrap p, .legal-wrap li { color: var(--muted); font-size: 0.87rem; line-height: 1.65; margin-bottom: 0.5rem; }
.legal-wrap ul { padding-left: 1.2rem; }
.legal-wrap a  { color: var(--accent); }

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 700px) {
  .sidebar { transform: translateX(-100%); transition: transform 0.25s ease; }
  .sidebar.open { transform: translateX(0); }
  .sidebar-toggle { display: flex; }
  .page-wrap { margin-left: 0; }
  .cookie-banner { left: 0; }
  .hero { min-height: 240px; }
  .hero-content { padding: 1.8rem 1.4rem; }
  .hero-content h1 { font-size: 2.4rem; }
  .bmc-panel { flex-direction: column; text-align: center; gap: 1rem; padding: 1.4rem; }
}
