/* medlemskap.css — membership / pricing page. Builds on legal.css (loaded first)
   for body, nav, footer, typography and CSS variables. Only adds page layout.

   AVAILABLE CSS VARIABLES ON THIS PAGE (all from legal.css :root):
     --natt #1B3A4B   --paper #FBFAF7   --ink #33424d   --muted #5b6b76
     --line #E5E2DB   --font            --display
   That is the whole set. /medlemskap loads legal.css + nav.css + this file and does
   NOT load style.css, so the --fk-* variables defined there (--fk-text-secondary and
   friends) are UNDEFINED here and silently render as an invalid colour. For secondary
   text use --muted. */

/* Widened from 920px so the three Priser boxes have room on one line. This class is
   used ONLY by web/templates/medlemskap.html — /vilkar, /personvern and /datakilder
   use .legal-wrap (760px) in legal.css, and the guide pages have their own templates —
   so this is scoped to /medlemskap and changes no other page.
   Capped rather than fluid: at 2560px the row would otherwise sprawl edge to edge. */
.mship-wrap { max-width: 1180px; margin: 0 auto; padding: 48px 20px 80px; }
.mship-wrap h1 {
  font-family: var(--display); font-weight: 500; font-size: 34px; line-height: 1.2;
  color: var(--natt); margin: 0 0 10px;
}
.mship-wrap h2 {
  font-family: var(--display); font-weight: 500; font-size: 22px;
  color: var(--natt); margin: 44px 0 14px;
}
.mship-lead { font-size: 17px; color: var(--ink); max-width: 640px; line-height: 1.7; margin: 0; }
.mship-wrap p { font-size: 16px; }
.mship-wrap a { color: var(--natt); text-underline-offset: 2px; }

/* What you get — free vs member */
.mship-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 8px 0; }
.mship-compare .col {
  border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; background: #fff;
}
.mship-compare .col.member { border-color: var(--natt); background: #FBFAF7; }
.mship-compare h3 { margin: 0 0 12px; font-size: 16px; color: var(--natt); }
.mship-list { list-style: none; padding: 0; margin: 0; }
.mship-list li { position: relative; padding-left: 26px; margin: 9px 0; font-size: 15px; line-height: 1.5; }
.mship-list li::before { content: "✓"; position: absolute; left: 0; color: var(--natt); font-weight: 700; }
.mship-list.muted li::before { content: "·"; color: var(--muted); font-weight: 700; }

/* Priser + value image — plans on the left, a zoomed-out map of Norway's gold lakes
   on the right so the scale of what membership unlocks is visceral. The map is a
   purely static <img> (no map library / zoom / pan), zoomed out so individual lakes
   can't be located — it shows abundance, never positions (protects trophy privacy). */
.mship-offer {
  display: grid;
  /* The plans are the offer; the map is evidence for it. 2fr/1fr split the row into
     three near-equal columns, which read as three peer cards — so the map competed
     with the plans instead of supporting them. Weighting the plan column ~2.7:1
     gives each plan card real width and demotes the map to a side illustration. */
  grid-template-columns: minmax(0, 2.7fr) minmax(0, 1fr);
  /* TWO rows on purpose. Row 1 holds the plan cards and the map frame, so the frame
     is height-matched to the cards by the grid itself — no hardcoded height, and it
     follows automatically if a copy edit makes the cards taller. The caption drops to
     row 2, OUTSIDE the matched-height row, so it never feeds back into that height
     (a figure containing both would grow the row it is trying to match). */
  grid-template-areas:
    "plans map"
    ".     cap";
  column-gap: 36px;
  align-items: stretch;
  margin: 8px 0;
}
/* Plans keep their ORIGINAL side-by-side 2-up layout; just drop the standalone
   max-width/centering so the 2-column grid fills the left column beside the map. */
.mship-offer .mship-prices { grid-area: plans; max-width: none; margin: 0; }
/* display:contents unwraps the <figure> so its frame and its caption place into the
   grid independently — the frame into the matched-height row, the caption into the
   row below. The figure element stays in the markup for semantics only. */
.mship-map { display: contents; }
.mship-map-frame {
  grid-area: map; position: relative;
  /* NO aspect-ratio here. The frame takes its height from the grid row, i.e. from the
     plan cards, which is what makes all three boxes equal. The artwork's proportions
     are honoured by object-fit on the img below, not by the box.
     (The stacked layout has no sibling to match, so it restores an aspect-ratio in
     the media query at the bottom — without one the frame there would collapse.) */

  /* Chrome IDENTICAL to a plan card — same white fill, same 1px --line border, same
     14px radius, and no shadow (the shadow belongs to .plan.featured alone, paired
     with its orange border; adding it here would make the map read as the promoted
     option). Keep these three values in step with .plan below if it ever changes. */
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}
/* The artwork sits INSIDE the box at its own proportions: object-fit: contain scales
   it to fit without cropping or distorting, and an absolutely-positioned img with
   inset:0 centres it in both axes by default. The frame is a little taller than the
   artwork needs, and that surplus simply becomes even space above and below — an
   image in a box, not a stretched or skewed one. */
.mship-map-frame img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  /* Padding must live HERE, not on the frame: the img is absolutely positioned, so
     inset:0 resolves against the frame's PADDING box and frame padding would add no
     inner space at all. With box-sizing: border-box, object-fit: contain fits inside
     the content box, so this is what insets the artwork from the card edge. */
  object-fit: contain; box-sizing: border-box; padding: 14px;
  /* No mix-blend-mode here. The PNG's background is opaque white (RGBA, but alpha is
     255 everywhere) and so is the card, so the earlier multiply — which existed only
     to drop that white onto a non-white surface — would now be an exact no-op.
     Removed rather than left in place with a comment describing a dependency that no
     longer exists. If this card ever stops being white, revisit: the artwork will
     show its white background as a visible slab. */
}
.mship-map figcaption {
  grid-area: cap; margin-top: 12px;
  font-size: 13px; line-height: 1.5; color: var(--muted); text-align: center;
}

/* Pricing grid */
.mship-prices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 8px 0; align-items: stretch; max-width: 620px; }
.plan {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: 14px; padding: 24px 22px; background: #fff;
}
.plan.featured { border: 2px solid #D97706; box-shadow: 0 8px 26px rgba(27,58,75,0.08); }
.plan-badge {
  display: inline-block; align-self: flex-start;
  background: #FEF3C7; color: #92400E; font-size: 11px; font-weight: 600;
  letter-spacing: .3px; text-transform: uppercase; border-radius: 999px;
  padding: 4px 10px; margin-bottom: 12px;
}
/* Tackle-comparison aside: sits between the price and the fine print, so it is scaled
   between them — 14px against the 16px body and the 13px .plan-note. Italic carries the
   aside voice. Colour is --muted, this page's secondary text colour (the same one
   .plan-note and .mship-fine use); --text-secondary is not defined here — the similarly
   named --fk-text-secondary lives in style.css, which /medlemskap does not load. */
.plan-tackle {
  font-size: 14px; font-style: italic; color: var(--muted);
  margin: 10px 0 0; line-height: 1.5;
}
/* Emoji have no italic glyph, so an italic run (.plan-tackle) makes the browser
   SYNTHESISE one by shearing the bitmap — the emoji comes out visibly skewed. Reset
   font-style on the glyph itself so it stands upright inside italic text.
   Deliberately nothing else: no display/vertical-align/line-height, because those
   would move the glyph off the baseline it currently shares with the text.
   The markup pairs this with aria-hidden="true" — the emoji are decorative and add
   nothing for a screen reader reading the sentence. */
.emoji { font-style: normal; }

.plan-name { font-size: 17px; font-weight: 600; color: var(--natt); margin: 0 0 8px; }
.plan-price { font-family: var(--display); font-weight: 500; color: var(--natt); font-size: 30px; line-height: 1.1; }
.plan-price small { font-family: var(--font); font-size: 15px; font-weight: 400; color: var(--muted); }
.plan-note { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.plan-spacer { flex: 1; }
.plan-cta {
  margin-top: 18px; display: block; text-align: center; text-decoration: none;
  border-radius: 10px; padding: 12px 18px; font-size: 15px; font-weight: 500;
  border: 1px solid var(--natt); color: var(--natt); background: #fff;
  transition: background .15s ease, color .15s ease;
}
.plan-cta:hover { background: #F2EFE9; }
.plan.featured .plan-cta { background: var(--natt); color: #fff; border-color: var(--natt); }
.plan.featured .plan-cta:hover { background: #234a5f; }

.mship-status { font-size: 14px; color: var(--muted); margin: 16px 0 0; }
.mship-fine { font-size: 13px; color: var(--muted); margin-top: 24px; }

/* Prose keeps a readable measure now that the container is 1180px: at full width the
   callout ran ~165 characters per line and the closing paragraph ~112, against a
   comfortable 60-80. 760px matches .legal-wrap, so the measure here equals the terms
   pages. Scoped under .mship-wrap because .legal-callout is SHARED with /vilkar and
   /datakilder — though those pages do not load this stylesheet at all, so the scoping
   is a second line of defence rather than the only one. */
.mship-wrap .legal-callout, .mship-fine { max-width: 760px; }

@media (max-width: 760px) {
  .mship-compare, .mship-prices { grid-template-columns: 1fr; }
  /* Stack: plans, then the map figure. Cap the map width so the tall portrait image
     doesn't dominate the column once it is full-width. */
  .mship-offer { grid-template-columns: 1fr; grid-template-areas: "plans" "map" "cap"; row-gap: 24px; }
  /* Stacked: no sibling to match, so the frame carries the artwork's own ratio
     (1490x1642). Without this it would have no height at all. */
  .mship-map-frame { aspect-ratio: 1490 / 1642; width: 100%; max-width: 340px; margin: 0 auto; }
  .mship-map figcaption { max-width: 340px; margin: 12px auto 0; }
  .mship-wrap { padding: 32px 18px 64px; }
  .mship-wrap h1 { font-size: 28px; }
}

/* ── Campaign window (off-season, ≥ 30 extra days) — direction A ──────────────
   Rendered only when plans.yearly_offer() says framing == "campaign" (see
   medlemskap.html). The banner and the period headline make the OFFER the loudest
   thing on the page; the monthly card steps back so the annual card and the map
   are the two things a desktop visitor sees. Outside the window none of these
   classes is emitted and the ordinary cards above apply unchanged. */
.camp-banner {
  margin: 4px 0 18px; padding: 14px 18px; border-radius: 12px;
  /* #C2560A: same orange as the site-wide bar (promo-banner.css); white text on
     the old #D97706 was 3.2:1. */
  background: #C2560A; color: #fff; font-size: 17px; line-height: 1.4; text-wrap: balance;
}
.camp-banner strong { font-weight: 700; }
/* Annual ~2× the monthly column. Same top edge and same height (grid stretch);
   the monthly card steps back by width and colour, not by position. */
.mship-offer .camp-prices { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: stretch; }
.plan.featured.camp-annual { padding: 28px 26px; }
.camp-kicker {
  margin: 0 0 6px; font-size: 13px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: #92400E;
}
.camp-period { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.camp-now { font-family: var(--display); font-weight: 600; font-size: 52px; line-height: 1.02; color: var(--natt); }
.camp-was { font-size: 17px; color: #8a949a; text-decoration-thickness: 2px; }
.camp-price { font-family: var(--display); font-weight: 500; font-size: 30px; line-height: 1.1; color: var(--natt); margin-top: 10px; }
/* Second-largest element on the card, by brief. #B45309 not #D97706: white-ground
   text needs the darker amber for contrast (4.9:1). */
.camp-per { font-size: 21px; font-weight: 650; color: #B45309; margin-top: 4px; }
.camp-honest { font-size: 14px; color: var(--ink); margin: 12px 0 0; }
.nowrap { white-space: nowrap; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
/* Monthly: present, priced, clickable — visibly the second choice by width,
   muted text and an outline button. */
/* White like the annual card, thin 1px --line border (no accent, no shadow). */
.plan.camp-quiet { background: #fff; border-color: var(--line); padding: 18px; }
.camp-quiet .plan-name { font-size: 15px; color: var(--muted); }
.camp-quiet .plan-price { font-size: 22px; color: #4c5a63; }
.camp-quiet .plan-tackle, .camp-quiet .plan-note { font-size: 13px; }
.camp-quiet .plan-cta {
  background: transparent; border-color: #c9c3b6; color: #4c5a63; padding: 9px 14px; font-size: 14px;
}
@media (max-width: 760px) {
  .mship-offer .camp-prices { grid-template-columns: 1fr; }
  .camp-banner { font-size: 16px; }
  .camp-now { font-size: 44px; }
}
