/* NClip site shared styles */
:root {
  --bg:#0f172a;
  --bg-elev:#111c33;
  --panel:#1e293b;
  --line:rgba(148,163,184,.22);
  --line-strong:rgba(148,163,184,.4);
  --text:#e2e8f0;
  --muted:#94a3b8;
  --accent:#38bdf8;
  --accent-strong:#7dd3fc;
  --ok:#34d399;
  --warn:#fbbf24;
  --danger:#f87171;
  --container: 1040px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: ui-sans-serif, system-ui, "Hiragino Sans", "Yu Gothic UI", "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #1e293b 0%, var(--bg) 55%);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); text-decoration: underline; }

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

/* Top navigation */
.site-nav {
  border-bottom: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 50;
}
.site-nav .nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.site-nav .brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; color: var(--text); }
.site-nav .brand svg { width: 28px; height: 28px; }
.site-nav .links { display: flex; gap: 4px; align-items: center; }
.site-nav .links a { color: var(--muted); padding: 8px 12px; border-radius: 8px; }
.site-nav .links a:hover { color: var(--text); background: rgba(148,163,184,.08); text-decoration: none; }
.site-nav .links a.active { color: var(--text); }

/* Buttons */
.btn {
  display: inline-block; padding: 10px 18px;
  border-radius: 10px; background: var(--accent); color: #0f172a !important;
  font-weight: 600; text-decoration: none !important; border: none; cursor: pointer;
  font-family: inherit; font-size: .95rem; transition: background .15s;
}
.btn:hover { background: var(--accent-strong); }
.btn.large { padding: 14px 24px; font-size: 1.05rem; }
.btn.ghost { background: transparent; color: var(--text) !important; border: 1px solid var(--line-strong); }
.btn.ghost:hover { background: rgba(148,163,184,.08); }

/* Sections */
section { padding: 64px 0; }
section.tight { padding: 40px 0; }
h1 { font-size: 2.4rem; line-height: 1.2; margin: 0 0 16px; }
h2 { font-size: 1.7rem; line-height: 1.3; margin: 0 0 12px; }
h3 { font-size: 1.2rem; margin: 0 0 8px; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 640px; }

/* Hero */
.hero { padding: 96px 0 64px; }
.hero h1 { font-size: 2.8rem; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* Grid of feature/plan cards */
.cards {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin: 24px 0;
}
.card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  background: var(--panel);
}
.card h3 { color: var(--text); }
.card .price { font-size: 1.8rem; font-weight: 700; margin: 6px 0 12px; }
.card .price small { color: var(--muted); font-weight: 400; font-size: .85rem; }
.card.highlight { border-color: var(--accent); position: relative; }
.card .badge {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  background: var(--accent); color: #0f172a; font-size: .72rem; font-weight: 700;
  margin-bottom: 10px;
}
.card ul { margin: 12px 0; padding-left: 18px; color: var(--muted); }
.card ul li { margin-bottom: 6px; }
.card .actions { margin-top: 16px; }

/* How it works */
.steps {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.step {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  background: var(--panel);
}
.step .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); color: #0f172a; font-weight: 700;
  margin-bottom: 12px;
}

/* FAQ accordion */
details.faq {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  padding: 16px 20px;
  margin-bottom: 12px;
}
details.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+"; float: right; color: var(--muted); font-weight: 400;
}
details.faq[open] summary::after { content: "−"; }
details.faq[open] summary { margin-bottom: 12px; color: var(--accent); }
details.faq p { color: var(--muted); }

/* Forms */
.form { max-width: 580px; }
.form label { display: block; margin-bottom: 6px; color: var(--muted); font-size: .9rem; }
.form input, .form textarea, .form select {
  width: 100%; padding: 10px 12px; margin-bottom: 16px;
  background: var(--panel); color: var(--text);
  border: 1px solid var(--line); border-radius: 8px;
  font-family: inherit; font-size: 1rem;
}
.form input:focus, .form textarea:focus {
  outline: none; border-color: var(--accent);
}
.form textarea { min-height: 140px; resize: vertical; }
.form .honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.notice { padding: 12px 16px; border-radius: 10px; margin: 12px 0; }
.notice.ok { background: rgba(52,211,153,.12); border: 1px solid var(--ok); }
.notice.warn { background: rgba(251,191,36,.12); border: 1px solid var(--warn); }
.notice.err { background: rgba(248,113,113,.12); border: 1px solid var(--danger); }

/* Mock UI illustration */
.app-mock {
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  background: linear-gradient(180deg, #1a2440 0%, #0f172a 100%);
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
}
.app-mock .titlebar {
  display: flex; align-items: center; gap: 6px; padding: 10px 14px;
  background: rgba(15,23,42,.6); border-bottom: 1px solid var(--line);
}
.app-mock .titlebar .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); opacity: .5; }
.app-mock .titlebar .title { margin-left: 8px; color: var(--muted); font-size: .9rem; }

/* User block */
.user-row { display: flex; align-items: center; gap: 12px; }
.user-row .avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #38bdf8, #818cf8); }
.user-row .name { font-weight: 600; }
.user-row .plan-tag { color: var(--muted); font-size: .85rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 80px;
  padding: 40px 0;
  color: var(--muted);
  font-size: .9rem;
}
.site-footer .row { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 6px; }
.site-footer .col h4 { color: var(--text); font-size: .9rem; margin-bottom: 12px; }
.site-footer .copyright { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .8rem; }

[hidden] { display: none !important; }

/* Small screens */
@media (max-width: 720px) {
  .hero { padding: 56px 0 32px; }
  .hero h1 { font-size: 2rem; }
  .site-nav .links a { padding: 8px 8px; font-size: .9rem; }
  section { padding: 40px 0; }
}
