/* ─── SHARED STYLES — DigiFriend ─── */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;700&display=swap');

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

/* Logo-wordmark: Poppins med runde i-prikker, som i logoet */
.digi, .friend { font-family: 'Poppins', sans-serif !important; font-weight: 700 !important; }

:root {
  --navy:        #1a2744;
  --navy-mid:    #243258;
  --navy-light:  #2e3f6e;
  --teal:        #00c9a7;
  --teal-dark:   #00a88c;
  --teal-light:  #e6faf7;
  --teal-mid:    #b3f0e6;
  --white:       #ffffff;
  --off-white:   #f7f9fc;
  --gray-100:    #f0f2f7;
  --gray-200:    #e2e7f0;
  --gray-400:    #9ba8c0;
  --text:        #1a2744;
  --text-mid:    #4a5a7a;
  --text-light:  #8a98b8;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}

a { text-decoration: none; }

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 48px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(26,39,68,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo-wordmark {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.logo-wordmark .digi { color: var(--white); }
.logo-wordmark .friend { color: var(--teal); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active { color: var(--white); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-login {
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-login:hover { color: var(--white); }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  transition: all 0.18s;
  white-space: nowrap;
}

.btn-teal {
  background: var(--teal);
  color: var(--navy);
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 0.9rem;
}

.btn-teal:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,201,167,0.3);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 0.9rem;
}

.btn-navy:hover {
  background: var(--navy-mid);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(26,39,68,0.2);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 0.9rem;
  border: 1.5px solid var(--gray-200);
}

.btn-outline:hover { border-color: var(--navy); }

.btn-outline-white {
  background: transparent;
  color: var(--white);
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 0.9rem;
  border: 1.5px solid rgba(255,255,255,0.3);
}

.btn-outline-white:hover { border-color: rgba(255,255,255,0.7); }

.btn-lg { padding: 15px 36px; font-size: 1rem; }
.btn-block { width: 100%; display: block; text-align: center; }

/* ─── PAGE WRAPPER ─── */
.page-body { padding-top: 68px; }

/* ─── SECTION ─── */
.section { padding: 88px 48px; }

.section-inner {
  max-width: 1160px;
  margin: 0 auto;
}

.section-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 14px;
}

.section-sub {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 48px;
}

/* ─── TAGS ─── */
.tag {
  display: inline-block;
  background: var(--teal-light);
  color: var(--teal-dark);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 50px;
}

.tag-gray {
  background: var(--gray-100);
  color: var(--text-mid);
}

/* ─── FORM ELEMENTS ─── */
.form-group { margin-bottom: 20px; }

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: 12px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0,201,167,0.1);
}

textarea { resize: vertical; min-height: 120px; line-height: 1.6; }

select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238a98b8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; cursor: pointer; }

input::placeholder, textarea::placeholder { color: var(--text-light); }

.form-hint {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 6px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Interest pills (toggleable) */
.interest-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.interest-pill {
  padding: 9px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-mid);
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
  display: inline-block;
}

.interest-pill:hover { border-color: var(--teal); color: var(--teal-dark); background: var(--teal-light); }
.interest-pill.selected { background: var(--teal-light); border-color: var(--teal); color: var(--teal-dark); font-weight: 600; }

/* Checkbox & radio */
.checkbox-group, .radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.check-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: 50px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-mid);
  transition: all 0.15s;
  user-select: none;
}

.check-pill input { display: none; }

.check-pill:has(input:checked),
.check-pill.selected {
  border-color: var(--teal);
  background: var(--teal-light);
  color: var(--teal-dark);
}

/* ─── FOOTER ─── */
footer {
  background: #111c35;
  padding: 56px 48px 32px;
}

.footer-inner { max-width: 1160px; margin: 0 auto; }

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand-name {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.footer-brand-name .digi { color: var(--white); }
.footer-brand-name .friend { color: var(--teal); }

.footer-tagline-text {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.28);
  line-height: 1.7;
  max-width: 200px;
}

.footer-col h5 {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 14px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 9px; }

.footer-col a {
  color: rgba(255,255,255,0.32);
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-col a:hover { color: rgba(255,255,255,0.75); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-legal {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.18);
  max-width: 600px;
  line-height: 1.6;
}

.footer-copy { font-size: 0.72rem; color: rgba(255,255,255,0.18); }

/* ─── HAMBURGER ─── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 101;
}
.hamburger span { display: block; width: 22px; height: 2px; background: rgba(255,255,255,0.8); border-radius: 2px; transition: all 0.22s; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ─── MOBILE NAV OVERLAY ─── */
.mobile-nav {
  display: none;
  position: fixed;
  top: 68px; left: 0; right: 0; bottom: 0;
  background: var(--navy);
  padding: 32px 28px 48px;
  z-index: 99;
  flex-direction: column;
  overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav-links { list-style: none; flex: 1; }
.mobile-nav-links li { border-bottom: 1px solid rgba(255,255,255,0.07); }
.mobile-nav-links a { display: block; padding: 18px 0; color: rgba(255,255,255,0.75); font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; transition: color 0.15s; }
.mobile-nav-links a:hover, .mobile-nav-links a.active { color: var(--teal); }
.mobile-nav-cta { margin-top: 32px; display: flex; flex-direction: column; gap: 12px; }

/* ─── RESPONSIVE ─── */
@media (max-width: 960px) {
  nav { padding: 0 24px; }
  .nav-links { display: none; }
  .nav-actions { display: none; }
  .hamburger { display: flex; }
  .section { padding: 64px 24px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
