/* ============================================
   Nyrge Agency Theme — Light Professional
   ============================================ */

/* --- Self-hosted Inter (SIL Open Font License) --- */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/inter-latin-400-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/inter-latin-500-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/inter-latin-600-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/inter-latin-700-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('../fonts/inter-latin-800-normal.woff2') format('woff2');
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #ffffff;
    --surface: #f8f9fb;
    --elevated: #ffffff;
    --border: #e2e5ea;
    --text: #1a1a2e;
    --text-muted: #6b7280;
    --heading: #0f0f1a;
    --accent: #0066ff;
    --accent-hover: #0052cc;
    --accent-light: #e8f0ff;
    --accent-subtle: #f0f5ff;
    --success: #059669;
    --error: #dc2626;
    --radius: 8px;
    --radius-lg: 12px;
    --max-width: 1200px;
    --content-width: 780px;
    --nav-height: 64px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.06), 0 4px 6px rgba(0, 0, 0, 0.04);
    --transition: 0.2s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
}

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

h1,
h2,
h3,
h4 {
    color: var(--heading);
    line-height: 1.2;
    font-weight: 700;
}

h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -1px;
}

h2 {
    font-size: 2rem;
    letter-spacing: -0.5px;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

h4 {
    font-size: 1rem;
    font-weight: 600;
}

/* --- Layout --- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 80px 0;
}

.section-surface {
    background: var(--surface);
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 16px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 48px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-accent {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.btn-accent:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    border-color: var(--accent);
}

.btn-outline:hover {
    background: var(--accent-light);
    color: var(--accent-hover);
    transform: translateY(-1px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

/* --- Header --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    height: var(--nav-height);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-height);
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-logo-icon {
    display: block;
    flex-shrink: 0;
}
.site-logo-img { height: 36px; width: auto; display: block; }
.site-logo-icon-img { height: 32px; width: auto; display: block; flex-shrink: 0; }

.site-logo-text {
    font-family: 'Inter', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--heading);
    letter-spacing: -0.5px;
    line-height: 1;
}

.site-logo-text .accent {
    color: var(--accent);
}

.site-nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-links a {
    color: var(--text);
    font-size: 0.9375rem;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: var(--radius);
    transition: all var(--transition);
}

.nav-links a:hover {
    color: var(--accent);
    background: var(--accent-light);
}

.nav-links .btn-accent {
    color: #fff;
}

.nav-links .btn-accent:hover {
    color: #fff;
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

/* Language switcher */
.language-switcher { display: inline-flex; gap: 2px; align-items: center; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.lang-link { padding: 4px 8px; font-size: 12px; font-weight: 600; text-decoration: none; color: var(--text-muted); transition: all 0.15s; letter-spacing: 0.5px; }
.lang-link:hover { color: var(--text); background: var(--surface); }
.lang-link.active { color: #fff; background: var(--accent); }
.lang-switcher-item { display: flex; align-items: center; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--heading);
    border-radius: 1px;
    transition: all var(--transition);
}

/* --- Hero --- */
.hero {
    padding: 100px 0 80px;
    text-align: center;
    background: linear-gradient(180deg, var(--accent-subtle) 0%, var(--bg) 100%);
}

.hero h1 {
    max-width: 800px;
    margin: 0 auto 20px;
}

.hero-tagline {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-with-image {
    text-align: left;
}

.hero-with-image .hero-cta {
    justify-content: flex-start;
}

.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.hero-split .hero-text h1 {
    max-width: none;
    margin: 0 0 20px;
}

.hero-split .hero-tagline {
    max-width: none;
    margin: 0 0 40px;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    object-fit: cover;
    aspect-ratio: 3/2;
}

/* --- Stats Bar --- */
.stats-bar {
    padding: 40px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1.2;
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* --- Service Cards --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all var(--transition);
}

.service-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.service-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.service-price {
    display: inline-block;
    margin-top: 16px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-light);
    padding: 4px 12px;
    border-radius: 20px;
}

/* --- Process Steps --- */
.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    counter-reset: process-step;
}

.process-step {
    text-align: center;
    position: relative;
    counter-increment: process-step;
}

.process-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 1.25rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.process-step h3 {
    margin-bottom: 8px;
}

.process-step p {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

/* --- AI Section --- */
.ai-section {
    padding: 80px 0;
    background: var(--heading);
    color: #fff;
}

.ai-section .section-title {
    color: #fff;
}

.ai-section .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.ai-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.ai-content h2 {
    color: #fff;
    margin-bottom: 20px;
}

.ai-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.0625rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.ai-features {
    list-style: none;
    margin-top: 24px;
}

.ai-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9375rem;
}

.ai-features li svg {
    flex-shrink: 0;
    color: var(--accent);
    margin-top: 2px;
}

.ai-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-image img {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.15);
}

/* --- Portfolio --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.portfolio-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
}

.portfolio-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.portfolio-card-img {
    height: 180px;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.portfolio-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-card-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius);
}

.portfolio-card-body {
    padding: 24px;
}

.portfolio-card-body h3 {
    margin-bottom: 8px;
}

.portfolio-card-body p {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 12px;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.portfolio-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent);
    background: var(--accent-light);
    padding: 3px 10px;
    border-radius: 20px;
}

.portfolio-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 12px;
}

/* --- CTA Section --- */
.cta-section {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(180deg, var(--bg) 0%, var(--accent-subtle) 100%);
}

.cta-section h2 {
    margin-bottom: 16px;
}

.cta-section p {
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Pricing Table --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 0 auto;
}

.pricing-card {
    display: flex;
    flex-direction: column;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    position: relative;
}

.pricing-card.featured {
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 16px;
    border-radius: 20px;
    white-space: nowrap;
}

.pricing-card h3 {
    margin-bottom: 8px;
}

.pricing-amount {
    font-size: 2rem;
    font-weight: 800;
    color: var(--heading);
    line-height: 1;
}

.pricing-period {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.pricing-desc {
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin: 12px 0 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.pricing-features {
    list-style: none;
    margin-bottom: 24px;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.9375rem;
    color: var(--text);
}

.pricing-features li svg {
    flex-shrink: 0;
    color: var(--success);
    margin-top: 2px;
}

/* --- Horizontal pricing card --- */
.pricing-card-horizontal {
    display: flex;
    align-items: center;
    gap: 48px;
    margin-top: 40px;
    padding: 32px 40px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.pricing-card-horizontal-main {
    flex: 0 0 280px;
    border-right: 1px solid var(--border);
    padding-right: 48px;
}

.pricing-card-horizontal-main h3 {
    margin-bottom: 8px;
}

.pricing-features-horizontal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 40px;
    flex: 1;
    margin-bottom: 0;
}

/* --- Bransje Grid (legacy small cards) --- */
.bransje-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* --- Bransje Card Grid (rich cards with features) --- */
.bransje-card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.bransje-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex;
    flex-direction: column;
    transition: all var(--transition);
}

.bransje-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.bransje-card-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.bransje-card-header img {
    flex-shrink: 0;
    border-radius: 8px;
}

.bransje-card-header h3 {
    font-size: 1.0625rem;
    margin-bottom: 4px;
}

.bransje-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

.bransje-features {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    flex: 1;
}

.bransje-features li {
    position: relative;
    padding: 4px 0 4px 24px;
    font-size: 0.8625rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.bransje-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230066ff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.bransje-card-actions {
    display: flex;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.bransje-card-actions a {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
}

.bransje-card-actions a:hover {
    color: var(--accent-hover);
}

/* --- AI Model Grid (replaces portrait image) --- */
.ai-models {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ai-models-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ai-model-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-width: 320px;
}

.ai-model-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.ai-model-badge:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.2);
}

.ai-model-badge svg {
    color: var(--accent);
}

.ai-model-badge span {
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    white-space: nowrap;
}

/* --- AI Feature Grid (landing page "Hvorfor Nyrge" section) --- */
.ai-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.ai-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.ai-feature-item:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.2);
}

.ai-feature-item svg {
    flex-shrink: 0;
    color: var(--accent);
}

.ai-feature-item span {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

/* --- Contact Form --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: flex-start;
}

.contact-info h3 {
    margin-bottom: 24px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
}

.contact-item svg {
    flex-shrink: 0;
    color: var(--accent);
    margin-top: 2px;
}

.contact-item strong {
    display: block;
    margin-bottom: 2px;
}

.contact-item span {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--heading);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.9375rem;
    font-family: inherit;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    color: var(--text);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-msg {
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 0.9375rem;
    margin-bottom: 20px;
    display: none;
}

.form-msg.success {
    display: block;
    background: #ecfdf5;
    color: var(--success);
    border: 1px solid #a7f3d0;
}

.form-msg.error {
    display: block;
    background: #fef2f2;
    color: var(--error);
    border: 1px solid #fecaca;
}

/* --- About Page --- */
.about-hero {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 48px;
    align-items: center;
    padding: 60px 0;
}

.about-photo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.about-photo {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent-light);
}

.about-social {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--surface);
    color: var(--text-muted);
    transition: all 0.2s;
}

.social-link:hover {
    background: var(--accent);
    color: #fff;
}

.about-content h1 {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.about-role {
    color: var(--accent);
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: 20px;
}

.about-content p {
    color: var(--text-muted);
    font-size: 1.0625rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.about-legal {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.about-legal p {
    font-size: 0.9375rem;
}

/* --- Blog / Archive --- */
.archive-header {
    text-align: center;
    padding: 60px 0 40px;
}

.archive-header h1 {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.archive-header p {
    color: var(--text-muted);
    font-size: 1.125rem;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
    padding-bottom: 60px;
}

.post-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
}

.post-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.post-card-img {
    display: block;
    height: 200px;
    background: var(--surface);
    overflow: hidden;
}

.post-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-card-body {
    padding: 24px;
}

.post-card-meta {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.post-card-body h3 {
    margin-bottom: 8px;
}

.post-card-body h3 a {
    color: var(--heading);
}

.post-card-body h3 a:hover {
    color: var(--accent);
}

.post-card-excerpt {
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* --- Single Post --- */
.single-post {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 60px 24px;
}

.single-post .post-header {
    margin-bottom: 40px;
}

.single-post .post-header h1 {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.single-post .post-meta {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.single-post .post-content {
    font-size: 1.0625rem;
    line-height: 1.8;
}

.single-post .post-content h2 {
    margin: 40px 0 16px;
}

.single-post .post-content h3 {
    margin: 32px 0 12px;
}

.single-post .post-content p {
    margin-bottom: 16px;
}

.single-post .post-content ul,
.single-post .post-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.single-post .post-content li {
    margin-bottom: 8px;
}

.single-post .post-content img {
    border-radius: var(--radius);
    margin: 24px 0;
}

.single-post .post-content blockquote {
    border-left: 3px solid var(--accent);
    padding: 16px 24px;
    margin: 24px 0;
    background: var(--surface);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--text-muted);
}

.single-post .post-content code {
    background: var(--surface);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.875em;
}

.single-post .post-content pre {
    background: var(--heading);
    color: #e8e8ec;
    padding: 20px;
    border-radius: var(--radius);
    overflow-x: auto;
    margin: 24px 0;
}

.single-post .post-content pre code {
    background: none;
    padding: 0;
}

/* --- Pagination --- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 40px 0;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    transition: all var(--transition);
}

.pagination a:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-light);
}

.pagination .current {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* --- 404 --- */
.error-page {
    text-align: center;
    padding: 120px 24px;
}

.error-page h1 {
    font-size: 6rem;
    color: var(--accent);
    margin-bottom: 16px;
}

.error-page p {
    color: var(--text-muted);
    font-size: 1.25rem;
    margin-bottom: 32px;
}

/* --- Page header --- */
.page-header {
    text-align: center;
    padding: 60px 0 40px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.page-header p {
    color: var(--text-muted);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Generic page content --- */
.page-content {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 60px 24px;
    font-size: 1.0625rem;
    line-height: 1.8;
}

.page-content p {
    margin-bottom: 16px;
}

.page-content h2 {
    margin: 40px 0 16px;
}

.page-content h3 {
    margin: 32px 0 12px;
}

/* --- Footer --- */
.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-logo {
    margin-bottom: 16px;
}

.footer-about {
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.footer-col h4 {
    margin-bottom: 16px;
    color: var(--heading);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.footer-col ul li svg {
    flex-shrink: 0;
}

.footer-col ul li a {
    color: var(--text-muted);
    font-size: 0.9375rem;
    transition: color var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-col ul li a:hover {
    color: var(--accent);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    border-top: 1px solid var(--border);
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.footer-bottom a {
    color: var(--text-muted);
}

.footer-bottom a:hover {
    color: var(--accent);
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-sep {
    color: var(--border);
}

.footer-social-link {
    color: var(--text-muted);
    transition: color .2s;
    display: inline-flex;
}

.footer-social-link:hover {
    color: var(--accent);
}

.footer-social-link svg {
    width: 20px;
    height: 20px;
}

/* --- Onboarding & SaaS Pricing --- */
.onboarding-themes {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.onboarding-theme-card {
    position: relative;
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-top: 3px solid var(--card-accent, var(--border));
}

.onboarding-theme-card:hover {
    border-color: color-mix(in srgb, var(--card-accent) 50%, var(--border));
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.onboarding-theme-card.selected {
    border-color: var(--card-accent, var(--accent));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--card-accent, var(--accent)) 15%, transparent);
    background: color-mix(in srgb, var(--card-accent, var(--accent)) 3%, var(--bg));
}

.otc-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.otc-icon {
    border-radius: 6px;
}

.otc-check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.onboarding-theme-card.selected .otc-check {
    background: var(--card-accent, var(--accent));
    border-color: var(--card-accent, var(--accent));
    color: #fff;
}

.otc-name {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--heading);
}

.otc-desc {
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.45;
    margin: 0 0 12px;
}

.otc-demo {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s ease;
}

.otc-demo:hover {
    color: var(--card-accent, var(--accent));
}

.onboarding-form {
    max-width: 560px;
    margin: 0 auto;
}

.onboarding-form .form-group {
    margin-bottom: 20px;
}

.onboarding-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.9375rem;
}

.onboarding-form input[type="text"],
.onboarding-form input[type="email"],
.onboarding-form input[type="tel"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color var(--transition);
    background: var(--bg);
    color: var(--text);
}

.onboarding-form input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}

/* Module selection in onboarding */
.onboarding-modules {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 560px;
    margin: 0 auto;
}

.onboarding-module-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
    position: relative;
}

.onboarding-module-option:hover {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 20%, transparent);
}

.onboarding-module-option:has(input:checked) {
    border-color: var(--accent);
    background: color-mix(in srgb, var(--accent) 4%, transparent);
    box-shadow: 0 0 0 1px var(--accent);
}

/* Hidden native checkbox */
.onboarding-module-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* Custom toggle */
.omo-toggle {
    float: left;
    margin: 0 12px 0 0;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border: 2px solid var(--border);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    background: transparent;
}

.omo-check {
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s ease;
    color: #fff;
}

.onboarding-module-option:has(input:checked) .omo-toggle {
    background: var(--accent);
    border-color: var(--accent);
}

.onboarding-module-option:has(input:checked) .omo-check {
    opacity: 1;
    transform: scale(1);
}

.onboarding-module-option:hover .omo-toggle {
    border-color: var(--accent);
}

/* Module icon */
.omo-icon {
    flex-shrink: 0;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    transition: color var(--transition);
}

.onboarding-module-option:has(input:checked) .omo-icon {
    color: var(--accent);
}

/* Module info */
.omo-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.omo-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.omo-info strong {
    font-size: 0.95rem;
}

.omo-price {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--accent);
    white-space: nowrap;
}

.omo-desc {
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.onboarding-summary {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin: 32px 0 16px;
    text-align: left;
}

.plan-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    max-width: 460px;
    margin: 0 auto 8px;
}

.plan-box {
    position: relative;
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.plan-box:hover {
    border-color: var(--accent-light);
}

.plan-box.selected {
    border-color: var(--accent);
    background: var(--accent-subtle);
}

.plan-box-header {
    font-weight: 600;
    font-size: 0.9375rem;
    margin-bottom: 6px;
}

.plan-box-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--heading);
}

.plan-box-price span:last-child {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
}

.plan-box-detail {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.plan-badge {
    position: absolute;
    top: -10px;
    right: 16px;
    background: var(--success);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.pricing-single {
    max-width: 480px;
    margin: 0 auto;
}

.pricing-toggle {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 40px;
    background: var(--surface);
    border-radius: 10px;
    padding: 4px;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    background: transparent;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    justify-content: center;
}

.pricing-toggle-btn.active {
    background: var(--bg);
    color: var(--heading);
    box-shadow: var(--shadow-sm);
}

.pricing-toggle-badge {
    background: var(--success);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
}

.faq-list {
    max-width: 720px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-question {
    font-weight: 600;
    font-size: 1.0625rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    gap: 16px;
}

.faq-question:hover {
    color: var(--accent);
}

.faq-question svg {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.faq-item.open .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 0 20px;
    color: var(--text-muted);
    line-height: 1.7;
    display: none;
}

.faq-item.open .faq-answer {
    display: block;
}

.service-link {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
}

.service-link:hover {
    text-decoration: underline;
}

/* --- Onboarding included grid --- */
.onboarding-included-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 32px;
}

.onboarding-included-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.onboarding-included-item svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.onboarding-included-item strong {
}

.onboarding-included-item span {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.25rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .services-grid,
    .process-grid {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-card-horizontal {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        padding: 28px 24px;
    }

    .pricing-card-horizontal-main {
        flex: none;
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding-right: 0;
        padding-bottom: 20px;
    }

    .pricing-features-horizontal {
        grid-template-columns: 1fr;
    }

    .bransje-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .bransje-card-grid {
        grid-template-columns: 1fr;
    }

    .ai-model-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .ai-feature-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-split {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
        text-align: center;
    }

    .ai-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .ai-image {
        order: -1;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .about-hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-photo-wrapper {
        margin: 0 auto;
    }

    .onboarding-themes {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 16px 24px;
        gap: 4px;
        box-shadow: var(--shadow-lg);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        width: 100%;
        padding: 12px;
    }

    .nav-links .btn-accent {
        text-align: center;
        margin-top: 8px;
    }

    .site-header {
        position: relative;
    }

    .hero {
        padding: 60px 0 50px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-tagline {
        font-size: 1.0625rem;
    }

    .hero-with-image {
        text-align: center;
    }

    .hero-with-image .hero-cta {
        justify-content: center;
    }

    .hero-split {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero-image {
        order: -1;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .section {
        padding: 60px 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .bransje-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bransje-card-grid {
        grid-template-columns: 1fr;
    }

    .ai-model-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .ai-model-badge {
        padding: 12px 8px;
    }

    .ai-feature-grid {
        grid-template-columns: 1fr;
    }

    .post-grid {
        grid-template-columns: 1fr;
    }

    .single-post .post-header h1 {
        font-size: 2rem;
    }

    .onboarding-themes {
        grid-template-columns: repeat(2, 1fr);
    }

    .plan-toggle {
        grid-template-columns: 1fr;
        max-width: 300px;
    }

    .pricing-toggle {
        max-width: 100%;
    }

    .partner-commission-grid {
        grid-template-columns: 1fr;
    }

    .commission-radio-group {
        flex-direction: column;
    }

    .spar-grid {
        grid-template-columns: 1fr !important;
    }

    .norsk-fordel-grid {
        grid-template-columns: 1fr !important;
    }

    .onboarding-included-grid {
        grid-template-columns: 1fr;
    }
}

/* === Partner page === */
.partner-commission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.partner-commission-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg, 12px);
    padding: 2rem;
    text-align: center;
}

.partner-commission-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.partner-commission-card .commission-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent, #0066ff);
    line-height: 1.1;
    margin: 0.75rem 0;
}

.partner-commission-card .commission-price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted, #666);
}

.commission-details {
    list-style: none;
    padding: 0;
    margin-top: 1.25rem;
    text-align: left;
}

.commission-details li {
    padding: 0.4rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary, #555);
}

.commission-details li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--accent, #0066ff);
    font-weight: 700;
}

.commission-radio-group {
    display: flex;
    gap: 1rem;
}

.commission-radio-option {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: var(--radius, 8px);
    cursor: pointer;
    transition: border-color 0.2s;
}

.commission-radio-option:hover {
    border-color: var(--accent, #0066ff);
}

.commission-radio-option input[type="radio"] {
    accent-color: var(--accent, #0066ff);
}

/* === Partner landing page === */
.partner-landing-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--success);
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 24px;
    margin-bottom: 24px;
}

.partner-discount-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    padding: 16px 24px;
    border-radius: 8px;
    font-size: 0.9375rem;
}

.partner-discount-banner span {
    color: #047857;
    font-size: 0.875rem;
}

/* === Module badges (landing page) === */
.module-badge {
    display: inline-block;
    margin-top: 12px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-subtle);
    padding: 4px 12px;
    border-radius: 16px;
}

.module-badge--included {
    color: #047857;
    background: #ecfdf5;
}

/* --- Content Tables (help, blog, pages) --- */
.help-content table,
.page-content table,
.single-post .post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 0.9375rem;
    line-height: 1.5;
    overflow-x: auto;
    display: block;
}

.help-content thead,
.page-content thead,
.single-post .post-content thead {
    display: table-header-group;
}

.help-content tbody,
.page-content tbody,
.single-post .post-content tbody {
    display: table-row-group;
}

.help-content tr,
.page-content tr,
.single-post .post-content tr {
    display: table-row;
}

.help-content table,
.page-content table,
.single-post .post-content table {
    display: table;
    min-width: 100%;
}

@media (max-width: 768px) {

    .help-content table,
    .page-content table,
    .single-post .post-content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

.help-content th,
.page-content th,
.single-post .post-content th {
    background: var(--surface);
    font-weight: 600;
    text-align: left;
    padding: 12px 16px;
    border-bottom: 2px solid var(--border);
    color: var(--heading);
    white-space: nowrap;
}

.help-content td,
.page-content td,
.single-post .post-content td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.help-content tbody tr:last-child td,
.page-content tbody tr:last-child td,
.single-post .post-content tbody tr:last-child td {
    border-bottom: none;
}

.help-content tbody tr:hover,
.page-content tbody tr:hover,
.single-post .post-content tbody tr:hover {
    background: var(--accent-subtle);
}

/* --- Help Center --- */
.help-breadcrumb {
    margin-bottom: 24px;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.help-breadcrumb a {
    color: var(--accent);
    text-decoration: none;
}

.help-breadcrumb a:hover {
    text-decoration: underline;
}

.help-breadcrumb-sep {
    margin: 0 6px;
    color: var(--border);
}

.help-topic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.help-topic-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    transition: var(--transition);
}

.help-topic-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.help-topic-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-light);
    border-radius: var(--radius);
    margin-bottom: 16px;
    color: var(--accent);
}

.help-topic-card h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.help-topic-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.help-topic-count {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 500;
}

.help-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
    align-items: start;
}

.help-sidebar {
    position: sticky;
    top: calc(var(--nav-height) + 24px);
}

.help-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.help-nav-group {
    margin-bottom: 4px;
}

.help-nav-topic {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius);
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.help-nav-topic svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.help-nav-topic:hover {
    background: var(--surface);
}

.help-nav-topic.active {
    background: var(--accent-light);
    color: var(--accent);
}

.help-nav-articles {
    list-style: none;
    margin: 2px 0 8px 40px;
}

.help-nav-articles li a {
    display: block;
    padding: 6px 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: var(--radius);
    transition: var(--transition);
}

.help-nav-articles li a:hover {
    color: var(--text);
    background: var(--surface);
}

.help-nav-articles li a.active {
    color: var(--accent);
    font-weight: 500;
}

.help-content {
    min-width: 0;
}

.help-content h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--heading);
}

.help-content h3 {
    font-size: 1.15rem;
    margin: 28px 0 12px;
    color: var(--heading);
}

.help-content p {
    margin-bottom: 16px;
    line-height: 1.7;
}

.help-content ul,
.help-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.help-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.help-content code {
    background: var(--surface);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.875rem;
}

.help-content .help-tip {
    background: var(--accent-subtle);
    border-left: 3px solid var(--accent);
    padding: 16px 20px;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin-bottom: 20px;
}

.help-content .help-tip strong {
    color: var(--accent);
}

.help-content .help-warning {
    background: #fff7ed;
    border-left: 3px solid #f59e0b;
    padding: 16px 20px;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin-bottom: 20px;
}

.help-article-list {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.help-article-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: var(--elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: var(--transition);
}

.help-article-link:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.help-article-link svg {
    color: var(--text-muted);
    transition: var(--transition);
}

.help-article-link:hover svg {
    color: var(--accent);
    transform: translateX(2px);
}

/* Fiken integration page */
.integration-features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
    margin: 40px 0;
}

.integration-feature-card {
    background: var(--elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
}

.integration-feature-card .help-topic-icon {
    margin-bottom: 14px;
}

.integration-feature-card h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.integration-feature-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
}

.integration-steps {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.integration-step {
    text-align: center;
    padding: 24px 16px;
}

.integration-step-number {
    width: 40px;
    height: 40px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 14px;
}

.integration-step h4 {
    margin-bottom: 8px;
}

.integration-step p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .help-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .help-sidebar {
        position: static;
    }

    .help-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 4px;
    }

    .help-nav-group {
        flex: none;
    }

    .help-nav-articles {
        margin-left: 0;
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
    }

    .help-topic-grid {
        grid-template-columns: 1fr;
    }

    .integration-features,
    .integration-steps {
        grid-template-columns: 1fr;
    }
}