/* ─────────────────────────────────────────────
   FoaieLive — foaielive.ro
   ───────────────────────────────────────────── */

:root {
  --bg: #09262D;
  --bg-elev: #0E2F38;
  --bg-card: #12353F;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #F0F4F5;
  --text-muted: #8DA3A8;
  --text-dim: #5E767C;
  --primary: #00C853;
  --primary-hover: #00E676;
  --primary-dark: #00A841;
  --accent: #08C044;
  --danger: #FF5252;
  --warn: #FFB74D;
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 24px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.4);
  --max-w: 1200px;
  --container-pad: 24px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 800;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; color: var(--text-muted); }
.lead { font-size: 1.2rem; color: var(--text); }

/* Layout */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}
section { padding: 80px 0; }
section.tight { padding: 48px 0; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(9, 38, 45, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text);
  letter-spacing: -0.02em;
}
.logo:hover { color: var(--text); }
.logo-mark {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--bg-card);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
/* The CTA button is an <a> inside .nav-links — restore its button text color
   (otherwise .nav-links a's muted color wins on specificity → faint text). */
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: #052016; }
.nav-links a.btn-ghost { color: var(--text); }
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.1s ease, background 0.2s ease, box-shadow 0.2s ease;
  border: 0;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: #052016;
}
.btn-primary:hover {
  background: var(--primary-hover);
  color: #052016;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 200, 83, 0.35);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover {
  background: var(--bg-card);
  color: var(--text);
}
.btn-lg {
  padding: 16px 28px;
  font-size: 1.05rem;
}

/* Hero */
.hero {
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(closest-side, rgba(0, 200, 83, 0.15), transparent);
  pointer-events: none;
  z-index: 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero h1 { margin-bottom: 20px; }
.hero h1 .accent {
  background: linear-gradient(90deg, var(--primary), var(--primary-hover));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.hero-meta {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.hero-meta-item { display: inline-flex; align-items: center; gap: 6px; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0, 200, 83, 0.12);
  color: var(--primary-hover);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(0, 200, 83, 0.25);
  margin-bottom: 16px;
}
.tag-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(0, 200, 83, 0.2);
}

/* Phone mockup */
.phone {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  background: #000;
  border-radius: 36px;
  padding: 12px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.05);
  position: relative;
}
.phone-screen {
  background: var(--bg);
  border-radius: 26px;
  overflow: hidden;
  aspect-ratio: 9 / 18.5;
  display: flex;
  flex-direction: column;
}
/* Real app screenshot variant — let the image define the height. */
.phone-screen--shot {
  aspect-ratio: auto;
}
.phone-screen--shot img {
  display: block;
  width: 100%;
  height: auto;
}
.phone-statusbar {
  display: flex;
  justify-content: space-between;
  padding: 10px 18px 4px;
  font-size: 0.7rem;
  color: var(--text);
  font-weight: 600;
}
.phone-header {
  padding: 8px 18px 12px;
  border-bottom: 1px solid var(--border);
}
.phone-title { font-weight: 800; font-size: 1rem; }
.phone-sub { font-size: 0.75rem; color: var(--primary); display: inline-flex; align-items: center; gap: 4px; margin-top: 2px; }
.phone-body { padding: 14px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.phone-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
}
.phone-card-label { font-size: 0.65rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.05em; }
.phone-card-value { font-size: 1.3rem; font-weight: 700; color: var(--text); margin-top: 4px; }
.phone-card-row { display: flex; gap: 10px; }
.phone-card-row .phone-card { flex: 1; }
.phone-fab {
  position: absolute;
  bottom: 26px; right: 26px;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 200, 83, 0.5);
}

/* Trust bar */
.trust {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-elev);
  padding: 24px 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}
.trust-item svg { color: var(--primary); }

/* Section header */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.feature:hover {
  border-color: rgba(0, 200, 83, 0.4);
  transform: translateY(-2px);
}
.feature-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(0, 200, 83, 0.12);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.feature h3 { font-size: 1.15rem; margin-bottom: 8px; }
.feature p { font-size: 0.95rem; margin: 0; }

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  counter-reset: step;
}
.step { position: relative; padding-left: 56px; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #052016;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}
.step h3 { margin-bottom: 6px; }

/* Segments */
.segment-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.segment {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.segment-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(0, 200, 83, 0.12);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
.segment h3 { font-size: 1.05rem; margin: 0; }
.segment p { font-size: 0.9rem; margin: 0; }

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.plan {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.plan.featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary), 0 12px 40px rgba(0, 200, 83, 0.18);
  transform: scale(1.02);
}
.plan-badge {
  position: absolute;
  top: -12px; right: 24px;
  background: var(--primary);
  color: #052016;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.plan-name { font-weight: 700; font-size: 1.1rem; }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin: 16px 0 8px; }
.plan-price .amount { font-size: 2.5rem; font-weight: 800; color: var(--text); letter-spacing: -0.03em; }
.plan-price .currency { color: var(--text-muted); font-size: 1.1rem; }
.plan-price .period { color: var(--text-dim); font-size: 0.9rem; }
.plan-desc { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 20px; min-height: 48px; }
.plan ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.plan ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.93rem;
  color: var(--text);
}
.plan ul li svg { color: var(--primary); flex-shrink: 0; margin-top: 3px; }
.plan ul li.dim { color: var(--text-dim); }
.plan ul li.dim svg { color: var(--text-dim); }

/* Compare table */
.compare {
  width: 100%;
  border-collapse: collapse;
  margin-top: 32px;
}
.compare th, .compare td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.compare th {
  color: var(--text-muted);
  font-weight: 600;
  background: var(--bg-elev);
}
.compare td.center { text-align: center; }
.compare svg.yes { color: var(--primary); }
.compare svg.no { color: var(--text-dim); }

/* FAQ */
.faq {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq details {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 4px;
  transition: border-color 0.2s ease;
}
.faq details[open] { border-color: rgba(0, 200, 83, 0.4); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--primary);
  font-weight: 300;
  line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq .faq-body {
  padding: 0 24px 20px;
  color: var(--text-muted);
}
.faq .faq-body p:last-child { margin-bottom: 0; }

/* CTA */
.cta-band {
  background: linear-gradient(135deg, var(--bg-elev) 0%, var(--bg-card) 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(closest-side, rgba(0, 200, 83, 0.18), transparent);
  pointer-events: none;
}
.cta-band h2 { margin-bottom: 12px; position: relative; }
.cta-band p { margin-bottom: 28px; position: relative; }
.cta-band .btn { position: relative; }

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
  background: var(--bg-elev);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p { max-width: 320px; }
.footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 16px;
  font-weight: 700;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--text); font-size: 0.95rem; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* Blog */
.article-meta {
  display: flex;
  gap: 16px;
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 24px;
}
.article-meta span { display: inline-flex; align-items: center; gap: 4px; }

.article {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.05rem;
}
.article h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 16px; }
.article h2 { font-size: 1.6rem; margin-top: 40px; }
.article h3 { font-size: 1.25rem; margin-top: 32px; }
.article p, .article ul, .article ol { color: var(--text); }
.article ul, .article ol { padding-left: 24px; }
.article li { margin-bottom: 8px; }
.article blockquote {
  border-left: 3px solid var(--primary);
  padding: 12px 20px;
  margin: 24px 0;
  background: var(--bg-elev);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text);
  font-style: italic;
}
.article table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.95rem;
}
.article table th, .article table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.article table th {
  background: var(--bg-elev);
  font-weight: 600;
  color: var(--text-muted);
}
.article a { border-bottom: 1px dotted var(--primary); }
.breadcrumb {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--text-muted); border-bottom: 0; }
.breadcrumb a:hover { color: var(--primary); }

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.post-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s, transform 0.2s;
}
.post-card:hover { border-color: rgba(0, 200, 83, 0.4); transform: translateY(-2px); }
.post-card h3 { color: var(--text); font-size: 1.15rem; margin: 0; }
.post-card p { color: var(--text-muted); font-size: 0.95rem; margin: 0; flex: 1; }
.post-card .read-more { color: var(--primary); font-weight: 600; font-size: 0.9rem; }

/* Accountants page */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.benefit {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.benefit-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(0, 200, 83, 0.12);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.benefit h3 { font-size: 1.1rem; margin: 0 0 6px; }
.benefit p { font-size: 0.95rem; margin: 0; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .phone { max-width: 280px; }
  .feature-grid, .post-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .segment-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; }
  .plan.featured { transform: none; }
  .benefit-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  section { padding: 56px 0; }
  .feature-grid, .post-grid { grid-template-columns: 1fr; }
  .segment-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 24px; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--bg-elev);
    flex-direction: column;
    align-items: stretch;
    padding: 20px 24px;
    gap: 12px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 8px 0; }
  .compare { font-size: 0.85rem; }
  .compare th, .compare td { padding: 10px 8px; }
}

/* Fleet-pricing feature pills (preturi.html) */
.feature-pills .pill{
  background:var(--card);
  border:1px solid rgba(255,255,255,.10);
  color:var(--text);
  padding:8px 14px;
  border-radius:999px;
  font-size:.9rem;
}
