/* ============================================================
   newbusinesswebsite.ai — Shared Stylesheet
   Used by: all industry pages, tools pages, blog pages
   index.html has its own extended stylesheet (SPA-style logic)
   ============================================================ */

/* Self-hosted fonts — latin subset */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/fonts/jetbrains-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, -apple-system, sans-serif; color: #0f172a; background: #ffffff; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }

:root {
  --blue: #2563eb; --blue-dark: #1d4ed8; --blue-light: #eff6ff; --blue-subtle: #eff6ff;
  --black: #0f172a; --grey-800: #1e293b; --grey-600: #475569; --grey-500: #64748b;
  --grey-400: #94a3b8; --grey-300: #cbd5e1; --grey-100: #f1f5f9; --grey-50: #f8fafc;
  --white: #ffffff; --green: #10b981; --red: #ef4444;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius: 10px; --radius-lg: 16px; --radius-xl: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --max-width: 1120px; --nav-height: 68px;
}

/* ===================== NAV ===================== */
#site-nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100; height: var(--nav-height);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
#site-nav.scrolled {
  border-bottom-color: var(--grey-300);
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 32px;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.nav-brand { font-size: 1rem; font-weight: 700; letter-spacing: -0.02em; flex-shrink: 0; }
.brand-w { color: var(--blue); }
.brand-ai { color: var(--grey-400); font-family: var(--font-mono); font-size: 0.85em; }
.nav-links { display: flex; gap: 2px; list-style: none; }
.nav-links a {
  padding: 6px 10px; border-radius: var(--radius);
  font-size: 0.875rem; font-weight: 500; color: var(--grey-600);
  white-space: nowrap; transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--black); background: var(--grey-100); }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius);
  background: none;
  border: none;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--black); border-radius: 2px;
  transition: all 0.2s ease;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav overlay */
#mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-height); left: 0; right: 0; bottom: 0;
  background: var(--white);
  z-index: 99;
  padding: 24px;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}
#mobile-nav.open { display: flex; }
.mobile-nav-link {
  padding: 14px 16px; border-radius: var(--radius);
  font-size: 1.05rem; font-weight: 500; color: var(--grey-800);
  cursor: pointer; border: none; background: none;
  text-align: left; display: block; width: 100%;
  text-decoration: none;
}
.mobile-nav-link:hover { background: var(--grey-100); }
.mobile-nav-cta { margin-top: 16px; }

/* ===================== BUTTONS ===================== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; border-radius: var(--radius); cursor: pointer; border: none; transition: all 0.18s; text-decoration: none; white-space: nowrap; }
.btn-primary { background: var(--blue); color: white; padding: 12px 24px; font-size: 0.95rem; }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn-outline { background: white; color: var(--black); border: 1.5px solid var(--grey-300); padding: 11px 22px; font-size: 0.9rem; }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-full { width: 100%; }
.btn-lg { padding: 15px 28px; font-size: 1rem; }
.btn-ghost { background: none; border: 1.5px solid var(--grey-300); color: var(--grey-600); padding: 10px 20px; font-size: 0.9rem; }
.btn-ghost:hover { border-color: var(--grey-400); color: var(--black); }

/* ===================== LAYOUT ===================== */
.section { padding: 80px 0; }
.section-alt { background: var(--grey-100); }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 32px; }
.section-label { display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); margin-bottom: 12px; }

/* ===================== HERO ===================== */
.hero { padding-top: calc(var(--nav-height) + 72px); padding-bottom: 72px; }
.hero-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 32px; }

/* ===================== TYPOGRAPHY ===================== */
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 20px; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 16px; }
h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
p { color: var(--grey-600); line-height: 1.7; }
.hero-sub { font-size: 1.15rem; color: var(--grey-600); max-width: 600px; margin-bottom: 32px; line-height: 1.6; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* ===================== CONTENT COMPONENTS ===================== */
.why-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 48px; }
.why-card { background: var(--grey-100); border-radius: var(--radius-lg); padding: 32px 28px; }
.why-card h3 { color: var(--black); margin-bottom: 10px; }
.why-card p { font-size: 0.95rem; }
.check-list { list-style: none; display: grid; grid-template-columns: repeat(2,1fr); gap: 12px 24px; margin-top: 32px; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.95rem; color: var(--grey-800); }
.check-icon { width: 20px; height: 20px; background: var(--blue-light,#eff6ff); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
.steps-list { list-style: none; display: flex; flex-direction: column; gap: 24px; margin-top: 36px; }
.step-item { display: flex; gap: 20px; align-items: flex-start; }
.step-num { width: 36px; height: 36px; background: var(--blue); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.9rem; flex-shrink: 0; }
.faq-list { list-style: none; display: flex; flex-direction: column; gap: 0; margin-top: 36px; border-top: 1px solid var(--grey-300); }
.faq-item { border-bottom: 1px solid var(--grey-300); padding: 24px 0; }
.faq-item h3 { font-size: 1rem; font-weight: 600; color: var(--black); margin-bottom: 10px; }
.faq-item p { font-size: 0.95rem; }
.related-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.related-links a { background: white; border: 1px solid var(--grey-300); padding: 7px 16px; border-radius: 999px; font-size: 0.88rem; font-weight: 500; color: var(--grey-800); }
.related-links a:hover { border-color: var(--blue); color: var(--blue); }

/* ===================== CTA + FOOTER ===================== */
.cta-section { background: var(--black); color: white; padding: 72px 0; text-align: center; }
.cta-section h2 { color: white; margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,0.6); margin-bottom: 32px; font-size: 1.05rem; }
#site-footer { background: var(--black); color: rgba(255,255,255,0.7); padding: 48px 0 32px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 40px; }
.footer-brand-name { font-size: 1.1rem; font-weight: 700; color: white; margin-bottom: 10px; }
.footer-tagline { font-size: 0.85rem; line-height: 1.6; }
.footer-col-title { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 14px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.88rem; color: rgba(255,255,255,0.6); transition: color 0.15s; }
.footer-links a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-bottom-text { font-size: 0.8rem; color: rgba(255,255,255,0.35); }

/* ===================== MODAL ===================== */
#modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(15,23,42,0.72);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px; opacity: 0; pointer-events: none; transition: opacity 0.25s ease;
}
#modal-overlay.open { opacity: 1; pointer-events: all; }
#modal-panel {
  background: var(--white); border-radius: var(--radius-xl); padding: 40px;
  max-width: 620px; width: 100%; max-height: 90vh; overflow-y: auto;
  position: relative; transform: translateY(20px); transition: transform 0.25s ease;
}
#modal-overlay.open #modal-panel { transform: translateY(0); }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px; border-radius: 50%; border: none;
  background: var(--grey-100); color: var(--grey-600); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; line-height: 1; transition: background 0.15s ease;
}
.modal-close:hover { background: var(--grey-300); }
.modal-steps-indicator { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 32px; }
.modal-step-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grey-300); transition: all 0.2s ease; }
.modal-step-dot.active { background: var(--blue); width: 24px; border-radius: 99px; }
.modal-step-dot.done { background: var(--blue); opacity: 0.4; }
.modal-step { display: none; }
.modal-step.active { display: block; }
.modal-step-title { font-size: 1.4rem; font-weight: 700; color: var(--black); margin-bottom: 6px; }
.modal-step-sub { font-size: 0.9rem; color: var(--grey-600); margin-bottom: 28px; }
.modal-actions {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--grey-100);
}
.review-block { background: var(--grey-100); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }
.review-row { display: flex; flex-direction: column; gap: 2px; margin-bottom: 14px; }
.review-row:last-child { margin-bottom: 0; }
.review-label { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--grey-400); }
.review-value { font-size: 0.95rem; font-weight: 500; color: var(--grey-800); }
.review-pricing-box { background: var(--blue-subtle); border: 2px solid var(--blue); border-radius: var(--radius); padding: 20px; text-align: center; margin-bottom: 24px; }
.review-pricing-box .price { font-size: 2rem; font-weight: 800; color: var(--blue); letter-spacing: -0.03em; }
.review-pricing-box .price-desc { font-size: 0.875rem; color: var(--blue-dark); margin-top: 2px; }
.modal-fine { font-size: 0.78rem; color: var(--grey-400); text-align: center; margin-top: 12px; line-height: 1.5; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-5px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(5px); } }
.shake { animation: shake 0.35s ease; }
.modal-step.slide-out-left { animation: slideOutLeft 0.18s ease forwards; }
.modal-step.slide-in-right { animation: slideInRight 0.18s ease forwards; }
.modal-step.slide-out-right { animation: slideOutRight 0.18s ease forwards; }
.modal-step.slide-in-left { animation: slideInLeft 0.18s ease forwards; }
@keyframes slideOutLeft  { to { opacity: 0; transform: translateX(-20px); } }
@keyframes slideInRight  { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideOutRight { to { opacity: 0; transform: translateX(20px); } }
@keyframes slideInLeft   { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: translateX(0); } }
.radio-group { display: flex; gap: 12px; flex-wrap: wrap; }
.radio-option {
  flex: 1; min-width: 140px; display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border: 1.5px solid var(--grey-300); border-radius: var(--radius);
  cursor: pointer; transition: all 0.15s ease; font-size: 0.9rem; font-weight: 500; color: var(--grey-800);
}
.radio-option:hover { border-color: var(--blue); background: var(--blue-light); }
.radio-option input { accent-color: var(--blue); }

/* ===================== FORMS ===================== */
.form-row { margin-bottom: 16px; }
.form-label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--black); margin-bottom: 6px; }
.form-input { width: 100%; padding: 10px 14px; border: 1.5px solid var(--grey-300); border-radius: var(--radius); font-size: 0.95rem; font-family: inherit; outline: none; transition: border-color 0.15s ease; background: white; color: var(--black); }
.form-input:focus { border-color: var(--blue); }
.form-input.error { border-color: var(--red); }
.form-error { font-size: 0.78rem; color: var(--red); margin-top: 4px; display: none; }
.form-error.show { display: block; }

/* ===================== TOOL PAGES ===================== */
.tool-ui { background: var(--white); border: 1.5px solid var(--grey-300); border-radius: var(--radius-xl); padding: 40px; max-width: 800px; margin: 0 auto; }
.tool-ui .form-group { margin-bottom: 20px; }
.tool-ui label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--black); margin-bottom: 6px; }
.tool-ui input[type="text"], .tool-ui input[type="url"], .tool-ui input[type="email"], .tool-ui select, .tool-ui textarea {
  width: 100%; padding: 10px 14px; border: 1.5px solid var(--grey-300); border-radius: var(--radius); font-size: 0.95rem; font-family: inherit; outline: none; transition: border-color 0.15s; background: white; color: var(--black);
}
.tool-ui input:focus, .tool-ui select:focus, .tool-ui textarea:focus { border-color: var(--blue); }
.tool-result { background: var(--grey-100); border-radius: var(--radius-lg); padding: 32px; margin-top: 32px; text-align: center; }
.tool-disclaimer { font-size: 0.8rem; color: var(--grey-400); margin-top: 16px; line-height: 1.5; }

/* ===================== BLOG / ARTICLE PAGES ===================== */
.article-container { max-width: 760px; margin: 0 auto; padding: 0 32px; }
.article-meta { font-size: 0.85rem; color: var(--grey-400); margin-bottom: 32px; }
.article-body h2 { font-size: 1.6rem; margin-top: 48px; margin-bottom: 16px; }
.article-body h3 { font-size: 1.15rem; margin-top: 32px; margin-bottom: 10px; }
.article-body p { margin-bottom: 20px; }
.article-body ul, .article-body ol { padding-left: 24px; margin-bottom: 20px; color: var(--grey-600); line-height: 1.7; }
.article-body li { margin-bottom: 8px; }
.article-body a { color: var(--blue); text-decoration: underline; }
.article-body strong { color: var(--black); font-weight: 600; }
.article-body table { width: 100%; border-collapse: collapse; margin-bottom: 24px; font-size: 0.9rem; }
.article-body th { background: var(--grey-100); padding: 10px 14px; text-align: left; font-weight: 600; border-bottom: 2px solid var(--grey-300); }
.article-body td { padding: 10px 14px; border-bottom: 1px solid var(--grey-300); color: var(--grey-600); }
.article-cta { background: var(--blue-light); border: 1.5px solid var(--blue); border-radius: var(--radius-lg); padding: 32px; margin-top: 48px; text-align: center; }
.article-cta h3 { color: var(--black); margin-bottom: 10px; }
.article-cta p { margin-bottom: 20px; font-size: 0.95rem; }

/* ===================== CARD GRID (blog + tools indexes) ===================== */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.card { background: var(--white); border: 1.5px solid var(--grey-300); border-radius: var(--radius-lg); padding: 28px 24px; transition: border-color 0.18s, box-shadow 0.18s; }
.card:hover { border-color: var(--blue); box-shadow: var(--shadow-md); }
.card-badge { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; margin-bottom: 12px; }
.card-badge-free { background: #d1fae5; color: #065f46; }
.card-badge-popular { background: var(--blue-light); color: var(--blue-dark); }
.card-badge-coming { background: var(--grey-100); color: var(--grey-500); }
.card-badge-new { background: #fef3c7; color: #92400e; }
.card-link-wrap { display: block; text-decoration: none; color: inherit; }
.card h3 { font-size: 1rem; margin-bottom: 8px; }
.card p { font-size: 0.88rem; margin-bottom: 16px; }
.card-link { font-size: 0.88rem; font-weight: 600; color: var(--blue); }
.card-link:hover { text-decoration: underline; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1023px) {
  .nav-links, .nav-inner .btn-primary { display: none !important; }
  .nav-hamburger { display: flex; }
}

@media (max-width: 767px) {
  .container { padding: 0 20px; }
  .nav-inner { padding: 0 20px; }
  .hero-inner { padding: 0 20px; }
  .hero { padding-top: calc(var(--nav-height) + 40px); padding-bottom: 48px; }
  .hero-sub { font-size: 1rem; }
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { width: 100%; justify-content: center; }
  .why-grid { grid-template-columns: 1fr; }
  .check-list { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .section { padding: 56px 0; }
  .cta-section { padding: 56px 0; }
  .tool-ui { padding: 24px 20px; }
  .article-container { padding: 0 20px; }
  .article-body h2 { font-size: 1.35rem; }
  #modal-panel { padding: 28px 20px; }
  .modal-actions { flex-direction: column-reverse; }
  .modal-actions .btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .nav-inner { padding: 0 16px; }
  .hero-inner { padding: 0 16px; }
  .card-grid { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .article-cta { padding: 24px 20px; }
  h1 { font-size: 1.85rem; }
  h2 { font-size: 1.4rem; }
}
