/* BigUp – /funktioner: parts, prices, price calculator and the tool table. */

html {
  scroll-padding-top: 88px;
}

/* Shared bits */

.funk-stack {
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 4vw, 48px);
}

.funk-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.funk-head .eyebrow {
  margin: 0;
}

.funk-h2 {
  max-width: 20ch;
  font-size: clamp(36px, 4.6vw, 64px);
}

.funk-lead {
  max-width: 620px;
  line-height: 1.55;
}

.funk-lead--dark {
  margin: 0;
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.5;
  color: var(--divider);
}

.funk-tile {
  width: 38px;
  height: 38px;
}

.funk-btn--flat {
  box-shadow: none;
}

/* Intro */

.funk-intro__h1 {
  max-width: 16ch;
}

.funk-intro__lead {
  max-width: 620px;
}

.funk-intro__actions {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 6px;
}

.funk-btn--ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .32);
  color: #fff;
}

.funk-btn--ghost:hover {
  background: rgba(255, 255, 255, .1);
  color: #fff;
}

.funk-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.funk-jump__link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .06);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color var(--ease);
}

.funk-jump__link:hover {
  background: rgba(255, 255, 255, .14);
  color: #fff;
}

/* Delarna */

.funk-parts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: 20px;
}

.funk-part--wide {
  grid-column: 1 / -1;
}

.funk-part__wide-body {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 24px 40px;
  padding: 28px 22px 0 clamp(22px, 3vw, 36px);
}

.funk-part__copy {
  flex: 1 1 260px;
  align-self: center;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 28px;
}

.funk-part__h3--wide {
  font-size: clamp(26px, 2.6vw, 36px);
}

.funk-part__text {
  margin: 0;
  max-width: 42ch;
  color: var(--slate-600);
}

.funk-part__media {
  flex: 2 1 480px;
  min-width: 0;
  align-self: flex-end;
  display: flex;
  flex-direction: column;
}

.funk-part__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 24px 22px 0;
}

.funk-part__h3 {
  font-size: clamp(22px, 2vw, 28px);
}

.funk-frame {
  margin-top: auto;
  padding: 14px 14px 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  background: var(--chip);
}

.funk-frame__img {
  border-radius: 6px 6px 0 0;
  background: none;
}

/* Priser */

.funk-prices {
  border-top: 1px solid var(--border);
}

.funk-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 20px;
}

.funk-plan__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 26px 24px 28px;
}

.funk-plan__price {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.funk-plan__amount {
  font-family: var(--font-head);
  font-weight: 800;
  font-stretch: 75%;
  font-size: 64px;
  line-height: .9;
}

.funk-plan__per {
  color: var(--slate-600);
}

.funk-checks {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--slate-600);
}

.funk-checks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.funk-checks svg {
  flex: none;
  margin-top: 3px;
  color: var(--green);
}

.funk-plan__cta {
  align-self: flex-start;
  min-height: 52px;
  margin-top: auto;
  padding: 0 20px;
  gap: 12px;
  font-size: 16px;
}

.funk-plan--max {
  background: var(--ink);
  color: #fff;
  border: 0;
  box-shadow: var(--shadow-pop);
}

.funk-plan--max .funk-plan__per,
.funk-plan--max .funk-checks {
  color: var(--divider);
}

.funk-plan--max .funk-checks svg {
  color: var(--lime);
}

.funk-badge {
  font-weight: 700;
}

.funk-invite {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: clamp(16px, 3vw, 32px);
}

.funk-invite__head {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.funk-invite__h3 {
  max-width: 24ch;
}

.funk-guest {
  gap: 10px;
  padding: 24px;
}

.funk-guest__h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--slate-600);
}

.funk-guest__price {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-stretch: 75%;
  font-size: 52px;
  line-height: 1;
}

.funk-guest__text {
  margin: 0;
  font-size: 16px;
  color: var(--slate-600);
}

/* Price calculator */

.funk-calc {
  flex-direction: row;
  flex-wrap: wrap;
}

.funk-calc__inputs {
  flex: 1.5 1 460px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding: clamp(20px, 3vw, 32px);
}

.funk-calc__step {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.funk-calc__step--tight {
  gap: 6px;
}

.funk-calc__step--perm {
  gap: 12px;
}

.funk-calc__h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.funk-calc__intro {
  margin: 0 0 6px;
  font-size: 15px;
  color: var(--slate-600);
}

.funk-calc__note {
  margin: 0;
  font-size: 14px;
  color: var(--slate-400);
}

.funk-calc__hint {
  margin: 0;
  padding: 12px 14px;
  border-radius: 8px;
  border-left: 4px solid var(--cyan);
  background: var(--bg-tint-2);
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
}

.funk-perm__needs {
  color: var(--green);
}

.funk-lic {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.funk-lic__opt {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border: 2px solid var(--border-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color var(--ease), background-color var(--ease);
}

.funk-lic__opt[aria-pressed='true'] {
  border-color: var(--ink);
  background: var(--bg-tint-2);
}

.funk-lic__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  width: 100%;
  font-weight: 700;
}

.funk-lic__top strong {
  font-size: 16px;
  font-weight: 700;
}

.funk-lic__sub {
  font-size: 14px;
  color: var(--slate-600);
}

.funk-add {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 4px;
}

.funk-add__title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--slate-600);
}

.funk-add__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.funk-chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color var(--ease), color var(--ease), border-color var(--ease);
}

.funk-chip[aria-pressed='true'] {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.funk-chip__mark {
  white-space: pre;
}

.funk-add__capped {
  margin: 0;
  padding: 10px 14px;
  border-radius: 8px;
  background: #f1ffd1;
  color: #2f4300;
  font-size: 14px;
  font-weight: 600;
}

.funk-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--bg-tint);
}

.funk-stepper__text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.funk-stepper__text strong {
  font-size: 15px;
  font-weight: 600;
}

.funk-stepper__text > span {
  font-size: 13px;
  color: var(--slate-400);
}

.funk-stepper__ctrl {
  flex: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.funk-stepper__btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 20px;
  cursor: pointer;
  transition: background-color var(--ease);
}

.funk-stepper__btn:hover {
  background: var(--bg-light);
}

.funk-stepper__n {
  min-width: 36px;
  text-align: center;
  font-size: 17px;
  font-weight: 700;
}

.funk-perm__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
}

.funk-perm__all {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--slate-600);
}

.funk-seg {
  flex: none;
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 9px;
  background: var(--chip);
}

.funk-seg__btn {
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #5c6180;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.funk-seg__btn[aria-pressed='true'] {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(38, 45, 64, .2);
}

.funk-perm__list {
  max-height: 380px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.funk-perm__list:empty {
  display: none;
}

.funk-perm__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--bg-tint);
}

.funk-perm__tile {
  width: 30px;
  height: 30px;
  border-radius: 7px;
}

.funk-perm__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.funk-perm__text strong {
  font-size: 14px;
  font-weight: 600;
}

.funk-perm__text span {
  font-size: 12px;
  color: var(--slate-400);
}

.funk-perm__row .funk-seg__btn {
  min-height: 34px;
  padding: 0 10px;
  font-size: 13px;
}

.funk-calc__result {
  flex: 1 1 300px;
  min-width: 0;
  padding: clamp(20px, 3vw, 32px);
  background: var(--bg-tint-2);
  border-left: 1px solid var(--border);
}

.funk-calc__sticky {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.funk-calc__eyebrow {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green);
}

.funk-calc__total {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--ink);
}

.funk-calc__sum {
  font-family: var(--font-head);
  font-weight: 800;
  font-stretch: 75%;
  font-size: clamp(64px, 7vw, 88px);
  line-height: .85;
  letter-spacing: -.02em;
}

.funk-calc__unit {
  font-size: 17px;
  color: var(--slate-600);
}

.funk-calc__lines {
  display: flex;
  flex-direction: column;
  border-top: 1px solid #dfe5f2;
}

.funk-calc__line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #dfe5f2;
  font-size: 15px;
}

.funk-calc__line span {
  color: var(--slate-600);
}

.funk-calc__line strong {
  font-weight: 600;
  white-space: nowrap;
}

.funk-calc__cta {
  justify-content: space-between;
  padding: 0 20px;
  gap: 12px;
}

.funk-calc__vat {
  margin: 0;
  font-size: 13px;
  color: var(--slate-400);
}

/* Alla verktyg */

.funk-tools__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(88px, 150px) minmax(88px, 150px);
  border-bottom: 1px solid var(--bg-tint);
}

.funk-tools__row--head {
  background: var(--bar);
  color: #fff;
  border-bottom: 0;
}

.funk-tools__row--price {
  background: var(--bg-tint-2);
  border-bottom: 1px solid var(--border);
}

.funk-tools__th {
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 700;
}

.funk-tools__th--plan {
  padding: 14px 16px;
  text-align: center;
}

.funk-tools__label {
  padding: 14px 18px;
  font-weight: 700;
}

.funk-tools__cell {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border-left: 1px solid var(--bg-tint);
  font-size: 14px;
  text-align: center;
}

.funk-tools__cell--price {
  font-size: 15px;
  font-weight: 700;
}

.funk-tools__tool {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px;
}

.funk-tools__tool .tool-tile {
  border: 1px solid rgba(255, 255, 255, .16);
}

.funk-tools__text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.funk-tools__text strong {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.funk-tools__tag {
  font-size: 14px;
  font-weight: 600;
  color: var(--green);
}

.funk-tools__desc {
  font-size: 14px;
  color: var(--slate-600);
  text-wrap: pretty;
}

.funk-yes {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--green);
}

.funk-addon {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--chip);
  color: var(--slate-600);
  font-weight: 600;
  white-space: nowrap;
}

.funk-footnote {
  margin: 0;
  max-width: 760px;
  font-size: 14px;
  color: var(--slate-400);
}
