/* ==========================================================================
   Revtec, prisberäknaren (pris.html)
   Bygger på tokens och knappar i style.css. Klasserna service-card, question,
   segmented, chip, breakdown__row, fact och step-dot skapas av js/pris.js.
   ========================================================================== */

.pris-page,
.boka-page { padding-bottom: clamp(64px, 8vw, 120px); }
.pris-page [hidden],
.boka-page [hidden] { display: none !important; }
.pr-grid--spaced { margin-top: 20px; }
.pr-consent--spaced { margin-top: 22px; }
.boka-page .pr-head .eyebrow { margin-bottom: 20px; }

.pr-head { padding-block: clamp(16px, 3vw, 48px) clamp(28px, 4vw, 48px); }
.pr-head .lead--hero { margin-top: 16px; max-width: 44ch; font-size: 1.25rem; }

.pr-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: clamp(24px, 3vw, 40px);
  align-items: start;
}
.pr-main { min-width: 0; }

/* ---- Steg ------------------------------------------------------------- */
.pr-steps {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.step-dot { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.step-dot__num {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--sand-2);
  color: var(--ink-2);
  font-size: var(--fs-xs);
  font-weight: 500;
  transition: background-color 200ms ease, color 200ms ease;
}
.step-dot__num svg { width: 14px; height: 14px; }
.step-dot__label { font-size: var(--fs-small); color: var(--ink-2); }
.step-dot[data-state="current"] .step-dot__num { background: var(--accent); color: var(--ink); }
.step-dot[data-state="current"] .step-dot__label { color: var(--ink); font-weight: 500; }
.step-dot[data-state="done"] .step-dot__num { background: var(--ink); color: var(--white); }
.step-dot[data-state="done"] .step-dot__label { color: var(--ink); }
.step-rule { flex: 1; min-width: 12px; height: 1px; background: var(--line); }

/* ---- Kortet ------------------------------------------------------------ */
.pr-card {
  padding: clamp(22px, 4vw, 40px);
  border-radius: var(--radius);
  background: var(--sand);
}
.pris-step:not([data-active="true"]) { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .pris-step[data-active="true"] { animation: pr-in 320ms var(--ease); }
}
@keyframes pr-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.pr-step-title {
  color: var(--heading);
  margin-bottom: 18px;
  font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.pr-step-title--spaced { margin-top: 36px; }

.pr-hint { margin-top: 12px; font-size: var(--fs-small); color: var(--ink-2); }

.pr-context {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  padding: 12px 12px 12px 18px;
  border-radius: var(--radius);
  background: var(--white);
}
.pr-context svg { flex: none; width: 20px; height: 20px; fill: var(--ink-2); }
.pr-context strong { flex: 1; min-width: 0; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-link {
  padding: 6px 14px;
  border: 0;
  border-radius: var(--radius);
  background: var(--sand);
  font-size: var(--fs-small);
  cursor: pointer;
}
.pr-link:hover { background: var(--sand-2); }

/* ---- Fält -------------------------------------------------------------- */
.pr-input {
  width: 100%;
  height: 54px;
  padding: 0 20px;
  border: 1px solid var(--white);
  border-radius: var(--radius);
  background: var(--white);
  font-size: 1rem;
  transition: box-shadow 160ms ease, border-color 160ms ease;
}
.pr-input::placeholder { color: var(--ink-2); }
.pr-input:focus-visible { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.pr-input-wrap { position: relative; }
.pr-input--suffix { padding-right: 72px; font-variant-numeric: tabular-nums; }
.pr-suffix { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: var(--ink-2); font-size: var(--fs-small); pointer-events: none; }
.pr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pr-field { display: grid; gap: 8px; min-width: 0; margin-bottom: 16px; }
.pr-grid .pr-field { margin-bottom: 0; }
.pr-grid + .pr-field { margin-top: 16px; }
.pr-label { font-size: var(--fs-xs); color: var(--ink-2); }

/* Företagssök */
.combo { position: relative; }
.combo__icon { position: absolute; left: 20px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); fill: var(--ink-2); pointer-events: none; }
.combo .pr-input { padding-left: 52px; }
.combo__list {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 10;
  display: none;
  max-height: 340px;
  overflow-y: auto;
  padding: 6px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 16px 40px -12px rgb(28 38 35 / 0.28), 0 1px 3px rgb(28 38 35 / 0.08);
}
.combo[data-open="true"] .combo__list:not(:empty) { display: grid; }
.combo__item {
  display: grid;
  gap: 2px;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.combo__item strong { font-weight: 500; }
.combo__item span { font-size: var(--fs-small); color: var(--ink-2); }
.combo__item:hover,
.combo__item[data-active="true"] { background: var(--sand); }
.combo__item--free { margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); }

/* Tjänster och följdfrågor */
.service-list { display: grid; gap: 10px; margin-bottom: 32px; }
.service-card { border-radius: var(--radius); background: var(--white); transition: box-shadow 180ms ease; }
.service-card[data-selected="true"] { box-shadow: inset 0 0 0 2px var(--accent); }
.service-card__toggle {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 20px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.service-card__check {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--sand-3);
  color: transparent;
  transition: background-color 160ms ease, box-shadow 160ms ease;
}
.service-card__check svg { width: 14px; height: 14px; }
.service-card[data-selected="true"] .service-card__check { background: var(--accent); box-shadow: none; color: var(--ink); }
.service-card__text { display: grid; gap: 2px; flex: 1; min-width: 0; }
.service-card__text strong { color: var(--heading); font-size: 1.0625rem; font-weight: 500; }
.service-card__text span { font-size: var(--fs-small); color: var(--ink-2); }
.service-card__price {
  flex: none;
  padding: 6px 12px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: #6b4400;
  font-size: var(--fs-xs);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.service-card__body { display: grid; gap: 18px; padding: 0 20px 22px 64px; }
.service-card__body:empty,
.service-card[data-selected="false"] .service-card__body { display: none; }
.question__label { margin-bottom: 8px; font-size: var(--fs-small); color: var(--ink-2); }
.segmented { display: flex; flex-wrap: wrap; gap: 6px; }
.segmented button,
.chip {
  height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--radius);
  background: var(--sand);
  font-size: var(--fs-small);
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease;
}
.segmented button:hover,
.chip:hover:not(:disabled) { background: var(--sand-2); }
.segmented button[aria-pressed="true"],
.chip[aria-pressed="true"] { background: var(--accent); color: var(--ink); font-weight: 500; }

/* Paneler som visas steg för steg */
.pr-reveal:not([data-visible="true"]) { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .pr-reveal[data-visible="true"] { animation: pr-in 320ms var(--ease); }
}
#about-panel { margin-bottom: 8px; }

/* Navigering mellan steg */
.pr-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; }
.pr-nav .btn { gap: 10px; }
.pr-btn-icon { width: 16px; height: 16px; fill: currentColor; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

/* ---- Steg 3: pris och val ------------------------------------------------ */
.pr-price { display: grid; justify-items: start; gap: 6px; margin-bottom: 24px; }
.pr-badge {
  padding: 5px 12px;
  border-radius: var(--radius);
  background: var(--accent);
  font-size: var(--fs-xs);
  font-weight: 500;
}
.pr-price__value {
  margin-top: 6px;
  font-size: clamp(2.25rem, 1.4rem + 3vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.pr-price__per { color: var(--ink-2); }

.pr-breakdown { display: grid; gap: 8px; }
.pr-breakdown:empty { display: none; }
.breakdown__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: var(--white);
}
.breakdown__label { display: grid; gap: 2px; min-width: 0; }
.breakdown__label strong { font-weight: 500; }
.breakdown__label span { font-size: var(--fs-small); color: var(--ink-2); }
.breakdown__row b { font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }

.pr-picks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pr-pick {
  display: grid;
  justify-items: start;
  gap: 4px;
  padding: 20px;
  border: 0;
  border-radius: var(--radius);
  background: var(--white);
  text-align: left;
  cursor: pointer;
  transition: box-shadow 160ms ease;
}
.pr-pick:hover { box-shadow: inset 0 0 0 1.5px var(--sand-3); }
.pr-pick[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--accent); }
.pr-pick__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 10px;
  border-radius: var(--radius);
  background: var(--sand);
  transition: background-color 160ms ease;
}
.pr-pick__icon svg { width: 22px; height: 22px; fill: var(--ink); }
.pr-pick[aria-pressed="true"] .pr-pick__icon { background: var(--accent); }
.pr-pick strong { color: var(--heading); font-size: 1.0625rem; font-weight: 500; }
.pr-pick span:last-child { font-size: var(--fs-small); color: var(--ink-2); }

#meeting-panel,
#contact-panel { margin-top: 24px; }
.pr-slot + .pr-slot { margin-top: 18px; }
.pr-slot .pr-label { margin-bottom: 8px; }
.pr-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--white); }
.chip:hover:not(:disabled) { background: var(--sand-2); }
.chip:disabled { color: #a3a8a6; text-decoration: line-through; cursor: not-allowed; }
.pr-chips--times .chip { min-width: 76px; font-variant-numeric: tabular-nums; }

.pr-consent {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 4px;
  cursor: pointer;
}
.pr-consent input { position: absolute; width: 22px; height: 22px; margin: 0; opacity: 0; cursor: pointer; }
.pr-consent__box {
  display: grid;
  place-items: center;
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: inset 0 0 0 1.5px #9aa19e;
  color: transparent;
  transition: background-color 140ms ease;
}
.pr-consent__box svg { width: 12px; height: 12px; fill: currentColor; }
.pr-consent input:checked + .pr-consent__box { background: var(--accent); box-shadow: none; color: var(--ink); }
.pr-consent input:focus-visible + .pr-consent__box { outline: 2px solid var(--ink); outline-offset: 2px; }
.pr-consent__text { font-size: var(--fs-small); color: var(--ink-2); }
.pr-consent__text a { color: var(--ink); text-underline-offset: 0.2em; }

.pr-notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: #fbe9e7;
  color: var(--error);
  font-size: var(--fs-small);
}
.pr-notice[hidden] { display: none; }
.pr-notice svg { flex: none; width: 18px; height: 18px; margin-top: 1px; fill: currentColor; }

/* ---- Steg 4: klart ------------------------------------------------------ */
.pr-done { display: grid; justify-items: center; gap: 14px; padding-block: 16px; text-align: center; }
.pr-done__mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.pr-done__mark svg { width: 28px; height: 28px; fill: var(--ink); }
.pr-done .lead { margin-inline: auto; }
.pr-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-block: 6px 12px; }
.fact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius);
  background: var(--white);
  font-size: var(--fs-small);
}
.fact svg { width: 16px; height: 16px; color: var(--ink-2); }

/* ---- Trygghetsrad ------------------------------------------------------- */
.pr-assurance { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 20px; font-size: var(--fs-small); color: var(--ink-2); }
.pr-assurance li { display: inline-flex; align-items: center; gap: 8px; }
.pr-assurance svg { width: 18px; height: 18px; fill: var(--ink-2); }

/* ---- Sammanfattning ------------------------------------------------------ */
.pr-summary {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: 28px;
  border-radius: var(--radius);
  background: var(--sand);
}
.pr-summary__title { color: var(--heading); margin-bottom: 12px; font-size: 1.125rem; font-weight: 500; }
.pr-summary__rows { display: grid; margin: 0; }
.pr-summary__rows > div { display: grid; gap: 2px; padding-block: 12px; border-top: 1px solid var(--line); }
.pr-summary__rows dt { font-size: var(--fs-xs); color: var(--ink-2); }
.pr-summary__rows dd { margin: 0; overflow-wrap: anywhere; }
.pr-summary__total dd { font-size: 1.25rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.pr-summary__note { margin-top: 8px; font-size: var(--fs-small); color: var(--ink-2); }
.pr-summary__note a { color: var(--ink); text-underline-offset: 0.2em; }

/* ---- Brytpunkter --------------------------------------------------------- */
@media (max-width: 960px) {
  .pr-layout { grid-template-columns: minmax(0, 1fr); }
  .pr-summary { position: static; }
}

@media (max-width: 640px) {
  .pr-steps { gap: 8px; }
  .step-dot:not([data-state="current"]) .step-dot__label { display: none; }
  .pr-grid, .pr-picks { grid-template-columns: minmax(0, 1fr); }
  .service-card__toggle { flex-wrap: wrap; padding: 18px; }
  .service-card__price { margin-left: 44px; }
  .service-card__body { padding: 0 18px 20px; }
  .pr-nav .btn { padding: 0 18px; }
  .breakdown__row { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .pr-nav { flex-direction: column-reverse; }
  .pr-nav .btn { width: 100%; }
}


/* ---- Boka möte: förenklad, en kolumn ---------------------------------- */
.book { max-width: calc(720px + 2 * var(--pad)); }
.book__head { padding-block: clamp(16px, 3vw, 48px) 28px; }
.book__head .eyebrow { margin-bottom: 16px; }
.book__head .lead--hero { margin-top: 16px; max-width: 46ch; font-size: 1.1875rem; }
.book__facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.book__facts li {
  padding: 6px 14px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: #5a3a00;
  font-size: var(--fs-small);
  font-weight: 500;
}
.book__card {
  padding: clamp(22px, 4vw, 40px);
  border-radius: var(--radius);
  background: var(--sand);
}
.book__step + .book__step { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.book__title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.book__title span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-size: var(--fs-xs);
}
.book__days { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.day {
  display: grid;
  gap: 2px;
  justify-items: center;
  padding: 10px 4px;
  border: 0;
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
  transition: background-color 140ms ease;
}
.day span { font-size: var(--fs-xs); color: var(--ink-2); }
.day strong { font-size: 1rem; font-weight: 500; white-space: nowrap; }
.day:hover { background: var(--sand-2); }
.day[aria-pressed="true"] { background: var(--accent); }
.day[aria-pressed="true"] span { color: var(--ink); }
@media (max-width: 400px) {
  .book__days { gap: 6px; }
  .day strong { font-size: 0.875rem; }
}
.book__times {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--sand-3);
}
.book__times .chip { width: 100%; font-variant-numeric: tabular-nums; }
.book__consent { margin-top: 18px; }
.book__submit { width: 100%; height: 56px; margin-top: 28px; font-size: 1rem; }
.book__alt { margin-top: 14px; font-size: var(--fs-small); color: var(--ink-2); text-align: center; }
.book__alt a { color: var(--ink); text-underline-offset: 0.2em; }
