/* Kaynko POS — shared stylesheet for new pages (blog, industry-vertical
   landing pages, the repurposed /pos/ page). Tokens match the homepage's
   inline <style> block exactly (index.html) so new pages feel identical
   to the rest of the site; the 4 pre-existing pages keep their own inline
   styles for now rather than being retrofitted onto this file in the same
   pass that adds the new content — a lower-risk choice since this session
   has no way to render and visually verify a cross-page CSS refactor. */

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

:root {
  --green:        #1B7A3E;
  --green-dark:   #145C2E;
  --green-tint:   #E8F5E9;
  --green-bg:     #F2FAF5;
  --text:         #1A1A1A;
  --text-mid:     #555;
  --text-light:   #888;
  --border:       #E0E0E0;
  --white:        #FFFFFF;
  --bg:           #F8FAFB;
  --danger:       #C62828;
  --radius:       12px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; }

/* ── SITE HEADER (sub-pages: blog, vertical landing pages, /pos/) ── */
header.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 5%;
  height: 60px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 100;
}
.site-header .logo { display: flex; align-items: center; gap: 10px; font-size: 1rem; font-weight: 700; color: var(--text); text-decoration: none; }
.site-header .logo img { width: 28px; height: 28px; border-radius: 6px; flex-shrink: 0; }
.site-header .header-link { font-size: 0.85rem; color: var(--text-mid); text-decoration: none; }

/* ── BUTTONS (match index.html) ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 0.9rem; font-weight: 600;
  cursor: pointer; transition: all 0.15s;
  border: none;
}
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); text-decoration: none; }
.btn-outline { background: transparent; color: var(--green); border: 2px solid var(--green); }
.btn-outline:hover { background: var(--green-tint); text-decoration: none; }
.btn-lg { padding: 14px 32px; font-size: 1rem; border-radius: 10px; }

/* ── CONTENT / ARTICLE LAYOUT (blog posts, vertical pages) ── */
.content { max-width: 760px; margin: 0 auto; padding: 48px 5% 80px; }
.content.narrow { max-width: 680px; }

.eyebrow {
  display: inline-block;
  font-size: 0.76rem; font-weight: 700; color: var(--green);
  text-transform: uppercase; letter-spacing: 1.2px;
  margin-bottom: 10px;
}

h1 { font-size: clamp(1.9rem, 3.6vw, 2.4rem); font-weight: 800; letter-spacing: -0.5px; margin-bottom: 14px; line-height: 1.15; }
h2 { font-size: 1.35rem; font-weight: 700; margin: 36px 0 12px; }
h2:first-of-type { margin-top: 20px; }
h3 { font-size: 1.05rem; font-weight: 700; margin: 24px 0 8px; }

.content p { font-size: 0.97rem; color: var(--text-mid); line-height: 1.75; margin-bottom: 16px; }
.content .lead { font-size: 1.08rem; color: var(--text-mid); line-height: 1.75; }
.content ul, .content ol { margin: 0 0 16px 1.3em; color: var(--text-mid); font-size: 0.95rem; line-height: 1.75; }
.content li { margin-bottom: 6px; }
.content strong { color: var(--text); }

.post-meta { font-size: 0.82rem; color: var(--text-light); margin-bottom: 28px; }

/* ── CALLOUT / CTA BOX ── */
.callout {
  padding: 14px 18px;
  border-radius: 8px;
  border-left: 3px solid var(--green);
  background: var(--green-tint);
  font-size: 0.9rem; color: var(--text-mid);
  margin: 20px 0;
}
.callout strong { color: var(--text); }

.cta-box {
  background: var(--green-bg);
  border: 1px solid #c8e6c9;
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  margin: 40px 0;
}
.cta-box h3 { margin-top: 0; margin-bottom: 8px; }
.cta-box p { max-width: 460px; margin: 0 auto 18px; }

/* ── DEMO-CLIP PLACEHOLDER ── */
/* Reserved spot for a short screen-recording clip (e.g. "Scan-to-Print"),
   consistent with the demo clips already planned in docs/YOUTUBE_GROWTH_PLAN.md
   — this is a placeholder slot, not a claim that a video exists yet. */
.demo-placeholder {
  background: #0F1F14;
  border-radius: var(--radius);
  padding: 48px 24px;
  text-align: center;
  color: rgba(255,255,255,0.7);
  margin: 28px 0;
}
.demo-placeholder .icon { font-size: 28px; margin-bottom: 10px; }
.demo-placeholder p { color: rgba(255,255,255,0.55); font-size: 0.85rem; margin: 0; }

/* ── BLOG LISTING ── */
.blog-grid { display: grid; gap: 20px; margin-top: 32px; }
.blog-card {
  display: block;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.blog-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.07);
  transform: translateY(-2px);
  border-color: #c8e6c9;
  text-decoration: none;
}
.blog-card .tag { font-size: 0.72rem; font-weight: 700; color: var(--green); text-transform: uppercase; letter-spacing: 0.6px; }
.blog-card h2 { font-size: 1.15rem; margin: 8px 0 8px; color: var(--text); }
.blog-card p { font-size: 0.9rem; color: var(--text-mid); line-height: 1.6; margin: 0; }

/* ── FEATURE GRID (vertical landing pages) ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin: 28px 0;
}
.feature-card {
  padding: 22px 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.feature-card h3 { margin-top: 0; font-size: 0.95rem; margin-bottom: 6px; }
.feature-card p { font-size: 0.86rem; color: var(--text-mid); line-height: 1.6; margin: 0; }

/* ── SIMPLE HERO (vertical landing pages, /pos/) ── */
.simple-hero {
  background: var(--green-bg);
  padding: 56px 5% 48px;
  text-align: center;
}
.simple-hero h1 { max-width: 760px; margin: 0 auto 14px; }
.simple-hero p.lead { max-width: 560px; margin: 0 auto 28px; }
.simple-hero .hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
.simple-hero .hero-note { font-size: 0.8rem; color: var(--text-light); }

.back { display: inline-block; margin: 32px 0 0; font-size: 0.85rem; color: var(--text-light); }

/* ── FOOTER (sub-pages) ── */
footer.site-footer { padding: 28px 5%; text-align: center; font-size: 0.82rem; color: var(--text-light); border-top: 1px solid var(--border); }
footer.site-footer a { color: var(--text-light); }

@media (max-width: 640px) {
  header.site-header { padding: 0 4%; }
  .content { padding: 36px 4% 60px; }
  .simple-hero { padding: 44px 4% 36px; }
}
