:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --text: #101828;
  --muted: #667085;
  --border: #eaecf0;
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: min(1040px, calc(100% - 2rem)); margin: 0 auto; }

.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav {
  min-height: 64px;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.brand { font-weight: 700; letter-spacing: 0.01em; color: var(--text); }

.nav-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.nav-links a { color: var(--muted); font-size: 0.95rem; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

main.wrap { padding: 2.5rem 0 3rem; }

.hero,
.page-card,
.app-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.hero {
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.eyebrow { color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; margin: 0 0 .5rem; }
h1 { font-size: clamp(1.8rem, 2.8vw, 2.4rem); margin: 0 0 0.75rem; }
h2 { margin: 0 0 1rem; }

.section-block { margin-top: 1.75rem; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }

.app-card { padding: 1.25rem; }
.app-card h3 { margin-top: 0.55rem; margin-bottom: 0.5rem; }
.app-card p { color: var(--muted); margin-top: 0; }

.badge {
  display: inline-block;
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  border: 1px solid #dbe3ff;
  background: #eef2ff;
  color: #3730a3;
  font-size: 0.78rem;
}

.btn {
  display: inline-block;
  padding: 0.5rem 0.8rem;
  border-radius: 10px;
  color: #fff;
  background: var(--brand);
}
.btn:hover { text-decoration: none; background: var(--brand-dark); }

.page-card { padding: 1.5rem; }
.content p { color: #344054; }

.site-footer { border-top: 1px solid var(--border); color: var(--muted); }
.site-footer .wrap { padding: 1.1rem 0; }

.text-center { text-align: center; }
.mb-2 { margin-bottom: 0.5rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.w-50 { width: 50%; }
.mt-3 { margin-top: 1rem; }
.text-danger { color: #dc2626; }
.text-success { color: #059669; }

#size-selector-wrapper { position: relative; }
#hamburger-button {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  border: none;
  border-radius: 8px;
  padding: 0.35rem 0.5rem;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
}

#size-selector-container {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 110;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  border: 1px solid #d1d5db;
  padding: 0.75rem;
}

#close-button {
  border: none;
  background: transparent;
  cursor: pointer;
  float: right;
}

.message-bubble {
  margin: 0.75rem auto 0;
  display: none;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 10px;
  padding: 0.4rem 0.7rem;
}
.message-bubble.show { display: inline-block; }
.message-bubble.disappear { opacity: 0; transition: opacity 0.4s ease; }
