/* ============================================================================
   /undervisning — Kevin Holm underviser i Claude Code, Cursor, AI-agenter, automation, kode og API'er.
   Bygger på style.css (tokens, knapper, sektioner, FAQ, footer); her er kun det, siden har for sig selv.
   ============================================================================ */

/* ---------- hero ---------- */
.uv-hero { position: relative; padding: 148px 0 72px; overflow: hidden; }
.uv-hero::before { content: ""; position: absolute; inset: -20% -10% auto; height: 640px; background: radial-gradient(48% 52% at 72% 40%, rgba(212, 212, 212, 0.10), transparent 70%); pointer-events: none; }
.uv-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px; align-items: center; }
.uv-hero h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(38px, 5.4vw, 64px); line-height: 1.04; letter-spacing: -0.025em; margin: 18px 0 20px; text-wrap: balance; }
.uv-hero .lead { color: var(--text-2); font-size: clamp(16px, 1.6vw, 19px); line-height: 1.6; max-width: 58ch; }
.uv-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.uv-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.uv-tools span { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-2); padding: 6px 10px; border-radius: 7px; border: 1px solid var(--border-2); background: var(--surface); letter-spacing: .02em; }

/* the portrait — the photo is a link to its own address */
.uv-me { position: relative; border-radius: 26px; border: 1px solid var(--border-2); background: linear-gradient(180deg, var(--surface-2), var(--surface)); padding: 18px; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8); }
.uv-photo { display: block; position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 1 / 1; background: #ece9e4; }
.uv-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.uv-photo:hover img, .uv-photo:focus-visible img { transform: scale(1.03); }
.uv-photo:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.uv-photo-url { position: absolute; left: 12px; bottom: 12px; font-family: var(--font-mono); font-size: 10.5px; color: #1b1b1b; background: rgba(255, 255, 255, .86); border-radius: 6px; padding: 4px 8px; opacity: 0; transform: translateY(4px); transition: opacity .25s ease, transform .25s ease; }
.uv-photo:hover .uv-photo-url, .uv-photo:focus-visible .uv-photo-url { opacity: 1; transform: none; }
.uv-me-body { padding: 18px 6px 6px; display: grid; gap: 4px; }
.uv-me-body b { font-family: var(--font-display); font-weight: 500; font-size: 22px; letter-spacing: -0.01em; }
.uv-me-body small { font-family: var(--font-mono); font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--text-2); }
.uv-live { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; color: var(--text-2); }
.uv-live i { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 0 rgba(61, 220, 132, .5); animation: uvPulse 2.2s infinite; }
@keyframes uvPulse { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, .45); } 70% { box-shadow: 0 0 0 10px rgba(61, 220, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } }

/* ---------- numbers ---------- */
.uv-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); }
.uv-stat { padding: 26px 24px; border-left: 1px solid var(--border); }
.uv-stat:first-child { border-left: 0; }
.uv-stat b { display: block; font-family: var(--font-display); font-weight: 500; font-size: clamp(34px, 4vw, 48px); letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.uv-stat span { display: block; margin-top: 10px; color: var(--text-2); font-size: 14px; line-height: 1.45; }

/* ---------- topics ---------- */
.uv-topics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.uv-topic { position: relative; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); padding: 22px 20px 20px; display: grid; gap: 10px; align-content: start; transition: border-color var(--t), transform .35s var(--ease); }
.uv-topic:hover { border-color: var(--border-2); transform: translateY(-2px); }
.uv-topic .uv-ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--bg-2); border: 1px solid var(--border-2); color: var(--text); }
.uv-topic .uv-ic svg { width: 20px; height: 20px; }
.uv-topic h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.uv-topic p { color: var(--text-2); font-size: 14px; line-height: 1.55; }
.uv-topic ul { list-style: none; display: grid; gap: 6px; margin-top: 2px; }
.uv-topic li { font-size: 13.5px; color: var(--text-2); padding-left: 18px; position: relative; line-height: 1.45; }
.uv-topic li::before { content: "→"; position: absolute; left: 0; color: var(--text-3); }

/* ---------- live automation ---------- */
.uv-auto { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 40px; align-items: center; }
.uv-flow { border: 1px solid var(--border-2); border-radius: 22px; background: var(--bg-2); padding: 22px; display: grid; gap: 10px; position: relative; overflow: hidden; }
.uv-flow-head { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-mono); font-size: 11px; color: var(--text-3); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
.uv-flow-head b { color: #3ddc84; font-weight: 500; }
.uv-node { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); transition: border-color .3s ease, background .3s ease, opacity .3s ease; opacity: .55; }
.uv-node .n { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-family: var(--font-mono); font-size: 12px; background: var(--bg-2); border: 1px solid var(--border-2); color: var(--text-2); }
.uv-node b { font-size: 14.5px; font-weight: 600; display: block; }
.uv-node small { color: var(--text-2); font-size: 12.5px; display: block; margin-top: 2px; overflow-wrap: anywhere; }
.uv-node .s { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); white-space: nowrap; }
.uv-node.is-run { opacity: 1; border-color: var(--border-2); background: var(--surface-2); }
.uv-node.is-run .n { background: var(--text); color: var(--bg); border-color: var(--text); }
.uv-node.is-run .s { color: var(--text); }
.uv-node.is-done { opacity: 1; }
.uv-node.is-done .s { color: #3ddc84; }
.uv-link { height: 14px; margin-left: 30px; border-left: 1px dashed var(--border-2); }
.uv-flow-foot { margin-top: 6px; font-size: 13px; color: var(--text-2); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

/* ---------- formats ---------- */
.uv-formats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.uv-format { border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); padding: 24px 22px; display: grid; gap: 10px; align-content: start; }
.uv-format .tag { font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); }
.uv-format h3 { font-family: var(--font-display); font-weight: 500; font-size: 22px; letter-spacing: -0.01em; }
.uv-format p { color: var(--text-2); font-size: 14px; line-height: 1.55; }
.uv-format .best { font-size: 13px; color: var(--text); border-top: 1px solid var(--border); padding-top: 12px; margin-top: 4px; }

/* ---------- find your course ---------- */
.uv-pick { border: 1px solid var(--border-2); border-radius: 22px; background: var(--surface); padding: clamp(20px, 3vw, 34px); display: grid; gap: 22px; }
.uv-q { display: grid; gap: 10px; }
.uv-q legend { font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.uv-q fieldset { border: 0; display: grid; gap: 10px; }
.uv-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.uv-opt { position: relative; }
.uv-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.uv-opt span { display: inline-block; padding: 10px 14px; border-radius: 11px; border: 1px solid var(--border-2); background: var(--bg-2); font-size: 14px; color: var(--text-2); transition: all var(--t); cursor: pointer; }
.uv-opt input:checked + span { color: var(--bg); background: var(--text); border-color: var(--text); }
.uv-opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.uv-result { border-radius: 16px; border: 1px dashed var(--border-2); padding: 18px 20px; display: grid; gap: 8px; min-height: 92px; }
.uv-result b { font-family: var(--font-display); font-weight: 500; font-size: 22px; }
.uv-result p { color: var(--text-2); font-size: 14.5px; line-height: 1.55; max-width: 70ch; }
.uv-result .btn { justify-self: start; margin-top: 4px; }

/* ---------- why ---------- */
.uv-why { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 40px; }
.uv-why div { padding: 18px 0; border-top: 1px solid var(--border); }
.uv-why h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.uv-why p { color: var(--text-2); font-size: 14.5px; line-height: 1.6; }

.uv-note { margin-top: 18px; color: var(--text-2); font-size: 14px; }
.uv-note a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) { .uv-topics, .uv-formats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .uv-hero { padding: 116px 0 48px; }
  .uv-hero-grid, .uv-auto { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .uv-me { max-width: 420px; }
  .uv-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .uv-stat:nth-child(3) { border-left: 0; }
  .uv-stat:nth-child(n+3) { border-top: 1px solid var(--border); }
}
@media (max-width: 600px) {
  .uv-topics, .uv-formats, .uv-why { grid-template-columns: minmax(0, 1fr); }
  .uv-stat { padding: 20px 16px; }
  .uv-node { grid-template-columns: 30px minmax(0, 1fr); }
  .uv-node .s { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) { .uv-live i { animation: none; } .uv-photo img, .uv-topic { transition: none; } }

/* small phones: the hero has the big "Book" button — the nav keeps logo, EN and the menu */
@media (max-width: 480px) { .nav-cta > .btn { display: none; } }
