*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --bg: #f4f2ef;
    --surface: #fff;
    --border: #ddd8d0;
    --text: #1a1a1a;
    --muted: #6b6560;
    --primary: #2d7a4f;
    --primary-hover: #236340;
    --primary-dark: #1a1a1a;
    --accent: #c5dece;
    --accent-warm: #f0e6d8;
    --success: #2d7a4f;
    --danger: #b44;
    --trim-color: rgba(255, 255, 255, 0.85);
    --trim-shadow: rgba(0, 0, 0, 0.45);
    --bleed-bg: #e8e4de;
    --font-display: "Anton", "Impact", sans-serif;
    --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

.site-header,
.header {
    background: var(--primary);
    color: #fff;
    padding: 1rem 0;
}

.site-header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.site-header-link {
    display: inline-flex;
    text-decoration: none;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1.25rem;
}

.site-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    opacity: 0.92;
}

.site-nav a:hover {
    opacity: 1;
    text-decoration: underline;
}

.header-logo {
    display: block;
    width: auto;
    height: 48px;
    max-width: min(280px, 88vw);
    margin: 0;
}

.subtitle {
    margin: 0 auto;
    opacity: 0.9;
    max-width: 72rem;
    font-size: 0.9rem;
    line-height: 1.45;
}

.main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.25rem;
}

.customer-panel,
.summary-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem 1.1rem;
    margin-bottom: 1rem;
}

.panel-title {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    font-weight: 600;
}

.customer-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.85rem;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.field-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--muted);
}

.field input,
.field textarea,
.field select {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.55rem 0.7rem;
    font-size: 0.95rem;
    font-family: inherit;
    background: #fff;
}

.field textarea {
    resize: vertical;
    min-height: 4.5rem;
    line-height: 1.4;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
    outline: 2px solid rgba(44, 95, 74, 0.25);
    border-color: var(--primary);
}

.delivery-address-fields {
    margin-top: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.field-full {
    width: 100%;
}

[hidden] {
    display: none !important;
}

.price-info,
.order-info {
    margin: 0 0 0.35rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.delivery-options {
    margin: 0.85rem 0 0;
    padding: 0;
    border: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.delivery-options .field-label {
    margin-bottom: 0.15rem;
}

.delivery-option {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.95rem;
    cursor: pointer;
}

.delivery-option input {
    margin-top: 0.2rem;
    accent-color: var(--primary);
}

.delivery-note {
    color: var(--muted);
    font-size: 0.85rem;
}

.price-line {
    margin: 0 0 0.25rem;
    font-size: 0.95rem;
    color: var(--muted);
}

.price-total,
.order-usage {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
}

.summary-panel[hidden] {
    display: none;
}

.toolbar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
}

.btn {
    border: none;
    border-radius: 8px;
    padding: 0.55rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, opacity 0.15s;
}

.btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

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

.btn-primary:hover:not(:disabled) {
    background: var(--primary-hover);
}

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

.btn-success:hover:not(:disabled) {
    filter: brightness(1.08);
}

.btn-secondary {
    background: #ece8e2;
    color: var(--text);
}

.btn-secondary:hover {
    background: #e0dbd4;
}

.btn-icon {
    width: 2.2rem;
    height: 2.2rem;
    padding: 0;
    background: #ece8e2;
    color: var(--text);
    font-size: 1.1rem;
    line-height: 1;
}

.btn-icon:hover {
    background: #e0dbd4;
}

.btn-remove:hover {
    background: #f5d5d5;
    color: var(--danger);
}

.btn-lock.is-active {
    background: #dce8e2;
    color: var(--primary);
}

.btn-icon:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-upload,
.btn-upload-multi,
.btn-upload-single {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.btn-google-photos {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: #fff;
    color: var(--text);
    border: 1px solid var(--border);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.btn-google-photos:hover:not(:disabled) {
    background: #f7f7f5;
    border-color: #cfc9c0;
}

.btn-google-icon {
    flex-shrink: 0;
}

.empty-state {
    background: var(--surface);
    border: 2px dashed var(--border);
    border-radius: 12px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    color: var(--muted);
    margin-bottom: 1.25rem;
}

.empty-state p {
    margin: 0;
    font-size: 0.95rem;
}

.empty-state[hidden] {
    display: none;
}

.drop-overlay {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(45, 122, 79, 0.12);
    border: 3px dashed var(--primary);
    pointer-events: none;
}

.drop-overlay[hidden] {
    display: none;
}

.drop-overlay p {
    margin: 0;
    padding: 0.85rem 1.25rem;
    border-radius: 999px;
    background: var(--surface);
    color: var(--primary);
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.designer-main.is-dragover {
    cursor: copy;
}

.status {
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.3;
    margin: 0;
}

.status:empty {
    display: none;
}

.info-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    color: var(--muted);
}

.slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.slot {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    min-width: 0;
    max-width: 100%;
}

.slot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0.85rem;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

.slot-title {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.slot-label {
    font-weight: 600;
    font-size: 0.95rem;
}

.slot-grid-summary {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--muted);
}

.slot-grid-summary:empty {
    display: none;
}

.slot-header-sep {
    width: 1px;
    align-self: stretch;
    min-height: 2.25rem;
    background: var(--border);
    flex-shrink: 0;
}

.slot-grid-controls {
    flex: 1 1 auto;
}

.grid-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.grid-selects {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.grid-selects select {
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.3rem 0.45rem;
    font-size: 0.85rem;
    font-family: inherit;
    background: #fff;
    min-width: 2.75rem;
}

.grid-selects select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f5f3f0;
}

.grid-axis {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--muted);
    min-width: 0.85rem;
}

.grid-times {
    color: var(--muted);
    font-weight: 600;
}

.slot-actions {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.editor-wrap {
    display: none;
    padding: 0.85rem;
    overflow: hidden;
}

.slot.has-image .editor-wrap {
    display: block;
}

.slot.has-image .slot-empty {
    display: none;
}

.slot.is-locked .editor {
    touch-action: none;
}

.slot.is-locked .cropper-container,
.slot.is-locked .cropper-canvas,
.slot.is-locked .cropper-drag-box {
    pointer-events: none !important;
}

.slot.is-locked .editor-hint::after {
    content: ' · Låst';
    font-weight: 600;
    color: var(--primary);
}

.slot-empty {
    padding: 2.5rem 1rem;
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
}

/* Bleed-yta – ytterkant = skärlinje, inre streck = synlig yta, rutnät = delning */
.editor {
    position: relative;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    aspect-ratio: var(--editor-aspect, 1);
    background: #d8d4ce;
    overflow: hidden;
}

.editor .slot-image {
    display: block;
    max-width: 100%;
}

.editor .cropper-container {
    width: 100% !important;
    height: 100% !important;
    background: #d8d4ce;
}

.editor .cropper-wrap-box,
.editor .cropper-canvas,
.editor .cropper-drag-box {
    background: #d8d4ce;
}

.editor .cropper-view-box,
.editor .cropper-face {
    border-radius: 0;
}

/* Cropper.js standard: blå ram + dimmad overlay – vi använder egna guider istället */
.editor .cropper-view-box {
    outline: none;
    box-shadow: none;
}

.editor .cropper-face {
    background: transparent;
}

.editor .cropper-modal {
    background: transparent;
    opacity: 0;
}

.editor .cropper-center {
    display: none;
}

.guides {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 10;
}

.guide-cut {
    position: absolute;
    inset: 0;
    border: 2px solid rgba(30, 30, 30, 0.75);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.guide-trim {
    position: absolute;
    inset: var(--guide-trim-inset, 5.357%);
    border: 2px dashed var(--trim-color);
    box-shadow: 0 0 0 1px var(--trim-shadow);
}

.guide-grid {
    position: absolute;
    inset: 0;
}

.guide-grid-line {
    position: absolute;
    background: rgba(200, 50, 50, 0.65);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.guide-grid-v {
    top: 0;
    bottom: 0;
    width: 2px;
    transform: translateX(-50%);
}

.guide-grid-h {
    left: 0;
    right: 0;
    height: 2px;
    transform: translateY(-50%);
}

.slot.is-grid .editor-hint::before {
    content: 'Delas i rutnät · ';
}

.grid-quality {
    margin: 0.45rem 0 0;
    text-align: center;
    font-size: 0.78rem;
    line-height: 1.35;
}

.grid-quality[hidden] {
    display: none;
}

.grid-quality.is-ok {
    color: var(--success);
    font-weight: 600;
}

.grid-quality.is-warn {
    color: #9a6b00;
}

.grid-quality.is-bad {
    color: var(--danger);
    font-weight: 600;
}

.editor-hint {
    margin: 0.6rem 0 0;
    text-align: center;
    font-size: 0.78rem;
    color: var(--muted);
}

.brightness-field {
    display: block;
    max-width: 320px;
    margin: 0.75rem auto 0;
}

.brightness-field .field-label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
}

.brightness-value {
    font-variant-numeric: tabular-nums;
    color: var(--muted);
    font-weight: 500;
}

.brightness-slider {
    width: 100%;
    margin: 0;
    accent-color: var(--primary);
}

.brightness-slider:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

@media (max-width: 600px) {
    .slot-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .slot-header-sep {
        width: 100%;
        height: 1px;
        min-height: 0;
    }

    .slot-grid-controls {
        width: 100%;
    }
}

/* ── Landing page ── */

.landing {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.25rem 3rem;
}

.hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    align-items: start;
    padding: 2.5rem 0 3rem;
}

.hero-eyebrow {
    margin: 0 0 0.5rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.8rem;
}

.hero-title {
    margin: 0 0 0.75rem;
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    line-height: 1.05;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.hero-subtitle {
    margin: 0 0 1.5rem;
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 34rem;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-visual {
    position: relative;
    min-height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-fridge {
    position: relative;
    width: min(100%, 360px);
    aspect-ratio: 1;
}

.hero-magnet {
    position: absolute;
    width: 118px;
    height: 118px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    text-align: center;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.07);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.85),
        0 10px 22px rgba(26, 26, 26, 0.12),
        0 3px 8px rgba(26, 26, 26, 0.06);
    transform: rotate(-4deg);
    overflow: hidden;
}

.hero-magnet::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 42%);
    pointer-events: none;
}

.hero-magnet::after {
    content: '';
    position: absolute;
    inset: 7px;
    border-radius: 8px;
    border: 1px dashed rgba(0, 0, 0, 0.07);
    pointer-events: none;
}

.hero-magnet-kicker,
.hero-magnet-title,
.hero-magnet-badge {
    position: relative;
    z-index: 1;
}

.hero-magnet-kicker {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.72;
}

.hero-magnet-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    line-height: 0.95;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.hero-magnet-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.18rem 0.45rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hero-magnet-1 {
    top: 12%;
    left: 8%;
    transform: rotate(-7deg);
    background: linear-gradient(160deg, #fff7ea 0%, #f1dfbf 100%);
    color: var(--primary-dark);
}

.hero-magnet-2 {
    top: 34%;
    right: 4%;
    transform: rotate(8deg);
    background: linear-gradient(160deg, #ffffff 0%, #f3f0eb 100%);
    color: var(--primary-dark);
}

.hero-magnet-3 {
    bottom: 8%;
    left: 22%;
    transform: none;
    background: linear-gradient(160deg, #3a9164 0%, #2d7a4f 100%);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.18);
}

.hero-magnet-3 .hero-magnet-kicker,
.hero-magnet-3 .hero-magnet-title {
    opacity: 1;
}

.hero-magnet-3 .hero-magnet-title {
    font-size: 1.55rem;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.35rem;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid transparent;
    transition: transform 0.15s, filter 0.15s;
}

.btn-cta:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.btn-cta-primary {
    background: var(--success);
    color: #fff;
}

.btn-cta-secondary {
    background: transparent;
    color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-cta-dark {
    background: var(--primary-dark);
    color: #fff;
}

.section-title {
    margin: 0 0 0.5rem;
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.section-lead {
    margin: 0 0 1.75rem;
    color: var(--muted);
    max-width: 40rem;
}

.pricing-section,
.motifs-section,
.cta-band {
    margin-bottom: 3.5rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.price-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.25rem;
    text-align: center;
}

.price-card h3 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    color: var(--muted);
}

.price-amount {
    margin: 0;
    font-size: 2rem;
    font-weight: 800;
}

.price-shipping {
    margin: 0.25rem 0 0.75rem;
    font-size: 0.85rem;
    color: var(--muted);
}

.price-shipping-free {
    color: var(--success);
    font-weight: 700;
}

.price-desc {
    margin: 0;
    font-size: 0.9rem;
}

.price-badge {
    position: absolute;
    top: -0.6rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-dark);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    white-space: nowrap;
}

.price-badge-free {
    background: var(--success);
}

.price-card-popular {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(45, 122, 79, 0.12);
}

.price-card-best {
    border: 2px solid var(--success);
    background: linear-gradient(180deg, #f3faf6 0%, var(--surface) 100%);
    transform: scale(1.02);
}

.pricing-note {
    margin: 0 0 1.25rem;
    font-size: 0.9rem;
    color: var(--muted);
}

.pricing-cta {
    text-align: center;
}

.motif-picker-instruction {
    margin: 0 0 1rem;
    padding: 0.75rem 1rem;
    background: #eef7f1;
    border: 1px solid #c5dece;
    border-radius: 10px;
    font-size: 0.92rem;
    color: var(--text);
}

.motif-picker-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem 1.1rem;
    margin-bottom: 1.25rem;
}

.motif-picker-summary-main {
    flex: 1 1 auto;
}

.motif-picker-summary strong {
    display: block;
    margin-bottom: 0.2rem;
}

.motif-picker-summary p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.motif-picker-prices {
    margin-top: 0.65rem;
}

.motif-picker-product-price {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-dark);
    line-height: 1.1;
}

.motif-picker-shipping-note {
    margin: 0.2rem 0 0;
    font-size: 0.85rem;
    color: var(--muted);
}

.motif-picker-total-price {
    margin: 0.15rem 0 0;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--success);
}

.btn-cta.is-disabled {
    opacity: 0.55;
    pointer-events: none;
}

.motif-category {
    margin-bottom: 2.5rem;
}

.motif-category-header {
    margin-bottom: 1rem;
}

.motif-category-header h3 {
    margin: 0 0 0.35rem;
    font-size: 1.35rem;
}

.motif-category-header p {
    margin: 0 0 1rem;
    color: var(--muted);
}

.motif-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.75rem;
}

.motif-grid .motif-card-button {
    padding: 0.65rem;
}

.motif-grid .motif-tag {
    font-size: 0.62rem;
}

.motif-grid .motif-card h4 {
    font-size: 0.78rem;
    line-height: 1.25;
}

.motif-grid .motif-click-hint {
    margin-top: 0.35rem;
    font-size: 0.68rem;
}

.motif-grid .motif-select-label {
    font-size: 0.72rem;
}

.motif-card {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    position: relative;
}

.motif-card-button {
    width: 100%;
    padding: 0.85rem;
    background: transparent;
    border: 0;
    text-align: center;
    cursor: pointer;
    font: inherit;
    color: inherit;
}

.motif-selectable {
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.motif-selectable:hover:not(.is-selected) {
    transform: translateY(-1px);
    border-color: var(--primary);
}

.motif-selectable.is-selected {
    border: 2px solid var(--success);
    background: linear-gradient(180deg, #edf8f1 0%, #e2f3e8 100%);
    box-shadow:
        0 0 0 3px rgba(45, 122, 79, 0.22),
        0 8px 18px rgba(45, 122, 79, 0.18);
    overflow: visible;
}

.motif-selectable.is-selected::after {
    content: '✓';
    position: absolute;
    top: 0.55rem;
    right: 0.55rem;
    width: 1.75rem;
    height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--success);
    color: #fff;
    border-radius: 50%;
    font-weight: 800;
    font-size: 0.95rem;
    line-height: 1;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.motif-preview {
    aspect-ratio: 1;
    border-radius: 8px;
    margin-bottom: 0.65rem;
    border: 2px solid var(--primary-dark);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    overflow: hidden;
    background: #fff;
}

.motif-preview img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.motif-selectable.is-selected .motif-preview {
    border-color: var(--success);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.65),
        0 0 0 1px var(--success);
}

.motif-preview-humor {
    background: linear-gradient(135deg, #f5e6c8, #e8d4b0);
}

.motif-preview-fest {
    background: linear-gradient(135deg, #2d4a6e, #4a7ab0);
}

.motif-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.motif-card h4 {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.3;
}

.motif-click-hint {
    display: block;
    margin-top: 0.55rem;
    font-size: 0.78rem;
    color: var(--muted);
}

.motif-select-label {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: 0.35rem;
    min-height: 1.65rem;
    padding: 0.28rem 0.6rem;
    box-sizing: border-box;
    color: var(--muted);
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 999px;
    background: transparent;
}

.motif-selectable.is-selected .motif-select-label {
    background: var(--success);
    color: #fff;
}

.motif-selectable.is-selected .motif-click-hint {
    color: var(--success);
    font-weight: 700;
}

.cta-band {
    background: var(--primary-dark);
    color: #fff;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
}

.cta-band h2 {
    margin: 0 0 0.5rem;
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2rem);
    text-transform: uppercase;
}

.cta-band p {
    margin: 0 0 1.25rem;
    opacity: 0.9;
}

/* ── Footer ── */

.site-footer {
    background: var(--primary-dark);
    color: #fff;
    padding: 2rem 0;
    margin-top: 2rem;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-brand p {
    margin: 0;
    opacity: 0.85;
    font-size: 0.9rem;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    margin-bottom: 1rem;
}

.footer-nav a {
    color: #fff;
    opacity: 0.85;
    text-decoration: none;
    font-size: 0.88rem;
}

.footer-nav a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-copy {
    margin: 0;
    font-size: 0.8rem;
    opacity: 0.6;
}

/* ── Legal & contact pages ── */

.legal-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem 1.25rem 3rem;
}

.legal-page h1 {
    font-family: var(--font-display);
    text-transform: uppercase;
    margin: 0 0 0.5rem;
}

.legal-updated {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0 0 2rem;
}

.legal-page section {
    margin-bottom: 1.75rem;
}

.legal-page h2 {
    font-size: 1.1rem;
    margin: 0 0 0.5rem;
}

.legal-page p,
.legal-page li {
    margin: 0 0 0.5rem;
}

.legal-page a {
    color: var(--primary);
}

.legal-highlight {
    background: #fff8e6;
    border: 1px solid #e8d9a8;
    border-radius: 12px;
    padding: 1rem 1.15rem;
}

.about-lead {
    font-size: 1.1rem;
    line-height: 1.6;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
}

.contact-form .field {
    margin-bottom: 0.85rem;
}

.contact-paket-note {
    margin: 0 0 0.85rem;
    padding: 0.65rem 0.85rem;
    background: var(--accent);
    border-radius: 8px;
    font-size: 0.9rem;
}

.contact-success {
    background: #e8f5ec;
    border: 1px solid var(--success);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: var(--success);
    font-weight: 600;
}

/* ── Designer extras ── */

.designer-main .toolbar-top {
    margin-top: 0;
}

.volume-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem 1.1rem;
    margin-bottom: 1rem;
}

.volume-text {
    margin: 0;
    font-size: 0.95rem;
    color: var(--muted);
}

.volume-bar {
    margin-top: 0.75rem;
    height: 12px;
    background: #ece8e2;
    border-radius: 999px;
    overflow: hidden;
}

.volume-bar-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--primary), var(--success));
    border-radius: 999px;
    transition: width 0.25s ease;
}

.volume-shipping-hint {
    margin: 0.65rem 0 0;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--success);
}

.upsell-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem 1.1rem;
    margin-bottom: 1rem;
}

.upsell-lead {
    margin: 0 0 0.75rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.ready-made-anchor {
    position: relative;
    top: -90px;
}

.ready-made-summary {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    color: var(--success);
    font-weight: 700;
}

@media (max-width: 900px) {
    .motif-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .motif-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.payment-panel {
    background: linear-gradient(180deg, #f3faf6, var(--surface));
    border: 2px solid var(--success);
    border-radius: 12px;
    padding: 1.25rem 1.1rem;
    margin-bottom: 1rem;
}

.swish-instructions {
    margin: 0 0 1rem;
    font-size: 1rem;
}

.payment-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem;
}

.btn-swish {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.5rem;
    background: var(--success);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 10px;
    text-decoration: none;
}

.btn-swish:hover {
    filter: brightness(1.08);
}

.swish-qr {
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #fff;
}

.swish-qr-error {
    margin: 0.75rem 0 0;
    font-size: 0.88rem;
    color: var(--muted);
    text-align: center;
}

.swish-note {
    margin: 0.75rem 0 0;
    font-size: 0.85rem;
    color: var(--muted);
}

.thank-you-main {
    max-width: 640px;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.thank-you-intro {
    margin-bottom: 1.5rem;
}

.thank-you-main .payment-panel {
    text-align: center;
}

.thank-you-main .payment-panel .panel-title {
    text-align: center;
}

.thank-you-main .payment-actions-stacked {
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.thank-you-main .payment-actions-stacked .swish-qr {
    margin: 0 auto;
}

.thank-you-main .swish-instructions,
.thank-you-main .swish-note,
.thank-you-main .swish-qr-error {
    text-align: center;
}

.thank-you-back {
    margin: 1.5rem 0 0;
    text-align: center;
}

.thank-you-title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    line-height: 1.15;
}

.thank-you-lead {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    line-height: 1.55;
    color: var(--text);
}

.thank-you-fallback {
    margin-bottom: 1.5rem;
    padding: 1rem 1.1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.toolbar-bottom {
    margin-bottom: 2rem;
}

.terms-accept {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0.5rem;
    max-width: 36rem;
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
    line-height: 1.4;
    cursor: pointer;
    text-align: left;
}

.terms-accept input {
    margin-top: 0.2rem;
    flex-shrink: 0;
    accent-color: var(--primary);
}

.terms-accept a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
}

.terms-accept a:hover {
    text-decoration: none;
}

.order-status {
    width: 100%;
    max-width: 36rem;
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.35;
    margin: 0;
}

.order-status:empty {
    display: none;
}

.order-status-error {
    color: #c62828;
    font-weight: 600;
}

.order-status-info {
    color: var(--muted);
}

@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        min-height: 280px;
        margin-top: 0.5rem;
    }

    .hero-fridge {
        width: min(100%, 300px);
    }

    .hero-magnet {
        width: 102px;
        height: 102px;
    }

    .hero-magnet-title {
        font-size: 1.15rem;
    }

    .hero-magnet-3 .hero-magnet-title {
        font-size: 1.3rem;
    }

    .price-card-best {
        transform: none;
    }

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

    .motif-picker-summary {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-header-inner {
        justify-content: center;
        text-align: center;
    }

    .site-nav {
        justify-content: center;
    }
}

/* ── Event / bröllop ── */

.event-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.25rem 3.5rem;
}

.event-hero {
    padding: 2.5rem 0 2.75rem;
    max-width: 44rem;
}

.event-hero .hero-eyebrow {
    margin-top: 0;
}

.event-hero-lead {
    margin: 0 0 1rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
}

.event-hero-intro {
    margin: 0 0 1.5rem;
    font-size: 1.05rem;
    color: var(--muted);
    line-height: 1.6;
}

.event-audiences {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 3.5rem;
}

.event-audience-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.35rem 1.4rem;
}

.event-audience-icon {
    margin: 0 0 0.5rem;
    font-size: 1.4rem;
}

.event-audience-card h2 {
    margin: 0 0 0.65rem;
    font-size: 1.25rem;
}

.event-audience-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.event-steps {
    margin-bottom: 3.5rem;
}

.event-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.event-step {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.25rem;
}

.event-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    margin-bottom: 0.75rem;
    border-radius: 50%;
    background: var(--success);
    color: #fff;
    font-weight: 800;
}

.event-step h3 {
    margin: 0 0 0.4rem;
    font-size: 1.05rem;
}

.event-step p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.event-pricing {
    margin-bottom: 2.5rem;
}

.event-pricing-box {
    background: linear-gradient(180deg, #edf8f1 0%, #f7fbf8 100%);
    border: 2px solid var(--success);
    border-radius: 16px;
    padding: 1.35rem 1.4rem;
}

.event-price-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.event-price-list li {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(45, 122, 79, 0.18);
}

.event-price-list li:first-child {
    padding-top: 0.25rem;
}

.event-price-list li:last-child {
    border-bottom: 0;
}

.event-price-list strong {
    display: block;
    margin-bottom: 0.2rem;
}

.event-price-list span {
    display: block;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.4;
}

.event-price-list em {
    font-style: normal;
    font-weight: 800;
    font-size: 1.1rem;
    white-space: nowrap;
    color: var(--primary-dark);
}

.event-pricing-note {
    margin: 0.5rem 0 0;
    padding-top: 1rem;
    border-top: 1px solid rgba(45, 122, 79, 0.18);
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.5;
}

.event-location {
    margin-bottom: 3rem;
    background: var(--primary-dark);
    color: #fff;
    border-radius: 14px;
    padding: 1.15rem 1.35rem;
    text-align: center;
}

.event-location p {
    margin: 0;
    font-weight: 600;
    font-size: 1.05rem;
}

.event-booking {
    max-width: 720px;
}

.event-form {
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.35rem;
}

.event-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.95rem;
}

.event-form-success {
    margin: 0 0 1rem;
    padding: 0.85rem 1rem;
    background: #e8f5ec;
    border: 1px solid var(--success);
    border-radius: 10px;
    color: var(--success);
    font-weight: 700;
}

.event-form-error {
    margin: 0 0 1rem;
    padding: 0.85rem 1rem;
    background: #f7f2ef;
    border: 1px solid #c9b4a8;
    border-radius: 10px;
    color: var(--text);
    font-weight: 600;
}

@media (max-width: 768px) {
    .event-audiences,
    .event-steps-grid,
    .event-form-row {
        grid-template-columns: 1fr;
    }

    .event-price-list li {
        flex-direction: column;
        gap: 0.35rem;
    }
}

