/* Shared design layer for the high-intent feature pages
   (/familjekalender, /matsedel-app, /sysslor-barn). Built on top of
   /legal/legal.css — that file provides the :root color tokens, the
   html/body reset + background glow, header.top/.brand, footer.bottom
   and the .faq-item accordion, all reused here as-is. This file adds
   only the feature-page layout.

   Design intent (frontend-design skill, 2026-09-07): these are ANSWER
   pages — someone searched "familjekalender app" / "matsedel app" /
   "sysslor barn app" and landed here. So each page opens by stating
   the answer, and that sentence (.fp-answer) is the largest body type
   on the page, marked by a short gold rule — not a lead paragraph.
   Everything else stays quiet: one content width, left aligned, open
   sections divided by hairlines rather than boxed in one glass card.
   The glass card is spent once, on the Free/Premium panel. The hero's
   screenshot-with-gold-glow is lifted from /landing so a visitor from
   search recognises the same site; the screenshot (month calendar /
   meal plan / routines) is what tells the three pages apart. One
   typeface, Outfit, doing the work through weight and tracking. */

/* legal.js's language toggle cycles sv -> en -> nb and remembers the
   choice across every public page. These pages ship sv + en only, so a
   remembered nb choice would otherwise blank the body (legal.css hides
   .lang-sv and .lang-en). Treat anything that isn't English as Swedish. */
html:not([data-lang="en"]) .lang-sv { display: revert; }

.fp-wrap {
  max-width: 840px;
  margin: 0 auto;
  padding: 40px 24px 72px;
}

/* ---------- Breadcrumb ---------- */
.fp-crumbs {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted-soft);
  margin: 0 0 30px;
}
.fp-crumbs a { color: var(--muted-soft); text-decoration: none; }
.fp-crumbs a:hover { color: var(--gold-text); }
.fp-crumbs span { margin-left: 7px; }

/* ---------- Hero ---------- */
.fp-hero {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 296px;
  gap: 46px;
  align-items: start;
  padding-bottom: 44px;
}
.fp-hero-copy h1 {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.022em;
  margin: 0 0 24px;
  color: var(--ink);
}

/* The answer. Short gold rule, display-sized, tight measure. */
.fp-answer {
  position: relative;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink);
  max-width: 42ch;
  margin: 0 0 28px;
  padding-top: 22px;
}
.fp-answer::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 2px;
  background: var(--gold);
}

.fp-hero-media {
  position: relative;
  justify-self: center;
  width: min(100%, 256px);
}
.fp-hero-media::before {
  content: "";
  position: absolute;
  inset: -14% -26%;
  background: radial-gradient(circle at 50% 28%, rgba(239, 169, 43, 0.26), transparent 66%);
  z-index: 0;
}
.fp-hero-media figure {
  position: relative;
  z-index: 1;
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.65);
  background: var(--bg);
  transform: rotate(-3deg);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: zoom-in;
}
.fp-hero-media:hover figure,
.fp-hero-media figure:focus-visible { transform: rotate(0deg); }
.fp-hero-media figure:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.fp-hero-media img { display: block; width: 100%; height: auto; }

/* Click-to-enlarge overlay for the hero screenshot (feature-pages.js) */
.fp-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(6, 9, 15, 0.86);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fp-fade 0.18s ease;
}
.fp-lightbox img {
  width: auto;
  height: auto;
  max-width: min(92vw, 460px);
  max-height: 90vh;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.8);
}
.fp-lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.fp-lightbox-close:hover { border-color: var(--gold); color: var(--gold-text); }
.fp-lightbox-close:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
@keyframes fp-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .fp-lightbox { animation: none; }
}

/* ---------- Store buttons (pattern from landing.css) ---------- */
.fp-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.fp-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 24px;
  border-radius: 18px;
  text-decoration: none;
  border: 1px solid var(--border);
  background: var(--card);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.fp-store-btn:hover { border-color: var(--gold); transform: translateY(-2px); }
.fp-store-btn svg { color: var(--ink); flex-shrink: 0; }
.fp-store-btn .b-text { display: flex; flex-direction: column; line-height: 1.25; }
.fp-store-btn .b-small { font-size: 11px; font-weight: 700; color: var(--muted-soft); }
.fp-store-btn .b-big { font-size: 18px; font-weight: 800; color: var(--ink); }
.fp-store-btn.primary {
  border-color: transparent;
  background: var(--gold-gradient);
  box-shadow: 0 10px 30px rgba(239, 169, 43, 0.3);
}
.fp-store-btn.primary:hover { box-shadow: 0 14px 36px rgba(239, 169, 43, 0.4); }
.fp-store-btn.primary svg { color: #1A1204; }
.fp-store-btn.primary .b-small { color: rgba(26, 18, 4, 0.7); }
.fp-store-btn.primary .b-big { color: #1A1204; }

/* ---------- Body sections ---------- */
.fp-section {
  margin: 0;
  padding: 36px 0;
  border-top: 1px solid var(--divider);
}
.fp-section > .lang-sv > h2,
.fp-section > .lang-en > h2,
.fp-section > h2 {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0 0 14px;
}
.fp-section > .lang-sv > p,
.fp-section > .lang-en > p {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--muted);
  font-weight: 400;
  max-width: 68ch;
  margin: 0 0 12px;
}
.fp-section > .lang-sv > p:last-child,
.fp-section > .lang-en > p:last-child { margin-bottom: 0; }
.fp-price b {
  font-weight: 700;
  color: var(--ink);
}

/* "How it works" is a feature list, not a sequence — no numbers.
   The marker echoes the answer's gold rule: a short 2px bar. */
ul.fp-list {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  max-width: 64ch;
}
ul.fp-list li {
  position: relative;
  padding-left: 26px;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 11px;
}
ul.fp-list li:last-child { margin-bottom: 0; }
ul.fp-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 13px;
  height: 2px;
  background: var(--gold);
}

/* ---------- Free / Premium — the one glass panel ---------- */
.fp-compare {
  margin-top: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow: hidden;
}
.fp-compare table {
  width: 100%;
  border-collapse: collapse;
}
.fp-compare th,
.fp-compare td {
  padding: 12px 18px;
  font-size: 14.5px;
  text-align: left;
}
.fp-compare thead th {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.fp-compare th + th,
.fp-compare td + td {
  text-align: center;
  width: 88px;
}
.fp-compare tbody td {
  border-bottom: 1px solid var(--divider);
  color: var(--muted);
}
.fp-compare tbody tr:last-child td { border-bottom: none; }
.fp-compare tbody td:first-child { color: var(--ink); font-weight: 500; }
.fp-compare .c-yes { color: var(--gold-text); font-weight: 700; }
.fp-compare .c-no { color: var(--muted-soft); }

/* ---------- FAQ (legal.css .faq-item) ---------- */
.fp-section .faq-list { margin-top: 6px; }

/* ---------- Closing CTA band ---------- */
.fp-cta-band {
  margin: 0;
  text-align: center;
  padding: 52px 0 8px;
  border-top: 1px solid var(--divider);
}
.fp-cta-band h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 10px;
}
.fp-cta-band p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 48ch;
  margin: 0 auto 22px;
}
.fp-cta-band .fp-cta { justify-content: center; }

/* ---------- Quality floor ---------- */
.fp-store-btn:focus-visible,
.fp-crumbs a:focus-visible,
.fp-section a:focus-visible,
.faq-q:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}
.faq-q:focus-visible { outline-offset: -2px; }

@media (prefers-reduced-motion: reduce) {
  .fp-hero-media figure { transition: none; transform: none; }
  .fp-store-btn { transition: none; }
  .fp-store-btn:hover { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .fp-hero {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .fp-hero-copy h1 { font-size: 31px; }
  .fp-answer { font-size: 19px; padding-top: 20px; }
  .fp-hero-media {
    width: min(74%, 224px);
    justify-self: start;
  }
}
@media (max-width: 560px) {
  .fp-wrap { padding: 24px 18px 56px; }
  .fp-hero-copy h1 { font-size: 27px; }
  .fp-hero { padding-bottom: 34px; }
  .fp-section { padding: 32px 0; }
  .fp-store-btn { flex: 1 1 100%; justify-content: center; }
  .fp-compare th, .fp-compare td { padding: 11px 13px; }
  .fp-compare th + th, .fp-compare td + td { width: 64px; }
}
