:root {
  --wood-50: #fbf6ef;
  --wood-100: #f3e8d8;
  --wood-200: #e7d5bc;
  --wood-300: #d9b88a;
  --wood-500: #9d6f40;
  --wood-700: #6b4420;
  --wood-900: #2e1d0e;
  --forest: #213226;
  --forest-hover: #17241b;
  --forest-soft: #eaf0ec;
  --surface: #ffffff;
  --muted: #766454;
  --border: #e6dac8;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(46, 29, 14, 0.05);
  --shadow-md: 0 12px 32px rgba(46, 29, 14, 0.09);
  --shadow-lg: 0 24px 60px rgba(46, 29, 14, 0.16);
  --font-serif: "Playfair Display", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html,
body {
  margin: 0;
  padding: 0;
  background: var(--wood-50);
  color: var(--wood-900);
  font-family: var(--font-sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

button,
input,
select,
textarea {
  font-family: inherit;
}

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

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Announcement bar */
.promo-bar {
  background: var(--wood-100);
  border-bottom: 1px solid var(--border);
  color: var(--wood-900);
  font-size: 13px;
  text-align: center;
  padding: 8px 16px;
}
.promo-bar strong {
  font-weight: 600;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 246, 239, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 70px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--wood-900);
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--wood-100);
  border: 1.5px solid var(--wood-700);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--wood-900);
  transition: background 0.16s ease, color 0.16s ease;
}

.nav-link:hover,
.nav-link.active {
  background: var(--wood-100);
  color: var(--wood-900);
}

.nav-link.active {
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--wood-900);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.cart-btn:hover {
  border-color: var(--wood-300);
  background: var(--wood-50);
}

.cart-badge {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--forest);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-forest {
  background: var(--forest);
  color: #fff;
  box-shadow: 0 6px 18px rgba(33, 50, 38, 0.22);
}

.btn-forest:hover {
  background: var(--forest-hover);
}

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

.btn-wood:hover {
  background: var(--wood-900);
}

.btn-outline {
  background: var(--surface);
  border-color: var(--border);
  color: var(--wood-900);
}

.btn-outline:hover {
  border-color: var(--wood-300);
  background: var(--wood-100);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
}

.btn-block {
  width: 100%;
}

/* HERO SECTION — Burnify full-bleed warm interior aesthetic */
.hero-wrap {
  position: relative;
  overflow: hidden;
  background: linear-gradient(125deg, #ebe0d1 0%, #dfd0bc 48%, #d2c1ab 100%);
  border-bottom: 1px solid var(--border);
}

.hero-stage {
  max-width: 1200px;
  margin: 0 auto;
  padding: 44px 24px 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 44px;
}

.hero-drop .upload-card {
  margin: 0 auto;
}

.hero-result {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-result img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Scenes fade over the first one: 5 scenes × 5 s */
.hero-result img + img {
  opacity: 0;
  animation: hero-swap 25s ease-in-out infinite;
}

.hero-result img:nth-child(2) { animation-delay: 5s; }
.hero-result img:nth-child(3) { animation-delay: 10s; }
.hero-result img:nth-child(4) { animation-delay: 15s; }
.hero-result img:nth-child(5) { animation-delay: 20s; }

@keyframes hero-swap {
  0% { opacity: 0; }
  4%, 20% { opacity: 1; }
  24%, 100% { opacity: 0; }
}

.hero-result figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 600;
  color: var(--wood-900);
}

.hero-tagline {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.2;
  text-wrap: balance;
  font-size: clamp(22px, 3vw, 30px);
  color: var(--wood-900);
  text-align: center;
  margin: 0 0 22px;
}

/* Hero visual wall gallery */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Sections */
.section {
  padding: 64px 0;
}

.section-tight {
  padding: 44px 0;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 600;
  color: var(--wood-900);
  margin: 0 0 16px;
  line-height: 1.2;
  text-wrap: balance;
}

.section-text {
  color: var(--wood-700);
  max-width: 720px;
  margin: 0 0 14px;
  font-size: 15.5px;
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 22px;
}

.inline-links a {
  text-decoration: underline;
  text-underline-offset: 4px;
  color: var(--wood-900);
  font-weight: 500;
  font-size: 15px;
}

.inline-links a:hover {
  color: var(--forest);
}

/* 3-step cards (exact Burnify cards) */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}


.card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 600;
  color: var(--wood-900);
}

.card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}


/* Active Editor Layout */
.editor-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
  gap: 32px;
  padding: 28px 0 64px;
  align-items: start;
}

.stage-col {
  position: sticky;
  top: 86px;
}

.stage-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.view-tabs {
  display: inline-flex;
  background: var(--wood-100);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid var(--border);
  gap: 2px;
}

.view-tab {
  padding: 7px 13px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: var(--wood-700);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.view-tab.active {
  background: var(--surface);
  color: var(--wood-900);
  box-shadow: 0 2px 6px rgba(46, 29, 14, 0.08);
}

.canvas-frame {
  position: relative;
  background: linear-gradient(180deg, #ede2d3 0%, #e2d3bf 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  overflow: hidden;
  user-select: none;
}

.canvas-frame canvas {
  max-width: 100%;
  max-height: 560px;
  width: auto;
  height: auto;
  border-radius: 6px;
  cursor: grab;
  box-shadow: 0 18px 42px rgba(46, 29, 14, 0.28), 0 3px 8px rgba(46, 29, 14, 0.16);
}

.canvas-frame canvas:active {
  cursor: grabbing;
}

.stage-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--muted);
}

.quality-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.quality-pill.good {
  background: #e5f3ea;
  color: #1c5b34;
}

.quality-pill.warn {
  background: #fdf2dc;
  color: #8a5600;
}

.stage-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.link-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--wood-700);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 12.5px;
  cursor: pointer;
}

.link-btn:hover {
  color: var(--wood-900);
}

/* Control panel */
.controls-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.panel-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.panel-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--wood-700);
  margin: 0;
}

.segmented {
  display: inline-flex;
  background: var(--wood-100);
  padding: 3px;
  border-radius: 10px;
  gap: 2px;
}

.segmented button {
  border: none;
  background: transparent;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--wood-700);
  cursor: pointer;
}

.segmented button.active {
  background: var(--surface);
  color: var(--wood-900);
  box-shadow: 0 1px 4px rgba(46, 29, 14, 0.08);
}

.size-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.size-option {
  position: relative;
  text-align: left;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--wood-50);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.size-option:hover {
  border-color: var(--wood-300);
}

.size-option.active {
  border-color: var(--forest);
  background: var(--forest-soft);
}

.size-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
}

.size-name {
  font-weight: 700;
  font-size: 16px;
  color: var(--wood-900);
}

.size-price {
  font-weight: 700;
  font-size: 15px;
  color: var(--forest);
}

.size-cm {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.popular-tag {
  position: absolute;
  top: -9px;
  right: 10px;
  background: var(--wood-700);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.03em;
}

.bundle-hint {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--wood-50);
  border: 1px solid var(--wood-200);
  font-size: 12.5px;
  color: var(--wood-700);
}

/* Wood swatches & style pills */
.wood-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.wood-swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 6px;
  border-radius: 11px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--wood-900);
}

.wood-swatch.active {
  border-color: var(--forest);
  background: var(--forest-soft);
}

.wood-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(46, 29, 14, 0.2);
}

.style-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.style-pill {
  padding: 9px 11px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--wood-50);
  text-align: left;
  cursor: pointer;
}

.style-pill strong {
  display: block;
  font-size: 13px;
  color: var(--wood-900);
}

.style-pill span {
  display: block;
  font-size: 11px;
  color: var(--muted);
}

.style-pill.active {
  border-color: var(--forest);
  background: var(--forest-soft);
}

/* Sliders */
.slider-row {
  margin-bottom: 12px;
}

.slider-row:last-child {
  margin-bottom: 0;
}

.slider-label {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--wood-900);
  margin-bottom: 4px;
}

.slider-label span:last-child {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--forest);
  cursor: pointer;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 8px;
  font-size: 13px;
  color: var(--wood-900);
}

.form-input,
.form-select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--wood-50);
  color: var(--wood-900);
  font-size: 14px;
}

.form-input:focus,
.form-select:focus {
  outline: 2px solid rgba(33, 50, 38, 0.25);
  border-color: var(--forest);
}

.font-chips {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 10px 0 12px;
}

.font-chip {
  padding: 8px 10px;
  border-radius: 9px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  font-size: 15px;
  color: var(--wood-900);
}

.font-chip.active {
  border-color: var(--forest);
  background: var(--forest-soft);
}

/* Buy box */
.buy-card {
  background: var(--surface);
  border: 1.5px solid var(--wood-300);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-md);
}

.buy-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}

.buy-price-big {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 700;
  color: var(--wood-900);
}

.qty-box {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.qty-box button {
  width: 34px;
  height: 34px;
  border: none;
  background: var(--wood-50);
  cursor: pointer;
  font-size: 16px;
  color: var(--wood-900);
}

.qty-box span {
  min-width: 32px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
}

.buy-notes {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
  display: grid;
  gap: 4px;
}

/* =========================================================
   PRICING PAGE (/priser) — exact Burnify 4-card grid
   ========================================================= */
.price-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 28px;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.price-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--wood-100);
  overflow: hidden;
}

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

.price-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.price-card-size {
  font-size: 15px;
  font-weight: 600;
  color: var(--wood-700);
}

.price-card-val {
  font-size: 26px;
  font-weight: 700;
  color: var(--wood-900);
  margin: 4px 0 8px;
}

.price-card-desc {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 14px;
  flex: 1;
}

.bundle-box {
  margin-top: 30px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
}

.bundle-box h2 {
  font-family: var(--font-serif);
  margin: 0 0 12px;
  font-size: 24px;
}

.bundle-box p {
  font-size: 14.5px;
  color: var(--wood-700);
  margin: 0 0 12px;
  max-width: 820px;
}

/* FAQ */
.faq-list { margin-top: 24px; display: grid; gap: 10px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
.faq-item summary { padding: 16px 20px; font-weight: 600; cursor: pointer; }
.faq-item[open] summary { color: var(--forest); }
.faq-item p { margin: 0; padding: 0 20px 18px; color: var(--muted); }
/* FAQ chat */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.chat-card { margin-top: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-md); overflow: hidden; }
.chat-log { height: 360px; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 10px; background: var(--wood-50); }
.chat-empty { margin: auto; max-width: 340px; text-align: center; color: var(--muted); font-size: 15px; line-height: 1.6; }
.chat-msg { max-width: 85%; padding: 10px 15px; border-radius: 16px; font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }
.chat-user { align-self: flex-end; background: var(--forest); color: #fff; border-bottom-right-radius: 5px; }
.chat-bot { align-self: flex-start; background: var(--surface); border: 1px solid var(--border); border-bottom-left-radius: 5px; }
.chat-bot a { color: var(--forest); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.chat-input { display: flex; gap: 8px; margin: 12px; padding: 6px 6px 6px 14px; border: 1px solid var(--border); border-radius: 12px; }
.chat-input:focus-within { border-color: var(--wood-500); }
.chat-input input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; }
.chat-send { width: 42px; height: 42px; padding: 0; font-size: 18px; }
.chat-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 12px 14px; }
.chat-chip { padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--wood-900); font: inherit; font-size: 14px; cursor: pointer; text-align: left; }
.chat-chip:hover:not(:disabled) { border-color: var(--wood-500); color: var(--forest); }
.chat-bubble { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: inline-flex; align-items: center; gap: 8px; height: 48px; min-width: 48px; justify-content: center; padding: 0 18px; border: 0; border-radius: 999px; background: var(--forest); color: #fff; font: inherit; font-size: 15px; font-weight: 600; box-shadow: var(--shadow-lg); cursor: pointer; }
.chat-bubble:hover { background: var(--forest-hover); }
.chat-bubble span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); font-size: 14px; }
.chat-panel { position: fixed; right: 20px; bottom: 80px; z-index: 90; width: min(400px, calc(100vw - 24px)); margin: 0; display: flex; flex-direction: column; max-height: calc(100vh - 110px); }
.chat-panel[hidden] { display: none; }
.chat-panel .chat-log { height: auto; flex: 1; min-height: 160px; max-height: 340px; padding: 14px; }
.chat-panel .chat-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 12px; scrollbar-width: thin; }
.chat-panel .chat-chip { flex: none; white-space: nowrap; }
.chat-panel .chat-msg { max-width: 92%; font-size: 14.5px; }
.chat-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 10px 16px; border-bottom: 1px solid var(--border); }
.chat-close { width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; font-size: 22px; line-height: 1; cursor: pointer; color: var(--muted); }
.chat-close:hover { background: var(--wood-100); }
.chat-bubble em { font-style: normal; }
body:has(.chat-bubble) main { padding-bottom: 72px; } /* last button scrolls clear of the bubble */
@media (max-width: 640px) { .chat-bubble { right: 12px; bottom: 12px; padding: 0; width: 48px; } .chat-bubble em { display: none; } .chat-bubble span { background: none; font-size: 20px; } .chat-panel { left: 12px; right: 12px; width: auto; bottom: 68px; max-height: calc(100vh - 90px); } }
@media (max-width: 640px) { .chat-log { height: 300px; padding: 14px; } .chat-msg { max-width: 92%; } }

.faq-contact { margin-top: 28px; text-align: center; color: var(--muted); }
.faq-contact a { color: var(--forest); font-weight: 600; text-decoration: underline; }

/* =========================================================
   CART DRAWER & CHECKOUT MODAL
   ========================================================= */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(28, 18, 9, 0.45);
  backdrop-filter: blur(3px);
  z-index: 80;
  display: flex;
  justify-content: flex-end;
}

.drawer-panel {
  width: min(460px, 100vw);
  height: 100%;
  background: var(--wood-50);
  display: flex;
  flex-direction: column;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.18);
}

.drawer-head {
  padding: 18px 22px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-head h2 {
  font-family: var(--font-serif);
  margin: 0;
  font-size: 22px;
}

.icon-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  font-size: 18px;
  color: var(--wood-900);
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.progress-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 12.5px;
}

.progress-track {
  height: 7px;
  border-radius: 999px;
  background: var(--wood-100);
  overflow: hidden;
  margin-top: 7px;
}

.progress-fill {
  height: 100%;
  background: var(--forest);
  border-radius: 999px;
  transition: width 0.25s ease;
}

.cart-item {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.cart-thumb {
  width: 76px;
  height: 92px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--wood-100);
  border: 1px solid var(--border);
}

.cart-item-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--wood-900);
}

.cart-item-meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.cart-item-bottom {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gift-box {
  background: var(--forest-soft);
  border: 1px solid #c5d8cb;
  border-radius: 12px;
  padding: 13px;
}

.drawer-foot {
  padding: 16px 22px 20px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  margin-bottom: 6px;
  color: var(--wood-700);
}

.summary-row.discount {
  color: #1c6b3b;
  font-weight: 600;
}

.summary-row.total {
  font-size: 17px;
  font-weight: 700;
  color: var(--wood-900);
  padding-top: 8px;
  margin-top: 8px;
  border-top: 1px solid var(--border);
  margin-bottom: 14px;
}

/* Checkout Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(28, 18, 9, 0.55);
  backdrop-filter: blur(4px);
  z-index: 95;
  display: grid;
  place-items: center;
  padding: 18px;
}

.modal-card {
  width: min(560px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-lg);
}

.form-grid {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

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

.field-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--wood-700);
  margin-bottom: 5px;
}

.alert-error {
  padding: 10px 12px;
  border-radius: 10px;
  background: #fdecec;
  color: #8f1f1f;
  font-size: 13px;
  margin-top: 10px;
}

/* Footer (exact Burnify rhythm) */
.site-footer {
  background: var(--wood-100);
  border-top: 1px solid var(--border);
  padding: 48px 0 28px;
  margin-top: 40px;
}

.home-about {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 16px;
}

.home-about h2 {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 500;
  color: var(--wood-900);
  margin: 0 0 14px;
}

.home-about p {
  color: #5a4634;
  line-height: 1.7;
  margin: 0 0 14px;
}

.home-about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.home-about-links a {
  color: var(--wood-900);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.footer-col h4 {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--wood-900);
}

.footer-col a {
  display: block;
  font-size: 13.5px;
  color: var(--wood-700);
  margin-bottom: 8px;
}

.footer-col a:hover {
  color: var(--wood-900);
  text-decoration: underline;
}

.payment-bar {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 12.5px;
  color: var(--muted);
}

.pay-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pay-badge {
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--wood-900);
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: var(--wood-900);
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 120;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-stage,
  .studio-upload-grid,
  .editor-shell,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .stage-col {
    position: static;
  }
  .price-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .header-inner {
    height: 62px;
  }
  .nav-links {
    display: none;
  }
  .price-cards-grid,
.form-row-2 {
    grid-template-columns: 1fr;
  }
  .canvas-frame {
    padding: 14px;
    min-height: 360px;
  }
}

/* ---------- Photo drop card (home hero, /bestil start, overlay) ---------- */
.upload-card {
  position: relative;
  width: 100%;
  max-width: 560px;
  min-height: 340px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 14px;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.upload-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  z-index: -1;
  background: conic-gradient(from 200deg at 70% 20%, transparent 0deg, rgba(33, 50, 38, 0.1) 40deg, transparent 90deg);
  animation: up-sweep 9s linear infinite;
}

@keyframes up-sweep {
  to { transform: rotate(360deg); }
}

.upload-card:hover,
body.is-dragging .upload-card {
  border-color: var(--forest);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.up-idle {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  border: 1.5px dashed var(--wood-300);
  border-radius: var(--radius-md);
  padding: 34px 20px;
  background: linear-gradient(160deg, rgba(234, 240, 236, 0.85), rgba(251, 246, 239, 0.85));
}

body.is-dragging .up-idle {
  border-color: var(--forest);
  background: var(--forest-soft);
}

.up-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--forest);
  box-shadow: var(--shadow-sm);
}

.up-title {
  font-family: var(--font-serif);
  font-size: 26px;
  line-height: 1.2;
  text-wrap: balance;
}

.up-hint {
  font-size: 12.5px;
  color: var(--muted);
}

.up-demos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
}

/* Looping hint: a photo glides in with a cursor and "drops" into the zone */
.up-icon {
  position: relative;
}

.drag-hint {
  position: absolute;
  top: -3px;
  left: -3px;
  z-index: 1;
  pointer-events: none;
  animation: drag-hint 4.2s cubic-bezier(0.45, 0, 0.25, 1) infinite;
}

.drag-hint img {
  display: block;
  width: 60px;
  height: 60px;
  object-fit: cover;
  border: 3px solid #fff;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
}

.drag-cursor {
  position: absolute;
  right: -10px;
  bottom: -10px;
}

@keyframes drag-hint {
  0% { transform: translate(190px, -70px) rotate(10deg); opacity: 0; }
  12% { opacity: 1; }
  48% { transform: translate(0, 0) rotate(-4deg) scale(1); opacity: 1; }
  60% { transform: translate(0, 4px) rotate(-4deg) scale(0.5); opacity: 0; }
  100% { transform: translate(0, 4px) scale(0.5); opacity: 0; }
}

.up-idle:has(.drag-hint) {
  animation: drop-pulse 4.2s ease-in-out infinite;
}

@keyframes drop-pulse {
  0%, 40%, 75%, 100% { border-color: var(--wood-300); }
  52%, 62% { border-color: var(--forest); background-color: var(--forest-soft); }
}

.upload-card:hover .drag-hint,
body.is-dragging .drag-hint {
  display: none;
}

.upload-card:hover .up-idle,
body.is-dragging .up-idle {
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  .drag-hint { display: none; }
  .up-idle, .hero-result img + img { animation: none; }
}

.demo-thumb {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: grab;
  transition: transform 0.15s ease;
}

.demo-thumb:hover {
  transform: translateY(-2px) rotate(-3deg);
}

.demo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.only-touch { display: none; }
@media (hover: none) {
  .only-touch { display: block; }
  .only-pointer { display: none; }
}

/* Processing state (mirrors the progress card design) */
.upload-card.is-processing {
  cursor: default;
  justify-content: center;
}

.up-progress {
  border-radius: var(--radius-md);
  border: 1px solid #b9c7bb;
  background: linear-gradient(150deg, #f2f6f1 0%, #e5ece3 100%);
  padding: 24px 24px 20px;
  color: var(--forest);
  position: relative;
  overflow: hidden;
}

.up-progress::after {
  content: "";
  position: absolute;
  top: -30%;
  right: -10%;
  width: 60%;
  height: 120%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  animation: up-shine 2.4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes up-shine {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(160%); }
}

.up-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.up-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.up-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8ea891;
  box-shadow: 0 0 0 5px rgba(142, 168, 145, 0.22);
  animation: up-pulse 1.4s ease-in-out infinite;
}

@keyframes up-pulse {
  50% { opacity: 0.45; }
}

.up-live {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #b9c7bb;
  background: rgba(255, 255, 255, 0.7);
}

.up-pct {
  margin: 26px 0 10px;
  font-size: 64px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.up-pct small {
  font-size: 24px;
  margin-left: 4px;
  color: #7d8f80;
  letter-spacing: 0;
}

.up-text {
  margin: 0 0 26px;
  font-size: 14px;
  color: #4b5e4f;
}

.up-track {
  height: 5px;
  border-radius: 999px;
  background: rgba(33, 50, 38, 0.1);
  overflow: hidden;
}

.up-bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8ea891, var(--forest));
}

.up-foot {
  margin-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #6b7d6e;
}

.up-foot .link-btn {
  color: var(--forest);
  text-decoration: underline;
}

.upload-overlay .upload-card {
  min-height: 0;
}

.studio-start {
  display: grid;
  justify-items: center;
  gap: 22px;
  text-align: center;
}

/* Drop-anywhere overlay */
.drop-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  place-items: center;
  background: rgba(234, 240, 236, 0.72);
  backdrop-filter: blur(3px);
  border: 3px dashed var(--forest);
  pointer-events: none;
}

.drop-overlay div {
  font-family: var(--font-serif);
  font-size: clamp(26px, 4vw, 40px);
  color: var(--forest);
}

body.is-dragging .drop-overlay {
  display: grid;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--wood-700);
}

.lang-switch .flag {
  width: 18px;
  height: 13px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.08);
}

.lang-switch:hover {
  background: var(--wood-100);
}

@media (max-width: 640px) {
  .header-actions [data-pick-photo] {
    display: none;
  }
  .upload-card {
    min-height: 0;
  }
}

/* Legal pages + checkout consent */
.legal h1 { font-family: var(--font-serif); font-size: 34px; margin: 0 0 4px; }
.legal h2 { font-family: var(--font-serif); font-size: 20px; margin: 26px 0 6px; }
.legal p, .legal li { font-size: 15px; line-height: 1.65; }
.legal p { margin: 0 0 10px; }
.legal a { text-decoration: underline; }
.legal ul { padding-left: 20px; }
.legal-updated { color: var(--muted); font-size: 13px !important; }
.footer-company { font-size: 12.5px; color: var(--muted); margin: 14px 0 0; }
.terms-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.45; cursor: pointer; }
.terms-check input { margin-top: 3px; flex: none; }
