/* TwigDo marketing site — shared styles */
:root {
  --ink: #0f172a;
  --ink-soft: #475569;
  --paper: #f8fafc;
  --night: #0b1220;
  --night-2: #111c33;
  --indigo: #6366f1;
  --violet: #8b5cf6;
  --emerald: #10b981;
  --sky: #0ea5e9;
  --amber: #f59e0b;
  --rose: #f43f5e;
  --radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--indigo); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { display: block; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(248, 250, 252, 0.8);
  border-bottom: 1px solid #e2e8f0;
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 60px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 18px; letter-spacing: -0.02em; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-badge {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, var(--indigo), var(--emerald));
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { color: var(--ink-soft); font-size: 14px; font-weight: 600; }
.nav a:hover { color: var(--ink); text-decoration: none; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 10px; font-weight: 700; font-size: 14px;
  padding: 9px 18px; border: none; cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { box-shadow: 0 6px 18px rgba(15, 23, 42, 0.25); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid #cbd5e1; }
.btn-gradient { background: linear-gradient(135deg, var(--indigo), var(--violet)); color: #fff; }
.btn-gradient:hover { box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4); }
.btn-sm { padding: 7px 14px; font-size: 13px; }

/* ---------- hero ---------- */
.hero {
  background: radial-gradient(1200px 500px at 70% -10%, rgba(99, 102, 241, 0.25), transparent 60%),
              radial-gradient(900px 400px at 20% 110%, rgba(16, 185, 129, 0.18), transparent 60%),
              var(--night);
  color: #e2e8f0;
  padding: 88px 0 72px;
  overflow: hidden;
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: 46px; line-height: 1.08; letter-spacing: -0.03em; font-weight: 800; color: #fff; }
.hero h1 .grad { background: linear-gradient(90deg, #a5b4fc, #6ee7b7); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { margin: 18px 0 28px; font-size: 17px; color: #94a3b8; max-width: 480px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin-top: 14px; font-size: 12.5px; color: #64748b; }
.hero-visual { position: relative; }
.hero-visual svg { width: 100%; height: auto; filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.45)); }

/* ---------- sections ---------- */
section { padding: 76px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head .kicker {
  display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--indigo); margin-bottom: 10px;
}
.section-head h2 { font-size: 32px; letter-spacing: -0.02em; font-weight: 800; }
.section-head p { margin-top: 10px; color: var(--ink-soft); }

/* features grid */
.features { background: #fff; }
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--paper); border: 1px solid #e2e8f0; border-radius: var(--radius);
  padding: 22px;
}
.card h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.card p { font-size: 14px; color: var(--ink-soft); }
.card .emoji { font-size: 20px; }

/* views strip */
.views { background: var(--night); color: #cbd5e1; }
.views .section-head h2 { color: #fff; }
.views .section-head p { color: #94a3b8; }
.view-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.view-card {
  background: var(--night-2); border: 1px solid #1e293b; border-radius: var(--radius);
  padding: 20px; transition: border-color 0.15s ease, transform 0.15s ease;
}
.view-card:hover { border-color: var(--indigo); transform: translateY(-3px); }
.view-card .icon { font-size: 24px; margin-bottom: 10px; }
.view-card h3 { color: #fff; font-size: 15px; margin-bottom: 5px; }
.view-card p { font-size: 13px; color: #94a3b8; }

/* pricing */
.pricing { background: #fff; }
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
.price-card {
  background: var(--paper); border: 1px solid #e2e8f0; border-radius: var(--radius);
  padding: 26px 22px; display: flex; flex-direction: column;
}
.price-card.featured {
  border: 2px solid var(--indigo); position: relative;
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.15);
}
.price-card .tag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--indigo), var(--violet)); color: #fff;
  font-size: 11px; font-weight: 800; padding: 3px 12px; border-radius: 999px; white-space: nowrap;
}
.price-card h3 { font-size: 16px; font-weight: 800; }
.price-card .amount { margin: 10px 0 4px; font-size: 34px; font-weight: 800; letter-spacing: -0.03em; }
.price-card .amount small { font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.price-card .sub { font-size: 12.5px; color: var(--ink-soft); margin-bottom: 16px; }
.price-card ul { list-style: none; margin-bottom: 20px; flex: 1; }
.price-card li { font-size: 13.5px; color: var(--ink-soft); padding: 5px 0 5px 24px; position: relative; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--emerald); font-weight: 800; }
.price-note { text-align: center; margin-top: 26px; font-size: 13px; color: var(--ink-soft); }

/* faq */
.faq details {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
  padding: 16px 20px; margin-bottom: 12px;
}
.faq summary { font-weight: 700; font-size: 15px; cursor: pointer; list-style: none; }
.faq summary::after { content: "+"; float: right; color: var(--indigo); font-weight: 800; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 10px; font-size: 14px; color: var(--ink-soft); }

/* cta band */
.cta-band {
  background: linear-gradient(135deg, var(--indigo), var(--violet) 60%, var(--sky));
  color: #fff; text-align: center; border-radius: 24px;
  padding: 56px 32px; margin-bottom: 76px;
}
.cta-band h2 { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.cta-band p { margin: 12px 0 24px; color: #e0e7ff; }
.cta-band .btn { background: #fff; color: var(--indigo); }

/* ---------- footer ---------- */
.site-footer { background: var(--night); color: #94a3b8; padding: 48px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.site-footer h4 { color: #fff; font-size: 13px; font-weight: 700; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.08em; }
.site-footer a { color: #94a3b8; font-size: 14px; display: block; padding: 3px 0; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.footer-bottom { border-top: 1px solid #1e293b; padding-top: 20px; font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---------- legal / login pages ---------- */
.prose { max-width: 720px; margin: 0 auto; padding: 64px 24px; }
.prose h1 { font-size: 30px; font-weight: 800; margin-bottom: 8px; letter-spacing: -0.02em; }
.prose .updated { color: var(--ink-soft); font-size: 13px; margin-bottom: 32px; }
.prose h2 { font-size: 19px; font-weight: 700; margin: 28px 0 8px; }
.prose p, .prose li { font-size: 15px; color: var(--ink-soft); margin-bottom: 10px; }
.prose ul { padding-left: 22px; }

.auth-card {
  max-width: 400px; margin: 72px auto; background: #fff;
  border: 1px solid #e2e8f0; border-radius: 20px; padding: 36px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}
.auth-card h1 { font-size: 22px; font-weight: 800; margin-bottom: 6px; text-align: center; }
.auth-card .sub { text-align: center; color: var(--ink-soft); font-size: 14px; margin-bottom: 24px; }
.auth-card label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.auth-card input[type="email"], .auth-card input[type="password"], .auth-card input[type="text"] {
  width: 100%; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 10px;
  font-size: 14px; margin-bottom: 16px; font-family: inherit;
}
.auth-card input:focus { outline: 2px solid var(--indigo); border-color: transparent; }
.auth-card .btn { width: 100%; justify-content: center; }
.auth-card .alt { text-align: center; font-size: 13px; color: var(--ink-soft); margin-top: 18px; }
.auth-msg { text-align: center; font-size: 14px; margin-top: 14px; min-height: 20px; }
.auth-msg.ok { color: var(--emerald); }
.auth-msg.err { color: var(--rose); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .grid-3, .price-grid, .view-cards { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav .hide-m { display: none; }
}
@media (max-width: 560px) {
  .grid-3, .price-grid, .view-cards { grid-template-columns: 1fr; }
}
