/* ══════════════════════════════════════════════════════════════════
   v2-components.css — Unified components
   MVP banner · Nav · Mobile menu · Buttons · Icon · Chip · Footer · CTA shell
   ══════════════════════════════════════════════════════════════════ */

/* ════════════════════════════════════
   MVP BANNER  [.mvp-banner]
   ════════════════════════════════════ */
.mvp-banner {
  background: #0b0b0d;
  color: var(--muted);
  text-align: center;
  padding: 9px 5%;
  font-size: 12.5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  position: relative;
  z-index: 200;
  border-bottom: 1px solid var(--line);
}
.mvp-banner::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}
.mvp-banner-text { min-width: 0; }
.mvp-banner-link {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(245,158,11,0.45);
  padding-bottom: 1px;
  white-space: nowrap;
  transition: color var(--dur);
}
.mvp-banner-link:hover { color: var(--accent2); }

/* ════════════════════════════════════
   NAVIGATION  [nav]
   ════════════════════════════════════ */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 5%;
  height: var(--v2-nav-height);
  background: rgba(9,9,11,0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.nav-logo img {
  height: 64px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(245,158,11,0.3));
}
.nav-logo-text { font-size: 17px; font-weight: 700; }

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  list-style: none;
}
.nav-links a {
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: color var(--dur);
  position: relative;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }

.nav-cta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}
.nav-signin {
  font-size: 13.5px; font-weight: 500; color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: color var(--dur);
}
.nav-signin:hover { color: var(--text); }

.nav-signin.btn-hero,
.nav-signin.btn-hero:hover {
  color: #111;
}

/* ── Language Switcher ── */
.lang-switcher { position: relative; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: color var(--dur), border-color var(--dur), background var(--dur);
}
.lang-btn:hover { color: var(--text); border-color: var(--line-2); background: rgba(255,255,255,0.03); }

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px); right: 0;
  min-width: 150px;
  background: var(--bg-raised);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  padding: 6px;
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 200;
}
.lang-switcher.open .lang-dropdown { display: flex; }

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: background var(--dur-fast), color var(--dur-fast);
  border: none;
  background: transparent;
  text-align: left;
}
.lang-option:hover  { background: rgba(255,255,255,0.05); color: var(--text); }
.lang-option.active { color: var(--text); background: var(--accent-tint); }
.lang-option .flag  { font-size: 16px; line-height: 1; }

/* ── Hamburger ── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px; height: 38px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0;
}
.hamburger span {
  display: block;
  width: 16px; height: 1.5px;
  background: var(--muted);
  transition: transform var(--dur-slow), opacity var(--dur-slow);
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ════════════════════════════════════
   MOBILE MENU  [.mobile-menu]
   ════════════════════════════════════ */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 99;
  background: rgba(9,9,11,0.97);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 5%;
  transform: translateY(-100%);
  transition: transform .35s var(--ease);
  pointer-events: none;
}
.mobile-menu[aria-hidden="false"] {
  transform: translateY(0);
  pointer-events: all;
}
.mobile-menu a {
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text);
  transition: color var(--dur);
}
.mobile-menu a:hover { color: var(--accent); }
.mobile-menu-cta {
  display: flex; flex-direction: column; gap: 12px;
  width: 100%; max-width: 280px; margin-top: 8px;
}

.mobile-menu .btn-outline,
.mobile-menu .btn-hero {
  height: 42px;
  font-size: 13.5px;
  letter-spacing: 0.02em;
}

/* ════════════════════════════════════
   BUTTONS  [.btn-*]
   One system. Same height, radius, padding across all pages.
   ════════════════════════════════════ */
.btn-hero, .btn-outline, .btn-primary, .btn-plan-primary, .btn-plan-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background var(--dur), color var(--dur), border-color var(--dur),
              transform var(--dur-fast), box-shadow var(--dur);
  white-space: nowrap;
}

.btn-hero {
  background: var(--accent);
  color: #111;
  box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset, 0 8px 28px rgba(245,158,11,0.28);
}
.btn-hero:hover {
  background: var(--accent2);
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.3) inset, 0 10px 36px rgba(245,158,11,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--line-2);
}
.btn-outline:hover {
  border-color: rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.04);
}

.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; padding: 0 14px; border-radius: var(--radius-sm);
  font-size: 13.5px; font-weight: 500; color: var(--muted);
  background: transparent; border: none; text-decoration: none;
  cursor: pointer; transition: color var(--dur);
}
.btn-ghost:hover { color: var(--text); }

.btn-primary {
  background: var(--accent); color: #111;
}
.btn-primary:hover { background: var(--accent2); transform: translateY(-1px); }

.btn-sm { height: 38px; padding: 0 14px; font-size: 13.5px; }

/* Pricing plan buttons (full-width variants) */
.btn-plan-primary { width: 100%; background: var(--accent); color: #111;
  box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset, 0 8px 28px rgba(245,158,11,0.28);
}
.btn-plan-primary:hover { background: var(--accent2); transform: translateY(-1px); }

.btn-plan-ghost { width: 100%; color: var(--text); border-color: var(--line-2); background: transparent; }
.btn-plan-ghost:hover { border-color: rgba(255,255,255,0.28); background: rgba(255,255,255,0.04); }

/* Light-section button adjustments */
.v2-bg-light .btn-outline,
.v2-bg-light .btn-plan-ghost,
.pricing-section .btn-outline,
.pricing-section .btn-plan-ghost {
  color: var(--text-light);
  border-color: var(--line-light);
}
.v2-bg-light .btn-outline:hover,
.v2-bg-light .btn-plan-ghost:hover,
.pricing-section .btn-outline:hover,
.pricing-section .btn-plan-ghost:hover {
  border-color: #b9bcc5;
  background: rgba(0,0,0,0.03);
}

/* ════════════════════════════════════
   CHIP  [.chip]  — small inline badge
   ════════════════════════════════════ */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.22);
  font-size: 12.5px; font-weight: 500;
  color: var(--accent);
  letter-spacing: 0;
}
.chip::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}
.chip.chip-neutral {
  background: rgba(255,255,255,0.05);
  border-color: var(--line-2);
  color: var(--muted);
}
.chip.chip-neutral::before { background: var(--muted); box-shadow: none; }

.v2-bg-light .chip {
  background: rgba(245,158,11,0.08);
  border-color: rgba(245,158,11,0.3);
  color: #b77900;
}

/* ════════════════════════════════════
   ICON primitive  [.ico]
   Controls stroke color via currentColor.
   ════════════════════════════════════ */
.ico { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.75; fill: none; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.ico-lg { width: 22px; height: 22px; }
.ico-xl { width: 28px; height: 28px; }

/* Round icon tile (used on features, workflow, before/after) */
.ico-tile {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--accent-tint);
  color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(245,158,11,0.2);
}
.ico-tile .ico { width: 20px; height: 20px; }
.v2-bg-light .ico-tile {
  background: rgba(245,158,11,0.1);
  border-color: rgba(245,158,11,0.25);
}

/* ════════════════════════════════════
   BROWSER MOCKUP CHROME  [.browser]
   Reusable for dashboard screenshots.
   ════════════════════════════════════ */
.browser {
  background: #0a0a0c;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.browser-bar {
  display: flex; align-items: center; gap: 14px;
  height: 40px; padding: 0 16px;
  background: linear-gradient(180deg, #141418 0%, #101013 100%);
  border-bottom: 1px solid var(--line);
}
.browser-dots { display: inline-flex; gap: 7px; }
.browser-dots span {
  width: 11px; height: 11px; border-radius: 50%;
  background: #2a2a30;
  display: inline-block;
}
.browser-dots span:nth-child(1) { background: rgba(239,68,68,0.55); }
.browser-dots span:nth-child(2) { background: rgba(245,158,11,0.55); }
.browser-dots span:nth-child(3) { background: rgba(34,197,94,0.55); }
.browser-url {
  flex: 1;
  font-size: 12px; color: var(--muted-2);
  font-family: 'Inter', system-ui, sans-serif;
  background: #0a0a0c;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  padding: 5px 12px;
  text-align: center;
  letter-spacing: 0;
  max-width: 420px; margin: 0 auto;
}
.browser-body {
  background: #0c0c10;
  position: relative;
  min-height: 320px;
  overflow: hidden;
}
.browser-body img { display: block; width: 100%; height: auto; }

/* Amber glow halo behind browser / card */
.halo { position: relative; isolation: isolate; }
.halo::before {
  content: '';
  position: absolute; inset: auto 8% -14%;
  height: 300px;
  background: radial-gradient(ellipse at center, rgba(245,158,11,0.28) 0%, transparent 65%);
  filter: blur(40px);
  z-index: -1;
  pointer-events: none;
}

/* ════════════════════════════════════
   CTA SHELL (generic)
   ════════════════════════════════════ */
.cta-section {
  background: var(--bg);
  padding: 80px 5% 96px;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; left: 50%; bottom: -140px; transform: translateX(-50%);
  width: 720px; height: 480px;
  background: radial-gradient(ellipse at center, rgba(245,158,11,0.2) 0%, transparent 65%);
  filter: blur(40px);
  pointer-events: none;
}
.cta-card {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
  padding: 0 16px;
}
.cta-card h2 {
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.08;
  max-width: 720px;
  margin: 0 auto 18px;
  text-wrap: balance;
}
.cta-card p {
  font-size: 17px;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 28px;
  line-height: 1.65;
}
.cta-actions {
  display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center;
}

.trust-points {
  display: flex; align-items: center; justify-content: center;
  gap: 22px; flex-wrap: wrap; margin-top: 24px;
}
.trust-point {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13.5px; color: var(--muted);
}
.trust-point .ico { width: 14px; height: 14px; color: var(--accent); }

/* ════════════════════════════════════
   Shared FAQ + Final CTA block
   Used by the homepage (FAQ + CTA) and by sub-pages that only need the
   CTA (demo, mobile-app, etc.). Dark section with amber glow, centered
   card with amber-tinted border and inner radial highlight.
   ════════════════════════════════════ */
.faq-cta-section {
  background: var(--bg);
  padding: var(--v2-section-py, 96px) 5% calc(var(--v2-section-py, 96px) - 24px);
  position: relative;
  overflow: hidden;
}
.faq-cta-section::before {
  content: '';
  position: absolute; left: 50%; bottom: -160px; transform: translateX(-50%);
  width: 760px; height: 360px;
  background: radial-gradient(ellipse at center, rgba(245,158,11,0.14) 0%, transparent 62%);
  filter: blur(28px);
  pointer-events: none;
}
.faq-cta-inner { max-width: 760px; margin: 0 auto; position: relative; }

.faq-cta-card {
  text-align: center;
  padding: 56px 32px 48px;
  background: linear-gradient(180deg, var(--bg-card) 0%, #0c0c10 100%);
  border: 1px solid rgba(245,158,11,0.28);
  border-radius: var(--radius-xl, 28px);
  position: relative;
  overflow: hidden;
}
.faq-cta-card::before {
  content: '';
  position: absolute; left: 50%; bottom: -60%; transform: translateX(-50%);
  width: 460px; height: 260px;
  background: radial-gradient(ellipse at center, rgba(245,158,11,0.20) 0%, transparent 60%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
}
.faq-cta-card > * { position: relative; z-index: 1; }
.faq-cta-card h2 {
  font-size: clamp(28px, 3.6vw, 44px); font-weight: 700;
  letter-spacing: -0.028em; color: var(--text);
  max-width: 560px; margin: 0 auto 14px;
  line-height: 1.08;
}
.faq-cta-card p {
  font-size: 16px; color: var(--muted);
  max-width: 500px; margin: 0 auto 26px; line-height: 1.6;
}
.faq-cta-card .cta-actions { justify-content: center; }
.faq-cta-card .trust-points { margin-top: 22px; }

@media (max-width: 640px) {
  .faq-cta-card { padding: 44px 22px 36px; }
  .faq-cta-card .cta-actions { display: flex; flex-direction: column; gap: 10px; width: 100%; }
  .faq-cta-card .cta-actions > * { width: 100%; }
}

/* Legacy plain CTA (used by calculator) now mirrors the shared shell */
.cta-section-plain {
  background: var(--bg);
  text-align: center;
  padding: 80px 5%;
  position: relative;
  overflow: hidden;
}
.cta-section-plain::before {
  content: '';
  position: absolute; left: 50%; bottom: -120px; transform: translateX(-50%);
  width: 640px; height: 420px;
  background: radial-gradient(ellipse at center, rgba(245,158,11,0.18) 0%, transparent 65%);
  filter: blur(40px);
  pointer-events: none;
}
.cta-section-plain h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
  max-width: 620px;
  margin: 14px auto 16px;
  text-wrap: balance;
}
.cta-section-plain p {
  font-size: 17px; color: var(--muted);
  max-width: 520px; margin: 0 auto 28px; line-height: 1.65;
}

/* ════════════════════════════════════
   FOOTER (dark)
   ════════════════════════════════════ */
footer {
  background: var(--bg);
  padding: 72px 5% 40px;
  border-top: 1px solid var(--line);
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  max-width: 1120px;
  margin: 0 auto 48px;
  align-items: start;
}
.footer-brand {
  display: flex; flex-direction: column; gap: 14px; align-items: flex-start;
}
.footer-brand img {
  height: 34px; width: auto; object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(245,158,11,0.3));
}
.footer-brand .footer-brand-text { font-size: 17px; font-weight: 700; color: var(--text); }
.footer-brand p {
  font-size: 14px; color: var(--muted);
  max-width: 300px; line-height: 1.65;
}
.footer-col h4 {
  font-size: 12px; font-weight: 600; color: var(--text);
  margin-bottom: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.footer-col a {
  display: block; font-size: 14px; color: var(--muted);
  margin-bottom: 10px;
  transition: color var(--dur);
}
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  max-width: 1120px; margin: 0 auto;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--muted-2);
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom-right { display: inline-flex; gap: 20px; align-items: center; }

/* ════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════ */
@media (max-width: 960px) {
  :root { --v2-nav-height: 78px; }
  nav { grid-template-columns: 1fr auto; }
  .nav-logo img { height: 50px; }
  .nav-links { display: none; }
  .nav-signin { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 640px) {
  :root { --v2-section-py: 72px; --v2-nav-height: 72px; }
  .nav-logo img { height: 44px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; text-align: left; }
  .btn-hero, .btn-outline, .btn-primary, .btn-plan-primary, .btn-plan-ghost { height: 44px; padding: 0 18px; font-size: 14px; }
  .cta-card h2 { font-size: clamp(26px, 8vw, 36px); }
  .mvp-banner { font-size: 12px; }
}
