/* leansperience — den offentlige franchise-siden (public/franchise.php).
   Samme palett og typografi som landing.css, men egne seksjoner: lisenskort,
   regnestykke, prosessløp og søknadsskjema. Lastes SAMMEN med landing.css,
   som gir header, footer og knappene. */

:root {
  --line: #dde2e6;
  --sand: #f6f7f8;
}

/* ---------- Hero ---------- */
.fr-hero {
  background: var(--navy);
  color: #fff;
  padding: 72px 0 64px;
}
.fr-hero .eyebrow {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--green); margin-bottom: 14px;
}
.fr-hero h1 {
  font-size: clamp(1.9rem, 4.4vw, 3rem); line-height: 1.15; letter-spacing: -0.025em;
  margin-bottom: 18px; max-width: 18ch;
}
.fr-hero .lede { font-size: 1.08rem; color: #c8d2db; max-width: 60ch; margin-bottom: 30px; }
.fr-hero .fr-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.fr-hero .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.35); }
.fr-hero .btn-ghost:hover { background: rgba(255,255,255,0.08); }
.fr-hero .btn-primary { background: var(--green); }
.fr-hero .btn-primary:hover { background: #379a5c; }

.fr-proof {
  display: flex; gap: 40px; flex-wrap: wrap; margin-top: 46px;
  border-top: 1px solid rgba(255,255,255,0.15); padding-top: 26px;
}
.fr-proof .num { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.02em; }
.fr-proof .lab { font-size: 0.84rem; color: #a9b6c2; max-width: 22ch; }

/* ---------- Seksjoner ---------- */
.fr-section { padding: 66px 0; }
.fr-section.alt { background: var(--sand); }
.fr-head { max-width: 66ch; margin-bottom: 34px; }
.fr-head h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -0.02em; margin-bottom: 10px; }
.fr-head p { color: var(--muted); font-size: 1rem; }

.fr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.fr-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 22px;
}
.fr-card h3 { font-size: 1rem; margin-bottom: 8px; }
.fr-card p { font-size: 0.9rem; color: var(--muted); }
.fr-card .mark {
  width: 30px; height: 30px; border-radius: 9px; background: rgba(67,178,109,0.14); color: #2f8f56;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.8rem; margin-bottom: 12px;
}

/* ---------- Lisenskort ---------- */
.fr-packages { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; align-items: start; }
.pkg {
  background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 26px;
  display: flex; flex-direction: column; height: 100%;
}
.pkg.featured { border-color: var(--navy); box-shadow: 0 10px 30px rgba(15,31,46,0.10); }
.pkg .pkg-flag {
  display: inline-block; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--navy); color: #fff; border-radius: 20px; padding: 4px 11px; margin-bottom: 12px;
}
.pkg h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
.pkg .pkg-scope { font-size: 0.78rem; font-weight: 700; color: var(--green); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; }
.pkg .pkg-tagline { font-size: 0.9rem; color: var(--muted); margin-bottom: 18px; }
.pkg .pkg-price { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0; margin-bottom: 18px; }
.pkg .pkg-price .amount { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.02em; }
.pkg .pkg-price .amount span { font-size: 0.82rem; font-weight: 600; color: var(--muted); }
.pkg .pkg-terms { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 12px; }
.pkg .pkg-terms div { font-size: 0.8rem; color: var(--muted); }
.pkg .pkg-terms strong { display: block; font-size: 0.98rem; color: var(--navy); }
.pkg .pkg-desc { font-size: 0.88rem; color: var(--muted); margin-bottom: 16px; }
.pkg h4 {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted);
  margin: 16px 0 8px;
}
.pkg ul { list-style: none; }
.pkg ul li { font-size: 0.86rem; padding-left: 22px; position: relative; margin-bottom: 7px; }
.pkg ul.inc li::before {
  content: ''; position: absolute; left: 4px; top: 8px; width: 6px; height: 10px;
  border: solid var(--green); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.pkg ul.req li::before {
  content: ''; position: absolute; left: 4px; top: 10px; width: 8px; height: 2px; background: var(--muted);
}
.pkg .pkg-cta { margin-top: auto; padding-top: 20px; }
.pkg .pkg-cta .btn-primary { width: 100%; text-align: center; }
.fr-note { font-size: 0.84rem; color: var(--muted); margin-top: 18px; }

/* ---------- Regnestykket ---------- */
.calc { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: 28px; align-items: start; }
.calc-inputs { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.calc-inputs label { display: block; font-size: 0.82rem; font-weight: 700; margin-bottom: 6px; }
.calc-inputs .row { margin-bottom: 18px; }
.calc-inputs input[type="range"] { width: 100%; accent-color: var(--green); }
.calc-inputs .val { font-size: 0.9rem; font-weight: 700; color: var(--navy); float: right; }
.calc-inputs select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px;
  font-family: inherit; font-size: 0.9rem; color: var(--navy); background: var(--white);
}
.calc-out { background: var(--navy); color: #fff; border-radius: 14px; padding: 26px; }
.calc-out .big { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.02em; }
.calc-out .big-lab { font-size: 0.84rem; color: #a9b6c2; margin-bottom: 22px; }
.calc-lines { display: grid; gap: 10px; }
.calc-lines .line { display: flex; justify-content: space-between; font-size: 0.9rem; border-bottom: 1px solid rgba(255,255,255,0.12); padding-bottom: 8px; }
.calc-lines .line.total { border-bottom: none; font-weight: 800; font-size: 1rem; padding-top: 4px; }
.calc-lines .line span:first-child { color: #c8d2db; }

/* ---------- Prosessen ---------- */
.fr-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; counter-reset: step; }
.fr-step { position: relative; padding-top: 20px; border-top: 3px solid var(--gray); }
.fr-step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -16px; left: 0; width: 29px; height: 29px; border-radius: 50%;
  background: var(--navy); color: #fff; font-size: 0.8rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.fr-step h3 { font-size: 0.98rem; margin-bottom: 6px; }
.fr-step p { font-size: 0.87rem; color: var(--muted); }

/* ---------- Hvem vi ser etter ---------- */
.fr-profile { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.fr-checklist { list-style: none; }
.fr-checklist li { position: relative; padding-left: 30px; margin-bottom: 14px; font-size: 0.95rem; }
.fr-checklist li::before {
  content: ''; position: absolute; left: 4px; top: 7px; width: 7px; height: 12px;
  border: solid var(--green); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}

/* ---------- FAQ ---------- */
.fr-faq details {
  border-bottom: 1px solid var(--line); padding: 16px 0;
}
.fr-faq summary { font-weight: 700; font-size: 0.98rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.fr-faq summary::-webkit-details-marker { display: none; }
.fr-faq summary::after { content: '+'; color: var(--green); font-weight: 800; font-size: 1.2rem; line-height: 1; }
.fr-faq details[open] summary::after { content: '–'; }
.fr-faq p { margin-top: 10px; color: var(--muted); font-size: 0.92rem; max-width: 75ch; }

/* ---------- Søknadsskjema ---------- */
.fr-form { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 30px; max-width: 860px; }
.fr-form fieldset { border: none; margin-bottom: 26px; }
.fr-form legend {
  font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted); margin-bottom: 14px;
}
.fr-form .fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.fr-form .fields .full { grid-column: 1 / -1; }
.fr-form label { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 6px; }
.fr-form input, .fr-form select, .fr-form textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px;
  font-family: inherit; font-size: 0.92rem; color: var(--navy); background: var(--white); margin-bottom: 16px;
}
.fr-form textarea { resize: vertical; min-height: 96px; }
.fr-form input:focus, .fr-form select:focus, .fr-form textarea:focus { outline: none; border-color: var(--green); }
.fr-form .hint { font-size: 0.78rem; color: var(--muted); margin: -10px 0 16px; }
.fr-form .privacy { font-size: 0.84rem; font-weight: 600; color: #2f7d4f; margin-bottom: 16px; }
.fr-form .form-error { background: rgba(217,83,79,0.12); color: #a33; border-radius: 8px; padding: 10px 12px; font-size: 0.86rem; margin-bottom: 14px; }
.fr-success {
  background: rgba(67,178,109,0.12); border: 1px solid rgba(67,178,109,0.4); border-radius: 16px;
  padding: 34px; max-width: 720px;
}
.fr-success h3 { font-size: 1.2rem; margin-bottom: 8px; }
.fr-success p { color: var(--muted); }

/* ---------- CTA nederst ---------- */
.fr-cta-band {
  background: var(--navy); color: #fff; border-radius: 16px; padding: 34px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.fr-cta-band strong { display: block; font-size: 1.25rem; margin-bottom: 6px; }
.fr-cta-band span { color: #c8d2db; font-size: 0.94rem; }
.fr-cta-band a.btn-primary { background: var(--green); }
.fr-cta-band a.btn-primary:hover { background: #379a5c; }

@media (max-width: 820px) {
  .calc { grid-template-columns: 1fr; }
  .fr-profile { grid-template-columns: 1fr; gap: 24px; }
  .fr-form .fields { grid-template-columns: 1fr; }
  .fr-form { padding: 22px; }
  .fr-proof { gap: 24px; }
}
