/* Nexus Receptionist — shared design system */

:root {
  --bg: #faf9f7;
  --surface: #ffffff;
  --surface-2: #f5f4f1;
  --text: #201d1a;
  --muted: #6b6660;
  --muted-2: #948e86;
  --border: #e8e4de;
  --accent: #0d9488;
  --accent-dark: #0b7c72;
  --accent-soft: #e3f6f3;
  --amber: #f59e0b;
  --amber-soft: #fef3e2;
  --danger: #dc4c3f;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 26px;
  --shadow-sm: 0 1px 2px rgba(32,29,26,0.05);
  --shadow: 0 1px 3px rgba(32,29,26,0.06), 0 10px 30px rgba(32,29,26,0.07);
  --shadow-lg: 0 20px 60px rgba(32,29,26,0.14);
  --font-sans: 'Inter', -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-display: 'Sora', var(--font-sans);
  --maxw: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; margin: 0; }
p { line-height: 1.6; }

/* ---------- layout shells ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 6vw; }
.page-narrow { max-width: 560px; margin: 0 auto; padding: 56px 20px 90px; }

/* ---------- nav ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(250,249,247,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-nav .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 18px; padding-bottom: 18px;
}
.logo {
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  color: var(--text); display: flex; align-items: center; gap: 9px; letter-spacing: -0.01em;
}
.logo .mark {
  width: 28px; height: 28px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), #14b8a6);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 0.85rem; font-weight: 800; font-family: var(--font-display);
  box-shadow: 0 4px 14px rgba(13,148,136,0.35);
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a.plain { color: var(--muted); font-weight: 500; font-size: 0.95rem; }
.nav-links a.plain:hover { color: var(--text); text-decoration: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 12px; font-size: 0.98rem; font-weight: 600;
  cursor: pointer; border: 1px solid transparent; font-family: inherit;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease, background 0.12s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(13,148,136,0.28); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 10px 26px rgba(13,148,136,0.34); }
.btn-secondary { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent-dark); transform: translateY(-1px); }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: default; transform: none; }
.btn-pill { border-radius: 999px; padding: 9px 18px; font-size: 0.9rem; }

/* ---------- hero ---------- */
.hero { max-width: 760px; margin: 9vh auto 0; padding: 0 6vw; text-align: center; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.02em; text-transform: uppercase; color: var(--accent-dark);
  border: 1px solid var(--accent-soft); background: var(--accent-soft);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 26px;
}
h1.display {
  font-size: clamp(2.2rem, 5.2vw, 3.6rem); line-height: 1.08; margin: 0 0 20px; color: var(--text);
}
h1.display em { color: var(--accent-dark); font-style: normal; }
.hero p.lead { color: var(--muted); font-size: 1.15rem; line-height: 1.6; max-width: 600px; margin: 0 auto 34px; }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 18px; }
.hero-note { text-align: center; color: var(--muted-2); font-size: 0.9rem; margin-bottom: 10px; }

/* ---------- hero illustration frame ---------- */
.illo-wrap { max-width: 1020px; margin: 48px auto 12px; padding: 0 6vw; }
.illo-frame {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #0b0f16;
}
.illo-frame::before {
  content: ""; position: absolute; inset: -2px; z-index: -1; border-radius: inherit;
  background: linear-gradient(135deg, var(--accent), var(--amber));
  opacity: 0.5; filter: blur(18px);
}
.illo-frame img { width: 100%; height: auto; display: block; }
.illo-caption { text-align: center; color: var(--muted); font-size: 0.95rem; margin-top: 18px; font-style: italic; }

.illo-inner { position: relative; }
.illo-ad {
  position: absolute; left: 58%; right: 6%; top: 21%; bottom: 21%;
  border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 12px 40px rgba(0,0,0,0.45);
  background: #05070a;
}
.illo-ad video { width: 100%; height: 100%; object-fit: cover; display: block; }
.illo-ad-tag {
  position: absolute; top: 10px; left: 10px;
  background: rgba(5,7,10,0.75); border: 1px solid rgba(255,255,255,0.15);
  color: #cbd5d6; font-size: 0.68rem; letter-spacing: 0.5px;
  padding: 3px 9px; border-radius: 999px; text-transform: uppercase;
}
@media (max-width: 720px) {
  .illo-ad { position: static; left: auto; right: auto; top: auto; bottom: auto; width: 100%; aspect-ratio: 16/9; margin-top: 14px; }
}

/* ---------- sections ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 76px 6vw; }
.section h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); text-align: center; margin-bottom: 12px; }
.section .sub { text-align: center; color: var(--muted); margin-bottom: 48px; font-size: 1.05rem; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: #d8d3cb; }
.card .icon {
  width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); font-size: 1.3rem; margin-bottom: 16px;
}
.card .icon svg { width: 22px; height: 22px; color: var(--accent-dark); }
.card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.94rem; line-height: 1.55; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; }
.step { text-align: center; padding: 10px; }
.step .num {
  width: 40px; height: 40px; border-radius: 50%; margin: 0 auto 16px;
  background: var(--surface); border: 1px solid var(--border); color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-family: var(--font-display);
  box-shadow: var(--shadow-sm);
}
.step h4 { margin: 0 0 8px; font-size: 1rem; }
.step p { color: var(--muted); font-size: 0.9rem; margin: 0; }

.cta-band {
  text-align: center; padding: 90px 6vw; margin-top: 20px;
  background: linear-gradient(180deg, var(--surface-2), var(--bg));
  border-top: 1px solid var(--border);
}
.cta-band h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); margin-bottom: 16px; }
.cta-band p { color: var(--muted); margin-bottom: 32px; font-size: 1.05rem; }

footer.site-footer {
  text-align: center; padding: 34px 20px; color: var(--muted-2); font-size: 0.85rem;
  border-top: 1px solid var(--border); background: var(--surface-2);
}
footer.site-footer a { color: var(--muted-2); text-decoration: underline; }

/* ---------- simple auth / form pages (login, reset, contact, onboard) ---------- */
.back-link { display: inline-block; color: var(--muted); font-size: 0.9rem; margin-bottom: 22px; }
.back-link:hover { color: var(--text); }
.page-title { font-size: 1.5rem; margin-bottom: 6px; }
.page-sub { color: var(--muted); margin-bottom: 30px; font-size: 0.95rem; line-height: 1.5; }

.auth-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 34px; box-shadow: var(--shadow);
}

label.field-label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text); margin: 18px 0 6px; }
label.field-label:first-child { margin-top: 0; }
input[type=text], input[type=email], input[type=password], textarea, select {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font-size: 0.96rem; font-family: inherit; box-sizing: border-box;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
textarea { resize: vertical; min-height: 90px; }
.hint { color: var(--muted-2); font-size: 0.8rem; margin-top: 6px; line-height: 1.5; }
.error-msg { color: var(--danger); font-size: 0.88rem; margin-top: 14px; display: none; }
.success-msg { color: var(--accent-dark); font-size: 0.9rem; margin-top: 14px; display: none; line-height: 1.55; }
.result-box { margin-top: 22px; padding: 18px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border); display: none; line-height: 1.6; }
.toggle-line { text-align: center; margin-top: 22px; font-size: 0.88rem; color: var(--muted); }

.faq-row { display: flex; gap: 8px; margin-bottom: 8px; }
.faq-row input { flex: 1; }
#addFaq { background: var(--surface); border: 1px solid var(--border); color: var(--text);
  padding: 9px 14px; font-size: 0.85rem; margin-top: 4px; border-radius: var(--radius-sm); cursor: pointer; }
#addFaq:hover { border-color: var(--accent); }

.plan-grid-inline { display: flex; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.plan-card-inline {
  flex: 1; min-width: 180px; border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 16px; cursor: pointer; background: var(--surface); transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.plan-card-inline.selected { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.plan-card-inline .plan-name { font-weight: 700; font-family: var(--font-display); }
.plan-card-inline .plan-price { font-size: 1.3rem; font-weight: 800; margin: 4px 0; font-family: var(--font-display); }
.plan-card-inline .plan-price span { font-size: 0.8rem; color: var(--muted); font-weight: 500; }
.plan-card-inline .plan-desc { color: var(--muted); font-size: 0.82rem; }

/* ---------- pricing plans ---------- */
.plans {
  max-width: 900px; margin: 40px auto 20px; padding: 0 6vw;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px;
}
.plan {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 36px 32px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
}
.plan.featured { border-color: var(--accent); box-shadow: var(--shadow-lg); position: relative; }
.plan.featured::before {
  content: "MOST POPULAR"; position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: 0.7rem; font-weight: 700; letter-spacing: 1px;
  padding: 6px 14px; border-radius: 999px;
}
.plan h3 { margin: 0 0 4px; font-size: 1.3rem; }
.plan .price { font-size: 2.3rem; font-weight: 800; margin: 12px 0 4px; font-family: var(--font-display); }
.plan .price span { font-size: 1rem; font-weight: 500; color: var(--muted); }
.plan .tagline { color: var(--muted); font-size: 0.9rem; margin-bottom: 24px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 28px; flex: 1; }
.plan li { padding: 9px 0; color: var(--text); font-size: 0.94rem; border-bottom: 1px solid var(--border); }
.plan li:last-child { border-bottom: none; }
.plan li::before { content: "✓ "; color: var(--accent); font-weight: 700; }
.custom-note { max-width: 700px; margin: 20px auto 80px; padding: 0 6vw; text-align: center; color: var(--muted); font-size: 0.95rem; }

/* ---------- legal pages ---------- */
.legal-wrap { max-width: 760px; margin: 0 auto; padding: 40px 6vw 90px; }
.legal-wrap h1 { font-size: 1.8rem; margin-bottom: 4px; }
.legal-wrap .updated { color: var(--muted-2); font-size: 0.85rem; margin-bottom: 12px; }
.legal-wrap h2 { font-size: 1.1rem; margin-top: 34px; color: var(--accent-dark); }
.legal-wrap h3 { font-size: 0.95rem; margin-top: 18px; }
.legal-wrap p, .legal-wrap li { color: #3a3630; line-height: 1.65; }
.legal-wrap ul, .legal-wrap ol.body-list { padding-left: 20px; }
.toc { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; margin: 24px 0 32px; font-size: 0.88rem; }
.toc ol { margin: 8px 0 0; padding-left: 20px; columns: 2; column-gap: 24px; }
.toc li { margin-bottom: 4px; }
.callout { background: var(--accent-soft); border: 1px solid #bfe9e3; border-radius: 12px; padding: 16px 18px; margin: 16px 0; font-size: 0.92rem; }

/* ---------- responsive ---------- */
@media (max-width: 640px) {
  .plan-grid-inline { flex-direction: column; }
  .hero { margin-top: 6vh; }
}

/* ---------- proof strip (landing page trust signals) ---------- */
.proof-strip {
  display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: flex-start;
  margin: 22px 0 8px;
}
.proof-item {
  display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.9rem; font-weight: 500;
}
.proof-item svg { width: 17px; height: 17px; color: var(--accent); flex-shrink: 0; }

/* ---------- FAQ accordion ---------- */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); padding: 4px 0; }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 18px 4px; font-weight: 600; font-size: 1rem;
  color: var(--text); display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 1.4rem; font-weight: 400; color: var(--accent); flex-shrink: 0; transition: transform 0.15s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0 4px 20px; color: var(--muted); font-size: 0.94rem; line-height: 1.6; }
