/* ============================================================
   Tikksave shared design system — site.css
   Used by: blog list, blog post, FAQ, About pages
   (the main downloader page keeps its own inline styles)
   ============================================================ */

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

:root {
  --pink: #fe2c55;
  --pink-dark: #d41f44;
  --pink-light: #ffeef1;
  --ink: #14111a;
  --ink-soft: #4a4654;
  --paper: #fdfcfb;
  --paper-warm: #f7f4f1;
  --line: #ece8e3;
  --line-strong: #ddd7d0;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 14px;
  --radius-sm: 9px;
  --container: 760px;
  --container-wide: 1080px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }

/* ---------------- NAV ---------------- */
.site-nav {
  background: var(--ink);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 24px;
}
.logo { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.logo-icon { width: 30px; height: 30px; background: var(--pink); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.logo-icon svg { width: 17px; height: 17px; fill: #fff; }
.logo-name { font-family: var(--serif); font-size: 19px; font-weight: 600; color: #fff; }
.logo-name span { color: var(--pink); }
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.08); }
.nav-links a.active { color: #fff; background: rgba(255,255,255,0.1); }
.nav-toggle { display: none; background: none; border: none; padding: 6px; cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; stroke: #fff; stroke-width: 2; fill: none; }
.nav-links-mobile { display: none; list-style: none; margin: 0; padding: 8px 24px 14px; flex-direction: column; gap: 2px; }
.nav-links-mobile a { color: rgba(255,255,255,0.75); text-decoration: none; font-size: 15px; padding: 10px 8px; display: block; border-radius: 8px; }
.nav-links-mobile a:hover { background: rgba(255,255,255,0.08); }

@media (max-width: 680px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .site-nav.menu-open .nav-links-mobile { display: flex; }
}

/* ---------------- PAGE HERO (for FAQ/About/Blog list) ---------------- */
.page-hero {
  background: linear-gradient(180deg, var(--ink) 0%, #241c2c 100%);
  padding: 56px 24px 64px;
  text-align: center;
}
.page-hero .eyebrow {
  color: var(--pink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.page-hero h1 {
  font-family: var(--serif);
  color: #fff;
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 600;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.page-hero p {
  color: rgba(255,255,255,0.6);
  font-size: 16px;
  max-width: 480px;
  margin: 0 auto;
}

/* ---------------- SHARED CONTAINERS ---------------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: var(--container-wide); margin: 0 auto; padding: 0 24px; }

/* ---------------- BLOG LIST ---------------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  padding: 56px 0 80px;
}
.blog-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(20,17,26,0.08);
  border-color: var(--line-strong);
}
.blog-card .date {
  font-size: 12px;
  color: var(--pink);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.blog-card h2 {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 10px;
}
.blog-card p {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin: 0 0 16px;
  flex-grow: 1;
}
.blog-card .read-more {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 5px;
}
.blog-card .read-more svg { width: 14px; height: 14px; transition: transform 0.15s; }
.blog-card:hover .read-more svg { transform: translateX(3px); }

/* ---------------- BLOG POST ---------------- */
.post-header { padding: 48px 0 8px; }
.post-header .back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  margin-bottom: 28px;
}
.post-header .back-link:hover { color: var(--pink); }
.post-header .date {
  font-size: 12.5px;
  color: var(--pink);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.post-header .meta-row { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.post-header .dot { color: var(--line-strong); }
.post-header .read-time { font-size: 13px; color: var(--ink-soft); }
.post-header h1 {
  font-family: var(--serif);
  font-size: clamp(28px, 4.5vw, 40px);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 32px;
  letter-spacing: -0.01em;
}
.post-body { padding-bottom: 40px; font-size: 17px; color: #2b2733; }
.post-body p { margin: 0 0 22px; }
.post-body h2 {
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 600;
  margin: 40px 0 16px;
  color: var(--ink);
}
.post-body ul { margin: 0 0 22px; padding-left: 22px; }
.post-body li { margin-bottom: 8px; }
.post-body strong { color: var(--ink); font-weight: 700; }

.post-divider { border: none; border-top: 1px solid var(--line); margin: 40px 0; }
.related-section h3 {
  font-family: var(--serif);
  font-size: 19px;
  margin: 0 0 18px;
}
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 60px; }
.related-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  text-decoration: none;
  color: var(--ink);
  background: var(--paper-warm);
  transition: border-color 0.15s;
}
.related-card:hover { border-color: var(--pink); }
.related-card .date { font-size: 11px; color: var(--pink); font-weight: 600; text-transform: uppercase; margin-bottom: 6px; }
.related-card h4 { font-family: var(--serif); font-size: 16px; margin: 0; line-height: 1.35; }

/* ---------------- FAQ PAGE ---------------- */
.faq-section { padding: 48px 0 80px; }
.faq-group { margin-bottom: 36px; }
.faq-group-title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 16px;
  color: var(--ink);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 0;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--sans);
}
.faq-q .icon {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--paper-warm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s, transform 0.2s;
}
.faq-q .icon svg { width: 11px; height: 11px; stroke: var(--ink); stroke-width: 2.5; fill: none; }
.faq-q[aria-expanded="true"] .icon { background: var(--pink); transform: rotate(45deg); }
.faq-q[aria-expanded="true"] .icon svg { stroke: #fff; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.faq-a-inner { padding: 0 0 20px; font-size: 14.5px; color: var(--ink-soft); line-height: 1.7; max-width: 640px; }

/* ---------------- ABOUT PAGE ---------------- */
.about-section { padding: 48px 0 24px; }
.about-section p { font-size: 16.5px; color: var(--ink-soft); margin: 0 0 22px; max-width: 640px; }
.about-section h2 {
  font-family: var(--serif);
  font-size: 24px;
  margin: 36px 0 14px;
}
.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  margin: 24px 0 56px;
}
.value-card {
  background: var(--paper-warm);
  border-radius: var(--radius-sm);
  padding: 22px 20px;
}
.value-card .num { font-family: var(--serif); font-size: 13px; color: var(--pink); font-weight: 600; margin-bottom: 10px; }
.value-card h3 { font-size: 15.5px; font-weight: 700; margin: 0 0 6px; }
.value-card p { font-size: 13.5px; color: var(--ink-soft); margin: 0; }

/* ---------------- CTA BAND (shared) ---------------- */
.cta-band {
  background: var(--ink);
  padding: 56px 24px;
  text-align: center;
  margin-top: 24px;
}
.cta-band h2 { font-family: var(--serif); color: #fff; font-size: 26px; margin: 0 0 10px; }
.cta-band p { color: rgba(255,255,255,0.6); font-size: 15px; margin: 0 0 24px; }
.cta-band .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--pink);
  color: #fff;
  text-decoration: none;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: background 0.15s;
}
.cta-band .btn:hover { background: var(--pink-dark); }

/* ---------------- FOOTER ---------------- */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.45);
  text-align: center;
  padding: 28px 24px;
  font-size: 13px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.site-footer .footer-links { margin-bottom: 10px; }
.site-footer .footer-links a { color: rgba(255,255,255,0.65); text-decoration: none; margin: 0 10px; font-size: 13px; }
.site-footer .footer-links a:hover { color: #fff; }
.site-footer .footer-note { font-size: 11px; margin-top: 8px; color: rgba(255,255,255,0.3); }

/* ---------------- LEGAL PAGES (privacy/terms) ---------------- */
.legal-section { padding: 48px 0 80px; }
.legal-section .updated { color: var(--ink-soft); font-size: 13px; margin-bottom: 28px; }
.legal-section h2 { font-family: var(--serif); font-size: 21px; margin: 32px 0 12px; }
.legal-section p, .legal-section li { font-size: 15px; color: var(--ink-soft); }
.legal-section a { color: var(--pink); text-decoration: none; font-weight: 600; }
.legal-section ul { padding-left: 22px; }

@media (max-width: 600px) {
  .post-header h1 { font-size: 28px; }
  .blog-grid { grid-template-columns: 1fr; }
}
