﻿/* ============================================
   VotePromotion — Marketing for contest participants
   Design system: clean, professional, trustworthy
   ============================================ */

:root {
  --color-bg: #ffffff;
  --color-bg-soft: #f7f9fc;
  --color-bg-dark: #0b1320;
  --color-text: #0f172a;
  --color-text-muted: #475569;
  --color-text-soft: #64748b;
  --color-border: #e2e8f0;
  --color-border-soft: #f1f5f9;
  --color-primary: #1e3a8a;
  --color-primary-hover: #1e40af;
  --color-accent: #0ea5e9;
  --color-success: #16a34a;
  --color-warning: #d97706;
  --color-danger: #dc2626;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12);
  --container: 1140px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.5em;
  line-height: 1.25;
  color: var(--color-text);
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p { margin: 0 0 1em; color: var(--color-text-muted); }
p:last-child { margin-bottom: 0; }

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover { color: var(--color-primary-hover); text-decoration: underline; }

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

ul, ol { margin: 0 0 1em; padding-left: 1.5em; color: var(--color-text-muted); }
li { margin-bottom: 0.4em; }

hr { border: 0; border-top: 1px solid var(--color-border); margin: 2rem 0; }

/* Layout */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 80px 0; }
.section--soft { background: var(--color-bg-soft); }
.section--dark { background: var(--color-bg-dark); color: #e2e8f0; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #ffffff; }
.section--dark p { color: #cbd5e1; }
.section--narrow { padding: 56px 0; }

.section-header { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-header h2 { margin-bottom: 12px; }
.section-header p { font-size: 1.05rem; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  margin-bottom: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--color-primary);
  color: #ffffff;
}
.btn--primary:hover {
  background: var(--color-primary-hover);
  color: #ffffff;
  text-decoration: none;
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.btn--secondary {
  background: transparent;
  color: var(--color-primary);
  border-color: #94a3b8; /* WCAG 1.4.11 non-text contrast 3.1:1 */
}
.btn--secondary:hover {
  background: var(--color-bg-soft);
  color: var(--color-primary-hover);
  border-color: var(--color-primary);
  text-decoration: none;
}
.btn--ghost {
  background: transparent;
  color: var(--color-text);
}
.btn--lg { padding: 16px 32px; font-size: 1rem; }
.btn--block { display: flex; width: 100%; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--color-border-soft);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-text);
  text-decoration: none;
}
.brand:hover { text-decoration: none; color: var(--color-text); }
.brand__mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav a {
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav a:hover, .nav a.is-active { color: var(--color-primary); text-decoration: none; }
.nav__cta { margin-left: 12px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--color-text);
  margin: 4px 0;
}

@media (max-width: 860px) {
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 16px 24px 24px; background: #fff; border-bottom: 1px solid var(--color-border); gap: 16px; }
  .nav.is-open { display: flex; }
  .nav__cta { margin-left: 0; }
  .nav-toggle { display: inline-block; }
}

/* Hero */
.hero {
  padding: 96px 0 64px;
  background: linear-gradient(180deg, #f7f9fc 0%, #ffffff 100%);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { margin-bottom: 20px; }
.hero__lead { font-size: 1.15rem; color: var(--color-text-muted); max-width: 560px; margin-bottom: 32px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.hero__trust {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--color-text-soft);
}
.hero__trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero__visual {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
}
.hero__visual h3 { margin-bottom: 16px; font-size: 1.05rem; }
.hero__metric {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border-soft);
}
.hero__metric:last-child { border-bottom: 0; }
.hero__metric-label { color: var(--color-text-soft); font-size: 0.9rem; }
.hero__metric-value { font-weight: 700; color: var(--color-primary); font-size: 1.25rem; }

@media (max-width: 860px) {
  .hero { padding: 56px 0 40px; }
  .hero__inner { grid-template-columns: 1fr; gap: 32px; }
}

/* Cards */
.grid {
  display: grid;
  gap: 24px;
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.2s ease;
}
.card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #eff6ff;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.2rem;
}
.card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.card p { font-size: 0.95rem; }

/* Process steps */
.steps { counter-reset: step; display: grid; gap: 24px; }
.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.step__num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step h3 { font-size: 1.1rem; margin-bottom: 6px; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; } }
.plan {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
}
.plan--featured {
  border-color: var(--color-primary);
  box-shadow: 0 8px 24px rgba(30, 58, 138, 0.12);
  position: relative;
}
.plan--featured::before {
  content: "Recommended";
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: 999px;
  text-transform: uppercase;
}
.plan h3 { font-size: 1.25rem; margin-bottom: 4px; }
.plan__desc { color: var(--color-text-soft); font-size: 0.9rem; margin-bottom: 20px; }
.plan__price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 4px;
}
.plan__price small { font-size: 0.9rem; font-weight: 500; color: var(--color-text-soft); }
.plan__period { color: var(--color-text-soft); font-size: 0.85rem; margin-bottom: 24px; }
.plan__features { list-style: none; padding: 0; margin: 0 0 28px; }
.plan__features li {
  padding: 8px 0;
  padding-left: 28px;
  position: relative;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--color-border-soft);
}
.plan__features li:last-child { border-bottom: 0; }
.plan__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='%2316a34a' d='M13.78 4.22a.75.75 0 0 1 0 1.06l-7 7a.75.75 0 0 1-1.06 0l-3-3a.75.75 0 1 1 1.06-1.06L6.25 10.69l6.47-6.47a.75.75 0 0 1 1.06 0z'/></svg>") center/contain no-repeat;
}
.plan__cta { margin-top: auto; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq summary {
  padding: 18px 24px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: var(--radius-md);
}
.faq summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--color-text-soft);
  transition: transform 0.15s ease;
}
.faq details[open] summary::after { content: "−"; }
.faq details > div {
  padding: 0 24px 20px;
  color: var(--color-text-muted);
}

/* Forms */
.form { display: grid; gap: 16px; max-width: 560px; }
.form__group { display: grid; gap: 6px; }
.form label { font-weight: 500; font-size: 0.9rem; color: var(--color-text); }
.form input, .form textarea, .form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
  color: var(--color-text);
  transition: border-color 0.15s ease;
}
.form input:focus, .form textarea:focus, .form select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}
.form textarea { min-height: 120px; resize: vertical; }
.form__check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.88rem;
  color: var(--color-text-muted);
}
.form__check input { width: auto; margin-top: 3px; }
.form__note { font-size: 0.85rem; color: var(--color-text-soft); }

/* Testimonials */
.quote {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.quote__text { font-size: 1.02rem; color: var(--color-text); margin-bottom: 16px; line-height: 1.6; }
.quote__author { display: flex; align-items: center; gap: 12px; }
.quote__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.quote__name { font-weight: 600; font-size: 0.95rem; }
.quote__role { font-size: 0.85rem; color: var(--color-text-soft); }

/* CTA banner */
.cta-banner {
  background: linear-gradient(135deg, var(--color-primary), #2563eb);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  text-align: center;
}
.cta-banner h2 { color: #fff; margin-bottom: 12px; }
.cta-banner p { color: #cbd5e1; margin-bottom: 28px; max-width: 580px; margin-left: auto; margin-right: auto; }
.cta-banner .btn--primary {
  background: #fff;
  color: var(--color-primary);
}
.cta-banner .btn--primary:hover { background: #f1f5f9; color: var(--color-primary); }

/* Footer */
.site-footer {
  background: #0b1320;
  color: #cbd5e1;
  padding: 64px 0 24px;
  margin-top: 0;
}
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand p { color: #94a3b8; font-size: 0.9rem; margin-top: 16px; }
.footer-col h4 { color: #fff; font-size: 0.95rem; margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; font-size: 0.9rem; }
.footer-contact span { display: block; font-size: 0.9rem; color: #94a3b8; margin-bottom: 8px; }

.footer-legal {
  padding-top: 24px;
  border-top: 1px solid #1e293b;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: #64748b;
}
.footer-legal a { color: #94a3b8; }

/* Page hero (inner pages) */
.page-hero {
  padding: 64px 0 32px;
  background: var(--color-bg-soft);
  border-bottom: 1px solid var(--color-border-soft);
}
.page-hero h1 { margin-bottom: 12px; }
.page-hero p { font-size: 1.05rem; max-width: 720px; }
.breadcrumbs {
  font-size: 0.85rem;
  color: var(--color-text-soft);
  margin-bottom: 16px;
}
.breadcrumbs a { color: var(--color-text-soft); }
.breadcrumbs span { margin: 0 6px; }

/* Legal / Article content */
.article {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 0;
}
.article__meta {
  font-size: 0.88rem;
  color: var(--color-text-soft);
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}
.article h2 { margin-top: 2em; }
.article h3 { margin-top: 1.5em; font-size: 1.15rem; }
.article ul li, .article ol li { margin-bottom: 0.5em; }
.article table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
}
.article th, .article td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
}
.article th { background: var(--color-bg-soft); font-weight: 600; }

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 20px 24px;
  z-index: 100;
  display: none;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner__text { font-size: 0.9rem; color: var(--color-text-muted); margin-bottom: 12px; }
.cookie-banner__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie-banner__actions .btn { padding: 8px 16px; font-size: 0.85rem; }

/* Utilities */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; }
.muted { color: var(--color-text-soft); }
.small { font-size: 0.88rem; }

.notice {
  background: #fffbeb;
  border-left: 4px solid var(--color-warning);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  margin: 24px 0;
  color: #78350f;
  font-size: 0.92rem;
}
.notice strong { color: #78350f; }

.alert-info {
  background: #eff6ff;
  border-left: 4px solid var(--color-primary);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  margin: 24px 0;
  color: var(--color-text);
  font-size: 0.92rem;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-primary);
  color: #fff;
  padding: 8px 16px;
  z-index: 1000;
}
.skip-link:focus { top: 0; }

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Print */
@media print {
  .site-header, .site-footer, .cookie-banner, .nav-toggle { display: none; }
  body { color: #000; }
}


/* Visually-hidden for screen readers (WCAG 1.3.1) */
.visually-hidden { position:absolute !important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
