:root{
  --brand: #5c9331;        /* Stange-grønn */
  --brand2:#74b73f;
  --ink:  #0f172a;
  --muted:#475569;
  --bg:   #f3f6f3;
  --card: #ffffff;
  --border: rgba(15,23,42,0.12);
  --shadow: 0 18px 40px rgba(0,0,0,0.10);

  --danger:#b91c1c;
  --danger-bg: rgba(185,28,28,0.08);
  --ok:#166534;
  --ok-bg: rgba(22,101,52,0.10);
}

*{ box-sizing:border-box; }

html, body{
  margin:0;
  padding:0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
}

a{ color: inherit; text-decoration:none; }
a:hover{ text-decoration:underline; }

.shell{
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 18px 54px;
}

.topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  padding: 14px 16px;
  border:1px solid var(--border);
  background: rgba(255,255,255,0.80);
  backdrop-filter: blur(6px);
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width: 220px;
}
.brand-mark{
  width: 44px; height: 44px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  display:flex; align-items:center; justify-content:center;
  overflow:hidden;
}
.brand-mark img{ width:120%; height:auto; display:block; }

.brand-text{ display:flex; flex-direction:column; line-height:1.05; }
.brand-kicker{
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.brand-title{
  font-size: 16px;
  font-weight: 750;
}

.nav{
  display:flex;
  gap:10px;
  flex-wrap: wrap;
  justify-content:flex-end;
}
.pill{
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 14px;
}
.pill:hover{
  border-color: rgba(92,147,49,0.45);
}

.hero{
  margin-top: 20px;
  display:grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 18px;
  align-items:stretch;
}
@media (max-width: 860px){
  .hero{ grid-template-columns: 1fr; }
}

.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.card-pad{ padding: 18px 18px; }

.ribbon{
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--brand2));
  margin-bottom: 14px;
}

.h1{
  margin:0;
  font-size: clamp(28px, 3.4vw, 38px);
  letter-spacing: -0.02em;
}
.lead{
  margin:10px 0 0;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.55;
  max-width: 58ch;
}

.btn-row{ margin-top: 14px; display:flex; flex-wrap:wrap; gap:10px; }

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 15px;
  border: 1px solid var(--border);
  background: #fff;
  cursor:pointer;
}
.btn:hover{ border-color: rgba(92,147,49,0.45); }
.btn-primary{
  border: none;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: #0b1a0a;
  font-weight: 750;
}
.btn-primary:hover{ filter: brightness(0.98); }
.btn:active{ transform: translateY(1px); }

.section-title{
  margin:0 0 10px 0;
  font-size: 18px;
  font-weight: 800;
}

.muted{ color: var(--muted); }

.form-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

label{
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .10em;
  color: var(--muted);
  display:block;
  margin-bottom: 6px;
}

input, select, textarea{
  width:100%;
  border:1px solid var(--border);
  border-radius: 12px;
  padding: 11px 12px;
  font-size: 15px;
  background: #fff;
  color: var(--ink);
}
input:focus, select:focus, textarea:focus{
  outline:none;
  border-color: rgba(92,147,49,0.55);
  box-shadow: 0 0 0 3px rgba(92,147,49,0.16);
}
textarea{ min-height: 92px; resize: vertical; }

.alert{
  border-radius: 14px;
  padding: 12px 12px;
  border: 1px solid var(--border);
  font-size: 14px;
}
.alert-error{
  border-color: rgba(185,28,28,0.35);
  background: var(--danger-bg);
  color: var(--danger);
}
.alert-ok{
  border-color: rgba(22,101,52,0.25);
  background: var(--ok-bg);
  color: var(--ok);
}

.kv{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 620px){
  .kv{ grid-template-columns: 1fr; }
}

.table{
  width:100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow:hidden;
}
.table th, .table td{
  padding: 10px 10px;
  border-bottom: 1px solid var(--border);
  text-align:left;
  font-size: 14px;
}
.table th{
  background: rgba(92,147,49,0.06);
  font-weight: 800;
}
.table tr:last-child td{ border-bottom:none; }

.footer{
  margin-top: 26px;
  color: var(--muted);
  font-size: 13px;
  text-align:center;
}
