/* ===================================================================
   Lensari — shared stylesheet
   Warm, editorial, approachable. Like reading on an e-reader.
   =================================================================== */

/* --- Reset & base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #fafaf8;
  --bg-card:  #ffffff;
  --text:     #2c2c2c;
  --text-dim: #6b6b6b;
  --accent:   #6b8f67;
  --accent-h: #5a7d56;
  --border:   #e2e0db;
  --heading:  Georgia, 'Times New Roman', serif;
  --body:     -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --max-w:    960px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--heading);
  font-weight: 400;
  line-height: 1.3;
}

/* --- Layout --- */
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Nav --- */
.site-nav {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.5rem;
}
.site-nav .logo {
  font-family: var(--heading);
  font-size: 1.35rem;
  color: var(--text);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.site-nav .logo:hover { text-decoration: none; }
.site-nav .logo .logo-mark { flex-shrink: 0; }
.site-nav nav { display: flex; gap: 1.75rem; }
.site-nav nav a {
  font-size: 0.92rem;
  color: var(--text-dim);
  letter-spacing: 0.01em;
}
.site-nav nav a:hover { color: var(--text); text-decoration: none; }

/* Nav dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0;
  min-width: 160px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block;
  padding: 0.45rem 1.1rem;
  font-size: 0.9rem;
  color: var(--text-dim);
  white-space: nowrap;
}
.nav-dropdown-menu a:hover {
  background: #f0efec;
  color: var(--text);
}

/* Mobile nav toggle */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.25rem; }
.nav-toggle svg { width: 24px; height: 24px; stroke: var(--text); }

/* --- Hero --- */
.hero {
  padding: 5rem 0 4rem;
  text-align: center;
}
.hero h1 {
  font-size: 2.4rem;
  margin-bottom: 1rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.hero .subtitle {
  font-size: 1.15rem;
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto;
}

/* --- Sections --- */
.section {
  padding: 3.5rem 0;
}
.section + .section {
  border-top: 1px solid var(--border);
}
.section h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}
.section h2.center { text-align: center; }
.section p + p { margin-top: 1rem; }

/* --- Product cards --- */
.products {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1rem;
}
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
  transition: box-shadow 0.2s;
}
.product-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.product-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}
.product-card p {
  color: var(--text-dim);
  font-size: 0.97rem;
  margin-bottom: 1.25rem;
}
.badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}
.badge-free { background: #e8f0e7; color: #3d6639; }
.badge-pro  { background: #eee9df; color: #7a6840; }

.card-link {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--accent);
}
.card-link:hover { text-decoration: underline; }

/* --- Feature grid --- */
.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1rem;
}
.feature {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.feature-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: #e8f0e7;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature h3 {
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.feature p {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.5;
}

/* --- Screenshot placeholder --- */
.screenshot-placeholder {
  background: #eeedea;
  border: 2px dashed var(--border);
  border-radius: 10px;
  padding: 4rem 2rem;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-top: 1rem;
}

/* --- Download / CTA --- */
.cta-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2.5rem;
  text-align: center;
  margin-top: 1rem;
}
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.75rem 2rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
}
.btn:hover { background: var(--accent-h); color: #fff; text-decoration: none; }
.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-outline:hover { background: var(--accent); color: #fff; }

.sys-req {
  margin-top: 1.25rem;
  font-size: 0.88rem;
  color: var(--text-dim);
}

/* --- Story / callout --- */
.callout {
  background: var(--bg-card);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 1.75rem 2rem;
  margin-top: 1rem;
  font-size: 1.02rem;
  line-height: 1.8;
}

/* --- About page --- */
.team-card {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin-top: 1.5rem;
}
.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #e8f0e7;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--heading);
  font-size: 1.6rem;
  color: var(--accent);
}
.team-info h3 {
  font-family: var(--body);
  font-size: 1.1rem;
  font-weight: 600;
}
.team-info .role {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}

/* --- Contact page --- */
.contact-methods {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.contact-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.75rem;
}
.contact-item h3 {
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.contact-item p {
  font-size: 0.95rem;
  color: var(--text-dim);
}

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  margin-top: 3rem;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-dim);
}
.site-footer a { color: var(--text-dim); }
.site-footer a:hover { color: var(--text); }
.site-footer .footer-logo { vertical-align: -4px; margin-right: 0.35rem; }

/* --- Responsive --- */
@media (max-width: 700px) {
  .hero { padding: 3rem 0 2.5rem; }
  .hero h1 { font-size: 1.75rem; }
  .hero .subtitle { font-size: 1rem; }
  .products { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .section { padding: 2.5rem 0; }
  .section h2 { font-size: 1.4rem; }

  .site-nav nav { display: none; }
  .site-nav nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 3.5rem;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
    gap: 0.75rem;
  }
  .nav-toggle { display: block; }
  .nav-dropdown-menu {
    display: block;
    position: static;
    transform: none;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    min-width: 0;
  }
  .nav-dropdown-toggle { display: none; }
  .nav-dropdown-menu a { padding: 0; }

  .team-card { flex-direction: column; align-items: center; text-align: center; }
}

/* --- Print --- */
@media print {
  .site-nav, .site-footer { display: none; }
  body { font-size: 12pt; background: #fff; }
  .wrap { max-width: 100%; }
  a { color: var(--text); }
  a[href]::after { content: " (" attr(href) ")"; font-size: 0.85em; color: var(--text-dim); }
}
