/* ============================================================
   Sepiola — site web (Cloudflare Pages)
   Stylesheet minimal, mobile-first, Lighthouse-friendly.
   ============================================================ */

:root {
  --primary: #09B1A3;
  --primary-dark: #078A7E;
  --secondary: #0EA5E9;
  --bg: #FFFFFF;
  --bg-soft: #F5FAFA;
  --bg-pop: #F0FDF4;
  --text: #1F2937;
  --text-muted: #6B7280;
  --border: #E5E7EB;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --radius: 8px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; color: var(--text); }
h1 { font-size: clamp(28px, 5vw, 48px); margin-bottom: 16px; }
h2 { font-size: clamp(24px, 4vw, 36px); margin-bottom: 24px; text-align: center; }
h3 { font-size: 18px; margin-bottom: 8px; }

p { margin-bottom: 12px; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); text-decoration: underline; }

/* ----- BUTTONS ----- */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); color: white; }
.btn-secondary { background: white; color: var(--primary); border: 2px solid var(--primary); }
.btn-secondary:hover { background: var(--bg-soft); color: var(--primary); }
.btn-ghost { background: transparent; color: var(--text); padding: 8px 12px; }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-xl { padding: 18px 36px; font-size: 18px; }

/* ----- HEADER ----- */
.site-header {
  border-bottom: 1px solid var(--border);
  background: white;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  gap: 24px;
}
.logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 20px; color: var(--text); }
.logo:hover { text-decoration: none; }
.logo-icon { font-size: 24px; }
.nav-primary { display: flex; gap: 24px; }
.nav-primary a { color: var(--text); font-size: 14px; font-weight: 500; }
.nav-cta { display: flex; gap: 12px; align-items: center; }

@media (max-width: 768px) {
  .nav-primary { display: none; }
  .header-inner { flex-wrap: wrap; }
}

/* ----- HERO ----- */
.hero {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--bg-soft) 0%, white 100%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 32px;
}
.hero-subtitle strong { color: var(--text); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.hero-fineprint { font-size: 13px; color: var(--text-muted); }
.hero-mockup-placeholder {
  aspect-ratio: 4/3;
  background: var(--bg-soft);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
}

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

/* ----- SECTIONS ----- */
section { padding: 64px 0; }
.benefits, .audience, .how-it-works, .testimonials, .pricing-teaser, .faq { padding: 80px 0; }
.benefits { background: white; }
.audience { background: var(--bg-soft); }
.how-it-works { background: white; }
.testimonials { background: var(--bg-soft); }
.pricing-teaser { background: white; }
.faq { background: var(--bg-soft); }
.cta-final { background: var(--primary); color: white; text-align: center; padding: 80px 0; }
.cta-final h2 { color: white; }
.cta-final p { color: rgba(255,255,255,0.9); margin-bottom: 24px; }

/* ----- BENEFITS GRID ----- */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 32px;
}
.benefit { text-align: center; padding: 24px; }
.benefit-icon { font-size: 48px; margin-bottom: 16px; }
.benefit p { color: var(--text-muted); }

@media (max-width: 768px) {
  .benefits-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* ----- AUDIENCE ----- */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}
.audience-card {
  background: white;
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.audience-card p { color: var(--text-muted); margin: 0; }

@media (max-width: 768px) {
  .audience-grid { grid-template-columns: 1fr; }
}

/* ----- STEPS ----- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  list-style: none;
  margin-top: 32px;
}
.steps li {
  position: relative;
  padding-top: 60px;
}
.step-num {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
}
.steps h3, .steps p { text-align: center; }
.steps p { color: var(--text-muted); }

@media (max-width: 768px) {
  .steps { grid-template-columns: 1fr; gap: 40px; }
}

/* ----- TESTIMONIALS ----- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}
.testimonials blockquote {
  background: white;
  padding: 24px;
  border-radius: var(--radius);
  border-left: 4px solid var(--primary);
  box-shadow: var(--shadow-sm);
}
.testimonials cite { font-style: normal; font-size: 13px; color: var(--text-muted); }
.testimonials-note { text-align: center; font-size: 12px; color: var(--text-muted); margin-top: 24px; }

@media (max-width: 768px) {
  .testimonials-grid { grid-template-columns: 1fr; }
}

/* ----- PRICING CARDS ----- */
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 720px;
  margin: 32px auto 0;
}
.pricing-card {
  background: white;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
}
.pricing-card-featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}
.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}
.price { margin: 16px 0 24px; }
.price .amount { font-size: 36px; font-weight: 700; }
.price .period { color: var(--text-muted); }
.pricing-card ul { list-style: none; margin: 0 0 24px; padding: 0; }
.pricing-card li { padding: 6px 0 6px 24px; position: relative; }
.pricing-card li::before { content: '✓'; position: absolute; left: 0; color: var(--primary); font-weight: 700; }
.pricing-card .btn { width: 100%; text-align: center; }

@media (max-width: 768px) {
  .pricing-cards { grid-template-columns: 1fr; }
}

/* ----- FAQ ----- */
.faq details {
  background: white;
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.faq summary {
  cursor: pointer;
  font-weight: 500;
  font-size: 16px;
  list-style: none;
  position: relative;
  padding-right: 24px;
}
.faq summary::after { content: '+'; position: absolute; right: 0; font-size: 20px; color: var(--text-muted); }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin-top: 12px; color: var(--text-muted); }

/* ----- FOOTER ----- */
.site-footer {
  background: #111827;
  color: #D1D5DB;
  padding: 60px 0 30px;
  margin-top: 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid #374151;
}
.footer-col h4 { color: white; margin-bottom: 16px; font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-col a { display: block; color: #9CA3AF; font-size: 14px; padding: 4px 0; }
.footer-col a:hover { color: white; text-decoration: none; }
.footer-col p { color: #9CA3AF; font-size: 14px; margin: 0; }
.footer-bottom { padding-top: 24px; text-align: center; font-size: 13px; color: #9CA3AF; }

@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 24px; }
}

/* ----- LEGAL / PRICING PAGES ----- */
.legal {
  max-width: 800px;
  padding-top: 48px;
  padding-bottom: 64px;
}
.legal h1 { margin-bottom: 8px; }
.legal h2 {
  font-size: 22px;
  text-align: left;
  margin: 36px 0 12px;
  padding-top: 8px;
}
.legal h3 { margin-top: 20px; }
.legal p, .legal li { color: var(--text); }
.legal ul { margin: 0 0 16px 22px; }
.legal li { margin-bottom: 8px; }
.legal-meta { color: var(--text-muted); font-size: 14px; margin-bottom: 24px; }
.legal-back { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 15px; }
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 14px;
}
.legal-table th, .legal-table td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.legal-table th { background: var(--bg-soft); font-weight: 600; }

/* Pricing page */
.pricing-page { padding: 56px 0 72px; }
.pricing-page h1 { text-align: center; }
.pricing-page .lead { text-align: center; color: var(--text-muted); max-width: 620px; margin: 0 auto 40px; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  max-width: 760px;
  margin: 0 auto 48px;
  align-items: start;
}
.plan {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 28px;
  background: white;
  box-shadow: var(--shadow-sm);
}
.plan-featured { border: 2px solid var(--primary); box-shadow: var(--shadow-md); position: relative; }
.plan-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: white; font-size: 12px; font-weight: 600;
  padding: 5px 14px; border-radius: 999px;
}
.plan h2 { text-align: left; font-size: 22px; margin-bottom: 4px; }
.plan .price { margin: 12px 0 20px; }
.plan .price .amount { font-size: 40px; font-weight: 800; }
.plan .price .period { color: var(--text-muted); font-size: 16px; }
.plan ul { list-style: none; margin: 0 0 24px; padding: 0; }
.plan li { padding: 7px 0 7px 26px; position: relative; border-bottom: 1px solid var(--bg-soft); }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 700; }
.plan .btn { width: 100%; text-align: center; }
.pricing-faq { max-width: 720px; margin: 0 auto; }
.pricing-faq details {
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.pricing-faq summary { font-weight: 600; cursor: pointer; }
.pricing-faq p { margin-top: 10px; color: var(--text-muted); }

@media (max-width: 680px) {
  .pricing-grid { grid-template-columns: 1fr; }
}
