/* Vaskeservice (/vaskeservice/): with or without us, the two plans, what 10 kg is,
   the plan picker in the sign-up and the running summary next to it. Builds on
   base.css, home.css (steps, faq, form, chips) and service.css (hero). */

/* ---------- With or without us ---------- */
.vs { display: grid; gap: 1rem; }
.vs__col { padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: var(--r-lg); }
.vs__col h3 { margin: 0 0 1.25rem; font-size: 1.35rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.vs__col ul { list-style: none; margin: 0; padding: 0; display: grid; }
.vs__col li { display: grid; grid-template-columns: 1.3rem 1fr; gap: 0.7rem; align-items: start; padding: 0.75rem 0; border-top: 1px solid var(--line); font-size: 1.02rem; }
.vs__col--uden { background: var(--soft); color: var(--muted); }
.vs__col--uden h3 { color: var(--navy-2); }
/* A short grey stroke through each chore, drawn as the column comes into view */
.vs__col--uden li::before { content: ""; width: 0.85rem; height: 2px; margin-top: 0.75rem; border-radius: 2px; background: var(--line-2); }
.vs__col--med { background: var(--navy); color: rgba(255, 255, 255, 0.86); }
.vs__col--med h3 { color: var(--white); }
.vs__col--med li { border-top-color: rgba(255, 255, 255, 0.12); }
.vs__col--med li svg { width: 12px; height: 12px; margin-top: 0.45rem; color: var(--teal); }

/* ---------- Plans ---------- */
.plans { display: grid; gap: 1rem; }
.plan {
  display: grid; align-content: start; gap: 1.25rem;
  padding: clamp(1.5rem, 3vw, 2.4rem);
  border-radius: var(--r-lg);
  background: var(--soft);
}
.plan__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.plan__name { margin: 0; font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1; color: var(--navy); }
.plan__sub { margin: 0; font-family: var(--mono); font-size: 0.8125rem; color: var(--teal-ink); }
.plan__price { display: flex; align-items: baseline; gap: 0.5rem; margin: 0; color: var(--navy); }
.plan__price b { font-size: clamp(3.2rem, 7vw, 4.6rem); font-weight: 800; letter-spacing: -0.045em; line-height: 0.9; }
.plan__price span { font-size: 1rem; font-weight: 600; color: var(--muted); }
.plan__list { list-style: none; margin: 0; padding: 0; display: grid; }
.plan__list li { display: grid; grid-template-columns: 1.3rem 1fr; gap: 0.7rem; align-items: start; padding: 0.65rem 0; border-top: 1px solid var(--line); color: var(--navy-2); }
.plan__list svg { width: 12px; height: 12px; margin-top: 0.45rem; color: var(--teal-deep); }
.plan__btn { justify-self: start; margin-top: 0.5rem; }
.plan--plus { background: var(--navy); }
.plan--plus .plan__name, .plan--plus .plan__price { color: var(--white); }
.plan--plus .plan__sub { color: var(--teal); }
.plan--plus .plan__price span { color: rgba(255, 255, 255, 0.6); }
.plan--plus .plan__list li { border-top-color: rgba(255, 255, 255, 0.12); color: rgba(255, 255, 255, 0.86); }
.plan--plus .plan__list svg { color: var(--teal); }
/* The one-off trial wash, under the two plans */
.trial {
  display: grid; gap: 1.25rem; align-items: center; margin-top: 1rem;
  padding: clamp(1.5rem, 3vw, 2.4rem);
  border-radius: var(--r-lg); background: var(--wash);
}
.trial__name { margin: 0 0 0.6rem; font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1; color: var(--navy); }
.trial__text p { margin: 0; max-width: 40em; color: var(--navy-2); }
.trial__buy { display: grid; gap: 0.9rem; justify-items: start; }
.trial__price { display: flex; align-items: baseline; gap: 0.5rem; margin: 0; color: var(--navy); }
.trial__price b { font-size: clamp(2.6rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -0.045em; line-height: 0.9; }
.trial__price span { font-size: 1rem; font-weight: 600; color: var(--muted); }
.planpick__opt--trial { grid-column: 1 / -1; }
.plans__note { margin: 1.5rem 0 0; max-width: 46em; font-size: 0.96875rem; color: var(--muted); }

/* ---------- How much is 10 kg ---------- */
.kg__grid { display: grid; gap: 3rem; align-items: center; }
.kg__card { padding: clamp(1.4rem, 3vw, 2.25rem); border-radius: var(--r-lg); background: var(--soft); }
/* The bag filling up: one segment per item, in turn, when the card comes into view */
.kg__bar { display: flex; gap: 3px; height: 0.9rem; margin-bottom: 1.5rem; padding: 3px; border-radius: 999px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line-2); }
.kg__bar i { flex: 0 0 calc(var(--w) - 3px); border-radius: 999px; background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform 0.7s var(--ease-out); }
.kg__bar i:nth-child(even) { background: var(--teal-deep); }
.kg__bar i:last-child { background: var(--navy); }
.kg__card.is-in .kg__bar i { transform: none; }
.kg__card.is-in .kg__bar i:nth-child(2) { transition-delay: 0.12s; }
.kg__card.is-in .kg__bar i:nth-child(3) { transition-delay: 0.24s; }
.kg__card.is-in .kg__bar i:nth-child(4) { transition-delay: 0.36s; }
.kg__card.is-in .kg__bar i:nth-child(5) { transition-delay: 0.48s; }
.kg__card.is-in .kg__bar i:nth-child(6) { transition-delay: 0.6s; }
.kg__list { list-style: none; margin: 0; padding: 0; }
.kg__list li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.6rem 0; border-top: 1px solid var(--line); color: var(--navy-2); }
.kg__list b { flex: none; font-weight: 500; color: var(--navy); }
.kg__list .kg__sum { border-top: 1.5px solid var(--navy); font-weight: 700; color: var(--navy); }
.kg__list .kg__sum b { font-weight: 700; color: var(--teal-ink); }
.kg__note { margin: 1rem 0 0; font-size: 0.875rem; color: var(--muted); }

/* ---------- Sign-up: plan picker ---------- */
.planpick { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.planpick__opt input { position: absolute; opacity: 0; pointer-events: none; }
.planpick__opt span {
  position: relative; display: grid; gap: 0.2rem; height: 100%;
  padding: 1.15rem 1.15rem 1.2rem;
  border-radius: 1rem; background: var(--white);
  box-shadow: inset 0 0 0 1.5px var(--line-2);
  cursor: pointer;
  transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease), transform 0.45s var(--ease);
}
.planpick__opt span:hover { box-shadow: inset 0 0 0 1.5px var(--navy); }
.planpick__opt:active span { transform: scale(0.98); }
.planpick__opt b { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.03em; color: var(--navy); }
.planpick__opt small { font-family: var(--mono); font-size: 0.78rem; color: var(--teal-ink); }
.planpick__opt em { margin-top: 0.7rem; font-style: normal; font-size: 1.02rem; font-weight: 700; color: var(--navy); }
/* The sparkle from the logo marks the chosen plan */
.planpick__opt span::after {
  content: ""; position: absolute; top: 1rem; right: 1rem; width: 0.9rem; height: 0.9rem;
  border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-2);
  transition: background-color 0.4s var(--ease), transform 0.5s var(--spring);
}
.planpick__opt input:checked + span { background: var(--navy); box-shadow: none; }
.planpick__opt input:checked + span b, .planpick__opt input:checked + span em { color: var(--white); }
.planpick__opt input:checked + span small { color: var(--teal); }
.planpick__opt input:checked + span::after { box-shadow: none; background: var(--teal); border-radius: 0; -webkit-mask: var(--sparkle) center / contain no-repeat; mask: var(--sparkle) center / contain no-repeat; transform: rotate(90deg) scale(1.15); }
.planpick__opt input:focus-visible + span { outline: 2px solid var(--teal-ink); outline-offset: 2px; }
.form fieldset.is-invalid .planpick__opt span { box-shadow: inset 0 0 0 1.5px #b4442b; }
.form__step > fieldset + fieldset, .form__step > fieldset + .field { margin-top: 0.25rem; }
#vaskform .field-row--post { margin-top: 0; }

/* ---------- Sign-up: running summary ---------- */
.sum { padding: 1.35rem 1.4rem 1.2rem; border-radius: var(--r-md); background: var(--soft); }
.sum__title { margin: 0 0 0.6rem; font-size: 0.875rem; font-weight: 700; color: var(--navy); }
.sum dl { margin: 0; display: grid; }
.sum dl div { display: grid; grid-template-columns: 6.5rem 1fr; gap: 0.75rem; padding: 0.55rem 0; border-top: 1px solid var(--line); }
.sum dt { font-size: 0.875rem; color: var(--muted); }
.sum dd { margin: 0; font-size: 0.9375rem; font-weight: 600; color: var(--navy); }
.sum dd.is-empty { font-weight: 400; color: var(--muted); }
.sum__price { display: flex; justify-content: space-between; align-items: baseline; margin: 0.4rem 0 0; padding-top: 0.8rem; border-top: 1.5px solid var(--navy); }
.sum__price span { font-size: 0.875rem; font-weight: 600; color: var(--navy); }
.sum__price b { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; color: var(--navy); }

/* Below 1080px the summary sits above the form, so the customer met an empty "0 kr." box before step 1
   and never saw it again while filling in. It only earns its place next to the form on wide screens. */
@media (max-width: 1079px) {
  #tilmeld .sum { display: none; }
}
@media (min-width: 768px) {
  .vs { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr 1fr; }
  .trial { grid-template-columns: minmax(0, 1fr) auto; gap: 3rem; }
  .trial__buy { justify-items: end; }
}
@media (min-width: 1080px) {
  .kg__grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 6rem; }
}
@media (max-width: 420px) {
  .planpick { grid-template-columns: 1fr; }
}

/* Terms for the wash: a short list at the last sign-up step (with the required checkbox) and again at the bottom of the page */
.terms { display: grid; gap: 0.75rem; padding: 1.1rem 1.2rem; border-radius: 0.9rem; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.terms__title { margin: 0; font-size: 0.875rem; font-weight: 600; color: var(--navy); }
.terms__list { display: grid; gap: 0.4rem; margin: 0; padding-left: 1.1rem; font-size: 0.875rem; line-height: 1.5; color: var(--muted); }
.field.terms__ok { display: flex; align-items: flex-start; gap: 0.65rem; margin: 0.2rem 0 0; font-size: 0.9375rem; font-weight: 500; line-height: 1.4; color: var(--navy); cursor: pointer; }
.field.terms__ok input[type="checkbox"] { flex: none; width: 1.15rem; height: 1.15rem; margin: 0.1rem 0 0; padding: 0; border-radius: 0.25rem; box-shadow: none; accent-color: var(--navy); cursor: pointer; }
.field.terms__ok.is-invalid span { color: #b4442b; }
.terms--page { padding: 0; background: none; box-shadow: none; }
