/* NeoGate Kiosk — getneogate.com/kiosk */
/* Work Sans — loaded via <link> in header.php */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:   #4464fc;
  --primary-d: #3050d0;
  --primary-subtle: rgba(68,100,252,0.09);
  --dark:      #0d1538;
  --text:      #1a2040;
  --muted:     #4d5772;   /* darkened from #5a6580 — clears WCAG AA 4.5:1 on --bg */
  --border:    #e0e4f7;
  --bg:        #f4f6ff;
  --white:     #ffffff;
  --radius:    10px;
}

body { font-family: 'Work Sans', 'Segoe UI', system-ui, sans-serif; color: var(--text); background: var(--white); line-height: 1.6; }

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

/* ── PAGE WRAPPER — constrains the entire layout to content width ── */
/* Nav, content, and footer all live inside .site-wrap so they share the same width.
   The body background is visible on the sides when the viewport is wider than 1080px. */
.site-wrap { max-width: 1080px; margin: 0 auto; background: var(--white); min-height: 100vh; }

/* ── NAV ── */
.site-nav {
  background: var(--dark);
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 54px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-nav .logo { color: #fff; font-weight: 700; font-size: 16px; text-decoration: none; margin-right: auto; }
.site-nav a { color: rgba(255,255,255,0.75); font-size: 14px; }
.site-nav a:hover { color: #fff; text-decoration: none; }
.site-nav a.active { color: #fff; font-weight: 600; }
.site-nav .nav-cta { background: var(--primary); color: #fff !important; padding: 7px 16px; border-radius: 6px; font-weight: 600; }
.site-nav .nav-cta:hover { background: var(--primary-d); }

/* ── HERO ── */
/* Flat dark with a radial glow anchored to the brand blue — no AI diagonal gradient */
.hero {
  background: var(--dark);
  color: #fff;
  padding: 72px clamp(20px, 5vw, 40px);
  position: relative;
  overflow: hidden;
  border-top: 3px solid var(--primary);
}
.hero::before {
  content: '';
  position: absolute;
  top: -60%; left: 50%; transform: translateX(-50%);
  width: 700px; height: 500px;
  background: radial-gradient(ellipse at center, rgba(68,100,252,0.18) 0%, transparent 68%);
  pointer-events: none;
}
.hero-layout { display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; }
.hero-logo { width: min(200px, 62vw); height: auto; display: block; margin-bottom: 32px; }
.hero-text { max-width: 700px; }
.hero-text h1 { font-size: clamp(1.9rem, 3.8vw, 3rem); font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
.hero-text p  { font-size: 1.1rem; color: rgba(255,255,255,0.75); max-width: 560px; margin: 20px auto 0; line-height: 1.7; }
.hero .hero-actions { display: flex; gap: 14px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
@media (max-width: 820px) {
  .hero { padding: 56px clamp(16px, 5vw, 32px); }
  .hero-logo { width: min(170px, 56vw); margin-bottom: 26px; }
}
.btn { display: inline-flex; align-items: center; gap: 7px; padding: 12px 26px; border-radius: 8px; font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-d); text-decoration: none; color: #fff; }
.btn-outline { border: 2px solid rgba(255,255,255,0.4); color: #fff; }
.btn-outline:hover { border-color: #fff; text-decoration: none; }

/* ── SECTIONS ── */
/* clamp padding: breathes on wide, contracts gracefully on narrow without double-padding */
.container { max-width: 1080px; margin: 0 auto; padding: 0 clamp(16px, 5vw, 40px); }
.section { padding: 72px 0; }
.section.alt { background: var(--bg); }
.section-title { font-size: clamp(1.4rem, 2.8vw, 1.85rem); font-weight: 800; text-align: center; margin-bottom: 10px; letter-spacing: -0.015em; text-wrap: balance; }
.section-sub   { text-align: center; color: var(--muted); margin-bottom: 52px; font-size: 1.05rem; }

/* ── FEATURE GRID ── */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.feature-card  { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; transition: box-shadow 0.15s, border-color 0.15s; }
.feature-card:hover { box-shadow: 0 4px 20px rgba(68,100,252,0.08); border-color: rgba(68,100,252,0.25); }
/* SVG icon container — replaces raw emoji */
.feature-card .icon {
  width: 44px; height: 44px;
  background: var(--primary-subtle);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  color: var(--primary);
}
.feature-card .icon svg { width: 22px; height: 22px; flex-shrink: 0; }
.feature-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.feature-card p  { font-size: 13.5px; color: var(--muted); line-height: 1.65; }

/* ── STEPS ── */
.steps { display: flex; flex-direction: column; gap: 24px; max-width: 680px; margin: 0 auto; }
.step  { display: flex; gap: 20px; align-items: flex-start; }
.step-num { background: var(--primary); color: #fff; border-radius: 50%; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.step-body h3 { font-weight: 700; margin-bottom: 4px; }
.step-body p  { font-size: 14px; color: var(--muted); }

/* ── DOWNLOAD BOX ── */
.download-box { background: var(--dark); color: #fff; border-radius: var(--radius); padding: 40px; text-align: center; }
.download-box h2 { font-size: 1.5rem; margin-bottom: 10px; }
.download-box p  { color: rgba(255,255,255,0.65); margin-bottom: 28px; }
.version-badge { display: inline-block; background: rgba(255,255,255,0.1); border-radius: 20px; padding: 4px 14px; font-size: 12px; margin-bottom: 24px; }

/* ── DOCS CONTENT ── */
.docs-layout { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: start; }
.docs-nav { position: sticky; top: 80px; border-right: 1px solid var(--border); padding-right: 24px; }
.docs-nav a { display: block; padding: 6px 0; font-size: 14px; color: var(--muted); border-radius: 4px; }
.docs-nav a:hover { color: var(--primary); text-decoration: none; }
.docs-nav a.active { color: var(--primary); font-weight: 600; }
.docs-nav .nav-group { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text); margin: 18px 0 4px; }
.docs-content h2 { font-size: 1.4rem; font-weight: 700; margin: 40px 0 12px; padding-top: 8px; border-top: 1px solid var(--border); }
.docs-content h2:first-child { margin-top: 0; border-top: none; }
.docs-content h3 { font-size: 1rem; font-weight: 700; margin: 24px 0 8px; }
.docs-content p  { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.docs-content ul, .docs-content ol { font-size: 14px; color: var(--muted); padding-left: 22px; margin-bottom: 12px; }
.docs-content li { margin-bottom: 4px; }
.docs-content code { background: var(--bg); border: 1px solid var(--border); border-radius: 4px; padding: 1px 6px; font-size: 12.5px; font-family: 'Consolas', monospace; color: var(--text); }
.docs-content .note { background: #e8eeff; border-left: 3px solid var(--primary); border-radius: 0 8px 8px 0; padding: 12px 16px; font-size: 13px; margin: 16px 0; }

/* ── FOOTER ── */
.site-footer { background: var(--dark); color: rgba(255,255,255,0.5); padding: 36px 40px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; flex-wrap: wrap; gap: 12px; }
.site-footer a { color: rgba(255,255,255,0.6); }
.site-footer a:hover { color: #fff; }

/* ── HERO COMPACT (padding override for inner pages) ── */
.hero--compact { padding: 60px 40px; }

/* ── BUTTON LARGE ── */
.btn-lg { font-size: 16px !important; padding: 14px 32px !important; }

/* ── FEATURES GRID WITH BOTTOM SPACING ── */
.features-grid--spaced { margin-bottom: 56px; }

/* ── FOOTER LINK ROW ── */
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }

/* ── NARROW CONTAINER (download / legal pages) ── */
.container--narrow { max-width: 720px; }

/* ── DOWNLOAD BOX WITH BOTTOM MARGIN ── */
.download-box--spaced { margin-bottom: 40px; }

/* ── FEATURE CARD WITH BOTTOM MARGIN ── */
.feature-card--spaced { margin-bottom: 24px; }

/* ── CARD LIST (ul inside feature-card) ── */
.card-list { margin-top: 10px; padding-left: 20px; font-size: 14px; color: var(--muted); line-height: 2; }

/* ── DOWNLOAD BOX PARAGRAPHS ── */
.download-box-note   { margin-bottom: 8px; }
.request-note        { margin-bottom: 24px; font-size: 14px; opacity: 0.75; }

/* ── FEATURE CARD TEXT NOTE ── */
.feature-note { margin-top: 10px; font-size: 14px; color: var(--muted); line-height: 2; }

/* ── PAGE FOOTER NOTE (small centred text below cards) ── */
.page-footer-note { margin-top: 28px; font-size: 13px; color: var(--muted); text-align: center; }

/* ── LEGAL PAGES (EULA, Copyrights) ── */
.legal-wrap   { max-width: 800px; margin: 0 auto; padding: 48px 40px; }
.legal-title  { font-size: 1.8rem; font-weight: 800; margin-bottom: 6px; }
.legal-meta   { color: var(--muted); font-size: 14px; margin-bottom: 36px; }
.legal-intro  { margin-bottom: 24px; }
.legal-h2     { font-size: 1.1rem; font-weight: 700; margin: 28px 0 10px; }
.legal-h2--first { margin-top: 0; }
.legal-list   { margin: 10px 0 0 24px; line-height: 2; }
.notice-box   { background: var(--bg); border-left: 4px solid var(--primary); padding: 20px 24px; border-radius: 0 var(--radius) var(--radius) 0; margin-bottom: 32px; }
.notice-box p + p { margin-top: 10px; }
.legal-footer { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.link-primary { color: var(--primary); font-weight: 600; }

/* ── PRICING PAGE ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.pricing-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.pricing-card--popular {
  border-color: var(--primary);
  border-width: 2px;
  box-shadow: 0 4px 24px rgba(68,100,252,0.12);
}

.pricing-popular-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 3px 14px;
  border-radius: 20px;
  white-space: nowrap;
}

.pricing-plan   { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); margin-bottom: 10px; }
.pricing-price  { font-size: 2.6rem; font-weight: 800; color: var(--dark); line-height: 1; margin-bottom: 4px; }
.pricing-price span { font-size: 1.2rem; font-weight: 600; vertical-align: super; line-height: 0; }
.pricing-devices { font-size: 13px; color: var(--muted); margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.pricing-features { list-style: none; margin: 0 0 28px; padding: 0; flex: 1; }
.pricing-features li { font-size: 13px; color: var(--text); padding: 6px 0; display: flex; align-items: flex-start; gap: 9px; }
.pricing-features li::before { content: '✓'; color: var(--primary); font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.pricing-features li.muted { color: var(--muted); }
.pricing-features li.muted::before { color: var(--border); }
.pricing-cta { display: block; text-align: center; padding: 11px 20px; border-radius: 8px; font-size: 14px; font-weight: 600; text-decoration: none; }
.pricing-cta--primary { background: var(--primary); color: #fff; }
.pricing-cta--primary:hover { background: var(--primary-d); text-decoration: none; color: #fff; }
.pricing-cta--outline  { border: 2px solid var(--border); color: var(--text); }
.pricing-cta--outline:hover  { border-color: var(--primary); color: var(--primary); text-decoration: none; }

.pricing-note { text-align: center; font-size: 13px; color: var(--muted); margin-top: 32px; }
.pricing-price--contact { font-size: 1.6rem !important; padding-top: 6px; }
.pricing-note a { color: var(--primary); }

/* comparison table */
.compare-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 12px; }
.compare-table th { text-align: left; padding: 10px 16px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); border-bottom: 2px solid var(--border); }
.compare-table th:not(:first-child) { text-align: center; }
.compare-table td { padding: 11px 16px; border-bottom: 1px solid var(--border); color: var(--text); }
.compare-table td:not(:first-child) { text-align: center; }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:hover td { background: var(--bg); }
.compare-table .check { color: var(--primary); font-weight: 700; font-size: 16px; }
.compare-table .dash  { color: var(--border); font-size: 18px; }
.compare-table .col-highlight { background: rgba(68,100,252,0.04); }

@media (max-width: 700px) {
  .site-nav { padding: 12px 16px; gap: 10px 14px; flex-wrap: wrap; justify-content: center; }
  .site-nav .logo { flex-basis: 100%; margin-right: 0; text-align: center; }
  .site-nav a { font-size: 13px; }
  .site-nav .nav-cta { padding: 8px 14px; }
  .hero { padding: 44px 0; }
  .hero-logo { width: min(168px, 62vw); margin-bottom: 20px; }
  .hero-text h1 { font-size: 2rem; line-height: 1.15; }
  .hero-text p { font-size: 1rem; margin-top: 14px; }
  .hero .hero-actions { flex-direction: column; align-items: stretch; gap: 12px; margin-top: 24px; }
  .hero .btn { justify-content: center; width: 100%; }
  .container { padding: 0 20px; }
  .section { padding: 48px 0; }
  .section-sub { margin-bottom: 32px; }
  .feature-card { padding: 22px 20px; }
  .steps { gap: 20px; }
  .step { gap: 14px; }
  .step-body p { font-size: 13px; }
  .download-box { padding: 28px 22px; }
  .download-box h2 { font-size: 1.35rem; }
  .download-box p { margin-bottom: 22px; }
  .site-footer { padding: 28px 20px; justify-content: center; text-align: center; }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-nav { display: none; }
}
