/* Marketing extras on top of the canonical 33-page design.css.
   Loaded only by website/*.html. Do not import into the logged-in app. */
@import url("design.css");

html { overflow-x: hidden; }
body { margin: 0; background: #f7faff; }

.wp-marketing { min-height: 100vh; overflow-x: hidden; }

.wp-marketing .wp-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--wp-muted);
  margin-bottom: 28px;
}
.wp-marketing .wp-breadcrumb a { color: var(--wp-muted); text-decoration: none; }
.wp-marketing .wp-breadcrumb a:hover { text-decoration: underline; }

.wp-marketing .wp-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: center;
}
.wp-marketing .wp-story p { color: var(--wp-muted); font-size: 18px; }

.wp-marketing .wp-form {
  display: grid;
  gap: 14px;
  max-width: 32rem;
  margin-top: 40px;
}
.wp-marketing .wp-form label { display: grid; gap: 6px; font-weight: 600; font-size: 14.5px; }
.wp-marketing .wp-form input,
.wp-marketing .wp-form textarea {
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--wp-line);
  background: #fff;
  color: var(--wp-ink);
  min-height: 48px;
}
.wp-marketing .wp-form textarea { min-height: 140px; resize: vertical; }
.wp-marketing .wp-form .note { margin: 0; font-size: 14px; color: var(--wp-muted); }
.wp-marketing .wp-prose { max-width: 40rem; }
.wp-marketing .wp-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--wp-line);
  font-size: 13px;
  color: var(--wp-muted);
}
.wp-marketing .wp-footer strong {
  display: block;
  margin-bottom: 8px;
  color: var(--wp-ink);
}

@media (max-width: 900px) {
  .wp-marketing .wp-story { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
  .wp-marketing .wp-story { gap: 42px; }
}

/* —— Override: never hide wide device on mobile —— */
.wp-marketing .wp-hero-tablet { display: block !important; }
.wp-marketing .wp-hero-devices { display: block; }
.wp-marketing .wp-hero-grid { grid-template-columns: minmax(0, .42fr) minmax(0, .58fr); gap: 48px; }
.wp-marketing .wp-hero .wp-device figcaption,
.wp-marketing .wp-device figcaption { display: none; }
.wp-marketing .wp-container { width: min(100% - var(--wp-gutter) * 2, 1280px); }

/* —— ProductScreen (single device) ——
   Natural device ratios only — never stretch screenshots.
   Phone source ≈ 804×1748 (9:19.5). Wide ≈ 1365×1022 (landscape). */
.wp-marketing .wp-ps {
  margin: 0;
  min-width: 0;
  position: relative;
  height: auto;
}
.wp-marketing .wp-ps-frame {
  display: block;
  width: 100%;
  height: auto;
  padding: 10px;
  background: #1c222b;
  border: 1px solid #5a6572;
  border-radius: 18px;
  box-shadow: 0 16px 36px #11233b22;
  cursor: zoom-in;
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  color: inherit;
  text-align: left;
}
.wp-marketing .wp-ps-frame:focus-visible { outline: 3px solid var(--wp-blue); outline-offset: 4px; }
/* iPhone chassis: thin black bezel, continuous corners (equal radii), island + home bar */
.wp-marketing .wp-ps--phone .wp-ps-frame {
  padding: 1.5%;
  /* % / % keeps corner radius circular on tall portrait boxes */
  border-radius: 14% / 7.2%;
  background: #0a0b0d;
  border: 1.5px solid #2c3038;
  box-shadow:
    0 0 0 1px #00000055,
    0 18px 40px #11233b38,
    inset 0 0 0 1px #ffffff10;
}
.wp-marketing .wp-ps-viewport {
  display: block;
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  background: #eef3f8;
  line-height: 0;
}
/* Near-true iPhone ratio; shorter than 9:19.5 so cover+top clips Safari chrome */
.wp-marketing .wp-ps--phone .wp-ps-viewport {
  aspect-ratio: 9 / 17.5;
  border-radius: 12.5% / 6.4%;
  background: #0a0b0d;
}
/* Native app captures without Safari chrome — show full 9:19.5 screen */
.wp-marketing .wp-ps--phone.wp-ps--full .wp-ps-viewport {
  aspect-ratio: 9 / 19.5;
}
.wp-marketing .wp-ps--phone.wp-ps--full.wp-ps--solo {
  width: min(100%, 340px);
}
/* Dynamic Island */
.wp-marketing .wp-ps--phone .wp-ps-viewport::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: 1.2%;
  left: 50%;
  transform: translateX(-50%);
  width: 30%;
  max-width: 92px;
  min-width: 52px;
  height: 2.4%;
  min-height: 17px;
  max-height: 23px;
  background: #0a0b0d;
  border-radius: 999px;
  box-shadow: 0 0 0 1px #00000040;
  pointer-events: none;
}
/* Home indicator */
.wp-marketing .wp-ps--phone .wp-ps-viewport::after {
  content: "";
  position: absolute;
  z-index: 3;
  bottom: 1.05%;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  max-width: 108px;
  min-width: 56px;
  height: 4px;
  background: #00000066;
  border-radius: 999px;
  pointer-events: none;
}
.wp-marketing .wp-ps--wide .wp-ps-viewport {
  aspect-ratio: 1365 / 1022;
  border-radius: 10px;
}
.wp-marketing .wp-ps--wide .wp-ps-frame {
  padding: 11px;
  border-radius: 18px;
  background: #111318;
  border: 1px solid #3a414c;
}
.wp-marketing .wp-ps-viewport img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: top center;
}
.wp-marketing .wp-ps--phone .wp-ps-viewport img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover; /* crop, never stretch */
  object-position: top center;
}
.wp-marketing .wp-ps--wide .wp-ps-viewport img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.wp-marketing .wp-ps--phone {
  width: min(100%, 280px);
  margin-inline: auto;
}
/* Left mute/volume + right power (subtle hardware cues) */
.wp-marketing .wp-ps--phone::before,
.wp-marketing .wp-ps--phone::after {
  content: "";
  position: absolute;
  z-index: 4;
  background: #1a1c20;
  pointer-events: none;
}
.wp-marketing .wp-ps--phone::before {
  left: -2px;
  top: 16%;
  width: 3px;
  height: 28%;
  border-radius: 2px 0 0 2px;
}
.wp-marketing .wp-ps--phone::after {
  right: -2px;
  top: 22%;
  width: 3px;
  height: 11%;
  border-radius: 0 2px 2px 0;
}
.wp-marketing .wp-ps--phone.wp-ps--lg { width: min(100%, 320px); }
.wp-marketing .wp-ps--phone.wp-ps--md { width: min(100%, 260px); }
.wp-marketing .wp-ps--phone.wp-ps--solo { width: min(100%, 300px); }
.wp-marketing .wp-ps--wide { width: min(100%, 880px); margin-inline: auto; }
.wp-marketing .wp-ps--wide.wp-ps--hero { width: min(100%, 720px); }
.wp-marketing .wp-ps--wide.wp-ps--xl { width: min(100%, 860px); }
.wp-marketing .wp-feature-visual .wp-ps--wide.wp-ps--xl { width: min(100%, 840px); }
.wp-marketing .wp-ps-label {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #e3edfb;
  color: var(--wp-ink);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}
.wp-marketing .wp-ps-stage {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 28px 18px;
  border-radius: 24px;
  background: linear-gradient(165deg, #edf5ff 0%, #f7faff 55%, #eef2fa 100%);
  min-height: 0;
}
.wp-marketing .wp-ps-stage--mint { background: linear-gradient(165deg, #edf7f3, #f7faff); }
.wp-marketing .wp-ps-stage--lavender { background: linear-gradient(165deg, #f0edfc, #f7faff); }
.wp-marketing .wp-ps-stage--play {
  background: linear-gradient(165deg, #edf5ff 0%, #f4f0ff 50%, #edf7f3 100%);
  position: relative;
  overflow: hidden;
}
.wp-marketing .wp-ps-stage--play::before {
  content: "";
  position: absolute;
  inset: 8% auto auto 6%;
  width: min(42%, 220px);
  aspect-ratio: 1;
  background: url("/img/art/17-familiespill.png") center / contain no-repeat;
  opacity: .18;
  pointer-events: none;
}
.wp-marketing .wp-ps-stage--play .wp-ps { position: relative; z-index: 1; }

/* —— DeviceShowcase (wide + overlapping phone) ——
   Phone width ≈ 34% of wide so portrait 9:19.5 height ≈ landscape tablet height. */
.wp-marketing .wp-showcase {
  --wide-w: 700px;
  --phone-w: 34%;
  position: relative;
  width: min(100%, var(--wide-w));
  margin-inline: auto;
  padding-bottom: 2%;
  overflow: visible;
}
.wp-marketing .wp-showcase--hero { --wide-w: 700px; --phone-w: 34%; }
.wp-marketing .wp-showcase--compact { --wide-w: 620px; --phone-w: 34%; }
.wp-marketing .wp-showcase--mat { --wide-w: 720px; --phone-w: 34%; }
.wp-marketing .wp-showcase--kalender { --wide-w: 680px; --phone-w: 35%; }
.wp-marketing .wp-showcase-wide {
  width: 100%;
  position: relative;
  z-index: 1;
}
.wp-marketing .wp-showcase-wide .wp-ps--wide { width: 100%; max-width: none; }
.wp-marketing .wp-showcase-phone {
  position: absolute;
  z-index: 2;
  width: var(--phone-w);
  max-width: none;
  right: -2%;
  bottom: -4%;
  height: auto;
  filter: drop-shadow(0 12px 24px #11233b40);
}
/* Must beat mobile .wp-ps--phone { width: min(80%,…) } which otherwise
   shrinks the phone to ~90px and, with min-height, yields a ~0.33 stick. */
.wp-marketing .wp-showcase-phone .wp-ps,
.wp-marketing .wp-showcase-phone .wp-ps--phone,
.wp-marketing .wp-showcase-phone .wp-ps--phone.wp-ps--md,
.wp-marketing .wp-showcase-phone .wp-ps--phone.wp-ps--lg,
.wp-marketing .wp-showcase-phone .wp-ps--phone.wp-ps--solo {
  width: 100% !important;
  max-width: none !important;
  margin: 0;
  height: auto;
}
.wp-marketing .wp-showcase--br .wp-showcase-phone { right: -2%; bottom: -4%; }
.wp-marketing .wp-showcase--detail .wp-showcase-phone {
  width: min(42%, 280px);
  right: 2%;
  bottom: -4%;
}
.wp-marketing .wp-showcase-detail-card {
  position: absolute;
  z-index: 2;
  right: 2%;
  bottom: -6%;
  width: min(42%, 280px);
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid #9aa7b6;
  background: #2a3442;
  box-shadow: 0 14px 30px #11233b28;
  padding: 6px;
}
.wp-marketing .wp-showcase-detail-card .wp-detail-crop {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 10px;
  background: #f4f7fb;
}
.wp-marketing .wp-showcase-detail-card .wp-detail-crop img {
  width: 160%;
  max-width: none;
  height: auto;
  object-fit: contain;
  object-position: 62% 18%;
  transform: translate(-18%, -6%);
}

/* Phone pair (tilpasning + barnets apper) */
.wp-marketing .wp-phone-pair {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 18px;
  position: relative;
  padding: 12px 0 8px;
}
.wp-marketing .wp-phone-pair-item { width: min(46%, 290px); position: relative; }
.wp-marketing .wp-phone-pair-item--lift { transform: translateY(-24px); }
.wp-marketing .wp-phone-pair-item .wp-ps--phone { width: 100%; }

/* Value strip */
.wp-marketing .wp-value-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.wp-marketing .wp-value-strip article {
  padding: 22px 4px 0;
  border-top: 1px solid var(--wp-line);
}
.wp-marketing .wp-value-strip h3 { font-size: 18px; margin-bottom: 10px; }
.wp-marketing .wp-value-strip p { margin: 0; color: var(--wp-muted); font-size: 15px; }

/* Feature bullets */
.wp-marketing .wp-bullets {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 10px;
}
.wp-marketing .wp-bullets li {
  position: relative;
  padding-left: 22px;
  color: var(--wp-muted);
  font-size: 16px;
}
.wp-marketing .wp-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--wp-blue);
}

/* Workflow steps */
.wp-marketing .wp-workflow {
  display: grid;
  gap: 28px;
}
.wp-marketing .wp-workflow-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 36px;
  align-items: center;
  padding: 28px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--wp-line);
}
.wp-marketing .wp-workflow-step:nth-child(even) { background: var(--wp-sky); }
.wp-marketing .wp-note {
  font-size: 14px;
  color: var(--wp-muted);
  border-left: 3px solid var(--wp-blue);
  padding-left: 14px;
  margin: 0 0 22px;
}

@media (max-width: 1179px) {
  .wp-marketing .wp-hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .wp-marketing .wp-showcase { --wide-w: 100%; --phone-w: 34%; width: 100%; max-width: 820px; }
  .wp-marketing .wp-showcase-phone { width: var(--phone-w); max-width: none; min-width: 0; }
  .wp-marketing .wp-ps--phone.wp-ps--lg,
  .wp-marketing .wp-ps--phone { width: min(78%, 340px); }
  .wp-marketing .wp-ps--wide { width: min(90%, 820px); }
}
@media (max-width: 767px) {
  .wp-marketing .wp-hero { padding-block: 40px 28px; }
  .wp-marketing .wp-hero-grid,
  .wp-marketing .wp-feature { grid-template-columns: 1fr; gap: 36px; }
  .wp-marketing .wp-showcase {
    display: block;
    position: relative;
    width: 100%;
    max-width: 100%;
    --phone-w: 34%;
    min-height: 0;
    padding-bottom: 8%;
    overflow: visible;
  }
  .wp-marketing .wp-showcase-wide {
    display: block;
    width: 92% !important;
    margin: 0;
    position: relative;
    z-index: 1;
  }
  .wp-marketing .wp-showcase-phone {
    display: block;
    position: absolute !important;
    width: 34% !important;
    min-width: 0;
    max-width: none;
    right: 0 !important;
    bottom: -2% !important;
    z-index: 3;
    margin: 0;
  }
  .wp-marketing .wp-showcase-detail-card {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(78%, 280px);
    margin: 16px auto 0;
  }
  .wp-marketing .wp-showcase--detail { padding-bottom: 0; }
  /* Solo phones only — never apply to showcase phones (see !important above). */
  .wp-marketing .wp-ps--phone,
  .wp-marketing .wp-ps--phone.wp-ps--lg,
  .wp-marketing .wp-ps--phone.wp-ps--md { width: min(80%, 320px); }
  .wp-marketing .wp-ps--wide,
  .wp-marketing .wp-ps--wide.wp-ps--hero { width: 100%; }
  .wp-marketing .wp-phone-pair { gap: 8px; }
  .wp-marketing .wp-phone-pair-item { width: 48%; }
  .wp-marketing .wp-phone-pair-item--lift { transform: translateY(-14px); }
  .wp-marketing .wp-phone-pair-item .wp-ps--phone { width: 100% !important; max-width: none !important; }
  .wp-marketing .wp-value-strip { grid-template-columns: 1fr; gap: 14px; }
  .wp-marketing .wp-workflow-step { grid-template-columns: 1fr; gap: 22px; padding: 20px; }
}
@media (min-width: 1180px) {
  .wp-marketing .wp-ps--phone.wp-ps--solo { width: 340px; }
}

.wp-marketing .wp-ps-stage .wp-ps--phone { width: min(100%, 340px); }
.wp-marketing .wp-hero .wp-showcase-wide { max-width: 100%; }
