/* ============================================================
   Velkommen-side, Suksess med netthandel
   Tokens hentet fra vekst.suksessmednetthandel.no og
   event.suksessmednetthandel.no (SMN design contract)
   ============================================================ */
:root {
  /* Farger */
  --color-primary: #161321;   /* mørk: knapper, topplinje, footer */
  --color-secondary: #f6f6f3; /* myk seksjonsbakgrunn */
  --color-accent: #eb5708;    /* aksent: prikker, ikoner, uthevet tekst */
  --color-text: #161321;
  --color-bg: #ffffff;
  --color-muted: #565360;
  --color-border: #e5e4e2;

  /* Typografi */
  --font-heading: 'Fraunces', Georgia, serif;
  --font-body: 'Hanken Grotesk', system-ui, sans-serif;

  /* Form og dybde */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.10), 0 1px 2px -1px rgba(0,0,0,0.10);
  --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.10), 0 4px 6px -4px rgba(0,0,0,0.10);
  --radius-card: 16px;
  --radius-btn: 10px;

  /* Layout */
  --content-max: 1200px;
  --narrow-max: 780px;
  --section-pad: 80px;
  --section-pad-mobile: 48px;
}

/* Fraunces + Hanken Grotesk: samme woff2-filer som referansesidene, selvhostet for ytelse */
/* latin-ext */
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(fonts/6NU78FyLNQOQZAnv9bYEvDiIdE9Ea92uemAk_WBq8U_9v0c2Wa0KxCFTeP2Xz5fU8w.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* latin */
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(fonts/6NU78FyLNQOQZAnv9bYEvDiIdE9Ea92uemAk_WBq8U_9v0c2Wa0KxC9TeP2Xz5c.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; }
/* latin-ext */
@font-face { font-family: 'Fraunces'; font-style: italic; font-weight: 400 500; font-display: swap; src: url(fonts/6NU58FyLNQOQZAnv9ZwNjucMHVn85Ni7emAe9lKqZTnbB-gzTK0K1ChjdPeQ7ZXk8kD6.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* latin */
@font-face { font-family: 'Fraunces'; font-style: italic; font-weight: 400 500; font-display: swap; src: url(fonts/6NU58FyLNQOQZAnv9ZwNjucMHVn85Ni7emAe9lKqZTnbB-gzTK0K1ChjeveQ7ZXk8g.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; }
/* latin-ext */
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/ieVn2YZDLWuGJpnzaiwFXS9tYtpT59CxCis4UvI.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* latin */
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/ieVn2YZDLWuGJpnzaiwFXS9tYtpd59CxCis4.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; }

/* ---------- Grunnlag ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { font-family: var(--font-body); color: var(--color-text); background: var(--color-bg); font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }

/* Synlig fokus på alle lenker og knapper */
a:focus-visible, button:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; }

.container { max-width: var(--content-max); margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: var(--narrow-max); }
.section { padding: var(--section-pad) 0; }
.section--soft { background: var(--color-secondary); }

h1, h2, h3 { font-family: var(--font-heading); font-weight: 500; line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 20px; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin-bottom: 16px; }
h3 { font-size: 1.25rem; margin-bottom: 8px; font-family: var(--font-body); font-weight: 700; }
.lead { font-size: 1.125rem; color: var(--color-muted); max-width: 620px; }
.em-accent { font-style: italic; color: var(--color-accent); }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--color-border); background: #ffffff; color: var(--color-text); border-radius: 999px; padding: 6px 14px; font-size: 0.875rem; font-weight: 600; margin-bottom: 20px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--color-accent); }
.eyebrow-num { font-weight: 700; font-variant-numeric: tabular-nums; padding-right: 8px; border-right: 1px solid var(--color-border); }

.btn { display: inline-block; font-family: var(--font-body); font-weight: 600; font-size: 1.0625rem; text-decoration: none; text-align: center; cursor: pointer; border: none; transition: opacity 0.15s ease; min-height: 44px; }
.btn--accent { background: var(--color-primary); color: #ffffff; padding: 16px 32px; border-radius: var(--radius-btn); }
.btn--accent:hover { opacity: 0.9; }
.btn--secondary { background: transparent; color: var(--color-primary); padding: 15px 31px; border-radius: 999px; border: 1px solid var(--color-primary); }
.btn--secondary:hover { background: var(--color-secondary); }
.btn-note { font-size: 0.875rem; color: var(--color-muted); margin-top: 10px; }

.card { background: #ffffff; border: 1px solid var(--color-border); border-radius: var(--radius-card); padding: 32px; box-shadow: var(--shadow-md); }
.card h3 { margin-bottom: 6px; }
.card p { color: var(--color-muted); }

/* ---------- Topplinje ---------- */
.topbar { background: var(--color-primary); padding: 16px 0; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.topbar-logo { height: clamp(16px, 4.6vw, 24px); width: auto; }
.badge { display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; border: 1px solid rgba(255,255,255,0.25); color: #ffffff; border-radius: 999px; padding: 5px 12px; font-size: 0.8125rem; font-weight: 600; white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--color-accent); }

/* ---------- Hero og video ---------- */
.hero { padding: 64px 0 36px; text-align: center; }
.hero-h1 { font-size: clamp(1.85rem, 4.4vw, 3.1rem); }
/* «Suksess med netthandel!» brytes aldri over to linjer */
.nowrap { white-space: nowrap; }
@media (max-width: 360px) { .hero-h1 { font-size: 1.6rem; } }
.hero .lead { margin: 0 auto; }

.video-section { padding-bottom: var(--section-pad); }
.video-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: var(--color-primary); border-radius: var(--radius-btn); overflow: hidden; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.video-ph .play { width: 74px; height: 74px; border-radius: 50%; background: var(--color-accent); display: flex; align-items: center; justify-content: center; }
.video-ph .play::before { content: ""; display: block; border-style: solid; border-width: 13px 0 13px 22px; border-color: transparent transparent transparent #ffffff; margin-left: 5px; }
.video-ph-label { color: rgba(255,255,255,0.75); font-size: 0.9rem; font-weight: 600; letter-spacing: 0.04em; }
.video-note { margin-top: 16px; color: var(--color-muted); font-size: 0.9375rem; text-align: center; }

/* ---------- Innhold ---------- */
.prose p { font-size: 1.0625rem; }
.prose p + p { margin-top: 1em; }
.prose .prose-strong { font-weight: 700; }

.numbered { list-style: none; display: grid; gap: 24px; counter-reset: n; margin-top: 36px; }
.numbered li { display: flex; gap: 18px; align-items: flex-start; counter-increment: n; }
.numbered li::before { content: counter(n); flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; background: var(--color-primary); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.numbered strong { display: block; margin-bottom: 4px; font-size: 1.0625rem; }
.numbered span { color: var(--color-muted); }

.sub-label { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-muted); margin: 44px 0 14px; }

.card-grid { display: grid; gap: 16px; grid-template-columns: 1fr; margin-top: 28px; }
.sub-label + .card-grid { margin-top: 0; }
.card--small { padding: 24px; box-shadow: var(--shadow-sm); }
.card--spor { padding: 24px; border-top: 4px solid var(--color-accent); }

.checklist { list-style: none; display: grid; gap: 14px; margin-top: 28px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; font-size: 1.0625rem; }
.checklist li::before { content: ""; flex: 0 0 auto; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%; background: var(--color-accent); -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="black" d="M9 16.2l-3.5-3.5L4 14.2 9 19.2 20 8.2l-1.5-1.5z"/></svg>') center/contain no-repeat; mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="black" d="M9 16.2l-3.5-3.5L4 14.2 9 19.2 20 8.2l-1.5-1.5z"/></svg>') center/contain no-repeat; }

.after-text { margin-top: 28px; font-size: 1.0625rem; }

.praktisk { display: grid; margin-top: 28px; border: 1px solid var(--color-border); border-radius: var(--radius-card); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); }
.praktisk .rad { display: grid; grid-template-columns: 1fr; gap: 4px; padding: 18px 22px; }
.praktisk .rad + .rad { border-top: 1px solid var(--color-border); }
.praktisk dt { font-weight: 700; }
.praktisk dd { color: var(--color-muted); }
.praktisk dd a { color: var(--color-text); font-weight: 600; }

.callout { margin-top: 28px; padding-left: 16px; border-left: 3px solid var(--color-accent); font-size: 1.0625rem; font-weight: 600; }

/* ---------- Booking: mørk seksjon, tekst til venstre og kalenderkort til høyre på desktop ---------- */
.section--dark { background: var(--color-primary); color: #ffffff; }
.section--dark .prose p { color: rgba(255,255,255,0.78); }
.section--dark .prose .prose-strong { color: #ffffff; }
.section--dark .btn--secondary { color: #ffffff; border-color: rgba(255,255,255,0.5); }
.section--dark .btn--secondary:hover { background: rgba(255,255,255,0.08); }

.booking-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; max-width: 1100px; }
.booking-label { margin-top: 32px; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-accent); }
.booking-label.is-booked { color: #ffffff; }
.calendly-wrap { background: var(--color-secondary); border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-md); }
.calendly-inline-widget { height: 960px; }
.booking-fallback { margin-top: 20px; text-align: center; }

/* ---------- Avslutning ---------- */
.closing { text-align: center; }
.closing h2 { margin-bottom: 28px; }

/* ---------- Footer (identisk med referansesidene) ---------- */
.site-footer { background: var(--color-primary); color: rgba(255,255,255,0.7); padding: 48px 0; font-size: 0.9rem; }
.site-footer .footer-inner { display: flex; flex-direction: column; gap: 18px; align-items: center; text-align: center; }
.site-footer img { height: 22px; width: auto; }
.site-footer a { color: rgba(255,255,255,0.7); }
.site-footer .footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: center; }

/* ---------- Brytpunkter ---------- */
@media (min-width: 641px) {
  .card-grid--2 { grid-template-columns: 1fr 1fr; }
  .praktisk .rad { grid-template-columns: 190px 1fr; gap: 16px; }
}
@media (min-width: 821px) {
  .card-grid--3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1025px) {
  .booking-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }
  .booking-text { position: sticky; top: 40px; }
}
@media (max-width: 640px) {
  .section { padding: var(--section-pad-mobile) 0; }
  .hero { padding: 40px 0 28px; }
  .video-section { padding-bottom: var(--section-pad-mobile); }
  .card { padding: 24px; }
  .btn { width: 100%; }
  .calendly-inline-widget { height: 900px; }
}
