/* ==========================================================================
   1. CSS VARIABLES & RESET
   ========================================================================== */
:root {
    --bg-cream: #F9F6F0;
    --bg-sand: #EFE9DE;
    --text-espresso: #3A312B;
    --text-soft: #554842;
    --accent-terracotta: #D3907A;
    --accent-terracotta-light: #e8b9ac;
    --accent-sage: #B4C4AF;
    --accent-sage-border: #97A892;
    --accent-pink: #D5B9B2;
    --border-brown: #A68A78;

    --font-heading: 'Fraunces', serif;
    --font-body: 'Nunito', sans-serif;
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

html { 
    scroll-behavior: smooth; 
}

body {
    background-color: var(--bg-cream);
    color: var(--text-espresso);
    font-family: var(--font-body);
    line-height: 1.65;
    font-size: 1.15rem;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
}

/* ==========================================================================
   2. TYPOGRAFI OG LENKER
   ========================================================================== */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--text-espresso);
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.2;
    overflow-wrap: break-word;
    -webkit-hyphens: auto;
    hyphens: auto;
}

h1 { font-size: 3.2rem; }

h2 { 
    font-size: 2.5rem; 
    margin-top: 2rem; 
    border-bottom: 2px solid var(--border-brown); 
    padding-bottom: 0.5rem; 
    display: inline-block; 
    border-radius: 0 0 10px 10px; 
}

h3 { 
    font-size: 1.8rem; 
    margin-top: 2rem; 
}

h4 { 
    font-size: 1.4rem; 
    margin-top: 1.5rem; 
    font-family: var(--font-body); 
    font-weight: 700; 
}

p, ul, ol { margin-bottom: 1.5rem; }
ul { padding-left: 1.5rem; }
li { margin-bottom: 0.6rem; }

a {
    color: var(--text-espresso);
    text-decoration-color: var(--accent-terracotta);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
    transition: all 0.3s ease;
}

a:hover { color: var(--accent-terracotta); }

/* ==========================================================================
   3. LAYOUT, HEADER OG NAVIGASJON
   ========================================================================== */
.container, .wrap { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 2rem; 
}

section { margin-bottom: 6rem; }

header {
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1.5px solid var(--border-brown);
    flex-wrap: wrap;
    gap: 1rem;
}

.brand-logo { 
    height: 65px; 
    width: auto; 
    transition: transform 0.3s ease; 
}

.brand-logo:hover { transform: scale(1.02); }

nav a {
    margin-left: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    font-size: 1.1rem;
}

nav a.active, nav a.nav-active {
    color: var(--accent-terracotta);
    border-bottom: 2px solid var(--accent-terracotta);
    padding-bottom: 2px;
}

/* ==========================================================================
   4. HERO OG INTRO-SEKSJONER
   ========================================================================== */
.hero {
    padding: 6rem 2rem;
    text-align: center;
    background-color: var(--bg-sand);
    border: 2px solid var(--border-brown);
    border-radius: 60px 60px 4px 60px;
    margin: 3rem auto;
    max-width: 1200px;
}

.hero h1 { font-size: 3.4rem; margin-bottom: 1.5rem; }

.hero p { 
    font-size: 1.2rem; 
    max-width: 800px; 
    margin: 0 auto 1.2rem auto; 
}

.hero p:last-of-type, .hero .intro { 
    margin-bottom: 2.5rem; 
}

.hero .quote, .lede-quote {
    font-size: 1.4rem;
    font-style: italic;
    margin-bottom: 1rem;
    color: var(--text-espresso);
}

.eyebrow {
    display: inline-block;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-terracotta);
    margin-bottom: 1rem;
}

.cta-row {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.about-hero-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 3rem;
    align-items: center;
    margin-top: 2rem;
    margin-bottom: 3rem;
}

.about-portrait {
    width: 100%;
    height: auto;
    border-radius: 40px 12px 40px 40px;
    border: 2px solid var(--border-brown);
    box-shadow: 0 12px 30px rgba(58, 49, 43, 0.07);
    display: block;
    background-color: var(--bg-sand);
}

.tinted {
    background-color: var(--bg-sand);
    border-top: 1.5px solid var(--border-brown);
    border-bottom: 1.5px solid var(--border-brown);
    padding: 4.5rem 0;
}

.section-head { margin-bottom: 2.5rem; }

.section-head .lead {
    font-size: 1.2rem;
    margin-top: 1rem;
    max-width: 900px;
}

/* ==========================================================================
   5. KNAPPER OG BADGES
   ========================================================================== */
.btn {
    display: inline-block;
    background-color: var(--accent-sage);
    color: var(--text-espresso);
    padding: 1rem 2.5rem;
    border-radius: 40px 4px 40px 40px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    border: 2px solid var(--text-espresso);
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn:hover { 
    background-color: var(--accent-terracotta); 
    transform: translateY(-2px); 
}

.btn-secondary { margin-left: 1rem; }

.btn-ghost {
    background-color: transparent;
    border: 2px solid var(--border-brown);
}

.btn-ghost:hover {
    background-color: var(--bg-cream);
    color: var(--text-espresso);
}

.feedback-badge {
    display: inline-block;
    background-color: var(--accent-sage);
    border: 1px solid var(--accent-sage-border);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 600;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.badge-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin: 2rem 0;
}

.badge {
    background-color: var(--accent-sage);
    border: 1px solid var(--accent-sage-border);
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 600;
}

.compare-label {
    display: inline-block;
    background-color: var(--accent-sage);
    border: 1px solid var(--accent-sage-border);
    padding: 0.3rem 0.9rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

/* ==========================================================================
   6. GRID OG KORT-KOMPONENTER
   ========================================================================== */
.card-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 2rem; 
    margin-top: 2rem; 
}

.grid { display: grid; gap: 1.8rem; margin: 2rem 0; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.card, .box, .idx-card, .profile-card, figure {
    border: 1.5px solid var(--border-brown);
    border-radius: 30px 4px 30px 30px;
    padding: 2.5rem;
    box-shadow: 0 5px 15px rgba(58, 49, 43, 0.03);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover, .box:hover, .idx-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(58, 49, 43, 0.07);
}

.card, .box { 
    background-color: #ffffff; 
    display: flex; 
    flex-direction: column; 
}

.card h3, .card h4 { margin-top: 0; }

.card-link { 
    margin-top: auto; 
    display: inline-block; 
    font-weight: bold; 
    color: var(--accent-terracotta); 
    text-decoration: none; 
}

.card-link:hover { color: var(--text-espresso); }

/* Temabakgrunner for kort */
.card-kat { background-color: var(--bg-sand); }
.card-mct { background-color: rgba(180, 196, 175, 0.4); }
.card-eft { background-color: rgba(213, 185, 178, 0.5); }
.card-up { background-color: rgba(211, 144, 122, 0.3); }

.note-box {
    background-color: rgba(180, 196, 175, 0.25);
    border: 1.5px dashed var(--accent-sage-border);
    border-radius: 20px 4px 20px 20px;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
}

.note-box p:last-child { margin-bottom: 0; }

.quote-callout {
    background-color: var(--bg-sand);
    border-left: 5px solid var(--accent-terracotta);
    border-radius: 0 20px 20px 0;
    padding: 1.8rem 2.2rem;
    font-style: italic;
    margin: 2.5rem 0;
    font-size: 1.15rem;
}

/* ==========================================================================
   7. TREKK, PILLARER OG TEORI
   ========================================================================== */
.pillars-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 1.5rem; 
    margin: 2rem 0; 
}

.concept-card { 
    display: flex; 
    flex-direction: column; 
    align-items: flex-start; 
    gap: 0.8rem; 
    background-color: #ffffff; 
    border: 1.5px solid var(--border-brown); 
    border-radius: 18px 4px 18px 18px; 
    padding: 1.5rem; 
    box-shadow: 0 5px 15px rgba(58, 49, 43, 0.03); 
}

.concept-card-header { display: flex; align-items: center; gap: 0.8rem; width: 100%; }
.concept-card-header strong { font-size: 1.1rem; line-height: 1.3; }

.concept-card.card-terracotta { border-top: 5px solid var(--accent-terracotta); }
.concept-card.card-terracotta .pillar-icon-box { background-color: rgba(211, 144, 122, 0.2); color: #A05248; }

.concept-card.card-sage { border-top: 5px solid var(--accent-sage); }
.concept-card.card-sage .pillar-icon-box { background-color: rgba(180, 196, 175, 0.3); color: #6B7F66; }

.concept-card.card-pink { border-top: 5px solid var(--accent-pink); }
.concept-card.card-pink .pillar-icon-box { background-color: rgba(213, 185, 178, 0.35); color: #A0756A; }

.pillar-icon-box { 
    flex-shrink: 0; 
    width: 42px; 
    height: 42px; 
    border-radius: 10px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

.concept-card-body { flex: 1; font-size: 0.98rem; line-height: 1.55; }

.pillar-card { position: relative; }

.pillar-num {
    width: 38px;
    height: 38px;
    background-color: var(--accent-terracotta);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 1rem;
}

.theory-block { 
    background-color: #ffffff; 
    border: 1.5px solid var(--border-brown); 
    border-radius: 20px 4px 20px 20px; 
    padding: 1.8rem; 
    margin-bottom: 1.5rem; 
}

.theory-header { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1rem; flex-wrap: wrap; }
.theory-header h4 { margin: 0; font-size: 1.25rem; }

.theory-badge { 
    font-size: 0.78rem; 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 0.06em; 
    padding: 0.25rem 0.7rem; 
    border-radius: 12px; 
    color: #ffffff; 
    background-color: #B4715A; 
}

.theory-badge.badge-sage { background-color: #7E9478; }
.theory-badge.badge-pink { background-color: #C4889F; }

.theory-grid { 
    display: grid; 
    grid-template-columns: 1fr auto 1fr; 
    align-items: stretch; 
    gap: 1rem; 
    margin-top: 1.2rem; 
    margin-bottom: 0.4rem; 
}

.theory-card { 
    background-color: var(--bg-cream); 
    border: 1.5px solid var(--border-brown); 
    border-radius: 14px; 
    padding: 1rem 1.2rem; 
    font-size: 0.95rem; 
    height: 100%; 
}

.theory-card strong { display: block; margin-bottom: 0.3rem; }
.theory-card.card-tinted-terracotta { border-color: var(--accent-terracotta); background-color: rgba(211, 144, 122, 0.12); }
.theory-card.card-tinted-sage { border-color: var(--accent-sage-border); background-color: rgba(180, 196, 175, 0.25); }
.theory-card.card-tinted-pink { border-color: var(--accent-pink); background-color: rgba(213, 185, 178, 0.3); }

.not-equal-sign { 
    font-size: 2rem; 
    font-weight: 600; 
    color: var(--border-brown); 
    user-select: none; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    padding: 0 0.3rem; 
}

.theory-callout { 
    background-color: var(--bg-sand); 
    border-left: 4px solid #C4889F; 
    padding: 1rem 1.2rem; 
    margin-top: 1.2rem; 
    border-radius: 0 12px 12px 0; 
    font-size: 0.98rem; 
}

.compare {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.8rem;
    margin: 2.5rem 0;
}

.compare .box:nth-child(1) { background-color: rgba(211, 144, 122, 0.14); }
.compare .box:nth-child(2) { background-color: rgba(180, 196, 175, 0.25); }
.compare .box:nth-child(1) .compare-label { background-color: var(--accent-terracotta-light); border-color: var(--accent-terracotta); }

.box strong {
    display: block;
    font-size: 1.25rem;
    margin-bottom: 0.6rem;
    font-family: var(--font-heading);
}

/* ==========================================================================
   8. BIG FIVE, AB5C OG PERSONLIGHETSSTILER
   ========================================================================== */
.bf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.5rem; margin-top: 2rem; }

.bf-col {
    background-color: #ffffff;
    border: 1.5px solid var(--border-brown);
    border-top: 6px solid var(--accent-terracotta);
    border-radius: 20px 4px 20px 20px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.bf-col h4 { margin: 0 0 0.4rem 0; }
.bf-desc { font-size: 0.92rem; color: #554842; margin-bottom: 0.8rem; }
.bf-aspects { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem; }

.bf-aspect {
    background-color: var(--bg-sand);
    border: 1px solid var(--border-brown);
    border-radius: 15px;
    padding: 0.35rem 0.8rem;
    font-size: 0.88rem;
    font-weight: 600;
}

.bf-col ul { padding-left: 1.1rem; font-size: 0.95rem; margin-bottom: 0; }
.bf-col li { margin-bottom: 0.35rem; }

.styles-intro-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 1.5rem; margin: 2rem 0; }
.styles-intro-card { background-color: #ffffff; border: 1.5px solid var(--border-brown); border-radius: 20px 4px 20px 20px; padding: 1.5rem; }
.styles-intro-card h4 { margin: 0 0 0.8rem 0; display: flex; align-items: center; gap: 0.6rem; }

.styles-intro-icon { 
    width: 28px; 
    height: 28px; 
    border-radius: 8px; 
    background-color: rgba(180, 196, 175, 0.3); 
    color: #6B7F66; 
    border: 1px solid var(--accent-sage-border); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-weight: 700; 
    font-size: 1rem; 
    flex-shrink: 0; 
}

.styles-intro-card ul { margin-bottom: 0; font-size: 0.98rem; }

.style-block { margin-bottom: 4rem; }
.style-block:last-child { margin-bottom: 0; }
.style-title { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 600; color: var(--text-espresso); margin-bottom: 0.6rem; border-bottom: 1.5px solid var(--bg-sand); padding-bottom: 0.5rem; }
.style-intro { font-size: 1rem; color: #554842; margin-bottom: 1.2rem; }
.style-descriptions-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-bottom: 1.2rem; }

.style-card { 
    background-color: var(--bg-sand); 
    border: 1.5px solid var(--border-brown); 
    border-radius: 14px 4px 14px 14px; 
    padding: 1.1rem 1.3rem; 
    font-size: 0.93rem; 
    line-height: 1.55; 
    transition: all 0.3s ease; 
}

.style-card.highlight { border-width: 2px; background-color: #ffffff; box-shadow: 0 3px 10px rgba(58, 49, 43, 0.06); }
.style-card h4 { margin: 0 0 0.4rem 0; font-size: 1.05rem; }
.style-card p { margin-bottom: 0; }

.style-matrix-wrapper { display: flex; justify-content: center; margin: 1.5rem 0 1.8rem 0; }
.matrix-with-labels { position: relative; display: inline-block; }
.style-matrix-compact { position: relative; width: 340px; height: 340px; border-radius: 12px; background: #ffffff; border: 1.5px solid var(--border-brown); overflow: visible; }
.t-circles-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.t-circle { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); border-radius: 50%; border: 1px dashed var(--border-brown); opacity: 0.6; }
.t-circle.t-60 { width: 33.3%; height: 33.3%; }
.t-circle.t-70 { width: 66.6%; height: 66.6%; }
.t-circle.t-80 { width: 100%; height: 100%; border-style: solid; opacity: 0.35; }

.style-matrix-grid { position: relative; width: 100%; height: 100%; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; border-radius: 11px; overflow: hidden; z-index: 2; }
.matrix-quadrant { border: 1px dashed rgba(166, 138, 120, 0.5); display: flex; align-items: center; justify-content: center; font-size: 0.95rem; font-weight: 600; color: #A68A78; transition: all 0.3s ease; }
.matrix-quadrant.active { font-weight: 700; }
.matrix-axis-y { position: absolute; right: calc(100% + 8px); top: 50%; writing-mode: vertical-rl; transform: translateY(-50%) rotate(180deg); font-size: 0.9rem; font-weight: 700; white-space: nowrap; z-index: 3; }
.matrix-axis-x { position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); font-size: 0.9rem; font-weight: 700; white-space: nowrap; z-index: 3; }
.matrix-dot { position: absolute; width: 18px; height: 18px; border-radius: 50%; transform: translate(-50%, -50%); border: 2.5px solid #ffffff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3); z-index: 5; }

.crossover-legend { display: flex; flex-wrap: wrap; gap: 0.8rem 1.5rem; margin-bottom: 1.2rem; font-size: 0.95rem; font-weight: 600; }
.co-swatch { display: inline-block; width: 14px; height: 14px; border-radius: 50%; margin-right: 0.4rem; border: 2px solid #ffffff; box-shadow: 0 1px 3px rgba(0,0,0,0.2); vertical-align: middle; }

.co-row { margin-bottom: 1.3rem; }
.co-row-label { font-weight: 600; font-size: 0.95rem; margin-bottom: 0.3rem; display: flex; justify-content: space-between; gap: 0.8rem; flex-wrap: wrap; }
.co-flag { color: var(--accent-terracotta); font-weight: 700; }

.alarm {
    background-color: rgba(211, 144, 122, 0.15);
    border: 1.5px dashed var(--accent-terracotta);
    border-radius: 12px;
    padding: 0.8rem 1.2rem;
    font-size: 0.95rem;
    margin-top: 0.6rem;
}

.pac-box {
    background-color: #ffffff;
    border: 1.5px solid var(--border-brown);
    border-radius: 20px 4px 20px 20px;
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
}

.pac-box .pac-title { font-weight: 700; font-size: 1.05rem; margin-bottom: 0.6rem; }
.pac-box .pac-value { font-size: 1.6rem; font-weight: 700; color: var(--accent-terracotta); margin-right: 0.6rem; }

.leader-matrix { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 2rem 0; }
.lm-quadrant {
    background-color: #ffffff;
    border: 1.5px solid var(--border-brown);
    border-radius: 20px 4px 20px 20px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}
.lm-quadrant h4 { margin: 0 0 0.4rem 0; }
.lm-quadrant p { font-size: 0.95rem; margin-bottom: 1rem; }
.lm-score { align-self: flex-start; display: inline-block; background-color: var(--bg-sand); border: 1px solid var(--border-brown); border-radius: 15px; padding: 0.3rem 0.9rem; font-weight: 700; font-size: 0.95rem; }

.intersection-list { font-size: 1rem; }

/* ==========================================================================
   9. VISUALISERING AV SKÅRER OG CANDLESTICKS
   ========================================================================== */
.score-viz-container {
    margin-top: 2rem;
    background-color: var(--bg-sand);
    border: 1.5px solid var(--border-brown);
    border-radius: 20px;
    padding: 2rem;
}

.trait-group { margin-bottom: 2rem; }
.trait-group:last-child { margin-bottom: 0; }

.trait-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-weight: 700;
    margin-bottom: 0.4rem;
    font-size: 1.15rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.facet-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    margin-left: 1.5rem;
    margin-top: 0.6rem;
    margin-bottom: 0.2rem;
    color: #554842;
}

.viz-track {
    background-color: var(--bg-cream);
    border: 1px solid var(--border-brown);
    border-radius: 8px;
    height: 24px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.viz-ci-bg {
    position: absolute;
    height: 100%;
    background-color: var(--accent-terracotta-light);
    opacity: 0.4;
    border-radius: 6px;
}

.viz-dot {
    position: absolute;
    width: 14px;
    height: 14px;
    background-color: var(--accent-terracotta);
    border: 2px solid #ffffff;
    border-radius: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.viz-scale {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #554842;
    margin-top: 0.3rem;
}

.candlestick-box {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #ffffff;
    border: 1px solid var(--border-brown);
    border-radius: 12px;
}

.candle-container { margin-top: 1rem; display: flex; flex-direction: column; gap: 1.2rem; }
.candle-row { display: flex; align-items: center; justify-content: space-between; font-size: 0.95rem; gap: 1rem; }
.candle-label-left, .candle-label-right { width: 35%; font-weight: 600; }
.candle-label-left { text-align: right; }
.candle-label-right { text-align: left; }

.candle-track {
    flex-grow: 1;
    background-color: var(--bg-cream);
    border: 1px solid var(--border-brown);
    border-radius: 8px;
    height: 22px;
    position: relative;
    overflow: hidden;
}

.candle-ci { position: absolute; height: 100%; background-color: var(--accent-terracotta-light); opacity: 0.4; }
.candle-line { position: absolute; height: 6px; top: 8px; background-color: var(--accent-terracotta); border-radius: 3px; }
.candle-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: var(--text-espresso);
    border-radius: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
}

/* ==========================================================================
   10. KOGNITIV EVNETESTING OG PROFILER
   ========================================================================== */
#hvordan-males .pillar-card:nth-child(1) { background-color: var(--bg-cream); }
#hvordan-males .pillar-card:nth-child(2) { background-color: rgba(211, 144, 122, 0.12); }
#hvordan-males .pillar-card:nth-child(3) { background-color: rgba(180, 196, 175, 0.22); }

#hvordan-males .grid:last-of-type .card:nth-child(1) { background-color: rgba(180, 196, 175, 0.20); }
#hvordan-males .grid:last-of-type .card:nth-child(2) { background-color: var(--bg-cream); }
#hvordan-males .grid:last-of-type .card:nth-child(3) { background-color: rgba(213, 185, 178, 0.25); }

.idx-card {
    border-top: 5px solid var(--accent, var(--accent-terracotta));
    display: flex;
    flex-direction: column;
}

#indekser .grid-2 .idx-card:nth-child(1) { background-color: rgba(211, 144, 122, 0.14); }
#indekser .grid-2 .idx-card:nth-child(2) { background-color: var(--bg-cream); }
#indekser .grid-2 .idx-card:nth-child(3) { background-color: rgba(213, 185, 178, 0.25); }
#indekser .grid-2 .idx-card:nth-child(4) { background-color: rgba(180, 196, 175, 0.22); }

#supplerende .idx-card:nth-child(1) { background-color: rgba(211, 144, 122, 0.12); }
#supplerende .idx-card:nth-child(2) { background-color: rgba(180, 196, 175, 0.25); }
#supplerende .idx-card:nth-child(3) { background-color: rgba(213, 185, 178, 0.28); }
#supplerende .idx-card:nth-child(4) { background-color: var(--bg-sand); }
#supplerende .idx-card:nth-child(5) { background-color: rgba(211, 144, 122, 0.16); }
#supplerende .idx-card:nth-child(6) { background-color: rgba(180, 196, 175, 0.20); }

.idx-abbr {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-espresso);
    margin-bottom: 0.2rem;
}

.idx-card h4 { margin-top: 0; margin-bottom: 0.8rem; }

.idx-sub {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px dashed var(--border-brown);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-soft);
}

figure {
    margin: 3rem 0;
    text-align: center;
    background-color: var(--bg-cream);
    border-radius: 25px;
    padding: 2rem;
}

figcaption {
    margin-top: 1.2rem;
    font-size: 0.95rem;
    color: var(--text-soft);
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

#dagligliv .card {
    background-color: var(--bg-cream);
    padding: 1.5rem 2.5rem;
}

.lifearea {
    display: flex;
    gap: 1.5rem;
    padding: 1.8rem 0;
    border-bottom: 1px solid var(--border-brown);
}

.lifearea:last-child { border-bottom: none; }

.lifearea .icon {
    width: 50px;
    height: 50px;
    border: 1px solid var(--border-brown);
    border-radius: 15px 4px 15px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--text-espresso);
}

.lifearea:nth-child(1) .icon { background-color: rgba(211, 144, 122, 0.25); }
.lifearea:nth-child(2) .icon { background-color: rgba(180, 196, 175, 0.35); }
.lifearea:nth-child(3) .icon { background-color: rgba(213, 185, 178, 0.35); }
.lifearea:nth-child(4) .icon { background-color: var(--bg-sand); }
.lifearea:nth-child(5) .icon { background-color: rgba(180, 196, 175, 0.25); }

.stat-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    background-color: var(--bg-cream);
    border: 1.5px solid var(--border-brown);
    border-radius: 20px;
    padding: 1.8rem;
}

.stat {
    background-color: rgba(239, 233, 222, 0.65);
    padding: 1.2rem;
    border-radius: 15px;
    border: 1px solid var(--border-brown);
}

.stat .num {
    font-family: var(--font-heading);
    font-size: 2.3rem;
    font-weight: 700;
    color: var(--accent-terracotta);
    line-height: 1.1;
    margin-bottom: 0.4rem;
}

.stat .lbl {
    font-size: 0.95rem;
    color: var(--text-soft);
    line-height: 1.4;
}

.subtests {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 2rem 0;
    border: 1.5px solid var(--border-brown);
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg-cream);
}

.subtests th, .subtests td {
    padding: 1.2rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border-brown);
}

.subtests th {
    background-color: var(--bg-sand);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-espresso);
}

.subtests tr:nth-child(even) td {
    background-color: rgba(239, 233, 222, 0.35);
}

.subtests tr:last-child td { border-bottom: none; }

.profile-card {
    background-color: var(--bg-cream);
    border: 2px solid var(--border-brown);
    border-radius: 35px 4px 35px 35px;
    padding: 2.5rem;
    margin: 2.5rem 0;
    box-shadow: 0 8px 25px rgba(58, 49, 43, 0.04);
}

.profile-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 1rem;
    border-bottom: 1.5px solid var(--border-brown);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.profile-head h4 { margin: 0; font-size: 1.6rem; font-family: var(--font-heading); }

.profile-vignette {
    font-size: 1.05rem;
    color: var(--text-soft);
    margin-bottom: 2rem;
    background-color: var(--bg-sand);
    padding: 1.2rem;
    border-radius: 15px;
    border: 1px solid var(--border-brown);
}

.score-scale-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-soft);
    margin-left: 220px;
    margin-right: 220px;
    margin-bottom: 0.5rem;
    padding: 0 5px;
}

.score-row {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 0.9rem;
}

.score-row.ancillary { opacity: 0.95; }

.score-idlabel {
    width: 200px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.score-idlabel .abbr {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-espresso);
}

.score-idlabel .name {
    font-size: 0.85rem;
    color: var(--text-soft);
}

.score-track {
    flex-grow: 1;
    background-color: #ffffff;
    border: 1px solid var(--border-brown);
    border-radius: 10px;
    height: 22px;
    position: relative;
    overflow: hidden;
}

.score-ci {
    position: absolute;
    height: 100%;
    background-color: var(--accent-terracotta-light);
    opacity: 0.5;
    border-radius: 6px;
}

.score-marker {
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: var(--accent, var(--accent-terracotta));
    border: 2px solid #ffffff;
    border-radius: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.score-value {
    width: 200px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    text-align: right;
}

.score-value .num {
    font-weight: 700;
    font-size: 1.05rem;
}

.score-value .cls {
    font-size: 0.82rem;
    color: var(--text-soft);
}

.profile-divider {
    margin: 2rem 0 1.5rem 0;
    text-align: center;
    border-bottom: 1px dashed var(--border-brown);
    line-height: 0.1em;
}

.profile-divider span {
    background: var(--bg-cream);
    padding: 0 15px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-note {
    margin-top: 2rem;
    background-color: rgba(180, 196, 175, 0.22);
    border: 1.5px solid var(--border-brown);
    border-radius: 20px 4px 20px 20px;
    padding: 1.5rem;
    font-size: 1rem;
}

/* ==========================================================================
   11. KURS, PROGRESS, KARUSELL OG MEDIA (INDEX)
   ========================================================================== */
.course-large {
    background-color: var(--bg-cream);
    border: 2px solid var(--border-brown);
    border-radius: 40px 4px 40px 40px;
    padding: 3.5rem;
    margin-bottom: 3rem;
}

.course-small-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.course-bubble {
    background-color: var(--bg-sand);
    border: 1.5px solid var(--border-brown);
    border-radius: 20px 4px 20px 20px;
    padding: 2rem;
}

.carousel-wrapper {
    position: relative;
    margin: 2.5rem 0;
}

.carousel {
    display: flex;
    align-items: center;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-terracotta) var(--bg-sand);
    scroll-behavior: smooth;
}

.carousel::-webkit-scrollbar { height: 8px; }
.carousel::-webkit-scrollbar-thumb { background-color: var(--accent-terracotta); border-radius: 10px; }

.carousel-item {
    flex: 0 0 85%;
    scroll-snap-align: center;
    border: 1.5px solid var(--border-brown);
    border-radius: 20px;
    background-color: #ffffff;
    overflow: hidden;
}

.carousel-item img {
    width: 100%;
    height: auto;
    display: block;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-60%);
    background-color: var(--bg-sand);
    border: 1.5px solid var(--border-brown);
    color: var(--text-espresso);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.2s, transform 0.2s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.carousel-btn:hover {
    background-color: var(--accent-terracotta);
    color: #ffffff;
}

.carousel-btn.prev { left: -22px; }
.carousel-btn.next { right: -22px; }

.credentials-badge {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    background-color: #ffffff;
    border: 1.5px solid var(--border-brown);
    border-radius: 25px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.credentials-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.credentials-badge img {
    height: 35px;
    width: auto;
}

.progress-container {
    margin: 2rem 0;
    background: var(--bg-sand);
    padding: 3rem;
    border-radius: 20px 4px 20px 20px;
    border: 1px solid var(--border-brown);
}

.progress-item { margin-bottom: 1.5rem; }
.progress-item label { display: block; margin-bottom: 0.5rem; font-weight: 600; }

.progress-bar-bg {
    background-color: var(--bg-cream);
    border: 1px solid var(--border-brown);
    border-radius: 10px;
    height: 22px;
    width: 100%;
    overflow: hidden;
}

.progress-bar-fill { height: 100%; border-right: 1px solid var(--border-brown); }
.fill-fit { background-color: var(--accent-terracotta); }
.fill-up { background-color: var(--accent-pink); }
.fill-jur { background-color: var(--accent-terracotta); border-right: 1px solid var(--border-brown); }
.fill-lent { background-color: var(--accent-sage); border-right: 1px solid var(--accent-sage-border); }

.sub-progress { margin-left: 2rem; font-size: 1rem; margin-top: 0.8rem; }

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.media-grid a {
    display: block;
    border: 1.5px solid var(--border-brown);
    border-radius: 20px 4px 20px 20px;
    overflow: hidden;
    text-decoration: none;
}

.media-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    background-color: var(--accent-pink);
    transition: transform 0.4s ease;
}

.media-grid a:hover img { transform: scale(1.05); }

/* ==========================================================================
   12. DETAILS / TREKKSAMMENDRAG OG SVG-DIAGRAMMER
   ========================================================================== */
details { margin-top: 1rem; }

summary {
    font-weight: 700;
    color: var(--text-espresso);
    cursor: pointer;
    list-style: none;
    display: inline-block;
    border-bottom: 2px solid var(--accent-terracotta);
    padding-bottom: 2px;
    transition: color 0.2s;
}

summary::-webkit-details-marker { display: none; }
summary:hover { color: var(--accent-terracotta); }

.details-content {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px dashed var(--border-brown);
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.svg-diagram-container { 
    background-color: #ffffff; 
    border: 1.5px solid var(--border-brown); 
    border-radius: 20px 4px 20px 20px; 
    padding: 1.5rem; 
    margin: 2rem 0; 
    text-align: center; 
}

.diagram-transparent { 
    background-color: transparent !important; 
    border: none !important; 
    box-shadow: none !important; 
    padding: 0 !important; 
    margin: 2rem auto !important; 
}

.svg-diagram-container svg { max-width: 100%; height: auto; }
.svg-diagram-caption { font-size: 0.95rem; font-style: italic; color: #554842; margin-top: 1rem; text-align: center; }

.svg-duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.svg-duo .svg-diagram-container { margin: 0; }

/* ==========================================================================
   13. PODCAST
   ========================================================================== */
.podcast-links-container {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.podcast-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
}

.podcast-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.podcast-btn.apple { background-color: #8c25f4; color: #ffffff; border: 1.5px solid #721bc7; }
.podcast-btn.spotify { background-color: #1DB954; color: #ffffff; border: 1.5px solid #148f3f; }
.podcast-btn.podplay { background-color: #ff3366; color: #ffffff; border: 1.5px solid #d92350; }

.podcast-icon { width: 20px; height: 20px; fill: currentColor; }

/* ==========================================================================
   14. KONTAKT OG FOOTER
   ========================================================================== */
.contact-section {
    background-color: var(--accent-sage);
    padding: 5rem 3rem;
    border-radius: 4px 60px 60px 4px;
    border: 2px solid var(--accent-sage-border);
    text-align: center;
    max-width: 1100px;
    margin: 6rem auto 3rem auto;
}

.contact-section h2 {
    border-bottom: none;
    display: block;
    margin-top: 0;
    font-size: 2.5rem;
}

.contact-subtitle-group {
    font-size: 1.3rem;
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
}

.contact-subtitle-group p { margin-bottom: 0.4rem; }

.contact-links {
    font-size: 1.3rem;
    font-family: var(--font-body);
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

.contact-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: var(--text-espresso);
    font-weight: 600;
    word-break: break-word;
    overflow-wrap: anywhere;
    max-width: 100%;
}

.contact-links a:hover { color: #ffffff; }

.contact-icon {
    width: 22px;
    height: 22px;
    fill: currentColor;
    flex-shrink: 0;
}

footer {
    border-top: 1.5px solid var(--border-brown);
    margin-top: 4rem;
    padding: 2rem 0 1rem 0;
    text-align: center;
    font-size: 0.95rem;
    color: #554842;
}

/* ==========================================================================
   15. RESPONSIVITET (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 900px) {
    .about-hero-grid { grid-template-columns: 1fr; }
    .about-image-wrapper { max-width: 380px; margin: 0 auto; }
    
    .score-scale-labels { display: none; }
    .score-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        background: var(--bg-cream);
        padding: 1rem;
        border-radius: 12px;
        border: 1px solid var(--border-brown);
    }
    .score-idlabel, .score-value { width: 100%; text-align: left; }
    .score-value { flex-direction: row; justify-content: space-between; align-items: baseline; }
}

@media (max-width: 768px) {
    body { font-size: 1.05rem; }
    
    .hero h1 { font-size: 2.2rem; margin-bottom: 1rem; }
    h1 { font-size: 2.4rem; }
    h2 { font-size: 2rem; margin-top: 1.5rem; }
    h3 { font-size: 1.5rem; }

    .container, .wrap { padding: 1.2rem; }
    .hero { padding: 3rem 1.2rem; margin: 1.5rem 0; border-radius: 30px 30px 4px 30px; }
    .card { padding: 1.5rem; }
    .course-large { padding: 1.5rem; border-radius: 25px 4px 25px 25px; margin-bottom: 2rem; }
    .progress-container { padding: 1.5rem; }
    .profile-card { padding: 1.5rem; }
    .contact-section { padding: 3rem 1.2rem; border-radius: 4px 30px 30px 4px; }
    
    .btn-secondary { margin-left: 0; margin-top: 0.8rem; }

    .contact-links { font-size: 1rem; padding: 0 0.5rem; }
    .contact-links a { text-align: center; justify-content: center; }

    .facet-row { flex-direction: column; align-items: flex-start; gap: 0.1rem; margin-left: 0.5rem; }
    .candle-label-left, .candle-label-right { display: none; }
    .candle-track { width: 100%; }

    header { flex-direction: column; gap: 1rem; padding: 1rem 0; text-align: center; }
    nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem; }
    nav a { margin-left: 0; font-size: 1rem; }
    .brand-logo { height: 50px; }

    .pillars-grid { grid-template-columns: 1fr; }
    .styles-intro-grid { grid-template-columns: 1fr; }

    .credentials-badge { padding: 1.2rem; }
    .credentials-row { flex-direction: column; align-items: flex-start; gap: 1rem; }

    .carousel-item { flex: 0 0 92%; }
    .carousel-btn { display: none; }

    .about-portrait { border-radius: 30px 10px 30px 30px; }
    .subtests th, .subtests td { padding: 0.8rem 1rem; font-size: 0.95rem; }
    #dagligliv .card { padding: 1.2rem; }
}

@media (max-width: 600px) {
    .theory-grid { grid-template-columns: 1fr; }
    .not-equal-sign { padding: 0.3rem 0; }
    .style-descriptions-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
    .style-matrix-compact { width: 250px; height: 250px; }
    .matrix-axis-y, .matrix-axis-x { font-size: 0.78rem; }
    .carousel-item { flex: 0 0 95%; }
    .contact-links { font-size: 0.95rem; }
}