/* Felles stil for familiekabalen.no */
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 600 800; font-display: swap; src: url('fonts/bricolage-grotesque-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('fonts/figtree-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/ibm-plex-mono-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/ibm-plex-mono-500-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Kabal, samme palett som appen (Ferieplanlegger/css/style.css).
   --accent og --cta er blekk. Farge kommer fra de fire merkefargene, som også er dagtypene i appen:
   --red = helligdag, --orange/--orange-day = barnehage stengt (plomme), --blue = skolefri, --ferie = ferie.
   --orange-soft/--orange-ink = varsel og «kommer senere» (varm sand). Token-navnene er beholdt fra før. */
:root {
  --ground: #f6f4f0;
  --paper: #ffffff;
  --ink: #1b2233;
  --muted: #5e6472;
  --line: #e4e1da;
  --accent: #1f2a44;
  --accent-ink: #f6f4f0;
  --accent-soft: #e6e9f0;
  --cta: #1f2a44;
  --cta-ink: #f6f4f0;
  --cta-hover: #2b3a5c;
  --red: #bd4239;
  --red-soft: #f1d6d2;
  --red-ink: #7d3a31;
  --orange: #7a4e7e;
  --orange-day: #7a4e7e;
  --orange-day-ink: #ffffff;
  --orange-soft: #f3e6d8;
  --orange-ink: #8a5a2b;
  --blue: #4f6fa3;
  --blue-soft: #dde5f2;
  --ferie: #4e7a60;
  --ferie-soft: #dbe8df;
  --ferie-ink: #2e5140;
  --shadow: 0 1px 2px rgba(27,34,51,.05), 0 10px 30px rgba(27,34,51,.07);
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Figtree", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #10141c; --paper: #181e2a; --ink: #ece8e1; --muted: #a3a9b5; --line: #283041;
    --accent: #ece8e1; --accent-ink: #10141c; --accent-soft: #232b3b;
    --cta: #ece8e1; --cta-ink: #10141c; --cta-hover: #ffffff;
    --red: #9a3a32; --red-soft: #3e2624; --red-ink: #e7a89f;
    --orange: #6a4470; --orange-day: #6a4470; --orange-day-ink: #ffffff; --orange-soft: #33281e; --orange-ink: #d9a877;
    --blue: #4a6a9e; --blue-soft: #22304a; --ferie: #3f6b52; --ferie-soft: #20332a; --ferie-ink: #a9cdb6;
    --shadow: none; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #10141c; --paper: #181e2a; --ink: #ece8e1; --muted: #a3a9b5; --line: #283041;
  --accent: #ece8e1; --accent-ink: #10141c; --accent-soft: #232b3b;
  --cta: #ece8e1; --cta-ink: #10141c; --cta-hover: #ffffff;
  --red: #9a3a32; --red-soft: #3e2624; --red-ink: #e7a89f;
  --orange: #6a4470; --orange-day: #6a4470; --orange-day-ink: #ffffff; --orange-soft: #33281e; --orange-ink: #d9a877;
  --blue: #4a6a9e; --blue-soft: #22304a; --ferie: #3f6b52; --ferie-soft: #20332a; --ferie-ink: #a9cdb6;
  --shadow: none; color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
.wrap { max-width: 1080px; margin: 0 auto; padding-inline: 20px; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.025em; text-wrap: balance; margin: 0; }
h1 { font-weight: 800; font-size: clamp(2.4rem, 6.4vw, 4.3rem); line-height: 0.98; }
h2 { font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.05; }
h3 { font-weight: 600; font-size: 1.15rem; line-height: 1.25; }
p { margin: 0; }
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.kicker { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
/* De fire merkefargene som liten stripe foran overskriftsetiketter. Merkefargene er faste i både lys og mørk modus. */
.kicker::before { content: ""; display: inline-block; width: 33px; height: 6px; margin-right: 10px; vertical-align: 2px; background: linear-gradient(#bd4239,#bd4239) 0 0/6px 6px no-repeat, linear-gradient(#7a4e7e,#7a4e7e) 9px 0/6px 6px no-repeat, linear-gradient(#4f6fa3,#4f6fa3) 18px 0/6px 6px no-repeat, linear-gradient(#4e7a60,#4e7a60) 27px 0/6px 6px no-repeat; }
.muted { color: var(--muted); }

/* Topp */
.top { padding-block: 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.mark { width: 24px; height: 24px; display: block; flex: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--body); font-weight: 600; font-size: 16px; padding: 12px 20px; border-radius: 10px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); text-decoration: none; cursor: pointer; }
.btn.primary { background: var(--cta); border-color: var(--cta); color: var(--cta-ink); }
.btn.primary:hover { background: var(--cta-hover); border-color: var(--cta-hover); }
.btn.small { padding: 8px 14px; font-size: 14px; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding-block: 36px 72px; }
.hero .lede { font-size: 1.2rem; line-height: 1.5; margin-top: 22px; max-width: 34em; color: var(--muted); }
.hero .lede b { color: var(--ink); font-weight: 600; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; align-items: center; }
.hero .cta small { font-size: 14px; color: var(--muted); }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; gap: 36px; padding-block: 16px 56px; } }

/* Hero-illustrasjon: meldinger fra appene samles til én beslutning */
.inbox { position: relative; display: grid; gap: 10px; }
.msg { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; box-shadow: var(--shadow); font-size: 14px; }
.msg .src { grid-row: span 2; align-self: center; font-family: var(--mono); font-size: 11px; padding: 3px 7px; border-radius: 6px; background: var(--ground); color: var(--muted); white-space: nowrap; }
.msg .who { font-size: 12px; color: var(--muted); }
.msg:nth-child(1) { margin-right: 44px; }
.msg:nth-child(2) { margin-left: 30px; margin-right: 14px; }
.msg:nth-child(3) { margin-right: 60px; }
.msg:nth-child(4) { margin-left: 18px; }
.funnel-arrow { height: 34px; display: grid; place-items: center; color: var(--muted); font-family: var(--mono); font-size: 12px; }
.funnel-arrow span { display: flex; align-items: center; gap: 8px; }
.funnel-arrow span::before, .funnel-arrow span::after { content: ""; width: 40px; height: 1px; background: var(--line); }
.decision { background: var(--paper); border: 2px solid var(--accent); border-radius: 14px; padding: 16px; box-shadow: var(--shadow); }
.decision .head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.decision .date { font-family: var(--display); font-weight: 800; font-size: 1.2rem; }
.decision .week { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin: 12px 0; }
.days span { aspect-ratio: 1; border-radius: 6px; display: grid; place-items: center; font-family: var(--mono); font-size: 12px; border: 1px solid var(--line); background: var(--paper); }
.days .we { background: var(--ground); color: var(--muted); border-color: transparent; }
.days .bhg { background: var(--orange-day); color: var(--orange-day-ink); border-color: transparent; font-weight: 500; }
.days .ferie { background: var(--ferie); color: #ffffff; border-color: transparent; }
.flags { display: flex; flex-wrap: wrap; gap: 6px; }
.flag { font-size: 13px; padding: 3px 10px; border-radius: 999px; background: var(--ground); }
.flag.warn { background: var(--red-soft); color: var(--red-ink); }
.flag.ok { background: var(--ferie-soft); color: var(--ferie-ink); }
.flag.due { background: var(--orange-soft); color: var(--orange-ink); }

/* Seksjoner */
section { padding-block: 72px; }
@media (max-width: 720px) {
  section { padding-block: 48px; }
  .sec-head { margin-bottom: 24px; }
  .hero { padding-block: 8px 44px; }
  .feature { padding: 20px; }
  .msg:nth-child(n) { margin-left: 0; margin-right: 0; }
  .inbox { gap: 8px; }
  .msg { padding: 9px 12px; }
}
.mobile-cta { display: none; }
@media (max-width: 720px) {
  .mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: block; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--paper); border-top: 1px solid var(--line); transition: transform .2s ease; }
  .mobile-cta .btn { width: 100%; }
  .mobile-cta[data-hidden="true"] { transform: translateY(110%); }
  body { padding-bottom: 76px; }
}
section.band { background: var(--paper); border-block: 1px solid var(--line); }
.sec-head { display: grid; gap: 12px; max-width: 42rem; margin-bottom: 36px; }
.sec-head p { font-size: 1.1rem; color: var(--muted); }

/* Problemet */
.kids { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.kid { border: 1px solid var(--line); border-radius: 14px; padding: 20px; background: var(--ground); }
.kid .row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.kid .age { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.apps { display: flex; flex-wrap: wrap; gap: 8px; }
.app { font-family: var(--mono); font-size: 13px; padding: 6px 10px; border-radius: 8px; background: var(--paper); border: 1px solid var(--line); }
.app small { display: block; font-family: var(--body); font-size: 12px; color: var(--muted); }
.tally { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; font-size: 1.05rem; }
.tally b { font-family: var(--display); font-weight: 800; font-size: 2.2rem; letter-spacing: -0.03em; line-height: 1; }

/* Funksjoner */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.feature { background: var(--paper); padding: 26px; display: grid; gap: 10px; align-content: start; }
.feature .sw { display: flex; gap: 4px; }
.feature .sw i { width: 16px; height: 16px; border-radius: 4px; display: block; }
.feature p { color: var(--muted); }
.feature .eg { font-family: var(--mono); font-size: 13px; color: var(--ink); background: var(--ground); border-radius: 8px; padding: 8px 10px; }
@media (max-width: 720px) { .features { grid-template-columns: 1fr; } }
.screens { margin-top: 40px; display: grid; grid-template-columns: repeat(2, minmax(0, 300px)); gap: 28px; justify-content: center; }
.screens figure { margin: 0; display: grid; gap: 10px; }
.screens img { width: 100%; height: auto; display: block; border-radius: 22px; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--paper); }
.screens figcaption { font-size: 14px; color: var(--muted); text-align: center; }
@media (max-width: 720px) {
  .screens { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; margin-inline: -20px; padding-inline: 20px; padding-bottom: 6px; justify-content: flex-start; }
  .screens figure { flex: 0 0 72%; scroll-snap-align: center; }
}

/* Innhenting */
.sources { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.source { border: 1px solid var(--line); border-radius: 14px; padding: 22px; display: grid; gap: 10px; align-content: start; background: var(--ground); }
.source .status { justify-self: start; font-family: var(--mono); font-size: 11px; letter-spacing: .04em; padding: 3px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.source .status.later { background: var(--orange-soft); color: var(--orange-ink); }
.source p { color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .sources { grid-template-columns: 1fr; } }
.promise { margin-top: 20px; font-size: 15px; color: var(--muted); max-width: 44rem; }

/* Pris */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 820px; }
.plan { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 28px; display: grid; gap: 16px; align-content: start; }
.plan.featured { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.plan .price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.plan .price b { font-family: var(--display); font-weight: 800; font-size: 2.6rem; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.plan .price s { color: var(--muted); font-size: 1.1rem; }
.plan .price span { color: var(--muted); }
.plan .deal { font-size: 14px; background: var(--accent-soft); color: var(--accent); padding: 8px 12px; border-radius: 8px; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: 15px; }
.plan li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; }
.plan li::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--accent); margin-top: 7px; }
.plan li.soon::before { background: transparent; box-shadow: inset 0 0 0 2px var(--orange-ink); }
.plan li em { font-style: normal; font-size: 12px; font-family: var(--mono); color: var(--orange-ink); margin-left: 4px; }
@media (max-width: 720px) { .plans { grid-template-columns: 1fr; } }

/* Venteliste */
.join { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .join { grid-template-columns: 1fr; gap: 28px; } }
form { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 26px; display: grid; gap: 18px; box-shadow: var(--shadow); }
.field { display: grid; gap: 6px; }
.field > label, fieldset legend { font-weight: 600; font-size: 15px; }
.hint { font-size: 13px; color: var(--muted); font-weight: 400; }
input[type="email"], input[type="text"], select { font: inherit; font-size: 16px; color: var(--ink); background: var(--ground); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; width: 100%; min-width: 0; }
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .two { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-block; font-size: 14px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--ground); cursor: pointer; }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.consent { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 14px; color: var(--muted); }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { font-size: 15px; padding: 12px 14px; border-radius: 10px; }
.form-msg.ok { background: var(--accent-soft); color: var(--accent); }
.form-msg.err { background: var(--red-soft); color: var(--red-ink); }
.form-msg.info { background: var(--orange-soft); color: var(--ink); }
.join ul { padding-left: 18px; margin: 16px 0 0; display: grid; gap: 8px; color: var(--muted); }

/* FAQ */
.faq { display: grid; gap: 0; max-width: 760px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative; font-family: var(--display); font-weight: 600; font-size: 1.1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 1.4rem; color: var(--muted); font-family: var(--body); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 18px; color: var(--muted); max-width: 62ch; }

footer { padding-block: 36px 48px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
footer .wrap { display: grid; gap: 10px; }

/* Artikler */
.article { max-width: 780px; margin: 0 auto; padding-inline: 20px; padding-block: 12px 64px; }
.article header.intro { padding-block: 16px 8px; }
.article h1 { font-size: clamp(2.1rem, 5.4vw, 3.2rem); line-height: 1.02; margin-top: 12px; }
.article .byline { font-size: 14px; color: var(--muted); margin-top: 14px; }
.article h2 { font-size: clamp(1.45rem, 3.4vw, 1.9rem); margin: 48px 0 12px; }
.article h3 { margin: 28px 0 8px; }
.article p { margin: 0 0 14px; max-width: 66ch; }
.article ul, .article ol { margin: 0 0 16px; padding-left: 22px; max-width: 66ch; }
.article li { margin-bottom: 6px; }
.answer { margin-top: 26px; background: var(--paper); border: 2px solid var(--accent); border-radius: 14px; padding: 20px 22px; }
.answer h2 { margin: 0 0 10px; font-size: 1.15rem; }
.answer ul { margin: 0; }
.answer li { margin-bottom: 8px; }
.table-wrap { overflow-x: auto; margin: 8px 0 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.article table { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 520px; }
.article th, .article td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.article tr:last-child td { border-bottom: 0; }
.article th { font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: .03em; color: var(--muted); background: var(--ground); }
.article td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.article tr.lost td { color: var(--muted); }
.pill { display: inline-block; font-size: 12px; padding: 2px 9px; border-radius: 999px; background: var(--ground); white-space: nowrap; }
.pill.good { background: var(--accent-soft); color: var(--accent); }
.pill.bad { background: var(--red-soft); color: var(--red-ink); }
.tip { background: var(--orange-soft); border-radius: 12px; padding: 14px 16px; margin: 6px 0 18px; max-width: 66ch; }
.tip b { color: var(--orange-ink); }
.cta-box { margin-top: 48px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: grid; gap: 12px; }
.cta-box h2 { margin: 0; }
.cta-box .btn { justify-self: start; }
.article .faq { margin-top: 8px; }
.sources-list { font-size: 14px; color: var(--muted); }
.crumbs { font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.pill.warn { background: var(--orange-soft); color: var(--orange-ink); }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 10px 0 20px; }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.stat b { display: block; font-family: var(--display); font-weight: 800; font-size: 2rem; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat span { font-size: 14px; color: var(--muted); }
