/* Utkastet: en liten hemsida som ritas i ett webbläsarfönster.
   Allt inuti .pv mäts i em och skalar med fönstrets bredd (cqw).
   Typsnitten kommer från /assets/fonts/kund/typsnitt.css, samma som kundsidorna använder. */

.pv-window {
  border-radius: 14px;
  overflow: hidden;
  background: #0d1a2e;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 2px 0 rgba(255, 255, 255, 0.06) inset;
}
.pv-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  background: #0f2038;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.pv-chrome i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}
.pv-url {
  flex: 1;
  margin-left: 8px;
  padding: 3px 12px;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.3);
  color: #9fb0c6;
  font: 500 11px/1.4 Inter, system-ui, sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pv-frame {
  container-type: inline-size;
  background: var(--pv-bg, #fff);
}

/* ---------------------------------------------------------------- stilar
   En stil per svar på frågan om känsla. Varje stil har egna typsnitt, färger och knappform,
   så att två kunder inte får samma sida med nya färger. */
.pv {
  --pv-bg: #ffffff;
  --pv-ink: #261c15;
  --pv-mut: #6e6157;
  --pv-acc: #7d3b22;
  --pv-acc-ink: #ffffff;
  --pv-soft: #f1ebe4;
  --pv-line: rgba(38, 28, 21, 0.14);
  --pv-display: "Young Serif", Georgia, serif;
  --pv-text: "Work Sans", system-ui, sans-serif;
  --pv-h1: 3.9em;
  --pv-r: 0.25em;
  font-size: 1.62cqw;
  font-family: var(--pv-text);
  line-height: 1.5;
  color: var(--pv-ink);
  background: var(--pv-bg);
  text-align: left;
  transition: background-color 0.6s, color 0.6s;
}
.pv[data-vibe="modern"] {
  --pv-ink: #15181d;
  --pv-mut: #5b6370;
  --pv-acc: #2341c9;
  --pv-soft: #eef0f4;
  --pv-line: rgba(21, 24, 29, 0.13);
  --pv-display: "Space Grotesk", system-ui, sans-serif;
  --pv-text: "Work Sans", system-ui, sans-serif;
  --pv-h1: 3.7em;
  --pv-r: 0.15em;
}
.pv[data-vibe="exklusiv"] {
  --pv-bg: #f7f6f3;
  --pv-ink: #1c1a1a;
  --pv-mut: #6b6461;
  --pv-acc: #1c1a1a;
  --pv-soft: #e8e4de;
  --pv-line: rgba(28, 26, 26, 0.16);
  --pv-display: "Instrument Serif", Georgia, serif;
  --pv-text: "Newsreader", Georgia, serif;
  --pv-h1: 4.6em;
  --pv-r: 0;
}
.pv[data-vibe="lekfull"] {
  --pv-ink: #1f1b3a;
  --pv-mut: #5f5a7a;
  --pv-acc: #5b34d6;
  --pv-soft: #ffe58a;
  --pv-line: rgba(31, 27, 58, 0.14);
  --pv-display: "Bricolage Grotesque", system-ui, sans-serif;
  --pv-text: "Work Sans", system-ui, sans-serif;
  --pv-h1: 3.9em;
  --pv-r: 1.6em;
}
.pv[data-vibe="natur"] {
  --pv-bg: #fbfbf8;
  --pv-ink: #1f2a22;
  --pv-mut: #5d6a60;
  --pv-acc: #355e3f;
  --pv-soft: #e7ece3;
  --pv-line: rgba(31, 42, 34, 0.14);
  --pv-display: "Newsreader", Georgia, serif;
  --pv-text: "Work Sans", system-ui, sans-serif;
  --pv-h1: 4em;
  --pv-r: 0.3em;
}

.pv * {
  box-sizing: border-box;
}
.pv h3,
.pv h4,
.pv p {
  margin: 0;
}
.pv-mut {
  color: var(--pv-mut);
}

/* Rader som ännu inte har något innehåll */
.pv-wait {
  display: grid;
  gap: 0.5em;
}
.pv-sk {
  display: block;
  height: 0.9em;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--pv-line), color-mix(in srgb, var(--pv-line) 40%, transparent), var(--pv-line));
  background-size: 200% 100%;
  animation: pv-shimmer 1.8s linear infinite;
}
@keyframes pv-shimmer {
  to {
    background-position: -200% 0;
  }
}
.pv-new {
  animation: pv-pop 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes pv-pop {
  from {
    opacity: 0;
    transform: translateY(0.6em);
  }
}

/* Sidhuvud */
.pv-nav {
  display: flex;
  align-items: center;
  gap: 2em;
  padding: 1.6em 3em;
}
.pv-name {
  font: 400 1.5em/1.1 var(--pv-display);
  letter-spacing: -0.01em;
  margin-right: auto;
}
.pv[data-vibe="modern"] .pv-name,
.pv[data-vibe="lekfull"] .pv-name {
  font-weight: 700;
}
.pv-links {
  display: flex;
  gap: 1.8em;
  font-size: 0.95em;
}
.pv-btn {
  display: inline-block;
  padding: 0.75em 1.4em;
  border-radius: var(--pv-r);
  background: var(--pv-acc);
  color: var(--pv-acc-ink);
  font-weight: 600;
  white-space: nowrap;
}
.pv-link {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

/* Toppen */
.pv-hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3em;
  align-items: stretch;
  padding: 2.4em 3em 4em;
}
.pv-copy {
  display: grid;
  align-content: center;
  gap: 1.2em;
}
.pv-h1 {
  font: 400 var(--pv-h1) / 1.02 var(--pv-display);
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.pv[data-vibe="modern"] .pv-h1,
.pv[data-vibe="lekfull"] .pv-h1 {
  font-weight: 700;
  letter-spacing: -0.035em;
}
.pv-sub {
  font-size: 1.15em;
  color: var(--pv-mut);
  max-width: 34em;
}
.pv-cta {
  display: flex;
  align-items: center;
  gap: 1.6em;
  margin-top: 0.4em;
}
.pv-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3em 1.6em;
  padding-top: 1em;
  border-top: 1px solid var(--pv-line);
  color: var(--pv-mut);
}
.pv-photo {
  position: relative;
  min-height: 24em;
  border-radius: var(--pv-r);
  background: color-mix(in srgb, var(--pv-acc) 16%, var(--pv-bg));
  display: grid;
  align-content: end;
  padding: 1.6em;
  color: var(--pv-mut);
}
/* En tunn ram innanför kanten, som en bildruta i en skiss. */
.pv-photo::before {
  content: "";
  position: absolute;
  inset: 0.9em;
  border: 1px solid var(--pv-line);
  border-radius: calc(var(--pv-r) * 0.6);
  pointer-events: none;
}
.pv-note {
  position: relative;
  display: grid;
  gap: 0.2em;
  max-width: 22em;
  font-size: 1em;
}
.pv-note b {
  color: var(--pv-ink);
  font-weight: 600;
}

/* Sektioner */
.pv-sec {
  padding: 0 3em 4em;
}
.pv-h2 {
  font: 400 2.1em/1.1 var(--pv-display);
  letter-spacing: -0.01em;
}
.pv[data-vibe="modern"] .pv-h2,
.pv[data-vibe="lekfull"] .pv-h2 {
  font-weight: 700;
}
.pv-split {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3em;
  align-items: start;
}
.pv-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.pv-list li {
  font-size: 1.1em;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 1.5em;
  padding: 1em 0;
  border-top: 1px solid var(--pv-line);
}
.pv-list li:last-child {
  border-bottom: 1px solid var(--pv-line);
}
.pv-list b {
  font-weight: 600;
}
.pv-list li:not(:has(span)) b {
  grid-column: 1 / -1;
}
.pv-gap {
  margin-bottom: 0.8em;
}
.pv-small {
  margin-top: 0.8em;
  font-size: 0.95em;
}
.pv-products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10em, 1fr));
  gap: 1.4em;
}
.pv-product {
  display: grid;
  gap: 0.4em;
  align-content: end;
  min-height: 9em;
  padding: 1.2em;
  border-radius: var(--pv-r);
  background: color-mix(in srgb, var(--pv-acc) 10%, var(--pv-bg));
}
.pv-product b {
  font: 400 1.5em/1.15 var(--pv-display);
}
.pv[data-vibe="modern"] .pv-product b,
.pv[data-vibe="lekfull"] .pv-product b {
  font-weight: 700;
}
.pv-product .pv-thumb {
  display: none;
}
.pv-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--pv-r);
  background: var(--pv-soft);
  display: grid;
  align-content: end;
  padding: 0.9em;
  color: var(--pv-mut);
}
.pv-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4em;
}
.pv-pair .pv-thumb {
  aspect-ratio: 16 / 9;
  background: color-mix(in srgb, var(--pv-acc) 12%, var(--pv-bg));
}
.pv-act {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 2.4em;
  padding: 2.2em 2.4em;
  border-radius: var(--pv-r);
  background: var(--pv-soft);
}
.pv-act .pv-h2 {
  font-size: 1.8em;
  margin-bottom: 0.25em;
}
.pv-demo {
  display: grid;
  gap: 0.8em;
  padding: 1.4em;
  border-radius: var(--pv-r);
  background: var(--pv-bg);
  justify-items: start;
}
.pv-demo-h {
  font-weight: 600;
}
.pv-times {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5em;
  width: 100%;
}
.pv-times span {
  padding: 0.55em 0;
  text-align: center;
  border: 1px solid var(--pv-line);
  border-radius: calc(var(--pv-r) * 0.6);
  font-variant-numeric: tabular-nums;
}
.pv-times .on {
  border-color: var(--pv-acc);
  box-shadow: inset 0 0 0 1px var(--pv-acc);
  font-weight: 600;
}
.pv-order {
  display: grid;
  width: 100%;
}
.pv-order p {
  display: flex;
  justify-content: space-between;
  gap: 1em;
  padding: 0.5em 0;
  border-bottom: 1px solid var(--pv-line);
}
.pv-form {
  grid-template-columns: 1fr 1fr;
}
.pv-field {
  display: block;
  width: 100%;
  padding: 0.6em 0.8em;
  border: 1px solid var(--pv-line);
  border-radius: calc(var(--pv-r) * 0.6);
  color: var(--pv-mut);
}
.pv-field.wide,
.pv-form .pv-btn {
  grid-column: 1 / -1;
}
.pv-form .pv-btn {
  justify-self: start;
}
.pv-about p {
  font: 400 2em/1.25 var(--pv-display);
  max-width: 26em;
}
.pv[data-vibe="modern"] .pv-about p,
.pv[data-vibe="lekfull"] .pv-about p {
  font-weight: 500;
  letter-spacing: -0.01em;
}
.pv-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3em;
}
.pv-info h4 {
  font-size: 1em;
  margin-bottom: 0.6em;
}
.pv-info p {
  color: var(--pv-mut);
}
.pv-about-side {
  font: 400 1.6em/1.3 var(--pv-display);
  color: var(--pv-ink) !important;
  order: 2;
}
.pv[data-vibe="modern"] .pv-about-side,
.pv[data-vibe="lekfull"] .pv-about-side {
  font-weight: 500;
}
.pv-hours p {
  display: flex;
  justify-content: space-between;
  gap: 1em;
  padding: 0.3em 0;
  border-bottom: 1px solid var(--pv-line);
}
.pv-hours b {
  color: var(--pv-ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.pv-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3em 1.6em;
  padding: 1.8em 3em;
  border-top: 1px solid var(--pv-line);
  color: var(--pv-mut);
  font-size: 0.95em;
}
.pv-foot .pv-mark {
  margin-left: auto;
}

/* Smal bredd = mobilvy */
@container (max-width: 600px) {
  .pv {
    font-size: min(3.4cqw, 13.5px);
    --pv-h1: 3em;
  }
  .pv[data-vibe="exklusiv"] {
    --pv-h1: 3.4em;
  }
  .pv-nav {
    padding: 1.2em 1.6em;
    gap: 1em;
  }
  .pv-links {
    display: none;
  }
  .pv-nav .pv-btn {
    font-size: 0.9em;
    padding: 0.6em 1.1em;
  }
  .pv-hero,
  .pv-split,
  .pv-info {
    grid-template-columns: 1fr;
  }
  .pv-hero {
    gap: 2em;
    padding: 1.6em 1.6em 2.8em;
  }
  .pv-photo {
    min-height: 0;
    aspect-ratio: 16 / 9;
    padding: 1.2em;
  }
  .pv-split {
    gap: 1.2em;
  }
  .pv-list li {
    grid-template-columns: 1fr;
    gap: 0.2em;
  }
  .pv-sec {
    padding: 0 1.6em 2.8em;
  }
  .pv-act {
    grid-template-columns: 1fr;
    padding: 1.6em;
    gap: 1.2em;
  }
  .pv-products {
    grid-template-columns: 1fr;
  }
  .pv-product {
    min-height: 0;
  }

  .pv-about p {
    font-size: 1.6em;
  }
  .pv-info {
    gap: 1.6em;
  }
  .pv-foot {
    padding: 1.4em 1.6em;
    flex-direction: column;
  }
  .pv-foot .pv-mark {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pv-sk,
  .pv-new {
    animation: none;
  }
}
