@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ==== BRANDING TOKENS — ExpiryScanner ==== */
:root {
  --brand-name: "ExpiryScanner";
  --color-accent: #22c98e;
  --color-accent-2: #17b6c4;
  --color-accent-dark: #17a67a;
  --gradient-accent: linear-gradient(135deg, #22e0a0 0%, #17b6c4 100%);
}
/* ========================================== */

:root {
  --bg: #0a0f18;
  --bg-glow: radial-gradient(circle at 15% 8%, rgba(34, 201, 142, 0.20), transparent 45%),
             linear-gradient(180deg, #0b1420 0%, #0a0f18 55%, #060a10 100%);
  --grid-line: rgba(255, 255, 255, 0.045);
  --surface: #101826;
  --surface-2: #0d1420;
  --text: #eef3f1;
  --text-muted: #8a96a3;
  --border: #1e2a3a;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  --radius: 14px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f8f7;
    --bg-glow: radial-gradient(circle at 15% 8%, rgba(34, 201, 142, 0.12), transparent 45%), #f6f8f7;
    --grid-line: rgba(10, 15, 24, 0.05);
    --surface: #ffffff;
    --surface-2: #eef1f0;
    --text: #0e1420;
    --text-muted: #5b6672;
    --border: #e0e4e2;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  }
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg-glow), var(--bg);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.5;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  z-index: 0;
}

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

nav.top {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  position: relative;
  z-index: 1;
}

nav.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

.brand .logo-mark {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.brand .brand-accent {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

nav.top a.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

nav.top a.nav-link:hover {
  color: var(--text);
}

.hero {
  padding: 88px 0 56px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero .logo-mark.hero-logo {
  width: 64px;
  height: 64px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 2.75rem;
  font-weight: 800;
  margin: 0 0 16px;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hero h1 .accent-line {
  display: block;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.tagline {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 560px;
  margin: 0 auto 36px;
}

.store-badges {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow);
  min-width: 190px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.badge:hover {
  border-color: var(--color-accent);
  transform: translateY(-1px);
}

.badge.disabled {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
  transform: none;
}

.badge .badge-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge .badge-icon img,
.badge .badge-icon svg {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.badge .badge-icon.apple-icon svg {
  width: 85%;
  height: 85%;
  fill: var(--text-muted);
}

.badge .badge-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.badge .badge-text .small {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.badge .badge-text .big {
  font-size: 1.05rem;
  font-weight: 700;
}

.badge .coming-soon-tag {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--gradient-accent);
  color: #06120e;
  padding: 3px 7px;
  border-radius: 4px;
  margin-left: auto;
}

section.features {
  padding: 40px 0 80px;
  position: relative;
  z-index: 1;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}

.feature-card .icon {
  font-size: 1.8rem;
  margin-bottom: 14px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.cta-row {
  text-align: center;
  padding: 0 0 80px;
  position: relative;
  z-index: 1;
}

.cta-row a {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: none;
}

.cta-row a:hover {
  text-decoration: underline;
}

footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  position: relative;
  z-index: 1;
}

/* ---------- Feedback board ---------- */

.feedback-header {
  padding: 48px 0 8px;
  position: relative;
  z-index: 1;
}

.feedback-header h1 {
  margin: 0 0 6px;
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.feedback-header p {
  color: var(--text-muted);
  margin: 0;
}

.new-feature-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.new-feature-form input,
.new-feature-form textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
}

.new-feature-form textarea {
  resize: vertical;
  min-height: 70px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 8px;
  border: none;
  background: var(--gradient-accent);
  color: #06120e;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  align-self: flex-start;
}

.btn:hover {
  filter: brightness(1.08);
}

.btn.secondary {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn.secondary:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

.feature-list {
  list-style: none;
  margin: 0 0 60px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 20px;
}

.vote-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 40px;
}

.vote-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--text-muted);
  padding: 2px 6px;
  border-radius: 6px;
  line-height: 1;
}

.vote-btn:hover {
  background: var(--surface-2);
  color: var(--text);
}

.vote-btn.active-up {
  color: var(--color-accent);
}

.vote-btn.active-down {
  color: #e0645a;
}

.vote-score {
  font-weight: 700;
  font-size: 0.95rem;
}

.feature-body h3 {
  margin: 0 0 4px;
  font-size: 1.02rem;
  font-weight: 700;
}

.feature-body p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  white-space: pre-wrap;
}

.empty-state {
  text-align: center;
  color: var(--text-muted);
  padding: 40px 0;
}

/* ---------- Email prompt modal ---------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.modal-overlay.hidden {
  display: none;
}

.modal {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 24px;
  max-width: 360px;
  width: 90%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.modal h3 {
  margin: 0 0 8px;
  font-weight: 700;
}

.modal p {
  margin: 0 0 16px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.modal input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.modal .modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 8px;
}

.error-text {
  color: #e0645a;
  font-size: 0.85rem;
  min-height: 1.2em;
}
