/* Optzi landing — shared styles. Brand tokens mirror the dashboard (src/app/globals.css). */
:root {
  --primary: #0d9488;
  --primary-hover: #0f766e;
  --primary-light: #f0fdfa;
  --fg: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --bg: #ffffff;
  --bg-soft: #f8f9fa;
  --radius: 0.625rem;
  --maxw: 1080px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

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

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

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Header */
header.site {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 20px; color: var(--fg); }
.brand .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--primary); display: inline-block; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--fg); }
@media (max-width: 640px) { .nav-links a.hide-sm { display: none; } }

/* Buttons */
.btn {
  display: inline-block; font-weight: 600; font-size: 15px;
  padding: 10px 20px; border-radius: var(--radius); border: 1px solid transparent;
  cursor: pointer; transition: background 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); color: #fff; }
.btn-outline { background: #fff; color: var(--fg); border-color: var(--border); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

/* Hero */
.hero { padding: 88px 0 72px; text-align: center; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--primary);
  background: var(--primary-light); padding: 6px 14px; border-radius: 999px; margin-bottom: 24px;
}
.hero h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; }
.hero p.sub { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); max-width: 640px; margin: 22px auto 34px; }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Sections */
section { padding: 64px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(26px, 3.5vw, 36px); font-weight: 800; letter-spacing: -0.01em; }
.section-head p { color: var(--muted); font-size: 17px; margin-top: 14px; }
.bg-soft { background: var(--bg-soft); }

/* Feature grid */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 820px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
}
.card .ico {
  width: 44px; height: 44px; border-radius: 10px; background: var(--primary-light);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px; font-size: 22px;
}
.card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }

/* Steps */
.steps { counter-reset: step; }
.step .num {
  width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 14px;
}

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 760px; margin: 0 auto; }
@media (max-width: 720px) { .pricing { grid-template-columns: 1fr; } }
.price-card { border: 1px solid var(--border); border-radius: 14px; padding: 32px; background: #fff; }
.price-card.featured { border-color: var(--primary); box-shadow: 0 8px 30px rgba(13, 148, 136, 0.12); }
.price-card h3 { font-size: 18px; font-weight: 700; }
.price { font-size: 44px; font-weight: 800; letter-spacing: -0.02em; margin: 14px 0 4px; }
.price span { font-size: 16px; font-weight: 500; color: var(--muted); }
.price-note { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.feature-list { list-style: none; margin: 22px 0; }
.feature-list li { padding: 8px 0 8px 28px; position: relative; font-size: 15px; }
.feature-list li::before { content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 700; }

/* Guarantee */
.guarantee { text-align: center; max-width: 620px; margin: 0 auto; }
.guarantee .badge { font-size: 40px; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--border); padding: 20px 0; }
.faq summary { font-weight: 600; font-size: 17px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq p { color: var(--muted); margin-top: 12px; }

/* Footer */
footer.site { border-top: 1px solid var(--border); padding: 48px 0 40px; background: var(--bg-soft); }
.foot-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.foot-links { display: flex; gap: 24px; flex-wrap: wrap; }
.foot-links a { color: var(--muted); font-size: 14px; }
.foot-links a:hover { color: var(--fg); }
.foot-meta { color: var(--muted); font-size: 14px; margin-top: 20px; max-width: 520px; }

/* Legal pages */
.legal { padding: 56px 0 72px; max-width: 760px; }
.legal h1 { font-size: 34px; font-weight: 800; margin-bottom: 8px; }
.legal .updated { color: var(--muted); font-size: 14px; margin-bottom: 36px; }
.legal h2 { font-size: 20px; font-weight: 700; margin: 32px 0 12px; }
.legal p, .legal li { color: #374151; margin-bottom: 12px; }
.legal ul { padding-left: 22px; margin-bottom: 12px; }
.legal a { text-decoration: underline; }
.back-link { display: inline-block; margin-bottom: 28px; font-size: 14px; font-weight: 500; }
