@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Sora:wght@500;600;700;800&display=swap");
@import url("../css/brand-logo.css");

:root {
  --fn-mint: #40eec0;
  --fn-mint-soft: rgba(64, 238, 192, 0.22);
  --fn-mint-muted: #e8faf5;
  --fn-mint-hover: #32d9ad;
  --fn-ink: #111827;
  --fn-teal: #0a5c48;
  --fn-display: "Sora", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --fn-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--fn-body);
  background: var(--fn-mint-muted);
  color: var(--fn-ink);
  -webkit-font-smoothing: antialiased;
}

/* ── Nav (mint, som landningen) ──────────────────────────────── */
.fn-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 48px);
  height: 64px;
  background: rgba(64, 238, 192, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.fn-nav-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.fn-nav-logo .bf-logo {
  height: 40px;
  max-width: min(220px, 52vw);
}

.fn-nav-right {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 20px);
  flex-shrink: 0;
}

.fn-nav-back {
  font-size: 14px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.55);
  text-decoration: none;
  white-space: nowrap;
  font-family: var(--fn-display);
}

.fn-nav-back:hover { color: var(--fn-ink); }

.fn-nav-cta {
  background: var(--fn-ink);
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--fn-display);
  white-space: nowrap;
  transition: background 0.15s, transform 0.15s;
}

.fn-nav-cta:hover {
  background: #000000;
  transform: translateY(-1px);
}

/* ── Hero — fullbredd mint ─────────────────────────────────────── */
.fn-hero,
.fn-all-hero {
  width: 100%;
  max-width: none;
  background: var(--fn-mint);
  padding: clamp(48px, 8vw, 72px) clamp(20px, 4vw, 48px) clamp(40px, 6vw, 56px);
}

.fn-hero-label,
.fn-section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.5);
  margin-bottom: 12px;
  font-family: var(--fn-display);
}

.fn-hero-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  font-family: var(--fn-display);
  color: var(--fn-ink);
  max-width: 1200px;
}

.fn-hero-title span {
  color: var(--fn-ink);
  opacity: 0.85;
}

.fn-hero-sub {
  font-size: clamp(17px, 2.2vw, 20px);
  color: rgba(0, 0, 0, 0.62);
  max-width: 640px;
  line-height: 1.6;
}

.fn-cta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
  max-width: 1200px;
}

.fn-cta-primary {
  background: #ffffff;
  color: var(--fn-ink);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--fn-display);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: transform 0.15s, box-shadow 0.15s;
}

.fn-cta-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

.fn-cta-secondary {
  color: var(--fn-ink);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  font-family: var(--fn-display);
}

.fn-cta-secondary:hover { text-decoration: underline; }

/* Hero-innehåll centrerat */
.fn-all-hero .fn-hero-label,
.fn-all-hero .fn-hero-title,
.fn-all-hero .fn-hero-sub,
.fn-hero .fn-hero-label,
.fn-hero .fn-hero-title,
.fn-hero .fn-hero-sub {
  margin-left: auto;
  margin-right: auto;
}

.fn-all-hero .fn-hero-sub,
.fn-hero .fn-hero-sub {
  margin-left: 0;
  margin-right: auto;
}

/* ── Funktionsöversikt ───────────────────────────────────────── */
.fn-all-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.fn-all-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  text-decoration: none;
  border: 1px solid rgba(64, 238, 192, 0.35);
  box-shadow: 0 2px 8px rgba(64, 238, 192, 0.12);
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 200px;
}

.fn-all-card:hover {
  border-color: var(--fn-mint);
  box-shadow: 0 12px 36px rgba(64, 238, 192, 0.28);
  transform: translateY(-2px);
}

.fn-all-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--fn-mint-soft) !important;
}

.fn-all-card-name {
  font-size: 17px;
  font-weight: 800;
  color: var(--fn-ink);
  font-family: var(--fn-display);
}

.fn-all-card-desc {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.55;
  flex: 1;
}

.fn-all-card-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--fn-teal);
  margin-top: 4px;
  font-family: var(--fn-display);
}

/* ── Feature-sektioner (undersidor) ──────────────────────────── */
.fn-features {
  background: #ffffff;
  padding: clamp(48px, 6vw, 72px) clamp(20px, 4vw, 48px);
  border-top: 1px solid rgba(64, 238, 192, 0.25);
}

.fn-features-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.fn-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.fn-feature-card {
  background: var(--fn-mint-muted);
  border-radius: 16px;
  padding: 28px;
  border: 1px solid rgba(64, 238, 192, 0.3);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.fn-feature-card:hover {
  border-color: var(--fn-mint);
  box-shadow: 0 8px 24px rgba(64, 238, 192, 0.18);
}

.fn-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  background: var(--fn-mint-soft) !important;
}

.fn-feature-name {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 8px;
  font-family: var(--fn-display);
}

.fn-feature-desc {
  font-size: 14px;
  color: #6B7280;
  line-height: 1.6;
}

.fn-section-label {
  margin-bottom: 14px;
}

.fn-section-h {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800;
  margin-bottom: 12px;
  font-family: var(--fn-display);
  color: var(--fn-ink);
}

.fn-section-sub {
  font-size: 17px;
  color: #6B7280;
  max-width: 540px;
  line-height: 1.6;
}

/* ── CTA + footer ────────────────────────────────────────────── */
.fn-cta-section {
  background: var(--fn-mint);
  padding: clamp(56px, 8vw, 80px) clamp(20px, 4vw, 48px);
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.fn-cta-section h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--fn-ink);
  margin-bottom: 16px;
  font-family: var(--fn-display);
}

.fn-cta-section p {
  font-size: 18px;
  color: rgba(0, 0, 0, 0.58);
  margin-bottom: 32px;
}

.fn-cta-section .fn-cta-primary {
  background: var(--fn-ink);
  color: #ffffff;
  border-color: transparent;
}

.fn-cta-section .fn-cta-primary:hover {
  background: #000000;
}

.fn-footer {
  background: var(--fn-ink);
  border-top: none;
  padding: 28px clamp(20px, 4vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.fn-footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fn-footer-logo .bf-logo {
  height: 36px;
  max-width: 200px;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.fn-footer-name {
  font-size: 14px;
  font-weight: 800;
  color: white;
  font-family: var(--fn-display);
}

.fn-footer-copy {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 1024px) {
  .fn-all-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .fn-features-grid { grid-template-columns: 1fr; }
  .fn-footer {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .fn-all-grid { grid-template-columns: 1fr; }
  .fn-nav-back { display: none; }
}
