:root{
  --navy:#1b2430;
  --navy-2:#232f40;
  --paper:#f7f4ec;
  --paper-2:#efe9db;
  --ink:#20242c;
  --ink-soft:#565f6d;
  --gold:#c99a2e;
  --gold-dark:#a87f22;
  --line:#ddd5c0;
  --line-dark:#39465a;
  --green:#2f7a4d;
  --red:#af4234;
  --white:#ffffff;
  --radius:10px;
  --shadow:0 8px 24px rgba(27,36,48,0.10);
  --serif: Georgia, 'Times New Roman', Times, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0; font-family:var(--sans); color:var(--ink); background:var(--paper);
  line-height:1.55;
}
h1,h2,h3,h4{font-family:var(--serif); font-weight:700; margin:0 0 .4em; color:var(--navy);}
p{margin:0 0 1em;}
a{color:inherit;}
.wrap{max-width:1120px; margin:0 auto; padding:0 24px;}
.wrap-narrow{max-width:760px; margin:0 auto; padding:0 24px;}
img{max-width:100%; display:block;}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex; align-items:center; gap:8px; justify-content:center;
  padding:13px 22px; border-radius:8px; font-size:15px; font-weight:600;
  text-decoration:none; cursor:pointer; border:1px solid transparent; font-family:var(--sans);
  transition:transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:active{transform:translateY(1px);}
.btn-gold{background:var(--gold); color:var(--navy);}
.btn-gold:hover{background:var(--gold-dark);}
.btn-outline{background:transparent; border-color:var(--navy); color:var(--navy);}
.btn-outline:hover{background:var(--navy); color:#fff;}
.btn-outline-light{background:transparent; border-color:rgba(255,255,255,.5); color:#fff;}
.btn-outline-light:hover{background:rgba(255,255,255,.12);}
.btn-navy{background:var(--navy); color:#fff;}
.btn-navy:hover{background:var(--navy-2);}
.btn-sm{padding:8px 14px; font-size:13px; border-radius:6px;}
.btn-danger{background:transparent; border-color:var(--red); color:var(--red);}
.btn-danger:hover{background:var(--red); color:#fff;}
.btn-block{width:100%;}
.btn[disabled]{opacity:.45; cursor:not-allowed;}

/* ---------- badges/tags ---------- */
.tag{
  display:inline-block; padding:4px 10px; border-radius:100px; font-size:12.5px;
  font-weight:600; background:var(--paper-2); color:var(--ink-soft); border:1px solid var(--line);
}
.tag-gold{background:rgba(201,154,46,.15); color:var(--gold-dark); border-color:rgba(201,154,46,.35);}
.tag-green{background:rgba(47,122,77,.12); color:var(--green); border-color:rgba(47,122,77,.3);}
.tag-red{background:rgba(175,66,52,.12); color:var(--red); border-color:rgba(175,66,52,.3);}
.tag-soon{background:#e8e2d2; color:#8a8267; border-style:dashed;}

/* ---------- alerts ---------- */
.alert{border-radius:8px; padding:14px 16px; font-size:14.5px; margin-bottom:20px;}
.alert-success{background:rgba(47,122,77,.1); border:1px solid rgba(47,122,77,.35); color:var(--green);}
.alert-error{background:rgba(175,66,52,.1); border:1px solid rgba(175,66,52,.35); color:var(--red);}
.alert-info{background:var(--paper-2); border:1px solid var(--line); color:var(--ink-soft);}

/* ---------- public site header/footer ---------- */
.site-header{
  background:var(--navy); color:#fff; position:sticky; top:0; z-index:40;
  border-bottom:3px solid var(--gold);
}
.site-header .wrap{display:flex; align-items:center; justify-content:space-between; height:74px;}
.logo{display:flex; align-items:center; gap:10px; font-family:var(--serif); font-size:21px; font-weight:700; color:#fff; text-decoration:none; cursor:pointer;}
.logo .mark{
  width:34px; height:34px; border-radius:8px; background:var(--gold); color:var(--navy);
  display:flex; align-items:center; justify-content:center; flex-shrink:0; font-size:14px;
}
.site-nav{display:flex; align-items:center; gap:28px;}
.site-nav a{text-decoration:none; color:#dfe3ea; font-size:14.5px; font-weight:600; cursor:pointer; letter-spacing:.2px;}
.site-nav a:hover, .site-nav a.active{color:#fff;}
.site-nav a.active{border-bottom:2px solid var(--gold); padding-bottom:4px;}
.site-nav .divider{width:1px; height:20px; background:rgba(255,255,255,.2);}

footer.site-footer{background:var(--navy); color:#c7cddb; padding:44px 0 28px; margin-top:0;}
footer.site-footer .cols{display:flex; justify-content:space-between; flex-wrap:wrap; gap:32px; margin-bottom:28px;}
footer.site-footer h4{color:#fff; font-family:var(--sans); font-size:14px; text-transform:uppercase; letter-spacing:.6px; margin-bottom:12px;}
footer.site-footer a{color:#c7cddb; text-decoration:none; display:block; margin-bottom:8px; font-size:14.5px; cursor:pointer;}
footer.site-footer a:hover{color:#fff;}
footer.site-footer .bottom{border-top:1px solid rgba(255,255,255,.12); padding-top:18px; font-size:13px; color:#8b93a5; display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px;}

/* ---------- hero ---------- */
.hero{background:linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 62%, #2b3244 100%); color:#fff; padding:88px 0 96px; position:relative; overflow:hidden;}
.hero::after{
  content:""; position:absolute; right:-120px; top:-80px; width:480px; height:480px; border-radius:50%;
  background:radial-gradient(circle, rgba(201,154,46,.18) 0%, transparent 70%);
}
.hero .eyebrow{color:var(--gold); text-transform:uppercase; letter-spacing:1.6px; font-size:13px; font-weight:700; margin-bottom:16px;}
.hero h1{color:#fff; font-size:46px; line-height:1.15; max-width:680px; margin-bottom:20px;}
.hero p.lead{font-size:18px; color:#cfd4e0; max-width:560px; margin-bottom:34px;}
.hero .cta-row{display:flex; gap:16px; flex-wrap:wrap;}

section{padding:76px 0;}
section.tight{padding:56px 0;}
.section-head{max-width:640px; margin:0 auto 48px; text-align:center;}
.section-head .eyebrow{color:var(--gold-dark); text-transform:uppercase; font-size:12.5px; font-weight:700; letter-spacing:1.4px; margin-bottom:10px; display:block;}
.section-head h2{font-size:32px;}
.section-head p{color:var(--ink-soft); font-size:16px;}

.steps{display:grid; grid-template-columns:repeat(4,1fr); gap:26px;}
.step{background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:26px 22px; box-shadow:var(--shadow);}
.step .num{
  width:36px; height:36px; border-radius:50%; background:var(--navy); color:var(--gold); font-family:var(--serif);
  display:flex; align-items:center; justify-content:center; font-weight:700; margin-bottom:14px; font-size:16px;
}
.step h3{font-size:17px; margin-bottom:8px;}
.step p{font-size:14.5px; color:var(--ink-soft); margin:0;}

.why-grid{display:grid; grid-template-columns:repeat(2,1fr); gap:22px;}
.why-item{display:flex; gap:16px; background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:22px; box-shadow:var(--shadow);}
.why-item .ico{
  width:42px; height:42px; border-radius:9px; background:rgba(201,154,46,.15); color:var(--gold-dark);
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.why-item h3{font-size:16.5px; margin-bottom:6px;}
.why-item p{font-size:14.5px; color:var(--ink-soft); margin:0;}

.band-dark{background:var(--navy); color:#fff;}
.band-dark .section-head h2{color:#fff;}
.band-dark .section-head p{color:#c7cddb;}

.products{display:grid; grid-template-columns:repeat(3,1fr); gap:24px;}
.product-card{background:#fff; border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow); display:flex; flex-direction:column;}
.product-card .thumb{
  height:150px;
  background:repeating-linear-gradient(135deg, #2a3345, #2a3345 10px, #29405a 10px, #29405a 20px);
  position:relative; display:flex; align-items:flex-end; padding:14px;
}
.product-card .thumb img{position:absolute; inset:0; width:100%; height:100%; object-fit:cover;}
.product-card .thumb .stamp{
  position:relative; background:rgba(255,255,255,.94); color:var(--navy); font-family:var(--serif); font-weight:700; font-size:13px;
  padding:4px 10px; border-radius:4px; letter-spacing:.3px;
}
.product-card .body{padding:20px 20px 22px; display:flex; flex-direction:column; flex:1;}
.product-card h3{font-size:19px; margin-bottom:8px;}
.product-card p{font-size:14px; color:var(--ink-soft); flex:1;}
.product-card .tagrow{display:flex; gap:6px; flex-wrap:wrap; margin-bottom:12px;}
.product-card.soon{opacity:.68;}
.product-card.soon .thumb{background:repeating-linear-gradient(135deg,#c7bfa5,#c7bfa5 10px,#bcb294 10px,#bcb294 20px);}

.cta-band{background:var(--gold); padding:52px 0; text-align:center;}
.cta-band h2{font-size:26px; margin-bottom:8px;}
.cta-band p{color:#5a4a17; margin-bottom:22px;}

/* generic content page (produkt, om os) */
.breadcrumb{font-size:13.5px; color:var(--ink-soft); padding:22px 0 0;}
.breadcrumb a{color:var(--ink-soft); text-decoration:none; cursor:pointer;}
.breadcrumb a:hover{color:var(--navy);}
.product-hero{padding:26px 0 10px;}
.product-hero h1{font-size:38px; margin-bottom:8px;}
.product-hero .sub{font-size:17px; color:var(--ink-soft); margin-bottom:18px;}
.product-hero .tagrow{display:flex; gap:8px; flex-wrap:wrap; margin-bottom:8px;}
.product-layout{display:grid; grid-template-columns:1.6fr 1fr; gap:40px; align-items:start; padding:30px 0 80px;}
.card{background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:26px; box-shadow:var(--shadow);}
.card + .card{margin-top:20px;}
.card h3{font-size:18px; margin-bottom:12px;}
.card ul{margin:0; padding-left:20px; color:var(--ink-soft); font-size:14.5px;}
.card ul li{margin-bottom:8px;}
.price-box{position:sticky; top:96px;}
.price-box .price{font-family:var(--serif); font-size:30px; color:var(--navy); margin-bottom:2px;}
.price-box .price-note{font-size:12.5px; color:var(--ink-soft); margin-bottom:18px;}
.facts{list-style:none; margin:0 0 20px; padding:0; font-size:14px;}
.facts li{display:flex; justify-content:space-between; padding:9px 0; border-bottom:1px solid var(--line); color:var(--ink-soft);}
.facts li b{color:var(--ink); font-weight:600;}

.about-hero{padding:40px 0 10px;}
.founders{display:grid; grid-template-columns:1fr 1fr; gap:24px; margin-top:20px;}
.founder-card{background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:22px; box-shadow:var(--shadow); display:flex; gap:16px; align-items:center;}
.avatar{width:56px; height:56px; border-radius:50%; background:var(--navy); color:var(--gold); font-family:var(--serif); font-weight:700; font-size:20px; display:flex; align-items:center; justify-content:center; flex-shrink:0;}

/* ---------- forms ---------- */
.form-page{padding:44px 0 90px;}
.form-card{background:#fff; border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); padding:34px;}
label{display:block; font-size:13.5px; font-weight:600; color:var(--navy); margin-bottom:6px;}
.field{margin-bottom:18px;}
.field-row{display:grid; grid-template-columns:1fr 1fr; gap:16px;}
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], input[type=password], select, textarea{
  width:100%; padding:11px 13px; border:1px solid var(--line); border-radius:7px; font-size:14.5px;
  font-family:var(--sans); background:#fdfcf8; color:var(--ink);
}
input:focus, select:focus, textarea:focus{outline:none; border-color:var(--gold); box-shadow:0 0 0 3px rgba(201,154,46,.18);}
textarea{resize:vertical; min-height:90px;}
.hint{font-size:12.5px; color:var(--ink-soft); margin-top:6px;}
.form-note{background:var(--paper-2); border:1px dashed var(--line); border-radius:8px; padding:14px 16px; font-size:13.5px; color:var(--ink-soft); margin-top:22px;}
.checkbox-list{border:1px solid var(--line); border-radius:7px; background:#fdfcf8; padding:6px;}
.checkbox-list label{display:flex; align-items:center; gap:8px; font-weight:400; font-size:14.5px; color:var(--ink); padding:8px 10px; margin:0; border-radius:6px; cursor:pointer;}
.checkbox-list label:hover{background:var(--paper-2);}
.checkbox-list input[type=checkbox]{width:auto;}
.confirm-box{background:rgba(47,122,77,.08); border:1px solid rgba(47,122,77,.35); border-radius:var(--radius); padding:26px; text-align:center;}
.confirm-box .ico-circle{width:46px; height:46px; border-radius:50%; background:var(--green); color:#fff; display:flex; align-items:center; justify-content:center; margin:0 auto 14px; font-size:20px;}

/* ---------- narrow auth screens (lærer/hold login) ---------- */
.auth-shell{min-height:100vh; background:var(--navy); display:flex; align-items:center; justify-content:center; padding:40px 20px;}
.auth-card{background:#fff; border-radius:14px; box-shadow:0 20px 60px rgba(0,0,0,.35); width:100%; max-width:400px; padding:38px 34px;}
.auth-card .logo{color:var(--navy); justify-content:center; margin-bottom:6px;}
.auth-card .sub{text-align:center; color:var(--ink-soft); font-size:14px; margin-bottom:26px;}
.auth-back{text-align:center; margin-top:18px; font-size:13.5px;}
.auth-back a{color:var(--ink-soft); text-decoration:underline; cursor:pointer;}
.demo-hint{background:var(--paper-2); border-radius:7px; padding:10px 12px; font-size:12.5px; color:var(--ink-soft); margin-bottom:20px; text-align:center;}

/* ---------- app shell (lærer/hold/admin portal) ---------- */
.app-shell{min-height:100vh; background:#eef0f4;}
.app-header{background:var(--navy); color:#fff; padding:0 28px; height:64px; display:flex; align-items:center; justify-content:space-between; border-bottom:3px solid var(--gold);}
.app-header .logo{font-size:18px;}
.app-header .who{font-size:13.5px; color:#c7cddb; display:flex; align-items:center; gap:14px;}
.app-header .who a{color:#dfe3ea; text-decoration:none; cursor:pointer; font-weight:600;}
.app-body{display:flex;}
.app-sidebar{width:220px; background:#fff; border-right:1px solid var(--line); min-height:calc(100vh - 64px); padding:20px 14px; flex-shrink:0;}
.app-sidebar a{
  display:flex; align-items:center; gap:10px; padding:11px 14px; border-radius:8px; text-decoration:none;
  color:var(--ink-soft); font-size:14.5px; font-weight:600; margin-bottom:4px; cursor:pointer;
}
.app-sidebar a:hover{background:var(--paper-2);}
.app-sidebar a.active{background:var(--navy); color:#fff;}
.app-main{flex:1; padding:32px 34px; max-width:1100px;}
.app-main h1{font-size:26px; margin-bottom:4px;}
.app-sub{color:var(--ink-soft); font-size:14.5px; margin-bottom:26px;}

table.data{width:100%; border-collapse:collapse; background:#fff; font-size:14px;}
table.data th{text-align:left; font-size:12.5px; text-transform:uppercase; letter-spacing:.4px; color:var(--ink-soft); padding:11px 14px; border-bottom:2px solid var(--line);}
table.data td{padding:13px 14px; border-bottom:1px solid var(--line); vertical-align:middle;}
table.data tr:last-child td{border-bottom:none;}
.panel{background:#fff; border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); padding:24px; margin-bottom:24px;}
.panel-head{display:flex; align-items:center; justify-content:space-between; margin-bottom:18px; gap:12px; flex-wrap:wrap;}
.panel-head h2{font-size:18px; margin:0;}
.code-pill{font-family:monospace; background:var(--paper-2); border:1px solid var(--line); padding:3px 9px; border-radius:6px; font-size:13px; font-weight:700; letter-spacing:.5px;}
.kv{display:flex; gap:10px; flex-wrap:wrap; margin-bottom:20px;}
.kv .stat{background:var(--paper-2); border-radius:8px; padding:14px 18px; min-width:120px;}
.kv .stat .n{font-family:var(--serif); font-size:24px; color:var(--navy);}
.kv .stat .l{font-size:12px; color:var(--ink-soft); text-transform:uppercase; letter-spacing:.4px;}

.answer-block{border:1px solid var(--line); border-radius:8px; padding:16px 18px; margin-bottom:14px;}
.answer-block .ahead{display:flex; justify-content:space-between; align-items:center; margin-bottom:8px; gap:10px; flex-wrap:wrap;}
.answer-block .ahead b{font-size:14.5px;}
.answer-block .atext{font-size:14px; color:var(--ink-soft); background:var(--paper-2); border-radius:6px; padding:10px 12px; white-space:pre-wrap;}

.progress-track{background:var(--line); height:8px; border-radius:6px; overflow:hidden; margin-bottom:6px;}
.progress-fill{background:var(--gold); height:100%; border-radius:6px;}
.kuvert-row{display:flex; align-items:center; gap:12px; padding:14px; border:1px solid var(--line); border-radius:8px; margin-bottom:10px; background:#fff;}
.kuvert-row.locked{opacity:.5;}
.kuvert-row .ki{
  width:36px; height:36px; border-radius:8px; background:var(--navy); color:var(--gold); display:flex; align-items:center; justify-content:center; font-family:var(--serif); font-weight:700; flex-shrink:0;
}
.kuvert-row.locked .ki{background:#b9bfc9; color:#fff;}
.audio-player{display:flex; align-items:center; gap:10px; background:var(--paper-2); border:1px solid var(--line); border-radius:8px; padding:10px 14px; margin:14px 0;}
.audio-player .audio-toggle{min-width:120px;}
.audio-player .audio-label{font-size:13px; color:var(--ink-soft); font-weight:600;}
.admin-shell .audio-player{background:#1f2634; border-color:#2f3a4c; color:#dfe2ea;}
.admin-shell .audio-player .audio-label{color:#9aa4b8;}

.feedback{margin-top:12px; padding:12px 14px; border-radius:8px; font-size:14px; font-weight:600;}
.feedback.ok{background:rgba(47,122,77,.12); color:var(--green);}
.feedback.bad{background:rgba(175,66,52,.12); color:var(--red);}

/* ---------- admin ---------- */
.admin-shell .app-header{background:#11161f;}
.admin-shell .app-sidebar{background:#171d29; border-right:1px solid #262f3f;}
.admin-shell .app-sidebar a{color:#9aa4b8;}
.admin-shell .app-sidebar a:hover{background:#1f2634;}
.admin-shell .app-sidebar a.active{background:var(--gold); color:var(--navy);}
.admin-shell{background:#0e1218; min-height:100vh;}
.admin-shell .app-main{color:#e7e9ee;}
.admin-shell .app-main h1{color:#fff;}
.admin-shell .app-sub{color:#8890a0;}
.admin-shell .panel{background:#171d29; border-color:#262f3f; color:#e7e9ee;}
.admin-shell .panel-head h2{color:#fff;}
.admin-shell table.data th{color:#8890a0; border-bottom-color:#262f3f;}
.admin-shell table.data td{border-bottom-color:#232b39; color:#dfe2ea;}
.admin-shell .code-pill{background:#232b39; border-color:#2f3a4c; color:#e7e9ee;}
.admin-shell label{color:#c7cddb;}
.admin-shell .upload-box{border:1px dashed #3a4557; border-radius:8px; padding:20px; text-align:center; color:#8890a0; font-size:13.5px;}
.admin-badge{background:var(--red); color:#fff; font-size:11px; font-weight:700; padding:3px 9px; border-radius:100px; letter-spacing:.4px; text-transform:uppercase; margin-left:10px;}

@media (max-width: 880px){
  .hero h1{font-size:32px;}
  .steps, .why-grid, .products{grid-template-columns:1fr;}
  .product-layout{grid-template-columns:1fr;}
  .field-row{grid-template-columns:1fr;}
  .app-sidebar{display:none;}
  .site-nav{display:none;}
  footer.site-footer .cols{flex-direction:column;}
}
