/* Snabel nettside — sideramme og mønstre som går igjen på alle sidene.
   Komponentene ligger i snabel.css (sn-), tokens i tokens.css. */

html { scroll-behavior: smooth; }
.site { background: var(--paper); color: var(--ink); font-family: var(--font-sans); font-weight: 400; }
a { color: var(--ink); }
a:hover { color: var(--ink-muted); }
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }

/* ---------- Meny ---------- */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: relative; }
.site-nav { max-width: var(--container); margin: 0 auto; padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-links { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; font-size: 15px; }
.site-links a:not(.sn-btn) { color: var(--ink); text-decoration: none; }
.site-links a:not(.sn-btn):hover { color: var(--ink-muted); }
.site-links a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.site-menu { display: none; position: relative; }
.site-menu > summary { min-height: 40px; padding: 0 14px; font-size: 15px; }
.site-menu-panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; min-width: 240px; display: flex; flex-direction: column; gap: 4px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: 0 12px 32px -4px rgba(26, 25, 25, 0.12); }
.site-menu-panel a:not(.sn-btn) { display: block; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; font-size: 16px; }
.site-menu-panel a:not(.sn-btn):hover { background: var(--paper); }
.site-menu-panel a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.site-menu-panel .sn-btn { margin-top: 8px; }
@media (max-width: 860px) {
  .site-links { display: none; }
  .site-menu { display: block; }
}

/* ---------- Seksjoner ---------- */
.pg { padding: 112px 24px; }
.pg-hero { padding: 96px 24px 72px; }
.pg-surface { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pg-surface + .pg-surface { border-top: 0; }
.pg-wrap { max-width: var(--container); margin: 0 auto; display: flex; flex-direction: column; gap: 64px; }
.pg-wrap-narrow { max-width: 880px; }
.pg-gap-sm { gap: 40px; }
.pg-head { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.pg-h1 { margin: 0; font-family: var(--font-display); font-size: clamp(2.5rem, 4.8vw + 1rem, 4.5rem); line-height: 1.02; font-weight: 500; letter-spacing: -0.035em; text-wrap: balance; }
.pg-h1-sm { font-size: clamp(2.25rem, 3vw + 1rem, 3.5rem); line-height: 1.04; }
.pg-h2 { margin: 0; font-family: var(--font-display); font-size: clamp(2rem, 2vw + 1.3rem, 2.75rem); line-height: 1.08; font-weight: 500; letter-spacing: -0.03em; text-wrap: balance; }
.pg-h3 { margin: 0; font-family: var(--font-display); font-size: 28px; line-height: 1.18; font-weight: 500; letter-spacing: -0.02em; }
.pg-lead { margin: 4px 0 0; font-size: 20px; line-height: 1.55; max-width: var(--measure); text-wrap: pretty; }
.pg-text { margin: 0; font-size: 17px; line-height: 1.6; max-width: var(--measure); text-wrap: pretty; }
.pg-muted { color: var(--ink-muted); }
.pg-note { font: 400 12px/1.5 var(--font-mono); color: var(--ink-muted); }
.pg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 40px 32px; }
.pg-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 40px 48px; }
.pg-split { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.pg-split-reverse { flex-wrap: wrap-reverse; }
.pg-split-text { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.pg-split-media { flex: 2 1 560px; min-width: 0; }
.pg-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.pg-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pg-hero .sn-status, .pg-head .sn-status { align-self: flex-start; }
.pg-link { font-size: 16px; }
@media (max-width: 760px) {
  .pg, .pg-hero { padding: 72px 24px; }
  .pg-wrap { gap: 48px; }
}

/* ---------- Prosa (personvern, lengre tekst) ---------- */
.pg-prose { max-width: var(--measure); font-size: 17px; line-height: 1.6; }
.pg-prose p { margin: 0 0 16px; text-wrap: pretty; }
.pg-prose h2 { margin: 40px 0 12px; font: 600 20px/1.3 var(--font-display); letter-spacing: -0.01em; }
.pg-prose h2:first-child { margin-top: 0; }
.pg-prose ul { margin: 0 0 16px; padding-left: 22px; }
.pg-prose li { margin: 0 0 6px; }

/* ---------- Steg (nummererte lister under hero) ---------- */
.pg-steps { list-style: none; margin: 0; padding: 0 10px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 16px 24px; }
.pg-steps li { display: flex; flex-direction: column; gap: 6px; padding-top: 12px; border-top: 1px solid var(--line-strong); }
.pg-steps .idx { font: 400 12px/1.4 var(--font-mono); color: var(--ink-muted); }
.pg-steps li:first-child .idx { color: var(--signal-ink); }
.pg-steps .txt { font-size: 15px; line-height: 1.45; }

/* ---------- Spørsmål og svar ---------- */
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; min-height: 44px; font: 600 19px/1.3 var(--font-display); letter-spacing: -0.01em; }
.faq .faq-plus { font: 400 22px/1 var(--font-mono); color: var(--ink-muted); transition: transform 0.2s; }
.faq details[open] .faq-plus { transform: rotate(45deg); }
.faq p { margin: 0 0 24px; font-size: 17px; line-height: 1.6; max-width: 720px; }
.faq p + p { margin-top: -12px; }

/* ---------- Verktøyliste (for utviklere) ---------- */
.tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 32px 40px; }
.tools h3 { margin: 0 0 12px; font: 600 16px/1.3 var(--font-display); letter-spacing: -0.01em; }
.tools ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Avslutning ---------- */
.pg-cta { padding: 0 24px 112px; }
.pg-cta-box { max-width: var(--container); margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: clamp(32px, 6vw, 72px); display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-end; justify-content: space-between; }
.pg-cta-text { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.pg-cta-text h2 { margin: 0; font-family: var(--font-display); font-size: clamp(2rem, 2.4vw + 1.2rem, 3.25rem); line-height: 1.04; font-weight: 500; letter-spacing: -0.035em; text-wrap: balance; }
.pg-cta-text p { margin: 0; font-size: 18px; line-height: 1.55; max-width: 560px; }
@media (max-width: 760px) { .pg-cta { padding-bottom: 72px; } }

/* ---------- Bunntekst ---------- */
.site-footer { background: var(--paper); border-top: 1px solid var(--line); padding: 56px 24px 48px; }
.site-footer-inner { max-width: var(--container); margin: 0 auto; display: flex; flex-direction: column; gap: 40px; }
.site-footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 32px; }
.site-footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.site-footer-col a { text-decoration: none; }
.site-footer-label { font: 500 12px/1.4 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.site-footer-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding-top: 20px; border-top: 1px solid var(--line); font: 400 12px/1.5 var(--font-mono); color: var(--ink-muted); }
.site-footer-meta a { color: var(--ink-muted); }
.site-footer-meta a:hover { color: var(--ink); }

/* ---------- Mediaramme: animasjonene tegner sitt eget vindu, rammen er usynlig ---------- */
.sn-frame { padding: 0; }
.sn-figcaption { padding: 0; }
.sn-frame-inner { background: transparent; border: 0; border-radius: 0; overflow: visible; }

/* ---------- Tabeller på pris- og utviklersiden ---------- */
.tier-table th, .tier-table td { padding: 12px 16px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tier-table th:first-child, .tier-table td:first-child { text-align: left; }
.tier-table thead th { font: 500 12px/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); background: var(--paper); }
.tier-table tbody td { font: 400 15px/1.4 var(--font-sans); font-variant-numeric: tabular-nums; }
.tier-table tbody tr:last-child td { border-bottom: 0; }
.tool-table th, .tool-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.tool-table thead th { font: 500 12px/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); background: var(--paper); }
.tool-table tbody td { font: 400 15px/1.5 var(--font-sans); }
.tool-table tbody tr:last-child td { border-bottom: 0; }

/* ---------- Juridiske sider ---------- */
.legal h2 { margin: 48px 0 12px; font: 600 24px/1.25 var(--font-display); letter-spacing: -0.015em; }
.legal p, .legal li { font-size: 17px; line-height: 1.65; }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 14px; padding-left: 20px; }
.legal .ph { font-family: var(--font-mono); font-size: 14px; color: var(--signal-ink); }

/* ---------- Kontaktskjema-aktig liste ---------- */
.pg-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 24px 32px; }
.pg-facts div { display: flex; flex-direction: column; gap: 6px; padding-top: 14px; border-top: 1px solid var(--line-strong); }
.pg-facts .lbl { font: 500 12px/1.4 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.pg-facts .val { font-size: 17px; line-height: 1.5; }
